@sentry/junior-dashboard 0.180.0 → 0.181.0

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/client.js CHANGED
@@ -72,7 +72,7 @@ Please change the parent <Route path="${B}"> to <Route path="${B==="/"?"*":`${B}
72
72
 
73
73
  `)}p.write("payload.value = newResult;"),p.write("return payload;");let b=p.compile();return(y,E)=>b(g,y,E)},r,i=Pc,A=!jc.jitless,c=A&&WQ.value,d=t.catchall,l;e._zod.parse=(g,p)=>{l??(l=o.value);let m=g.value;return i(m)?A&&c&&p?.async===!1&&p.jitless!==!0?(r||(r=a(t.shape)),g=r(g,p),d?lM([],m,g,p,l,e):g):n(g,p):(g.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),g)}});function WN(e,t,n,o){for(let r of e)if(r.issues.length===0)return t.value=r.value,t;let a=e.filter(r=>!Ds(r));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(r=>r.issues.map(i=>ja(i,o,tn())))}),t)}var Og=I("$ZodUnion",(e,t)=>{me.init(e,t),Qe(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Qe(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Qe(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Qe(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${o.map(a=>Lg(a.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,a)=>{if(n)return n(o,a);let r=!1,i=[];for(let A of t.options){let s=A._zod.run({value:o.value,issues:[]},a);if(s instanceof Promise)i.push(s),r=!0;else{if(s.issues.length===0)return s;i.push(s)}}return r?Promise.all(i).then(A=>WN(A,o,e,a)):WN(i,o,e,a)}});function ZN(e,t,n,o){let a=e.filter(r=>r.issues.length===0);return a.length===1?(t.value=a[0].value,t):(a.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(r=>r.issues.map(i=>ja(i,o,tn())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}var Gv=I("$ZodXor",(e,t)=>{Og.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,a)=>{if(n)return n(o,a);let r=!1,i=[];for(let A of t.options){let s=A._zod.run({value:o.value,issues:[]},a);s instanceof Promise?(i.push(s),r=!0):i.push(s)}return r?Promise.all(i).then(A=>ZN(A,o,e,a)):ZN(i,o,e,a)}}),Hv=I("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Og.init(e,t);let n=e._zod.parse;Qe(e._zod,"propValues",()=>{let a={};for(let r of t.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let[A,s]of Object.entries(i)){a[A]||(a[A]=new Set);for(let c of s)a[A].add(c)}}return a});let o=Kd(()=>{let a=t.options,r=new Map;for(let i of a){let A=i._zod.propValues?.[t.discriminator];if(!A||A.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let s of A){if(r.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);r.set(s,i)}}return r});e._zod.parse=(a,r)=>{let i=a.value;if(!Pc(i))return a.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),a;let A=o.value.get(i?.[t.discriminator]);return A?A._zod.run(a,r):t.unionFallback||r.direction==="backward"?n(a,r):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:i,path:[t.discriminator],inst:e}),a)}}),Tv=I("$ZodIntersection",(e,t)=>{me.init(e,t),e._zod.parse=(n,o)=>{let a=n.value,r=t.left._zod.run({value:a,issues:[]},o),i=t.right._zod.run({value:a,issues:[]},o);return r instanceof Promise||i instanceof Promise?Promise.all([r,i]).then(([s,c])=>VN(n,s,c)):VN(n,r,i)}});function tv(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(xs(e)&&xs(t)){let n=Object.keys(t),o=Object.keys(e).filter(r=>n.indexOf(r)!==-1),a={...e,...t};for(let r of o){let i=tv(e[r],t[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};a[r]=i.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<e.length;o++){let a=e[o],r=t[o],i=tv(a,r);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function VN(e,t,n){let o=new Map,a;for(let A of t.issues)if(A.code==="unrecognized_keys"){a??(a=A);for(let s of A.keys)o.has(s)||o.set(s,{}),o.get(s).l=!0}else e.issues.push(A);for(let A of n.issues)if(A.code==="unrecognized_keys")for(let s of A.keys)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(A);let r=[...o].filter(([,A])=>A.l&&A.r).map(([A])=>A);if(r.length&&a&&e.issues.push({...a,keys:r}),Ds(e))return e;let i=tv(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}var CB=I("$ZodTuple",(e,t)=>{me.init(e,t);let n=t.items;e._zod.parse=(o,a)=>{let r=o.value;if(!Array.isArray(r))return o.issues.push({input:r,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let i=[],A=XN(n,"optin"),s=XN(n,"optout");if(!t.rest){if(r.length<A)return o.issues.push({code:"too_small",minimum:A,inclusive:!0,input:r,inst:e,origin:"array"}),o;r.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:r,inst:e,origin:"array"})}let c=new Array(n.length);for(let d=0;d<n.length;d++){let l=n[d]._zod.run({value:r[d],issues:[]},a);l instanceof Promise?i.push(l.then(g=>{c[d]=g})):c[d]=l}if(t.rest){let d=n.length-1,l=r.slice(n.length);for(let g of l){d++;let p=t.rest._zod.run({value:g,issues:[]},a);p instanceof Promise?i.push(p.then(m=>eM(m,o,d))):eM(p,o,d)}}return i.length?Promise.all(i).then(()=>tM(c,o,n,r,s)):tM(c,o,n,r,s)}});function XN(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function eM(e,t,n){e.issues.length&&t.issues.push(...so(n,e.issues)),t.value[n]=e.value}function tM(e,t,n,o,a){for(let r=0;r<n.length;r++){let i=e[r],A=r<o.length;if(i.issues.length){if(!A&&r>=a){t.value.length=r;break}t.issues.push(...so(r,i.issues))}t.value[r]=i.value}for(let r=t.value.length-1;r>=o.length&&(n[r]._zod.optout==="optional"&&t.value[r]===void 0);r--)t.value.length=r;return t}var Uv=I("$ZodRecord",(e,t)=>{me.init(e,t),e._zod.parse=(n,o)=>{let a=n.value;if(!xs(a))return n.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),n;let r=[],i=t.keyType._zod.values;if(i){n.value={};let A=new Set;for(let c of i)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){A.add(typeof c=="number"?c.toString():c);let d=t.keyType._zod.run({value:c,issues:[]},o);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(p=>ja(p,o,tn())),input:c,path:[c],inst:e});continue}let l=d.value,g=t.valueType._zod.run({value:a[c],issues:[]},o);g instanceof Promise?r.push(g.then(p=>{p.issues.length&&n.issues.push(...so(c,p.issues)),n.value[l]=p.value})):(g.issues.length&&n.issues.push(...so(c,g.issues)),n.value[l]=g.value)}let s;for(let c in a)A.has(c)||(s=s??[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:s})}else{n.value={};for(let A of Reflect.ownKeys(a)){if(A==="__proto__"||!Object.prototype.propertyIsEnumerable.call(a,A))continue;let s=t.keyType._zod.run({value:A,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof A=="string"&&lB.test(A)&&s.issues.length){let l=t.keyType._zod.run({value:Number(A),issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");l.issues.length===0&&(s=l)}if(s.issues.length){t.mode==="loose"?n.value[A]=a[A]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(l=>ja(l,o,tn())),input:A,path:[A],inst:e});continue}let d=t.valueType._zod.run({value:a[A],issues:[]},o);d instanceof Promise?r.push(d.then(l=>{l.issues.length&&n.issues.push(...so(A,l.issues)),n.value[s.value]=l.value})):(d.issues.length&&n.issues.push(...so(A,d.issues)),n.value[s.value]=d.value)}}return r.length?Promise.all(r).then(()=>n):n}}),Ov=I("$ZodMap",(e,t)=>{me.init(e,t),e._zod.parse=(n,o)=>{let a=n.value;if(!(a instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:a,inst:e}),n;let r=[];n.value=new Map;for(let[i,A]of a){let s=t.keyType._zod.run({value:i,issues:[]},o),c=t.valueType._zod.run({value:A,issues:[]},o);s instanceof Promise||c instanceof Promise?r.push(Promise.all([s,c]).then(([d,l])=>{nM(d,l,n,i,a,e,o)})):nM(s,c,n,i,a,e,o)}return r.length?Promise.all(r).then(()=>n):n}});function nM(e,t,n,o,a,r,i){e.issues.length&&(Rg.has(typeof o)?n.issues.push(...so(o,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:a,inst:r,issues:e.issues.map(A=>ja(A,i,tn()))})),t.issues.length&&(Rg.has(typeof o)?n.issues.push(...so(o,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:a,inst:r,key:o,issues:t.issues.map(A=>ja(A,i,tn()))})),n.value.set(e.value,t.value)}var qv=I("$ZodSet",(e,t)=>{me.init(e,t),e._zod.parse=(n,o)=>{let a=n.value;if(!(a instanceof Set))return n.issues.push({input:a,inst:e,expected:"set",code:"invalid_type"}),n;let r=[];n.value=new Set;for(let i of a){let A=t.valueType._zod.run({value:i,issues:[]},o);A instanceof Promise?r.push(A.then(s=>aM(s,n))):aM(A,n)}return r.length?Promise.all(r).then(()=>n):n}});function aM(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var zv=I("$ZodEnum",(e,t)=>{me.init(e,t);let n=Sg(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(a=>Rg.has(typeof a)).map(a=>typeof a=="string"?or(a):a.toString()).join("|")})$`),e._zod.parse=(a,r)=>{let i=a.value;return o.has(i)||a.issues.push({code:"invalid_value",values:n,input:i,inst:e}),a}}),Yv=I("$ZodLiteral",(e,t)=>{if(me.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(o=>typeof o=="string"?or(o):o?or(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,a)=>{let r=o.value;return n.has(r)||o.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),o}}),Kv=I("$ZodFile",(e,t)=>{me.init(e,t),e._zod.parse=(n,o)=>{let a=n.value;return a instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:a,inst:e}),n}}),Jv=I("$ZodTransform",(e,t)=>{me.init(e,t),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Is(e.constructor.name);let a=t.transform(n.value,n);if(o.async)return(a instanceof Promise?a:Promise.resolve(a)).then(i=>(n.value=i,n.fallback=!0,n));if(a instanceof Promise)throw new Rr;return n.value=a,n.fallback=!0,n}});function oM(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var wB=I("$ZodOptional",(e,t)=>{me.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Qe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Qe(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Lg(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){let a=n.value,r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>oM(i,a)):oM(r,a)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),Wv=I("$ZodExactOptional",(e,t)=>{wB.init(e,t),Qe(e._zod,"values",()=>t.innerType._zod.values),Qe(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),Zv=I("$ZodNullable",(e,t)=>{me.init(e,t),Qe(e._zod,"optin",()=>t.innerType._zod.optin),Qe(e._zod,"optout",()=>t.innerType._zod.optout),Qe(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Lg(n.source)}|null)$`):void 0}),Qe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),Vv=I("$ZodDefault",(e,t)=>{me.init(e,t),e._zod.optin="optional",Qe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(r=>rM(r,t)):rM(a,t)}});function rM(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Xv=I("$ZodPrefault",(e,t)=>{me.init(e,t),e._zod.optin="optional",Qe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),e_=I("$ZodNonOptional",(e,t)=>{me.init(e,t),Qe(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(r=>iM(r,e)):iM(a,e)}});function iM(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var t_=I("$ZodSuccess",(e,t)=>{me.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Is("ZodSuccess");let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(r=>(n.value=r.issues.length===0,n)):(n.value=a.issues.length===0,n)}}),n_=I("$ZodCatch",(e,t)=>{me.init(e,t),e._zod.optin="optional",Qe(e._zod,"optout",()=>t.innerType._zod.optout),Qe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(r=>(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>ja(i,o,tn()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(r=>ja(r,o,tn()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),a_=I("$ZodNaN",(e,t)=>{me.init(e,t),e._zod.parse=(n,o)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),EB=I("$ZodPipe",(e,t)=>{me.init(e,t),Qe(e._zod,"values",()=>t.in._zod.values),Qe(e._zod,"optin",()=>t.in._zod.optin),Qe(e._zod,"optout",()=>t.out._zod.optout),Qe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){let r=t.out._zod.run(n,o);return r instanceof Promise?r.then(i=>mB(i,t.in,o)):mB(r,t.in,o)}let a=t.in._zod.run(n,o);return a instanceof Promise?a.then(r=>mB(r,t.out,o)):mB(a,t.out,o)}});function mB(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var qg=I("$ZodCodec",(e,t)=>{me.init(e,t),Qe(e._zod,"values",()=>t.in._zod.values),Qe(e._zod,"optin",()=>t.in._zod.optin),Qe(e._zod,"optout",()=>t.out._zod.optout),Qe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if((o.direction||"forward")==="forward"){let r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>fB(i,t,o)):fB(r,t,o)}else{let r=t.out._zod.run(n,o);return r instanceof Promise?r.then(i=>fB(i,t,o)):fB(r,t,o)}}});function fB(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let a=t.transform(e.value,e);return a instanceof Promise?a.then(r=>bB(e,r,t.out,n)):bB(e,a,t.out,n)}else{let a=t.reverseTransform(e.value,e);return a instanceof Promise?a.then(r=>bB(e,r,t.in,n)):bB(e,a,t.in,n)}}function bB(e,t,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},o)}var o_=I("$ZodPreprocess",(e,t)=>{EB.init(e,t)}),r_=I("$ZodReadonly",(e,t)=>{me.init(e,t),Qe(e._zod,"propValues",()=>t.innerType._zod.propValues),Qe(e._zod,"values",()=>t.innerType._zod.values),Qe(e._zod,"optin",()=>t.innerType?._zod?.optin),Qe(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(AM):AM(a)}});function AM(e){return e.value=Object.freeze(e.value),e}var i_=I("$ZodTemplateLiteral",(e,t)=>{me.init(e,t);let n=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let a=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!a)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let r=a.startsWith("^")?1:0,i=a.endsWith("$")?a.length-1:a.length;n.push(a.slice(r,i))}else if(o===null||VQ.has(typeof o))n.push(or(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(o,a)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),A_=I("$ZodFunction",(e,t)=>(me.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(...o){let a=e._def.input?tB(e._def.input,o):o,r=Reflect.apply(n,this,a);return e._def.output?tB(e._def.output,r):r}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let a=e._def.input?await nB(e._def.input,o):o,r=await Reflect.apply(n,this,a);return e._def.output?await nB(e._def.output,r):r}},e._zod.parse=(n,o)=>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 o=e.constructor;return Array.isArray(n[0])?new o({type:"function",input:new CB({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new o({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:n})},e)),s_=I("$ZodPromise",(e,t)=>{me.init(e,t),e._zod.parse=(n,o)=>Promise.resolve(n.value).then(a=>t.innerType._zod.run({value:a,issues:[]},o))}),c_=I("$ZodLazy",(e,t)=>{me.init(e,t),Qe(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),Qe(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Qe(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Qe(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Qe(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),u_=I("$ZodCustom",(e,t)=>{Et.init(e,t),me.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{let o=n.value,a=t.fn(o);if(a instanceof Promise)return a.then(r=>sM(r,n,o,e));sM(a,n,o,e)}});function sM(e,t,n,o){if(!e){let a={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(a.params=o._zod.def.params),t.issues.push(Jd(a))}}var Yg={};L(Yg,{ar:()=>gM,az:()=>mM,be:()=>bM,bg:()=>hM,ca:()=>BM,cs:()=>yM,da:()=>CM,de:()=>wM,el:()=>EM,en:()=>kB,eo:()=>kM,es:()=>QM,fa:()=>IM,fi:()=>vM,fr:()=>_M,frCA:()=>xM,he:()=>DM,hr:()=>FM,hu:()=>SM,hy:()=>RM,id:()=>NM,is:()=>MM,it:()=>$M,ja:()=>jM,ka:()=>PM,kh:()=>GM,km:()=>QB,ko:()=>HM,lt:()=>UM,mk:()=>OM,ms:()=>qM,nl:()=>zM,no:()=>YM,ota:()=>KM,pl:()=>WM,ps:()=>JM,pt:()=>ZM,ro:()=>VM,ru:()=>e$,sl:()=>t$,sv:()=>n$,ta:()=>a$,th:()=>o$,tr:()=>r$,ua:()=>i$,uk:()=>IB,ur:()=>A$,uz:()=>s$,vi:()=>c$,yo:()=>l$,zhCN:()=>u$,zhTW:()=>d$});var Lae=()=>{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(a){return e[a]??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"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.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 ${a.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${A}`:`\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 ${r}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${A}`}case"invalid_value":return a.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 ${H(a.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: ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${a.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${a.maximum.toString()} ${i.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 ${a.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${a.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${r} ${a.minimum.toString()} ${i.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${a.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.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 "${a.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}"`:r.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 ${r.pattern}`:`${n[r.format]??a.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 ${a.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${a.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${a.keys.length>1?"\u0629":""}: ${D(a.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${a.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 ${a.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function gM(){return{localeError:Lae()}}var Rae=()=>{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(a){return e[a]??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"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${a.expected}, daxil olan ${A}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${r}, daxil olan ${A}`}case"invalid_value":return a.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${H(a.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${a.origin??"d\u0259y\u0259r"} ${r}${a.maximum.toString()} ${i.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${a.origin??"d\u0259y\u0259r"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${a.origin} ${r}${a.minimum.toString()} ${i.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${r.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:r.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${r.suffix}" il\u0259 bitm\u0259lidir`:r.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${r.includes}" daxil olmal\u0131d\u0131r`:r.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${r.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[r.format]??a.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${a.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${a.keys.length>1?"lar":""}: ${D(a.keys,", ")}`;case"invalid_key":return`${a.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${a.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function mM(){return{localeError:Rae()}}function fM(e,t,n,o){let a=Math.abs(e),r=a%10,i=a%100;return i>=11&&i<=19?o:r===1?t:r>=2&&r<=4?n:o}var Nae=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${a.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${A}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${r}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${A}`}case"invalid_value":return a.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 ${H(a.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 ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);if(i){let A=Number(a.maximum),s=fM(A,i.unit.one,i.unit.few,i.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 ${a.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${r}${a.maximum.toString()} ${s}`}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 ${a.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);if(i){let A=Number(a.minimum),s=fM(A,i.unit.one,i.unit.few,i.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 ${a.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${r}${a.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.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 "${r.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}"`:r.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 ${r.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[r.format]??a.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 ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${a.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${D(a.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${a.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 ${a.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function bM(){return{localeError:Nae()}}var Mae=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${a.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${A}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${r}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${A}`}case"invalid_value":return a.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${H(a.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 ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${a.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${r}${a.maximum.toString()} ${i.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 ${a.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${a.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${r}${a.minimum.toString()} ${i.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${a.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;if(r.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 "${r.prefix}"`;if(r.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 "${r.suffix}"`;if(r.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 "${r.includes}"`;if(r.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 ${r.pattern}`;let i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return r.format==="emoji"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),r.format==="datetime"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),r.format==="date"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),r.format==="time"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),r.format==="duration"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${i} ${n[r.format]??a.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 ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${a.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${a.keys.length>1?"\u043E\u0432\u0435":""}: ${D(a.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${a.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 ${a.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function hM(){return{localeError:Mae()}}var $ae=()=>{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(a){return e[a]??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"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${a.expected}, s'ha rebut ${A}`:`Tipus inv\xE0lid: s'esperava ${r}, s'ha rebut ${A}`}case"invalid_value":return a.values.length===1?`Valor inv\xE0lid: s'esperava ${H(a.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${D(a.values," o ")}`;case"too_big":{let r=a.inclusive?"com a m\xE0xim":"menys de",i=t(a.origin);return i?`Massa gran: s'esperava que ${a.origin??"el valor"} contingu\xE9s ${r} ${a.maximum.toString()} ${i.unit??"elements"}`:`Massa gran: s'esperava que ${a.origin??"el valor"} fos ${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?"com a m\xEDnim":"m\xE9s de",i=t(a.origin);return i?`Massa petit: s'esperava que ${a.origin} contingu\xE9s ${r} ${a.minimum.toString()} ${i.unit}`:`Massa petit: s'esperava que ${a.origin} fos ${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${r.prefix}"`:r.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${r.suffix}"`:r.format==="includes"?`Format inv\xE0lid: ha d'incloure "${r.includes}"`:r.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${r.pattern}`:`Format inv\xE0lid per a ${n[r.format]??a.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${a.divisor}`;case"unrecognized_keys":return`Clau${a.keys.length>1?"s":""} no reconeguda${a.keys.length>1?"s":""}: ${D(a.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${a.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${a.origin}`;default:return"Entrada inv\xE0lida"}}};function BM(){return{localeError:$ae()}}var jae=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${a.expected}, obdr\u017Eeno ${A}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${r}, obdr\u017Eeno ${A}`}case"invalid_value":return a.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${H(a.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${a.origin??"hodnota"} mus\xED m\xEDt ${r}${a.maximum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${a.origin??"hodnota"} mus\xED b\xFDt ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${a.origin??"hodnota"} mus\xED m\xEDt ${r}${a.minimum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${a.origin??"hodnota"} mus\xED b\xFDt ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${r.prefix}"`:r.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${r.suffix}"`:r.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${r.includes}"`:r.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${r.pattern}`:`Neplatn\xFD form\xE1t ${n[r.format]??a.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${a.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${D(a.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${a.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${a.origin}`;default:return"Neplatn\xFD vstup"}}};function yM(){return{localeError:jae()}}var Pae=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(a){return e[a]??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"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Ugyldigt input: forventede instanceof ${a.expected}, fik ${A}`:`Ugyldigt input: forventede ${r}, fik ${A}`}case"invalid_value":return a.values.length===1?`Ugyldig v\xE6rdi: forventede ${H(a.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin),A=o[a.origin]??a.origin;return i?`For stor: forventede ${A??"value"} ${i.verb} ${r} ${a.maximum.toString()} ${i.unit??"elementer"}`:`For stor: forventede ${A??"value"} havde ${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin),A=o[a.origin]??a.origin;return i?`For lille: forventede ${A} ${i.verb} ${r} ${a.minimum.toString()} ${i.unit}`:`For lille: forventede ${A} havde ${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ugyldig streng: skal starte med "${r.prefix}"`:r.format==="ends_with"?`Ugyldig streng: skal ende med "${r.suffix}"`:r.format==="includes"?`Ugyldig streng: skal indeholde "${r.includes}"`:r.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${r.pattern}`:`Ugyldig ${n[r.format]??a.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${D(a.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${a.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${a.origin}`;default:return"Ugyldigt input"}}};function CM(){return{localeError:Pae()}}var Gae=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"Zahl",array:"Array"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${a.expected}, erhalten ${A}`:`Ung\xFCltige Eingabe: erwartet ${r}, erhalten ${A}`}case"invalid_value":return a.values.length===1?`Ung\xFCltige Eingabe: erwartet ${H(a.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Zu gro\xDF: erwartet, dass ${a.origin??"Wert"} ${r}${a.maximum.toString()} ${i.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${a.origin??"Wert"} ${r}${a.maximum.toString()} ist`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Zu klein: erwartet, dass ${a.origin} ${r}${a.minimum.toString()} ${i.unit} hat`:`Zu klein: erwartet, dass ${a.origin} ${r}${a.minimum.toString()} ist`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ung\xFCltiger String: muss mit "${r.prefix}" beginnen`:r.format==="ends_with"?`Ung\xFCltiger String: muss mit "${r.suffix}" enden`:r.format==="includes"?`Ung\xFCltiger String: muss "${r.includes}" enthalten`:r.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${r.pattern} entsprechen`:`Ung\xFCltig: ${n[r.format]??a.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${a.divisor} sein`;case"unrecognized_keys":return`${a.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${D(a.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${a.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${a.origin}`;default:return"Ung\xFCltige Eingabe"}}};function wM(){return{localeError:Gae()}}var Hae=()=>{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(a){return e[a]??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"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return typeof a.expected=="string"&&/^[A-Z]/.test(a.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 ${a.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${A}`:`\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 ${r}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${A}`}case"invalid_value":return a.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 ${H(a.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 ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${a.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${r}${a.maximum.toString()} ${i.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 ${a.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${a.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${r}${a.minimum.toString()} ${i.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${a.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.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 "${r.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}"`:r.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 ${r.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[r.format]??a.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 ${a.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${a.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${a.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${D(a.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${a.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 ${a.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function EM(){return{localeError:Hae()}}var Tae=()=>{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(a){return e[a]??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"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return`Invalid input: expected ${r}, received ${A}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${H(a.values[0])}`:`Invalid option: expected one of ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Too big: expected ${a.origin??"value"} to have ${r}${a.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${a.origin??"value"} to be ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Too small: expected ${a.origin} to have ${r}${a.minimum.toString()} ${i.unit}`:`Too small: expected ${a.origin} to be ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${n[r.format]??a.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${a.divisor}`;case"unrecognized_keys":return`Unrecognized key${a.keys.length>1?"s":""}: ${D(a.keys,", ")}`;case"invalid_key":return`Invalid key in ${a.origin}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Invalid discriminator value. Expected ${a.options.map(i=>`'${i}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${a.origin}`;default:return"Invalid input"}}};function kB(){return{localeError:Tae()}}var Uae=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(a){return e[a]??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"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${a.expected}, ricevi\u011Dis ${A}`:`Nevalida enigo: atendi\u011Dis ${r}, ricevi\u011Dis ${A}`}case"invalid_value":return a.values.length===1?`Nevalida enigo: atendi\u011Dis ${H(a.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Tro granda: atendi\u011Dis ke ${a.origin??"valoro"} havu ${r}${a.maximum.toString()} ${i.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${a.origin??"valoro"} havu ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Tro malgranda: atendi\u011Dis ke ${a.origin} havu ${r}${a.minimum.toString()} ${i.unit}`:`Tro malgranda: atendi\u011Dis ke ${a.origin} estu ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${r.prefix}"`:r.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${r.suffix}"`:r.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${r.includes}"`:r.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${r.pattern}`:`Nevalida ${n[r.format]??a.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${a.divisor}`;case"unrecognized_keys":return`Nekonata${a.keys.length>1?"j":""} \u015Dlosilo${a.keys.length>1?"j":""}: ${D(a.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${a.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${a.origin}`;default:return"Nevalida enigo"}}};function kM(){return{localeError:Uae()}}var Oae=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(a){return e[a]??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"},o={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 a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${a.expected}, recibido ${A}`:`Entrada inv\xE1lida: se esperaba ${r}, recibido ${A}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: se esperaba ${H(a.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin),A=o[a.origin]??a.origin;return i?`Demasiado grande: se esperaba que ${A??"valor"} tuviera ${r}${a.maximum.toString()} ${i.unit??"elementos"}`:`Demasiado grande: se esperaba que ${A??"valor"} fuera ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin),A=o[a.origin]??a.origin;return i?`Demasiado peque\xF1o: se esperaba que ${A} tuviera ${r}${a.minimum.toString()} ${i.unit}`:`Demasiado peque\xF1o: se esperaba que ${A} fuera ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${r.prefix}"`:r.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${r.suffix}"`:r.format==="includes"?`Cadena inv\xE1lida: debe incluir "${r.includes}"`:r.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${r.pattern}`:`Inv\xE1lido ${n[r.format]??a.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":return`Llave${a.keys.length>1?"s":""} desconocida${a.keys.length>1?"s":""}: ${D(a.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[a.origin]??a.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[a.origin]??a.origin}`;default:return"Entrada inv\xE1lida"}}};function QM(){return{localeError:Oae()}}var qae=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${a.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${A} \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 ${r} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${A} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return a.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${H(a.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 ${D(a.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${a.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${r}${a.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${a.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${r}${a.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${a.origin} \u0628\u0627\u06CC\u062F ${r}${a.minimum.toString()} ${i.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${a.origin} \u0628\u0627\u06CC\u062F ${r}${a.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${r.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:r.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${r.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:r.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${r.includes}" \u0628\u0627\u0634\u062F`:r.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${r.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[r.format]??a.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 ${a.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${a.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${D(a.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${a.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 ${a.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function IM(){return{localeError:qae()}}var zae=()=>{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(a){return e[a]??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"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Virheellinen tyyppi: odotettiin instanceof ${a.expected}, oli ${A}`:`Virheellinen tyyppi: odotettiin ${r}, oli ${A}`}case"invalid_value":return a.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${H(a.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Liian suuri: ${i.subject} t\xE4ytyy olla ${r}${a.maximum.toString()} ${i.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Liian pieni: ${i.subject} t\xE4ytyy olla ${r}${a.minimum.toString()} ${i.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${r.prefix}"`:r.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${r.suffix}"`:r.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${r.includes}"`:r.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${r.pattern}`:`Virheellinen ${n[r.format]??a.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${a.divisor} monikerta`;case"unrecognized_keys":return`${a.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${D(a.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 vM(){return{localeError:zae()}}var Yae=()=>{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(a){return e[a]??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"},o={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 a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Entr\xE9e invalide : instanceof ${a.expected} attendu, ${A} re\xE7u`:`Entr\xE9e invalide : ${r} attendu, ${A} re\xE7u`}case"invalid_value":return a.values.length===1?`Entr\xE9e invalide : ${H(a.values[0])} attendu`:`Option invalide : une valeur parmi ${D(a.values,"|")} attendue`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Trop grand : ${o[a.origin]??"valeur"} doit ${i.verb} ${r}${a.maximum.toString()} ${i.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[a.origin]??"valeur"} doit \xEAtre ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Trop petit : ${o[a.origin]??"valeur"} doit ${i.verb} ${r}${a.minimum.toString()} ${i.unit}`:`Trop petit : ${o[a.origin]??"valeur"} doit \xEAtre ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${r.prefix}"`:r.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${r.suffix}"`:r.format==="includes"?`Cha\xEEne invalide : doit inclure "${r.includes}"`:r.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${r.pattern}`:`${n[r.format]??a.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${a.divisor}`;case"unrecognized_keys":return`Cl\xE9${a.keys.length>1?"s":""} non reconnue${a.keys.length>1?"s":""} : ${D(a.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${a.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${a.origin}`;default:return"Entr\xE9e invalide"}}};function _M(){return{localeError:Yae()}}var Kae=()=>{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(a){return e[a]??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"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Entr\xE9e invalide : attendu instanceof ${a.expected}, re\xE7u ${A}`:`Entr\xE9e invalide : attendu ${r}, re\xE7u ${A}`}case"invalid_value":return a.values.length===1?`Entr\xE9e invalide : attendu ${H(a.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"\u2264":"<",i=t(a.origin);return i?`Trop grand : attendu que ${a.origin??"la valeur"} ait ${r}${a.maximum.toString()} ${i.unit}`:`Trop grand : attendu que ${a.origin??"la valeur"} soit ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?"\u2265":">",i=t(a.origin);return i?`Trop petit : attendu que ${a.origin} ait ${r}${a.minimum.toString()} ${i.unit}`:`Trop petit : attendu que ${a.origin} soit ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${r.prefix}"`:r.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${r.suffix}"`:r.format==="includes"?`Cha\xEEne invalide : doit inclure "${r.includes}"`:r.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${r.pattern}`:`${n[r.format]??a.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${a.divisor}`;case"unrecognized_keys":return`Cl\xE9${a.keys.length>1?"s":""} non reconnue${a.keys.length>1?"s":""} : ${D(a.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${a.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${a.origin}`;default:return"Entr\xE9e invalide"}}};function xM(){return{localeError:Kae()}}var Jae=()=>{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=c=>c?e[c]:void 0,o=c=>{let d=n(c);return d?d.label:c??e.unknown.label},a=c=>`\u05D4${o(c)}`,r=c=>(n(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",i=c=>c?t[c]??null:null,A={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"}},s={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let d=c.expected,l=s[d??""]??o(d),g=T(c.input),p=s[g]??e[g]?.label??g;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${l}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}case"invalid_value":{if(c.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 ${H(c.values[0])}`;let d=c.values.map(p=>H(p));if(c.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 l=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 ${l}`}case"too_big":{let d=i(c.origin),l=a(c.origin??"value");if(c.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${l} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${d?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let m=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${l} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(c.origin==="array"||c.origin==="set"){let m=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",h=c.inclusive?`${c.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${l} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let g=c.inclusive?"<=":"<",p=r(c.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${l} ${p} ${g}${c.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${l} ${p} ${g}${c.maximum.toString()}`}case"too_small":{let d=i(c.origin),l=a(c.origin??"value");if(c.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${l} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${d?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let m=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${l} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(c.origin==="array"||c.origin==="set"){let m=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let B=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${l} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${B}`}let h=c.inclusive?`${c.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${l} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let g=c.inclusive?">=":">",p=r(c.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${l} ${p} ${g}${c.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${l} ${p} ${g}${c.minimum.toString()}`}case"invalid_format":{let d=c;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 l=A[d.format],g=l?.label??d.format,m=(l?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${g} \u05DC\u05D0 ${m}`}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 ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${D(c.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${a(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function DM(){return{localeError:Jae()}}var Wae=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(a){return e[a]??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"},o={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 a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${a.expected}, a primljeno je ${A}`:`Neispravan unos: o\u010Dekuje se ${r}, a primljeno je ${A}`}case"invalid_value":return a.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${H(a.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin),A=o[a.origin]??a.origin;return i?`Preveliko: o\u010Dekivano da ${A??"vrijednost"} ima ${r}${a.maximum.toString()} ${i.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${A??"vrijednost"} bude ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin),A=o[a.origin]??a.origin;return i?`Premalo: o\u010Dekivano da ${A} ima ${r}${a.minimum.toString()} ${i.unit}`:`Premalo: o\u010Dekivano da ${A} bude ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${r.prefix}"`:r.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${r.suffix}"`:r.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${r.includes}"`:r.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${r.pattern}`:`Neispravna ${n[r.format]??a.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${a.divisor}`;case"unrecognized_keys":return`Neprepoznat${a.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${D(a.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[a.origin]??a.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[a.origin]??a.origin}`;default:return"Neispravan unos"}}};function FM(){return{localeError:Wae()}}var Zae=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(a){return e[a]??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"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${a.expected}, a kapott \xE9rt\xE9k ${A}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${r}, a kapott \xE9rt\xE9k ${A}`}case"invalid_value":return a.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${H(a.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`T\xFAl nagy: ${a.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${r}${a.maximum.toString()} ${i.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${a.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${a.origin} m\xE9rete t\xFAl kicsi ${r}${a.minimum.toString()} ${i.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${a.origin} t\xFAl kicsi ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\xC9rv\xE9nytelen string: "${r.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:r.format==="ends_with"?`\xC9rv\xE9nytelen string: "${r.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:r.format==="includes"?`\xC9rv\xE9nytelen string: "${r.includes}" \xE9rt\xE9ket kell tartalmaznia`:r.format==="regex"?`\xC9rv\xE9nytelen string: ${r.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[r.format]??a.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${a.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${a.keys.length>1?"s":""}: ${D(a.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${a.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${a.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function SM(){return{localeError:Zae()}}function LM(e,t,n){return Math.abs(e)===1?t:n}function tl(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\u0576":"\u0568")}var Vae=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.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 ${a.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${A}`:`\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 ${r}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${A}`}case"invalid_value":return a.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 ${H(a.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 ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);if(i){let A=Number(a.maximum),s=LM(A,i.unit.one,i.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 ${tl(a.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${r}${a.maximum.toString()} ${s}`}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 ${tl(a.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);if(i){let A=Number(a.minimum),s=LM(A,i.unit.one,i.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 ${tl(a.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${r}${a.minimum.toString()} ${s}`}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 ${tl(a.origin)} \u056C\u056B\u0576\u056B ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${r.prefix}"-\u0578\u057E`:r.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${r.suffix}"-\u0578\u057E`:r.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${r.includes}"`:r.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 ${r.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[r.format]??a.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 ${a.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${a.keys.length>1?"\u0576\u0565\u0580":""}. ${D(a.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${tl(a.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 ${tl(a.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function RM(){return{localeError:Vae()}}var Xae=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(a){return e[a]??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"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Input tidak valid: diharapkan instanceof ${a.expected}, diterima ${A}`:`Input tidak valid: diharapkan ${r}, diterima ${A}`}case"invalid_value":return a.values.length===1?`Input tidak valid: diharapkan ${H(a.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Terlalu besar: diharapkan ${a.origin??"value"} memiliki ${r}${a.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: diharapkan ${a.origin??"value"} menjadi ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Terlalu kecil: diharapkan ${a.origin} memiliki ${r}${a.minimum.toString()} ${i.unit}`:`Terlalu kecil: diharapkan ${a.origin} menjadi ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`String tidak valid: harus dimulai dengan "${r.prefix}"`:r.format==="ends_with"?`String tidak valid: harus berakhir dengan "${r.suffix}"`:r.format==="includes"?`String tidak valid: harus menyertakan "${r.includes}"`:r.format==="regex"?`String tidak valid: harus sesuai pola ${r.pattern}`:`${n[r.format]??a.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${a.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${a.keys.length>1?"s":""}: ${D(a.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${a.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${a.origin}`;default:return"Input tidak valid"}}};function NM(){return{localeError:Xae()}}var eoe=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${A} \xFEar sem \xE1 a\xF0 vera instanceof ${a.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${A} \xFEar sem \xE1 a\xF0 vera ${r}`}case"invalid_value":return a.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${H(a.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin??"gildi"} hafi ${r}${a.maximum.toString()} ${i.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin??"gildi"} s\xE9 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin} hafi ${r}${a.minimum.toString()} ${i.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin} s\xE9 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${r.prefix}"`:r.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${r.suffix}"`:r.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${r.includes}"`:r.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${r.pattern}`:`Rangt ${n[r.format]??a.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${a.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${a.keys.length>1?"ir lyklar":"ur lykill"}: ${D(a.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${a.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${a.origin}`;default:return"Rangt gildi"}}};function MM(){return{localeError:eoe()}}var toe=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(a){return e[a]??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"},o={nan:"NaN",number:"numero",array:"vettore"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Input non valido: atteso instanceof ${a.expected}, ricevuto ${A}`:`Input non valido: atteso ${r}, ricevuto ${A}`}case"invalid_value":return a.values.length===1?`Input non valido: atteso ${H(a.values[0])}`:`Opzione non valida: atteso uno tra ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Troppo grande: ${a.origin??"valore"} deve avere ${r}${a.maximum.toString()} ${i.unit??"elementi"}`:`Troppo grande: ${a.origin??"valore"} deve essere ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Troppo piccolo: ${a.origin} deve avere ${r}${a.minimum.toString()} ${i.unit}`:`Troppo piccolo: ${a.origin} deve essere ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Stringa non valida: deve iniziare con "${r.prefix}"`:r.format==="ends_with"?`Stringa non valida: deve terminare con "${r.suffix}"`:r.format==="includes"?`Stringa non valida: deve includere "${r.includes}"`:r.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${r.pattern}`:`Input non valido: ${n[r.format]??a.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${a.divisor}`;case"unrecognized_keys":return`Chiav${a.keys.length>1?"i":"e"} non riconosciut${a.keys.length>1?"e":"a"}: ${D(a.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${a.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${a.origin}`;default:return"Input non valido"}}};function $M(){return{localeError:toe()}}var noe=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${a.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${A}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${r}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${A}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return a.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${H(a.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${D(a.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let r=a.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",i=t(a.origin);return i?`\u5927\u304D\u3059\u304E\u308B\u5024: ${a.origin??"\u5024"}\u306F${a.maximum.toString()}${i.unit??"\u8981\u7D20"}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${a.origin??"\u5024"}\u306F${a.maximum.toString()}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let r=a.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",i=t(a.origin);return i?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${a.origin}\u306F${a.minimum.toString()}${i.unit}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${a.origin}\u306F${a.minimum.toString()}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${r.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[r.format]??a.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${a.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${a.keys.length>1?"\u7FA4":""}: ${D(a.keys,"\u3001")}`;case"invalid_key":return`${a.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${a.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function jM(){return{localeError:noe()}}var aoe=()=>{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(a){return e[a]??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"},o={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 a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.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 ${a.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${A}`:`\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 ${r}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${A}`}case"invalid_value":return a.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 ${H(a.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 ${D(a.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${i.verb} ${r}${a.maximum.toString()} ${i.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\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 ${a.origin} ${i.verb} ${r}${a.minimum.toString()} ${i.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 ${a.origin} \u10D8\u10E7\u10DD\u10E1 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.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 "${r.prefix}"-\u10D8\u10D7`:r.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 "${r.suffix}"-\u10D8\u10D7`:r.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 "${r.includes}"-\u10E1`:r.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 ${r.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[r.format]??a.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 ${a.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${a.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${D(a.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${a.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 ${a.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function PM(){return{localeError:aoe()}}var ooe=()=>{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(a){return e[a]??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"},o={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 a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.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 ${a.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${A}`:`\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 ${r} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${A}`}case"invalid_value":return a.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 ${H(a.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 ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${r} ${a.maximum.toString()} ${i.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin} ${r} ${a.minimum.toString()} ${i.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin} ${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.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 "${r.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}"`:r.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 ${r.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[r.format]??a.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 ${a.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${D(a.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 ${a.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 ${a.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 QB(){return{localeError:ooe()}}function GM(){return QB()}var roe=()=>{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(a){return e[a]??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"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${a.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${A}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${r}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${A}\uC785\uB2C8\uB2E4`}case"invalid_value":return a.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${H(a.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${D(a.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let r=a.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",i=r==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",A=t(a.origin),s=A?.unit??"\uC694\uC18C";return A?`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${a.maximum.toString()}${s} ${r}${i}`:`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${a.maximum.toString()} ${r}${i}`}case"too_small":{let r=a.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",i=r==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",A=t(a.origin),s=A?.unit??"\uC694\uC18C";return A?`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${a.minimum.toString()}${s} ${r}${i}`:`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${a.minimum.toString()} ${r}${i}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:r.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:r.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:r.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${r.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[r.format]??a.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${a.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${D(a.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${a.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${a.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function HM(){return{localeError:roe()}}var zg=e=>e.charAt(0).toUpperCase()+e.slice(1);function TM(e){let t=Math.abs(e),n=t%10,o=t%100;return o>=11&&o<=19||n===0?"many":n===1?"one":"few"}var ioe=()=>{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(a,r,i,A){let s=e[a]??null;return s===null?s:{unit:s.unit[r],verb:s.verb[A][i?"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"},o={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 a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Gautas tipas ${A}, o tik\u0117tasi - instanceof ${a.expected}`:`Gautas tipas ${A}, o tik\u0117tasi - ${r}`}case"invalid_value":return a.values.length===1?`Privalo b\u016Bti ${H(a.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${D(a.values,"|")} pasirinkim\u0173`;case"too_big":{let r=o[a.origin]??a.origin,i=t(a.origin,TM(Number(a.maximum)),a.inclusive??!1,"smaller");if(i?.verb)return`${zg(r??a.origin??"reik\u0161m\u0117")} ${i.verb} ${a.maximum.toString()} ${i.unit??"element\u0173"}`;let A=a.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${zg(r??a.origin??"reik\u0161m\u0117")} turi b\u016Bti ${A} ${a.maximum.toString()} ${i?.unit}`}case"too_small":{let r=o[a.origin]??a.origin,i=t(a.origin,TM(Number(a.minimum)),a.inclusive??!1,"bigger");if(i?.verb)return`${zg(r??a.origin??"reik\u0161m\u0117")} ${i.verb} ${a.minimum.toString()} ${i.unit??"element\u0173"}`;let A=a.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${zg(r??a.origin??"reik\u0161m\u0117")} turi b\u016Bti ${A} ${a.minimum.toString()} ${i?.unit}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${r.prefix}"`:r.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${r.suffix}"`:r.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${r.includes}"`:r.format==="regex"?`Eilut\u0117 privalo atitikti ${r.pattern}`:`Neteisingas ${n[r.format]??a.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${a.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${a.keys.length>1?"i":"as"} rakt${a.keys.length>1?"ai":"as"}: ${D(a.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let r=o[a.origin]??a.origin;return`${zg(r??a.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function UM(){return{localeError:ioe()}}var Aoe=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${a.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${A}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${A}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${H(a.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 ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${r}${a.maximum.toString()} ${i.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 ${a.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin} \u0434\u0430 \u0438\u043C\u0430 ${r}${a.minimum.toString()} ${i.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.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 "${r.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}"`:r.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 ${r.pattern}`:`Invalid ${n[r.format]??a.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 ${a.divisor}`;case"unrecognized_keys":return`${a.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"}: ${D(a.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${a.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 ${a.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function OM(){return{localeError:Aoe()}}var soe=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(a){return e[a]??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"},o={nan:"NaN",number:"nombor"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Input tidak sah: dijangka instanceof ${a.expected}, diterima ${A}`:`Input tidak sah: dijangka ${r}, diterima ${A}`}case"invalid_value":return a.values.length===1?`Input tidak sah: dijangka ${H(a.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Terlalu besar: dijangka ${a.origin??"nilai"} ${i.verb} ${r}${a.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: dijangka ${a.origin??"nilai"} adalah ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Terlalu kecil: dijangka ${a.origin} ${i.verb} ${r}${a.minimum.toString()} ${i.unit}`:`Terlalu kecil: dijangka ${a.origin} adalah ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`String tidak sah: mesti bermula dengan "${r.prefix}"`:r.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${r.suffix}"`:r.format==="includes"?`String tidak sah: mesti mengandungi "${r.includes}"`:r.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${r.pattern}`:`${n[r.format]??a.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${a.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${D(a.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${a.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${a.origin}`;default:return"Input tidak sah"}}};function qM(){return{localeError:soe()}}var coe=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(a){return e[a]??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"},o={nan:"NaN",number:"getal"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Ongeldige invoer: verwacht instanceof ${a.expected}, ontving ${A}`:`Ongeldige invoer: verwacht ${r}, ontving ${A}`}case"invalid_value":return a.values.length===1?`Ongeldige invoer: verwacht ${H(a.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin),A=a.origin==="date"?"laat":a.origin==="string"?"lang":"groot";return i?`Te ${A}: verwacht dat ${a.origin??"waarde"} ${r}${a.maximum.toString()} ${i.unit??"elementen"} ${i.verb}`:`Te ${A}: verwacht dat ${a.origin??"waarde"} ${r}${a.maximum.toString()} is`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin),A=a.origin==="date"?"vroeg":a.origin==="string"?"kort":"klein";return i?`Te ${A}: verwacht dat ${a.origin} ${r}${a.minimum.toString()} ${i.unit} ${i.verb}`:`Te ${A}: verwacht dat ${a.origin} ${r}${a.minimum.toString()} is`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ongeldige tekst: moet met "${r.prefix}" beginnen`:r.format==="ends_with"?`Ongeldige tekst: moet op "${r.suffix}" eindigen`:r.format==="includes"?`Ongeldige tekst: moet "${r.includes}" bevatten`:r.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${r.pattern}`:`Ongeldig: ${n[r.format]??a.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${a.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${a.keys.length>1?"s":""}: ${D(a.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${a.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${a.origin}`;default:return"Ongeldige invoer"}}};function zM(){return{localeError:coe()}}var uoe=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"tall",array:"liste"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Ugyldig input: forventet instanceof ${a.expected}, fikk ${A}`:`Ugyldig input: forventet ${r}, fikk ${A}`}case"invalid_value":return a.values.length===1?`Ugyldig verdi: forventet ${H(a.values[0])}`:`Ugyldig valg: forventet en av ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`For stor(t): forventet ${a.origin??"value"} til \xE5 ha ${r}${a.maximum.toString()} ${i.unit??"elementer"}`:`For stor(t): forventet ${a.origin??"value"} til \xE5 ha ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`For lite(n): forventet ${a.origin} til \xE5 ha ${r}${a.minimum.toString()} ${i.unit}`:`For lite(n): forventet ${a.origin} til \xE5 ha ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${r.prefix}"`:r.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${r.suffix}"`:r.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${r.includes}"`:r.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${r.pattern}`:`Ugyldig ${n[r.format]??a.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${D(a.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${a.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${a.origin}`;default:return"Ugyldig input"}}};function YM(){return{localeError:uoe()}}var doe=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`F\xE2sit giren: umulan instanceof ${a.expected}, al\u0131nan ${A}`:`F\xE2sit giren: umulan ${r}, al\u0131nan ${A}`}case"invalid_value":return a.values.length===1?`F\xE2sit giren: umulan ${H(a.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Fazla b\xFCy\xFCk: ${a.origin??"value"}, ${r}${a.maximum.toString()} ${i.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${a.origin??"value"}, ${r}${a.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Fazla k\xFC\xE7\xFCk: ${a.origin}, ${r}${a.minimum.toString()} ${i.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${a.origin}, ${r}${a.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let r=a;return r.format==="starts_with"?`F\xE2sit metin: "${r.prefix}" ile ba\u015Flamal\u0131.`:r.format==="ends_with"?`F\xE2sit metin: "${r.suffix}" ile bitmeli.`:r.format==="includes"?`F\xE2sit metin: "${r.includes}" ihtiv\xE2 etmeli.`:r.format==="regex"?`F\xE2sit metin: ${r.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[r.format]??a.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${a.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${a.keys.length>1?"s":""}: ${D(a.keys,", ")}`;case"invalid_key":return`${a.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${a.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function KM(){return{localeError:doe()}}var loe=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${a.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${A} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${r} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${A} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return a.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${H(a.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${D(a.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${a.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${r}${a.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${a.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${r}${a.maximum.toString()} \u0648\u064A`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${a.origin} \u0628\u0627\u06CC\u062F ${r}${a.minimum.toString()} ${i.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${a.origin} \u0628\u0627\u06CC\u062F ${r}${a.minimum.toString()} \u0648\u064A`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${r.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:r.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${r.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:r.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${r.includes}" \u0648\u0644\u0631\u064A`:r.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${r.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[r.format]??a.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${a.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${a.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${D(a.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${a.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 ${a.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function JM(){return{localeError:loe()}}var poe=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"liczba",array:"tablica"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${a.expected}, otrzymano ${A}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${r}, otrzymano ${A}`}case"invalid_value":return a.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${H(a.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${a.maximum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${a.minimum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${r.prefix}"`:r.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${r.suffix}"`:r.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${r.includes}"`:r.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${r.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[r.format]??a.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${a.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${a.keys.length>1?"s":""}: ${D(a.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${a.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${a.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function WM(){return{localeError:poe()}}var goe=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(a){return e[a]??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"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Tipo inv\xE1lido: esperado instanceof ${a.expected}, recebido ${A}`:`Tipo inv\xE1lido: esperado ${r}, recebido ${A}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: esperado ${H(a.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Muito grande: esperado que ${a.origin??"valor"} tivesse ${r}${a.maximum.toString()} ${i.unit??"elementos"}`:`Muito grande: esperado que ${a.origin??"valor"} fosse ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Muito pequeno: esperado que ${a.origin} tivesse ${r}${a.minimum.toString()} ${i.unit}`:`Muito pequeno: esperado que ${a.origin} fosse ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${r.prefix}"`:r.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${r.suffix}"`:r.format==="includes"?`Texto inv\xE1lido: deve incluir "${r.includes}"`:r.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${r.pattern}`:`${n[r.format]??a.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":return`Chave${a.keys.length>1?"s":""} desconhecida${a.keys.length>1?"s":""}: ${D(a.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${a.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${a.origin}`;default:return"Campo inv\xE1lido"}}};function ZM(){return{localeError:goe()}}var moe=()=>{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(a){return e[a]??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"},o={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 a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return`Intrare invalid\u0103: a\u0219teptat ${r}, primit ${A}`}case"invalid_value":return a.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${H(a.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Prea mare: a\u0219teptat ca ${a.origin??"valoarea"} ${i.verb} ${r}${a.maximum.toString()} ${i.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${a.origin??"valoarea"} s\u0103 fie ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Prea mic: a\u0219teptat ca ${a.origin} ${i.verb} ${r}${a.minimum.toString()} ${i.unit}`:`Prea mic: a\u0219teptat ca ${a.origin} s\u0103 fie ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${r.prefix}"`:r.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${r.suffix}"`:r.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${r.includes}"`:r.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${r.pattern}`:`Format invalid: ${n[r.format]??a.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${a.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${D(a.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${a.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${a.origin}`;default:return"Intrare invalid\u0103"}}};function VM(){return{localeError:moe()}}function XM(e,t,n,o){let a=Math.abs(e),r=a%10,i=a%100;return i>=11&&i<=19?o:r===1?t:r>=2&&r<=4?n:o}var foe=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${a.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${A}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${r}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${A}`}case"invalid_value":return a.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${H(a.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 ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);if(i){let A=Number(a.maximum),s=XM(A,i.unit.one,i.unit.few,i.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 ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${r}${a.maximum.toString()} ${s}`}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 ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);if(i){let A=Number(a.minimum),s=XM(A,i.unit.one,i.unit.few,i.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 ${a.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${r}${a.minimum.toString()} ${s}`}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 ${a.origin} \u0431\u0443\u0434\u0435\u0442 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.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 "${r.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}"`:r.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 ${r.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[r.format]??a.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 ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${a.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${a.keys.length>1?"\u0438":""}: ${D(a.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${a.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 ${a.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 e$(){return{localeError:foe()}}var boe=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(a){return e[a]??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"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${a.expected}, prejeto ${A}`:`Neveljaven vnos: pri\u010Dakovano ${r}, prejeto ${A}`}case"invalid_value":return a.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${H(a.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Preveliko: pri\u010Dakovano, da bo ${a.origin??"vrednost"} imelo ${r}${a.maximum.toString()} ${i.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${a.origin??"vrednost"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Premajhno: pri\u010Dakovano, da bo ${a.origin} imelo ${r}${a.minimum.toString()} ${i.unit}`:`Premajhno: pri\u010Dakovano, da bo ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${r.prefix}"`:r.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${r.suffix}"`:r.format==="includes"?`Neveljaven niz: mora vsebovati "${r.includes}"`:r.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${r.pattern}`:`Neveljaven ${n[r.format]??a.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${a.divisor}`;case"unrecognized_keys":return`Neprepoznan${a.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${D(a.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${a.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${a.origin}`;default:return"Neveljaven vnos"}}};function t$(){return{localeError:boe()}}var hoe=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"antal",array:"lista"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${a.expected}, fick ${A}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${r}, fick ${A}`}case"invalid_value":return a.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${H(a.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`F\xF6r stor(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${r}${a.maximum.toString()} ${i.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${a.origin??"v\xE4rdet"} att ha ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`F\xF6r lite(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${r}${a.minimum.toString()} ${i.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${r.prefix}"`:r.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${r.suffix}"`:r.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${r.includes}"`:r.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${r.pattern}"`:`Ogiltig(t) ${n[r.format]??a.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${D(a.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${a.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${a.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function n$(){return{localeError:hoe()}}var Boe=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.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 ${a.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${A}`:`\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 ${r}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${A}`}case"invalid_value":return a.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 ${H(a.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 ${D(a.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\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 ${a.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${r}${a.maximum.toString()} ${i.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 ${a.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${r}${a.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\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 ${a.origin} ${r}${a.minimum.toString()} ${i.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 ${a.origin} ${r}${a.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${r.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[r.format]??a.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${a.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${a.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${D(a.keys,", ")}`;case"invalid_key":return`${a.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`${a.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 a$(){return{localeError:Boe()}}var yoe=()=>{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(a){return e[a]??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"},o={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 a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.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 ${a.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${A}`:`\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 ${r} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${A}`}case"invalid_value":return a.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${H(a.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 ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",i=t(a.origin);return i?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${a.maximum.toString()} ${i.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",i=t(a.origin);return i?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${a.minimum.toString()} ${i.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.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 "${r.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:r.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 ${r.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[r.format]??a.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 ${a.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: ${D(a.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${a.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 ${a.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function o$(){return{localeError:yoe()}}var Coe=()=>{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(a){return e[a]??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"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${a.expected}, al\u0131nan ${A}`:`Ge\xE7ersiz de\u011Fer: beklenen ${r}, al\u0131nan ${A}`}case"invalid_value":return a.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${H(a.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\xC7ok b\xFCy\xFCk: beklenen ${a.origin??"de\u011Fer"} ${r}${a.maximum.toString()} ${i.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${a.origin??"de\u011Fer"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\xC7ok k\xFC\xE7\xFCk: beklenen ${a.origin} ${r}${a.minimum.toString()} ${i.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ge\xE7ersiz metin: "${r.prefix}" ile ba\u015Flamal\u0131`:r.format==="ends_with"?`Ge\xE7ersiz metin: "${r.suffix}" ile bitmeli`:r.format==="includes"?`Ge\xE7ersiz metin: "${r.includes}" i\xE7ermeli`:r.format==="regex"?`Ge\xE7ersiz metin: ${r.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[r.format]??a.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${a.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${a.keys.length>1?"lar":""}: ${D(a.keys,", ")}`;case"invalid_key":return`${a.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${a.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function r$(){return{localeError:Coe()}}var woe=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.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 ${a.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${A}`:`\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 ${r}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${A}`}case"invalid_value":return a.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 ${H(a.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 ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\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 ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${i.verb} ${r}${a.maximum.toString()} ${i.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 ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin} ${i.verb} ${r}${a.minimum.toString()} ${i.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin} \u0431\u0443\u0434\u0435 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.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 "${r.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}"`:r.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 ${r.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[r.format]??a.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 ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${a.keys.length>1?"\u0456":""}: ${D(a.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${a.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 ${a.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 IB(){return{localeError:woe()}}function i$(){return IB()}var Eoe=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${a.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${A} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${r} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${A} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return a.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${H(a.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${D(a.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${a.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${r}${a.maximum.toString()} ${i.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${a.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${r}${a.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${a.origin} \u06A9\u06D2 ${r}${a.minimum.toString()} ${i.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${a.origin} \u06A9\u0627 ${r}${a.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${r.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${a.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${a.keys.length>1?"\u0632":""}: ${D(a.keys,"\u060C ")}`;case"invalid_key":return`${a.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${a.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function A$(){return{localeError:Eoe()}}var koe=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"raqam",array:"massiv"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${a.expected}, qabul qilingan ${A}`:`Noto\u2018g\u2018ri kirish: kutilgan ${r}, qabul qilingan ${A}`}case"invalid_value":return a.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${H(a.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Juda katta: kutilgan ${a.origin??"qiymat"} ${r}${a.maximum.toString()} ${i.unit} ${i.verb}`:`Juda katta: kutilgan ${a.origin??"qiymat"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Juda kichik: kutilgan ${a.origin} ${r}${a.minimum.toString()} ${i.unit} ${i.verb}`:`Juda kichik: kutilgan ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${r.prefix}" bilan boshlanishi kerak`:r.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${r.suffix}" bilan tugashi kerak`:r.format==="includes"?`Noto\u2018g\u2018ri satr: "${r.includes}" ni o\u2018z ichiga olishi kerak`:r.format==="regex"?`Noto\u2018g\u2018ri satr: ${r.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[r.format]??a.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${a.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${a.keys.length>1?"lar":""}: ${D(a.keys,", ")}`;case"invalid_key":return`${a.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${a.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function s$(){return{localeError:koe()}}var Qoe=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${a.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${A}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${r}, nh\u1EADn \u0111\u01B0\u1EE3c ${A}`}case"invalid_value":return a.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${H(a.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${a.origin??"gi\xE1 tr\u1ECB"} ${i.verb} ${r}${a.maximum.toString()} ${i.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${a.origin??"gi\xE1 tr\u1ECB"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${a.origin} ${i.verb} ${r}${a.minimum.toString()} ${i.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${r.prefix}"`:r.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${r.suffix}"`:r.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${r.includes}"`:r.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${r.pattern}`:`${n[r.format]??a.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 ${a.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${D(a.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${a.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 ${a.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function c$(){return{localeError:Qoe()}}var Ioe=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${a.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${A}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${r}\uFF0C\u5B9E\u9645\u63A5\u6536 ${A}`}case"invalid_value":return a.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${H(a.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${a.origin??"\u503C"} ${r}${a.maximum.toString()} ${i.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${a.origin??"\u503C"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${a.origin} ${r}${a.minimum.toString()} ${i.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${r.prefix}" \u5F00\u5934`:r.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${r.suffix}" \u7ED3\u5C3E`:r.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${r.includes}"`:r.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${r.pattern}`:`\u65E0\u6548${n[r.format]??a.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${a.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${D(a.keys,", ")}`;case"invalid_key":return`${a.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${a.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function u$(){return{localeError:Ioe()}}var voe=()=>{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(a){return e[a]??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"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${a.expected}\uFF0C\u4F46\u6536\u5230 ${A}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${r}\uFF0C\u4F46\u6536\u5230 ${A}`}case"invalid_value":return a.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${H(a.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${a.origin??"\u503C"} \u61C9\u70BA ${r}${a.maximum.toString()} ${i.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${a.origin??"\u503C"} \u61C9\u70BA ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${a.origin} \u61C9\u70BA ${r}${a.minimum.toString()} ${i.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${a.origin} \u61C9\u70BA ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${r.prefix}" \u958B\u982D`:r.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${r.suffix}" \u7D50\u5C3E`:r.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${r.includes}"`:r.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${r.pattern}`:`\u7121\u6548\u7684 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${a.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${a.keys.length>1?"\u5011":""}\uFF1A${D(a.keys,"\u3001")}`;case"invalid_key":return`${a.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${a.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function d$(){return{localeError:voe()}}var _oe=()=>{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(a){return e[a]??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"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=T(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${a.expected}, \xE0m\u1ECD\u0300 a r\xED ${A}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${r}, \xE0m\u1ECD\u0300 a r\xED ${A}`}case"invalid_value":return a.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${H(a.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${D(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${a.origin??"iye"} ${i.verb} ${r}${a.maximum} ${i.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${r}${a.maximum}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${a.origin} ${i.verb} ${r}${a.minimum} ${i.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${r}${a.minimum}`}case"invalid_format":{let r=a;return r.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 "${r.prefix}"`:r.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${r.suffix}"`:r.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${r.includes}"`:r.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${r.pattern}`:`A\u1E63\xEC\u1E63e: ${n[r.format]??a.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 ${a.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${D(a.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${a.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 ${a.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function l$(){return{localeError:_oe()}}var p$,d_=Symbol("ZodOutput"),l_=Symbol("ZodInput"),vB=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.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 o={...this.get(n)??{}};delete o.id;let a={...o,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function _B(){return new vB}(p$=globalThis).__zod_globalRegistry??(p$.__zod_globalRegistry=_B());var ua=globalThis.__zod_globalRegistry;function p_(e,t){return new e({type:"string",...Y(t)})}function g_(e,t){return new e({type:"string",coerce:!0,...Y(t)})}function xB(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Y(t)})}function Kg(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Y(t)})}function DB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Y(t)})}function FB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Y(t)})}function SB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Y(t)})}function LB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Y(t)})}function Jg(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Y(t)})}function RB(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Y(t)})}function NB(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Y(t)})}function MB(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Y(t)})}function $B(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Y(t)})}function jB(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Y(t)})}function PB(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Y(t)})}function GB(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Y(t)})}function HB(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Y(t)})}function TB(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Y(t)})}function m_(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...Y(t)})}function UB(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Y(t)})}function OB(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Y(t)})}function qB(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Y(t)})}function zB(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Y(t)})}function YB(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Y(t)})}function KB(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Y(t)})}var f_={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function b_(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Y(t)})}function h_(e,t){return new e({type:"string",format:"date",check:"string_format",...Y(t)})}function B_(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Y(t)})}function y_(e,t){return new e({type:"string",format:"duration",check:"string_format",...Y(t)})}function C_(e,t){return new e({type:"number",checks:[],...Y(t)})}function w_(e,t){return new e({type:"number",coerce:!0,checks:[],...Y(t)})}function E_(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Y(t)})}function k_(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...Y(t)})}function Q_(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...Y(t)})}function I_(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...Y(t)})}function v_(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...Y(t)})}function __(e,t){return new e({type:"boolean",...Y(t)})}function x_(e,t){return new e({type:"boolean",coerce:!0,...Y(t)})}function D_(e,t){return new e({type:"bigint",...Y(t)})}function F_(e,t){return new e({type:"bigint",coerce:!0,...Y(t)})}function S_(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...Y(t)})}function L_(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...Y(t)})}function R_(e,t){return new e({type:"symbol",...Y(t)})}function N_(e,t){return new e({type:"undefined",...Y(t)})}function M_(e,t){return new e({type:"null",...Y(t)})}function $_(e){return new e({type:"any"})}function j_(e){return new e({type:"unknown"})}function P_(e,t){return new e({type:"never",...Y(t)})}function G_(e,t){return new e({type:"void",...Y(t)})}function H_(e,t){return new e({type:"date",...Y(t)})}function T_(e,t){return new e({type:"date",coerce:!0,...Y(t)})}function U_(e,t){return new e({type:"nan",...Y(t)})}function yi(e,t){return new pB({check:"less_than",...Y(t),value:e,inclusive:!1})}function Lo(e,t){return new pB({check:"less_than",...Y(t),value:e,inclusive:!0})}function Ci(e,t){return new gB({check:"greater_than",...Y(t),value:e,inclusive:!1})}function Pa(e,t){return new gB({check:"greater_than",...Y(t),value:e,inclusive:!0})}function JB(e){return Ci(0,e)}function WB(e){return yi(0,e)}function ZB(e){return Lo(0,e)}function VB(e){return Pa(0,e)}function Fs(e,t){return new MI({check:"multiple_of",...Y(t),value:e})}function Ss(e,t){return new PI({check:"max_size",...Y(t),maximum:e})}function wi(e,t){return new GI({check:"min_size",...Y(t),minimum:e})}function Tc(e,t){return new HI({check:"size_equals",...Y(t),size:e})}function Uc(e,t){return new TI({check:"max_length",...Y(t),maximum:e})}function kA(e,t){return new UI({check:"min_length",...Y(t),minimum:e})}function Oc(e,t){return new OI({check:"length_equals",...Y(t),length:e})}function nl(e,t){return new qI({check:"string_format",format:"regex",...Y(t),pattern:e})}function al(e){return new zI({check:"string_format",format:"lowercase",...Y(e)})}function ol(e){return new YI({check:"string_format",format:"uppercase",...Y(e)})}function rl(e,t){return new KI({check:"string_format",format:"includes",...Y(t),includes:e})}function il(e,t){return new JI({check:"string_format",format:"starts_with",...Y(t),prefix:e})}function Al(e,t){return new WI({check:"string_format",format:"ends_with",...Y(t),suffix:e})}function XB(e,t,n){return new ZI({check:"property",property:e,schema:t,...Y(n)})}function sl(e,t){return new VI({check:"mime_type",mime:e,...Y(t)})}function Nr(e){return new XI({check:"overwrite",tx:e})}function cl(e){return Nr(t=>t.normalize(e))}function ul(){return Nr(e=>e.trim())}function dl(){return Nr(e=>e.toLowerCase())}function ll(){return Nr(e=>e.toUpperCase())}function pl(){return Nr(e=>JQ(e))}function O_(e,t,n){return new e({type:"array",element:t,...Y(n)})}function Doe(e,t,n){return new e({type:"union",options:t,...Y(n)})}function Foe(e,t,n){return new e({type:"union",options:t,inclusive:!1,...Y(n)})}function Soe(e,t,n,o){return new e({type:"union",options:n,discriminator:t,...Y(o)})}function Loe(e,t,n){return new e({type:"intersection",left:t,right:n})}function Roe(e,t,n,o){let a=n instanceof me,r=a?o:n,i=a?n:null;return new e({type:"tuple",items:t,rest:i,...Y(r)})}function Noe(e,t,n,o){return new e({type:"record",keyType:t,valueType:n,...Y(o)})}function Moe(e,t,n,o){return new e({type:"map",keyType:t,valueType:n,...Y(o)})}function $oe(e,t,n){return new e({type:"set",valueType:t,...Y(n)})}function joe(e,t,n){let o=Array.isArray(t)?Object.fromEntries(t.map(a=>[a,a])):t;return new e({type:"enum",entries:o,...Y(n)})}function Poe(e,t,n){return new e({type:"enum",entries:t,...Y(n)})}function Goe(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...Y(n)})}function q_(e,t){return new e({type:"file",...Y(t)})}function Hoe(e,t){return new e({type:"transform",transform:t})}function Toe(e,t){return new e({type:"optional",innerType:t})}function Uoe(e,t){return new e({type:"nullable",innerType:t})}function Ooe(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():ZQ(n)}})}function qoe(e,t,n){return new e({type:"nonoptional",innerType:t,...Y(n)})}function zoe(e,t){return new e({type:"success",innerType:t})}function Yoe(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function Koe(e,t,n){return new e({type:"pipe",in:t,out:n})}function Joe(e,t){return new e({type:"readonly",innerType:t})}function Woe(e,t,n){return new e({type:"template_literal",parts:t,...Y(n)})}function Zoe(e,t){return new e({type:"lazy",getter:t})}function Voe(e,t){return new e({type:"promise",innerType:t})}function z_(e,t,n){let o=Y(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function Y_(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Y(n)})}function K_(e,t){let n=g$(o=>(o.addIssue=a=>{if(typeof a=="string")o.issues.push(Jd(a,o.value,n._zod.def));else{let r=a;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=o.value),r.inst??(r.inst=n),r.continue??(r.continue=!n._zod.def.abort),o.issues.push(Jd(r))}},e(o.value,o)),t);return n}function g$(e,t){let n=new Et({check:"custom",...Y(t)});return n._zod.check=e,n}function J_(e){let t=new Et({check:"describe"});return t._zod.onattach=[n=>{let o=ua.get(n)??{};ua.add(n,{...o,description:e})}],t._zod.check=()=>{},t}function W_(e){let t=new Et({check:"meta"});return t._zod.onattach=[n=>{let o=ua.get(n)??{};ua.add(n,{...o,...e})}],t._zod.check=()=>{},t}function Z_(e,t){let n=Y(t),o=n.truthy??["true","1","yes","on","y","enabled"],a=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(p=>typeof p=="string"?p.toLowerCase():p),a=a.map(p=>typeof p=="string"?p.toLowerCase():p));let r=new Set(o),i=new Set(a),A=e.Codec??qg,s=e.Boolean??Ug,c=e.String??Hc,d=new c({type:"string",error:n.error}),l=new s({type:"boolean",error:n.error}),g=new A({type:"pipe",in:d,out:l,transform:((p,m)=>{let h=p;return n.case!=="sensitive"&&(h=h.toLowerCase()),r.has(h)?!0:i.has(h)?!1:(m.issues.push({code:"invalid_value",expected:"stringbool",values:[...r,...i],input:m.value,inst:g,continue:!1}),{})}),reverseTransform:((p,m)=>p===!0?o[0]||"true":a[0]||"false"),error:n.error});return g}function gl(e,t,n,o={}){let a=Y(o),r={...Y(o),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:A=>n.test(A),...a};return n instanceof RegExp&&(r.pattern=n),new e(r)}function Ls(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??ua,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 at(e,t,n={path:[],schemaPath:[]}){var o;let a=e._zod.def,r=t.seen.get(e);if(r)return r.count++,n.schemaPath.includes(e)&&(r.cycle=n.path),r.schema;let i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);let A=e._zod.toJSONSchema?.();if(A)i.schema=A;else{let d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,d);else{let g=i.schema,p=t.processors[a.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);p(e,t,g,d)}let l=e._zod.parent;l&&(i.ref||(i.ref=l),at(l,t,d),t.seen.get(l).isParent=!0)}let s=t.metadataRegistry.get(e);return s&&Object.assign(i.schema,s),t.io==="input"&&Ga(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&"_prefault"in i.schema&&((o=i.schema).default??(o.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function Rs(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let i of e.seen.entries()){let A=e.metadataRegistry.get(i[0])?.id;if(A){let s=o.get(A);if(s&&s!==i[0])throw new Error(`Duplicate schema id "${A}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(A,i[0])}}let a=i=>{let A=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let l=e.external.registry.get(i[0])?.id,g=e.external.uri??(m=>m);if(l)return{ref:g(l)};let p=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=p,{defId:p,ref:`${g("__shared")}#/${A}/${p}`}}if(i[1]===n)return{ref:"#"};let c=`#/${A}/`,d=i[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:c+d}},r=i=>{if(i[1].schema.$ref)return;let A=i[1],{ref:s,defId:c}=a(i);A.def={...A.schema},c&&(A.defId=c);let d=A.schema;for(let l in d)delete d[l];d.$ref=s};if(e.cycles==="throw")for(let i of e.seen.entries()){let A=i[1];if(A.cycle)throw new Error(`Cycle detected: #/${A.cycle?.join("/")}/<root>
74
74
 
75
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let A=i[1];if(t===i[0]){r(i);continue}if(e.external){let c=e.external.registry.get(i[0])?.id;if(t!==i[0]&&c){r(i);continue}}if(e.metadataRegistry.get(i[0])?.id){r(i);continue}if(A.cycle){r(i);continue}if(A.count>1&&e.reused==="ref"){r(i);continue}}}function Ns(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=A=>{let s=e.seen.get(A);if(s.ref===null)return;let c=s.def??s.schema,d={...c},l=s.ref;if(s.ref=null,l){o(l);let p=e.seen.get(l),m=p.schema;if(m.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(m)):Object.assign(c,m),Object.assign(c,d),A._zod.parent===l)for(let B in c)B==="$ref"||B==="allOf"||B in d||delete c[B];if(m.$ref&&p.def)for(let B in c)B==="$ref"||B==="allOf"||B in p.def&&JSON.stringify(c[B])===JSON.stringify(p.def[B])&&delete c[B]}let g=A._zod.parent;if(g&&g!==l){o(g);let p=e.seen.get(g);if(p?.schema.$ref&&(c.$ref=p.schema.$ref,p.def))for(let m in c)m==="$ref"||m==="allOf"||m in p.def&&JSON.stringify(c[m])===JSON.stringify(p.def[m])&&delete c[m]}e.override({zodSchema:A,jsonSchema:c,path:s.path??[]})};for(let A of[...e.seen.entries()].reverse())o(A[0]);let a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let A=e.external.registry.get(t)?.id;if(!A)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(A)}Object.assign(a,n.def??n.schema);let r=e.metadataRegistry.get(t)?.id;r!==void 0&&a.id===r&&delete a.id;let i=e.external?.defs??{};for(let A of e.seen.entries()){let s=A[1];s.def&&s.defId&&(s.def.id===s.defId&&delete s.def.id,i[s.defId]=s.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?a.$defs=i:a.definitions=i);try{let A=JSON.parse(JSON.stringify(a));return Object.defineProperty(A,"~standard",{value:{...t["~standard"],jsonSchema:{input:ml(t,"input",e.processors),output:ml(t,"output",e.processors)}},enumerable:!1,writable:!1}),A}catch{throw new Error("Error converting schema to JSON.")}}function Ga(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Ga(o.element,n);if(o.type==="set")return Ga(o.valueType,n);if(o.type==="lazy")return Ga(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Ga(o.innerType,n);if(o.type==="intersection")return Ga(o.left,n)||Ga(o.right,n);if(o.type==="record"||o.type==="map")return Ga(o.keyType,n)||Ga(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Ga(o.in,n)||Ga(o.out,n);if(o.type==="object"){for(let a in o.shape)if(Ga(o.shape[a],n))return!0;return!1}if(o.type==="union"){for(let a of o.options)if(Ga(a,n))return!0;return!1}if(o.type==="tuple"){for(let a of o.items)if(Ga(a,n))return!0;return!!(o.rest&&Ga(o.rest,n))}return!1}var V_=(e,t={})=>n=>{let o=Ls({...n,processors:t});return at(e,o),Rs(o,e),Ns(o,e)},ml=(e,t,n={})=>o=>{let{libraryOptions:a,target:r}=o??{},i=Ls({...a??{},target:r,io:t,processors:n});return at(e,i),Rs(i,e),Ns(i,e)};var Xoe={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},X_=(e,t,n,o)=>{let a=n;a.type="string";let{minimum:r,maximum:i,format:A,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof r=="number"&&(a.minLength=r),typeof i=="number"&&(a.maxLength=i),A&&(a.format=Xoe[A]??A,a.format===""&&delete a.format,A==="time"&&delete a.format),c&&(a.contentEncoding=c),s&&s.size>0){let d=[...s];d.length===1?a.pattern=d[0].source:d.length>1&&(a.allOf=[...d.map(l=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:l.source}))])}},ex=(e,t,n,o)=>{let a=n,{minimum:r,maximum:i,format:A,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:d}=e._zod.bag;typeof A=="string"&&A.includes("int")?a.type="integer":a.type="number";let l=typeof d=="number"&&d>=(r??Number.NEGATIVE_INFINITY),g=typeof c=="number"&&c<=(i??Number.POSITIVE_INFINITY),p=t.target==="draft-04"||t.target==="openapi-3.0";l?p?(a.minimum=d,a.exclusiveMinimum=!0):a.exclusiveMinimum=d:typeof r=="number"&&(a.minimum=r),g?p?(a.maximum=c,a.exclusiveMaximum=!0):a.exclusiveMaximum=c:typeof i=="number"&&(a.maximum=i),typeof s=="number"&&(a.multipleOf=s)},tx=(e,t,n,o)=>{n.type="boolean"},nx=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},ax=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},ox=(e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},rx=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},ix=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Ax=(e,t,n,o)=>{n.not={}},sx=(e,t,n,o)=>{},cx=(e,t,n,o)=>{},ux=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},dx=(e,t,n,o)=>{let a=e._zod.def,r=Sg(a.entries);r.every(i=>typeof i=="number")&&(n.type="number"),r.every(i=>typeof i=="string")&&(n.type="string"),n.enum=r},lx=(e,t,n,o)=>{let a=e._zod.def,r=[];for(let i of a.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(i))}else r.push(i);if(r.length!==0)if(r.length===1){let i=r[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else r.every(i=>typeof i=="number")&&(n.type="number"),r.every(i=>typeof i=="string")&&(n.type="string"),r.every(i=>typeof i=="boolean")&&(n.type="boolean"),r.every(i=>i===null)&&(n.type="null"),n.enum=r},px=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},gx=(e,t,n,o)=>{let a=n,r=e._zod.pattern;if(!r)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=r.source},mx=(e,t,n,o)=>{let a=n,r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:A,mime:s}=e._zod.bag;i!==void 0&&(r.minLength=i),A!==void 0&&(r.maxLength=A),s?s.length===1?(r.contentMediaType=s[0],Object.assign(a,r)):(Object.assign(a,r),a.anyOf=s.map(c=>({contentMediaType:c}))):Object.assign(a,r)},fx=(e,t,n,o)=>{n.type="boolean"},bx=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},hx=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Bx=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},yx=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Cx=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},wx=(e,t,n,o)=>{let a=n,r=e._zod.def,{minimum:i,maximum:A}=e._zod.bag;typeof i=="number"&&(a.minItems=i),typeof A=="number"&&(a.maxItems=A),a.type="array",a.items=at(r.element,t,{...o,path:[...o.path,"items"]})},Ex=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object",a.properties={};let i=r.shape;for(let c in i)a.properties[c]=at(i[c],t,{...o,path:[...o.path,"properties",c]});let A=new Set(Object.keys(i)),s=new Set([...A].filter(c=>{let d=r.shape[c]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));s.size>0&&(a.required=Array.from(s)),r.catchall?._zod.def.type==="never"?a.additionalProperties=!1:r.catchall?r.catchall&&(a.additionalProperties=at(r.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},ty=(e,t,n,o)=>{let a=e._zod.def,r=a.inclusive===!1,i=a.options.map((A,s)=>at(A,t,{...o,path:[...o.path,r?"oneOf":"anyOf",s]}));r?n.oneOf=i:n.anyOf=i},kx=(e,t,n,o)=>{let a=e._zod.def,r=at(a.left,t,{...o,path:[...o.path,"allOf",0]}),i=at(a.right,t,{...o,path:[...o.path,"allOf",1]}),A=c=>"allOf"in c&&Object.keys(c).length===1,s=[...A(r)?r.allOf:[r],...A(i)?i.allOf:[i]];n.allOf=s},Qx=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="array";let i=t.target==="draft-2020-12"?"prefixItems":"items",A=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=r.items.map((g,p)=>at(g,t,{...o,path:[...o.path,i,p]})),c=r.rest?at(r.rest,t,{...o,path:[...o.path,A,...t.target==="openapi-3.0"?[r.items.length]:[]]}):null;t.target==="draft-2020-12"?(a.prefixItems=s,c&&(a.items=c)):t.target==="openapi-3.0"?(a.items={anyOf:s},c&&a.items.anyOf.push(c),a.minItems=s.length,c||(a.maxItems=s.length)):(a.items=s,c&&(a.additionalItems=c));let{minimum:d,maximum:l}=e._zod.bag;typeof d=="number"&&(a.minItems=d),typeof l=="number"&&(a.maxItems=l)},Ix=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object";let i=r.keyType,s=i._zod.bag?.patterns;if(r.mode==="loose"&&s&&s.size>0){let d=at(r.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});a.patternProperties={};for(let l of s)a.patternProperties[l.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=at(r.keyType,t,{...o,path:[...o.path,"propertyNames"]})),a.additionalProperties=at(r.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=i._zod.values;if(c){let d=[...c].filter(l=>typeof l=="string"||typeof l=="number");d.length>0&&(a.required=d)}},vx=(e,t,n,o)=>{let a=e._zod.def,r=at(a.innerType,t,o),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=a.innerType,n.nullable=!0):n.anyOf=[r,{type:"null"}]},_x=(e,t,n,o)=>{let a=e._zod.def;at(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},xx=(e,t,n,o)=>{let a=e._zod.def;at(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},Dx=(e,t,n,o)=>{let a=e._zod.def;at(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},Fx=(e,t,n,o)=>{let a=e._zod.def;at(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType;let i;try{i=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},Sx=(e,t,n,o)=>{let a=e._zod.def,r=a.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?r?a.out:a.in:a.out;at(i,t,o);let A=t.seen.get(e);A.ref=i},Lx=(e,t,n,o)=>{let a=e._zod.def;at(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.readOnly=!0},Rx=(e,t,n,o)=>{let a=e._zod.def;at(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},ny=(e,t,n,o)=>{let a=e._zod.def;at(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},Nx=(e,t,n,o)=>{let a=e._zod.innerType;at(a,t,o);let r=t.seen.get(e);r.ref=a},ey={string:X_,number:ex,boolean:tx,bigint:nx,symbol:ax,null:ox,undefined:rx,void:ix,never:Ax,any:sx,unknown:cx,date:ux,enum:dx,literal:lx,nan:px,template_literal:gx,file:mx,success:fx,custom:bx,function:hx,transform:Bx,map:yx,set:Cx,array:wx,object:Ex,union:ty,intersection:kx,tuple:Qx,record:Ix,nullable:vx,nonoptional:_x,default:xx,prefault:Dx,catch:Fx,pipe:Sx,readonly:Lx,promise:Rx,optional:ny,lazy:Nx};function ay(e,t){if("_idmap"in e){let o=e,a=Ls({...t,processors:ey}),r={};for(let s of o._idmap.entries()){let[c,d]=s;at(d,a)}let i={},A={registry:o,uri:t?.uri,defs:r};a.external=A;for(let s of o._idmap.entries()){let[c,d]=s;Rs(a,d),i[c]=Ns(a,d)}if(Object.keys(r).length>0){let s=a.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[s]:r}}return{schemas:i}}let n=Ls({...t,processors:ey});return at(e,n),Rs(n,e),Ns(n,e)}var oy=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=Ls({processors:ey,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 at(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)),Rs(this.ctx,t);let o=Ns(this.ctx,t),{"~standard":a,...r}=o;return r}};var m$={};var Wg={};L(Wg,{ZodAny:()=>rD,ZodArray:()=>cD,ZodBase64:()=>Qy,ZodBase64URL:()=>Iy,ZodBigInt:()=>El,ZodBigIntFormat:()=>xy,ZodBoolean:()=>wl,ZodCIDRv4:()=>Ey,ZodCIDRv6:()=>ky,ZodCUID:()=>fy,ZodCUID2:()=>by,ZodCatch:()=>FD,ZodCodec:()=>sm,ZodCustom:()=>cm,ZodCustomStringFormat:()=>yl,ZodDate:()=>am,ZodDefault:()=>QD,ZodDiscriminatedUnion:()=>dD,ZodE164:()=>vy,ZodEmail:()=>py,ZodEmoji:()=>gy,ZodEnum:()=>hl,ZodExactOptional:()=>wD,ZodFile:()=>yD,ZodFunction:()=>HD,ZodGUID:()=>Vg,ZodIPv4:()=>Cy,ZodIPv6:()=>wy,ZodIntersection:()=>lD,ZodJWT:()=>_y,ZodKSUID:()=>yy,ZodLazy:()=>jD,ZodLiteral:()=>BD,ZodMAC:()=>Vx,ZodMap:()=>bD,ZodNaN:()=>LD,ZodNanoID:()=>my,ZodNever:()=>AD,ZodNonOptional:()=>Ny,ZodNull:()=>aD,ZodNullable:()=>kD,ZodNumber:()=>Cl,ZodNumberFormat:()=>zc,ZodObject:()=>rm,ZodOptional:()=>Ry,ZodPipe:()=>Am,ZodPrefault:()=>vD,ZodPreprocess:()=>RD,ZodPromise:()=>GD,ZodReadonly:()=>ND,ZodRecord:()=>bl,ZodSet:()=>hD,ZodString:()=>Bl,ZodStringFormat:()=>ht,ZodSuccess:()=>DD,ZodSymbol:()=>tD,ZodTemplateLiteral:()=>$D,ZodTransform:()=>CD,ZodTuple:()=>gD,ZodType:()=>Ce,ZodULID:()=>hy,ZodURL:()=>nm,ZodUUID:()=>Ei,ZodUndefined:()=>nD,ZodUnion:()=>im,ZodUnknown:()=>iD,ZodVoid:()=>sD,ZodXID:()=>By,ZodXor:()=>uD,_ZodString:()=>ly,_default:()=>ID,_function:()=>kj,any:()=>tj,array:()=>om,base64:()=>j$,base64url:()=>P$,bigint:()=>W$,boolean:()=>eD,catch:()=>SD,check:()=>Qj,cidrv4:()=>M$,cidrv6:()=>$$,codec:()=>yj,cuid:()=>_$,cuid2:()=>x$,custom:()=>Ij,date:()=>aj,describe:()=>vj,discriminatedUnion:()=>cj,e164:()=>G$,email:()=>h$,emoji:()=>I$,enum:()=>Sy,exactOptional:()=>ED,file:()=>fj,float32:()=>z$,float64:()=>Y$,function:()=>kj,guid:()=>B$,hash:()=>q$,hex:()=>O$,hostname:()=>U$,httpUrl:()=>Q$,instanceof:()=>xj,int:()=>uy,int32:()=>K$,int64:()=>Z$,intersection:()=>pD,invertCodec:()=>Cj,ipv4:()=>L$,ipv6:()=>N$,json:()=>Fj,jwt:()=>H$,keyof:()=>oj,ksuid:()=>S$,lazy:()=>PD,literal:()=>mj,looseObject:()=>Aj,looseRecord:()=>dj,mac:()=>R$,map:()=>lj,meta:()=>_j,nan:()=>Bj,nanoid:()=>v$,nativeEnum:()=>gj,never:()=>Dy,nonoptional:()=>xD,null:()=>oD,nullable:()=>em,nullish:()=>bj,number:()=>Xx,object:()=>rj,optional:()=>Xg,partialRecord:()=>uj,pipe:()=>dy,prefault:()=>_D,preprocess:()=>Sj,promise:()=>Ej,readonly:()=>MD,record:()=>fD,refine:()=>TD,set:()=>pj,strictObject:()=>ij,string:()=>Zg,stringFormat:()=>T$,stringbool:()=>Dj,success:()=>hj,superRefine:()=>UD,symbol:()=>X$,templateLiteral:()=>wj,transform:()=>Ly,tuple:()=>mD,uint32:()=>J$,uint64:()=>V$,ulid:()=>D$,undefined:()=>ej,union:()=>Fy,unknown:()=>qc,url:()=>k$,uuid:()=>y$,uuidv4:()=>C$,uuidv6:()=>w$,uuidv7:()=>E$,void:()=>nj,xid:()=>F$,xor:()=>sj});var ry={};L(ry,{endsWith:()=>Al,gt:()=>Ci,gte:()=>Pa,includes:()=>rl,length:()=>Oc,lowercase:()=>al,lt:()=>yi,lte:()=>Lo,maxLength:()=>Uc,maxSize:()=>Ss,mime:()=>sl,minLength:()=>kA,minSize:()=>wi,multipleOf:()=>Fs,negative:()=>WB,nonnegative:()=>VB,nonpositive:()=>ZB,normalize:()=>cl,overwrite:()=>Nr,positive:()=>JB,property:()=>XB,regex:()=>nl,size:()=>Tc,slugify:()=>pl,startsWith:()=>il,toLowerCase:()=>dl,toUpperCase:()=>ll,trim:()=>ul,uppercase:()=>ol});var fl={};L(fl,{ZodISODate:()=>Ay,ZodISODateTime:()=>iy,ZodISODuration:()=>cy,ZodISOTime:()=>sy,date:()=>$x,datetime:()=>Mx,duration:()=>Px,time:()=>jx});var iy=I("ZodISODateTime",(e,t)=>{pv.init(e,t),ht.init(e,t)});function Mx(e){return b_(iy,e)}var Ay=I("ZodISODate",(e,t)=>{gv.init(e,t),ht.init(e,t)});function $x(e){return h_(Ay,e)}var sy=I("ZodISOTime",(e,t)=>{mv.init(e,t),ht.init(e,t)});function jx(e){return B_(sy,e)}var cy=I("ZodISODuration",(e,t)=>{fv.init(e,t),ht.init(e,t)});function Px(e){return y_(cy,e)}var f$=(e,t)=>{$g.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Pg(e,n)},flatten:{value:n=>jg(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Yd,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Yd,2)}},isEmpty:{get(){return e.issues.length===0}}})},tre=I("ZodError",f$),uo=I("ZodError",f$,{Parent:Error});var Gx=Wd(uo),Hx=Zd(uo),Tx=Vd(uo),Ux=Xd(uo),Ox=aB(uo),qx=oB(uo),zx=rB(uo),Yx=iB(uo),Kx=AB(uo),Jx=sB(uo),Wx=cB(uo),Zx=uB(uo);var b$=new WeakMap;function tm(e,t,n){let o=Object.getPrototypeOf(e),a=b$.get(o);if(a||(a=new Set,b$.set(o,a)),!a.has(t)){a.add(t);for(let r in n){let i=n[r];Object.defineProperty(o,r,{configurable:!0,enumerable:!1,get(){let A=i.bind(this);return Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:A}),A},set(A){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:A})}})}}}var Ce=I("ZodType",(e,t)=>(me.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:ml(e,"input"),output:ml(e,"output")}}),e.toJSONSchema=V_(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>Gx(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Tx(e,n,o),e.parseAsync=async(n,o)=>Hx(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Ux(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Ox(e,n,o),e.decode=(n,o)=>qx(e,n,o),e.encodeAsync=async(n,o)=>zx(e,n,o),e.decodeAsync=async(n,o)=>Yx(e,n,o),e.safeEncode=(n,o)=>Kx(e,n,o),e.safeDecode=(n,o)=>Jx(e,n,o),e.safeEncodeAsync=async(n,o)=>Wx(e,n,o),e.safeDecodeAsync=async(n,o)=>Zx(e,n,o),tm(e,"ZodType",{check(...n){let o=this.def;return this.clone(U.mergeDefs(o,{checks:[...o.checks??[],...n.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return $a(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(TD(n,o))},superRefine(n,o){return this.check(UD(n,o))},overwrite(n){return this.check(Nr(n))},optional(){return Xg(this)},exactOptional(){return ED(this)},nullable(){return em(this)},nullish(){return Xg(em(this))},nonoptional(n){return xD(this,n)},array(){return om(this)},or(n){return Fy([this,n])},and(n){return pD(this,n)},transform(n){return dy(this,Ly(n))},default(n){return ID(this,n)},prefault(n){return _D(this,n)},catch(n){return SD(this,n)},pipe(n){return dy(this,n)},readonly(){return MD(this)},describe(n){let o=this.clone();return ua.add(o,{description:n}),o},meta(...n){if(n.length===0)return ua.get(this);let o=this.clone();return ua.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return ua.get(e)?.description},configurable:!0}),e)),ly=I("_ZodString",(e,t)=>{Hc.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(o,a,r)=>X_(e,o,a,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,tm(e,"_ZodString",{regex(...o){return this.check(nl(...o))},includes(...o){return this.check(rl(...o))},startsWith(...o){return this.check(il(...o))},endsWith(...o){return this.check(Al(...o))},min(...o){return this.check(kA(...o))},max(...o){return this.check(Uc(...o))},length(...o){return this.check(Oc(...o))},nonempty(...o){return this.check(kA(1,...o))},lowercase(o){return this.check(al(o))},uppercase(o){return this.check(ol(o))},trim(){return this.check(ul())},normalize(...o){return this.check(cl(...o))},toLowerCase(){return this.check(dl())},toUpperCase(){return this.check(ll())},slugify(){return this.check(pl())}})}),Bl=I("ZodString",(e,t)=>{Hc.init(e,t),ly.init(e,t),e.email=n=>e.check(xB(py,n)),e.url=n=>e.check(Jg(nm,n)),e.jwt=n=>e.check(KB(_y,n)),e.emoji=n=>e.check(RB(gy,n)),e.guid=n=>e.check(Kg(Vg,n)),e.uuid=n=>e.check(DB(Ei,n)),e.uuidv4=n=>e.check(FB(Ei,n)),e.uuidv6=n=>e.check(SB(Ei,n)),e.uuidv7=n=>e.check(LB(Ei,n)),e.nanoid=n=>e.check(NB(my,n)),e.guid=n=>e.check(Kg(Vg,n)),e.cuid=n=>e.check(MB(fy,n)),e.cuid2=n=>e.check($B(by,n)),e.ulid=n=>e.check(jB(hy,n)),e.base64=n=>e.check(qB(Qy,n)),e.base64url=n=>e.check(zB(Iy,n)),e.xid=n=>e.check(PB(By,n)),e.ksuid=n=>e.check(GB(yy,n)),e.ipv4=n=>e.check(HB(Cy,n)),e.ipv6=n=>e.check(TB(wy,n)),e.cidrv4=n=>e.check(UB(Ey,n)),e.cidrv6=n=>e.check(OB(ky,n)),e.e164=n=>e.check(YB(vy,n)),e.datetime=n=>e.check(Mx(n)),e.date=n=>e.check($x(n)),e.time=n=>e.check(jx(n)),e.duration=n=>e.check(Px(n))});function Zg(e){return p_(Bl,e)}var ht=I("ZodStringFormat",(e,t)=>{bt.init(e,t),ly.init(e,t)}),py=I("ZodEmail",(e,t)=>{ov.init(e,t),ht.init(e,t)});function h$(e){return xB(py,e)}var Vg=I("ZodGUID",(e,t)=>{nv.init(e,t),ht.init(e,t)});function B$(e){return Kg(Vg,e)}var Ei=I("ZodUUID",(e,t)=>{av.init(e,t),ht.init(e,t)});function y$(e){return DB(Ei,e)}function C$(e){return FB(Ei,e)}function w$(e){return SB(Ei,e)}function E$(e){return LB(Ei,e)}var nm=I("ZodURL",(e,t)=>{rv.init(e,t),ht.init(e,t)});function k$(e){return Jg(nm,e)}function Q$(e){return Jg(nm,{protocol:So.httpProtocol,hostname:So.domain,...U.normalizeParams(e)})}var gy=I("ZodEmoji",(e,t)=>{iv.init(e,t),ht.init(e,t)});function I$(e){return RB(gy,e)}var my=I("ZodNanoID",(e,t)=>{Av.init(e,t),ht.init(e,t)});function v$(e){return NB(my,e)}var fy=I("ZodCUID",(e,t)=>{sv.init(e,t),ht.init(e,t)});function _$(e){return MB(fy,e)}var by=I("ZodCUID2",(e,t)=>{cv.init(e,t),ht.init(e,t)});function x$(e){return $B(by,e)}var hy=I("ZodULID",(e,t)=>{uv.init(e,t),ht.init(e,t)});function D$(e){return jB(hy,e)}var By=I("ZodXID",(e,t)=>{dv.init(e,t),ht.init(e,t)});function F$(e){return PB(By,e)}var yy=I("ZodKSUID",(e,t)=>{lv.init(e,t),ht.init(e,t)});function S$(e){return GB(yy,e)}var Cy=I("ZodIPv4",(e,t)=>{bv.init(e,t),ht.init(e,t)});function L$(e){return HB(Cy,e)}var Vx=I("ZodMAC",(e,t)=>{Bv.init(e,t),ht.init(e,t)});function R$(e){return m_(Vx,e)}var wy=I("ZodIPv6",(e,t)=>{hv.init(e,t),ht.init(e,t)});function N$(e){return TB(wy,e)}var Ey=I("ZodCIDRv4",(e,t)=>{yv.init(e,t),ht.init(e,t)});function M$(e){return UB(Ey,e)}var ky=I("ZodCIDRv6",(e,t)=>{Cv.init(e,t),ht.init(e,t)});function $$(e){return OB(ky,e)}var Qy=I("ZodBase64",(e,t)=>{Ev.init(e,t),ht.init(e,t)});function j$(e){return qB(Qy,e)}var Iy=I("ZodBase64URL",(e,t)=>{kv.init(e,t),ht.init(e,t)});function P$(e){return zB(Iy,e)}var vy=I("ZodE164",(e,t)=>{Qv.init(e,t),ht.init(e,t)});function G$(e){return YB(vy,e)}var _y=I("ZodJWT",(e,t)=>{Iv.init(e,t),ht.init(e,t)});function H$(e){return KB(_y,e)}var yl=I("ZodCustomStringFormat",(e,t)=>{vv.init(e,t),ht.init(e,t)});function T$(e,t,n={}){return gl(yl,e,t,n)}function U$(e){return gl(yl,"hostname",So.hostname,e)}function O$(e){return gl(yl,"hex",So.hex,e)}function q$(e,t){let n=t?.enc??"hex",o=`${e}_${n}`,a=So[o];if(!a)throw new Error(`Unrecognized hash format: ${o}`);return gl(yl,o,a,t)}var Cl=I("ZodNumber",(e,t)=>{BB.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(o,a,r)=>ex(e,o,a,r),tm(e,"ZodNumber",{gt(o,a){return this.check(Ci(o,a))},gte(o,a){return this.check(Pa(o,a))},min(o,a){return this.check(Pa(o,a))},lt(o,a){return this.check(yi(o,a))},lte(o,a){return this.check(Lo(o,a))},max(o,a){return this.check(Lo(o,a))},int(o){return this.check(uy(o))},safe(o){return this.check(uy(o))},positive(o){return this.check(Ci(0,o))},nonnegative(o){return this.check(Pa(0,o))},negative(o){return this.check(yi(0,o))},nonpositive(o){return this.check(Lo(0,o))},multipleOf(o,a){return this.check(Fs(o,a))},step(o,a){return this.check(Fs(o,a))},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});function Xx(e){return C_(Cl,e)}var zc=I("ZodNumberFormat",(e,t)=>{_v.init(e,t),Cl.init(e,t)});function uy(e){return E_(zc,e)}function z$(e){return k_(zc,e)}function Y$(e){return Q_(zc,e)}function K$(e){return I_(zc,e)}function J$(e){return v_(zc,e)}var wl=I("ZodBoolean",(e,t)=>{Ug.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>tx(e,n,o,a)});function eD(e){return __(wl,e)}var El=I("ZodBigInt",(e,t)=>{yB.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(o,a,r)=>nx(e,o,a,r),e.gte=(o,a)=>e.check(Pa(o,a)),e.min=(o,a)=>e.check(Pa(o,a)),e.gt=(o,a)=>e.check(Ci(o,a)),e.gte=(o,a)=>e.check(Pa(o,a)),e.min=(o,a)=>e.check(Pa(o,a)),e.lt=(o,a)=>e.check(yi(o,a)),e.lte=(o,a)=>e.check(Lo(o,a)),e.max=(o,a)=>e.check(Lo(o,a)),e.positive=o=>e.check(Ci(BigInt(0),o)),e.negative=o=>e.check(yi(BigInt(0),o)),e.nonpositive=o=>e.check(Lo(BigInt(0),o)),e.nonnegative=o=>e.check(Pa(BigInt(0),o)),e.multipleOf=(o,a)=>e.check(Fs(o,a));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function W$(e){return D_(El,e)}var xy=I("ZodBigIntFormat",(e,t)=>{xv.init(e,t),El.init(e,t)});function Z$(e){return S_(xy,e)}function V$(e){return L_(xy,e)}var tD=I("ZodSymbol",(e,t)=>{Dv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ax(e,n,o,a)});function X$(e){return R_(tD,e)}var nD=I("ZodUndefined",(e,t)=>{Fv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>rx(e,n,o,a)});function ej(e){return N_(nD,e)}var aD=I("ZodNull",(e,t)=>{Sv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ox(e,n,o,a)});function oD(e){return M_(aD,e)}var rD=I("ZodAny",(e,t)=>{Lv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>sx(e,n,o,a)});function tj(){return $_(rD)}var iD=I("ZodUnknown",(e,t)=>{Rv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>cx(e,n,o,a)});function qc(){return j_(iD)}var AD=I("ZodNever",(e,t)=>{Nv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ax(e,n,o,a)});function Dy(e){return P_(AD,e)}var sD=I("ZodVoid",(e,t)=>{Mv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ix(e,n,o,a)});function nj(e){return G_(sD,e)}var am=I("ZodDate",(e,t)=>{$v.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(o,a,r)=>ux(e,o,a,r),e.min=(o,a)=>e.check(Pa(o,a)),e.max=(o,a)=>e.check(Lo(o,a));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function aj(e){return H_(am,e)}var cD=I("ZodArray",(e,t)=>{jv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>wx(e,n,o,a),e.element=t.element,tm(e,"ZodArray",{min(n,o){return this.check(kA(n,o))},nonempty(n){return this.check(kA(1,n))},max(n,o){return this.check(Uc(n,o))},length(n,o){return this.check(Oc(n,o))},unwrap(){return this.element}})});function om(e,t){return O_(cD,e,t)}function oj(e){let t=e._zod.def.shape;return Sy(Object.keys(t))}var rm=I("ZodObject",(e,t)=>{Pv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ex(e,n,o,a),U.defineLazy(e,"shape",()=>t.shape),tm(e,"ZodObject",{keyof(){return Sy(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:qc()})},loose(){return this.clone({...this._zod.def,catchall:qc()})},strict(){return this.clone({...this._zod.def,catchall:Dy()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return U.extend(this,n)},safeExtend(n){return U.safeExtend(this,n)},merge(n){return U.merge(this,n)},pick(n){return U.pick(this,n)},omit(n){return U.omit(this,n)},partial(...n){return U.partial(Ry,this,n[0])},required(...n){return U.required(Ny,this,n[0])}})});function rj(e,t){let n={type:"object",shape:e??{},...U.normalizeParams(t)};return new rm(n)}function ij(e,t){return new rm({type:"object",shape:e,catchall:Dy(),...U.normalizeParams(t)})}function Aj(e,t){return new rm({type:"object",shape:e,catchall:qc(),...U.normalizeParams(t)})}var im=I("ZodUnion",(e,t)=>{Og.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ty(e,n,o,a),e.options=t.options});function Fy(e,t){return new im({type:"union",options:e,...U.normalizeParams(t)})}var uD=I("ZodXor",(e,t)=>{im.init(e,t),Gv.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ty(e,n,o,a),e.options=t.options});function sj(e,t){return new uD({type:"union",options:e,inclusive:!1,...U.normalizeParams(t)})}var dD=I("ZodDiscriminatedUnion",(e,t)=>{im.init(e,t),Hv.init(e,t)});function cj(e,t,n){return new dD({type:"union",options:t,discriminator:e,...U.normalizeParams(n)})}var lD=I("ZodIntersection",(e,t)=>{Tv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>kx(e,n,o,a)});function pD(e,t){return new lD({type:"intersection",left:e,right:t})}var gD=I("ZodTuple",(e,t)=>{CB.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Qx(e,n,o,a),e.rest=n=>e.clone({...e._zod.def,rest:n})});function mD(e,t,n){let o=t instanceof me,a=o?n:t,r=o?t:null;return new gD({type:"tuple",items:e,rest:r,...U.normalizeParams(a)})}var bl=I("ZodRecord",(e,t)=>{Uv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ix(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType});function fD(e,t,n){return!t||!t._zod?new bl({type:"record",keyType:Zg(),valueType:e,...U.normalizeParams(t)}):new bl({type:"record",keyType:e,valueType:t,...U.normalizeParams(n)})}function uj(e,t,n){let o=$a(e);return o._zod.values=void 0,new bl({type:"record",keyType:o,valueType:t,...U.normalizeParams(n)})}function dj(e,t,n){return new bl({type:"record",keyType:e,valueType:t,mode:"loose",...U.normalizeParams(n)})}var bD=I("ZodMap",(e,t)=>{Ov.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>yx(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(wi(...n)),e.nonempty=n=>e.check(wi(1,n)),e.max=(...n)=>e.check(Ss(...n)),e.size=(...n)=>e.check(Tc(...n))});function lj(e,t,n){return new bD({type:"map",keyType:e,valueType:t,...U.normalizeParams(n)})}var hD=I("ZodSet",(e,t)=>{qv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Cx(e,n,o,a),e.min=(...n)=>e.check(wi(...n)),e.nonempty=n=>e.check(wi(1,n)),e.max=(...n)=>e.check(Ss(...n)),e.size=(...n)=>e.check(Tc(...n))});function pj(e,t){return new hD({type:"set",valueType:e,...U.normalizeParams(t)})}var hl=I("ZodEnum",(e,t)=>{zv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(o,a,r)=>dx(e,o,a,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(o,a)=>{let r={};for(let i of o)if(n.has(i))r[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new hl({...t,checks:[],...U.normalizeParams(a),entries:r})},e.exclude=(o,a)=>{let r={...t.entries};for(let i of o)if(n.has(i))delete r[i];else throw new Error(`Key ${i} not found in enum`);return new hl({...t,checks:[],...U.normalizeParams(a),entries:r})}});function Sy(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new hl({type:"enum",entries:n,...U.normalizeParams(t)})}function gj(e,t){return new hl({type:"enum",entries:e,...U.normalizeParams(t)})}var BD=I("ZodLiteral",(e,t)=>{Yv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>lx(e,n,o,a),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function mj(e,t){return new BD({type:"literal",values:Array.isArray(e)?e:[e],...U.normalizeParams(t)})}var yD=I("ZodFile",(e,t)=>{Kv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>mx(e,n,o,a),e.min=(n,o)=>e.check(wi(n,o)),e.max=(n,o)=>e.check(Ss(n,o)),e.mime=(n,o)=>e.check(sl(Array.isArray(n)?n:[n],o))});function fj(e){return q_(yD,e)}var CD=I("ZodTransform",(e,t)=>{Jv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Bx(e,n,o,a),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Is(e.constructor.name);n.addIssue=r=>{if(typeof r=="string")n.issues.push(U.issue(r,n.value,t));else{let i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(U.issue(i))}};let a=t.transform(n.value,n);return a instanceof Promise?a.then(r=>(n.value=r,n.fallback=!0,n)):(n.value=a,n.fallback=!0,n)}});function Ly(e){return new CD({type:"transform",transform:e})}var Ry=I("ZodOptional",(e,t)=>{wB.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ny(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Xg(e){return new Ry({type:"optional",innerType:e})}var wD=I("ZodExactOptional",(e,t)=>{Wv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ny(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function ED(e){return new wD({type:"optional",innerType:e})}var kD=I("ZodNullable",(e,t)=>{Zv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>vx(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function em(e){return new kD({type:"nullable",innerType:e})}function bj(e){return Xg(em(e))}var QD=I("ZodDefault",(e,t)=>{Vv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>xx(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function ID(e,t){return new QD({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():U.shallowClone(t)}})}var vD=I("ZodPrefault",(e,t)=>{Xv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Dx(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function _D(e,t){return new vD({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():U.shallowClone(t)}})}var Ny=I("ZodNonOptional",(e,t)=>{e_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>_x(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function xD(e,t){return new Ny({type:"nonoptional",innerType:e,...U.normalizeParams(t)})}var DD=I("ZodSuccess",(e,t)=>{t_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>fx(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function hj(e){return new DD({type:"success",innerType:e})}var FD=I("ZodCatch",(e,t)=>{n_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Fx(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function SD(e,t){return new FD({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var LD=I("ZodNaN",(e,t)=>{a_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>px(e,n,o,a)});function Bj(e){return U_(LD,e)}var Am=I("ZodPipe",(e,t)=>{EB.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Sx(e,n,o,a),e.in=t.in,e.out=t.out});function dy(e,t){return new Am({type:"pipe",in:e,out:t})}var sm=I("ZodCodec",(e,t)=>{Am.init(e,t),qg.init(e,t)});function yj(e,t,n){return new sm({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Cj(e){let t=e._zod.def;return new sm({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var RD=I("ZodPreprocess",(e,t)=>{Am.init(e,t),o_.init(e,t)}),ND=I("ZodReadonly",(e,t)=>{r_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Lx(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function MD(e){return new ND({type:"readonly",innerType:e})}var $D=I("ZodTemplateLiteral",(e,t)=>{i_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>gx(e,n,o,a)});function wj(e,t){return new $D({type:"template_literal",parts:e,...U.normalizeParams(t)})}var jD=I("ZodLazy",(e,t)=>{c_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Nx(e,n,o,a),e.unwrap=()=>e._zod.def.getter()});function PD(e){return new jD({type:"lazy",getter:e})}var GD=I("ZodPromise",(e,t)=>{s_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Rx(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Ej(e){return new GD({type:"promise",innerType:e})}var HD=I("ZodFunction",(e,t)=>{A_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>hx(e,n,o,a)});function kj(e){return new HD({type:"function",input:Array.isArray(e?.input)?mD(e?.input):e?.input??om(qc()),output:e?.output??qc()})}var cm=I("ZodCustom",(e,t)=>{u_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>bx(e,n,o,a)});function Qj(e){let t=new Et({check:"custom"});return t._zod.check=e,t}function Ij(e,t){return z_(cm,e??(()=>!0),t)}function TD(e,t={}){return Y_(cm,e,t)}function UD(e,t){return K_(e,t)}var vj=J_,_j=W_;function xj(e,t={}){let n=new cm({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...U.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var Dj=(...e)=>Z_({Codec:sm,Boolean:wl,String:Bl},...e);function Fj(e){let t=PD(()=>Fy([Zg(e),Xx(),eD(),oD(),om(t),fD(Zg(),t)]));return t}function Sj(e,t){return new RD({type:"pipe",in:Ly(e),out:t})}var are={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function ore(e){tn({customError:e})}function rre(){return tn().customError}var OD;OD||(OD={});var W={...Wg,...ry,iso:fl},ire=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Are(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 sre(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 o=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let a=n[1];if(!a||!t.defs[a])throw new Error(`Reference not found: ${e}`);return t.defs[a]}throw new Error(`Reference not found: ${e}`)}function Lj(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return W.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 a=e.$ref;if(t.refs.has(a))return t.refs.get(a);if(t.processing.has(a))return W.lazy(()=>{if(!t.refs.has(a))throw new Error(`Circular reference not resolved: ${a}`);return t.refs.get(a)});t.processing.add(a);let r=sre(a,t),i=ka(r,t);return t.refs.set(a,i),t.processing.delete(a),i}if(e.enum!==void 0){let a=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&a.length===1&&a[0]===null)return W.null();if(a.length===0)return W.never();if(a.length===1)return W.literal(a[0]);if(a.every(i=>typeof i=="string"))return W.enum(a);let r=a.map(i=>W.literal(i));return r.length<2?r[0]:W.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return W.literal(e.const);let n=e.type;if(Array.isArray(n)){let a=n.map(r=>{let i={...e,type:r};return Lj(i,t)});return a.length===0?W.never():a.length===1?a[0]:W.union(a)}if(!n)return W.any();let o;switch(n){case"string":{let a=W.string();if(e.format){let r=e.format;r==="email"?a=a.check(W.email()):r==="uri"||r==="uri-reference"?a=a.check(W.url()):r==="uuid"||r==="guid"?a=a.check(W.uuid()):r==="date-time"?a=a.check(W.iso.datetime()):r==="date"?a=a.check(W.iso.date()):r==="time"?a=a.check(W.iso.time()):r==="duration"?a=a.check(W.iso.duration()):r==="ipv4"?a=a.check(W.ipv4()):r==="ipv6"?a=a.check(W.ipv6()):r==="mac"?a=a.check(W.mac()):r==="cidr"?a=a.check(W.cidrv4()):r==="cidr-v6"?a=a.check(W.cidrv6()):r==="base64"?a=a.check(W.base64()):r==="base64url"?a=a.check(W.base64url()):r==="e164"?a=a.check(W.e164()):r==="jwt"?a=a.check(W.jwt()):r==="emoji"?a=a.check(W.emoji()):r==="nanoid"?a=a.check(W.nanoid()):r==="cuid"?a=a.check(W.cuid()):r==="cuid2"?a=a.check(W.cuid2()):r==="ulid"?a=a.check(W.ulid()):r==="xid"?a=a.check(W.xid()):r==="ksuid"&&(a=a.check(W.ksuid()))}typeof e.minLength=="number"&&(a=a.min(e.minLength)),typeof e.maxLength=="number"&&(a=a.max(e.maxLength)),e.pattern&&(a=a.regex(new RegExp(e.pattern))),o=a;break}case"number":case"integer":{let a=n==="integer"?W.number().int():W.number();typeof e.minimum=="number"&&(a=a.min(e.minimum)),typeof e.maximum=="number"&&(a=a.max(e.maximum)),typeof e.exclusiveMinimum=="number"?a=a.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(a=a.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?a=a.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(a=a.lt(e.maximum)),typeof e.multipleOf=="number"&&(a=a.multipleOf(e.multipleOf)),o=a;break}case"boolean":{o=W.boolean();break}case"null":{o=W.null();break}case"object":{let a={},r=e.properties||{},i=new Set(e.required||[]);for(let[s,c]of Object.entries(r)){let d=ka(c,t);a[s]=i.has(s)?d:d.optional()}if(e.propertyNames){let s=ka(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?ka(e.additionalProperties,t):W.any();if(Object.keys(a).length===0){o=W.record(s,c);break}let d=W.object(a).passthrough(),l=W.looseRecord(s,c);o=W.intersection(d,l);break}if(e.patternProperties){let s=e.patternProperties,c=Object.keys(s),d=[];for(let g of c){let p=ka(s[g],t),m=W.string().regex(new RegExp(g));d.push(W.looseRecord(m,p))}let l=[];if(Object.keys(a).length>0&&l.push(W.object(a).passthrough()),l.push(...d),l.length===0)o=W.object({}).passthrough();else if(l.length===1)o=l[0];else{let g=W.intersection(l[0],l[1]);for(let p=2;p<l.length;p++)g=W.intersection(g,l[p]);o=g}break}let A=W.object(a);e.additionalProperties===!1?o=A.strict():typeof e.additionalProperties=="object"?o=A.catchall(ka(e.additionalProperties,t)):o=A.passthrough();break}case"array":{let a=e.prefixItems,r=e.items;if(a&&Array.isArray(a)){let i=a.map(s=>ka(s,t)),A=r&&typeof r=="object"&&!Array.isArray(r)?ka(r,t):void 0;A?o=W.tuple(i).rest(A):o=W.tuple(i),typeof e.minItems=="number"&&(o=o.check(W.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(W.maxLength(e.maxItems)))}else if(Array.isArray(r)){let i=r.map(s=>ka(s,t)),A=e.additionalItems&&typeof e.additionalItems=="object"?ka(e.additionalItems,t):void 0;A?o=W.tuple(i).rest(A):o=W.tuple(i),typeof e.minItems=="number"&&(o=o.check(W.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(W.maxLength(e.maxItems)))}else if(r!==void 0){let i=ka(r,t),A=W.array(i);typeof e.minItems=="number"&&(A=A.min(e.minItems)),typeof e.maxItems=="number"&&(A=A.max(e.maxItems)),o=A}else o=W.array(W.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function ka(e,t){if(typeof e=="boolean")return e?W.any():W.never();let n=Lj(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let A=e.anyOf.map(c=>ka(c,t)),s=W.union(A);n=o?W.intersection(n,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let A=e.oneOf.map(c=>ka(c,t)),s=W.xor(A);n=o?W.intersection(n,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:W.any();else{let A=o?n:ka(e.allOf[0],t),s=o?0:1;for(let c=s;c<e.allOf.length;c++)A=W.intersection(A,ka(e.allOf[c],t));n=A}e.nullable===!0&&t.version==="openapi-3.0"&&(n=W.nullable(n)),e.readOnly===!0&&(n=W.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let a={},r=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let A of r)A in e&&(a[A]=e[A]);let i=["contentEncoding","contentMediaType","contentSchema"];for(let A of i)A in e&&(a[A]=e[A]);for(let A of Object.keys(e))ire.has(A)||(a[A]=e[A]);return Object.keys(a).length>0&&t.registry.add(n,a),e.description&&(n=n.describe(e.description)),n}function Rj(e,t){if(typeof e=="boolean")return e?W.any():W.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 o=Are(n,t?.defaultTarget),a=n.$defs||n.definitions||{},r={version:o,defs:a,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??ua};return ka(n,r)}var qD={};L(qD,{bigint:()=>lre,boolean:()=>dre,date:()=>pre,number:()=>ure,string:()=>cre});function cre(e){return g_(Bl,e)}function ure(e){return w_(Cl,e)}function dre(e){return x_(wl,e)}function lre(e){return F_(El,e)}function pre(e){return T_(am,e)}tn(kB());var gre=u.object({input:u.number().finite().nonnegative().optional(),output:u.number().finite().nonnegative().optional(),cacheRead:u.number().finite().nonnegative().optional(),cacheWrite:u.number().finite().nonnegative().optional(),total:u.number().finite().nonnegative().optional()}).strict(),Nj=u.object({inputTokens:u.number().int().nonnegative().optional(),outputTokens:u.number().int().nonnegative().optional(),cachedInputTokens:u.number().int().nonnegative().optional(),cacheCreationTokens:u.number().int().nonnegative().optional(),reasoningTokens:u.number().int().nonnegative().optional(),totalTokens:u.number().int().nonnegative().optional(),cost:gre.optional()}).strict();var _=Symbol.for("drizzle:entityKind");function vn(e,t){if(!e||typeof e!="object")return!1;if(e instanceof t)return!0;if(!Object.prototype.hasOwnProperty.call(t,_))throw new Error(`Class "${t.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let n=Object.getPrototypeOf(e).constructor;if(n)for(;n;){if(_ in n&&n[_]===t[_])return!0;n=Object.getPrototypeOf(n)}return!1}var Yc=class{constructor(t,n){this.table=t,this.config=n,this.name=n.name,this.keyAsName=n.keyAsName,this.notNull=n.notNull,this.default=n.default,this.defaultFn=n.defaultFn,this.onUpdateFn=n.onUpdateFn,this.hasDefault=n.hasDefault,this.primary=n.primaryKey,this.isUnique=n.isUnique,this.uniqueName=n.uniqueName,this.uniqueType=n.uniqueType,this.dataType=n.dataType,this.columnType=n.columnType,this.generated=n.generated,this.generatedIdentity=n.generatedIdentity}static[_]="Column";name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue(t){return t}mapToDriverValue(t){return t}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!=="byDefault"}};var My=class{static[_]="ColumnBuilder";config;constructor(t,n,o){this.config={name:t,keyAsName:t==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:n,columnType:o,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default(t){return this.config.default=t,this.config.hasDefault=!0,this}$defaultFn(t){return this.config.defaultFn=t,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn(t){return this.config.onUpdateFn=t,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName(t){this.config.name===""&&(this.config.name=t)}};var IA=Symbol.for("drizzle:Name");var $y=class{static[_]="PgForeignKeyBuilder";reference;_onUpdate="no action";_onDelete="no action";constructor(t,n){this.reference=()=>{let{name:o,columns:a,foreignColumns:r}=t();return{name:o,columns:a,foreignTable:r[0].table,foreignColumns:r}},n&&(this._onUpdate=n.onUpdate,this._onDelete=n.onDelete)}onUpdate(t){return this._onUpdate=t===void 0?"no action":t,this}onDelete(t){return this._onDelete=t===void 0?"no action":t,this}build(t){return new zD(t,this)}},zD=class{constructor(t,n){this.table=t,this.reference=n.reference,this.onUpdate=n._onUpdate,this.onDelete=n._onDelete}static[_]="PgForeignKey";reference;onUpdate;onDelete;getName(){let{name:t,columns:n,foreignColumns:o}=this.reference(),a=n.map(A=>A.name),r=o.map(A=>A.name),i=[this.table[IA],...a,o[0].table[IA],...r];return t??`${i.join("_")}_fk`}};function jy(e,...t){return e(...t)}function JD(e,t){return`${e[IA]}_${t.join("_")}_unique`}var YD=class{constructor(t,n){this.name=n,this.columns=t}static[_]="PgUniqueConstraintBuilder";columns;nullsNotDistinctConfig=!1;nullsNotDistinct(){return this.nullsNotDistinctConfig=!0,this}build(t){return new KD(t,this.columns,this.nullsNotDistinctConfig,this.name)}},Mj=class{static[_]="PgUniqueOnConstraintBuilder";name;constructor(t){this.name=t}on(...t){return new YD(t,this.name)}},KD=class{constructor(t,n,o,a){this.table=t,this.columns=n,this.name=a??JD(this.table,this.columns.map(r=>r.name)),this.nullsNotDistinct=o}static[_]="PgUniqueConstraint";columns;name;nullsNotDistinct=!1;getName(){return this.name}};function $j(e,t,n){for(let o=t;o<e.length;o++){let a=e[o];if(a==="\\"){o++;continue}if(a==='"')return[e.slice(t,o).replace(/\\/g,""),o+1];if(!n&&(a===","||a==="}"))return[e.slice(t,o).replace(/\\/g,""),o]}return[e.slice(t).replace(/\\/g,""),e.length]}function jj(e,t=0){let n=[],o=t,a=!1;for(;o<e.length;){let r=e[o];if(r===","){(a||o===t)&&n.push(""),a=!0,o++;continue}if(a=!1,r==="\\"){o+=2;continue}if(r==='"'){let[s,c]=$j(e,o+1,!0);n.push(s),o=c;continue}if(r==="}")return[n,o+1];if(r==="{"){let[s,c]=jj(e,o+1);n.push(s),o=c;continue}let[i,A]=$j(e,o,!1);n.push(i),o=A}return[n,o]}function Pj(e){let[t]=jj(e,1);return t}function WD(e){return`{${e.map(t=>Array.isArray(t)?WD(t):typeof t=="string"?`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:`${t}`).join(",")}}`}var te=class extends My{foreignKeyConfigs=[];static[_]="PgColumnBuilder";array(t){return new VD(this.config.name,this,t)}references(t,n={}){return this.foreignKeyConfigs.push({ref:t,actions:n}),this}unique(t,n){return this.config.isUnique=!0,this.config.uniqueName=t,this.config.uniqueType=n?.nulls,this}generatedAlwaysAs(t){return this.config.generated={as:t,type:"always",mode:"stored"},this}buildForeignKeys(t,n){return this.foreignKeyConfigs.map(({ref:o,actions:a})=>jy((r,i)=>{let A=new $y(()=>{let s=r();return{columns:[t],foreignColumns:[s]}});return i.onUpdate&&A.onUpdate(i.onUpdate),i.onDelete&&A.onDelete(i.onDelete),A.build(n)},o,a))}buildExtraConfigColumn(t){return new ZD(t,this.config)}},J=class extends Yc{constructor(t,n){n.uniqueName||(n.uniqueName=JD(t,[n.name])),super(t,n),this.table=t}static[_]="PgColumn"},ZD=class extends J{static[_]="ExtraConfigColumn";getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??"asc",nulls:this.config.nulls??"last",opClass:this.config.opClass};defaultConfig={order:"asc",nulls:"last",opClass:void 0};asc(){return this.indexConfig.order="asc",this}desc(){return this.indexConfig.order="desc",this}nullsFirst(){return this.indexConfig.nulls="first",this}nullsLast(){return this.indexConfig.nulls="last",this}op(t){return this.indexConfig.opClass=t,this}},kl=class{static[_]="IndexedColumn";constructor(t,n,o,a){this.name=t,this.keyAsName=n,this.type=o,this.indexConfig=a}name;keyAsName;type;indexConfig},VD=class extends te{static[_]="PgArrayBuilder";constructor(t,n,o){super(t,"array","PgArray"),this.config.baseBuilder=n,this.config.size=o}build(t){let n=this.config.baseBuilder.build(t);return new XD(t,this.config,n)}},XD=class e extends J{constructor(t,n,o,a){super(t,n),this.baseColumn=o,this.range=a,this.size=n.size}size;static[_]="PgArray";getSQLType(){return`${this.baseColumn.getSQLType()}[${typeof this.size=="number"?this.size:""}]`}mapFromDriverValue(t){return typeof t=="string"&&(t=Pj(t)),t.map(n=>this.baseColumn.mapFromDriverValue(n))}mapToDriverValue(t,n=!1){let o=t.map(a=>a===null?null:vn(this.baseColumn,e)?this.baseColumn.mapToDriverValue(a,!0):this.baseColumn.mapToDriverValue(a));return n?o:WD(o)}};var Gj=class extends te{static[_]="PgEnumObjectColumnBuilder";constructor(t,n){super(t,"string","PgEnumObjectColumn"),this.config.enum=n}build(t){return new e1(t,this.config)}},e1=class extends J{static[_]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor(t,n){super(t,n),this.enum=n.enum}getSQLType(){return this.enum.enumName}},Hj=Symbol.for("drizzle:isPgEnum");function Uj(e){return!!e&&typeof e=="function"&&Hj in e&&e[Hj]===!0}var Tj=class extends te{static[_]="PgEnumColumnBuilder";constructor(t,n){super(t,"string","PgEnumColumn"),this.config.enum=n}build(t){return new t1(t,this.config)}},t1=class extends J{static[_]="PgEnumColumn";enum=this.config.enum;enumValues=this.config.enum.enumValues;constructor(t,n){super(t,n),this.enum=n.enum}getSQLType(){return this.enum.enumName}};var Ql=class{static[_]="Subquery";constructor(t,n,o,a=!1,r=[]){this._={brand:"Subquery",sql:t,selectedFields:n,alias:o,isWith:a,usedTables:r}}},Oj=class extends Ql{static[_]="WithSubquery"};var qj="0.45.2";var n1,a1,zj={startActiveSpan(e,t){return n1?(a1||(a1=n1.trace.getTracer("drizzle-orm",qj)),jy((n,o)=>o.startActiveSpan(e,a=>{try{return t(a)}catch(r){throw a.setStatus({code:n.SpanStatusCode.ERROR,message:r instanceof Error?r.message:"Unknown error"}),r}finally{a.end()}}),n1,a1)):t()}};var Il=Symbol.for("drizzle:ViewBaseConfig");var o1=Symbol.for("drizzle:Schema"),Yj=Symbol.for("drizzle:Columns"),Kj=Symbol.for("drizzle:ExtraConfigColumns"),r1=Symbol.for("drizzle:OriginalName"),i1=Symbol.for("drizzle:BaseName"),um=Symbol.for("drizzle:IsAlias"),Jj=Symbol.for("drizzle:ExtraConfigBuilder"),mre=Symbol.for("drizzle:IsDrizzleTable"),ln=class{static[_]="Table";static Symbol={Name:IA,Schema:o1,OriginalName:r1,Columns:Yj,ExtraConfigColumns:Kj,BaseName:i1,IsAlias:um,ExtraConfigBuilder:Jj};[IA];[r1];[o1];[Yj];[Kj];[i1];[um]=!1;[mre]=!0;[Jj]=void 0;constructor(t,n,o){this[IA]=this[r1]=t,this[o1]=n,this[i1]=o}};var Wj=class{static[_]="FakePrimitiveParam"};function fre(e){return e!=null&&typeof e.getSQL=="function"}function bre(e){let t={sql:"",params:[]};for(let n of e)t.sql+=n.sql,t.params.push(...n.params),n.typings?.length&&(t.typings||(t.typings=[]),t.typings.push(...n.typings));return t}var Ro=class{static[_]="StringChunk";value;constructor(t){this.value=Array.isArray(t)?t:[t]}getSQL(){return new pn([this])}},pn=class e{constructor(t){this.queryChunks=t;for(let n of t)if(vn(n,ln)){let o=n[ln.Symbol.Schema];this.usedTables.push(o===void 0?n[ln.Symbol.Name]:o+"."+n[ln.Symbol.Name])}}static[_]="SQL";decoder=Zj;shouldInlineParams=!1;usedTables=[];append(t){return this.queryChunks.push(...t.queryChunks),this}toQuery(t){return zj.startActiveSpan("drizzle.buildSQL",n=>{let o=this.buildQueryFromSourceParams(this.queryChunks,t);return n?.setAttributes({"drizzle.query.text":o.sql,"drizzle.query.params":JSON.stringify(o.params)}),o})}buildQueryFromSourceParams(t,n){let o=Object.assign({},n,{inlineParams:n.inlineParams||this.shouldInlineParams,paramStartIndex:n.paramStartIndex||{value:0}}),{casing:a,escapeName:r,escapeParam:i,prepareTyping:A,inlineParams:s,paramStartIndex:c}=o;return bre(t.map(d=>{if(vn(d,Ro))return{sql:d.value.join(""),params:[]};if(vn(d,dm))return{sql:r(d.value),params:[]};if(d===void 0)return{sql:"",params:[]};if(Array.isArray(d)){let l=[new Ro("(")];for(let[g,p]of d.entries())l.push(p),g<d.length-1&&l.push(new Ro(", "));return l.push(new Ro(")")),this.buildQueryFromSourceParams(l,o)}if(vn(d,e))return this.buildQueryFromSourceParams(d.queryChunks,{...o,inlineParams:s||d.shouldInlineParams});if(vn(d,ln)){let l=d[ln.Symbol.Schema],g=d[ln.Symbol.Name];return{sql:l===void 0||d[um]?r(g):r(l)+"."+r(g),params:[]}}if(vn(d,Yc)){let l=a.getColumnCasing(d);if(n.invokeSource==="indexes")return{sql:r(l),params:[]};let g=d.table[ln.Symbol.Schema];return{sql:d.table[um]||g===void 0?r(d.table[ln.Symbol.Name])+"."+r(l):r(g)+"."+r(d.table[ln.Symbol.Name])+"."+r(l),params:[]}}if(vn(d,A1)){let l=d[Il].schema,g=d[Il].name;return{sql:l===void 0||d[Il].isAlias?r(g):r(l)+"."+r(g),params:[]}}if(vn(d,Py)){if(vn(d.value,lm))return{sql:i(c.value++,d),params:[d],typings:["none"]};let l=d.value===null?null:d.encoder.mapToDriverValue(d.value);if(vn(l,e))return this.buildQueryFromSourceParams([l],o);if(s)return{sql:this.mapInlineParam(l,o),params:[]};let g=["none"];return A&&(g=[A(d.encoder)]),{sql:i(c.value++,l),params:[l],typings:g}}return vn(d,lm)?{sql:i(c.value++,d),params:[d],typings:["none"]}:vn(d,e.Aliased)&&d.fieldAlias!==void 0?{sql:r(d.fieldAlias),params:[]}:vn(d,Ql)?d._.isWith?{sql:r(d._.alias),params:[]}:this.buildQueryFromSourceParams([new Ro("("),d._.sql,new Ro(") "),new dm(d._.alias)],o):Uj(d)?d.schema?{sql:r(d.schema)+"."+r(d.enumName),params:[]}:{sql:r(d.enumName),params:[]}:fre(d)?d.shouldOmitSQLParens?.()?this.buildQueryFromSourceParams([d.getSQL()],o):this.buildQueryFromSourceParams([new Ro("("),d.getSQL(),new Ro(")")],o):s?{sql:this.mapInlineParam(d,o),params:[]}:{sql:i(c.value++,d),params:[d],typings:["none"]}}))}mapInlineParam(t,{escapeString:n}){if(t===null)return"null";if(typeof t=="number"||typeof t=="boolean")return t.toString();if(typeof t=="string")return n(t);if(typeof t=="object"){let o=t.toString();return n(o==="[object Object]"?JSON.stringify(t):o)}throw new Error("Unexpected param value: "+t)}getSQL(){return this}as(t){return t===void 0?this:new e.Aliased(this,t)}mapWith(t){return this.decoder=typeof t=="function"?{mapFromDriverValue:t}:t,this}inlineParams(){return this.shouldInlineParams=!0,this}if(t){return t?this:void 0}},dm=class{constructor(t){this.value=t}static[_]="Name";brand;getSQL(){return new pn([this])}};var Zj={mapFromDriverValue:e=>e},Vj={mapToDriverValue:e=>e},cxe={...Zj,...Vj},Py=class{constructor(t,n=Vj){this.value=t,this.encoder=n}static[_]="Param";brand;getSQL(){return new pn([this])}};function vl(e,...t){let n=[];(t.length>0||e.length>0&&e[0]!=="")&&n.push(new Ro(e[0]));for(let[o,a]of t.entries())n.push(a,new Ro(e[o+1]));return new pn(n)}(e=>{function t(){return new pn([])}e.empty=t;function n(s){return new pn(s)}e.fromList=n;function o(s){return new pn([new Ro(s)])}e.raw=o;function a(s,c){let d=[];for(let[l,g]of s.entries())l>0&&c!==void 0&&d.push(c),d.push(g);return new pn(d)}e.join=a;function r(s){return new dm(s)}e.identifier=r;function i(s){return new lm(s)}e.placeholder=i;function A(s,c){return new Py(s,c)}e.param=A})(vl||(vl={}));(e=>{class t{constructor(o,a){this.sql=o,this.fieldAlias=a}static[_]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new t(this.sql,this.fieldAlias)}}e.Aliased=t})(pn||(pn={}));var lm=class{constructor(t){this.name=t}static[_]="Placeholder";getSQL(){return new pn([this])}};var hre=Symbol.for("drizzle:IsDrizzleView"),A1=class{static[_]="View";[Il];[hre]=!0;constructor({name:t,schema:n,selectedFields:o,query:a}){this[Il]={name:t,originalName:t,schema:n,selectedFields:o,query:a,isExisting:!a,isAlias:!1}}getSQL(){return new pn([this])}};Yc.prototype.getSQL=function(){return new pn([this])};ln.prototype.getSQL=function(){return new pn([this])};Ql.prototype.getSQL=function(){return new pn([this])};function Ne(e,t){return{name:typeof e=="string"&&e.length>0?e:"",config:typeof e=="object"?e:t}}var dxe=typeof TextDecoder>"u"?null:new TextDecoder;var vA=class extends te{static[_]="PgIntColumnBaseBuilder";generatedAlwaysAsIdentity(t){if(t){let{name:n,...o}=t;this.config.generatedIdentity={type:"always",sequenceName:n,sequenceOptions:o}}else this.config.generatedIdentity={type:"always"};return this.config.hasDefault=!0,this.config.notNull=!0,this}generatedByDefaultAsIdentity(t){if(t){let{name:n,...o}=t;this.config.generatedIdentity={type:"byDefault",sequenceName:n,sequenceOptions:o}}else this.config.generatedIdentity={type:"byDefault"};return this.config.hasDefault=!0,this.config.notNull=!0,this}};var s1=class extends vA{static[_]="PgBigInt53Builder";constructor(t){super(t,"number","PgBigInt53")}build(t){return new c1(t,this.config)}},c1=class extends J{static[_]="PgBigInt53";getSQLType(){return"bigint"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},u1=class extends vA{static[_]="PgBigInt64Builder";constructor(t){super(t,"bigint","PgBigInt64")}build(t){return new d1(t,this.config)}},d1=class extends J{static[_]="PgBigInt64";getSQLType(){return"bigint"}mapFromDriverValue(t){return BigInt(t)}};function Xj(e,t){let{name:n,config:o}=Ne(e,t);return o.mode==="number"?new s1(n):new u1(n)}var l1=class extends te{static[_]="PgBigSerial53Builder";constructor(t){super(t,"number","PgBigSerial53"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new p1(t,this.config)}},p1=class extends J{static[_]="PgBigSerial53";getSQLType(){return"bigserial"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},g1=class extends te{static[_]="PgBigSerial64Builder";constructor(t){super(t,"bigint","PgBigSerial64"),this.config.hasDefault=!0}build(t){return new m1(t,this.config)}},m1=class extends J{static[_]="PgBigSerial64";getSQLType(){return"bigserial"}mapFromDriverValue(t){return BigInt(t)}};function e7(e,t){let{name:n,config:o}=Ne(e,t);return o.mode==="number"?new l1(n):new g1(n)}var f1=class extends te{static[_]="PgBooleanBuilder";constructor(t){super(t,"boolean","PgBoolean")}build(t){return new b1(t,this.config)}},b1=class extends J{static[_]="PgBoolean";getSQLType(){return"boolean"}};function t7(e){return new f1(e??"")}var h1=class extends te{static[_]="PgCharBuilder";constructor(t,n){super(t,"string","PgChar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new B1(t,this.config)}},B1=class extends J{static[_]="PgChar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"char":`char(${this.length})`}};function n7(e,t={}){let{name:n,config:o}=Ne(e,t);return new h1(n,o)}var y1=class extends te{static[_]="PgCidrBuilder";constructor(t){super(t,"string","PgCidr")}build(t){return new C1(t,this.config)}},C1=class extends J{static[_]="PgCidr";getSQLType(){return"cidr"}};function a7(e){return new y1(e??"")}var w1=class extends te{static[_]="PgCustomColumnBuilder";constructor(t,n,o){super(t,"custom","PgCustomColumn"),this.config.fieldConfig=n,this.config.customTypeParams=o}build(t){return new E1(t,this.config)}},E1=class extends J{static[_]="PgCustomColumn";sqlName;mapTo;mapFrom;constructor(t,n){super(t,n),this.sqlName=n.customTypeParams.dataType(n.fieldConfig),this.mapTo=n.customTypeParams.toDriver,this.mapFrom=n.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue(t){return typeof this.mapFrom=="function"?this.mapFrom(t):t}mapToDriverValue(t){return typeof this.mapTo=="function"?this.mapTo(t):t}};function o7(e){return(t,n)=>{let{name:o,config:a}=Ne(t,n);return new w1(o,a,e)}}var ki=class extends te{static[_]="PgDateColumnBaseBuilder";defaultNow(){return this.default(vl`now()`)}};var k1=class extends ki{static[_]="PgDateBuilder";constructor(t){super(t,"date","PgDate")}build(t){return new Q1(t,this.config)}},Q1=class extends J{static[_]="PgDate";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?new Date(t):t}mapToDriverValue(t){return t.toISOString()}},I1=class extends ki{static[_]="PgDateStringBuilder";constructor(t){super(t,"string","PgDateString")}build(t){return new v1(t,this.config)}},v1=class extends J{static[_]="PgDateString";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?t:t.toISOString().slice(0,-14)}};function r7(e,t){let{name:n,config:o}=Ne(e,t);return o?.mode==="date"?new k1(n):new I1(n)}var _1=class extends te{static[_]="PgDoublePrecisionBuilder";constructor(t){super(t,"number","PgDoublePrecision")}build(t){return new x1(t,this.config)}},x1=class extends J{static[_]="PgDoublePrecision";getSQLType(){return"double precision"}mapFromDriverValue(t){return typeof t=="string"?Number.parseFloat(t):t}};function i7(e){return new _1(e??"")}var D1=class extends te{static[_]="PgInetBuilder";constructor(t){super(t,"string","PgInet")}build(t){return new F1(t,this.config)}},F1=class extends J{static[_]="PgInet";getSQLType(){return"inet"}};function A7(e){return new D1(e??"")}var S1=class extends vA{static[_]="PgIntegerBuilder";constructor(t){super(t,"number","PgInteger")}build(t){return new L1(t,this.config)}},L1=class extends J{static[_]="PgInteger";getSQLType(){return"integer"}mapFromDriverValue(t){return typeof t=="string"?Number.parseInt(t):t}};function s7(e){return new S1(e??"")}var R1=class extends te{static[_]="PgIntervalBuilder";constructor(t,n){super(t,"string","PgInterval"),this.config.intervalConfig=n}build(t){return new N1(t,this.config)}},N1=class extends J{static[_]="PgInterval";fields=this.config.intervalConfig.fields;precision=this.config.intervalConfig.precision;getSQLType(){let t=this.fields?` ${this.fields}`:"",n=this.precision?`(${this.precision})`:"";return`interval${t}${n}`}};function c7(e,t={}){let{name:n,config:o}=Ne(e,t);return new R1(n,o)}var M1=class extends te{static[_]="PgJsonBuilder";constructor(t){super(t,"json","PgJson")}build(t){return new $1(t,this.config)}},$1=class extends J{static[_]="PgJson";constructor(t,n){super(t,n)}getSQLType(){return"json"}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t}};function u7(e){return new M1(e??"")}var j1=class extends te{static[_]="PgJsonbBuilder";constructor(t){super(t,"json","PgJsonb")}build(t){return new P1(t,this.config)}},P1=class extends J{static[_]="PgJsonb";constructor(t,n){super(t,n)}getSQLType(){return"jsonb"}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t}};function Gy(e){return new j1(e??"")}var G1=class extends te{static[_]="PgLineBuilder";constructor(t){super(t,"array","PgLine")}build(t){return new H1(t,this.config)}},H1=class extends J{static[_]="PgLine";getSQLType(){return"line"}mapFromDriverValue(t){let[n,o,a]=t.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(o),Number.parseFloat(a)]}mapToDriverValue(t){return`{${t[0]},${t[1]},${t[2]}}`}},T1=class extends te{static[_]="PgLineABCBuilder";constructor(t){super(t,"json","PgLineABC")}build(t){return new U1(t,this.config)}},U1=class extends J{static[_]="PgLineABC";getSQLType(){return"line"}mapFromDriverValue(t){let[n,o,a]=t.slice(1,-1).split(",");return{a:Number.parseFloat(n),b:Number.parseFloat(o),c:Number.parseFloat(a)}}mapToDriverValue(t){return`{${t.a},${t.b},${t.c}}`}};function d7(e,t){let{name:n,config:o}=Ne(e,t);return!o?.mode||o.mode==="tuple"?new G1(n):new T1(n)}var O1=class extends te{static[_]="PgMacaddrBuilder";constructor(t){super(t,"string","PgMacaddr")}build(t){return new q1(t,this.config)}},q1=class extends J{static[_]="PgMacaddr";getSQLType(){return"macaddr"}};function l7(e){return new O1(e??"")}var z1=class extends te{static[_]="PgMacaddr8Builder";constructor(t){super(t,"string","PgMacaddr8")}build(t){return new Y1(t,this.config)}},Y1=class extends J{static[_]="PgMacaddr8";getSQLType(){return"macaddr8"}};function p7(e){return new z1(e??"")}var K1=class extends te{static[_]="PgNumericBuilder";constructor(t,n,o){super(t,"string","PgNumeric"),this.config.precision=n,this.config.scale=o}build(t){return new J1(t,this.config)}},J1=class extends J{static[_]="PgNumeric";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(t){return typeof t=="string"?t:String(t)}getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}},W1=class extends te{static[_]="PgNumericNumberBuilder";constructor(t,n,o){super(t,"number","PgNumericNumber"),this.config.precision=n,this.config.scale=o}build(t){return new Z1(t,this.config)}},Z1=class extends J{static[_]="PgNumericNumber";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}mapToDriverValue=String;getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}},V1=class extends te{static[_]="PgNumericBigIntBuilder";constructor(t,n,o){super(t,"bigint","PgNumericBigInt"),this.config.precision=n,this.config.scale=o}build(t){return new X1(t,this.config)}},X1=class extends J{static[_]="PgNumericBigInt";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}};function g7(e,t){let{name:n,config:o}=Ne(e,t),a=o?.mode;return a==="number"?new W1(n,o?.precision,o?.scale):a==="bigint"?new V1(n,o?.precision,o?.scale):new K1(n,o?.precision,o?.scale)}var eF=class extends te{static[_]="PgPointTupleBuilder";constructor(t){super(t,"array","PgPointTuple")}build(t){return new tF(t,this.config)}},tF=class extends J{static[_]="PgPointTuple";getSQLType(){return"point"}mapFromDriverValue(t){if(typeof t=="string"){let[n,o]=t.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(o)]}return[t.x,t.y]}mapToDriverValue(t){return`(${t[0]},${t[1]})`}},nF=class extends te{static[_]="PgPointObjectBuilder";constructor(t){super(t,"json","PgPointObject")}build(t){return new aF(t,this.config)}},aF=class extends J{static[_]="PgPointObject";getSQLType(){return"point"}mapFromDriverValue(t){if(typeof t=="string"){let[n,o]=t.slice(1,-1).split(",");return{x:Number.parseFloat(n),y:Number.parseFloat(o)}}return t}mapToDriverValue(t){return`(${t.x},${t.y})`}};function m7(e,t){let{name:n,config:o}=Ne(e,t);return!o?.mode||o.mode==="tuple"?new eF(n):new nF(n)}function Bre(e){let t=[];for(let n=0;n<e.length;n+=2)t.push(Number.parseInt(e.slice(n,n+2),16));return new Uint8Array(t)}function f7(e,t){let n=new ArrayBuffer(8),o=new DataView(n);for(let a=0;a<8;a++)o.setUint8(a,e[t+a]);return o.getFloat64(0,!0)}function oF(e){let t=Bre(e),n=0,o=t[n];n+=1;let a=new DataView(t.buffer),r=a.getUint32(n,o===1);n+=4;let i;if(r&536870912&&(i=a.getUint32(n,o===1),n+=4),(r&65535)===1){let A=f7(t,n);n+=8;let s=f7(t,n);return n+=8,[A,s]}throw new Error("Unsupported geometry type")}var rF=class extends te{static[_]="PgGeometryBuilder";constructor(t){super(t,"array","PgGeometry")}build(t){return new iF(t,this.config)}},iF=class extends J{static[_]="PgGeometry";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){return oF(t)}mapToDriverValue(t){return`point(${t[0]} ${t[1]})`}},AF=class extends te{static[_]="PgGeometryObjectBuilder";constructor(t){super(t,"json","PgGeometryObject")}build(t){return new sF(t,this.config)}},sF=class extends J{static[_]="PgGeometryObject";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){let n=oF(t);return{x:n[0],y:n[1]}}mapToDriverValue(t){return`point(${t.x} ${t.y})`}};function b7(e,t){let{name:n,config:o}=Ne(e,t);return!o?.mode||o.mode==="tuple"?new rF(n):new AF(n)}var cF=class extends te{static[_]="PgRealBuilder";constructor(t,n){super(t,"number","PgReal"),this.config.length=n}build(t){return new uF(t,this.config)}},uF=class extends J{static[_]="PgReal";constructor(t,n){super(t,n)}getSQLType(){return"real"}mapFromDriverValue=t=>typeof t=="string"?Number.parseFloat(t):t};function h7(e){return new cF(e??"")}var dF=class extends te{static[_]="PgSerialBuilder";constructor(t){super(t,"number","PgSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new lF(t,this.config)}},lF=class extends J{static[_]="PgSerial";getSQLType(){return"serial"}};function B7(e){return new dF(e??"")}var pF=class extends vA{static[_]="PgSmallIntBuilder";constructor(t){super(t,"number","PgSmallInt")}build(t){return new gF(t,this.config)}},gF=class extends J{static[_]="PgSmallInt";getSQLType(){return"smallint"}mapFromDriverValue=t=>typeof t=="string"?Number(t):t};function y7(e){return new pF(e??"")}var mF=class extends te{static[_]="PgSmallSerialBuilder";constructor(t){super(t,"number","PgSmallSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new fF(t,this.config)}},fF=class extends J{static[_]="PgSmallSerial";getSQLType(){return"smallserial"}};function C7(e){return new mF(e??"")}var bF=class extends te{static[_]="PgTextBuilder";constructor(t,n){super(t,"string","PgText"),this.config.enumValues=n.enum}build(t){return new hF(t,this.config)}},hF=class extends J{static[_]="PgText";enumValues=this.config.enumValues;getSQLType(){return"text"}};function Mr(e,t={}){let{name:n,config:o}=Ne(e,t);return new bF(n,o)}var BF=class extends ki{constructor(t,n,o){super(t,"string","PgTime"),this.withTimezone=n,this.precision=o,this.config.withTimezone=n,this.config.precision=o}static[_]="PgTimeBuilder";build(t){return new yF(t,this.config)}},yF=class extends J{static[_]="PgTime";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`time${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}};function w7(e,t={}){let{name:n,config:o}=Ne(e,t);return new BF(n,o.withTimezone??!1,o.precision)}var CF=class extends ki{static[_]="PgTimestampBuilder";constructor(t,n,o){super(t,"date","PgTimestamp"),this.config.withTimezone=n,this.config.precision=o}build(t){return new wF(t,this.config)}},wF=class extends J{static[_]="PgTimestamp";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":` (${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue(t){return typeof t=="string"?new Date(this.withTimezone?t:t+"+0000"):t}mapToDriverValue=t=>t.toISOString()},EF=class extends ki{static[_]="PgTimestampStringBuilder";constructor(t,n,o){super(t,"string","PgTimestampString"),this.config.withTimezone=n,this.config.precision=o}build(t){return new kF(t,this.config)}},kF=class extends J{static[_]="PgTimestampString";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue(t){if(typeof t=="string")return t;let n=t.toISOString().slice(0,-1).replace("T"," ");if(this.withTimezone){let o=t.getTimezoneOffset(),a=o<=0?"+":"-";return`${n}${a}${Math.floor(Math.abs(o)/60).toString().padStart(2,"0")}`}return n}};function Hy(e,t={}){let{name:n,config:o}=Ne(e,t);return o?.mode==="string"?new EF(n,o.withTimezone??!1,o.precision):new CF(n,o?.withTimezone??!1,o?.precision)}var QF=class extends te{static[_]="PgUUIDBuilder";constructor(t){super(t,"string","PgUUID")}defaultRandom(){return this.default(vl`gen_random_uuid()`)}build(t){return new IF(t,this.config)}},IF=class extends J{static[_]="PgUUID";getSQLType(){return"uuid"}};function E7(e){return new QF(e??"")}var vF=class extends te{static[_]="PgVarcharBuilder";constructor(t,n){super(t,"string","PgVarchar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new _F(t,this.config)}},_F=class extends J{static[_]="PgVarchar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"varchar":`varchar(${this.length})`}};function k7(e,t={}){let{name:n,config:o}=Ne(e,t);return new vF(n,o)}var xF=class extends te{static[_]="PgBinaryVectorBuilder";constructor(t,n){super(t,"string","PgBinaryVector"),this.config.dimensions=n.dimensions}build(t){return new DF(t,this.config)}},DF=class extends J{static[_]="PgBinaryVector";dimensions=this.config.dimensions;getSQLType(){return`bit(${this.dimensions})`}};function Q7(e,t){let{name:n,config:o}=Ne(e,t);return new xF(n,o)}var FF=class extends te{static[_]="PgHalfVectorBuilder";constructor(t,n){super(t,"array","PgHalfVector"),this.config.dimensions=n.dimensions}build(t){return new SF(t,this.config)}},SF=class extends J{static[_]="PgHalfVector";dimensions=this.config.dimensions;getSQLType(){return`halfvec(${this.dimensions})`}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){return t.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}};function I7(e,t){let{name:n,config:o}=Ne(e,t);return new FF(n,o)}var LF=class extends te{static[_]="PgSparseVectorBuilder";constructor(t,n){super(t,"string","PgSparseVector"),this.config.dimensions=n.dimensions}build(t){return new RF(t,this.config)}},RF=class extends J{static[_]="PgSparseVector";dimensions=this.config.dimensions;getSQLType(){return`sparsevec(${this.dimensions})`}};function v7(e,t){let{name:n,config:o}=Ne(e,t);return new LF(n,o)}var NF=class extends te{static[_]="PgVectorBuilder";constructor(t,n){super(t,"array","PgVector"),this.config.dimensions=n.dimensions}build(t){return new MF(t,this.config)}},MF=class extends J{static[_]="PgVector";dimensions=this.config.dimensions;getSQLType(){return`vector(${this.dimensions})`}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){return t.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}};function _7(e,t){let{name:n,config:o}=Ne(e,t);return new NF(n,o)}function x7(){return{bigint:Xj,bigserial:e7,boolean:t7,char:n7,cidr:a7,customType:o7,date:r7,doublePrecision:i7,inet:A7,integer:s7,interval:c7,json:u7,jsonb:Gy,line:d7,macaddr:l7,macaddr8:p7,numeric:g7,point:m7,geometry:b7,real:h7,serial:B7,smallint:y7,smallserial:C7,text:Mr,time:w7,timestamp:Hy,uuid:E7,varchar:k7,bit:Q7,halfvec:I7,sparsevec:v7,vector:_7}}var $F=Symbol.for("drizzle:PgInlineForeignKeys"),D7=Symbol.for("drizzle:EnableRLS"),pm=class extends ln{static[_]="PgTable";static Symbol=Object.assign({},ln.Symbol,{InlineForeignKeys:$F,EnableRLS:D7});[$F]=[];[D7]=!1;[ln.Symbol.ExtraConfigBuilder]=void 0;[ln.Symbol.ExtraConfigColumns]={}};function yre(e,t,n,o,a=e){let r=new pm(e,o,a),i=typeof t=="function"?t(x7()):t,A=Object.fromEntries(Object.entries(i).map(([d,l])=>{let g=l;g.setName(d);let p=g.build(r);return r[$F].push(...g.buildForeignKeys(p,r)),[d,p]})),s=Object.fromEntries(Object.entries(i).map(([d,l])=>{let g=l;g.setName(d);let p=g.buildExtraConfigColumn(r);return[d,p]})),c=Object.assign(r,A);return c[ln.Symbol.Columns]=A,c[ln.Symbol.ExtraConfigColumns]=s,n&&(c[pm.Symbol.ExtraConfigBuilder]=n),Object.assign(c,{enableRLS:()=>(c[pm.Symbol.EnableRLS]=!0,c)})}var F7=(e,t,n)=>yre(e,t,n,void 0);var Ty=class{constructor(t,n){this.unique=t,this.name=n}static[_]="PgIndexBuilderOn";on(...t){return new gm(t.map(n=>{if(vn(n,pn))return n;n=n;let o=new kl(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=JSON.parse(JSON.stringify(n.defaultConfig)),o}),this.unique,!1,this.name)}onOnly(...t){return new gm(t.map(n=>{if(vn(n,pn))return n;n=n;let o=new kl(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=n.defaultConfig,o}),this.unique,!0,this.name)}using(t,...n){return new gm(n.map(o=>{if(vn(o,pn))return o;o=o;let a=new kl(o.name,!!o.keyAsName,o.columnType,o.indexConfig);return o.indexConfig=JSON.parse(JSON.stringify(o.defaultConfig)),a}),this.unique,!0,this.name,t)}},gm=class{static[_]="PgIndexBuilder";config;constructor(t,n,o,a,r="btree"){this.config={name:a,columns:t,unique:n,only:o,method:r}}concurrently(){return this.config.concurrently=!0,this}with(t){return this.config.with=t,this}where(t){return this.config.where=t,this}build(t){return new jF(this.config,t)}},jF=class{static[_]="PgIndex";config;constructor(t,n){this.config={...t,table:n}}};function S7(e){return new Ty(!1,e)}function L7(e){return new Ty(!0,e)}var R7=e=>Hy(e,{withTimezone:!0}),N7=u.enum(["channel","dm","group","local_conversation","thread","web_session"]),QFe=F7("junior_destinations",{id:Mr("id").primaryKey(),provider:Mr("provider").notNull(),providerTenantId:Mr("provider_tenant_id").notNull().default(""),providerDestinationId:Mr("provider_destination_id").notNull(),kind:Mr("kind").$type().notNull(),parentDestinationId:Mr("parent_destination_id"),displayName:Mr("display_name"),visibility:Mr("visibility").$type().notNull().default("unknown"),metadata:Gy("metadata_json"),createdAt:R7("created_at").notNull(),updatedAt:R7("updated_at").notNull()},e=>[L7("junior_destinations_provider_destination_uidx").on(e.provider,e.providerTenantId,e.providerDestinationId),S7("junior_destinations_provider_kind_idx").on(e.provider,e.kind)]);function Cre(e){try{let t=new URL(e).protocol;return t==="http:"||t==="https:"}catch{return!1}}var wre=u.object({kind:u.literal("resource_link"),key:u.string().trim().min(1).max(256),label:u.string().trim().min(1).max(256),url:u.string().url().max(2048).refine(Cre,"URL must use HTTP or HTTPS."),description:u.string().trim().min(1).max(512).optional(),status:u.enum(["open","draft","closed","merged","warning"]).optional()}).strict(),j7=u.discriminatedUnion("kind",[wre]),Ere=u.enum(["circle-dot","circle-dashed","circle-x","git-merge","git-pull-request","triangle-alert"]),P7=u.object({icon:Ere.optional(),key:u.string().trim().min(1).max(256),label:u.string().trim().min(1).max(256)}).strict(),xFe=u.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_]*$/),kre=u.enum(["activity","brain","calendar","check","database","info","key","link","sparkles","warning"]),Qre=u.object({content:u.string().min(1).max(32*1024).optional(),description:u.string().trim().min(1).max(2e3).optional(),metadata:u.array(u.string().trim().min(1).max(120)).max(8).optional(),title:u.string().trim().min(1).max(4e3)}).strict(),G7=u.object({details:u.array(Qre).max(100).optional(),icon:kre.optional(),preview:u.string().trim().min(1).max(500).optional(),title:u.string().trim().min(1).max(120)}).strict();var H7=u.string().regex(/^T[A-Z0-9]+$/),Ire=u.string().regex(/^(C|G|D)[A-Z0-9]+$/),T7=u.string().regex(/^local:[a-z0-9_-]+:[a-z0-9][a-z0-9_-]*$/),vre=u.string().min(1).refine(e=>e===e.trim()&&e.toLowerCase()!=="unknown"),Uy=vre,de=u.string().refine(e=>e.trim().length>0),_A=de.refine(e=>e===e.trim()),FFe=u.enum(["slack","local"]),U7=u.enum(["public","private"]),_re=u.enum(["public","private"]),O7=u.object({platform:u.literal("slack"),teamId:H7,channelId:Ire}).strict(),q7=O7,xre=u.object({platform:u.literal("local"),conversationId:T7}).strict(),Dre=u.discriminatedUnion("platform",[q7,xre]),Fre=O7.extend({visibility:U7,messageTs:de.optional(),threadTs:de.optional()}).strict(),Sre=u.object({platform:u.literal("local"),visibility:u.literal("private"),conversationId:T7}).strict(),Lre=u.object({platform:u.literal("web"),visibility:U7,conversationId:_A}).strict(),z7=u.discriminatedUnion("platform",[Fre,Sre,Lre]),Rre=u.discriminatedUnion("allowedWhen",[u.object({type:u.literal("user"),userId:Uy,allowedWhen:u.literal("private-direct-conversation")}).strict(),u.object({type:u.literal("user"),userId:Uy,allowedWhen:u.literal("scheduled-task"),taskId:_A}).strict()]),GF={email:de.optional(),fullName:de.optional(),userId:Uy,userName:de.optional()},Nre=u.object({...GF,platform:u.literal("slack"),teamId:H7}).strict(),Mre=u.object({...GF,platform:u.literal("local")}).strict(),$re=u.object({...GF,platform:u.literal("web")}).strict(),jre=u.object({platform:u.literal("system"),name:Uy}).strict(),PF=u.discriminatedUnion("platform",[Nre,Mre,$re,jre]),Pre=u.object({displayName:de.optional(),handle:de.optional(),id:_A,provider:_A,providerSubjectId:_A,providerTenantId:_A.optional()}).strict(),SFe=u.object({displayName:de.optional(),email:de.max(320),id:_A,identities:u.array(Pre).max(100)}).strict(),Gre=u.record(u.string(),u.string()).superRefine((e,t)=>{let n=Object.entries(e);if(n.length>20){t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata has too many keys"});return}for(let[o,a]of n){if(!o.trim()){t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata values must be strings",path:[o]});continue}o.length>128&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata key exceeds the maximum length",path:[o]}),/[\r\n]/.test(o)&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata keys must be single-line strings",path:[o]}),/[\r\n]/.test(a)&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata values must be single-line strings",path:[o]}),a.length>512&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata value exceeds the maximum length",path:[o]})}}),Hre=u.object({label:_A.pipe(u.string().max(48)).refine(e=>!/[\r\n]/.test(e)),detail:_A.pipe(u.string().max(128)).refine(e=>!/[\r\n]/.test(e)).optional()}).strict(),LFe=u.object({idempotencyKey:de.pipe(u.string().max(512)),credentialSubject:Rre.optional(),destination:q7,destinationVisibility:_re,input:de.pipe(u.string().max(32e3)),metadata:Gre.optional(),replyAttribution:Hre.optional(),source:z7}).strict();var Tre=u.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_-]*$/),NFe=u.object({text:u.string().trim().min(1).max(8e3)}).strict(),MFe=u.object({kind:Tre,version:u.number().int().positive(),content:u.record(u.string(),u.unknown())}).strict();var Ure=4e3,Ore=8e3,M7=32,$7=4e3,qre=1e3,zre=u.record(u.string(),u.unknown()).superRefine((e,t)=>{Object.keys(e).length>M7&&t.addIssue({code:"custom",message:`Resource event data may include at most ${M7} keys.`}),new TextEncoder().encode(JSON.stringify(e)).byteLength>$7&&t.addIssue({code:"custom",message:`Resource event data may be at most ${$7} JSON bytes.`})}),Kc=u.string().regex(/^[a-z][a-z0-9_-]*(?:\.[a-z][a-z0-9_-]*)+$/).describe("Canonical dotted event type, such as issue.closed or pull_request.review.changes_requested."),Y7=u.string().regex(/^[a-z][a-z0-9_]*$/).describe("Canonical plugin-defined resource type, such as issue or pull_request."),Yre=u.object({type:Y7,supportedEvents:u.array(Kc).min(1),suggestedEvents:u.array(Kc).optional(),guidance:u.record(Kc,u.string().trim().min(1).max(qre)).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.supportedEvents.forEach((a,r)=>{n.has(a)&&t.addIssue({code:"custom",message:`Duplicate supported resource event type "${a}".`,path:["supportedEvents",r]}),n.add(a)});for(let a of Object.keys(e.guidance??{}))n.has(a)||t.addIssue({code:"custom",message:`Guidance resource event type "${a}" is not supported.`,path:["guidance",a]});let o=new Set;e.suggestedEvents?.forEach((a,r)=>{o.has(a)&&t.addIssue({code:"custom",message:`Duplicate suggested resource event type "${a}".`,path:["suggestedEvents",r]}),n.has(a)||t.addIssue({code:"custom",message:`Suggested resource event type "${a}" is not supported.`,path:["suggestedEvents",r]}),o.add(a)})}),jFe=u.object({resourceTypes:u.array(Yre).min(1),isEnabled:u.function({input:[],output:u.boolean()}).optional(),normalizeIdentifier:u.function({input:[u.string()],output:u.string()}).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.resourceTypes.forEach((o,a)=>{n.has(o.type)&&t.addIssue({code:"custom",message:`Duplicate resource type "${o.type}".`,path:["resourceTypes",a,"type"]}),n.add(o.type)})});var PFe=u.object({identifier:u.string().min(1),label:u.string().min(1),namespace:u.string().min(1),suggestedEvents:u.array(Kc).optional(),supportedEvents:u.array(Kc),type:Y7}).strict(),GFe=u.object({events:u.array(Kc).min(1),id:u.string().min(1)}).strict(),Kre=u.object({eventKey:u.string().min(1),eventType:Kc,identifier:u.string().min(1),occurredAtMs:u.number().finite(),terminal:u.boolean().optional(),trustedSummary:u.string().min(1).transform(e=>e.slice(0,Ure)),data:zre.optional(),untrustedText:u.string().transform(e=>e.slice(0,Ore)).optional()}).strict(),HFe=Kre.extend({namespace:u.string().min(1)}),Jre=u.object({authority:u.enum(["instruction","context"]),actor:PF.optional()}).strict(),Wre=u.discriminatedUnion("type",[u.object({type:u.literal("message"),role:u.enum(["user","assistant"]),text:u.string().min(1),provenance:Jre.optional(),isRunActor:u.boolean().optional()}).strict(),u.object({type:u.literal("toolResult"),toolName:u.string().min(1),isError:u.boolean(),text:u.string().min(1).optional()}).strict()]),UFe=u.object({completedAtMs:u.number().finite(),conversationId:u.string().min(1),destination:Dre,actors:u.array(PF),actor:PF.optional(),runId:u.string().min(1),source:z7,transcript:u.array(Wre)}).strict();var qFe=u.discriminatedUnion("type",[u.object({type:u.literal("text"),text:u.string()}).strict(),u.object({type:u.literal("image"),data:u.string(),mimeType:u.string()}).strict()]),Zre=u.object({arguments:u.record(u.string(),u.unknown()),reason:u.string().min(1).optional()}).strict(),zFe=u.object({target:u.string().min(1).optional(),truncated:u.boolean().optional(),continuation:Zre.optional()}).passthrough(),YFe=u.enum(["auto","review","approve"]);var JFe=u.object({auth:u.object({user:u.object({email:u.string().nullable().optional(),emailVerified:u.boolean().optional(),name:u.string().nullable().optional()}).strict()}).strict(),pluginName:de}).strict(),Vre=u.string().regex(/^[a-z][a-z0-9-]*$/),Xre=u.string().regex(/^[a-z][a-z0-9.-]*$/),eie=u.union([u.literal("read"),u.literal("write")]),K7=u.object({provider:Vre,scope:de.optional(),type:u.literal("oauth")}).strict(),J7=u.object({displayName:de.optional(),handle:de.optional(),id:de,label:de.optional(),url:de.optional()}).strict(),ZFe=u.object({account:J7.optional(),accessToken:de,expiresAt:u.number().finite().optional(),refreshToken:de,refreshTokenExpiresAt:u.number().finite().optional(),scope:de.optional()}).strict(),VFe=u.object({access:eie,leaseScope:de.optional(),name:Xre,reason:de.optional(),requirements:u.array(de).min(1).optional()}).strict(),tie=u.object({domain:u.string().min(1),headers:u.record(u.string(),u.string()).refine(e=>Object.keys(e).length>0)}).strict(),nie=u.object({account:J7.optional(),authorization:K7.optional(),expiresAt:u.string().refine(e=>Number.isFinite(Date.parse(e))),headerTransforms:u.array(tie).min(1)}).strict(),XFe=u.discriminatedUnion("type",[u.object({lease:nie,type:u.literal("lease")}).strict(),u.object({authorization:K7.optional(),message:de,type:u.literal("needed")}).strict(),u.object({message:de,type:u.literal("unavailable")}).strict()]);var aie=de.max(64).regex(/^[a-z][a-z0-9-]*$/),oie=de.max(80),rie=de.max(500),iie=u.enum(["primary","profile"]),Aie=u.object({detail:de.max(500).optional(),label:de.max(80),tone:u.enum(["good","neutral","warning"]).optional(),value:de.max(120)}).strict(),sie=u.object({label:de.max(80),value:de.max(500)}).strict(),cie=u.object({confirmation:de.max(500).optional(),href:de.max(500).regex(/^\/api\/plugins\/[a-z][a-z0-9-]*(?:\/|$)/),label:de.max(80),method:u.literal("DELETE"),tone:u.enum(["danger","neutral"]).optional()}).strict(),uie=u.object({actions:u.array(cie).max(4).optional(),description:de.max(1e3).optional(),id:de.max(128),metadata:u.array(sie).max(8).optional(),title:de.max(4e3)}).strict(),t8e=u.object({emptyText:de.max(500).optional(),metrics:u.array(Aie).max(6).optional(),nextCursor:de.max(1e3).optional(),records:u.array(uie).max(100),searchPlaceholder:de.max(120).optional(),type:u.literal("list")}).strict(),die=u.object({description:rie,id:aie,label:oie,navigation:iie,pluginDisplayName:de.max(200),pluginName:de.max(100)}).strict(),n8e=u.array(die),lie=de.max(1e3).optional(),pie=de.max(64).optional(),gie=u.string().trim().max(200).optional(),a8e=u.object({cursor:lie,filter:pie,limit:u.number().int().min(1).max(50),query:gie}).strict();var Z7=u.object({active:u.number(),conversations:u.number(),date:u.string(),durationMs:u.number(),failed:u.number(),tokens:u.number().optional()}).strict();var mie=u.enum(["active","completed","failed"]),fie=u.enum(["api","internal","scheduler","slack"]),V7=Nj,bie=u.object({conversationId:u.string().min(1)}).strict(),u8e=u.object({attachmentId:u.string().min(1),conversationId:u.string().min(1)}).strict(),hie=u.object({limit:u.coerce.number().int().min(1).max(1e3).default(500)}).strict(),Bie=u.object({before:u.string().min(1),limit:u.coerce.number().int().min(1).max(1e3).default(500)}).strict(),yie=u.object({actorEmail:u.string().trim().email().transform(e=>e.toLowerCase()).optional(),status:u.enum(["active","archived"]).default("active")}).strict(),Cie=u.object({archived:u.boolean(),lastSeenAt:u.string().datetime()}).strict(),HF=u.object({archivedAt:u.string().datetime().nullable()}).strict(),wie=u.object({idempotencyKey:u.string().trim().min(1).max(200),message:u.string().trim().min(1).max(32e3),visibility:u.enum(["private","public"]).optional()}).strict(),Eie=u.object({idempotencyKey:u.string().trim().min(1).max(200),message:u.string().trim().min(1).max(32e3)}).strict(),Oy=u.object({conversationId:u.string().min(1),messageId:u.string().min(1),status:u.enum(["accepted","duplicate"])}).strict(),mm=u.object({email:u.string().optional(),fullName:u.string().optional(),slackUserId:u.string().optional(),slackUserName:u.string().optional()}).strict(),X7=u.enum(["defer","interrupt"]),eP=u.object({actorIdentity:mm.optional(),createdAt:u.string().datetime(),delivery:X7,inboundMessageId:u.string().min(1),messageId:u.string().min(1),receivedAt:u.string().datetime(),role:u.literal("user"),source:u.enum(["slack","web"]),text:u.string().optional(),redacted:u.literal(!0).optional()}).strict().superRefine((e,t)=>{e.text===void 0==(e.redacted!==!0)&&t.addIssue({code:"custom",message:"pending message content must be text or explicitly redacted"}),e.redacted&&e.actorIdentity&&t.addIssue({code:"custom",message:"redacted pending messages must not expose actor identity"})}),tP=u.object({authorizationUrl:u.string().url(),completionText:u.string().min(1),label:u.string().min(1)}).strict(),TF=u.object({authorization:tP.optional(),conversationId:u.string().min(1),generatedAt:u.string().datetime(),messages:u.array(eP)}).strict(),kie=u.object({inboundMessageIds:u.array(u.string().min(1)).min(1).optional(),receivedBefore:u.string().datetime().optional()}).strict(),UF=u.object({cancelledCount:u.number().int().nonnegative(),cancelledInboundMessageIds:u.array(u.string().min(1)),conversationId:u.string().min(1)}).strict(),nP=u.object({costUsd:u.number().finite().nonnegative(),operations:u.array(u.object({costUsd:u.number().finite().nonnegative(),events:u.number().int().positive(),name:u.string().min(1),namespace:u.string().min(1)}).strict()).min(1)}).strict(),Qie=u.object({id:u.string().min(1).optional(),kind:u.enum(["scheduled","event"]),label:u.string().min(1).optional(),title:u.string().min(1).optional()}).strict().superRefine((e,t)=>{!!e.id!=!!e.label&&t.addIssue({code:"custom",message:"sourceTask id and label must both be set or both omitted"})}),Iie=j7.and(u.object({plugin:u.string().min(1),createdAt:u.string().datetime(),updatedAt:u.string().datetime()})),fm=u.object({displayTitle:u.string(),cumulativeDurationMs:u.number(),cumulativeUsage:V7.optional(),auxiliaryCosts:nP.optional(),conversationId:u.string(),isParticipant:u.boolean(),visibility:u.enum(["private","public"]).optional(),status:mie,startedAt:u.string(),lastSeenAt:u.string(),lastProgressAt:u.string(),surface:fie,actorIdentity:mm.optional(),archivedAt:u.string().datetime().nullable().optional(),channel:u.string().optional(),channelName:u.string().optional(),channelNameRedacted:u.boolean().optional(),locationId:u.string().optional(),sentryTraceUrl:u.string().optional(),sourceUrl:u.string().url().optional(),traceId:u.string().optional(),annotations:u.array(Iie).optional(),sidebarAnnotations:u.array(P7).optional(),assignedWork:u.boolean().optional(),finishedWorkAt:u.string().datetime().optional(),isPriority:u.boolean().optional(),unfinishedWork:u.boolean().optional()}).strict(),vie=u.object({type:u.literal("message"),messageId:u.string().min(1),role:u.enum(["assistant","system","user"]),source:u.enum(["slack","web"]).optional(),actorIdentity:mm.optional(),eventType:u.string().min(1).optional(),explicitMention:u.boolean().optional(),text:u.string().optional(),redacted:u.literal(!0).optional()}).strict().superRefine((e,t)=>{e.text===void 0==(e.redacted!==!0)&&t.addIssue({code:"custom",message:"message content must be text or explicitly redacted"}),e.redacted&&e.actorIdentity&&t.addIssue({code:"custom",message:"redacted messages must not expose actor identity"})}),_ie=u.object({type:u.literal("message_handled"),messageId:u.string().min(1)}).strict(),xie=u.object({toolCallId:u.string().min(1),name:u.string().min(1),status:u.enum(["running","completed","error"]),startedAt:u.string().datetime().optional(),startedSeq:u.number().int().nonnegative().optional(),input:u.unknown().optional(),output:u.unknown().optional()}).strict().superRefine((e,t)=>{e.startedAt===void 0!=(e.startedSeq===void 0)&&t.addIssue({code:"custom",message:"tool start sequence and timestamp must be provided together"})}),aP=u.object({type:u.literal("reasoning"),text:u.string().min(1).optional(),redacted:u.literal(!0).optional()}).strict().superRefine((e,t)=>{e.text===void 0==(e.redacted!==!0)&&t.addIssue({code:"custom",message:"reasoning content must be text or explicitly redacted"})}),Die=u.object({type:u.literal("tool_call"),toolCallId:u.string().min(1)}).strict(),Fie=u.object({parts:u.array(u.discriminatedUnion("type",[aP,Die])).min(1)}).strict(),Sie=u.object({type:u.literal("tool_calls"),calls:u.array(xie).min(1),assistant:Fie.optional()}).strict().superRefine((e,t)=>{if(!e.assistant)return;let n=new Map;for(let a of e.calls)n.set(a.toolCallId,(n.get(a.toolCallId)??0)+1);let o=new Map;for(let a of e.assistant.parts)a.type==="tool_call"&&o.set(a.toolCallId,(o.get(a.toolCallId)??0)+1);(n.size!==o.size||[...n].some(([a,r])=>o.get(a)!==r))&&t.addIssue({code:"custom",path:["assistant","parts"],message:"assistant tool parts must reference every call exactly once"})}),Lie=u.object({type:u.literal("assistant_message"),parts:u.array(aP).min(1)}).strict(),Rie=u.discriminatedUnion("state",[u.object({type:u.literal("turn_lifecycle"),turnId:u.string().min(1),state:u.enum(["succeeded","no_reply"])}).strict(),u.object({type:u.literal("turn_lifecycle"),turnId:u.string().min(1),state:u.literal("started"),inputMessageIds:u.array(u.string().min(1)).min(1).optional()}).strict(),u.object({type:u.literal("turn_lifecycle"),turnId:u.string().min(1),state:u.literal("failed"),failureKind:u.enum(["agent","delivery"])}).strict()]),Nie=u.object({type:u.literal("turn_routed"),turnId:u.string().min(1),modelProfile:u.string().min(1),modelId:u.string().min(1),costUsd:u.number().finite().nonnegative().optional(),reasoningLevel:u.string().min(1),confidence:u.number().min(0).max(1).optional(),source:u.enum(["configured","inherited","router"])}).strict(),Mie=u.object({type:u.literal("guardian_action_reviewed"),turnId:u.string().min(1),toolCallId:u.string().min(1),toolName:u.string().min(1),decision:u.enum(["allow","ask","deny"]),riskLevel:u.enum(["low","medium","high","critical"]),userAuthorization:u.enum(["high","medium","low","unknown"])}).strict(),$ie=u.object({type:u.literal("turn_context"),turnId:u.string().min(1),pluginName:u.string().min(1),kind:u.string().min(1),version:u.number().int().positive(),content:u.record(u.string(),u.unknown())}).strict(),jie=u.object({type:u.literal("structured_event"),namespace:u.string().min(1),name:u.string().min(1),version:u.number().int().positive(),turnId:u.string().min(1).optional(),presentation:G7}).strict(),Pie=u.object({id:u.string().min(1),filename:u.string().min(1),contentType:u.string().min(1),bytes:u.number().int().nonnegative()}).strict(),Gie=u.object({type:u.literal("attachments_delivered"),attachments:u.array(Pie).min(1)}).strict(),Hie=u.object({type:u.literal("compaction"),modelProfile:u.string().min(1).optional(),modelId:u.string().min(1).optional(),summary:u.string().min(1).optional(),details:u.object({reason:u.literal("capacity"),estimatedInputTokens:u.number().int().nonnegative(),replacementInputTokens:u.number().int().nonnegative().optional(),triggerTokens:u.number().int().nonnegative(),inputLimitTokens:u.number().int().positive(),inputMessageCount:u.number().int().nonnegative(),retainedMessageCount:u.number().int().nonnegative(),summaryChars:u.number().int().nonnegative()}).strict().optional()}).strict(),Tie=u.object({type:u.literal("handoff"),modelProfile:u.string().min(1),modelId:u.string().min(1),reasoningLevel:u.string().min(1).optional(),triggeringToolCallId:u.string().min(1).optional(),summary:u.string().min(1).optional()}).strict(),Uie=u.object({type:u.literal("subagent"),startedSeq:u.number().int().nonnegative(),startedAt:u.string().datetime(),childConversationId:u.string().min(1),subagentKind:u.string().min(1),parentToolCallId:u.string().min(1).optional(),status:u.enum(["running","completed","error","aborted"])}).strict(),oP=u.discriminatedUnion("type",[vie,_ie,Lie,Sie,Rie,$ie,jie,Gie,Nie,Mie,Hie,Tie,Uie]),OF=u.object({seq:u.number().int().nonnegative(),createdAt:u.string().datetime(),data:oP}).strict(),qF=u.discriminatedUnion("status",[u.object({status:u.literal("available")}).strict(),u.object({status:u.literal("redacted"),reason:u.literal("non_public_conversation")}).strict(),u.object({status:u.literal("expired"),expiredAt:u.string().datetime()}).strict()]),Oie=u.object({modelId:u.string(),usage:V7}).strict();function rP(e,t){e.eventHistory.status==="expired"&&e.events.length>0&&t.addIssue({code:"custom",path:["events"],message:"expired event history must not contain events"});for(let n=1;n<e.events.length;n+=1)e.events[n].seq<=e.events[n-1].seq&&t.addIssue({code:"custom",path:["events",n,"seq"],message:"report event sequences must be strictly increasing"});for(let[n,o]of e.events.entries())o.data.type==="message"&&(e.eventHistory.status==="redacted"&&o.data.redacted!==!0&&t.addIssue({code:"custom",path:["events",n,"data"],message:"redacted event history must redact messages"}),e.eventHistory.status==="available"&&o.data.redacted===!0&&t.addIssue({code:"custom",path:["events",n,"data"],message:"available event history must expose messages"})),e.eventHistory.status==="redacted"&&o.data.type==="tool_calls"&&o.data.calls.some(a=>a.input!==void 0||a.output!==void 0)&&t.addIssue({code:"custom",path:["events",n,"data"],message:"redacted event history must redact tool payloads"}),e.eventHistory.status==="redacted"&&o.data.type==="assistant_message"&&o.data.parts.some(a=>a.text!==void 0)&&t.addIssue({code:"custom",path:["events",n,"data"],message:"redacted event history must redact assistant messages"}),e.eventHistory.status==="available"&&o.data.type==="assistant_message"&&o.data.parts.some(a=>a.redacted===!0)&&t.addIssue({code:"custom",path:["events",n,"data"],message:"available event history must expose reasoning"}),o.data.type==="tool_calls"&&(e.eventHistory.status==="redacted"&&o.data.assistant?.parts.some(a=>a.type==="reasoning"&&a.text!==void 0)||e.eventHistory.status==="available"&&o.data.assistant?.parts.some(a=>a.type==="reasoning"&&a.redacted===!0))&&t.addIssue({code:"custom",path:["events",n,"data","assistant"],message:"assistant reasoning must match event history visibility"})}var zF=fm.extend({modelUsage:u.array(Oie).optional(),events:u.array(OF),eventHistory:qF,previousCursor:u.string().min(1).optional(),generatedAt:u.string(),sentryConversationUrl:u.string().optional(),sourceTask:Qie.optional()}).strict().superRefine(rP),YF=u.object({events:u.array(OF),eventHistory:qF,previousCursor:u.string().min(1).optional(),generatedAt:u.string()}).strict().superRefine(rP),KF=u.object({conversations:u.array(fm),source:u.literal("conversation_index"),generatedAt:u.string()}).strict(),_l=u.object({active:u.number(),conversations:u.number(),durationMs:u.number(),failed:u.number(),label:u.string(),costUsd:u.number().optional(),tokens:u.number().optional()}).strict(),qie=u.object({cachedInputTokens:u.number().optional(),conversations:u.number(),costUsd:u.number().optional(),date:u.string(),durationMs:u.number(),inputTokens:u.number().optional(),tokens:u.number().optional()}).strict(),zie=u.object({allow:u.number(),ask:u.number(),costUsd:u.number().optional(),date:u.string(),deny:u.number(),requests:u.number()}).strict(),Yie=u.object({allow:u.number(),ask:u.number(),costUsd:u.number().optional(),deny:u.number(),metricDays:u.array(zie),requests:u.number()}).strict(),JF=u.object({active:u.number(),cachedInputTokens:u.number().optional(),conversations:u.number(),durationMs:u.number(),failed:u.number(),generatedAt:u.string(),guardian:Yie,metricDays:u.array(qie),locations:u.array(_l),actors:u.array(_l),source:u.literal("conversation_index"),costUsd:u.number().optional(),inputTokens:u.number().optional(),tokens:u.number().optional(),windowEnd:u.string(),windowStart:u.string()}).strict(),Kie=u.object({email:u.string().trim().min(1)}).strict(),W7=_l.omit({costUsd:!0}),Jie=u.object({active:u.number(),conversations:u.number(),costUsd:u.number().optional(),date:u.string(),durationMs:u.number(),failed:u.number(),tokens:u.number().optional()}).strict(),Wie=u.object({activePeople:u.number(),conversations:u.number(),date:u.string()}).strict(),iP=u.object({active:u.number(),activeDays:u.number(),conversations:u.number(),durationMs:u.number(),failed:u.number(),tokens:u.number().optional()}).strict(),AP=mm.extend({email:u.string().min(1)}).strict(),Zie=iP.extend({firstSeenAt:u.string(),lastSeenAt:u.string(),actor:AP}).strict(),WF=u.object({activityDays:u.array(Wie),generatedAt:u.string(),people:u.array(Zie),source:u.literal("conversation_index"),windowEnd:u.string(),windowStart:u.string()}).strict(),ZF=u.object({activityDays:u.array(Jie),generatedAt:u.string(),locations:u.array(W7),recentConversations:u.array(fm),actor:AP,source:u.literal("conversation_index"),surfaces:u.array(W7),totals:iP,windowEnd:u.string(),windowStart:u.string()}).strict(),VF=u.object({generatedAt:u.string(),sevenDaysUsd:u.number().finite().nonnegative(),source:u.literal("conversation_index"),thirtyDaysUsd:u.number().finite().nonnegative(),windowEnd:u.string(),windowStart:u.string()}).strict(),Vie=u.object({locationId:u.string().min(1)}).strict(),sP=_l.extend({id:u.string(),firstSeenAt:u.string(),kind:N7,lastSeenAt:u.string(),provider:u.string(),providerDestinationId:u.string(),visibility:u.literal("public")}).strict(),Xie=_l.extend({actor:mm}).strict(),cP=u.object({date:u.string(),privateConversations:u.number(),publicConversations:u.number()}).strict(),XF=u.object({activityDays:u.array(cP),generatedAt:u.string(),locations:u.array(sP),privateActivity:_l,source:u.literal("conversation_index"),windowEnd:u.string(),windowStart:u.string()}).strict(),e8=sP.extend({activityDays:u.array(Z7),actors:u.array(Xie),generatedAt:u.string(),recentConversations:u.array(fm),source:u.literal("conversation_index"),windowEnd:u.string(),windowStart:u.string()}).strict(),eAe=u.object({error:u.string().min(1)}).strict(),t8=u.object({id:u.string().uuid(),name:u.string(),tokenSuffix:u.string(),createdAt:u.string().datetime(),expiresAt:u.string().datetime(),lastUsedAt:u.string().datetime().nullable()}).strict(),n8=u.object({tokens:u.array(t8)}).strict(),tAe=u.object({name:u.string().trim().min(1).max(80)}).strict(),a8=t8.extend({token:u.string().startsWith("jr_pat_")}).strict(),nAe=u.object({id:u.string().uuid()}).strict(),aAe=u.object({revoked:u.literal(!0)}).strict(),oAe=u.object({provider:u.string(),repo:u.string()}).strict(),uP=u.object({provider:u.string(),repo:u.string(),checkoutPath:u.string()}).strict(),rAe=u.object({id:u.string(),generatedAt:u.iso.datetime(),buildDurationMs:u.number().int().nonnegative()}).strict(),dP=u.object({id:u.string(),generatedAt:u.iso.datetime(),buildDurationMs:u.number().int().nonnegative(),dependencyCount:u.number().int().nonnegative()}).strict(),xl=u.object({id:u.string().uuid(),name:u.string(),setupScript:u.string(),repos:u.array(uP),snapshot:rAe.nullable()}).strict(),o8=u.object({baselineSnapshot:dP.nullable(),workspaces:u.array(xl)}).strict(),iAe=u.object({name:u.string(),setupScript:u.string().optional(),repos:u.array(oAe)}).strict(),AAe=u.object({id:u.string().uuid()}).strict(),sAe=u.object({deleted:u.literal(!0)}).strict(),cAe=u.object({channelId:u.string().min(1),label:u.string().min(1),teamId:u.string().min(1),visibility:u.enum(["private","public"])}).strict(),lP=u.object({createdAt:u.string().datetime(),createdBy:u.string().min(1),createdByEmail:u.string().trim().email().optional(),destination:cAe,id:u.string().min(1),instruction:u.string().min(1),lastConversationId:u.string().min(1).optional(),lastRunAt:u.string().datetime().optional(),ownedByViewer:u.boolean(),runsLast7Days:u.number().int().nonnegative(),title:u.string().min(1),totalRuns:u.number().int().nonnegative()}),pP=lP.extend({kind:u.literal("scheduled"),nextRunAt:u.string().datetime().optional(),schedule:u.string().min(1),status:u.enum(["active","blocked","completed"])}).strict(),gP=lP.extend({events:u.array(u.string().min(1)).min(1),kind:u.literal("event"),resource:u.string().min(1),source:u.string().min(1),triggerAvailable:u.boolean()}).strict(),r8=u.discriminatedUnion("kind",[pP,gP]),uAe=u.object({date:u.string().min(1),event:u.number().int().nonnegative(),scheduled:u.number().int().nonnegative()}).strict(),i8=u.object({executionDays:u.array(uAe),tasks:u.array(r8),truncated:u.boolean()}).strict(),dAe=u.object({id:u.string().min(1),kind:u.enum(["scheduled","event"])}).strict(),mP=u.enum(["blocked","completed","failed"]),A8=u.object({conversationId:u.string().min(1).optional(),executedAt:u.string().datetime(),executionId:u.string().min(1),status:mP,title:u.string().min(1).optional()}).strict(),fP=u.object({blocked:u.number().int().nonnegative(),completed:u.number().int().nonnegative(),date:u.string().min(1),failed:u.number().int().nonnegative()}).strict(),s8=u.object({executionDays:u.array(fP),executions:u.array(A8),task:r8,truncated:u.boolean()}).strict(),bP=A8.extend({kind:u.enum(["scheduled","event"]),taskId:u.string().min(1),taskTitle:u.string().min(1)}).strict(),c8=u.object({runs:u.array(bP),truncated:u.boolean()}).strict(),hP=u.object({count:u.number().int().nonnegative(),date:u.string(),metric:u.string().min(1),name:u.string().min(1),namespace:u.string().min(1)}).strict(),u8=u.object({generatedAt:u.string().datetime(),stats:u.array(hP),windowEnd:u.string(),windowStart:u.string()}).strict();var lAe=u.object({status:u.literal("ok"),service:u.string(),timestamp:u.string()}).strict(),BP=u.object({configKeys:u.array(u.string()),description:u.string(),displayName:u.string(),name:u.string()}).strict(),d8=u.array(BP),l8=u.object({name:u.string(),pluginProvider:u.string().optional()}).strict(),p8=u.array(l8),yP=u.object({dir:u.string(),hasMigrationsDir:u.boolean(),hasSkillsDir:u.boolean(),packageName:u.string()}).strict(),CP=u.object({packageNames:u.array(u.string()),packages:u.array(yP),manifestRoots:u.array(u.string()),skillRoots:u.array(u.string()),tracingIncludes:u.array(u.string())}).strict(),pAe=u.object({cwd:u.string(),homeDir:u.string(),descriptionText:u.string().optional(),providers:u.array(u.string()),skills:u.array(l8),packagedContent:CP}).strict(),g8=u.enum(["danger","good","neutral","warning"]),gAe=u.object({label:u.string(),tone:g8.optional(),value:u.string()}).strict(),mAe=u.object({key:u.string(),label:u.string()}).strict(),fAe=u.object({id:u.string(),tone:g8.optional(),values:u.record(u.string(),u.string())}).strict(),bAe=u.object({fields:u.array(mAe).optional(),emptyText:u.string().optional(),records:u.array(fAe).optional(),title:u.string()}).strict(),hAe=u.object({categories:u.array(u.object({id:u.string().min(1),label:u.string().min(1),values:u.record(u.string(),u.number().finite())}).strict()).max(100),description:u.string().optional(),emptyText:u.string().optional(),id:u.string().min(1),series:u.array(u.object({format:u.literal("usd").optional(),key:u.string().min(1),label:u.string().min(1),tone:g8.optional()}).strict()).min(1).max(8),timeRangeDays:u.array(u.union([u.literal(7),u.literal(30),u.literal(90)])).min(1).max(3).optional(),title:u.string().min(1),type:u.literal("bar_chart")}).strict(),wP=u.object({generatedAt:u.string().optional(),metrics:u.array(gAe).optional(),recordSets:u.array(bAe).optional(),title:u.string().optional(),pluginName:u.string(),widgets:u.array(hAe).max(12).optional()}).strict(),qy=u.object({generatedAt:u.string(),reports:u.array(wP),source:u.literal("plugins")}).strict();function BAe(e){try{let t=new URL(e).protocol;return t==="http:"||t==="https:"}catch{return!1}}var yAe=u.object({kind:u.literal("resource_link"),key:u.string().trim().min(1).max(256),label:u.string().trim().min(1).max(256),url:u.string().url().max(2048).refine(BAe,"URL must use HTTP or HTTPS."),description:u.string().trim().min(1).max(512).optional(),status:u.enum(["open","draft","closed","merged","warning"]).optional()}).strict(),v8e=u.discriminatedUnion("kind",[yAe]),CAe=u.enum(["circle-dot","circle-dashed","circle-x","git-merge","git-pull-request","triangle-alert"]),_8e=u.object({icon:CAe.optional(),key:u.string().trim().min(1).max(256),label:u.string().trim().min(1).max(256)}).strict(),D8e=u.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_]*$/),wAe=u.enum(["activity","brain","calendar","check","database","info","key","link","sparkles","warning"]),EAe=u.object({content:u.string().min(1).max(32*1024).optional(),description:u.string().trim().min(1).max(2e3).optional(),metadata:u.array(u.string().trim().min(1).max(120)).max(8).optional(),title:u.string().trim().min(1).max(4e3)}).strict(),F8e=u.object({details:u.array(EAe).max(100).optional(),icon:wAe.optional(),preview:u.string().trim().min(1).max(500).optional(),title:u.string().trim().min(1).max(120)}).strict();var QP=u.string().regex(/^T[A-Z0-9]+$/),kAe=u.string().regex(/^(C|G|D)[A-Z0-9]+$/),IP=u.string().regex(/^local:[a-z0-9_-]+:[a-z0-9][a-z0-9_-]*$/),QAe=u.string().min(1).refine(e=>e===e.trim()&&e.toLowerCase()!=="unknown"),zy=QAe,le=u.string().refine(e=>e.trim().length>0),xA=le.refine(e=>e===e.trim()),L8e=u.enum(["slack","local"]),vP=u.enum(["public","private"]),IAe=u.enum(["public","private"]),_P=u.object({platform:u.literal("slack"),teamId:QP,channelId:kAe}).strict(),xP=_P,vAe=u.object({platform:u.literal("local"),conversationId:IP}).strict(),_Ae=u.discriminatedUnion("platform",[xP,vAe]),xAe=_P.extend({visibility:vP,messageTs:le.optional(),threadTs:le.optional()}).strict(),DAe=u.object({platform:u.literal("local"),visibility:u.literal("private"),conversationId:IP}).strict(),FAe=u.object({platform:u.literal("web"),visibility:vP,conversationId:xA}).strict(),DP=u.discriminatedUnion("platform",[xAe,DAe,FAe]),SAe=u.discriminatedUnion("allowedWhen",[u.object({type:u.literal("user"),userId:zy,allowedWhen:u.literal("private-direct-conversation")}).strict(),u.object({type:u.literal("user"),userId:zy,allowedWhen:u.literal("scheduled-task"),taskId:xA}).strict()]),f8={email:le.optional(),fullName:le.optional(),userId:zy,userName:le.optional()},LAe=u.object({...f8,platform:u.literal("slack"),teamId:QP}).strict(),RAe=u.object({...f8,platform:u.literal("local")}).strict(),NAe=u.object({...f8,platform:u.literal("web")}).strict(),MAe=u.object({platform:u.literal("system"),name:zy}).strict(),m8=u.discriminatedUnion("platform",[LAe,RAe,NAe,MAe]),$Ae=u.object({displayName:le.optional(),handle:le.optional(),id:xA,provider:xA,providerSubjectId:xA,providerTenantId:xA.optional()}).strict(),R8e=u.object({displayName:le.optional(),email:le.max(320),id:xA,identities:u.array($Ae).max(100)}).strict(),jAe=u.record(u.string(),u.string()).superRefine((e,t)=>{let n=Object.entries(e);if(n.length>20){t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata has too many keys"});return}for(let[o,a]of n){if(!o.trim()){t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata values must be strings",path:[o]});continue}o.length>128&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata key exceeds the maximum length",path:[o]}),/[\r\n]/.test(o)&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata keys must be single-line strings",path:[o]}),/[\r\n]/.test(a)&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata values must be single-line strings",path:[o]}),a.length>512&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata value exceeds the maximum length",path:[o]})}}),PAe=u.object({label:xA.pipe(u.string().max(48)).refine(e=>!/[\r\n]/.test(e)),detail:xA.pipe(u.string().max(128)).refine(e=>!/[\r\n]/.test(e)).optional()}).strict(),N8e=u.object({idempotencyKey:le.pipe(u.string().max(512)),credentialSubject:SAe.optional(),destination:xP,destinationVisibility:IAe,input:le.pipe(u.string().max(32e3)),metadata:jAe.optional(),replyAttribution:PAe.optional(),source:DP}).strict();var GAe=u.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_-]*$/),$8e=u.object({text:u.string().trim().min(1).max(8e3)}).strict(),j8e=u.object({kind:GAe,version:u.number().int().positive(),content:u.record(u.string(),u.unknown())}).strict();var HAe=4e3,TAe=8e3,EP=32,kP=4e3,UAe=1e3,OAe=u.record(u.string(),u.unknown()).superRefine((e,t)=>{Object.keys(e).length>EP&&t.addIssue({code:"custom",message:`Resource event data may include at most ${EP} keys.`}),new TextEncoder().encode(JSON.stringify(e)).byteLength>kP&&t.addIssue({code:"custom",message:`Resource event data may be at most ${kP} JSON bytes.`})}),Jc=u.string().regex(/^[a-z][a-z0-9_-]*(?:\.[a-z][a-z0-9_-]*)+$/).describe("Canonical dotted event type, such as issue.closed or pull_request.review.changes_requested."),FP=u.string().regex(/^[a-z][a-z0-9_]*$/).describe("Canonical plugin-defined resource type, such as issue or pull_request."),qAe=u.object({type:FP,supportedEvents:u.array(Jc).min(1),suggestedEvents:u.array(Jc).optional(),guidance:u.record(Jc,u.string().trim().min(1).max(UAe)).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.supportedEvents.forEach((a,r)=>{n.has(a)&&t.addIssue({code:"custom",message:`Duplicate supported resource event type "${a}".`,path:["supportedEvents",r]}),n.add(a)});for(let a of Object.keys(e.guidance??{}))n.has(a)||t.addIssue({code:"custom",message:`Guidance resource event type "${a}" is not supported.`,path:["guidance",a]});let o=new Set;e.suggestedEvents?.forEach((a,r)=>{o.has(a)&&t.addIssue({code:"custom",message:`Duplicate suggested resource event type "${a}".`,path:["suggestedEvents",r]}),n.has(a)||t.addIssue({code:"custom",message:`Suggested resource event type "${a}" is not supported.`,path:["suggestedEvents",r]}),o.add(a)})}),G8e=u.object({resourceTypes:u.array(qAe).min(1),isEnabled:u.function({input:[],output:u.boolean()}).optional(),normalizeIdentifier:u.function({input:[u.string()],output:u.string()}).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.resourceTypes.forEach((o,a)=>{n.has(o.type)&&t.addIssue({code:"custom",message:`Duplicate resource type "${o.type}".`,path:["resourceTypes",a,"type"]}),n.add(o.type)})});var H8e=u.object({identifier:u.string().min(1),label:u.string().min(1),namespace:u.string().min(1),suggestedEvents:u.array(Jc).optional(),supportedEvents:u.array(Jc),type:FP}).strict(),T8e=u.object({events:u.array(Jc).min(1),id:u.string().min(1)}).strict(),zAe=u.object({eventKey:u.string().min(1),eventType:Jc,identifier:u.string().min(1),occurredAtMs:u.number().finite(),terminal:u.boolean().optional(),trustedSummary:u.string().min(1).transform(e=>e.slice(0,HAe)),data:OAe.optional(),untrustedText:u.string().transform(e=>e.slice(0,TAe)).optional()}).strict(),U8e=zAe.extend({namespace:u.string().min(1)}),YAe=u.object({authority:u.enum(["instruction","context"]),actor:m8.optional()}).strict(),KAe=u.discriminatedUnion("type",[u.object({type:u.literal("message"),role:u.enum(["user","assistant"]),text:u.string().min(1),provenance:YAe.optional(),isRunActor:u.boolean().optional()}).strict(),u.object({type:u.literal("toolResult"),toolName:u.string().min(1),isError:u.boolean(),text:u.string().min(1).optional()}).strict()]),q8e=u.object({completedAtMs:u.number().finite(),conversationId:u.string().min(1),destination:_Ae,actors:u.array(m8),actor:m8.optional(),runId:u.string().min(1),source:DP,transcript:u.array(KAe)}).strict();var Y8e=u.discriminatedUnion("type",[u.object({type:u.literal("text"),text:u.string()}).strict(),u.object({type:u.literal("image"),data:u.string(),mimeType:u.string()}).strict()]),JAe=u.object({arguments:u.record(u.string(),u.unknown()),reason:u.string().min(1).optional()}).strict(),K8e=u.object({target:u.string().min(1).optional(),truncated:u.boolean().optional(),continuation:JAe.optional()}).passthrough(),J8e=u.enum(["auto","review","approve"]);var Z8e=u.object({auth:u.object({user:u.object({email:u.string().nullable().optional(),emailVerified:u.boolean().optional(),name:u.string().nullable().optional()}).strict()}).strict(),pluginName:le}).strict(),WAe=u.string().regex(/^[a-z][a-z0-9-]*$/),ZAe=u.string().regex(/^[a-z][a-z0-9.-]*$/),VAe=u.union([u.literal("read"),u.literal("write")]),SP=u.object({provider:WAe,scope:le.optional(),type:u.literal("oauth")}).strict(),LP=u.object({displayName:le.optional(),handle:le.optional(),id:le,label:le.optional(),url:le.optional()}).strict(),X8e=u.object({account:LP.optional(),accessToken:le,expiresAt:u.number().finite().optional(),refreshToken:le,refreshTokenExpiresAt:u.number().finite().optional(),scope:le.optional()}).strict(),e2e=u.object({access:VAe,leaseScope:le.optional(),name:ZAe,reason:le.optional(),requirements:u.array(le).min(1).optional()}).strict(),XAe=u.object({domain:u.string().min(1),headers:u.record(u.string(),u.string()).refine(e=>Object.keys(e).length>0)}).strict(),ese=u.object({account:LP.optional(),authorization:SP.optional(),expiresAt:u.string().refine(e=>Number.isFinite(Date.parse(e))),headerTransforms:u.array(XAe).min(1)}).strict(),t2e=u.discriminatedUnion("type",[u.object({lease:ese,type:u.literal("lease")}).strict(),u.object({authorization:SP.optional(),message:le,type:u.literal("needed")}).strict(),u.object({message:le,type:u.literal("unavailable")}).strict()]);var tse=le.max(64).regex(/^[a-z][a-z0-9-]*$/),nse=le.max(80),ase=le.max(500),ose=u.enum(["primary","profile"]),rse=u.object({detail:le.max(500).optional(),label:le.max(80),tone:u.enum(["good","neutral","warning"]).optional(),value:le.max(120)}).strict(),ise=u.object({label:le.max(80),value:le.max(500)}).strict(),Ase=u.object({confirmation:le.max(500).optional(),href:le.max(500).regex(/^\/api\/plugins\/[a-z][a-z0-9-]*(?:\/|$)/),label:le.max(80),method:u.literal("DELETE"),tone:u.enum(["danger","neutral"]).optional()}).strict(),sse=u.object({actions:u.array(Ase).max(4).optional(),description:le.max(1e3).optional(),id:le.max(128),metadata:u.array(ise).max(8).optional(),title:le.max(4e3)}).strict(),RP=u.object({emptyText:le.max(500).optional(),metrics:u.array(rse).max(6).optional(),nextCursor:le.max(1e3).optional(),records:u.array(sse).max(100),searchPlaceholder:le.max(120).optional(),type:u.literal("list")}).strict(),cse=u.object({description:ase,id:tse,label:nse,navigation:ose,pluginDisplayName:le.max(200),pluginName:le.max(100)}).strict(),NP=u.array(cse),use=le.max(1e3).optional(),dse=le.max(64).optional(),lse=u.string().trim().max(200).optional(),a2e=u.object({cursor:use,filter:dse,limit:u.number().int().min(1).max(50),query:lse}).strict();var Yy=u.object({user:u.object({email:u.string().trim().email(),emailVerified:u.boolean().optional(),name:u.string().nullable().optional()}).strict()}).strict(),i2e=u.object({displayName:u.string().trim().min(1).max(80)}).strict(),MP=u.object({allowedEmailCount:u.number(),allowedGoogleDomainCount:u.number(),authRequired:u.boolean(),authPath:u.string(),basePath:u.string(),componentGallery:u.boolean(),sentryConversationLinks:u.boolean(),timeZone:u.string(),version:u.string().min(1)}).strict();var DA=class extends Error{status;apiError;constructor(t,n,o){super(`${t} returned ${n}`),this.status=n,o?.trim()&&(this.apiError=o.trim())}};async function Wc(e,t){let n;try{let o=await t.json();typeof o.error=="string"&&(n=o.error)}catch{}throw new DA(e,t.status,n)}function Dl(){if(typeof window>"u")return;let e=window.__JUNIOR_DASHBOARD_BASE_PATH__??"/",t=e==="/"?"/auth/login":`${e}/auth/login`;if(window.location.pathname!==t){let n=`${window.location.pathname}${window.location.search||""}`,o=new URLSearchParams;n!=="/"&&o.set("next",n);let a=o.toString();window.location.assign(a?`${t}?${a}`:t)}}async function Ky(e,t,n){let o=await fetch(t,{body:JSON.stringify(n),credentials:"same-origin",headers:{"content-type":"application/json"},method:"PATCH"});return o.status===401&&Dl(),o.ok||await Wc(t,o),e.parse(await o.json())}async function Zc(e,t,n){let o=await fetch(t,{body:JSON.stringify(n),credentials:"same-origin",headers:{"content-type":"application/json"},method:"POST"});return o.status===401&&Dl(),o.ok||await Wc(t,o),e.parse(await o.json())}async function $P(e,t,n){let o=await fetch(t,{body:JSON.stringify(n),credentials:"same-origin",headers:{"content-type":"application/json"},method:"PUT"});return o.status===401&&Dl(),o.ok||await Wc(t,o),e.parse(await o.json())}async function Ms(e){let t=await fetch(e,{credentials:"same-origin",method:"DELETE"});t.status===401&&Dl(),t.ok||await Wc(e,t)}async function jP(e,t,n={}){let o=await fetch(t,{body:JSON.stringify(n),credentials:"same-origin",headers:{"content-type":"application/json"},method:"DELETE"});return o.status===401&&Dl(),o.ok||await Wc(t,o),e.parse(await o.json())}async function Ue(e,t,n){let o=await fetch(t,{credentials:"same-origin",...n?{signal:n}:void 0});return o.status===401&&(Dl(),await Wc(t,o)),o.ok||await Wc(t,o),e.parse(await o.json())}var Jy=5*6e4,b8=5*6e4,pse=1e3;function gse(e,t=Date.now()){if(!e)return b8;let n=Date.parse(e);if(!Number.isFinite(n))return b8;let o=Math.max(0,t-n);return Math.max(pse,b8-o)}function PP(){return Ge({queryKey:["dashboard","core"],queryFn:async({signal:e})=>{let[t,n]=await Promise.all([Ue(Yy,"/api/me",e),Ue(MP,"/api/config",e)]);return{config:n,me:t}},retry:!1,staleTime:Jy})}function mse(){return Ge({queryKey:["dashboard","plugins"],queryFn:({signal:e})=>Ue(d8,"/api/plugins",e),retry:!1,staleTime:Jy})}function GP(){return Ge({queryKey:["dashboard","plugin-user-pages"],queryFn:({signal:e})=>Ue(NP,"/api/user-pages",e),retry:!1,staleTime:Jy})}function Wy(e="active"){return Ge({queryKey:["dashboard","conversations","viewer",e],queryFn:({signal:t})=>Ue(KF,`/api/conversations${e==="archived"?"?status=archived":""}`,t),retry:!1})}function HP(e){return Ge({enabled:e,queryKey:["dashboard","tasks"],queryFn:({signal:t})=>Ue(i8,"/api/tasks",t),retry:!1})}function TP(e){return Ge({enabled:e,queryKey:["dashboard","tasks","runs"],queryFn:({signal:t})=>Ue(c8,"/api/tasks/runs",t),retry:!1})}function UP(e,t,n){return Ge({enabled:e&&!!(t&&n),queryKey:["dashboard","tasks",t,n,"executions"],queryFn:({signal:o})=>Ue(s8,`/api/tasks/${t}/${encodeURIComponent(n)}/executions`,o),retry:!1})}function OP(){return Ge({queryKey:["dashboard","people"],queryFn:({signal:e})=>Ue(WF,"/api/people",e),retry:!1})}function qP(e){return Ge({enabled:!!e,queryKey:["dashboard","people",e],queryFn:async({signal:t})=>Ue(ZF,`/api/people/${encodeURIComponent(e)}`,t),retry:!1})}function zP(e){return Ge({enabled:!!e,queryKey:["dashboard","people",e,"plugin-reports"],queryFn:({signal:t})=>Ue(qy,`/api/people/${encodeURIComponent(e)}/plugin-reports`,t),retry:!1})}function YP(e){return Ge({enabled:e,queryKey:["dashboard","personal-spend"],queryFn:({signal:t})=>Ue(VF,"/api/people/me/spend",t),refetchInterval:t=>gse(t.state.data?.generatedAt),retry:!1,staleTime:0})}function KP(){return Ge({queryKey:["dashboard","locations"],queryFn:({signal:e})=>Ue(XF,"/api/locations",e),retry:!1})}function JP(e){return Ge({enabled:!!e,queryKey:["dashboard","locations",e],queryFn:async({signal:t})=>Ue(e8,`/api/locations/${encodeURIComponent(e)}`,t),retry:!1})}function fse(){return Ge({queryKey:["dashboard","skills"],queryFn:({signal:e})=>Ue(p8,"/api/skills",e),retry:!1,staleTime:Jy})}function bse(){return Ge({queryKey:["dashboard","plugin-reports"],queryFn:({signal:e})=>Ue(qy,"/api/plugin-reports",e),retry:!1})}function WP(){return Ge({queryKey:["dashboard","stats"],queryFn:({signal:e})=>Ue(u8,"/api/stats",e),retry:!1})}function ZP(e){let t=mse(),n=Ge({queryKey:["dashboard","conversation-stats"],queryFn:({signal:i})=>Ue(JF,"/api/conversations/stats",i),retry:!1}),o=fse(),a=bse();return{data:t.data&&o.data?{...e,conversationStatsError:!!n.error,...n.data?{conversationStats:n.data}:void 0,conversationStatsLoading:n.isPending,pluginReportsError:!!a.error,...a.data?{pluginReports:a.data}:void 0,pluginReportsLoading:a.isPending,plugins:t.data,skills:o.data}:void 0,error:t.error??o.error,isPending:t.isPending||o.isPending}}var VP=C(K(),1);function Zy(){return(0,VP.useSyncExternalStore)(e=>di.subscribe(e),()=>di.isOnline(),()=>!0)}var eG=C(w(),1);function XP(){return Zy()?null:(0,eG.jsx)("div",{"aria-live":"polite",className:"border-t border-amber-300/15 bg-amber-300/[0.07] px-3 py-1.5 text-center font-sans text-xs text-amber-100/80",role:"status",children:"You\u2019re offline. Drafts stay on this device."})}var h8=C(w(),1);function Vy(){return(0,h8.jsx)("div",{className:"relative grid size-10 shrink-0 select-none place-items-center overflow-visible",children:(0,h8.jsx)("img",{alt:"",className:"relative size-11 max-w-none -translate-y-0.5 object-contain opacity-90 drop-shadow-[0_0_7px_rgba(255,255,255,0.16)]",draggable:!1,src:"/_junior/dashboard/avatar.png"})})}var tG=["relative","overflow-hidden","bg-white/15","before:absolute","before:inset-0","before:content-['']","before:bg-[linear-gradient(90deg,#ff4d6d,#ffb703,#56f39a,#4cc9f0,#9b5de5,#ff4d6d)]","before:bg-[length:200%_100%]","before:animate-[junior-rainbow-flow_1.2s_linear_infinite]","motion-reduce:before:animate-none"].join(" ");function k(...e){return e.filter(Boolean).join(" ")}var $n="mx-auto w-full min-w-0 max-w-screen-xl",Qi="text-dashboard-text-muted hover:text-dashboard-text",nG="rounded-2xl bg-dashboard-fill-soft shadow-[inset_0_0_0_1px_var(--color-dashboard-border-subtle)]",aG="dashboard-shell-bg";var $s=C(w(),1);function ce(e){return(0,$s.jsx)("div",{className:k($n,"grid min-h-[calc(100dvh-5rem)] place-items-center px-4 py-8 md:px-8"),children:(0,$s.jsxs)("section",{className:"grid w-full max-w-lg grid-cols-[auto_minmax(0,1fr)] items-center gap-3 rounded-lg border border-dashboard-border-emphasis bg-dashboard-surface-raised p-4",children:[(0,$s.jsx)(Vy,{}),(0,$s.jsxs)("div",{children:[(0,$s.jsx)("div",{className:"font-bold",children:e.label}),(0,$s.jsx)("div",{"aria-label":e.label,className:`${tG} mt-3 h-1.5 w-full`,role:"progressbar"})]})]})})}var tC=C(K(),1);var Xy=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim();var oG=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var rG=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase());var B8=e=>{let t=rG(e);return t.charAt(0).toUpperCase()+t.slice(1)};var bm=C(K(),1);var eC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var iG=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var Fl=C(K(),1);var hse=(0,Fl.createContext)({});var AG=()=>(0,Fl.useContext)(hse);var sG=(0,bm.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:o,className:a="",children:r,iconNode:i,...A},s)=>{let{size:c=24,strokeWidth:d=2,absoluteStrokeWidth:l=!1,color:g="currentColor",className:p=""}=AG()??{},m=o??l?Number(n??d)*24/Number(t??c):n??d;return(0,bm.createElement)("svg",{ref:s,...eC,width:t??c??eC.width,height:t??c??eC.height,stroke:e??g,strokeWidth:m,className:Xy("lucide",p,a),...!r&&!iG(A)&&{"aria-hidden":"true"},...A},[...i.map(([h,B])=>(0,bm.createElement)(h,B)),...Array.isArray(r)?r:[r]])});var F=(e,t)=>{let n=(0,tC.forwardRef)(({className:o,...a},r)=>(0,tC.createElement)(sG,{ref:r,iconNode:t,className:Xy(`lucide-${oG(B8(e))}`,`lucide-${e}`,o),...a}));return n.displayName=B8(e),n};var Bse=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],$r=F("activity",Bse);var yse=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],js=F("archive-restore",yse);var Cse=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],Vc=F("archive",Cse);var wse=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],hm=F("arrow-down-to-line",wse);var Ese=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Ii=F("arrow-left",Ese);var kse=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Bm=F("arrow-right",kse);var Qse=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],ym=F("bookmark",Qse);var Ise=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],vi=F("bot",Ise);var vse=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],No=F("boxes",vse);var _se=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],_i=F("braces",_se);var xse=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],FA=F("brain-circuit",xse);var Dse=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Xc=F("brain",Dse);var Fse=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],eu=F("calendar-clock",Fse);var Sse=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Cm=F("calendar",Sse);var Lse=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],SA=F("check",Lse);var Rse=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],wm=F("chevron-down",Rse);var Nse=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Em=F("chevron-left",Nse);var Mse=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],jn=F("chevron-right",Mse);var $se=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Ha=F("circle-alert",$se);var jse=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],km=F("circle-dashed",jse);var Pse=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]],Qm=F("circle-dollar-sign",Pse);var Gse=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],Im=F("circle-dot",Gse);var Hse=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Ps=F("circle-x",Hse);var Tse=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],Mo=F("clock-3",Tse);var Use=[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]],tu=F("coins",Use);var Ose=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],nu=F("copy",Ose);var qse=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Gs=F("database",qse);var zse=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],vm=F("diff",zse);var Yse=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],da=F("earth",Yse);var Kse=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Hs=F("ellipsis",Kse);var Jse=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],au=F("external-link",Jse);var Wse=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],_m=F("file-text",Wse);var Zse=[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]],Ts=F("fingerprint-pattern",Zse);var Vse=[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],xm=F("folder-git-2",Vse);var Xse=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Dm=F("gauge",Xse);var ece=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],Fm=F("git-merge",ece);var tce=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],Sm=F("git-pull-request",tce);var nce=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],Lm=F("hash",nce);var ace=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Us=F("info",ace);var oce=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],jr=F("key-round",oce);var rce=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Os=F("layers",rce);var ice=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],Rm=F("lightbulb",ice);var Ace=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],Nm=F("list-checks",Ace);var sce=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],Mm=F("link",sce);var cce=[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]],$m=F("list-filter",cce);var uce=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],LA=F("loader-circle",uce);var dce=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],la=F("lock-keyhole",dce);var lce=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],jm=F("log-out",lce);var pce=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],ou=F("map-pin",pce);var gce=[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]],Pm=F("map-pinned",gce);var mce=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],ru=F("menu",mce);var fce=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],Gm=F("message-square-text",fce);var bce=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Ta=F("message-square",bce);var hce=[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]],Sl=F("messages-square",hce);var Bce=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],Hm=F("minimize-2",Bce);var yce=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],Tm=F("paperclip",yce);var Cce=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],iu=F("plus",Cce);var wce=[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]],Um=F("radio-tower",wce);var Ece=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],Ll=F("scroll-text",Ece);var kce=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],qs=F("search",kce);var Qce=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Au=F("send",Qce);var Ice=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Om=F("settings",Ice);var vce=[["path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",key:"wuwx1p"}]],qm=F("sigma",vce);var _ce=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],zm=F("skip-forward",_ce);var xce=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Qa=F("sparkles",xce);var Dce=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],lo=F("square-pen",Dce);var Fce=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],su=F("timer",Fce);var Sce=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Vn=F("trash-2",Sce);var Lce=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],po=F("triangle-alert",Lce);var Rce=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],Ua=F("user-round",Rce);var Nce=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],cu=F("users",Nce);var Mce=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ia=F("x",Mce);var qi=C(K(),1);var y8=Object.defineProperty,$ce=Object.getOwnPropertyDescriptor,jce=Object.getOwnPropertyNames,Pce=Object.prototype.hasOwnProperty,uG=(e,t)=>{let n={};for(var o in e)y8(n,o,{get:e[o],enumerable:!0});return t||y8(n,Symbol.toStringTag,{value:"Module"}),n},cG=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=jce(t),r=0,i=a.length,A;r<i;r++)A=a[r],!Pce.call(e,A)&&A!==n&&y8(e,A,{get:(s=>t[s]).bind(null,A),enumerable:!(o=$ce(t,A))||o.enumerable});return e},dG=(e,t,n)=>(cG(e,t,"default"),n&&cG(n,t,"default"));var k8={};L(k8,{createOnigurumaEngine:()=>nue,getDefaultWasmLoader:()=>tue,loadWasm:()=>pG,setDefaultWasmLoader:()=>eue});var E8=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Gce(){return 2147483648}function Hce(){return typeof performance<"u"?performance.now():Date.now()}var Tce=(e,t)=>e+(t-e%t)%t;async function Uce(e){let t,n,o={};function a(p){n=p,o.HEAPU8=new Uint8Array(p),o.HEAPU32=new Uint32Array(p)}function r(p,m,h){o.HEAPU8.copyWithin(p,m,m+h)}function i(p){try{return t.grow(p-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function A(p){let m=o.HEAPU8.length;p=p>>>0;let h=Gce();if(p>h)return!1;for(let B=1;B<=4;B*=2){let f=m*(1+.2/B);f=Math.min(f,p+100663296);let b=Math.min(h,Tce(Math.max(p,f),65536));if(i(b))return!0}return!1}let s=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(p,m,h=1024){let B=m+h,f=m;for(;p[f]&&!(f>=B);)++f;if(f-m>16&&p.buffer&&s)return s.decode(p.subarray(m,f));let b="";for(;m<f;){let y=p[m++];if(!(y&128)){b+=String.fromCharCode(y);continue}let E=p[m++]&63;if((y&224)===192){b+=String.fromCharCode((y&31)<<6|E);continue}let Q=p[m++]&63;if((y&240)===224?y=(y&15)<<12|E<<6|Q:y=(y&7)<<18|E<<12|Q<<6|p[m++]&63,y<65536)b+=String.fromCharCode(y);else{let v=y-65536;b+=String.fromCharCode(55296|v>>10,56320|v&1023)}}return b}function d(p,m){return p?c(o.HEAPU8,p,m):""}let l={emscripten_get_now:Hce,emscripten_memcpy_big:r,emscripten_resize_heap:A,fd_write:()=>0};async function g(){let m=await e({env:l,wasi_snapshot_preview1:l});t=m.memory,a(t.buffer),Object.assign(o,m),o.UTF8ToString=d}return await g(),o}var Oce=Object.defineProperty,qce=(e,t,n)=>t in e?Oce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pn=(e,t,n)=>qce(e,typeof t!="symbol"?t+"":t,n),Xn=null;function zce(e){throw new E8(e.UTF8ToString(e.getLastOnigError()))}var aC=class e{constructor(t){Pn(this,"utf16Length"),Pn(this,"utf8Length"),Pn(this,"utf16Value"),Pn(this,"utf8Value"),Pn(this,"utf16OffsetToUtf8"),Pn(this,"utf8OffsetToUtf16");let n=t.length,o=e._utf8ByteLength(t),a=o!==n,r=a?new Uint32Array(n+1):null;a&&(r[n]=o);let i=a?new Uint32Array(o+1):null;a&&(i[o]=n);let A=new Uint8Array(o),s=0;for(let c=0;c<n;c++){let d=t.charCodeAt(c),l=d,g=!1;if(d>=55296&&d<=56319&&c+1<n){let p=t.charCodeAt(c+1);p>=56320&&p<=57343&&(l=(d-55296<<10)+65536|p-56320,g=!0)}a&&(r[c]=s,g&&(r[c+1]=s),l<=127?i[s+0]=c:l<=2047?(i[s+0]=c,i[s+1]=c):l<=65535?(i[s+0]=c,i[s+1]=c,i[s+2]=c):(i[s+0]=c,i[s+1]=c,i[s+2]=c,i[s+3]=c)),l<=127?A[s++]=l:l<=2047?(A[s++]=192|(l&1984)>>>6,A[s++]=128|(l&63)>>>0):l<=65535?(A[s++]=224|(l&61440)>>>12,A[s++]=128|(l&4032)>>>6,A[s++]=128|(l&63)>>>0):(A[s++]=240|(l&1835008)>>>18,A[s++]=128|(l&258048)>>>12,A[s++]=128|(l&4032)>>>6,A[s++]=128|(l&63)>>>0),g&&c++}this.utf16Length=n,this.utf8Length=o,this.utf16Value=t,this.utf8Value=A,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=i}static _utf8ByteLength(t){let n=0;for(let o=0,a=t.length;o<a;o++){let r=t.charCodeAt(o),i=r,A=!1;if(r>=55296&&r<=56319&&o+1<a){let s=t.charCodeAt(o+1);s>=56320&&s<=57343&&(i=(r-55296<<10)+65536|s-56320,A=!0)}i<=127?n+=1:i<=2047?n+=2:i<=65535?n+=3:n+=4,A&&o++}return n}createString(t){let n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}},oC=class xi{constructor(t){if(Pn(this,"id",++xi.LAST_ID),Pn(this,"_onigBinding"),Pn(this,"content"),Pn(this,"utf16Length"),Pn(this,"utf8Length"),Pn(this,"utf16OffsetToUtf8"),Pn(this,"utf8OffsetToUtf16"),Pn(this,"ptr"),!Xn)throw new E8("Must invoke loadWasm first.");this._onigBinding=Xn,this.content=t;let n=new aC(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!xi._sharedPtrInUse?(xi._sharedPtr||(xi._sharedPtr=Xn.omalloc(1e4)),xi._sharedPtrInUse=!0,Xn.HEAPU8.set(n.utf8Value,xi._sharedPtr),this.ptr=xi._sharedPtr):this.ptr=n.createString(Xn)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===xi._sharedPtr?xi._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Pn(oC,"LAST_ID",0);Pn(oC,"_sharedPtr",0);Pn(oC,"_sharedPtrInUse",!1);var lG=oC,w8=class{constructor(t){if(Pn(this,"_onigBinding"),Pn(this,"_ptr"),!Xn)throw new E8("Must invoke loadWasm first.");let n=[],o=[];for(let A=0,s=t.length;A<s;A++){let c=new aC(t[A]);n[A]=c.createString(Xn),o[A]=c.utf8Length}let a=Xn.omalloc(4*t.length);Xn.HEAPU32.set(n,a/4);let r=Xn.omalloc(4*t.length);Xn.HEAPU32.set(o,r/4);let i=Xn.createOnigScanner(a,r,t.length);for(let A=0,s=t.length;A<s;A++)Xn.ofree(n[A]);Xn.ofree(r),Xn.ofree(a),i===0&&zce(Xn),this._onigBinding=Xn,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,o){let a=0;if(typeof o=="number"&&(a=o),typeof t=="string"){t=new lG(t);let r=this._findNextMatchSync(t,n,!1,a);return t.dispose(),r}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,o,a){let r=this._onigBinding,i=r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(i===0)return null;let A=r.HEAPU32,s=i/4,c=A[s++],d=A[s++],l=[];for(let g=0;g<d;g++){let p=t.convertUtf8OffsetToUtf16(A[s++]),m=t.convertUtf8OffsetToUtf16(A[s++]);l[g]={start:p,end:m,length:m-p}}return{index:c,captureIndices:l}}};function Yce(e){return typeof e.instantiator=="function"}function Kce(e){return typeof e.default=="function"}function Jce(e){return typeof e.data<"u"}function Wce(e){return typeof Response<"u"&&e instanceof Response}function Zce(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}var nC;function pG(e){if(nC)return nC;async function t(){Xn=await Uce(async n=>{let o=e;return o=await o,typeof o=="function"&&(o=await o(n)),typeof o=="function"&&(o=await o(n)),Yce(o)?o=await o.instantiator(n):Kce(o)?o=await o.default(n):(Jce(o)&&(o=o.data),Wce(o)?typeof WebAssembly.instantiateStreaming=="function"?o=await Vce(o)(n):o=await Xce(o)(n):Zce(o)?o=await C8(o)(n):o instanceof WebAssembly.Module?o=await C8(o)(n):"default"in o&&o.default instanceof WebAssembly.Module&&(o=await C8(o.default)(n))),"instance"in o&&(o=o.instance),"exports"in o&&(o=o.exports),o})}return nC=t(),nC}function C8(e){return t=>WebAssembly.instantiate(e,t)}function Vce(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Xce(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var gG;function eue(e){gG=e}function tue(){return gG}async function nue(e){return e&&await pG(e),{createScanner(t){return new w8(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new lG(t)}}}var Q8=uG({});dG(Q8,k8);var $5=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>Promise.resolve().then(()=>(fG(),mG)))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>Promise.resolve().then(()=>(hG(),bG)))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(yG(),BG)))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>Promise.resolve().then(()=>(wG(),CG)))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>Promise.resolve().then(()=>(kG(),EG)))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xE9",type:"dark",import:(()=>Promise.resolve().then(()=>(IG(),QG)))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>Promise.resolve().then(()=>(_G(),vG)))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>Promise.resolve().then(()=>(DG(),xG)))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>Promise.resolve().then(()=>(SG(),FG)))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>Promise.resolve().then(()=>(RG(),LG)))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(MG(),NG)))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>Promise.resolve().then(()=>(jG(),$G)))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(GG(),PG)))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>Promise.resolve().then(()=>(TG(),HG)))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(OG(),UG)))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>Promise.resolve().then(()=>(zG(),qG)))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>Promise.resolve().then(()=>(KG(),YG)))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>Promise.resolve().then(()=>(WG(),JG)))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>Promise.resolve().then(()=>(VG(),ZG)))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>Promise.resolve().then(()=>(eH(),XG)))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>Promise.resolve().then(()=>(nH(),tH)))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>Promise.resolve().then(()=>(oH(),aH)))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>Promise.resolve().then(()=>(iH(),rH)))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>Promise.resolve().then(()=>(sH(),AH)))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>Promise.resolve().then(()=>(uH(),cH)))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>Promise.resolve().then(()=>(lH(),dH)))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>Promise.resolve().then(()=>(gH(),pH)))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>Promise.resolve().then(()=>(fH(),mH)))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>Promise.resolve().then(()=>(hH(),bH)))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>Promise.resolve().then(()=>(yH(),BH)))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>Promise.resolve().then(()=>(wH(),CH)))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>Promise.resolve().then(()=>(kH(),EH)))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>Promise.resolve().then(()=>(IH(),QH)))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>Promise.resolve().then(()=>(_H(),vH)))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>Promise.resolve().then(()=>(DH(),xH)))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(SH(),FH)))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>Promise.resolve().then(()=>(RH(),LH)))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>Promise.resolve().then(()=>(MH(),NH)))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>Promise.resolve().then(()=>(jH(),$H)))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>Promise.resolve().then(()=>(GH(),PH)))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(TH(),HH)))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>Promise.resolve().then(()=>(OH(),UH)))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>Promise.resolve().then(()=>(zH(),qH)))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>Promise.resolve().then(()=>(KH(),YH)))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>Promise.resolve().then(()=>(WH(),JH)))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>Promise.resolve().then(()=>(VH(),ZH)))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>Promise.resolve().then(()=>(e5(),XH)))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>Promise.resolve().then(()=>(n5(),t5)))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>Promise.resolve().then(()=>(o5(),a5)))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>Promise.resolve().then(()=>(i5(),r5)))},{id:"red",displayName:"Red",type:"dark",import:(()=>Promise.resolve().then(()=>(s5(),A5)))},{id:"rose-pine",displayName:"Ros\xE9 Pine",type:"dark",import:(()=>Promise.resolve().then(()=>(u5(),c5)))},{id:"rose-pine-dawn",displayName:"Ros\xE9 Pine Dawn",type:"light",import:(()=>Promise.resolve().then(()=>(l5(),d5)))},{id:"rose-pine-moon",displayName:"Ros\xE9 Pine Moon",type:"dark",import:(()=>Promise.resolve().then(()=>(g5(),p5)))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(f5(),m5)))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>Promise.resolve().then(()=>(h5(),b5)))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>Promise.resolve().then(()=>(y5(),B5)))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(w5(),C5)))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>Promise.resolve().then(()=>(k5(),E5)))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>Promise.resolve().then(()=>(I5(),Q5)))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>Promise.resolve().then(()=>(_5(),v5)))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>Promise.resolve().then(()=>(D5(),x5)))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>Promise.resolve().then(()=>(S5(),F5)))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(R5(),L5)))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>Promise.resolve().then(()=>(M5(),N5)))}],j5=Object.fromEntries($5.map(e=>[e.id,e.import]));var ct=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function gde(e){return N8(e)}function N8(e){return Array.isArray(e)?mde(e):e instanceof RegExp?e:typeof e=="object"?fde(e):e}function mde(e){let t=[];for(let n=0,o=e.length;n<o;n++)t[n]=N8(e[n]);return t}function fde(e){let t={};for(let n in e)t[n]=N8(e[n]);return t}function Y5(e,...t){return t.forEach(n=>{for(let o in n)e[o]=n[o]}),e}function K5(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?K5(e.substring(0,e.length-1)):e.substr(~t+1)}var I8=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,rC=class{static hasCaptures(e){return e===null?!1:(I8.lastIndex=0,I8.test(e))}static replaceCaptures(e,t,n){return e.replace(I8,(o,a,r,i)=>{let A=n[parseInt(a||r,10)];if(A){let s=t.substring(A.start,A.end);for(;s[0]===".";)s=s.substring(1);switch(i){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return o})}};function J5(e,t){return e<t?-1:e>t?1:0}function W5(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,o=t.length;if(n===o){for(let a=0;a<n;a++){let r=J5(e[a],t[a]);if(r!==0)return r}return 0}return n-o}function P5(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Z5(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var V5=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},Jm=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Bde(e),t)}static createFromParsedTheme(e,t){return Cde(e,t)}_cachedMatchRoot=new V5(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,o=this._cachedMatchRoot.get(t).find(a=>bde(e.parent,a.parentScopes));return o?new X5(o.fontStyle,o.foreground,o.background):null}},v8=class iC{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(let o of n)t=new iC(t,o);return t}static from(...t){let n=null;for(let o=0;o<t.length;o++)n=new iC(n,t[o]);return n}push(t){return new iC(this,t)}getSegments(){let t=this,n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){let n=[],o=this;for(;o&&o!==t;)n.push(o.scopeName),o=o.parent;return o===t?n.reverse():void 0}};function bde(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let o=t[n],a=!1;if(o===">"){if(n===t.length-1)return!1;o=t[++n],a=!0}for(;e&&!hde(e.scopeName,o);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function hde(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var X5=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Bde(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],o=0;for(let a=0,r=t.length;a<r;a++){let i=t[a];if(!i.settings)continue;let A;if(typeof i.scope=="string"){let l=i.scope;l=l.replace(/^[,]+/,""),l=l.replace(/[,]+$/,""),A=l.split(",")}else Array.isArray(i.scope)?A=i.scope:A=[""];let s=-1;if(typeof i.settings.fontStyle=="string"){s=0;let l=i.settings.fontStyle.split(" ");for(let g=0,p=l.length;g<p;g++)switch(l[g]){case"italic":s=s|1;break;case"bold":s=s|2;break;case"underline":s=s|4;break;case"strikethrough":s=s|8;break}}let c=null;typeof i.settings.foreground=="string"&&P5(i.settings.foreground)&&(c=i.settings.foreground);let d=null;typeof i.settings.background=="string"&&P5(i.settings.background)&&(d=i.settings.background);for(let l=0,g=A.length;l<g;l++){let m=A[l].trim().split(" "),h=m[m.length-1],B=null;m.length>1&&(B=m.slice(0,m.length-1),B.reverse()),n[o++]=new yde(h,B,a,s,c,d)}}return n}var yde=class{constructor(e,t,n,o,a,r){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=o,this.foreground=a,this.background=r}},pa=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(pa||{});function Cde(e,t){e.sort((s,c)=>{let d=J5(s.scope,c.scope);return d!==0||(d=W5(s.parentScopes,c.parentScopes),d!==0)?d:s.index-c.index});let n=0,o="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let s=e.shift();s.fontStyle!==-1&&(n=s.fontStyle),s.foreground!==null&&(o=s.foreground),s.background!==null&&(a=s.background)}let r=new wde(t),i=new X5(n,r.getId(o),r.getId(a)),A=new kde(new x8(0,null,-1,0,0),[]);for(let s=0,c=e.length;s<c;s++){let d=e[s];A.insert(0,d.scope,d.parentScopes,d.fontStyle,r.getId(d.foreground),r.getId(d.background))}return new Jm(r,i,A)}var wde=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Ede=Object.freeze([]),x8=class eT{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,o,a,r){this.scopeDepth=t,this.parentScopes=n||Ede,this.fontStyle=o,this.foreground=a,this.background=r}clone(){return new eT(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let o=0,a=t.length;o<a;o++)n[o]=t[o].clone();return n}acceptOverwrite(t,n,o,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),o!==0&&(this.foreground=o),a!==0&&(this.background=a)}},kde=class D8{constructor(t,n=[],o={}){this._mainRule=t,this._children=o,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let o=0,a=0;for(;t.parentScopes[o]===">"&&o++,n.parentScopes[a]===">"&&a++,!(o>=t.parentScopes.length||a>=n.parentScopes.length);){let r=n.parentScopes[a].length-t.parentScopes[o].length;if(r!==0)return r;o++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let o=t.indexOf("."),a,r;if(o===-1?(a=t,r=""):(a=t.substring(0,o),r=t.substring(o+1)),this._children.hasOwnProperty(a))return this._children[a].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(D8._cmpBySpecificity),n}insert(t,n,o,a,r,i){if(n===""){this._doInsertHere(t,o,a,r,i);return}let A=n.indexOf("."),s,c;A===-1?(s=n,c=""):(s=n.substring(0,A),c=n.substring(A+1));let d;this._children.hasOwnProperty(s)?d=this._children[s]:(d=new D8(this._mainRule.clone(),x8.cloneArr(this._rulesWithParentScopes)),this._children[s]=d),d.insert(t+1,c,o,a,r,i)}_doInsertHere(t,n,o,a,r){if(n===null){this._mainRule.acceptOverwrite(t,o,a,r);return}for(let i=0,A=this._rulesWithParentScopes.length;i<A;i++){let s=this._rulesWithParentScopes[i];if(W5(s.parentScopes,n)===0){s.acceptOverwrite(t,o,a,r);return}}o===-1&&(o=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),r===0&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new x8(t,n,o,a,r))}},du=class rr{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){let n=rr.getLanguageId(t),o=rr.getTokenType(t),a=rr.getFontStyle(t),r=rr.getForeground(t),i=rr.getBackground(t);console.log({languageId:n,tokenType:o,fontStyle:a,foreground:r,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,o,a,r,i,A){let s=rr.getLanguageId(t),c=rr.getTokenType(t),d=rr.containsBalancedBrackets(t)?1:0,l=rr.getFontStyle(t),g=rr.getForeground(t),p=rr.getBackground(t);return n!==0&&(s=n),o!==8&&(c=o),a!==null&&(d=a?1:0),r!==-1&&(l=r),i!==0&&(g=i),A!==0&&(p=A),(s<<0|c<<8|d<<10|l<<11|g<<15|p<<24)>>>0}};function sC(e,t){let n=[],o=Qde(e),a=o.next();for(;a!==null;){let s=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":s=1;break;case"L":s=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=o.next()}let c=i();if(n.push({matcher:c,priority:s}),a!==",")break;a=o.next()}return n;function r(){if(a==="-"){a=o.next();let s=r();return c=>!!s&&!s(c)}if(a==="("){a=o.next();let s=A();return a===")"&&(a=o.next()),s}if(G5(a)){let s=[];do s.push(a),a=o.next();while(G5(a));return c=>t(s,c)}return null}function i(){let s=[],c=r();for(;c;)s.push(c),c=r();return d=>s.every(l=>l(d))}function A(){let s=[],c=i();for(;c&&(s.push(c),a==="|"||a===",");){do a=o.next();while(a==="|"||a===",");c=i()}return d=>s.some(l=>l(d))}}function G5(e){return!!e&&!!e.match(/[\w\.:]+/)}function Qde(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let o=n[0];return n=t.exec(e),o}}}function tT(e){typeof e.dispose=="function"&&e.dispose()}var Wm=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Ide=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},vde=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},_de=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Wm(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new vde;for(let n of e)xde(n,this.initialScopeName,this.repo,t);for(let n of t.references)if(n instanceof Wm){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function xde(e,t,n,o){let a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}let r=n.lookup(t);e instanceof Wm?AC({baseGrammar:r,selfGrammar:a},o):F8(e.ruleName,{baseGrammar:r,selfGrammar:a,repository:a.repository},o);let i=n.injections(e.scopeName);if(i)for(let A of i)o.add(new Wm(A))}function F8(e,t,n){if(t.repository&&t.repository[e]){let o=t.repository[e];cC([o],t,n)}}function AC(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&cC(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&cC(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function cC(e,t,n){for(let o of e){if(n.visitedRule.has(o))continue;n.visitedRule.add(o);let a=o.repository?Y5({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&cC(o.patterns,{...t,repository:a},n);let r=o.include;if(!r)continue;let i=nT(r);switch(i.kind){case 0:AC({...t,selfGrammar:t.baseGrammar},n);break;case 1:AC(t,n);break;case 2:F8(i.ruleName,{...t,repository:a},n);break;case 3:case 4:let A=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(A){let s={baseGrammar:t.baseGrammar,selfGrammar:A,repository:a};i.kind===4?F8(i.ruleName,s,n):AC(s,n)}else i.kind===4?n.add(new Ide(i.scopeName,i.ruleName)):n.add(new Wm(i.scopeName));break}}}var Dde=class{kind=0},Fde=class{kind=1},Sde=class{constructor(e){this.ruleName=e}kind=2},Lde=class{constructor(e){this.scopeName=e}kind=3},Rde=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function nT(e){if(e==="$base")return new Dde;if(e==="$self")return new Fde;let t=e.indexOf("#");if(t===-1)return new Lde(e);if(t===0)return new Sde(e.substring(1));{let n=e.substring(0,t),o=e.substring(t+1);return new Rde(n,o)}}var Nde=/\\(\d+)/,H5=/\\(\d+)/g;var Mde=-1,aT=-2;var Xm=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,o){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=rC.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=rC.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${K5(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:rC.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:rC.replaceCaptures(this._contentName,e,t)}},$de=class extends Xm{retokenizeCapturedWithRuleId;constructor(e,t,n,o,a){super(e,t,n,o),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,o){throw new Error("Not supported!")}},jde=class extends Xm{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,o,a){super(e,t,n,null),this._match=new Zm(o,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Vm,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},T5=class extends Xm{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,o,a){super(e,t,n,o),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Vm,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},S8=class extends Xm{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,o,a,r,i,A,s,c){super(e,t,n,o),this._begin=new Zm(a,this.id),this.beginCaptures=r,this._end=new Zm(i||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=A,this.applyEndPatternLast=s||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,o)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Vm;for(let n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},uC=class extends Xm{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,o,a,r,i,A,s){super(e,t,n,o),this._begin=new Zm(a,this.id),this.beginCaptures=r,this.whileCaptures=A,this._while=new Zm(i,aT),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Vm;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,o){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,o)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Vm,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}},oT=class va{static createCaptureRule(t,n,o,a,r){return t.registerRule(i=>new $de(n,i,o,a,r))}static getCompiledRuleId(t,n,o){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new jde(t.$vscodeTextmateLocation,t.id,t.name,t.match,va._compileCaptures(t.captures,n,o));if(typeof t.begin>"u"){t.repository&&(o=Y5({},o,t.repository));let r=t.patterns;return typeof r>"u"&&t.include&&(r=[{include:t.include}]),new T5(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,va._compilePatterns(r,n,o))}return t.while?new uC(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,va._compileCaptures(t.beginCaptures||t.captures,n,o),t.while,va._compileCaptures(t.whileCaptures||t.captures,n,o),va._compilePatterns(t.patterns,n,o)):new S8(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,va._compileCaptures(t.beginCaptures||t.captures,n,o),t.end,va._compileCaptures(t.endCaptures||t.captures,n,o),t.applyEndPatternLast,va._compilePatterns(t.patterns,n,o))}),t.id}static _compileCaptures(t,n,o){let a=[];if(t){let r=0;for(let i in t){if(i==="$vscodeTextmateLocation")continue;let A=parseInt(i,10);A>r&&(r=A)}for(let i=0;i<=r;i++)a[i]=null;for(let i in t){if(i==="$vscodeTextmateLocation")continue;let A=parseInt(i,10),s=0;t[i].patterns&&(s=va.getCompiledRuleId(t[i],n,o)),a[A]=va.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,s)}}return a}static _compilePatterns(t,n,o){let a=[];if(t)for(let r=0,i=t.length;r<i;r++){let A=t[r],s=-1;if(A.include){let c=nT(A.include);switch(c.kind){case 0:case 1:s=va.getCompiledRuleId(o[A.include],n,o);break;case 2:let d=o[c.ruleName];d&&(s=va.getCompiledRuleId(d,n,o));break;case 3:case 4:let l=c.scopeName,g=c.kind===4?c.ruleName:null,p=n.getExternalGrammar(l,o);if(p)if(g){let m=p.repository[g];m&&(s=va.getCompiledRuleId(m,n,p.repository))}else s=va.getCompiledRuleId(p.repository.$self,n,p.repository);break}}else s=va.getCompiledRuleId(A,n,o);if(s!==-1){let c=n.getRule(s),d=!1;if((c instanceof T5||c instanceof S8||c instanceof uC)&&c.hasMissingPatterns&&c.patterns.length===0&&(d=!0),d)continue;a.push(s)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},Zm=class rT{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){let o=t.length,a=0,r=[],i=!1;for(let A=0;A<o;A++)if(t.charAt(A)==="\\"&&A+1<o){let c=t.charAt(A+1);c==="z"?(r.push(t.substring(a,A)),r.push("$(?!\\n)(?<!\\n)"),a=A+2):(c==="A"||c==="G")&&(i=!0),A++}this.hasAnchor=i,a===0?this.source=t:(r.push(t.substring(a,o)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Nde.test(this.source):this.hasBackReferences=!1}clone(){return new rT(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let o=n.map(a=>t.substring(a.start,a.end));return H5.lastIndex=0,this.source.replace(H5,(a,r)=>Z5(o[parseInt(r,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],o=[],a=[],r,i,A,s;for(r=0,i=this.source.length;r<i;r++)A=this.source.charAt(r),t[r]=A,n[r]=A,o[r]=A,a[r]=A,A==="\\"&&r+1<i&&(s=this.source.charAt(r+1),s==="A"?(t[r+1]="\uFFFF",n[r+1]="\uFFFF",o[r+1]="A",a[r+1]="A"):s==="G"?(t[r+1]="\uFFFF",n[r+1]="G",o[r+1]="\uFFFF",a[r+1]="G"):(t[r+1]=s,n[r+1]=s,o[r+1]=s,a[r+1]=s),r++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:o.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Vm=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new U5(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let o=this._items.map(a=>a.resolveAnchors(t,n));return new U5(e,o,this._items.map(a=>a.ruleId))}},U5=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
75
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let A=i[1];if(t===i[0]){r(i);continue}if(e.external){let c=e.external.registry.get(i[0])?.id;if(t!==i[0]&&c){r(i);continue}}if(e.metadataRegistry.get(i[0])?.id){r(i);continue}if(A.cycle){r(i);continue}if(A.count>1&&e.reused==="ref"){r(i);continue}}}function Ns(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=A=>{let s=e.seen.get(A);if(s.ref===null)return;let c=s.def??s.schema,d={...c},l=s.ref;if(s.ref=null,l){o(l);let p=e.seen.get(l),m=p.schema;if(m.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(m)):Object.assign(c,m),Object.assign(c,d),A._zod.parent===l)for(let B in c)B==="$ref"||B==="allOf"||B in d||delete c[B];if(m.$ref&&p.def)for(let B in c)B==="$ref"||B==="allOf"||B in p.def&&JSON.stringify(c[B])===JSON.stringify(p.def[B])&&delete c[B]}let g=A._zod.parent;if(g&&g!==l){o(g);let p=e.seen.get(g);if(p?.schema.$ref&&(c.$ref=p.schema.$ref,p.def))for(let m in c)m==="$ref"||m==="allOf"||m in p.def&&JSON.stringify(c[m])===JSON.stringify(p.def[m])&&delete c[m]}e.override({zodSchema:A,jsonSchema:c,path:s.path??[]})};for(let A of[...e.seen.entries()].reverse())o(A[0]);let a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let A=e.external.registry.get(t)?.id;if(!A)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(A)}Object.assign(a,n.def??n.schema);let r=e.metadataRegistry.get(t)?.id;r!==void 0&&a.id===r&&delete a.id;let i=e.external?.defs??{};for(let A of e.seen.entries()){let s=A[1];s.def&&s.defId&&(s.def.id===s.defId&&delete s.def.id,i[s.defId]=s.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?a.$defs=i:a.definitions=i);try{let A=JSON.parse(JSON.stringify(a));return Object.defineProperty(A,"~standard",{value:{...t["~standard"],jsonSchema:{input:ml(t,"input",e.processors),output:ml(t,"output",e.processors)}},enumerable:!1,writable:!1}),A}catch{throw new Error("Error converting schema to JSON.")}}function Ga(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Ga(o.element,n);if(o.type==="set")return Ga(o.valueType,n);if(o.type==="lazy")return Ga(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Ga(o.innerType,n);if(o.type==="intersection")return Ga(o.left,n)||Ga(o.right,n);if(o.type==="record"||o.type==="map")return Ga(o.keyType,n)||Ga(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Ga(o.in,n)||Ga(o.out,n);if(o.type==="object"){for(let a in o.shape)if(Ga(o.shape[a],n))return!0;return!1}if(o.type==="union"){for(let a of o.options)if(Ga(a,n))return!0;return!1}if(o.type==="tuple"){for(let a of o.items)if(Ga(a,n))return!0;return!!(o.rest&&Ga(o.rest,n))}return!1}var V_=(e,t={})=>n=>{let o=Ls({...n,processors:t});return at(e,o),Rs(o,e),Ns(o,e)},ml=(e,t,n={})=>o=>{let{libraryOptions:a,target:r}=o??{},i=Ls({...a??{},target:r,io:t,processors:n});return at(e,i),Rs(i,e),Ns(i,e)};var Xoe={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},X_=(e,t,n,o)=>{let a=n;a.type="string";let{minimum:r,maximum:i,format:A,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof r=="number"&&(a.minLength=r),typeof i=="number"&&(a.maxLength=i),A&&(a.format=Xoe[A]??A,a.format===""&&delete a.format,A==="time"&&delete a.format),c&&(a.contentEncoding=c),s&&s.size>0){let d=[...s];d.length===1?a.pattern=d[0].source:d.length>1&&(a.allOf=[...d.map(l=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:l.source}))])}},ex=(e,t,n,o)=>{let a=n,{minimum:r,maximum:i,format:A,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:d}=e._zod.bag;typeof A=="string"&&A.includes("int")?a.type="integer":a.type="number";let l=typeof d=="number"&&d>=(r??Number.NEGATIVE_INFINITY),g=typeof c=="number"&&c<=(i??Number.POSITIVE_INFINITY),p=t.target==="draft-04"||t.target==="openapi-3.0";l?p?(a.minimum=d,a.exclusiveMinimum=!0):a.exclusiveMinimum=d:typeof r=="number"&&(a.minimum=r),g?p?(a.maximum=c,a.exclusiveMaximum=!0):a.exclusiveMaximum=c:typeof i=="number"&&(a.maximum=i),typeof s=="number"&&(a.multipleOf=s)},tx=(e,t,n,o)=>{n.type="boolean"},nx=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},ax=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},ox=(e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},rx=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},ix=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Ax=(e,t,n,o)=>{n.not={}},sx=(e,t,n,o)=>{},cx=(e,t,n,o)=>{},ux=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},dx=(e,t,n,o)=>{let a=e._zod.def,r=Sg(a.entries);r.every(i=>typeof i=="number")&&(n.type="number"),r.every(i=>typeof i=="string")&&(n.type="string"),n.enum=r},lx=(e,t,n,o)=>{let a=e._zod.def,r=[];for(let i of a.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(i))}else r.push(i);if(r.length!==0)if(r.length===1){let i=r[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else r.every(i=>typeof i=="number")&&(n.type="number"),r.every(i=>typeof i=="string")&&(n.type="string"),r.every(i=>typeof i=="boolean")&&(n.type="boolean"),r.every(i=>i===null)&&(n.type="null"),n.enum=r},px=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},gx=(e,t,n,o)=>{let a=n,r=e._zod.pattern;if(!r)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=r.source},mx=(e,t,n,o)=>{let a=n,r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:A,mime:s}=e._zod.bag;i!==void 0&&(r.minLength=i),A!==void 0&&(r.maxLength=A),s?s.length===1?(r.contentMediaType=s[0],Object.assign(a,r)):(Object.assign(a,r),a.anyOf=s.map(c=>({contentMediaType:c}))):Object.assign(a,r)},fx=(e,t,n,o)=>{n.type="boolean"},bx=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},hx=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Bx=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},yx=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Cx=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},wx=(e,t,n,o)=>{let a=n,r=e._zod.def,{minimum:i,maximum:A}=e._zod.bag;typeof i=="number"&&(a.minItems=i),typeof A=="number"&&(a.maxItems=A),a.type="array",a.items=at(r.element,t,{...o,path:[...o.path,"items"]})},Ex=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object",a.properties={};let i=r.shape;for(let c in i)a.properties[c]=at(i[c],t,{...o,path:[...o.path,"properties",c]});let A=new Set(Object.keys(i)),s=new Set([...A].filter(c=>{let d=r.shape[c]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));s.size>0&&(a.required=Array.from(s)),r.catchall?._zod.def.type==="never"?a.additionalProperties=!1:r.catchall?r.catchall&&(a.additionalProperties=at(r.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},ty=(e,t,n,o)=>{let a=e._zod.def,r=a.inclusive===!1,i=a.options.map((A,s)=>at(A,t,{...o,path:[...o.path,r?"oneOf":"anyOf",s]}));r?n.oneOf=i:n.anyOf=i},kx=(e,t,n,o)=>{let a=e._zod.def,r=at(a.left,t,{...o,path:[...o.path,"allOf",0]}),i=at(a.right,t,{...o,path:[...o.path,"allOf",1]}),A=c=>"allOf"in c&&Object.keys(c).length===1,s=[...A(r)?r.allOf:[r],...A(i)?i.allOf:[i]];n.allOf=s},Qx=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="array";let i=t.target==="draft-2020-12"?"prefixItems":"items",A=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=r.items.map((g,p)=>at(g,t,{...o,path:[...o.path,i,p]})),c=r.rest?at(r.rest,t,{...o,path:[...o.path,A,...t.target==="openapi-3.0"?[r.items.length]:[]]}):null;t.target==="draft-2020-12"?(a.prefixItems=s,c&&(a.items=c)):t.target==="openapi-3.0"?(a.items={anyOf:s},c&&a.items.anyOf.push(c),a.minItems=s.length,c||(a.maxItems=s.length)):(a.items=s,c&&(a.additionalItems=c));let{minimum:d,maximum:l}=e._zod.bag;typeof d=="number"&&(a.minItems=d),typeof l=="number"&&(a.maxItems=l)},Ix=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object";let i=r.keyType,s=i._zod.bag?.patterns;if(r.mode==="loose"&&s&&s.size>0){let d=at(r.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});a.patternProperties={};for(let l of s)a.patternProperties[l.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=at(r.keyType,t,{...o,path:[...o.path,"propertyNames"]})),a.additionalProperties=at(r.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=i._zod.values;if(c){let d=[...c].filter(l=>typeof l=="string"||typeof l=="number");d.length>0&&(a.required=d)}},vx=(e,t,n,o)=>{let a=e._zod.def,r=at(a.innerType,t,o),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=a.innerType,n.nullable=!0):n.anyOf=[r,{type:"null"}]},_x=(e,t,n,o)=>{let a=e._zod.def;at(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},xx=(e,t,n,o)=>{let a=e._zod.def;at(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},Dx=(e,t,n,o)=>{let a=e._zod.def;at(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},Fx=(e,t,n,o)=>{let a=e._zod.def;at(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType;let i;try{i=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},Sx=(e,t,n,o)=>{let a=e._zod.def,r=a.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?r?a.out:a.in:a.out;at(i,t,o);let A=t.seen.get(e);A.ref=i},Lx=(e,t,n,o)=>{let a=e._zod.def;at(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.readOnly=!0},Rx=(e,t,n,o)=>{let a=e._zod.def;at(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},ny=(e,t,n,o)=>{let a=e._zod.def;at(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},Nx=(e,t,n,o)=>{let a=e._zod.innerType;at(a,t,o);let r=t.seen.get(e);r.ref=a},ey={string:X_,number:ex,boolean:tx,bigint:nx,symbol:ax,null:ox,undefined:rx,void:ix,never:Ax,any:sx,unknown:cx,date:ux,enum:dx,literal:lx,nan:px,template_literal:gx,file:mx,success:fx,custom:bx,function:hx,transform:Bx,map:yx,set:Cx,array:wx,object:Ex,union:ty,intersection:kx,tuple:Qx,record:Ix,nullable:vx,nonoptional:_x,default:xx,prefault:Dx,catch:Fx,pipe:Sx,readonly:Lx,promise:Rx,optional:ny,lazy:Nx};function ay(e,t){if("_idmap"in e){let o=e,a=Ls({...t,processors:ey}),r={};for(let s of o._idmap.entries()){let[c,d]=s;at(d,a)}let i={},A={registry:o,uri:t?.uri,defs:r};a.external=A;for(let s of o._idmap.entries()){let[c,d]=s;Rs(a,d),i[c]=Ns(a,d)}if(Object.keys(r).length>0){let s=a.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[s]:r}}return{schemas:i}}let n=Ls({...t,processors:ey});return at(e,n),Rs(n,e),Ns(n,e)}var oy=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=Ls({processors:ey,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 at(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)),Rs(this.ctx,t);let o=Ns(this.ctx,t),{"~standard":a,...r}=o;return r}};var m$={};var Wg={};L(Wg,{ZodAny:()=>rD,ZodArray:()=>cD,ZodBase64:()=>Qy,ZodBase64URL:()=>Iy,ZodBigInt:()=>El,ZodBigIntFormat:()=>xy,ZodBoolean:()=>wl,ZodCIDRv4:()=>Ey,ZodCIDRv6:()=>ky,ZodCUID:()=>fy,ZodCUID2:()=>by,ZodCatch:()=>FD,ZodCodec:()=>sm,ZodCustom:()=>cm,ZodCustomStringFormat:()=>yl,ZodDate:()=>am,ZodDefault:()=>QD,ZodDiscriminatedUnion:()=>dD,ZodE164:()=>vy,ZodEmail:()=>py,ZodEmoji:()=>gy,ZodEnum:()=>hl,ZodExactOptional:()=>wD,ZodFile:()=>yD,ZodFunction:()=>HD,ZodGUID:()=>Vg,ZodIPv4:()=>Cy,ZodIPv6:()=>wy,ZodIntersection:()=>lD,ZodJWT:()=>_y,ZodKSUID:()=>yy,ZodLazy:()=>jD,ZodLiteral:()=>BD,ZodMAC:()=>Vx,ZodMap:()=>bD,ZodNaN:()=>LD,ZodNanoID:()=>my,ZodNever:()=>AD,ZodNonOptional:()=>Ny,ZodNull:()=>aD,ZodNullable:()=>kD,ZodNumber:()=>Cl,ZodNumberFormat:()=>zc,ZodObject:()=>rm,ZodOptional:()=>Ry,ZodPipe:()=>Am,ZodPrefault:()=>vD,ZodPreprocess:()=>RD,ZodPromise:()=>GD,ZodReadonly:()=>ND,ZodRecord:()=>bl,ZodSet:()=>hD,ZodString:()=>Bl,ZodStringFormat:()=>ht,ZodSuccess:()=>DD,ZodSymbol:()=>tD,ZodTemplateLiteral:()=>$D,ZodTransform:()=>CD,ZodTuple:()=>gD,ZodType:()=>Ce,ZodULID:()=>hy,ZodURL:()=>nm,ZodUUID:()=>Ei,ZodUndefined:()=>nD,ZodUnion:()=>im,ZodUnknown:()=>iD,ZodVoid:()=>sD,ZodXID:()=>By,ZodXor:()=>uD,_ZodString:()=>ly,_default:()=>ID,_function:()=>kj,any:()=>tj,array:()=>om,base64:()=>j$,base64url:()=>P$,bigint:()=>W$,boolean:()=>eD,catch:()=>SD,check:()=>Qj,cidrv4:()=>M$,cidrv6:()=>$$,codec:()=>yj,cuid:()=>_$,cuid2:()=>x$,custom:()=>Ij,date:()=>aj,describe:()=>vj,discriminatedUnion:()=>cj,e164:()=>G$,email:()=>h$,emoji:()=>I$,enum:()=>Sy,exactOptional:()=>ED,file:()=>fj,float32:()=>z$,float64:()=>Y$,function:()=>kj,guid:()=>B$,hash:()=>q$,hex:()=>O$,hostname:()=>U$,httpUrl:()=>Q$,instanceof:()=>xj,int:()=>uy,int32:()=>K$,int64:()=>Z$,intersection:()=>pD,invertCodec:()=>Cj,ipv4:()=>L$,ipv6:()=>N$,json:()=>Fj,jwt:()=>H$,keyof:()=>oj,ksuid:()=>S$,lazy:()=>PD,literal:()=>mj,looseObject:()=>Aj,looseRecord:()=>dj,mac:()=>R$,map:()=>lj,meta:()=>_j,nan:()=>Bj,nanoid:()=>v$,nativeEnum:()=>gj,never:()=>Dy,nonoptional:()=>xD,null:()=>oD,nullable:()=>em,nullish:()=>bj,number:()=>Xx,object:()=>rj,optional:()=>Xg,partialRecord:()=>uj,pipe:()=>dy,prefault:()=>_D,preprocess:()=>Sj,promise:()=>Ej,readonly:()=>MD,record:()=>fD,refine:()=>TD,set:()=>pj,strictObject:()=>ij,string:()=>Zg,stringFormat:()=>T$,stringbool:()=>Dj,success:()=>hj,superRefine:()=>UD,symbol:()=>X$,templateLiteral:()=>wj,transform:()=>Ly,tuple:()=>mD,uint32:()=>J$,uint64:()=>V$,ulid:()=>D$,undefined:()=>ej,union:()=>Fy,unknown:()=>qc,url:()=>k$,uuid:()=>y$,uuidv4:()=>C$,uuidv6:()=>w$,uuidv7:()=>E$,void:()=>nj,xid:()=>F$,xor:()=>sj});var ry={};L(ry,{endsWith:()=>Al,gt:()=>Ci,gte:()=>Pa,includes:()=>rl,length:()=>Oc,lowercase:()=>al,lt:()=>yi,lte:()=>Lo,maxLength:()=>Uc,maxSize:()=>Ss,mime:()=>sl,minLength:()=>kA,minSize:()=>wi,multipleOf:()=>Fs,negative:()=>WB,nonnegative:()=>VB,nonpositive:()=>ZB,normalize:()=>cl,overwrite:()=>Nr,positive:()=>JB,property:()=>XB,regex:()=>nl,size:()=>Tc,slugify:()=>pl,startsWith:()=>il,toLowerCase:()=>dl,toUpperCase:()=>ll,trim:()=>ul,uppercase:()=>ol});var fl={};L(fl,{ZodISODate:()=>Ay,ZodISODateTime:()=>iy,ZodISODuration:()=>cy,ZodISOTime:()=>sy,date:()=>$x,datetime:()=>Mx,duration:()=>Px,time:()=>jx});var iy=I("ZodISODateTime",(e,t)=>{pv.init(e,t),ht.init(e,t)});function Mx(e){return b_(iy,e)}var Ay=I("ZodISODate",(e,t)=>{gv.init(e,t),ht.init(e,t)});function $x(e){return h_(Ay,e)}var sy=I("ZodISOTime",(e,t)=>{mv.init(e,t),ht.init(e,t)});function jx(e){return B_(sy,e)}var cy=I("ZodISODuration",(e,t)=>{fv.init(e,t),ht.init(e,t)});function Px(e){return y_(cy,e)}var f$=(e,t)=>{$g.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Pg(e,n)},flatten:{value:n=>jg(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Yd,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Yd,2)}},isEmpty:{get(){return e.issues.length===0}}})},tre=I("ZodError",f$),uo=I("ZodError",f$,{Parent:Error});var Gx=Wd(uo),Hx=Zd(uo),Tx=Vd(uo),Ux=Xd(uo),Ox=aB(uo),qx=oB(uo),zx=rB(uo),Yx=iB(uo),Kx=AB(uo),Jx=sB(uo),Wx=cB(uo),Zx=uB(uo);var b$=new WeakMap;function tm(e,t,n){let o=Object.getPrototypeOf(e),a=b$.get(o);if(a||(a=new Set,b$.set(o,a)),!a.has(t)){a.add(t);for(let r in n){let i=n[r];Object.defineProperty(o,r,{configurable:!0,enumerable:!1,get(){let A=i.bind(this);return Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:A}),A},set(A){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:A})}})}}}var Ce=I("ZodType",(e,t)=>(me.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:ml(e,"input"),output:ml(e,"output")}}),e.toJSONSchema=V_(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>Gx(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Tx(e,n,o),e.parseAsync=async(n,o)=>Hx(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Ux(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Ox(e,n,o),e.decode=(n,o)=>qx(e,n,o),e.encodeAsync=async(n,o)=>zx(e,n,o),e.decodeAsync=async(n,o)=>Yx(e,n,o),e.safeEncode=(n,o)=>Kx(e,n,o),e.safeDecode=(n,o)=>Jx(e,n,o),e.safeEncodeAsync=async(n,o)=>Wx(e,n,o),e.safeDecodeAsync=async(n,o)=>Zx(e,n,o),tm(e,"ZodType",{check(...n){let o=this.def;return this.clone(U.mergeDefs(o,{checks:[...o.checks??[],...n.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return $a(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(TD(n,o))},superRefine(n,o){return this.check(UD(n,o))},overwrite(n){return this.check(Nr(n))},optional(){return Xg(this)},exactOptional(){return ED(this)},nullable(){return em(this)},nullish(){return Xg(em(this))},nonoptional(n){return xD(this,n)},array(){return om(this)},or(n){return Fy([this,n])},and(n){return pD(this,n)},transform(n){return dy(this,Ly(n))},default(n){return ID(this,n)},prefault(n){return _D(this,n)},catch(n){return SD(this,n)},pipe(n){return dy(this,n)},readonly(){return MD(this)},describe(n){let o=this.clone();return ua.add(o,{description:n}),o},meta(...n){if(n.length===0)return ua.get(this);let o=this.clone();return ua.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return ua.get(e)?.description},configurable:!0}),e)),ly=I("_ZodString",(e,t)=>{Hc.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(o,a,r)=>X_(e,o,a,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,tm(e,"_ZodString",{regex(...o){return this.check(nl(...o))},includes(...o){return this.check(rl(...o))},startsWith(...o){return this.check(il(...o))},endsWith(...o){return this.check(Al(...o))},min(...o){return this.check(kA(...o))},max(...o){return this.check(Uc(...o))},length(...o){return this.check(Oc(...o))},nonempty(...o){return this.check(kA(1,...o))},lowercase(o){return this.check(al(o))},uppercase(o){return this.check(ol(o))},trim(){return this.check(ul())},normalize(...o){return this.check(cl(...o))},toLowerCase(){return this.check(dl())},toUpperCase(){return this.check(ll())},slugify(){return this.check(pl())}})}),Bl=I("ZodString",(e,t)=>{Hc.init(e,t),ly.init(e,t),e.email=n=>e.check(xB(py,n)),e.url=n=>e.check(Jg(nm,n)),e.jwt=n=>e.check(KB(_y,n)),e.emoji=n=>e.check(RB(gy,n)),e.guid=n=>e.check(Kg(Vg,n)),e.uuid=n=>e.check(DB(Ei,n)),e.uuidv4=n=>e.check(FB(Ei,n)),e.uuidv6=n=>e.check(SB(Ei,n)),e.uuidv7=n=>e.check(LB(Ei,n)),e.nanoid=n=>e.check(NB(my,n)),e.guid=n=>e.check(Kg(Vg,n)),e.cuid=n=>e.check(MB(fy,n)),e.cuid2=n=>e.check($B(by,n)),e.ulid=n=>e.check(jB(hy,n)),e.base64=n=>e.check(qB(Qy,n)),e.base64url=n=>e.check(zB(Iy,n)),e.xid=n=>e.check(PB(By,n)),e.ksuid=n=>e.check(GB(yy,n)),e.ipv4=n=>e.check(HB(Cy,n)),e.ipv6=n=>e.check(TB(wy,n)),e.cidrv4=n=>e.check(UB(Ey,n)),e.cidrv6=n=>e.check(OB(ky,n)),e.e164=n=>e.check(YB(vy,n)),e.datetime=n=>e.check(Mx(n)),e.date=n=>e.check($x(n)),e.time=n=>e.check(jx(n)),e.duration=n=>e.check(Px(n))});function Zg(e){return p_(Bl,e)}var ht=I("ZodStringFormat",(e,t)=>{bt.init(e,t),ly.init(e,t)}),py=I("ZodEmail",(e,t)=>{ov.init(e,t),ht.init(e,t)});function h$(e){return xB(py,e)}var Vg=I("ZodGUID",(e,t)=>{nv.init(e,t),ht.init(e,t)});function B$(e){return Kg(Vg,e)}var Ei=I("ZodUUID",(e,t)=>{av.init(e,t),ht.init(e,t)});function y$(e){return DB(Ei,e)}function C$(e){return FB(Ei,e)}function w$(e){return SB(Ei,e)}function E$(e){return LB(Ei,e)}var nm=I("ZodURL",(e,t)=>{rv.init(e,t),ht.init(e,t)});function k$(e){return Jg(nm,e)}function Q$(e){return Jg(nm,{protocol:So.httpProtocol,hostname:So.domain,...U.normalizeParams(e)})}var gy=I("ZodEmoji",(e,t)=>{iv.init(e,t),ht.init(e,t)});function I$(e){return RB(gy,e)}var my=I("ZodNanoID",(e,t)=>{Av.init(e,t),ht.init(e,t)});function v$(e){return NB(my,e)}var fy=I("ZodCUID",(e,t)=>{sv.init(e,t),ht.init(e,t)});function _$(e){return MB(fy,e)}var by=I("ZodCUID2",(e,t)=>{cv.init(e,t),ht.init(e,t)});function x$(e){return $B(by,e)}var hy=I("ZodULID",(e,t)=>{uv.init(e,t),ht.init(e,t)});function D$(e){return jB(hy,e)}var By=I("ZodXID",(e,t)=>{dv.init(e,t),ht.init(e,t)});function F$(e){return PB(By,e)}var yy=I("ZodKSUID",(e,t)=>{lv.init(e,t),ht.init(e,t)});function S$(e){return GB(yy,e)}var Cy=I("ZodIPv4",(e,t)=>{bv.init(e,t),ht.init(e,t)});function L$(e){return HB(Cy,e)}var Vx=I("ZodMAC",(e,t)=>{Bv.init(e,t),ht.init(e,t)});function R$(e){return m_(Vx,e)}var wy=I("ZodIPv6",(e,t)=>{hv.init(e,t),ht.init(e,t)});function N$(e){return TB(wy,e)}var Ey=I("ZodCIDRv4",(e,t)=>{yv.init(e,t),ht.init(e,t)});function M$(e){return UB(Ey,e)}var ky=I("ZodCIDRv6",(e,t)=>{Cv.init(e,t),ht.init(e,t)});function $$(e){return OB(ky,e)}var Qy=I("ZodBase64",(e,t)=>{Ev.init(e,t),ht.init(e,t)});function j$(e){return qB(Qy,e)}var Iy=I("ZodBase64URL",(e,t)=>{kv.init(e,t),ht.init(e,t)});function P$(e){return zB(Iy,e)}var vy=I("ZodE164",(e,t)=>{Qv.init(e,t),ht.init(e,t)});function G$(e){return YB(vy,e)}var _y=I("ZodJWT",(e,t)=>{Iv.init(e,t),ht.init(e,t)});function H$(e){return KB(_y,e)}var yl=I("ZodCustomStringFormat",(e,t)=>{vv.init(e,t),ht.init(e,t)});function T$(e,t,n={}){return gl(yl,e,t,n)}function U$(e){return gl(yl,"hostname",So.hostname,e)}function O$(e){return gl(yl,"hex",So.hex,e)}function q$(e,t){let n=t?.enc??"hex",o=`${e}_${n}`,a=So[o];if(!a)throw new Error(`Unrecognized hash format: ${o}`);return gl(yl,o,a,t)}var Cl=I("ZodNumber",(e,t)=>{BB.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(o,a,r)=>ex(e,o,a,r),tm(e,"ZodNumber",{gt(o,a){return this.check(Ci(o,a))},gte(o,a){return this.check(Pa(o,a))},min(o,a){return this.check(Pa(o,a))},lt(o,a){return this.check(yi(o,a))},lte(o,a){return this.check(Lo(o,a))},max(o,a){return this.check(Lo(o,a))},int(o){return this.check(uy(o))},safe(o){return this.check(uy(o))},positive(o){return this.check(Ci(0,o))},nonnegative(o){return this.check(Pa(0,o))},negative(o){return this.check(yi(0,o))},nonpositive(o){return this.check(Lo(0,o))},multipleOf(o,a){return this.check(Fs(o,a))},step(o,a){return this.check(Fs(o,a))},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});function Xx(e){return C_(Cl,e)}var zc=I("ZodNumberFormat",(e,t)=>{_v.init(e,t),Cl.init(e,t)});function uy(e){return E_(zc,e)}function z$(e){return k_(zc,e)}function Y$(e){return Q_(zc,e)}function K$(e){return I_(zc,e)}function J$(e){return v_(zc,e)}var wl=I("ZodBoolean",(e,t)=>{Ug.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>tx(e,n,o,a)});function eD(e){return __(wl,e)}var El=I("ZodBigInt",(e,t)=>{yB.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(o,a,r)=>nx(e,o,a,r),e.gte=(o,a)=>e.check(Pa(o,a)),e.min=(o,a)=>e.check(Pa(o,a)),e.gt=(o,a)=>e.check(Ci(o,a)),e.gte=(o,a)=>e.check(Pa(o,a)),e.min=(o,a)=>e.check(Pa(o,a)),e.lt=(o,a)=>e.check(yi(o,a)),e.lte=(o,a)=>e.check(Lo(o,a)),e.max=(o,a)=>e.check(Lo(o,a)),e.positive=o=>e.check(Ci(BigInt(0),o)),e.negative=o=>e.check(yi(BigInt(0),o)),e.nonpositive=o=>e.check(Lo(BigInt(0),o)),e.nonnegative=o=>e.check(Pa(BigInt(0),o)),e.multipleOf=(o,a)=>e.check(Fs(o,a));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function W$(e){return D_(El,e)}var xy=I("ZodBigIntFormat",(e,t)=>{xv.init(e,t),El.init(e,t)});function Z$(e){return S_(xy,e)}function V$(e){return L_(xy,e)}var tD=I("ZodSymbol",(e,t)=>{Dv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ax(e,n,o,a)});function X$(e){return R_(tD,e)}var nD=I("ZodUndefined",(e,t)=>{Fv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>rx(e,n,o,a)});function ej(e){return N_(nD,e)}var aD=I("ZodNull",(e,t)=>{Sv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ox(e,n,o,a)});function oD(e){return M_(aD,e)}var rD=I("ZodAny",(e,t)=>{Lv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>sx(e,n,o,a)});function tj(){return $_(rD)}var iD=I("ZodUnknown",(e,t)=>{Rv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>cx(e,n,o,a)});function qc(){return j_(iD)}var AD=I("ZodNever",(e,t)=>{Nv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ax(e,n,o,a)});function Dy(e){return P_(AD,e)}var sD=I("ZodVoid",(e,t)=>{Mv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ix(e,n,o,a)});function nj(e){return G_(sD,e)}var am=I("ZodDate",(e,t)=>{$v.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(o,a,r)=>ux(e,o,a,r),e.min=(o,a)=>e.check(Pa(o,a)),e.max=(o,a)=>e.check(Lo(o,a));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function aj(e){return H_(am,e)}var cD=I("ZodArray",(e,t)=>{jv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>wx(e,n,o,a),e.element=t.element,tm(e,"ZodArray",{min(n,o){return this.check(kA(n,o))},nonempty(n){return this.check(kA(1,n))},max(n,o){return this.check(Uc(n,o))},length(n,o){return this.check(Oc(n,o))},unwrap(){return this.element}})});function om(e,t){return O_(cD,e,t)}function oj(e){let t=e._zod.def.shape;return Sy(Object.keys(t))}var rm=I("ZodObject",(e,t)=>{Pv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ex(e,n,o,a),U.defineLazy(e,"shape",()=>t.shape),tm(e,"ZodObject",{keyof(){return Sy(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:qc()})},loose(){return this.clone({...this._zod.def,catchall:qc()})},strict(){return this.clone({...this._zod.def,catchall:Dy()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return U.extend(this,n)},safeExtend(n){return U.safeExtend(this,n)},merge(n){return U.merge(this,n)},pick(n){return U.pick(this,n)},omit(n){return U.omit(this,n)},partial(...n){return U.partial(Ry,this,n[0])},required(...n){return U.required(Ny,this,n[0])}})});function rj(e,t){let n={type:"object",shape:e??{},...U.normalizeParams(t)};return new rm(n)}function ij(e,t){return new rm({type:"object",shape:e,catchall:Dy(),...U.normalizeParams(t)})}function Aj(e,t){return new rm({type:"object",shape:e,catchall:qc(),...U.normalizeParams(t)})}var im=I("ZodUnion",(e,t)=>{Og.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ty(e,n,o,a),e.options=t.options});function Fy(e,t){return new im({type:"union",options:e,...U.normalizeParams(t)})}var uD=I("ZodXor",(e,t)=>{im.init(e,t),Gv.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ty(e,n,o,a),e.options=t.options});function sj(e,t){return new uD({type:"union",options:e,inclusive:!1,...U.normalizeParams(t)})}var dD=I("ZodDiscriminatedUnion",(e,t)=>{im.init(e,t),Hv.init(e,t)});function cj(e,t,n){return new dD({type:"union",options:t,discriminator:e,...U.normalizeParams(n)})}var lD=I("ZodIntersection",(e,t)=>{Tv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>kx(e,n,o,a)});function pD(e,t){return new lD({type:"intersection",left:e,right:t})}var gD=I("ZodTuple",(e,t)=>{CB.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Qx(e,n,o,a),e.rest=n=>e.clone({...e._zod.def,rest:n})});function mD(e,t,n){let o=t instanceof me,a=o?n:t,r=o?t:null;return new gD({type:"tuple",items:e,rest:r,...U.normalizeParams(a)})}var bl=I("ZodRecord",(e,t)=>{Uv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ix(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType});function fD(e,t,n){return!t||!t._zod?new bl({type:"record",keyType:Zg(),valueType:e,...U.normalizeParams(t)}):new bl({type:"record",keyType:e,valueType:t,...U.normalizeParams(n)})}function uj(e,t,n){let o=$a(e);return o._zod.values=void 0,new bl({type:"record",keyType:o,valueType:t,...U.normalizeParams(n)})}function dj(e,t,n){return new bl({type:"record",keyType:e,valueType:t,mode:"loose",...U.normalizeParams(n)})}var bD=I("ZodMap",(e,t)=>{Ov.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>yx(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(wi(...n)),e.nonempty=n=>e.check(wi(1,n)),e.max=(...n)=>e.check(Ss(...n)),e.size=(...n)=>e.check(Tc(...n))});function lj(e,t,n){return new bD({type:"map",keyType:e,valueType:t,...U.normalizeParams(n)})}var hD=I("ZodSet",(e,t)=>{qv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Cx(e,n,o,a),e.min=(...n)=>e.check(wi(...n)),e.nonempty=n=>e.check(wi(1,n)),e.max=(...n)=>e.check(Ss(...n)),e.size=(...n)=>e.check(Tc(...n))});function pj(e,t){return new hD({type:"set",valueType:e,...U.normalizeParams(t)})}var hl=I("ZodEnum",(e,t)=>{zv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(o,a,r)=>dx(e,o,a,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(o,a)=>{let r={};for(let i of o)if(n.has(i))r[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new hl({...t,checks:[],...U.normalizeParams(a),entries:r})},e.exclude=(o,a)=>{let r={...t.entries};for(let i of o)if(n.has(i))delete r[i];else throw new Error(`Key ${i} not found in enum`);return new hl({...t,checks:[],...U.normalizeParams(a),entries:r})}});function Sy(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new hl({type:"enum",entries:n,...U.normalizeParams(t)})}function gj(e,t){return new hl({type:"enum",entries:e,...U.normalizeParams(t)})}var BD=I("ZodLiteral",(e,t)=>{Yv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>lx(e,n,o,a),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function mj(e,t){return new BD({type:"literal",values:Array.isArray(e)?e:[e],...U.normalizeParams(t)})}var yD=I("ZodFile",(e,t)=>{Kv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>mx(e,n,o,a),e.min=(n,o)=>e.check(wi(n,o)),e.max=(n,o)=>e.check(Ss(n,o)),e.mime=(n,o)=>e.check(sl(Array.isArray(n)?n:[n],o))});function fj(e){return q_(yD,e)}var CD=I("ZodTransform",(e,t)=>{Jv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Bx(e,n,o,a),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Is(e.constructor.name);n.addIssue=r=>{if(typeof r=="string")n.issues.push(U.issue(r,n.value,t));else{let i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(U.issue(i))}};let a=t.transform(n.value,n);return a instanceof Promise?a.then(r=>(n.value=r,n.fallback=!0,n)):(n.value=a,n.fallback=!0,n)}});function Ly(e){return new CD({type:"transform",transform:e})}var Ry=I("ZodOptional",(e,t)=>{wB.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ny(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Xg(e){return new Ry({type:"optional",innerType:e})}var wD=I("ZodExactOptional",(e,t)=>{Wv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ny(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function ED(e){return new wD({type:"optional",innerType:e})}var kD=I("ZodNullable",(e,t)=>{Zv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>vx(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function em(e){return new kD({type:"nullable",innerType:e})}function bj(e){return Xg(em(e))}var QD=I("ZodDefault",(e,t)=>{Vv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>xx(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function ID(e,t){return new QD({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():U.shallowClone(t)}})}var vD=I("ZodPrefault",(e,t)=>{Xv.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Dx(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function _D(e,t){return new vD({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():U.shallowClone(t)}})}var Ny=I("ZodNonOptional",(e,t)=>{e_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>_x(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function xD(e,t){return new Ny({type:"nonoptional",innerType:e,...U.normalizeParams(t)})}var DD=I("ZodSuccess",(e,t)=>{t_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>fx(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function hj(e){return new DD({type:"success",innerType:e})}var FD=I("ZodCatch",(e,t)=>{n_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Fx(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function SD(e,t){return new FD({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var LD=I("ZodNaN",(e,t)=>{a_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>px(e,n,o,a)});function Bj(e){return U_(LD,e)}var Am=I("ZodPipe",(e,t)=>{EB.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Sx(e,n,o,a),e.in=t.in,e.out=t.out});function dy(e,t){return new Am({type:"pipe",in:e,out:t})}var sm=I("ZodCodec",(e,t)=>{Am.init(e,t),qg.init(e,t)});function yj(e,t,n){return new sm({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Cj(e){let t=e._zod.def;return new sm({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var RD=I("ZodPreprocess",(e,t)=>{Am.init(e,t),o_.init(e,t)}),ND=I("ZodReadonly",(e,t)=>{r_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Lx(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function MD(e){return new ND({type:"readonly",innerType:e})}var $D=I("ZodTemplateLiteral",(e,t)=>{i_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>gx(e,n,o,a)});function wj(e,t){return new $D({type:"template_literal",parts:e,...U.normalizeParams(t)})}var jD=I("ZodLazy",(e,t)=>{c_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Nx(e,n,o,a),e.unwrap=()=>e._zod.def.getter()});function PD(e){return new jD({type:"lazy",getter:e})}var GD=I("ZodPromise",(e,t)=>{s_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Rx(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Ej(e){return new GD({type:"promise",innerType:e})}var HD=I("ZodFunction",(e,t)=>{A_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>hx(e,n,o,a)});function kj(e){return new HD({type:"function",input:Array.isArray(e?.input)?mD(e?.input):e?.input??om(qc()),output:e?.output??qc()})}var cm=I("ZodCustom",(e,t)=>{u_.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>bx(e,n,o,a)});function Qj(e){let t=new Et({check:"custom"});return t._zod.check=e,t}function Ij(e,t){return z_(cm,e??(()=>!0),t)}function TD(e,t={}){return Y_(cm,e,t)}function UD(e,t){return K_(e,t)}var vj=J_,_j=W_;function xj(e,t={}){let n=new cm({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...U.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var Dj=(...e)=>Z_({Codec:sm,Boolean:wl,String:Bl},...e);function Fj(e){let t=PD(()=>Fy([Zg(e),Xx(),eD(),oD(),om(t),fD(Zg(),t)]));return t}function Sj(e,t){return new RD({type:"pipe",in:Ly(e),out:t})}var are={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function ore(e){tn({customError:e})}function rre(){return tn().customError}var OD;OD||(OD={});var W={...Wg,...ry,iso:fl},ire=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Are(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 sre(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 o=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let a=n[1];if(!a||!t.defs[a])throw new Error(`Reference not found: ${e}`);return t.defs[a]}throw new Error(`Reference not found: ${e}`)}function Lj(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return W.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 a=e.$ref;if(t.refs.has(a))return t.refs.get(a);if(t.processing.has(a))return W.lazy(()=>{if(!t.refs.has(a))throw new Error(`Circular reference not resolved: ${a}`);return t.refs.get(a)});t.processing.add(a);let r=sre(a,t),i=ka(r,t);return t.refs.set(a,i),t.processing.delete(a),i}if(e.enum!==void 0){let a=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&a.length===1&&a[0]===null)return W.null();if(a.length===0)return W.never();if(a.length===1)return W.literal(a[0]);if(a.every(i=>typeof i=="string"))return W.enum(a);let r=a.map(i=>W.literal(i));return r.length<2?r[0]:W.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return W.literal(e.const);let n=e.type;if(Array.isArray(n)){let a=n.map(r=>{let i={...e,type:r};return Lj(i,t)});return a.length===0?W.never():a.length===1?a[0]:W.union(a)}if(!n)return W.any();let o;switch(n){case"string":{let a=W.string();if(e.format){let r=e.format;r==="email"?a=a.check(W.email()):r==="uri"||r==="uri-reference"?a=a.check(W.url()):r==="uuid"||r==="guid"?a=a.check(W.uuid()):r==="date-time"?a=a.check(W.iso.datetime()):r==="date"?a=a.check(W.iso.date()):r==="time"?a=a.check(W.iso.time()):r==="duration"?a=a.check(W.iso.duration()):r==="ipv4"?a=a.check(W.ipv4()):r==="ipv6"?a=a.check(W.ipv6()):r==="mac"?a=a.check(W.mac()):r==="cidr"?a=a.check(W.cidrv4()):r==="cidr-v6"?a=a.check(W.cidrv6()):r==="base64"?a=a.check(W.base64()):r==="base64url"?a=a.check(W.base64url()):r==="e164"?a=a.check(W.e164()):r==="jwt"?a=a.check(W.jwt()):r==="emoji"?a=a.check(W.emoji()):r==="nanoid"?a=a.check(W.nanoid()):r==="cuid"?a=a.check(W.cuid()):r==="cuid2"?a=a.check(W.cuid2()):r==="ulid"?a=a.check(W.ulid()):r==="xid"?a=a.check(W.xid()):r==="ksuid"&&(a=a.check(W.ksuid()))}typeof e.minLength=="number"&&(a=a.min(e.minLength)),typeof e.maxLength=="number"&&(a=a.max(e.maxLength)),e.pattern&&(a=a.regex(new RegExp(e.pattern))),o=a;break}case"number":case"integer":{let a=n==="integer"?W.number().int():W.number();typeof e.minimum=="number"&&(a=a.min(e.minimum)),typeof e.maximum=="number"&&(a=a.max(e.maximum)),typeof e.exclusiveMinimum=="number"?a=a.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(a=a.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?a=a.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(a=a.lt(e.maximum)),typeof e.multipleOf=="number"&&(a=a.multipleOf(e.multipleOf)),o=a;break}case"boolean":{o=W.boolean();break}case"null":{o=W.null();break}case"object":{let a={},r=e.properties||{},i=new Set(e.required||[]);for(let[s,c]of Object.entries(r)){let d=ka(c,t);a[s]=i.has(s)?d:d.optional()}if(e.propertyNames){let s=ka(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?ka(e.additionalProperties,t):W.any();if(Object.keys(a).length===0){o=W.record(s,c);break}let d=W.object(a).passthrough(),l=W.looseRecord(s,c);o=W.intersection(d,l);break}if(e.patternProperties){let s=e.patternProperties,c=Object.keys(s),d=[];for(let g of c){let p=ka(s[g],t),m=W.string().regex(new RegExp(g));d.push(W.looseRecord(m,p))}let l=[];if(Object.keys(a).length>0&&l.push(W.object(a).passthrough()),l.push(...d),l.length===0)o=W.object({}).passthrough();else if(l.length===1)o=l[0];else{let g=W.intersection(l[0],l[1]);for(let p=2;p<l.length;p++)g=W.intersection(g,l[p]);o=g}break}let A=W.object(a);e.additionalProperties===!1?o=A.strict():typeof e.additionalProperties=="object"?o=A.catchall(ka(e.additionalProperties,t)):o=A.passthrough();break}case"array":{let a=e.prefixItems,r=e.items;if(a&&Array.isArray(a)){let i=a.map(s=>ka(s,t)),A=r&&typeof r=="object"&&!Array.isArray(r)?ka(r,t):void 0;A?o=W.tuple(i).rest(A):o=W.tuple(i),typeof e.minItems=="number"&&(o=o.check(W.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(W.maxLength(e.maxItems)))}else if(Array.isArray(r)){let i=r.map(s=>ka(s,t)),A=e.additionalItems&&typeof e.additionalItems=="object"?ka(e.additionalItems,t):void 0;A?o=W.tuple(i).rest(A):o=W.tuple(i),typeof e.minItems=="number"&&(o=o.check(W.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(W.maxLength(e.maxItems)))}else if(r!==void 0){let i=ka(r,t),A=W.array(i);typeof e.minItems=="number"&&(A=A.min(e.minItems)),typeof e.maxItems=="number"&&(A=A.max(e.maxItems)),o=A}else o=W.array(W.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function ka(e,t){if(typeof e=="boolean")return e?W.any():W.never();let n=Lj(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let A=e.anyOf.map(c=>ka(c,t)),s=W.union(A);n=o?W.intersection(n,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let A=e.oneOf.map(c=>ka(c,t)),s=W.xor(A);n=o?W.intersection(n,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:W.any();else{let A=o?n:ka(e.allOf[0],t),s=o?0:1;for(let c=s;c<e.allOf.length;c++)A=W.intersection(A,ka(e.allOf[c],t));n=A}e.nullable===!0&&t.version==="openapi-3.0"&&(n=W.nullable(n)),e.readOnly===!0&&(n=W.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let a={},r=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let A of r)A in e&&(a[A]=e[A]);let i=["contentEncoding","contentMediaType","contentSchema"];for(let A of i)A in e&&(a[A]=e[A]);for(let A of Object.keys(e))ire.has(A)||(a[A]=e[A]);return Object.keys(a).length>0&&t.registry.add(n,a),e.description&&(n=n.describe(e.description)),n}function Rj(e,t){if(typeof e=="boolean")return e?W.any():W.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 o=Are(n,t?.defaultTarget),a=n.$defs||n.definitions||{},r={version:o,defs:a,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??ua};return ka(n,r)}var qD={};L(qD,{bigint:()=>lre,boolean:()=>dre,date:()=>pre,number:()=>ure,string:()=>cre});function cre(e){return g_(Bl,e)}function ure(e){return w_(Cl,e)}function dre(e){return x_(wl,e)}function lre(e){return F_(El,e)}function pre(e){return T_(am,e)}tn(kB());var gre=u.object({input:u.number().finite().nonnegative().optional(),output:u.number().finite().nonnegative().optional(),cacheRead:u.number().finite().nonnegative().optional(),cacheWrite:u.number().finite().nonnegative().optional(),total:u.number().finite().nonnegative().optional()}).strict(),Nj=u.object({inputTokens:u.number().int().nonnegative().optional(),outputTokens:u.number().int().nonnegative().optional(),cachedInputTokens:u.number().int().nonnegative().optional(),cacheCreationTokens:u.number().int().nonnegative().optional(),reasoningTokens:u.number().int().nonnegative().optional(),totalTokens:u.number().int().nonnegative().optional(),cost:gre.optional()}).strict();var _=Symbol.for("drizzle:entityKind");function vn(e,t){if(!e||typeof e!="object")return!1;if(e instanceof t)return!0;if(!Object.prototype.hasOwnProperty.call(t,_))throw new Error(`Class "${t.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let n=Object.getPrototypeOf(e).constructor;if(n)for(;n;){if(_ in n&&n[_]===t[_])return!0;n=Object.getPrototypeOf(n)}return!1}var Yc=class{constructor(t,n){this.table=t,this.config=n,this.name=n.name,this.keyAsName=n.keyAsName,this.notNull=n.notNull,this.default=n.default,this.defaultFn=n.defaultFn,this.onUpdateFn=n.onUpdateFn,this.hasDefault=n.hasDefault,this.primary=n.primaryKey,this.isUnique=n.isUnique,this.uniqueName=n.uniqueName,this.uniqueType=n.uniqueType,this.dataType=n.dataType,this.columnType=n.columnType,this.generated=n.generated,this.generatedIdentity=n.generatedIdentity}static[_]="Column";name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue(t){return t}mapToDriverValue(t){return t}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!=="byDefault"}};var My=class{static[_]="ColumnBuilder";config;constructor(t,n,o){this.config={name:t,keyAsName:t==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:n,columnType:o,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default(t){return this.config.default=t,this.config.hasDefault=!0,this}$defaultFn(t){return this.config.defaultFn=t,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn(t){return this.config.onUpdateFn=t,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName(t){this.config.name===""&&(this.config.name=t)}};var IA=Symbol.for("drizzle:Name");var $y=class{static[_]="PgForeignKeyBuilder";reference;_onUpdate="no action";_onDelete="no action";constructor(t,n){this.reference=()=>{let{name:o,columns:a,foreignColumns:r}=t();return{name:o,columns:a,foreignTable:r[0].table,foreignColumns:r}},n&&(this._onUpdate=n.onUpdate,this._onDelete=n.onDelete)}onUpdate(t){return this._onUpdate=t===void 0?"no action":t,this}onDelete(t){return this._onDelete=t===void 0?"no action":t,this}build(t){return new zD(t,this)}},zD=class{constructor(t,n){this.table=t,this.reference=n.reference,this.onUpdate=n._onUpdate,this.onDelete=n._onDelete}static[_]="PgForeignKey";reference;onUpdate;onDelete;getName(){let{name:t,columns:n,foreignColumns:o}=this.reference(),a=n.map(A=>A.name),r=o.map(A=>A.name),i=[this.table[IA],...a,o[0].table[IA],...r];return t??`${i.join("_")}_fk`}};function jy(e,...t){return e(...t)}function JD(e,t){return`${e[IA]}_${t.join("_")}_unique`}var YD=class{constructor(t,n){this.name=n,this.columns=t}static[_]="PgUniqueConstraintBuilder";columns;nullsNotDistinctConfig=!1;nullsNotDistinct(){return this.nullsNotDistinctConfig=!0,this}build(t){return new KD(t,this.columns,this.nullsNotDistinctConfig,this.name)}},Mj=class{static[_]="PgUniqueOnConstraintBuilder";name;constructor(t){this.name=t}on(...t){return new YD(t,this.name)}},KD=class{constructor(t,n,o,a){this.table=t,this.columns=n,this.name=a??JD(this.table,this.columns.map(r=>r.name)),this.nullsNotDistinct=o}static[_]="PgUniqueConstraint";columns;name;nullsNotDistinct=!1;getName(){return this.name}};function $j(e,t,n){for(let o=t;o<e.length;o++){let a=e[o];if(a==="\\"){o++;continue}if(a==='"')return[e.slice(t,o).replace(/\\/g,""),o+1];if(!n&&(a===","||a==="}"))return[e.slice(t,o).replace(/\\/g,""),o]}return[e.slice(t).replace(/\\/g,""),e.length]}function jj(e,t=0){let n=[],o=t,a=!1;for(;o<e.length;){let r=e[o];if(r===","){(a||o===t)&&n.push(""),a=!0,o++;continue}if(a=!1,r==="\\"){o+=2;continue}if(r==='"'){let[s,c]=$j(e,o+1,!0);n.push(s),o=c;continue}if(r==="}")return[n,o+1];if(r==="{"){let[s,c]=jj(e,o+1);n.push(s),o=c;continue}let[i,A]=$j(e,o,!1);n.push(i),o=A}return[n,o]}function Pj(e){let[t]=jj(e,1);return t}function WD(e){return`{${e.map(t=>Array.isArray(t)?WD(t):typeof t=="string"?`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:`${t}`).join(",")}}`}var te=class extends My{foreignKeyConfigs=[];static[_]="PgColumnBuilder";array(t){return new VD(this.config.name,this,t)}references(t,n={}){return this.foreignKeyConfigs.push({ref:t,actions:n}),this}unique(t,n){return this.config.isUnique=!0,this.config.uniqueName=t,this.config.uniqueType=n?.nulls,this}generatedAlwaysAs(t){return this.config.generated={as:t,type:"always",mode:"stored"},this}buildForeignKeys(t,n){return this.foreignKeyConfigs.map(({ref:o,actions:a})=>jy((r,i)=>{let A=new $y(()=>{let s=r();return{columns:[t],foreignColumns:[s]}});return i.onUpdate&&A.onUpdate(i.onUpdate),i.onDelete&&A.onDelete(i.onDelete),A.build(n)},o,a))}buildExtraConfigColumn(t){return new ZD(t,this.config)}},J=class extends Yc{constructor(t,n){n.uniqueName||(n.uniqueName=JD(t,[n.name])),super(t,n),this.table=t}static[_]="PgColumn"},ZD=class extends J{static[_]="ExtraConfigColumn";getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??"asc",nulls:this.config.nulls??"last",opClass:this.config.opClass};defaultConfig={order:"asc",nulls:"last",opClass:void 0};asc(){return this.indexConfig.order="asc",this}desc(){return this.indexConfig.order="desc",this}nullsFirst(){return this.indexConfig.nulls="first",this}nullsLast(){return this.indexConfig.nulls="last",this}op(t){return this.indexConfig.opClass=t,this}},kl=class{static[_]="IndexedColumn";constructor(t,n,o,a){this.name=t,this.keyAsName=n,this.type=o,this.indexConfig=a}name;keyAsName;type;indexConfig},VD=class extends te{static[_]="PgArrayBuilder";constructor(t,n,o){super(t,"array","PgArray"),this.config.baseBuilder=n,this.config.size=o}build(t){let n=this.config.baseBuilder.build(t);return new XD(t,this.config,n)}},XD=class e extends J{constructor(t,n,o,a){super(t,n),this.baseColumn=o,this.range=a,this.size=n.size}size;static[_]="PgArray";getSQLType(){return`${this.baseColumn.getSQLType()}[${typeof this.size=="number"?this.size:""}]`}mapFromDriverValue(t){return typeof t=="string"&&(t=Pj(t)),t.map(n=>this.baseColumn.mapFromDriverValue(n))}mapToDriverValue(t,n=!1){let o=t.map(a=>a===null?null:vn(this.baseColumn,e)?this.baseColumn.mapToDriverValue(a,!0):this.baseColumn.mapToDriverValue(a));return n?o:WD(o)}};var Gj=class extends te{static[_]="PgEnumObjectColumnBuilder";constructor(t,n){super(t,"string","PgEnumObjectColumn"),this.config.enum=n}build(t){return new e1(t,this.config)}},e1=class extends J{static[_]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor(t,n){super(t,n),this.enum=n.enum}getSQLType(){return this.enum.enumName}},Hj=Symbol.for("drizzle:isPgEnum");function Uj(e){return!!e&&typeof e=="function"&&Hj in e&&e[Hj]===!0}var Tj=class extends te{static[_]="PgEnumColumnBuilder";constructor(t,n){super(t,"string","PgEnumColumn"),this.config.enum=n}build(t){return new t1(t,this.config)}},t1=class extends J{static[_]="PgEnumColumn";enum=this.config.enum;enumValues=this.config.enum.enumValues;constructor(t,n){super(t,n),this.enum=n.enum}getSQLType(){return this.enum.enumName}};var Ql=class{static[_]="Subquery";constructor(t,n,o,a=!1,r=[]){this._={brand:"Subquery",sql:t,selectedFields:n,alias:o,isWith:a,usedTables:r}}},Oj=class extends Ql{static[_]="WithSubquery"};var qj="0.45.2";var n1,a1,zj={startActiveSpan(e,t){return n1?(a1||(a1=n1.trace.getTracer("drizzle-orm",qj)),jy((n,o)=>o.startActiveSpan(e,a=>{try{return t(a)}catch(r){throw a.setStatus({code:n.SpanStatusCode.ERROR,message:r instanceof Error?r.message:"Unknown error"}),r}finally{a.end()}}),n1,a1)):t()}};var Il=Symbol.for("drizzle:ViewBaseConfig");var o1=Symbol.for("drizzle:Schema"),Yj=Symbol.for("drizzle:Columns"),Kj=Symbol.for("drizzle:ExtraConfigColumns"),r1=Symbol.for("drizzle:OriginalName"),i1=Symbol.for("drizzle:BaseName"),um=Symbol.for("drizzle:IsAlias"),Jj=Symbol.for("drizzle:ExtraConfigBuilder"),mre=Symbol.for("drizzle:IsDrizzleTable"),ln=class{static[_]="Table";static Symbol={Name:IA,Schema:o1,OriginalName:r1,Columns:Yj,ExtraConfigColumns:Kj,BaseName:i1,IsAlias:um,ExtraConfigBuilder:Jj};[IA];[r1];[o1];[Yj];[Kj];[i1];[um]=!1;[mre]=!0;[Jj]=void 0;constructor(t,n,o){this[IA]=this[r1]=t,this[o1]=n,this[i1]=o}};var Wj=class{static[_]="FakePrimitiveParam"};function fre(e){return e!=null&&typeof e.getSQL=="function"}function bre(e){let t={sql:"",params:[]};for(let n of e)t.sql+=n.sql,t.params.push(...n.params),n.typings?.length&&(t.typings||(t.typings=[]),t.typings.push(...n.typings));return t}var Ro=class{static[_]="StringChunk";value;constructor(t){this.value=Array.isArray(t)?t:[t]}getSQL(){return new pn([this])}},pn=class e{constructor(t){this.queryChunks=t;for(let n of t)if(vn(n,ln)){let o=n[ln.Symbol.Schema];this.usedTables.push(o===void 0?n[ln.Symbol.Name]:o+"."+n[ln.Symbol.Name])}}static[_]="SQL";decoder=Zj;shouldInlineParams=!1;usedTables=[];append(t){return this.queryChunks.push(...t.queryChunks),this}toQuery(t){return zj.startActiveSpan("drizzle.buildSQL",n=>{let o=this.buildQueryFromSourceParams(this.queryChunks,t);return n?.setAttributes({"drizzle.query.text":o.sql,"drizzle.query.params":JSON.stringify(o.params)}),o})}buildQueryFromSourceParams(t,n){let o=Object.assign({},n,{inlineParams:n.inlineParams||this.shouldInlineParams,paramStartIndex:n.paramStartIndex||{value:0}}),{casing:a,escapeName:r,escapeParam:i,prepareTyping:A,inlineParams:s,paramStartIndex:c}=o;return bre(t.map(d=>{if(vn(d,Ro))return{sql:d.value.join(""),params:[]};if(vn(d,dm))return{sql:r(d.value),params:[]};if(d===void 0)return{sql:"",params:[]};if(Array.isArray(d)){let l=[new Ro("(")];for(let[g,p]of d.entries())l.push(p),g<d.length-1&&l.push(new Ro(", "));return l.push(new Ro(")")),this.buildQueryFromSourceParams(l,o)}if(vn(d,e))return this.buildQueryFromSourceParams(d.queryChunks,{...o,inlineParams:s||d.shouldInlineParams});if(vn(d,ln)){let l=d[ln.Symbol.Schema],g=d[ln.Symbol.Name];return{sql:l===void 0||d[um]?r(g):r(l)+"."+r(g),params:[]}}if(vn(d,Yc)){let l=a.getColumnCasing(d);if(n.invokeSource==="indexes")return{sql:r(l),params:[]};let g=d.table[ln.Symbol.Schema];return{sql:d.table[um]||g===void 0?r(d.table[ln.Symbol.Name])+"."+r(l):r(g)+"."+r(d.table[ln.Symbol.Name])+"."+r(l),params:[]}}if(vn(d,A1)){let l=d[Il].schema,g=d[Il].name;return{sql:l===void 0||d[Il].isAlias?r(g):r(l)+"."+r(g),params:[]}}if(vn(d,Py)){if(vn(d.value,lm))return{sql:i(c.value++,d),params:[d],typings:["none"]};let l=d.value===null?null:d.encoder.mapToDriverValue(d.value);if(vn(l,e))return this.buildQueryFromSourceParams([l],o);if(s)return{sql:this.mapInlineParam(l,o),params:[]};let g=["none"];return A&&(g=[A(d.encoder)]),{sql:i(c.value++,l),params:[l],typings:g}}return vn(d,lm)?{sql:i(c.value++,d),params:[d],typings:["none"]}:vn(d,e.Aliased)&&d.fieldAlias!==void 0?{sql:r(d.fieldAlias),params:[]}:vn(d,Ql)?d._.isWith?{sql:r(d._.alias),params:[]}:this.buildQueryFromSourceParams([new Ro("("),d._.sql,new Ro(") "),new dm(d._.alias)],o):Uj(d)?d.schema?{sql:r(d.schema)+"."+r(d.enumName),params:[]}:{sql:r(d.enumName),params:[]}:fre(d)?d.shouldOmitSQLParens?.()?this.buildQueryFromSourceParams([d.getSQL()],o):this.buildQueryFromSourceParams([new Ro("("),d.getSQL(),new Ro(")")],o):s?{sql:this.mapInlineParam(d,o),params:[]}:{sql:i(c.value++,d),params:[d],typings:["none"]}}))}mapInlineParam(t,{escapeString:n}){if(t===null)return"null";if(typeof t=="number"||typeof t=="boolean")return t.toString();if(typeof t=="string")return n(t);if(typeof t=="object"){let o=t.toString();return n(o==="[object Object]"?JSON.stringify(t):o)}throw new Error("Unexpected param value: "+t)}getSQL(){return this}as(t){return t===void 0?this:new e.Aliased(this,t)}mapWith(t){return this.decoder=typeof t=="function"?{mapFromDriverValue:t}:t,this}inlineParams(){return this.shouldInlineParams=!0,this}if(t){return t?this:void 0}},dm=class{constructor(t){this.value=t}static[_]="Name";brand;getSQL(){return new pn([this])}};var Zj={mapFromDriverValue:e=>e},Vj={mapToDriverValue:e=>e},cxe={...Zj,...Vj},Py=class{constructor(t,n=Vj){this.value=t,this.encoder=n}static[_]="Param";brand;getSQL(){return new pn([this])}};function vl(e,...t){let n=[];(t.length>0||e.length>0&&e[0]!=="")&&n.push(new Ro(e[0]));for(let[o,a]of t.entries())n.push(a,new Ro(e[o+1]));return new pn(n)}(e=>{function t(){return new pn([])}e.empty=t;function n(s){return new pn(s)}e.fromList=n;function o(s){return new pn([new Ro(s)])}e.raw=o;function a(s,c){let d=[];for(let[l,g]of s.entries())l>0&&c!==void 0&&d.push(c),d.push(g);return new pn(d)}e.join=a;function r(s){return new dm(s)}e.identifier=r;function i(s){return new lm(s)}e.placeholder=i;function A(s,c){return new Py(s,c)}e.param=A})(vl||(vl={}));(e=>{class t{constructor(o,a){this.sql=o,this.fieldAlias=a}static[_]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new t(this.sql,this.fieldAlias)}}e.Aliased=t})(pn||(pn={}));var lm=class{constructor(t){this.name=t}static[_]="Placeholder";getSQL(){return new pn([this])}};var hre=Symbol.for("drizzle:IsDrizzleView"),A1=class{static[_]="View";[Il];[hre]=!0;constructor({name:t,schema:n,selectedFields:o,query:a}){this[Il]={name:t,originalName:t,schema:n,selectedFields:o,query:a,isExisting:!a,isAlias:!1}}getSQL(){return new pn([this])}};Yc.prototype.getSQL=function(){return new pn([this])};ln.prototype.getSQL=function(){return new pn([this])};Ql.prototype.getSQL=function(){return new pn([this])};function Ne(e,t){return{name:typeof e=="string"&&e.length>0?e:"",config:typeof e=="object"?e:t}}var dxe=typeof TextDecoder>"u"?null:new TextDecoder;var vA=class extends te{static[_]="PgIntColumnBaseBuilder";generatedAlwaysAsIdentity(t){if(t){let{name:n,...o}=t;this.config.generatedIdentity={type:"always",sequenceName:n,sequenceOptions:o}}else this.config.generatedIdentity={type:"always"};return this.config.hasDefault=!0,this.config.notNull=!0,this}generatedByDefaultAsIdentity(t){if(t){let{name:n,...o}=t;this.config.generatedIdentity={type:"byDefault",sequenceName:n,sequenceOptions:o}}else this.config.generatedIdentity={type:"byDefault"};return this.config.hasDefault=!0,this.config.notNull=!0,this}};var s1=class extends vA{static[_]="PgBigInt53Builder";constructor(t){super(t,"number","PgBigInt53")}build(t){return new c1(t,this.config)}},c1=class extends J{static[_]="PgBigInt53";getSQLType(){return"bigint"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},u1=class extends vA{static[_]="PgBigInt64Builder";constructor(t){super(t,"bigint","PgBigInt64")}build(t){return new d1(t,this.config)}},d1=class extends J{static[_]="PgBigInt64";getSQLType(){return"bigint"}mapFromDriverValue(t){return BigInt(t)}};function Xj(e,t){let{name:n,config:o}=Ne(e,t);return o.mode==="number"?new s1(n):new u1(n)}var l1=class extends te{static[_]="PgBigSerial53Builder";constructor(t){super(t,"number","PgBigSerial53"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new p1(t,this.config)}},p1=class extends J{static[_]="PgBigSerial53";getSQLType(){return"bigserial"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},g1=class extends te{static[_]="PgBigSerial64Builder";constructor(t){super(t,"bigint","PgBigSerial64"),this.config.hasDefault=!0}build(t){return new m1(t,this.config)}},m1=class extends J{static[_]="PgBigSerial64";getSQLType(){return"bigserial"}mapFromDriverValue(t){return BigInt(t)}};function e7(e,t){let{name:n,config:o}=Ne(e,t);return o.mode==="number"?new l1(n):new g1(n)}var f1=class extends te{static[_]="PgBooleanBuilder";constructor(t){super(t,"boolean","PgBoolean")}build(t){return new b1(t,this.config)}},b1=class extends J{static[_]="PgBoolean";getSQLType(){return"boolean"}};function t7(e){return new f1(e??"")}var h1=class extends te{static[_]="PgCharBuilder";constructor(t,n){super(t,"string","PgChar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new B1(t,this.config)}},B1=class extends J{static[_]="PgChar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"char":`char(${this.length})`}};function n7(e,t={}){let{name:n,config:o}=Ne(e,t);return new h1(n,o)}var y1=class extends te{static[_]="PgCidrBuilder";constructor(t){super(t,"string","PgCidr")}build(t){return new C1(t,this.config)}},C1=class extends J{static[_]="PgCidr";getSQLType(){return"cidr"}};function a7(e){return new y1(e??"")}var w1=class extends te{static[_]="PgCustomColumnBuilder";constructor(t,n,o){super(t,"custom","PgCustomColumn"),this.config.fieldConfig=n,this.config.customTypeParams=o}build(t){return new E1(t,this.config)}},E1=class extends J{static[_]="PgCustomColumn";sqlName;mapTo;mapFrom;constructor(t,n){super(t,n),this.sqlName=n.customTypeParams.dataType(n.fieldConfig),this.mapTo=n.customTypeParams.toDriver,this.mapFrom=n.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue(t){return typeof this.mapFrom=="function"?this.mapFrom(t):t}mapToDriverValue(t){return typeof this.mapTo=="function"?this.mapTo(t):t}};function o7(e){return(t,n)=>{let{name:o,config:a}=Ne(t,n);return new w1(o,a,e)}}var ki=class extends te{static[_]="PgDateColumnBaseBuilder";defaultNow(){return this.default(vl`now()`)}};var k1=class extends ki{static[_]="PgDateBuilder";constructor(t){super(t,"date","PgDate")}build(t){return new Q1(t,this.config)}},Q1=class extends J{static[_]="PgDate";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?new Date(t):t}mapToDriverValue(t){return t.toISOString()}},I1=class extends ki{static[_]="PgDateStringBuilder";constructor(t){super(t,"string","PgDateString")}build(t){return new v1(t,this.config)}},v1=class extends J{static[_]="PgDateString";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?t:t.toISOString().slice(0,-14)}};function r7(e,t){let{name:n,config:o}=Ne(e,t);return o?.mode==="date"?new k1(n):new I1(n)}var _1=class extends te{static[_]="PgDoublePrecisionBuilder";constructor(t){super(t,"number","PgDoublePrecision")}build(t){return new x1(t,this.config)}},x1=class extends J{static[_]="PgDoublePrecision";getSQLType(){return"double precision"}mapFromDriverValue(t){return typeof t=="string"?Number.parseFloat(t):t}};function i7(e){return new _1(e??"")}var D1=class extends te{static[_]="PgInetBuilder";constructor(t){super(t,"string","PgInet")}build(t){return new F1(t,this.config)}},F1=class extends J{static[_]="PgInet";getSQLType(){return"inet"}};function A7(e){return new D1(e??"")}var S1=class extends vA{static[_]="PgIntegerBuilder";constructor(t){super(t,"number","PgInteger")}build(t){return new L1(t,this.config)}},L1=class extends J{static[_]="PgInteger";getSQLType(){return"integer"}mapFromDriverValue(t){return typeof t=="string"?Number.parseInt(t):t}};function s7(e){return new S1(e??"")}var R1=class extends te{static[_]="PgIntervalBuilder";constructor(t,n){super(t,"string","PgInterval"),this.config.intervalConfig=n}build(t){return new N1(t,this.config)}},N1=class extends J{static[_]="PgInterval";fields=this.config.intervalConfig.fields;precision=this.config.intervalConfig.precision;getSQLType(){let t=this.fields?` ${this.fields}`:"",n=this.precision?`(${this.precision})`:"";return`interval${t}${n}`}};function c7(e,t={}){let{name:n,config:o}=Ne(e,t);return new R1(n,o)}var M1=class extends te{static[_]="PgJsonBuilder";constructor(t){super(t,"json","PgJson")}build(t){return new $1(t,this.config)}},$1=class extends J{static[_]="PgJson";constructor(t,n){super(t,n)}getSQLType(){return"json"}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t}};function u7(e){return new M1(e??"")}var j1=class extends te{static[_]="PgJsonbBuilder";constructor(t){super(t,"json","PgJsonb")}build(t){return new P1(t,this.config)}},P1=class extends J{static[_]="PgJsonb";constructor(t,n){super(t,n)}getSQLType(){return"jsonb"}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t}};function Gy(e){return new j1(e??"")}var G1=class extends te{static[_]="PgLineBuilder";constructor(t){super(t,"array","PgLine")}build(t){return new H1(t,this.config)}},H1=class extends J{static[_]="PgLine";getSQLType(){return"line"}mapFromDriverValue(t){let[n,o,a]=t.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(o),Number.parseFloat(a)]}mapToDriverValue(t){return`{${t[0]},${t[1]},${t[2]}}`}},T1=class extends te{static[_]="PgLineABCBuilder";constructor(t){super(t,"json","PgLineABC")}build(t){return new U1(t,this.config)}},U1=class extends J{static[_]="PgLineABC";getSQLType(){return"line"}mapFromDriverValue(t){let[n,o,a]=t.slice(1,-1).split(",");return{a:Number.parseFloat(n),b:Number.parseFloat(o),c:Number.parseFloat(a)}}mapToDriverValue(t){return`{${t.a},${t.b},${t.c}}`}};function d7(e,t){let{name:n,config:o}=Ne(e,t);return!o?.mode||o.mode==="tuple"?new G1(n):new T1(n)}var O1=class extends te{static[_]="PgMacaddrBuilder";constructor(t){super(t,"string","PgMacaddr")}build(t){return new q1(t,this.config)}},q1=class extends J{static[_]="PgMacaddr";getSQLType(){return"macaddr"}};function l7(e){return new O1(e??"")}var z1=class extends te{static[_]="PgMacaddr8Builder";constructor(t){super(t,"string","PgMacaddr8")}build(t){return new Y1(t,this.config)}},Y1=class extends J{static[_]="PgMacaddr8";getSQLType(){return"macaddr8"}};function p7(e){return new z1(e??"")}var K1=class extends te{static[_]="PgNumericBuilder";constructor(t,n,o){super(t,"string","PgNumeric"),this.config.precision=n,this.config.scale=o}build(t){return new J1(t,this.config)}},J1=class extends J{static[_]="PgNumeric";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(t){return typeof t=="string"?t:String(t)}getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}},W1=class extends te{static[_]="PgNumericNumberBuilder";constructor(t,n,o){super(t,"number","PgNumericNumber"),this.config.precision=n,this.config.scale=o}build(t){return new Z1(t,this.config)}},Z1=class extends J{static[_]="PgNumericNumber";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}mapToDriverValue=String;getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}},V1=class extends te{static[_]="PgNumericBigIntBuilder";constructor(t,n,o){super(t,"bigint","PgNumericBigInt"),this.config.precision=n,this.config.scale=o}build(t){return new X1(t,this.config)}},X1=class extends J{static[_]="PgNumericBigInt";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}};function g7(e,t){let{name:n,config:o}=Ne(e,t),a=o?.mode;return a==="number"?new W1(n,o?.precision,o?.scale):a==="bigint"?new V1(n,o?.precision,o?.scale):new K1(n,o?.precision,o?.scale)}var eF=class extends te{static[_]="PgPointTupleBuilder";constructor(t){super(t,"array","PgPointTuple")}build(t){return new tF(t,this.config)}},tF=class extends J{static[_]="PgPointTuple";getSQLType(){return"point"}mapFromDriverValue(t){if(typeof t=="string"){let[n,o]=t.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(o)]}return[t.x,t.y]}mapToDriverValue(t){return`(${t[0]},${t[1]})`}},nF=class extends te{static[_]="PgPointObjectBuilder";constructor(t){super(t,"json","PgPointObject")}build(t){return new aF(t,this.config)}},aF=class extends J{static[_]="PgPointObject";getSQLType(){return"point"}mapFromDriverValue(t){if(typeof t=="string"){let[n,o]=t.slice(1,-1).split(",");return{x:Number.parseFloat(n),y:Number.parseFloat(o)}}return t}mapToDriverValue(t){return`(${t.x},${t.y})`}};function m7(e,t){let{name:n,config:o}=Ne(e,t);return!o?.mode||o.mode==="tuple"?new eF(n):new nF(n)}function Bre(e){let t=[];for(let n=0;n<e.length;n+=2)t.push(Number.parseInt(e.slice(n,n+2),16));return new Uint8Array(t)}function f7(e,t){let n=new ArrayBuffer(8),o=new DataView(n);for(let a=0;a<8;a++)o.setUint8(a,e[t+a]);return o.getFloat64(0,!0)}function oF(e){let t=Bre(e),n=0,o=t[n];n+=1;let a=new DataView(t.buffer),r=a.getUint32(n,o===1);n+=4;let i;if(r&536870912&&(i=a.getUint32(n,o===1),n+=4),(r&65535)===1){let A=f7(t,n);n+=8;let s=f7(t,n);return n+=8,[A,s]}throw new Error("Unsupported geometry type")}var rF=class extends te{static[_]="PgGeometryBuilder";constructor(t){super(t,"array","PgGeometry")}build(t){return new iF(t,this.config)}},iF=class extends J{static[_]="PgGeometry";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){return oF(t)}mapToDriverValue(t){return`point(${t[0]} ${t[1]})`}},AF=class extends te{static[_]="PgGeometryObjectBuilder";constructor(t){super(t,"json","PgGeometryObject")}build(t){return new sF(t,this.config)}},sF=class extends J{static[_]="PgGeometryObject";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){let n=oF(t);return{x:n[0],y:n[1]}}mapToDriverValue(t){return`point(${t.x} ${t.y})`}};function b7(e,t){let{name:n,config:o}=Ne(e,t);return!o?.mode||o.mode==="tuple"?new rF(n):new AF(n)}var cF=class extends te{static[_]="PgRealBuilder";constructor(t,n){super(t,"number","PgReal"),this.config.length=n}build(t){return new uF(t,this.config)}},uF=class extends J{static[_]="PgReal";constructor(t,n){super(t,n)}getSQLType(){return"real"}mapFromDriverValue=t=>typeof t=="string"?Number.parseFloat(t):t};function h7(e){return new cF(e??"")}var dF=class extends te{static[_]="PgSerialBuilder";constructor(t){super(t,"number","PgSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new lF(t,this.config)}},lF=class extends J{static[_]="PgSerial";getSQLType(){return"serial"}};function B7(e){return new dF(e??"")}var pF=class extends vA{static[_]="PgSmallIntBuilder";constructor(t){super(t,"number","PgSmallInt")}build(t){return new gF(t,this.config)}},gF=class extends J{static[_]="PgSmallInt";getSQLType(){return"smallint"}mapFromDriverValue=t=>typeof t=="string"?Number(t):t};function y7(e){return new pF(e??"")}var mF=class extends te{static[_]="PgSmallSerialBuilder";constructor(t){super(t,"number","PgSmallSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new fF(t,this.config)}},fF=class extends J{static[_]="PgSmallSerial";getSQLType(){return"smallserial"}};function C7(e){return new mF(e??"")}var bF=class extends te{static[_]="PgTextBuilder";constructor(t,n){super(t,"string","PgText"),this.config.enumValues=n.enum}build(t){return new hF(t,this.config)}},hF=class extends J{static[_]="PgText";enumValues=this.config.enumValues;getSQLType(){return"text"}};function Mr(e,t={}){let{name:n,config:o}=Ne(e,t);return new bF(n,o)}var BF=class extends ki{constructor(t,n,o){super(t,"string","PgTime"),this.withTimezone=n,this.precision=o,this.config.withTimezone=n,this.config.precision=o}static[_]="PgTimeBuilder";build(t){return new yF(t,this.config)}},yF=class extends J{static[_]="PgTime";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`time${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}};function w7(e,t={}){let{name:n,config:o}=Ne(e,t);return new BF(n,o.withTimezone??!1,o.precision)}var CF=class extends ki{static[_]="PgTimestampBuilder";constructor(t,n,o){super(t,"date","PgTimestamp"),this.config.withTimezone=n,this.config.precision=o}build(t){return new wF(t,this.config)}},wF=class extends J{static[_]="PgTimestamp";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":` (${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue(t){return typeof t=="string"?new Date(this.withTimezone?t:t+"+0000"):t}mapToDriverValue=t=>t.toISOString()},EF=class extends ki{static[_]="PgTimestampStringBuilder";constructor(t,n,o){super(t,"string","PgTimestampString"),this.config.withTimezone=n,this.config.precision=o}build(t){return new kF(t,this.config)}},kF=class extends J{static[_]="PgTimestampString";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue(t){if(typeof t=="string")return t;let n=t.toISOString().slice(0,-1).replace("T"," ");if(this.withTimezone){let o=t.getTimezoneOffset(),a=o<=0?"+":"-";return`${n}${a}${Math.floor(Math.abs(o)/60).toString().padStart(2,"0")}`}return n}};function Hy(e,t={}){let{name:n,config:o}=Ne(e,t);return o?.mode==="string"?new EF(n,o.withTimezone??!1,o.precision):new CF(n,o?.withTimezone??!1,o?.precision)}var QF=class extends te{static[_]="PgUUIDBuilder";constructor(t){super(t,"string","PgUUID")}defaultRandom(){return this.default(vl`gen_random_uuid()`)}build(t){return new IF(t,this.config)}},IF=class extends J{static[_]="PgUUID";getSQLType(){return"uuid"}};function E7(e){return new QF(e??"")}var vF=class extends te{static[_]="PgVarcharBuilder";constructor(t,n){super(t,"string","PgVarchar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new _F(t,this.config)}},_F=class extends J{static[_]="PgVarchar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"varchar":`varchar(${this.length})`}};function k7(e,t={}){let{name:n,config:o}=Ne(e,t);return new vF(n,o)}var xF=class extends te{static[_]="PgBinaryVectorBuilder";constructor(t,n){super(t,"string","PgBinaryVector"),this.config.dimensions=n.dimensions}build(t){return new DF(t,this.config)}},DF=class extends J{static[_]="PgBinaryVector";dimensions=this.config.dimensions;getSQLType(){return`bit(${this.dimensions})`}};function Q7(e,t){let{name:n,config:o}=Ne(e,t);return new xF(n,o)}var FF=class extends te{static[_]="PgHalfVectorBuilder";constructor(t,n){super(t,"array","PgHalfVector"),this.config.dimensions=n.dimensions}build(t){return new SF(t,this.config)}},SF=class extends J{static[_]="PgHalfVector";dimensions=this.config.dimensions;getSQLType(){return`halfvec(${this.dimensions})`}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){return t.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}};function I7(e,t){let{name:n,config:o}=Ne(e,t);return new FF(n,o)}var LF=class extends te{static[_]="PgSparseVectorBuilder";constructor(t,n){super(t,"string","PgSparseVector"),this.config.dimensions=n.dimensions}build(t){return new RF(t,this.config)}},RF=class extends J{static[_]="PgSparseVector";dimensions=this.config.dimensions;getSQLType(){return`sparsevec(${this.dimensions})`}};function v7(e,t){let{name:n,config:o}=Ne(e,t);return new LF(n,o)}var NF=class extends te{static[_]="PgVectorBuilder";constructor(t,n){super(t,"array","PgVector"),this.config.dimensions=n.dimensions}build(t){return new MF(t,this.config)}},MF=class extends J{static[_]="PgVector";dimensions=this.config.dimensions;getSQLType(){return`vector(${this.dimensions})`}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){return t.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}};function _7(e,t){let{name:n,config:o}=Ne(e,t);return new NF(n,o)}function x7(){return{bigint:Xj,bigserial:e7,boolean:t7,char:n7,cidr:a7,customType:o7,date:r7,doublePrecision:i7,inet:A7,integer:s7,interval:c7,json:u7,jsonb:Gy,line:d7,macaddr:l7,macaddr8:p7,numeric:g7,point:m7,geometry:b7,real:h7,serial:B7,smallint:y7,smallserial:C7,text:Mr,time:w7,timestamp:Hy,uuid:E7,varchar:k7,bit:Q7,halfvec:I7,sparsevec:v7,vector:_7}}var $F=Symbol.for("drizzle:PgInlineForeignKeys"),D7=Symbol.for("drizzle:EnableRLS"),pm=class extends ln{static[_]="PgTable";static Symbol=Object.assign({},ln.Symbol,{InlineForeignKeys:$F,EnableRLS:D7});[$F]=[];[D7]=!1;[ln.Symbol.ExtraConfigBuilder]=void 0;[ln.Symbol.ExtraConfigColumns]={}};function yre(e,t,n,o,a=e){let r=new pm(e,o,a),i=typeof t=="function"?t(x7()):t,A=Object.fromEntries(Object.entries(i).map(([d,l])=>{let g=l;g.setName(d);let p=g.build(r);return r[$F].push(...g.buildForeignKeys(p,r)),[d,p]})),s=Object.fromEntries(Object.entries(i).map(([d,l])=>{let g=l;g.setName(d);let p=g.buildExtraConfigColumn(r);return[d,p]})),c=Object.assign(r,A);return c[ln.Symbol.Columns]=A,c[ln.Symbol.ExtraConfigColumns]=s,n&&(c[pm.Symbol.ExtraConfigBuilder]=n),Object.assign(c,{enableRLS:()=>(c[pm.Symbol.EnableRLS]=!0,c)})}var F7=(e,t,n)=>yre(e,t,n,void 0);var Ty=class{constructor(t,n){this.unique=t,this.name=n}static[_]="PgIndexBuilderOn";on(...t){return new gm(t.map(n=>{if(vn(n,pn))return n;n=n;let o=new kl(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=JSON.parse(JSON.stringify(n.defaultConfig)),o}),this.unique,!1,this.name)}onOnly(...t){return new gm(t.map(n=>{if(vn(n,pn))return n;n=n;let o=new kl(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=n.defaultConfig,o}),this.unique,!0,this.name)}using(t,...n){return new gm(n.map(o=>{if(vn(o,pn))return o;o=o;let a=new kl(o.name,!!o.keyAsName,o.columnType,o.indexConfig);return o.indexConfig=JSON.parse(JSON.stringify(o.defaultConfig)),a}),this.unique,!0,this.name,t)}},gm=class{static[_]="PgIndexBuilder";config;constructor(t,n,o,a,r="btree"){this.config={name:a,columns:t,unique:n,only:o,method:r}}concurrently(){return this.config.concurrently=!0,this}with(t){return this.config.with=t,this}where(t){return this.config.where=t,this}build(t){return new jF(this.config,t)}},jF=class{static[_]="PgIndex";config;constructor(t,n){this.config={...t,table:n}}};function S7(e){return new Ty(!1,e)}function L7(e){return new Ty(!0,e)}var R7=e=>Hy(e,{withTimezone:!0}),N7=u.enum(["channel","dm","group","local_conversation","thread","web_session"]),QFe=F7("junior_destinations",{id:Mr("id").primaryKey(),provider:Mr("provider").notNull(),providerTenantId:Mr("provider_tenant_id").notNull().default(""),providerDestinationId:Mr("provider_destination_id").notNull(),kind:Mr("kind").$type().notNull(),parentDestinationId:Mr("parent_destination_id"),displayName:Mr("display_name"),visibility:Mr("visibility").$type().notNull().default("unknown"),metadata:Gy("metadata_json"),createdAt:R7("created_at").notNull(),updatedAt:R7("updated_at").notNull()},e=>[L7("junior_destinations_provider_destination_uidx").on(e.provider,e.providerTenantId,e.providerDestinationId),S7("junior_destinations_provider_kind_idx").on(e.provider,e.kind)]);function Cre(e){try{let t=new URL(e).protocol;return t==="http:"||t==="https:"}catch{return!1}}var wre=u.object({kind:u.literal("resource_link"),key:u.string().trim().min(1).max(256),label:u.string().trim().min(1).max(256),url:u.string().url().max(2048).refine(Cre,"URL must use HTTP or HTTPS."),description:u.string().trim().min(1).max(512).optional(),status:u.enum(["open","draft","closed","merged","warning"]).optional()}).strict(),j7=u.discriminatedUnion("kind",[wre]),Ere=u.enum(["circle-dot","circle-dashed","circle-x","git-merge","git-pull-request","triangle-alert"]),P7=u.object({icon:Ere.optional(),key:u.string().trim().min(1).max(256),label:u.string().trim().min(1).max(256)}).strict(),xFe=u.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_]*$/),kre=u.enum(["activity","brain","calendar","check","database","info","key","link","sparkles","warning"]),Qre=u.object({content:u.string().min(1).max(32*1024).optional(),description:u.string().trim().min(1).max(2e3).optional(),metadata:u.array(u.string().trim().min(1).max(120)).max(8).optional(),title:u.string().trim().min(1).max(4e3)}).strict(),G7=u.object({details:u.array(Qre).max(100).optional(),icon:kre.optional(),preview:u.string().trim().min(1).max(500).optional(),title:u.string().trim().min(1).max(120)}).strict();var H7=u.string().regex(/^T[A-Z0-9]+$/),Ire=u.string().regex(/^(C|G|D)[A-Z0-9]+$/),T7=u.string().regex(/^local:[a-z0-9_-]+:[a-z0-9][a-z0-9_-]*$/),vre=u.string().min(1).refine(e=>e===e.trim()&&e.toLowerCase()!=="unknown"),Uy=vre,de=u.string().refine(e=>e.trim().length>0),_A=de.refine(e=>e===e.trim()),FFe=u.enum(["slack","local"]),U7=u.enum(["public","private"]),_re=u.enum(["public","private"]),O7=u.object({platform:u.literal("slack"),teamId:H7,channelId:Ire}).strict(),q7=O7,xre=u.object({platform:u.literal("local"),conversationId:T7}).strict(),Dre=u.discriminatedUnion("platform",[q7,xre]),Fre=O7.extend({visibility:U7,messageTs:de.optional(),threadTs:de.optional()}).strict(),Sre=u.object({platform:u.literal("local"),visibility:u.literal("private"),conversationId:T7}).strict(),Lre=u.object({platform:u.literal("web"),visibility:U7,conversationId:_A}).strict(),z7=u.discriminatedUnion("platform",[Fre,Sre,Lre]),Rre=u.discriminatedUnion("allowedWhen",[u.object({type:u.literal("user"),userId:Uy,allowedWhen:u.literal("private-direct-conversation")}).strict(),u.object({type:u.literal("user"),userId:Uy,allowedWhen:u.literal("scheduled-task"),taskId:_A}).strict()]),GF={email:de.optional(),fullName:de.optional(),userId:Uy,userName:de.optional()},Nre=u.object({...GF,platform:u.literal("slack"),teamId:H7}).strict(),Mre=u.object({...GF,platform:u.literal("local")}).strict(),$re=u.object({...GF,platform:u.literal("web")}).strict(),jre=u.object({platform:u.literal("system"),name:Uy}).strict(),PF=u.discriminatedUnion("platform",[Nre,Mre,$re,jre]),Pre=u.object({displayName:de.optional(),handle:de.optional(),id:_A,provider:_A,providerSubjectId:_A,providerTenantId:_A.optional()}).strict(),SFe=u.object({displayName:de.optional(),email:de.max(320),id:_A,identities:u.array(Pre).max(100)}).strict(),Gre=u.record(u.string(),u.string()).superRefine((e,t)=>{let n=Object.entries(e);if(n.length>20){t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata has too many keys"});return}for(let[o,a]of n){if(!o.trim()){t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata values must be strings",path:[o]});continue}o.length>128&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata key exceeds the maximum length",path:[o]}),/[\r\n]/.test(o)&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata keys must be single-line strings",path:[o]}),/[\r\n]/.test(a)&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata values must be single-line strings",path:[o]}),a.length>512&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata value exceeds the maximum length",path:[o]})}}),Hre=u.object({label:_A.pipe(u.string().max(48)).refine(e=>!/[\r\n]/.test(e)),detail:_A.pipe(u.string().max(128)).refine(e=>!/[\r\n]/.test(e)).optional()}).strict(),LFe=u.object({idempotencyKey:de.pipe(u.string().max(512)),credentialSubject:Rre.optional(),destination:q7,destinationVisibility:_re,input:de.pipe(u.string().max(32e3)),metadata:Gre.optional(),replyAttribution:Hre.optional(),source:z7}).strict();var Tre=u.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_-]*$/),NFe=u.object({text:u.string().trim().min(1).max(8e3)}).strict(),MFe=u.object({kind:Tre,version:u.number().int().positive(),content:u.record(u.string(),u.unknown())}).strict();var Ure=4e3,Ore=8e3,M7=32,$7=4e3,qre=1e3,zre=u.record(u.string(),u.unknown()).superRefine((e,t)=>{Object.keys(e).length>M7&&t.addIssue({code:"custom",message:`Resource event data may include at most ${M7} keys.`}),new TextEncoder().encode(JSON.stringify(e)).byteLength>$7&&t.addIssue({code:"custom",message:`Resource event data may be at most ${$7} JSON bytes.`})}),Kc=u.string().regex(/^[a-z][a-z0-9_-]*(?:\.[a-z][a-z0-9_-]*)+$/).describe("Canonical dotted event type, such as issue.closed or pull_request.review.changes_requested."),Y7=u.string().regex(/^[a-z][a-z0-9_]*$/).describe("Canonical plugin-defined resource type, such as issue or pull_request."),Yre=u.object({type:Y7,supportedEvents:u.array(Kc).min(1),suggestedEvents:u.array(Kc).optional(),guidance:u.record(Kc,u.string().trim().min(1).max(qre)).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.supportedEvents.forEach((a,r)=>{n.has(a)&&t.addIssue({code:"custom",message:`Duplicate supported resource event type "${a}".`,path:["supportedEvents",r]}),n.add(a)});for(let a of Object.keys(e.guidance??{}))n.has(a)||t.addIssue({code:"custom",message:`Guidance resource event type "${a}" is not supported.`,path:["guidance",a]});let o=new Set;e.suggestedEvents?.forEach((a,r)=>{o.has(a)&&t.addIssue({code:"custom",message:`Duplicate suggested resource event type "${a}".`,path:["suggestedEvents",r]}),n.has(a)||t.addIssue({code:"custom",message:`Suggested resource event type "${a}" is not supported.`,path:["suggestedEvents",r]}),o.add(a)})}),jFe=u.object({resourceTypes:u.array(Yre).min(1),isEnabled:u.function({input:[],output:u.boolean()}).optional(),normalizeIdentifier:u.function({input:[u.string()],output:u.string()}).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.resourceTypes.forEach((o,a)=>{n.has(o.type)&&t.addIssue({code:"custom",message:`Duplicate resource type "${o.type}".`,path:["resourceTypes",a,"type"]}),n.add(o.type)})});var PFe=u.object({identifier:u.string().min(1),label:u.string().min(1),namespace:u.string().min(1),suggestedEvents:u.array(Kc).optional(),supportedEvents:u.array(Kc),type:Y7}).strict(),GFe=u.object({events:u.array(Kc).min(1),id:u.string().min(1)}).strict(),Kre=u.object({eventKey:u.string().min(1),eventType:Kc,identifier:u.string().min(1),occurredAtMs:u.number().finite(),terminal:u.boolean().optional(),trustedSummary:u.string().min(1).transform(e=>e.slice(0,Ure)),data:zre.optional(),untrustedText:u.string().transform(e=>e.slice(0,Ore)).optional()}).strict(),HFe=Kre.extend({namespace:u.string().min(1)}),Jre=u.object({authority:u.enum(["instruction","context"]),actor:PF.optional()}).strict(),Wre=u.discriminatedUnion("type",[u.object({type:u.literal("message"),role:u.enum(["user","assistant"]),text:u.string().min(1),provenance:Jre.optional(),isRunActor:u.boolean().optional()}).strict(),u.object({type:u.literal("toolResult"),toolName:u.string().min(1),isError:u.boolean(),text:u.string().min(1).optional()}).strict()]),UFe=u.object({actorUserId:u.string().min(1).optional(),completedAtMs:u.number().finite(),conversationId:u.string().min(1),destination:Dre,locationId:u.string().min(1).optional(),actors:u.array(PF),actor:PF.optional(),runId:u.string().min(1),source:z7,transcript:u.array(Wre)}).strict();var qFe=u.discriminatedUnion("type",[u.object({type:u.literal("text"),text:u.string()}).strict(),u.object({type:u.literal("image"),data:u.string(),mimeType:u.string()}).strict()]),Zre=u.object({arguments:u.record(u.string(),u.unknown()),reason:u.string().min(1).optional()}).strict(),zFe=u.object({target:u.string().min(1).optional(),truncated:u.boolean().optional(),continuation:Zre.optional()}).passthrough(),YFe=u.enum(["auto","review","approve"]);var JFe=u.object({auth:u.object({user:u.object({email:u.string().nullable().optional(),emailVerified:u.boolean().optional(),name:u.string().nullable().optional()}).strict()}).strict(),pluginName:de}).strict(),Vre=u.string().regex(/^[a-z][a-z0-9-]*$/),Xre=u.string().regex(/^[a-z][a-z0-9.-]*$/),eie=u.union([u.literal("read"),u.literal("write")]),K7=u.object({provider:Vre,scope:de.optional(),type:u.literal("oauth")}).strict(),J7=u.object({displayName:de.optional(),handle:de.optional(),id:de,label:de.optional(),url:de.optional()}).strict(),ZFe=u.object({account:J7.optional(),accessToken:de,expiresAt:u.number().finite().optional(),refreshToken:de,refreshTokenExpiresAt:u.number().finite().optional(),scope:de.optional()}).strict(),VFe=u.object({access:eie,leaseScope:de.optional(),name:Xre,reason:de.optional(),requirements:u.array(de).min(1).optional()}).strict(),tie=u.object({domain:u.string().min(1),headers:u.record(u.string(),u.string()).refine(e=>Object.keys(e).length>0)}).strict(),nie=u.object({account:J7.optional(),authorization:K7.optional(),expiresAt:u.string().refine(e=>Number.isFinite(Date.parse(e))),headerTransforms:u.array(tie).min(1)}).strict(),XFe=u.discriminatedUnion("type",[u.object({lease:nie,type:u.literal("lease")}).strict(),u.object({authorization:K7.optional(),message:de,type:u.literal("needed")}).strict(),u.object({message:de,type:u.literal("unavailable")}).strict()]);var aie=de.max(64).regex(/^[a-z][a-z0-9-]*$/),oie=de.max(80),rie=de.max(500),iie=u.enum(["primary","profile"]),Aie=u.object({detail:de.max(500).optional(),label:de.max(80),tone:u.enum(["good","neutral","warning"]).optional(),value:de.max(120)}).strict(),sie=u.object({label:de.max(80),value:de.max(500)}).strict(),cie=u.object({confirmation:de.max(500).optional(),href:de.max(500).regex(/^\/api\/plugins\/[a-z][a-z0-9-]*(?:\/|$)/),label:de.max(80),method:u.literal("DELETE"),tone:u.enum(["danger","neutral"]).optional()}).strict(),uie=u.object({actions:u.array(cie).max(4).optional(),description:de.max(1e3).optional(),id:de.max(128),metadata:u.array(sie).max(8).optional(),title:de.max(4e3)}).strict(),t8e=u.object({emptyText:de.max(500).optional(),metrics:u.array(Aie).max(6).optional(),nextCursor:de.max(1e3).optional(),records:u.array(uie).max(100),searchPlaceholder:de.max(120).optional(),type:u.literal("list")}).strict(),die=u.object({description:rie,id:aie,label:oie,navigation:iie,pluginDisplayName:de.max(200),pluginName:de.max(100)}).strict(),n8e=u.array(die),lie=de.max(1e3).optional(),pie=de.max(64).optional(),gie=u.string().trim().max(200).optional(),a8e=u.object({cursor:lie,filter:pie,limit:u.number().int().min(1).max(50),query:gie}).strict();var Z7=u.object({active:u.number(),conversations:u.number(),date:u.string(),durationMs:u.number(),failed:u.number(),tokens:u.number().optional()}).strict();var mie=u.enum(["active","completed","failed"]),fie=u.enum(["api","internal","scheduler","slack"]),V7=Nj,bie=u.object({conversationId:u.string().min(1)}).strict(),u8e=u.object({attachmentId:u.string().min(1),conversationId:u.string().min(1)}).strict(),hie=u.object({limit:u.coerce.number().int().min(1).max(1e3).default(500)}).strict(),Bie=u.object({before:u.string().min(1),limit:u.coerce.number().int().min(1).max(1e3).default(500)}).strict(),yie=u.object({actorEmail:u.string().trim().email().transform(e=>e.toLowerCase()).optional(),status:u.enum(["active","archived"]).default("active")}).strict(),Cie=u.object({archived:u.boolean(),lastSeenAt:u.string().datetime()}).strict(),HF=u.object({archivedAt:u.string().datetime().nullable()}).strict(),wie=u.object({idempotencyKey:u.string().trim().min(1).max(200),message:u.string().trim().min(1).max(32e3),visibility:u.enum(["private","public"]).optional()}).strict(),Eie=u.object({idempotencyKey:u.string().trim().min(1).max(200),message:u.string().trim().min(1).max(32e3)}).strict(),Oy=u.object({conversationId:u.string().min(1),messageId:u.string().min(1),status:u.enum(["accepted","duplicate"])}).strict(),mm=u.object({email:u.string().optional(),fullName:u.string().optional(),slackUserId:u.string().optional(),slackUserName:u.string().optional()}).strict(),X7=u.enum(["defer","interrupt"]),eP=u.object({actorIdentity:mm.optional(),createdAt:u.string().datetime(),delivery:X7,inboundMessageId:u.string().min(1),messageId:u.string().min(1),receivedAt:u.string().datetime(),role:u.literal("user"),source:u.enum(["slack","web"]),text:u.string().optional(),redacted:u.literal(!0).optional()}).strict().superRefine((e,t)=>{e.text===void 0==(e.redacted!==!0)&&t.addIssue({code:"custom",message:"pending message content must be text or explicitly redacted"}),e.redacted&&e.actorIdentity&&t.addIssue({code:"custom",message:"redacted pending messages must not expose actor identity"})}),tP=u.object({authorizationUrl:u.string().url(),completionText:u.string().min(1),label:u.string().min(1)}).strict(),TF=u.object({authorization:tP.optional(),conversationId:u.string().min(1),generatedAt:u.string().datetime(),messages:u.array(eP)}).strict(),kie=u.object({inboundMessageIds:u.array(u.string().min(1)).min(1).optional(),receivedBefore:u.string().datetime().optional()}).strict(),UF=u.object({cancelledCount:u.number().int().nonnegative(),cancelledInboundMessageIds:u.array(u.string().min(1)),conversationId:u.string().min(1)}).strict(),nP=u.object({costUsd:u.number().finite().nonnegative(),operations:u.array(u.object({costUsd:u.number().finite().nonnegative(),events:u.number().int().positive(),name:u.string().min(1),namespace:u.string().min(1)}).strict()).min(1)}).strict(),Qie=u.object({id:u.string().min(1).optional(),kind:u.enum(["scheduled","event"]),label:u.string().min(1).optional(),title:u.string().min(1).optional()}).strict().superRefine((e,t)=>{!!e.id!=!!e.label&&t.addIssue({code:"custom",message:"sourceTask id and label must both be set or both omitted"})}),Iie=j7.and(u.object({plugin:u.string().min(1),createdAt:u.string().datetime(),updatedAt:u.string().datetime()})),fm=u.object({displayTitle:u.string(),cumulativeDurationMs:u.number(),cumulativeUsage:V7.optional(),auxiliaryCosts:nP.optional(),conversationId:u.string(),isParticipant:u.boolean(),visibility:u.enum(["private","public"]).optional(),status:mie,startedAt:u.string(),lastSeenAt:u.string(),lastProgressAt:u.string(),surface:fie,actorIdentity:mm.optional(),archivedAt:u.string().datetime().nullable().optional(),channel:u.string().optional(),channelName:u.string().optional(),channelNameRedacted:u.boolean().optional(),locationId:u.string().optional(),sentryTraceUrl:u.string().optional(),sourceUrl:u.string().url().optional(),traceId:u.string().optional(),annotations:u.array(Iie).optional(),sidebarAnnotations:u.array(P7).optional(),assignedWork:u.boolean().optional(),finishedWorkAt:u.string().datetime().optional(),isPriority:u.boolean().optional(),unfinishedWork:u.boolean().optional()}).strict(),vie=u.object({type:u.literal("message"),messageId:u.string().min(1),role:u.enum(["assistant","system","user"]),source:u.enum(["slack","web"]).optional(),actorIdentity:mm.optional(),eventType:u.string().min(1).optional(),explicitMention:u.boolean().optional(),text:u.string().optional(),redacted:u.literal(!0).optional()}).strict().superRefine((e,t)=>{e.text===void 0==(e.redacted!==!0)&&t.addIssue({code:"custom",message:"message content must be text or explicitly redacted"}),e.redacted&&e.actorIdentity&&t.addIssue({code:"custom",message:"redacted messages must not expose actor identity"})}),_ie=u.object({type:u.literal("message_handled"),messageId:u.string().min(1)}).strict(),xie=u.object({toolCallId:u.string().min(1),name:u.string().min(1),status:u.enum(["running","completed","error"]),startedAt:u.string().datetime().optional(),startedSeq:u.number().int().nonnegative().optional(),input:u.unknown().optional(),output:u.unknown().optional()}).strict().superRefine((e,t)=>{e.startedAt===void 0!=(e.startedSeq===void 0)&&t.addIssue({code:"custom",message:"tool start sequence and timestamp must be provided together"})}),aP=u.object({type:u.literal("reasoning"),text:u.string().min(1).optional(),redacted:u.literal(!0).optional()}).strict().superRefine((e,t)=>{e.text===void 0==(e.redacted!==!0)&&t.addIssue({code:"custom",message:"reasoning content must be text or explicitly redacted"})}),Die=u.object({type:u.literal("tool_call"),toolCallId:u.string().min(1)}).strict(),Fie=u.object({parts:u.array(u.discriminatedUnion("type",[aP,Die])).min(1)}).strict(),Sie=u.object({type:u.literal("tool_calls"),calls:u.array(xie).min(1),assistant:Fie.optional()}).strict().superRefine((e,t)=>{if(!e.assistant)return;let n=new Map;for(let a of e.calls)n.set(a.toolCallId,(n.get(a.toolCallId)??0)+1);let o=new Map;for(let a of e.assistant.parts)a.type==="tool_call"&&o.set(a.toolCallId,(o.get(a.toolCallId)??0)+1);(n.size!==o.size||[...n].some(([a,r])=>o.get(a)!==r))&&t.addIssue({code:"custom",path:["assistant","parts"],message:"assistant tool parts must reference every call exactly once"})}),Lie=u.object({type:u.literal("assistant_message"),parts:u.array(aP).min(1)}).strict(),Rie=u.discriminatedUnion("state",[u.object({type:u.literal("turn_lifecycle"),turnId:u.string().min(1),state:u.enum(["succeeded","no_reply"])}).strict(),u.object({type:u.literal("turn_lifecycle"),turnId:u.string().min(1),state:u.literal("started"),inputMessageIds:u.array(u.string().min(1)).min(1).optional()}).strict(),u.object({type:u.literal("turn_lifecycle"),turnId:u.string().min(1),state:u.literal("failed"),failureKind:u.enum(["agent","delivery"])}).strict()]),Nie=u.object({type:u.literal("turn_routed"),turnId:u.string().min(1),modelProfile:u.string().min(1),modelId:u.string().min(1),costUsd:u.number().finite().nonnegative().optional(),reasoningLevel:u.string().min(1),confidence:u.number().min(0).max(1).optional(),source:u.enum(["configured","inherited","router"])}).strict(),Mie=u.object({type:u.literal("guardian_action_reviewed"),turnId:u.string().min(1),toolCallId:u.string().min(1),toolName:u.string().min(1),decision:u.enum(["allow","ask","deny"]),riskLevel:u.enum(["low","medium","high","critical"]),userAuthorization:u.enum(["high","medium","low","unknown"])}).strict(),$ie=u.object({type:u.literal("turn_context"),turnId:u.string().min(1),pluginName:u.string().min(1),kind:u.string().min(1),version:u.number().int().positive(),content:u.record(u.string(),u.unknown())}).strict(),jie=u.object({type:u.literal("structured_event"),namespace:u.string().min(1),name:u.string().min(1),version:u.number().int().positive(),turnId:u.string().min(1).optional(),presentation:G7}).strict(),Pie=u.object({id:u.string().min(1),filename:u.string().min(1),contentType:u.string().min(1),bytes:u.number().int().nonnegative()}).strict(),Gie=u.object({type:u.literal("attachments_delivered"),attachments:u.array(Pie).min(1)}).strict(),Hie=u.object({type:u.literal("compaction"),modelProfile:u.string().min(1).optional(),modelId:u.string().min(1).optional(),summary:u.string().min(1).optional(),details:u.object({reason:u.literal("capacity"),estimatedInputTokens:u.number().int().nonnegative(),replacementInputTokens:u.number().int().nonnegative().optional(),triggerTokens:u.number().int().nonnegative(),inputLimitTokens:u.number().int().positive(),inputMessageCount:u.number().int().nonnegative(),retainedMessageCount:u.number().int().nonnegative(),summaryChars:u.number().int().nonnegative()}).strict().optional()}).strict(),Tie=u.object({type:u.literal("handoff"),modelProfile:u.string().min(1),modelId:u.string().min(1),reasoningLevel:u.string().min(1).optional(),triggeringToolCallId:u.string().min(1).optional(),summary:u.string().min(1).optional()}).strict(),Uie=u.object({type:u.literal("subagent"),startedSeq:u.number().int().nonnegative(),startedAt:u.string().datetime(),childConversationId:u.string().min(1),subagentKind:u.string().min(1),parentToolCallId:u.string().min(1).optional(),status:u.enum(["running","completed","error","aborted"])}).strict(),oP=u.discriminatedUnion("type",[vie,_ie,Lie,Sie,Rie,$ie,jie,Gie,Nie,Mie,Hie,Tie,Uie]),OF=u.object({seq:u.number().int().nonnegative(),createdAt:u.string().datetime(),data:oP}).strict(),qF=u.discriminatedUnion("status",[u.object({status:u.literal("available")}).strict(),u.object({status:u.literal("redacted"),reason:u.literal("non_public_conversation")}).strict(),u.object({status:u.literal("expired"),expiredAt:u.string().datetime()}).strict()]),Oie=u.object({modelId:u.string(),usage:V7}).strict();function rP(e,t){e.eventHistory.status==="expired"&&e.events.length>0&&t.addIssue({code:"custom",path:["events"],message:"expired event history must not contain events"});for(let n=1;n<e.events.length;n+=1)e.events[n].seq<=e.events[n-1].seq&&t.addIssue({code:"custom",path:["events",n,"seq"],message:"report event sequences must be strictly increasing"});for(let[n,o]of e.events.entries())o.data.type==="message"&&(e.eventHistory.status==="redacted"&&o.data.redacted!==!0&&t.addIssue({code:"custom",path:["events",n,"data"],message:"redacted event history must redact messages"}),e.eventHistory.status==="available"&&o.data.redacted===!0&&t.addIssue({code:"custom",path:["events",n,"data"],message:"available event history must expose messages"})),e.eventHistory.status==="redacted"&&o.data.type==="tool_calls"&&o.data.calls.some(a=>a.input!==void 0||a.output!==void 0)&&t.addIssue({code:"custom",path:["events",n,"data"],message:"redacted event history must redact tool payloads"}),e.eventHistory.status==="redacted"&&o.data.type==="assistant_message"&&o.data.parts.some(a=>a.text!==void 0)&&t.addIssue({code:"custom",path:["events",n,"data"],message:"redacted event history must redact assistant messages"}),e.eventHistory.status==="available"&&o.data.type==="assistant_message"&&o.data.parts.some(a=>a.redacted===!0)&&t.addIssue({code:"custom",path:["events",n,"data"],message:"available event history must expose reasoning"}),o.data.type==="tool_calls"&&(e.eventHistory.status==="redacted"&&o.data.assistant?.parts.some(a=>a.type==="reasoning"&&a.text!==void 0)||e.eventHistory.status==="available"&&o.data.assistant?.parts.some(a=>a.type==="reasoning"&&a.redacted===!0))&&t.addIssue({code:"custom",path:["events",n,"data","assistant"],message:"assistant reasoning must match event history visibility"})}var zF=fm.extend({modelUsage:u.array(Oie).optional(),events:u.array(OF),eventHistory:qF,previousCursor:u.string().min(1).optional(),generatedAt:u.string(),sentryConversationUrl:u.string().optional(),sourceTask:Qie.optional()}).strict().superRefine(rP),YF=u.object({events:u.array(OF),eventHistory:qF,previousCursor:u.string().min(1).optional(),generatedAt:u.string()}).strict().superRefine(rP),KF=u.object({conversations:u.array(fm),source:u.literal("conversation_index"),generatedAt:u.string()}).strict(),_l=u.object({active:u.number(),conversations:u.number(),durationMs:u.number(),failed:u.number(),label:u.string(),costUsd:u.number().optional(),tokens:u.number().optional()}).strict(),qie=u.object({cachedInputTokens:u.number().optional(),conversations:u.number(),costUsd:u.number().optional(),date:u.string(),durationMs:u.number(),inputTokens:u.number().optional(),tokens:u.number().optional()}).strict(),zie=u.object({allow:u.number(),ask:u.number(),costUsd:u.number().optional(),date:u.string(),deny:u.number(),requests:u.number()}).strict(),Yie=u.object({allow:u.number(),ask:u.number(),costUsd:u.number().optional(),deny:u.number(),metricDays:u.array(zie),requests:u.number()}).strict(),JF=u.object({active:u.number(),cachedInputTokens:u.number().optional(),conversations:u.number(),durationMs:u.number(),failed:u.number(),generatedAt:u.string(),guardian:Yie,metricDays:u.array(qie),locations:u.array(_l),actors:u.array(_l),source:u.literal("conversation_index"),costUsd:u.number().optional(),inputTokens:u.number().optional(),tokens:u.number().optional(),windowEnd:u.string(),windowStart:u.string()}).strict(),Kie=u.object({email:u.string().trim().min(1)}).strict(),W7=_l.omit({costUsd:!0}),Jie=u.object({active:u.number(),conversations:u.number(),costUsd:u.number().optional(),date:u.string(),durationMs:u.number(),failed:u.number(),tokens:u.number().optional()}).strict(),Wie=u.object({activePeople:u.number(),conversations:u.number(),date:u.string()}).strict(),iP=u.object({active:u.number(),activeDays:u.number(),conversations:u.number(),durationMs:u.number(),failed:u.number(),tokens:u.number().optional()}).strict(),AP=mm.extend({email:u.string().min(1)}).strict(),Zie=iP.extend({firstSeenAt:u.string(),lastSeenAt:u.string(),actor:AP}).strict(),WF=u.object({activityDays:u.array(Wie),generatedAt:u.string(),people:u.array(Zie),source:u.literal("conversation_index"),windowEnd:u.string(),windowStart:u.string()}).strict(),ZF=u.object({activityDays:u.array(Jie),generatedAt:u.string(),locations:u.array(W7),recentConversations:u.array(fm),actor:AP,source:u.literal("conversation_index"),surfaces:u.array(W7),totals:iP,windowEnd:u.string(),windowStart:u.string()}).strict(),VF=u.object({generatedAt:u.string(),sevenDaysUsd:u.number().finite().nonnegative(),source:u.literal("conversation_index"),thirtyDaysUsd:u.number().finite().nonnegative(),windowEnd:u.string(),windowStart:u.string()}).strict(),Vie=u.object({locationId:u.string().min(1)}).strict(),sP=_l.extend({id:u.string(),firstSeenAt:u.string(),kind:N7,lastSeenAt:u.string(),provider:u.string(),providerDestinationId:u.string(),visibility:u.literal("public")}).strict(),Xie=_l.extend({actor:mm}).strict(),cP=u.object({date:u.string(),privateConversations:u.number(),publicConversations:u.number()}).strict(),XF=u.object({activityDays:u.array(cP),generatedAt:u.string(),locations:u.array(sP),privateActivity:_l,source:u.literal("conversation_index"),windowEnd:u.string(),windowStart:u.string()}).strict(),e8=sP.extend({activityDays:u.array(Z7),actors:u.array(Xie),generatedAt:u.string(),recentConversations:u.array(fm),source:u.literal("conversation_index"),windowEnd:u.string(),windowStart:u.string()}).strict(),eAe=u.object({error:u.string().min(1)}).strict(),t8=u.object({id:u.string().uuid(),name:u.string(),tokenSuffix:u.string(),createdAt:u.string().datetime(),expiresAt:u.string().datetime(),lastUsedAt:u.string().datetime().nullable()}).strict(),n8=u.object({tokens:u.array(t8)}).strict(),tAe=u.object({name:u.string().trim().min(1).max(80)}).strict(),a8=t8.extend({token:u.string().startsWith("jr_pat_")}).strict(),nAe=u.object({id:u.string().uuid()}).strict(),aAe=u.object({revoked:u.literal(!0)}).strict(),oAe=u.object({provider:u.string(),repo:u.string()}).strict(),uP=u.object({provider:u.string(),repo:u.string(),checkoutPath:u.string()}).strict(),rAe=u.object({id:u.string(),generatedAt:u.iso.datetime(),buildDurationMs:u.number().int().nonnegative(),sizeBytes:u.number().int().nonnegative().nullable()}).strict(),dP=u.object({id:u.string(),generatedAt:u.iso.datetime(),buildDurationMs:u.number().int().nonnegative(),dependencyCount:u.number().int().nonnegative()}).strict(),xl=u.object({id:u.string().uuid(),name:u.string(),setupScript:u.string(),repos:u.array(uP),snapshot:rAe.nullable()}).strict(),o8=u.object({baselineSnapshot:dP.nullable(),workspaces:u.array(xl)}).strict(),iAe=u.object({name:u.string(),setupScript:u.string().optional(),repos:u.array(oAe)}).strict(),AAe=u.object({id:u.string().uuid()}).strict(),sAe=u.object({deleted:u.literal(!0)}).strict(),cAe=u.object({channelId:u.string().min(1),label:u.string().min(1),teamId:u.string().min(1),visibility:u.enum(["private","public"])}).strict(),lP=u.object({createdAt:u.string().datetime(),createdBy:u.string().min(1),createdByEmail:u.string().trim().email().optional(),destination:cAe,id:u.string().min(1),instruction:u.string().min(1),lastConversationId:u.string().min(1).optional(),lastRunAt:u.string().datetime().optional(),ownedByViewer:u.boolean(),runsLast7Days:u.number().int().nonnegative(),title:u.string().min(1),totalRuns:u.number().int().nonnegative()}),pP=lP.extend({kind:u.literal("scheduled"),nextRunAt:u.string().datetime().optional(),schedule:u.string().min(1),status:u.enum(["active","blocked","completed"])}).strict(),gP=lP.extend({events:u.array(u.string().min(1)).min(1),kind:u.literal("event"),resource:u.string().min(1),source:u.string().min(1),triggerAvailable:u.boolean()}).strict(),r8=u.discriminatedUnion("kind",[pP,gP]),uAe=u.object({date:u.string().min(1),event:u.number().int().nonnegative(),scheduled:u.number().int().nonnegative()}).strict(),i8=u.object({executionDays:u.array(uAe),tasks:u.array(r8),truncated:u.boolean()}).strict(),dAe=u.object({id:u.string().min(1),kind:u.enum(["scheduled","event"])}).strict(),mP=u.enum(["blocked","completed","failed"]),A8=u.object({conversationId:u.string().min(1).optional(),executedAt:u.string().datetime(),executionId:u.string().min(1),status:mP,title:u.string().min(1).optional()}).strict(),fP=u.object({blocked:u.number().int().nonnegative(),completed:u.number().int().nonnegative(),date:u.string().min(1),failed:u.number().int().nonnegative()}).strict(),s8=u.object({executionDays:u.array(fP),executions:u.array(A8),task:r8,truncated:u.boolean()}).strict(),bP=A8.extend({kind:u.enum(["scheduled","event"]),taskId:u.string().min(1),taskTitle:u.string().min(1)}).strict(),c8=u.object({runs:u.array(bP),truncated:u.boolean()}).strict(),hP=u.object({count:u.number().int().nonnegative(),date:u.string(),metric:u.string().min(1),name:u.string().min(1),namespace:u.string().min(1)}).strict(),u8=u.object({generatedAt:u.string().datetime(),stats:u.array(hP),windowEnd:u.string(),windowStart:u.string()}).strict();var lAe=u.object({status:u.literal("ok"),service:u.string(),timestamp:u.string()}).strict(),BP=u.object({configKeys:u.array(u.string()),description:u.string(),displayName:u.string(),name:u.string()}).strict(),d8=u.array(BP),l8=u.object({name:u.string(),pluginProvider:u.string().optional()}).strict(),p8=u.array(l8),yP=u.object({dir:u.string(),hasMigrationsDir:u.boolean(),hasSkillsDir:u.boolean(),packageName:u.string()}).strict(),CP=u.object({packageNames:u.array(u.string()),packages:u.array(yP),manifestRoots:u.array(u.string()),skillRoots:u.array(u.string()),tracingIncludes:u.array(u.string())}).strict(),pAe=u.object({cwd:u.string(),homeDir:u.string(),descriptionText:u.string().optional(),providers:u.array(u.string()),skills:u.array(l8),packagedContent:CP}).strict(),g8=u.enum(["danger","good","neutral","warning"]),gAe=u.object({label:u.string(),tone:g8.optional(),value:u.string()}).strict(),mAe=u.object({key:u.string(),label:u.string()}).strict(),fAe=u.object({id:u.string(),tone:g8.optional(),values:u.record(u.string(),u.string())}).strict(),bAe=u.object({fields:u.array(mAe).optional(),emptyText:u.string().optional(),records:u.array(fAe).optional(),title:u.string()}).strict(),hAe=u.object({categories:u.array(u.object({id:u.string().min(1),label:u.string().min(1),values:u.record(u.string(),u.number().finite())}).strict()).max(100),description:u.string().optional(),emptyText:u.string().optional(),id:u.string().min(1),series:u.array(u.object({format:u.literal("usd").optional(),key:u.string().min(1),label:u.string().min(1),tone:g8.optional()}).strict()).min(1).max(8),timeRangeDays:u.array(u.union([u.literal(7),u.literal(30),u.literal(90)])).min(1).max(3).optional(),title:u.string().min(1),type:u.literal("bar_chart")}).strict(),wP=u.object({generatedAt:u.string().optional(),metrics:u.array(gAe).optional(),recordSets:u.array(bAe).optional(),title:u.string().optional(),pluginName:u.string(),widgets:u.array(hAe).max(12).optional()}).strict(),qy=u.object({generatedAt:u.string(),reports:u.array(wP),source:u.literal("plugins")}).strict();function BAe(e){try{let t=new URL(e).protocol;return t==="http:"||t==="https:"}catch{return!1}}var yAe=u.object({kind:u.literal("resource_link"),key:u.string().trim().min(1).max(256),label:u.string().trim().min(1).max(256),url:u.string().url().max(2048).refine(BAe,"URL must use HTTP or HTTPS."),description:u.string().trim().min(1).max(512).optional(),status:u.enum(["open","draft","closed","merged","warning"]).optional()}).strict(),v8e=u.discriminatedUnion("kind",[yAe]),CAe=u.enum(["circle-dot","circle-dashed","circle-x","git-merge","git-pull-request","triangle-alert"]),_8e=u.object({icon:CAe.optional(),key:u.string().trim().min(1).max(256),label:u.string().trim().min(1).max(256)}).strict(),D8e=u.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_]*$/),wAe=u.enum(["activity","brain","calendar","check","database","info","key","link","sparkles","warning"]),EAe=u.object({content:u.string().min(1).max(32*1024).optional(),description:u.string().trim().min(1).max(2e3).optional(),metadata:u.array(u.string().trim().min(1).max(120)).max(8).optional(),title:u.string().trim().min(1).max(4e3)}).strict(),F8e=u.object({details:u.array(EAe).max(100).optional(),icon:wAe.optional(),preview:u.string().trim().min(1).max(500).optional(),title:u.string().trim().min(1).max(120)}).strict();var QP=u.string().regex(/^T[A-Z0-9]+$/),kAe=u.string().regex(/^(C|G|D)[A-Z0-9]+$/),IP=u.string().regex(/^local:[a-z0-9_-]+:[a-z0-9][a-z0-9_-]*$/),QAe=u.string().min(1).refine(e=>e===e.trim()&&e.toLowerCase()!=="unknown"),zy=QAe,le=u.string().refine(e=>e.trim().length>0),xA=le.refine(e=>e===e.trim()),L8e=u.enum(["slack","local"]),vP=u.enum(["public","private"]),IAe=u.enum(["public","private"]),_P=u.object({platform:u.literal("slack"),teamId:QP,channelId:kAe}).strict(),xP=_P,vAe=u.object({platform:u.literal("local"),conversationId:IP}).strict(),_Ae=u.discriminatedUnion("platform",[xP,vAe]),xAe=_P.extend({visibility:vP,messageTs:le.optional(),threadTs:le.optional()}).strict(),DAe=u.object({platform:u.literal("local"),visibility:u.literal("private"),conversationId:IP}).strict(),FAe=u.object({platform:u.literal("web"),visibility:vP,conversationId:xA}).strict(),DP=u.discriminatedUnion("platform",[xAe,DAe,FAe]),SAe=u.discriminatedUnion("allowedWhen",[u.object({type:u.literal("user"),userId:zy,allowedWhen:u.literal("private-direct-conversation")}).strict(),u.object({type:u.literal("user"),userId:zy,allowedWhen:u.literal("scheduled-task"),taskId:xA}).strict()]),f8={email:le.optional(),fullName:le.optional(),userId:zy,userName:le.optional()},LAe=u.object({...f8,platform:u.literal("slack"),teamId:QP}).strict(),RAe=u.object({...f8,platform:u.literal("local")}).strict(),NAe=u.object({...f8,platform:u.literal("web")}).strict(),MAe=u.object({platform:u.literal("system"),name:zy}).strict(),m8=u.discriminatedUnion("platform",[LAe,RAe,NAe,MAe]),$Ae=u.object({displayName:le.optional(),handle:le.optional(),id:xA,provider:xA,providerSubjectId:xA,providerTenantId:xA.optional()}).strict(),R8e=u.object({displayName:le.optional(),email:le.max(320),id:xA,identities:u.array($Ae).max(100)}).strict(),jAe=u.record(u.string(),u.string()).superRefine((e,t)=>{let n=Object.entries(e);if(n.length>20){t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata has too many keys"});return}for(let[o,a]of n){if(!o.trim()){t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata values must be strings",path:[o]});continue}o.length>128&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata key exceeds the maximum length",path:[o]}),/[\r\n]/.test(o)&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata keys must be single-line strings",path:[o]}),/[\r\n]/.test(a)&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata values must be single-line strings",path:[o]}),a.length>512&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata value exceeds the maximum length",path:[o]})}}),PAe=u.object({label:xA.pipe(u.string().max(48)).refine(e=>!/[\r\n]/.test(e)),detail:xA.pipe(u.string().max(128)).refine(e=>!/[\r\n]/.test(e)).optional()}).strict(),N8e=u.object({idempotencyKey:le.pipe(u.string().max(512)),credentialSubject:SAe.optional(),destination:xP,destinationVisibility:IAe,input:le.pipe(u.string().max(32e3)),metadata:jAe.optional(),replyAttribution:PAe.optional(),source:DP}).strict();var GAe=u.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_-]*$/),$8e=u.object({text:u.string().trim().min(1).max(8e3)}).strict(),j8e=u.object({kind:GAe,version:u.number().int().positive(),content:u.record(u.string(),u.unknown())}).strict();var HAe=4e3,TAe=8e3,EP=32,kP=4e3,UAe=1e3,OAe=u.record(u.string(),u.unknown()).superRefine((e,t)=>{Object.keys(e).length>EP&&t.addIssue({code:"custom",message:`Resource event data may include at most ${EP} keys.`}),new TextEncoder().encode(JSON.stringify(e)).byteLength>kP&&t.addIssue({code:"custom",message:`Resource event data may be at most ${kP} JSON bytes.`})}),Jc=u.string().regex(/^[a-z][a-z0-9_-]*(?:\.[a-z][a-z0-9_-]*)+$/).describe("Canonical dotted event type, such as issue.closed or pull_request.review.changes_requested."),FP=u.string().regex(/^[a-z][a-z0-9_]*$/).describe("Canonical plugin-defined resource type, such as issue or pull_request."),qAe=u.object({type:FP,supportedEvents:u.array(Jc).min(1),suggestedEvents:u.array(Jc).optional(),guidance:u.record(Jc,u.string().trim().min(1).max(UAe)).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.supportedEvents.forEach((a,r)=>{n.has(a)&&t.addIssue({code:"custom",message:`Duplicate supported resource event type "${a}".`,path:["supportedEvents",r]}),n.add(a)});for(let a of Object.keys(e.guidance??{}))n.has(a)||t.addIssue({code:"custom",message:`Guidance resource event type "${a}" is not supported.`,path:["guidance",a]});let o=new Set;e.suggestedEvents?.forEach((a,r)=>{o.has(a)&&t.addIssue({code:"custom",message:`Duplicate suggested resource event type "${a}".`,path:["suggestedEvents",r]}),n.has(a)||t.addIssue({code:"custom",message:`Suggested resource event type "${a}" is not supported.`,path:["suggestedEvents",r]}),o.add(a)})}),G8e=u.object({resourceTypes:u.array(qAe).min(1),isEnabled:u.function({input:[],output:u.boolean()}).optional(),normalizeIdentifier:u.function({input:[u.string()],output:u.string()}).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.resourceTypes.forEach((o,a)=>{n.has(o.type)&&t.addIssue({code:"custom",message:`Duplicate resource type "${o.type}".`,path:["resourceTypes",a,"type"]}),n.add(o.type)})});var H8e=u.object({identifier:u.string().min(1),label:u.string().min(1),namespace:u.string().min(1),suggestedEvents:u.array(Jc).optional(),supportedEvents:u.array(Jc),type:FP}).strict(),T8e=u.object({events:u.array(Jc).min(1),id:u.string().min(1)}).strict(),zAe=u.object({eventKey:u.string().min(1),eventType:Jc,identifier:u.string().min(1),occurredAtMs:u.number().finite(),terminal:u.boolean().optional(),trustedSummary:u.string().min(1).transform(e=>e.slice(0,HAe)),data:OAe.optional(),untrustedText:u.string().transform(e=>e.slice(0,TAe)).optional()}).strict(),U8e=zAe.extend({namespace:u.string().min(1)}),YAe=u.object({authority:u.enum(["instruction","context"]),actor:m8.optional()}).strict(),KAe=u.discriminatedUnion("type",[u.object({type:u.literal("message"),role:u.enum(["user","assistant"]),text:u.string().min(1),provenance:YAe.optional(),isRunActor:u.boolean().optional()}).strict(),u.object({type:u.literal("toolResult"),toolName:u.string().min(1),isError:u.boolean(),text:u.string().min(1).optional()}).strict()]),q8e=u.object({actorUserId:u.string().min(1).optional(),completedAtMs:u.number().finite(),conversationId:u.string().min(1),destination:_Ae,locationId:u.string().min(1).optional(),actors:u.array(m8),actor:m8.optional(),runId:u.string().min(1),source:DP,transcript:u.array(KAe)}).strict();var Y8e=u.discriminatedUnion("type",[u.object({type:u.literal("text"),text:u.string()}).strict(),u.object({type:u.literal("image"),data:u.string(),mimeType:u.string()}).strict()]),JAe=u.object({arguments:u.record(u.string(),u.unknown()),reason:u.string().min(1).optional()}).strict(),K8e=u.object({target:u.string().min(1).optional(),truncated:u.boolean().optional(),continuation:JAe.optional()}).passthrough(),J8e=u.enum(["auto","review","approve"]);var Z8e=u.object({auth:u.object({user:u.object({email:u.string().nullable().optional(),emailVerified:u.boolean().optional(),name:u.string().nullable().optional()}).strict()}).strict(),pluginName:le}).strict(),WAe=u.string().regex(/^[a-z][a-z0-9-]*$/),ZAe=u.string().regex(/^[a-z][a-z0-9.-]*$/),VAe=u.union([u.literal("read"),u.literal("write")]),SP=u.object({provider:WAe,scope:le.optional(),type:u.literal("oauth")}).strict(),LP=u.object({displayName:le.optional(),handle:le.optional(),id:le,label:le.optional(),url:le.optional()}).strict(),X8e=u.object({account:LP.optional(),accessToken:le,expiresAt:u.number().finite().optional(),refreshToken:le,refreshTokenExpiresAt:u.number().finite().optional(),scope:le.optional()}).strict(),e2e=u.object({access:VAe,leaseScope:le.optional(),name:ZAe,reason:le.optional(),requirements:u.array(le).min(1).optional()}).strict(),XAe=u.object({domain:u.string().min(1),headers:u.record(u.string(),u.string()).refine(e=>Object.keys(e).length>0)}).strict(),ese=u.object({account:LP.optional(),authorization:SP.optional(),expiresAt:u.string().refine(e=>Number.isFinite(Date.parse(e))),headerTransforms:u.array(XAe).min(1)}).strict(),t2e=u.discriminatedUnion("type",[u.object({lease:ese,type:u.literal("lease")}).strict(),u.object({authorization:SP.optional(),message:le,type:u.literal("needed")}).strict(),u.object({message:le,type:u.literal("unavailable")}).strict()]);var tse=le.max(64).regex(/^[a-z][a-z0-9-]*$/),nse=le.max(80),ase=le.max(500),ose=u.enum(["primary","profile"]),rse=u.object({detail:le.max(500).optional(),label:le.max(80),tone:u.enum(["good","neutral","warning"]).optional(),value:le.max(120)}).strict(),ise=u.object({label:le.max(80),value:le.max(500)}).strict(),Ase=u.object({confirmation:le.max(500).optional(),href:le.max(500).regex(/^\/api\/plugins\/[a-z][a-z0-9-]*(?:\/|$)/),label:le.max(80),method:u.literal("DELETE"),tone:u.enum(["danger","neutral"]).optional()}).strict(),sse=u.object({actions:u.array(Ase).max(4).optional(),description:le.max(1e3).optional(),id:le.max(128),metadata:u.array(ise).max(8).optional(),title:le.max(4e3)}).strict(),RP=u.object({emptyText:le.max(500).optional(),metrics:u.array(rse).max(6).optional(),nextCursor:le.max(1e3).optional(),records:u.array(sse).max(100),searchPlaceholder:le.max(120).optional(),type:u.literal("list")}).strict(),cse=u.object({description:ase,id:tse,label:nse,navigation:ose,pluginDisplayName:le.max(200),pluginName:le.max(100)}).strict(),NP=u.array(cse),use=le.max(1e3).optional(),dse=le.max(64).optional(),lse=u.string().trim().max(200).optional(),a2e=u.object({cursor:use,filter:dse,limit:u.number().int().min(1).max(50),query:lse}).strict();var Yy=u.object({user:u.object({email:u.string().trim().email(),emailVerified:u.boolean().optional(),name:u.string().nullable().optional()}).strict()}).strict(),i2e=u.object({displayName:u.string().trim().min(1).max(80)}).strict(),MP=u.object({allowedEmailCount:u.number(),allowedGoogleDomainCount:u.number(),authRequired:u.boolean(),authPath:u.string(),basePath:u.string(),componentGallery:u.boolean(),sentryConversationLinks:u.boolean(),timeZone:u.string(),version:u.string().min(1)}).strict();var DA=class extends Error{status;apiError;constructor(t,n,o){super(`${t} returned ${n}`),this.status=n,o?.trim()&&(this.apiError=o.trim())}};async function Wc(e,t){let n;try{let o=await t.json();typeof o.error=="string"&&(n=o.error)}catch{}throw new DA(e,t.status,n)}function Dl(){if(typeof window>"u")return;let e=window.__JUNIOR_DASHBOARD_BASE_PATH__??"/",t=e==="/"?"/auth/login":`${e}/auth/login`;if(window.location.pathname!==t){let n=`${window.location.pathname}${window.location.search||""}`,o=new URLSearchParams;n!=="/"&&o.set("next",n);let a=o.toString();window.location.assign(a?`${t}?${a}`:t)}}async function Ky(e,t,n){let o=await fetch(t,{body:JSON.stringify(n),credentials:"same-origin",headers:{"content-type":"application/json"},method:"PATCH"});return o.status===401&&Dl(),o.ok||await Wc(t,o),e.parse(await o.json())}async function Zc(e,t,n){let o=await fetch(t,{body:JSON.stringify(n),credentials:"same-origin",headers:{"content-type":"application/json"},method:"POST"});return o.status===401&&Dl(),o.ok||await Wc(t,o),e.parse(await o.json())}async function $P(e,t,n){let o=await fetch(t,{body:JSON.stringify(n),credentials:"same-origin",headers:{"content-type":"application/json"},method:"PUT"});return o.status===401&&Dl(),o.ok||await Wc(t,o),e.parse(await o.json())}async function Ms(e){let t=await fetch(e,{credentials:"same-origin",method:"DELETE"});t.status===401&&Dl(),t.ok||await Wc(e,t)}async function jP(e,t,n={}){let o=await fetch(t,{body:JSON.stringify(n),credentials:"same-origin",headers:{"content-type":"application/json"},method:"DELETE"});return o.status===401&&Dl(),o.ok||await Wc(t,o),e.parse(await o.json())}async function Ue(e,t,n){let o=await fetch(t,{credentials:"same-origin",...n?{signal:n}:void 0});return o.status===401&&(Dl(),await Wc(t,o)),o.ok||await Wc(t,o),e.parse(await o.json())}var Jy=5*6e4,b8=5*6e4,pse=1e3;function gse(e,t=Date.now()){if(!e)return b8;let n=Date.parse(e);if(!Number.isFinite(n))return b8;let o=Math.max(0,t-n);return Math.max(pse,b8-o)}function PP(){return Ge({queryKey:["dashboard","core"],queryFn:async({signal:e})=>{let[t,n]=await Promise.all([Ue(Yy,"/api/me",e),Ue(MP,"/api/config",e)]);return{config:n,me:t}},retry:!1,staleTime:Jy})}function mse(){return Ge({queryKey:["dashboard","plugins"],queryFn:({signal:e})=>Ue(d8,"/api/plugins",e),retry:!1,staleTime:Jy})}function GP(){return Ge({queryKey:["dashboard","plugin-user-pages"],queryFn:({signal:e})=>Ue(NP,"/api/user-pages",e),retry:!1,staleTime:Jy})}function Wy(e="active"){return Ge({queryKey:["dashboard","conversations","viewer",e],queryFn:({signal:t})=>Ue(KF,`/api/conversations${e==="archived"?"?status=archived":""}`,t),retry:!1})}function HP(e){return Ge({enabled:e,queryKey:["dashboard","tasks"],queryFn:({signal:t})=>Ue(i8,"/api/tasks",t),retry:!1})}function TP(e){return Ge({enabled:e,queryKey:["dashboard","tasks","runs"],queryFn:({signal:t})=>Ue(c8,"/api/tasks/runs",t),retry:!1})}function UP(e,t,n){return Ge({enabled:e&&!!(t&&n),queryKey:["dashboard","tasks",t,n,"executions"],queryFn:({signal:o})=>Ue(s8,`/api/tasks/${t}/${encodeURIComponent(n)}/executions`,o),retry:!1})}function OP(){return Ge({queryKey:["dashboard","people"],queryFn:({signal:e})=>Ue(WF,"/api/people",e),retry:!1})}function qP(e){return Ge({enabled:!!e,queryKey:["dashboard","people",e],queryFn:async({signal:t})=>Ue(ZF,`/api/people/${encodeURIComponent(e)}`,t),retry:!1})}function zP(e){return Ge({enabled:!!e,queryKey:["dashboard","people",e,"plugin-reports"],queryFn:({signal:t})=>Ue(qy,`/api/people/${encodeURIComponent(e)}/plugin-reports`,t),retry:!1})}function YP(e){return Ge({enabled:e,queryKey:["dashboard","personal-spend"],queryFn:({signal:t})=>Ue(VF,"/api/people/me/spend",t),refetchInterval:t=>gse(t.state.data?.generatedAt),retry:!1,staleTime:0})}function KP(){return Ge({queryKey:["dashboard","locations"],queryFn:({signal:e})=>Ue(XF,"/api/locations",e),retry:!1})}function JP(e){return Ge({enabled:!!e,queryKey:["dashboard","locations",e],queryFn:async({signal:t})=>Ue(e8,`/api/locations/${encodeURIComponent(e)}`,t),retry:!1})}function fse(){return Ge({queryKey:["dashboard","skills"],queryFn:({signal:e})=>Ue(p8,"/api/skills",e),retry:!1,staleTime:Jy})}function bse(){return Ge({queryKey:["dashboard","plugin-reports"],queryFn:({signal:e})=>Ue(qy,"/api/plugin-reports",e),retry:!1})}function WP(){return Ge({queryKey:["dashboard","stats"],queryFn:({signal:e})=>Ue(u8,"/api/stats",e),retry:!1})}function ZP(e){let t=mse(),n=Ge({queryKey:["dashboard","conversation-stats"],queryFn:({signal:i})=>Ue(JF,"/api/conversations/stats",i),retry:!1}),o=fse(),a=bse();return{data:t.data&&o.data?{...e,conversationStatsError:!!n.error,...n.data?{conversationStats:n.data}:void 0,conversationStatsLoading:n.isPending,pluginReportsError:!!a.error,...a.data?{pluginReports:a.data}:void 0,pluginReportsLoading:a.isPending,plugins:t.data,skills:o.data}:void 0,error:t.error??o.error,isPending:t.isPending||o.isPending}}var VP=C(K(),1);function Zy(){return(0,VP.useSyncExternalStore)(e=>di.subscribe(e),()=>di.isOnline(),()=>!0)}var eG=C(w(),1);function XP(){return Zy()?null:(0,eG.jsx)("div",{"aria-live":"polite",className:"border-t border-amber-300/15 bg-amber-300/[0.07] px-3 py-1.5 text-center font-sans text-xs text-amber-100/80",role:"status",children:"You\u2019re offline. Drafts stay on this device."})}var h8=C(w(),1);function Vy(){return(0,h8.jsx)("div",{className:"relative grid size-10 shrink-0 select-none place-items-center overflow-visible",children:(0,h8.jsx)("img",{alt:"",className:"relative size-11 max-w-none -translate-y-0.5 object-contain opacity-90 drop-shadow-[0_0_7px_rgba(255,255,255,0.16)]",draggable:!1,src:"/_junior/dashboard/avatar.png"})})}var tG=["relative","overflow-hidden","bg-white/15","before:absolute","before:inset-0","before:content-['']","before:bg-[linear-gradient(90deg,#ff4d6d,#ffb703,#56f39a,#4cc9f0,#9b5de5,#ff4d6d)]","before:bg-[length:200%_100%]","before:animate-[junior-rainbow-flow_1.2s_linear_infinite]","motion-reduce:before:animate-none"].join(" ");function k(...e){return e.filter(Boolean).join(" ")}var $n="mx-auto w-full min-w-0 max-w-screen-xl",Qi="text-dashboard-text-muted hover:text-dashboard-text",nG="rounded-2xl bg-dashboard-fill-soft shadow-[inset_0_0_0_1px_var(--color-dashboard-border-subtle)]",aG="dashboard-shell-bg";var $s=C(w(),1);function ce(e){return(0,$s.jsx)("div",{className:k($n,"grid min-h-[calc(100dvh-5rem)] place-items-center px-4 py-8 md:px-8"),children:(0,$s.jsxs)("section",{className:"grid w-full max-w-lg grid-cols-[auto_minmax(0,1fr)] items-center gap-3 rounded-lg border border-dashboard-border-emphasis bg-dashboard-surface-raised p-4",children:[(0,$s.jsx)(Vy,{}),(0,$s.jsxs)("div",{children:[(0,$s.jsx)("div",{className:"font-bold",children:e.label}),(0,$s.jsx)("div",{"aria-label":e.label,className:`${tG} mt-3 h-1.5 w-full`,role:"progressbar"})]})]})})}var tC=C(K(),1);var Xy=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim();var oG=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var rG=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase());var B8=e=>{let t=rG(e);return t.charAt(0).toUpperCase()+t.slice(1)};var bm=C(K(),1);var eC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var iG=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var Fl=C(K(),1);var hse=(0,Fl.createContext)({});var AG=()=>(0,Fl.useContext)(hse);var sG=(0,bm.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:o,className:a="",children:r,iconNode:i,...A},s)=>{let{size:c=24,strokeWidth:d=2,absoluteStrokeWidth:l=!1,color:g="currentColor",className:p=""}=AG()??{},m=o??l?Number(n??d)*24/Number(t??c):n??d;return(0,bm.createElement)("svg",{ref:s,...eC,width:t??c??eC.width,height:t??c??eC.height,stroke:e??g,strokeWidth:m,className:Xy("lucide",p,a),...!r&&!iG(A)&&{"aria-hidden":"true"},...A},[...i.map(([h,B])=>(0,bm.createElement)(h,B)),...Array.isArray(r)?r:[r]])});var F=(e,t)=>{let n=(0,tC.forwardRef)(({className:o,...a},r)=>(0,tC.createElement)(sG,{ref:r,iconNode:t,className:Xy(`lucide-${oG(B8(e))}`,`lucide-${e}`,o),...a}));return n.displayName=B8(e),n};var Bse=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],$r=F("activity",Bse);var yse=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],js=F("archive-restore",yse);var Cse=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],Vc=F("archive",Cse);var wse=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],hm=F("arrow-down-to-line",wse);var Ese=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Ii=F("arrow-left",Ese);var kse=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Bm=F("arrow-right",kse);var Qse=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],ym=F("bookmark",Qse);var Ise=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],vi=F("bot",Ise);var vse=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],No=F("boxes",vse);var _se=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],_i=F("braces",_se);var xse=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],FA=F("brain-circuit",xse);var Dse=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Xc=F("brain",Dse);var Fse=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],eu=F("calendar-clock",Fse);var Sse=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Cm=F("calendar",Sse);var Lse=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],SA=F("check",Lse);var Rse=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],wm=F("chevron-down",Rse);var Nse=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Em=F("chevron-left",Nse);var Mse=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],jn=F("chevron-right",Mse);var $se=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Ha=F("circle-alert",$se);var jse=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],km=F("circle-dashed",jse);var Pse=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]],Qm=F("circle-dollar-sign",Pse);var Gse=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],Im=F("circle-dot",Gse);var Hse=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Ps=F("circle-x",Hse);var Tse=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],Mo=F("clock-3",Tse);var Use=[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]],tu=F("coins",Use);var Ose=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],nu=F("copy",Ose);var qse=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Gs=F("database",qse);var zse=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],vm=F("diff",zse);var Yse=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],da=F("earth",Yse);var Kse=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Hs=F("ellipsis",Kse);var Jse=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],au=F("external-link",Jse);var Wse=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],_m=F("file-text",Wse);var Zse=[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]],Ts=F("fingerprint-pattern",Zse);var Vse=[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],xm=F("folder-git-2",Vse);var Xse=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Dm=F("gauge",Xse);var ece=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],Fm=F("git-merge",ece);var tce=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],Sm=F("git-pull-request",tce);var nce=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],Lm=F("hash",nce);var ace=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Us=F("info",ace);var oce=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],jr=F("key-round",oce);var rce=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Os=F("layers",rce);var ice=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],Rm=F("lightbulb",ice);var Ace=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],Nm=F("list-checks",Ace);var sce=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],Mm=F("link",sce);var cce=[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]],$m=F("list-filter",cce);var uce=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],LA=F("loader-circle",uce);var dce=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],la=F("lock-keyhole",dce);var lce=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],jm=F("log-out",lce);var pce=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],ou=F("map-pin",pce);var gce=[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]],Pm=F("map-pinned",gce);var mce=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],ru=F("menu",mce);var fce=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],Gm=F("message-square-text",fce);var bce=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Ta=F("message-square",bce);var hce=[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]],Sl=F("messages-square",hce);var Bce=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],Hm=F("minimize-2",Bce);var yce=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],Tm=F("paperclip",yce);var Cce=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],iu=F("plus",Cce);var wce=[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]],Um=F("radio-tower",wce);var Ece=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],Ll=F("scroll-text",Ece);var kce=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],qs=F("search",kce);var Qce=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Au=F("send",Qce);var Ice=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Om=F("settings",Ice);var vce=[["path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",key:"wuwx1p"}]],qm=F("sigma",vce);var _ce=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],zm=F("skip-forward",_ce);var xce=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Qa=F("sparkles",xce);var Dce=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],lo=F("square-pen",Dce);var Fce=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],su=F("timer",Fce);var Sce=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Vn=F("trash-2",Sce);var Lce=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],po=F("triangle-alert",Lce);var Rce=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],Ua=F("user-round",Rce);var Nce=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],cu=F("users",Nce);var Mce=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ia=F("x",Mce);var qi=C(K(),1);var y8=Object.defineProperty,$ce=Object.getOwnPropertyDescriptor,jce=Object.getOwnPropertyNames,Pce=Object.prototype.hasOwnProperty,uG=(e,t)=>{let n={};for(var o in e)y8(n,o,{get:e[o],enumerable:!0});return t||y8(n,Symbol.toStringTag,{value:"Module"}),n},cG=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=jce(t),r=0,i=a.length,A;r<i;r++)A=a[r],!Pce.call(e,A)&&A!==n&&y8(e,A,{get:(s=>t[s]).bind(null,A),enumerable:!(o=$ce(t,A))||o.enumerable});return e},dG=(e,t,n)=>(cG(e,t,"default"),n&&cG(n,t,"default"));var k8={};L(k8,{createOnigurumaEngine:()=>nue,getDefaultWasmLoader:()=>tue,loadWasm:()=>pG,setDefaultWasmLoader:()=>eue});var E8=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Gce(){return 2147483648}function Hce(){return typeof performance<"u"?performance.now():Date.now()}var Tce=(e,t)=>e+(t-e%t)%t;async function Uce(e){let t,n,o={};function a(p){n=p,o.HEAPU8=new Uint8Array(p),o.HEAPU32=new Uint32Array(p)}function r(p,m,h){o.HEAPU8.copyWithin(p,m,m+h)}function i(p){try{return t.grow(p-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function A(p){let m=o.HEAPU8.length;p=p>>>0;let h=Gce();if(p>h)return!1;for(let B=1;B<=4;B*=2){let f=m*(1+.2/B);f=Math.min(f,p+100663296);let b=Math.min(h,Tce(Math.max(p,f),65536));if(i(b))return!0}return!1}let s=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(p,m,h=1024){let B=m+h,f=m;for(;p[f]&&!(f>=B);)++f;if(f-m>16&&p.buffer&&s)return s.decode(p.subarray(m,f));let b="";for(;m<f;){let y=p[m++];if(!(y&128)){b+=String.fromCharCode(y);continue}let E=p[m++]&63;if((y&224)===192){b+=String.fromCharCode((y&31)<<6|E);continue}let Q=p[m++]&63;if((y&240)===224?y=(y&15)<<12|E<<6|Q:y=(y&7)<<18|E<<12|Q<<6|p[m++]&63,y<65536)b+=String.fromCharCode(y);else{let v=y-65536;b+=String.fromCharCode(55296|v>>10,56320|v&1023)}}return b}function d(p,m){return p?c(o.HEAPU8,p,m):""}let l={emscripten_get_now:Hce,emscripten_memcpy_big:r,emscripten_resize_heap:A,fd_write:()=>0};async function g(){let m=await e({env:l,wasi_snapshot_preview1:l});t=m.memory,a(t.buffer),Object.assign(o,m),o.UTF8ToString=d}return await g(),o}var Oce=Object.defineProperty,qce=(e,t,n)=>t in e?Oce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pn=(e,t,n)=>qce(e,typeof t!="symbol"?t+"":t,n),Xn=null;function zce(e){throw new E8(e.UTF8ToString(e.getLastOnigError()))}var aC=class e{constructor(t){Pn(this,"utf16Length"),Pn(this,"utf8Length"),Pn(this,"utf16Value"),Pn(this,"utf8Value"),Pn(this,"utf16OffsetToUtf8"),Pn(this,"utf8OffsetToUtf16");let n=t.length,o=e._utf8ByteLength(t),a=o!==n,r=a?new Uint32Array(n+1):null;a&&(r[n]=o);let i=a?new Uint32Array(o+1):null;a&&(i[o]=n);let A=new Uint8Array(o),s=0;for(let c=0;c<n;c++){let d=t.charCodeAt(c),l=d,g=!1;if(d>=55296&&d<=56319&&c+1<n){let p=t.charCodeAt(c+1);p>=56320&&p<=57343&&(l=(d-55296<<10)+65536|p-56320,g=!0)}a&&(r[c]=s,g&&(r[c+1]=s),l<=127?i[s+0]=c:l<=2047?(i[s+0]=c,i[s+1]=c):l<=65535?(i[s+0]=c,i[s+1]=c,i[s+2]=c):(i[s+0]=c,i[s+1]=c,i[s+2]=c,i[s+3]=c)),l<=127?A[s++]=l:l<=2047?(A[s++]=192|(l&1984)>>>6,A[s++]=128|(l&63)>>>0):l<=65535?(A[s++]=224|(l&61440)>>>12,A[s++]=128|(l&4032)>>>6,A[s++]=128|(l&63)>>>0):(A[s++]=240|(l&1835008)>>>18,A[s++]=128|(l&258048)>>>12,A[s++]=128|(l&4032)>>>6,A[s++]=128|(l&63)>>>0),g&&c++}this.utf16Length=n,this.utf8Length=o,this.utf16Value=t,this.utf8Value=A,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=i}static _utf8ByteLength(t){let n=0;for(let o=0,a=t.length;o<a;o++){let r=t.charCodeAt(o),i=r,A=!1;if(r>=55296&&r<=56319&&o+1<a){let s=t.charCodeAt(o+1);s>=56320&&s<=57343&&(i=(r-55296<<10)+65536|s-56320,A=!0)}i<=127?n+=1:i<=2047?n+=2:i<=65535?n+=3:n+=4,A&&o++}return n}createString(t){let n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}},oC=class xi{constructor(t){if(Pn(this,"id",++xi.LAST_ID),Pn(this,"_onigBinding"),Pn(this,"content"),Pn(this,"utf16Length"),Pn(this,"utf8Length"),Pn(this,"utf16OffsetToUtf8"),Pn(this,"utf8OffsetToUtf16"),Pn(this,"ptr"),!Xn)throw new E8("Must invoke loadWasm first.");this._onigBinding=Xn,this.content=t;let n=new aC(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!xi._sharedPtrInUse?(xi._sharedPtr||(xi._sharedPtr=Xn.omalloc(1e4)),xi._sharedPtrInUse=!0,Xn.HEAPU8.set(n.utf8Value,xi._sharedPtr),this.ptr=xi._sharedPtr):this.ptr=n.createString(Xn)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===xi._sharedPtr?xi._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Pn(oC,"LAST_ID",0);Pn(oC,"_sharedPtr",0);Pn(oC,"_sharedPtrInUse",!1);var lG=oC,w8=class{constructor(t){if(Pn(this,"_onigBinding"),Pn(this,"_ptr"),!Xn)throw new E8("Must invoke loadWasm first.");let n=[],o=[];for(let A=0,s=t.length;A<s;A++){let c=new aC(t[A]);n[A]=c.createString(Xn),o[A]=c.utf8Length}let a=Xn.omalloc(4*t.length);Xn.HEAPU32.set(n,a/4);let r=Xn.omalloc(4*t.length);Xn.HEAPU32.set(o,r/4);let i=Xn.createOnigScanner(a,r,t.length);for(let A=0,s=t.length;A<s;A++)Xn.ofree(n[A]);Xn.ofree(r),Xn.ofree(a),i===0&&zce(Xn),this._onigBinding=Xn,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,o){let a=0;if(typeof o=="number"&&(a=o),typeof t=="string"){t=new lG(t);let r=this._findNextMatchSync(t,n,!1,a);return t.dispose(),r}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,o,a){let r=this._onigBinding,i=r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(i===0)return null;let A=r.HEAPU32,s=i/4,c=A[s++],d=A[s++],l=[];for(let g=0;g<d;g++){let p=t.convertUtf8OffsetToUtf16(A[s++]),m=t.convertUtf8OffsetToUtf16(A[s++]);l[g]={start:p,end:m,length:m-p}}return{index:c,captureIndices:l}}};function Yce(e){return typeof e.instantiator=="function"}function Kce(e){return typeof e.default=="function"}function Jce(e){return typeof e.data<"u"}function Wce(e){return typeof Response<"u"&&e instanceof Response}function Zce(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}var nC;function pG(e){if(nC)return nC;async function t(){Xn=await Uce(async n=>{let o=e;return o=await o,typeof o=="function"&&(o=await o(n)),typeof o=="function"&&(o=await o(n)),Yce(o)?o=await o.instantiator(n):Kce(o)?o=await o.default(n):(Jce(o)&&(o=o.data),Wce(o)?typeof WebAssembly.instantiateStreaming=="function"?o=await Vce(o)(n):o=await Xce(o)(n):Zce(o)?o=await C8(o)(n):o instanceof WebAssembly.Module?o=await C8(o)(n):"default"in o&&o.default instanceof WebAssembly.Module&&(o=await C8(o.default)(n))),"instance"in o&&(o=o.instance),"exports"in o&&(o=o.exports),o})}return nC=t(),nC}function C8(e){return t=>WebAssembly.instantiate(e,t)}function Vce(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Xce(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var gG;function eue(e){gG=e}function tue(){return gG}async function nue(e){return e&&await pG(e),{createScanner(t){return new w8(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new lG(t)}}}var Q8=uG({});dG(Q8,k8);var $5=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>Promise.resolve().then(()=>(fG(),mG)))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>Promise.resolve().then(()=>(hG(),bG)))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(yG(),BG)))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>Promise.resolve().then(()=>(wG(),CG)))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>Promise.resolve().then(()=>(kG(),EG)))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xE9",type:"dark",import:(()=>Promise.resolve().then(()=>(IG(),QG)))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>Promise.resolve().then(()=>(_G(),vG)))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>Promise.resolve().then(()=>(DG(),xG)))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>Promise.resolve().then(()=>(SG(),FG)))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>Promise.resolve().then(()=>(RG(),LG)))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(MG(),NG)))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>Promise.resolve().then(()=>(jG(),$G)))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(GG(),PG)))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>Promise.resolve().then(()=>(TG(),HG)))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(OG(),UG)))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>Promise.resolve().then(()=>(zG(),qG)))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>Promise.resolve().then(()=>(KG(),YG)))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>Promise.resolve().then(()=>(WG(),JG)))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>Promise.resolve().then(()=>(VG(),ZG)))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>Promise.resolve().then(()=>(eH(),XG)))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>Promise.resolve().then(()=>(nH(),tH)))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>Promise.resolve().then(()=>(oH(),aH)))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>Promise.resolve().then(()=>(iH(),rH)))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>Promise.resolve().then(()=>(sH(),AH)))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>Promise.resolve().then(()=>(uH(),cH)))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>Promise.resolve().then(()=>(lH(),dH)))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>Promise.resolve().then(()=>(gH(),pH)))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>Promise.resolve().then(()=>(fH(),mH)))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>Promise.resolve().then(()=>(hH(),bH)))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>Promise.resolve().then(()=>(yH(),BH)))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>Promise.resolve().then(()=>(wH(),CH)))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>Promise.resolve().then(()=>(kH(),EH)))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>Promise.resolve().then(()=>(IH(),QH)))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>Promise.resolve().then(()=>(_H(),vH)))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>Promise.resolve().then(()=>(DH(),xH)))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(SH(),FH)))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>Promise.resolve().then(()=>(RH(),LH)))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>Promise.resolve().then(()=>(MH(),NH)))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>Promise.resolve().then(()=>(jH(),$H)))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>Promise.resolve().then(()=>(GH(),PH)))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(TH(),HH)))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>Promise.resolve().then(()=>(OH(),UH)))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>Promise.resolve().then(()=>(zH(),qH)))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>Promise.resolve().then(()=>(KH(),YH)))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>Promise.resolve().then(()=>(WH(),JH)))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>Promise.resolve().then(()=>(VH(),ZH)))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>Promise.resolve().then(()=>(e5(),XH)))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>Promise.resolve().then(()=>(n5(),t5)))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>Promise.resolve().then(()=>(o5(),a5)))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>Promise.resolve().then(()=>(i5(),r5)))},{id:"red",displayName:"Red",type:"dark",import:(()=>Promise.resolve().then(()=>(s5(),A5)))},{id:"rose-pine",displayName:"Ros\xE9 Pine",type:"dark",import:(()=>Promise.resolve().then(()=>(u5(),c5)))},{id:"rose-pine-dawn",displayName:"Ros\xE9 Pine Dawn",type:"light",import:(()=>Promise.resolve().then(()=>(l5(),d5)))},{id:"rose-pine-moon",displayName:"Ros\xE9 Pine Moon",type:"dark",import:(()=>Promise.resolve().then(()=>(g5(),p5)))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(f5(),m5)))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>Promise.resolve().then(()=>(h5(),b5)))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>Promise.resolve().then(()=>(y5(),B5)))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(w5(),C5)))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>Promise.resolve().then(()=>(k5(),E5)))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>Promise.resolve().then(()=>(I5(),Q5)))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>Promise.resolve().then(()=>(_5(),v5)))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>Promise.resolve().then(()=>(D5(),x5)))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>Promise.resolve().then(()=>(S5(),F5)))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(R5(),L5)))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>Promise.resolve().then(()=>(M5(),N5)))}],j5=Object.fromEntries($5.map(e=>[e.id,e.import]));var ct=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function gde(e){return N8(e)}function N8(e){return Array.isArray(e)?mde(e):e instanceof RegExp?e:typeof e=="object"?fde(e):e}function mde(e){let t=[];for(let n=0,o=e.length;n<o;n++)t[n]=N8(e[n]);return t}function fde(e){let t={};for(let n in e)t[n]=N8(e[n]);return t}function Y5(e,...t){return t.forEach(n=>{for(let o in n)e[o]=n[o]}),e}function K5(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?K5(e.substring(0,e.length-1)):e.substr(~t+1)}var I8=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,rC=class{static hasCaptures(e){return e===null?!1:(I8.lastIndex=0,I8.test(e))}static replaceCaptures(e,t,n){return e.replace(I8,(o,a,r,i)=>{let A=n[parseInt(a||r,10)];if(A){let s=t.substring(A.start,A.end);for(;s[0]===".";)s=s.substring(1);switch(i){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return o})}};function J5(e,t){return e<t?-1:e>t?1:0}function W5(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,o=t.length;if(n===o){for(let a=0;a<n;a++){let r=J5(e[a],t[a]);if(r!==0)return r}return 0}return n-o}function P5(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Z5(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var V5=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},Jm=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Bde(e),t)}static createFromParsedTheme(e,t){return Cde(e,t)}_cachedMatchRoot=new V5(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,o=this._cachedMatchRoot.get(t).find(a=>bde(e.parent,a.parentScopes));return o?new X5(o.fontStyle,o.foreground,o.background):null}},v8=class iC{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(let o of n)t=new iC(t,o);return t}static from(...t){let n=null;for(let o=0;o<t.length;o++)n=new iC(n,t[o]);return n}push(t){return new iC(this,t)}getSegments(){let t=this,n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){let n=[],o=this;for(;o&&o!==t;)n.push(o.scopeName),o=o.parent;return o===t?n.reverse():void 0}};function bde(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let o=t[n],a=!1;if(o===">"){if(n===t.length-1)return!1;o=t[++n],a=!0}for(;e&&!hde(e.scopeName,o);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function hde(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var X5=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Bde(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],o=0;for(let a=0,r=t.length;a<r;a++){let i=t[a];if(!i.settings)continue;let A;if(typeof i.scope=="string"){let l=i.scope;l=l.replace(/^[,]+/,""),l=l.replace(/[,]+$/,""),A=l.split(",")}else Array.isArray(i.scope)?A=i.scope:A=[""];let s=-1;if(typeof i.settings.fontStyle=="string"){s=0;let l=i.settings.fontStyle.split(" ");for(let g=0,p=l.length;g<p;g++)switch(l[g]){case"italic":s=s|1;break;case"bold":s=s|2;break;case"underline":s=s|4;break;case"strikethrough":s=s|8;break}}let c=null;typeof i.settings.foreground=="string"&&P5(i.settings.foreground)&&(c=i.settings.foreground);let d=null;typeof i.settings.background=="string"&&P5(i.settings.background)&&(d=i.settings.background);for(let l=0,g=A.length;l<g;l++){let m=A[l].trim().split(" "),h=m[m.length-1],B=null;m.length>1&&(B=m.slice(0,m.length-1),B.reverse()),n[o++]=new yde(h,B,a,s,c,d)}}return n}var yde=class{constructor(e,t,n,o,a,r){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=o,this.foreground=a,this.background=r}},pa=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(pa||{});function Cde(e,t){e.sort((s,c)=>{let d=J5(s.scope,c.scope);return d!==0||(d=W5(s.parentScopes,c.parentScopes),d!==0)?d:s.index-c.index});let n=0,o="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let s=e.shift();s.fontStyle!==-1&&(n=s.fontStyle),s.foreground!==null&&(o=s.foreground),s.background!==null&&(a=s.background)}let r=new wde(t),i=new X5(n,r.getId(o),r.getId(a)),A=new kde(new x8(0,null,-1,0,0),[]);for(let s=0,c=e.length;s<c;s++){let d=e[s];A.insert(0,d.scope,d.parentScopes,d.fontStyle,r.getId(d.foreground),r.getId(d.background))}return new Jm(r,i,A)}var wde=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Ede=Object.freeze([]),x8=class eT{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,o,a,r){this.scopeDepth=t,this.parentScopes=n||Ede,this.fontStyle=o,this.foreground=a,this.background=r}clone(){return new eT(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let o=0,a=t.length;o<a;o++)n[o]=t[o].clone();return n}acceptOverwrite(t,n,o,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),o!==0&&(this.foreground=o),a!==0&&(this.background=a)}},kde=class D8{constructor(t,n=[],o={}){this._mainRule=t,this._children=o,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let o=0,a=0;for(;t.parentScopes[o]===">"&&o++,n.parentScopes[a]===">"&&a++,!(o>=t.parentScopes.length||a>=n.parentScopes.length);){let r=n.parentScopes[a].length-t.parentScopes[o].length;if(r!==0)return r;o++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let o=t.indexOf("."),a,r;if(o===-1?(a=t,r=""):(a=t.substring(0,o),r=t.substring(o+1)),this._children.hasOwnProperty(a))return this._children[a].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(D8._cmpBySpecificity),n}insert(t,n,o,a,r,i){if(n===""){this._doInsertHere(t,o,a,r,i);return}let A=n.indexOf("."),s,c;A===-1?(s=n,c=""):(s=n.substring(0,A),c=n.substring(A+1));let d;this._children.hasOwnProperty(s)?d=this._children[s]:(d=new D8(this._mainRule.clone(),x8.cloneArr(this._rulesWithParentScopes)),this._children[s]=d),d.insert(t+1,c,o,a,r,i)}_doInsertHere(t,n,o,a,r){if(n===null){this._mainRule.acceptOverwrite(t,o,a,r);return}for(let i=0,A=this._rulesWithParentScopes.length;i<A;i++){let s=this._rulesWithParentScopes[i];if(W5(s.parentScopes,n)===0){s.acceptOverwrite(t,o,a,r);return}}o===-1&&(o=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),r===0&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new x8(t,n,o,a,r))}},du=class rr{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){let n=rr.getLanguageId(t),o=rr.getTokenType(t),a=rr.getFontStyle(t),r=rr.getForeground(t),i=rr.getBackground(t);console.log({languageId:n,tokenType:o,fontStyle:a,foreground:r,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,o,a,r,i,A){let s=rr.getLanguageId(t),c=rr.getTokenType(t),d=rr.containsBalancedBrackets(t)?1:0,l=rr.getFontStyle(t),g=rr.getForeground(t),p=rr.getBackground(t);return n!==0&&(s=n),o!==8&&(c=o),a!==null&&(d=a?1:0),r!==-1&&(l=r),i!==0&&(g=i),A!==0&&(p=A),(s<<0|c<<8|d<<10|l<<11|g<<15|p<<24)>>>0}};function sC(e,t){let n=[],o=Qde(e),a=o.next();for(;a!==null;){let s=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":s=1;break;case"L":s=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=o.next()}let c=i();if(n.push({matcher:c,priority:s}),a!==",")break;a=o.next()}return n;function r(){if(a==="-"){a=o.next();let s=r();return c=>!!s&&!s(c)}if(a==="("){a=o.next();let s=A();return a===")"&&(a=o.next()),s}if(G5(a)){let s=[];do s.push(a),a=o.next();while(G5(a));return c=>t(s,c)}return null}function i(){let s=[],c=r();for(;c;)s.push(c),c=r();return d=>s.every(l=>l(d))}function A(){let s=[],c=i();for(;c&&(s.push(c),a==="|"||a===",");){do a=o.next();while(a==="|"||a===",");c=i()}return d=>s.some(l=>l(d))}}function G5(e){return!!e&&!!e.match(/[\w\.:]+/)}function Qde(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let o=n[0];return n=t.exec(e),o}}}function tT(e){typeof e.dispose=="function"&&e.dispose()}var Wm=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Ide=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},vde=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},_de=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Wm(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new vde;for(let n of e)xde(n,this.initialScopeName,this.repo,t);for(let n of t.references)if(n instanceof Wm){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function xde(e,t,n,o){let a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}let r=n.lookup(t);e instanceof Wm?AC({baseGrammar:r,selfGrammar:a},o):F8(e.ruleName,{baseGrammar:r,selfGrammar:a,repository:a.repository},o);let i=n.injections(e.scopeName);if(i)for(let A of i)o.add(new Wm(A))}function F8(e,t,n){if(t.repository&&t.repository[e]){let o=t.repository[e];cC([o],t,n)}}function AC(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&cC(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&cC(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function cC(e,t,n){for(let o of e){if(n.visitedRule.has(o))continue;n.visitedRule.add(o);let a=o.repository?Y5({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&cC(o.patterns,{...t,repository:a},n);let r=o.include;if(!r)continue;let i=nT(r);switch(i.kind){case 0:AC({...t,selfGrammar:t.baseGrammar},n);break;case 1:AC(t,n);break;case 2:F8(i.ruleName,{...t,repository:a},n);break;case 3:case 4:let A=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(A){let s={baseGrammar:t.baseGrammar,selfGrammar:A,repository:a};i.kind===4?F8(i.ruleName,s,n):AC(s,n)}else i.kind===4?n.add(new Ide(i.scopeName,i.ruleName)):n.add(new Wm(i.scopeName));break}}}var Dde=class{kind=0},Fde=class{kind=1},Sde=class{constructor(e){this.ruleName=e}kind=2},Lde=class{constructor(e){this.scopeName=e}kind=3},Rde=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function nT(e){if(e==="$base")return new Dde;if(e==="$self")return new Fde;let t=e.indexOf("#");if(t===-1)return new Lde(e);if(t===0)return new Sde(e.substring(1));{let n=e.substring(0,t),o=e.substring(t+1);return new Rde(n,o)}}var Nde=/\\(\d+)/,H5=/\\(\d+)/g;var Mde=-1,aT=-2;var Xm=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,o){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=rC.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=rC.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${K5(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:rC.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:rC.replaceCaptures(this._contentName,e,t)}},$de=class extends Xm{retokenizeCapturedWithRuleId;constructor(e,t,n,o,a){super(e,t,n,o),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,o){throw new Error("Not supported!")}},jde=class extends Xm{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,o,a){super(e,t,n,null),this._match=new Zm(o,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Vm,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},T5=class extends Xm{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,o,a){super(e,t,n,o),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Vm,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},S8=class extends Xm{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,o,a,r,i,A,s,c){super(e,t,n,o),this._begin=new Zm(a,this.id),this.beginCaptures=r,this._end=new Zm(i||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=A,this.applyEndPatternLast=s||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,o)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Vm;for(let n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},uC=class extends Xm{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,o,a,r,i,A,s){super(e,t,n,o),this._begin=new Zm(a,this.id),this.beginCaptures=r,this.whileCaptures=A,this._while=new Zm(i,aT),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Vm;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,o){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,o)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Vm,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}},oT=class va{static createCaptureRule(t,n,o,a,r){return t.registerRule(i=>new $de(n,i,o,a,r))}static getCompiledRuleId(t,n,o){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new jde(t.$vscodeTextmateLocation,t.id,t.name,t.match,va._compileCaptures(t.captures,n,o));if(typeof t.begin>"u"){t.repository&&(o=Y5({},o,t.repository));let r=t.patterns;return typeof r>"u"&&t.include&&(r=[{include:t.include}]),new T5(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,va._compilePatterns(r,n,o))}return t.while?new uC(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,va._compileCaptures(t.beginCaptures||t.captures,n,o),t.while,va._compileCaptures(t.whileCaptures||t.captures,n,o),va._compilePatterns(t.patterns,n,o)):new S8(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,va._compileCaptures(t.beginCaptures||t.captures,n,o),t.end,va._compileCaptures(t.endCaptures||t.captures,n,o),t.applyEndPatternLast,va._compilePatterns(t.patterns,n,o))}),t.id}static _compileCaptures(t,n,o){let a=[];if(t){let r=0;for(let i in t){if(i==="$vscodeTextmateLocation")continue;let A=parseInt(i,10);A>r&&(r=A)}for(let i=0;i<=r;i++)a[i]=null;for(let i in t){if(i==="$vscodeTextmateLocation")continue;let A=parseInt(i,10),s=0;t[i].patterns&&(s=va.getCompiledRuleId(t[i],n,o)),a[A]=va.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,s)}}return a}static _compilePatterns(t,n,o){let a=[];if(t)for(let r=0,i=t.length;r<i;r++){let A=t[r],s=-1;if(A.include){let c=nT(A.include);switch(c.kind){case 0:case 1:s=va.getCompiledRuleId(o[A.include],n,o);break;case 2:let d=o[c.ruleName];d&&(s=va.getCompiledRuleId(d,n,o));break;case 3:case 4:let l=c.scopeName,g=c.kind===4?c.ruleName:null,p=n.getExternalGrammar(l,o);if(p)if(g){let m=p.repository[g];m&&(s=va.getCompiledRuleId(m,n,p.repository))}else s=va.getCompiledRuleId(p.repository.$self,n,p.repository);break}}else s=va.getCompiledRuleId(A,n,o);if(s!==-1){let c=n.getRule(s),d=!1;if((c instanceof T5||c instanceof S8||c instanceof uC)&&c.hasMissingPatterns&&c.patterns.length===0&&(d=!0),d)continue;a.push(s)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},Zm=class rT{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){let o=t.length,a=0,r=[],i=!1;for(let A=0;A<o;A++)if(t.charAt(A)==="\\"&&A+1<o){let c=t.charAt(A+1);c==="z"?(r.push(t.substring(a,A)),r.push("$(?!\\n)(?<!\\n)"),a=A+2):(c==="A"||c==="G")&&(i=!0),A++}this.hasAnchor=i,a===0?this.source=t:(r.push(t.substring(a,o)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Nde.test(this.source):this.hasBackReferences=!1}clone(){return new rT(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let o=n.map(a=>t.substring(a.start,a.end));return H5.lastIndex=0,this.source.replace(H5,(a,r)=>Z5(o[parseInt(r,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],o=[],a=[],r,i,A,s;for(r=0,i=this.source.length;r<i;r++)A=this.source.charAt(r),t[r]=A,n[r]=A,o[r]=A,a[r]=A,A==="\\"&&r+1<i&&(s=this.source.charAt(r+1),s==="A"?(t[r+1]="\uFFFF",n[r+1]="\uFFFF",o[r+1]="A",a[r+1]="A"):s==="G"?(t[r+1]="\uFFFF",n[r+1]="G",o[r+1]="\uFFFF",a[r+1]="G"):(t[r+1]=s,n[r+1]=s,o[r+1]=s,a[r+1]=s),r++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:o.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Vm=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new U5(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let o=this._items.map(a=>a.resolveAnchors(t,n));return new U5(e,o,this._items.map(a=>a.ruleId))}},U5=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
76
76
  `)}findNextMatchSync(e,t,n){let o=this.scanner.findNextMatchSync(e,t,n);return o?{ruleId:this.rules[o.index],captureIndices:o.captureIndices}:null}},_8=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Pde=class L8{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new _8(t,8),this._embeddedLanguagesMatcher=new Gde(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?L8._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new _8(0,0);_getBasicScopeAttributes=new V5(t=>{let n=this._scopeToLanguage(t),o=this._toStandardTokenType(t);return new _8(n,o)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){let n=t.match(L8.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Gde=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([n,o])=>Z5(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},t3e={InDebugMode:typeof process<"u"&&!!process.env.VSCODE_TEXTMATE_DEBUG},iT=!1,O5=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function AT(e,t,n,o,a,r,i,A){let s=t.content.length,c=!1,d=-1;if(i){let p=Hde(e,t,n,o,a,r);a=p.stack,o=p.linePos,n=p.isFirstLine,d=p.anchorPosition}let l=Date.now();for(;!c;){if(A!==0&&Date.now()-l>A)return new O5(a,!0);g()}return new O5(a,!1);function g(){let p=Tde(e,t,n,o,a,d);if(!p){r.produce(a,s),c=!0;return}let m=p.captureIndices,h=p.matchedRuleId,B=m&&m.length>0?m[0].end>o:!1;if(h===Mde){let f=a.getRule(e);r.produce(a,m[0].start),a=a.withContentNameScopesList(a.nameScopesList),Ym(e,t,n,a,r,f.endCaptures,m),r.produce(a,m[0].end);let b=a;if(a=a.parent,d=b.getAnchorPos(),!B&&b.getEnterPos()===o){a=b,r.produce(a,s),c=!0;return}}else{let f=e.getRule(h);r.produce(a,m[0].start);let b=a,y=f.getName(t.content,m),E=a.contentNameScopesList.pushAttributed(y,e);if(a=a.push(h,o,d,m[0].end===s,null,E,E),f instanceof S8){let Q=f;Ym(e,t,n,a,r,Q.beginCaptures,m),r.produce(a,m[0].end),d=m[0].end;let v=Q.getContentName(t.content,m),x=E.pushAttributed(v,e);if(a=a.withContentNameScopesList(x),Q.endHasBackReferences&&(a=a.withEndRule(Q.getEndWithResolvedBackReferences(t.content,m))),!B&&b.hasSameRuleAs(a)){a=a.pop(),r.produce(a,s),c=!0;return}}else if(f instanceof uC){let Q=f;Ym(e,t,n,a,r,Q.beginCaptures,m),r.produce(a,m[0].end),d=m[0].end;let v=Q.getContentName(t.content,m),x=E.pushAttributed(v,e);if(a=a.withContentNameScopesList(x),Q.whileHasBackReferences&&(a=a.withEndRule(Q.getWhileWithResolvedBackReferences(t.content,m))),!B&&b.hasSameRuleAs(a)){a=a.pop(),r.produce(a,s),c=!0;return}}else if(Ym(e,t,n,a,r,f.captures,m),r.produce(a,m[0].end),a=a.pop(),!B){a=a.safePop(),r.produce(a,s),c=!0;return}}m[0].end>o&&(o=m[0].end,n=!1)}}function Hde(e,t,n,o,a,r){let i=a.beginRuleCapturedEOL?0:-1,A=[];for(let s=a;s;s=s.pop()){let c=s.getRule(e);c instanceof uC&&A.push({rule:c,stack:s})}for(let s=A.pop();s;s=A.pop()){let{ruleScanner:c,findOptions:d}=qde(s.rule,e,s.stack.endRule,n,o===i),l=c.findNextMatchSync(t,o,d);if(l){if(l.ruleId!==aT){a=s.stack.pop();break}l.captureIndices&&l.captureIndices.length&&(r.produce(s.stack,l.captureIndices[0].start),Ym(e,t,n,s.stack,r,s.rule.whileCaptures,l.captureIndices),r.produce(s.stack,l.captureIndices[0].end),i=l.captureIndices[0].end,l.captureIndices[0].end>o&&(o=l.captureIndices[0].end,n=!1))}else{a=s.stack.pop();break}}return{stack:a,linePos:o,anchorPosition:i,isFirstLine:n}}function Tde(e,t,n,o,a,r){let i=Ude(e,t,n,o,a,r),A=e.getInjections();if(A.length===0)return i;let s=Ode(A,e,t,n,o,a,r);if(!s)return i;if(!i)return s;let c=i.captureIndices[0].start,d=s.captureIndices[0].start;return d<c||s.priorityMatch&&d===c?s:i}function Ude(e,t,n,o,a,r){let i=a.getRule(e),{ruleScanner:A,findOptions:s}=sT(i,e,a.endRule,n,o===r),c=A.findNextMatchSync(t,o,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function Ode(e,t,n,o,a,r,i){let A=Number.MAX_VALUE,s=null,c,d=0,l=r.contentNameScopesList.getScopeNames();for(let g=0,p=e.length;g<p;g++){let m=e[g];if(!m.matcher(l))continue;let h=t.getRule(m.ruleId),{ruleScanner:B,findOptions:f}=sT(h,t,null,o,a===i),b=B.findNextMatchSync(n,a,f);if(!b)continue;let y=b.captureIndices[0].start;if(!(y>=A)&&(A=y,s=b.captureIndices,c=b.ruleId,d=m.priority,A===a))break}return s?{priorityMatch:d===-1,captureIndices:s,matchedRuleId:c}:null}function sT(e,t,n,o,a){if(iT){let i=e.compile(t,n),A=cT(o,a);return{ruleScanner:i,findOptions:A}}return{ruleScanner:e.compileAG(t,n,o,a),findOptions:0}}function qde(e,t,n,o,a){if(iT){let i=e.compileWhile(t,n),A=cT(o,a);return{ruleScanner:i,findOptions:A}}return{ruleScanner:e.compileWhileAG(t,n,o,a),findOptions:0}}function cT(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function Ym(e,t,n,o,a,r,i){if(r.length===0)return;let A=t.content,s=Math.min(r.length,i.length),c=[],d=i[0].end;for(let l=0;l<s;l++){let g=r[l];if(g===null)continue;let p=i[l];if(p.length===0)continue;if(p.start>d)break;for(;c.length>0&&c[c.length-1].endPos<=p.start;)a.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?a.produceFromScopes(c[c.length-1].scopes,p.start):a.produce(o,p.start),g.retokenizeCapturedWithRuleId){let h=g.getName(A,i),B=o.contentNameScopesList.pushAttributed(h,e),f=g.getContentName(A,i),b=B.pushAttributed(f,e),y=o.push(g.retokenizeCapturedWithRuleId,p.start,-1,!1,null,B,b),E=e.createOnigString(A.substring(0,p.end));AT(e,E,n&&p.start===0,p.start,y,a,!1,0),tT(E);continue}let m=g.getName(A,i);if(m!==null){let B=(c.length>0?c[c.length-1].scopes:o.contentNameScopesList).pushAttributed(m,e);c.push(new zde(B,p.end))}}for(;c.length>0;)a.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var zde=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function Yde(e,t,n,o,a,r,i,A){return new Jde(e,t,n,o,a,r,i,A)}function q5(e,t,n,o,a){let r=sC(t,dC),i=oT.getCompiledRuleId(n,o,a.repository);for(let A of r)e.push({debugSelector:t,matcher:A.matcher,ruleId:i,grammar:a,priority:A.priority})}function dC(e,t){if(t.length<e.length)return!1;let n=0;return e.every(o=>{for(let a=n;a<t.length;a++)if(Kde(t[a],o))return n=a+1,!0;return!1})}function Kde(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var Jde=class{constructor(e,t,n,o,a,r,i,A){if(this._rootScopeName=e,this.balancedBracketSelectors=r,this._onigLib=A,this._basicScopeAttributesProvider=new Pde(n,o),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=z5(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(let s of Object.keys(a)){let c=sC(s,dC);for(let d of c)this._tokenTypeMatchers.push({matcher:d.matcher,type:a[s]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},t=[],n=this._rootScopeName,o=e.lookup(n);if(o){let a=o.injections;if(a)for(let i in a)q5(t,i,a[i],this,o);let r=this._grammarRepository.injections(n);r&&r.forEach(i=>{let A=this.getExternalGrammar(i);if(A){let s=A.injectionSelector;s&&q5(t,s,A,this,A)}})}return t.sort((a,r)=>a.priority-r.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=z5(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let o=this._tokenize(e,t,!1,n);return{tokens:o.lineTokens.getResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}tokenizeLine2(e,t,n=0){let o=this._tokenize(e,t,!0,n);return{tokens:o.lineTokens.getBinaryResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}_tokenize(e,t,n,o){this._rootId===-1&&(this._rootId=oT.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===R8.NULL){a=!0;let c=this._basicScopeAttributesProvider.getDefaultAttributes(),d=this.themeProvider.getDefaults(),l=du.set(0,c.languageId,c.tokenType,null,d.fontStyle,d.foregroundId,d.backgroundId),g=this.getRule(this._rootId).getName(null,null),p;g?p=Km.createRootAndLookUpScopeName(g,l,this):p=Km.createRoot("unknown",l),t=new R8(null,this._rootId,-1,-1,!1,null,p,p)}else a=!1,t.reset();e=e+`
77
77
  `;let r=this.createOnigString(e),i=r.content.length,A=new Zde(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),s=AT(this,r,a,0,t,A,!0,o);return tT(r),{lineLength:i,lineTokens:A,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}};function z5(e,t){return e=gde(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Km=class Di{constructor(t,n,o){this.parent=t,this.scopePath=n,this.tokenAttributes=o}static fromExtension(t,n){let o=t,a=t?.scopePath??null;for(let r of n)a=v8.push(a,r.scopeNames),o=new Di(o,a,r.encodedTokenAttributes);return o}static createRoot(t,n){return new Di(null,new v8(null,t),n)}static createRootAndLookUpScopeName(t,n,o){let a=o.getMetadataForScope(t),r=new v8(null,t),i=o.themeProvider.themeMatch(r),A=Di.mergeAttributes(n,a,i);return new Di(null,r,A)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Di.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,o){let a=-1,r=0,i=0;return o!==null&&(a=o.fontStyle,r=o.foregroundId,i=o.backgroundId),du.set(t,n.languageId,n.tokenType,null,a,r,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Di._pushAttributed(this,t,n);let o=t.split(/ /g),a=this;for(let r of o)a=Di._pushAttributed(a,r,n);return a}static _pushAttributed(t,n,o){let a=o.getMetadataForScope(n),r=t.scopePath.push(n),i=o.themeProvider.themeMatch(r),A=Di.mergeAttributes(t.tokenAttributes,a,i);return new Di(t,r,A)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){let n=[],o=this;for(;o&&o!==t;)n.push({encodedTokenAttributes:o.tokenAttributes,scopeNames:o.scopePath.getExtensionIfDefined(o.parent?.scopePath??null)}),o=o.parent;return o===t?n.reverse():void 0}},R8=class uu{constructor(t,n,o,a,r,i,A,s){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=r,this.endRule=i,this.nameScopesList=A,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=o,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new uu(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:uu._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Km.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){uu._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,o,a,r,i,A){return new uu(this,t,n,o,a,r,i,A)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){let t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new uu(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let o=Km.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new uu(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,o,Km.fromExtension(o,n.contentNameScopesList))}},Wde=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):sC(n,dC).map(o=>o.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>sC(n,dC).map(o=>o.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Zde=class{constructor(e,t,n,o){this.balancedBracketSelectors=o,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let o=e?.tokenAttributes??0,a=!1;if(this.balancedBracketSelectors?.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let r=e?.getScopeNames()??[];for(let i of this._tokenTypeOverrides)i.matcher(r)&&(o=du.set(o,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(r))}if(a&&(o=du.set(o,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===o){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(o),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let o=0,a=this._binaryTokens.length;o<a;o++)n[o]=this._binaryTokens[o];return n}},Vde=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,o,a){if(!this._grammars.has(e)){let r=this._rawGrammars.get(e);if(!r)return null;this._grammars.set(e,Yde(e,r,t,n,o,a,this,this._onigLib))}return this._grammars.get(e)}},uT=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Vde(Jm.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Jm.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new Wde(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,o,a){let r=new _de(this._syncRegistry,e);for(;r.Q.length>0;)r.Q.map(i=>this._loadSingleGrammar(i.scopeName)),r.processQueue();return this._grammarForScopeName(e,t,n,o,a)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,o=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,o)}_grammarForScopeName(e,t=0,n=null,o=null,a=null){return this._syncRegistry.grammarForScopeName(e,t,n,o,a)}},lC=R8.NULL;function tf(e,t){let n=typeof e=="string"?{}:{...e.colorReplacements},o=typeof e=="string"?e:e.name;for(let[a,r]of Object.entries(t?.colorReplacements||{}))typeof r=="string"?n[a]=r:a===o&&Object.assign(n,r);return n}function RA(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function mT(e){return Array.isArray(e)?e:[e]}async function M8(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function nf(e){return!e||["plaintext","txt","text","plain"].includes(e)}function $8(e){return e==="ansi"||nf(e)}function af(e){return e==="none"}function j8(e){return af(e)}var Xde=/(\r?\n)/g;function Rl(e,t=!1){if(e.length===0)return[["",0]];let n=e.split(Xde),o=0,a=[];for(let r=0;r<n.length;r+=2){let i=t?n[r]+(n[r+1]||""):n[r];a.push([i,o]),o+=n[r].length,o+=n[r+1]?.length||0}return a}var dT={light:"#333333",dark:"#bbbbbb"},lT={light:"#fffffe",dark:"#1e1e1e"},pT="__shiki_resolved";function pC(e){if(e?.[pT])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:o}=t;if(!n||!o){let A=t.settings?t.settings.find(s=>!s.name&&!s.scope):void 0;A?.settings?.foreground&&(o=A.settings.foreground),A?.settings?.background&&(n=A.settings.background),!o&&t?.colors?.["editor.foreground"]&&(o=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),o||(o=t.type==="light"?dT.light:dT.dark),n||(n=t.type==="light"?lT.light:lT.dark),t.fg=o,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0,r=new Map;function i(A){if(r.has(A))return r.get(A);a+=1;let s=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${s}`]?i(A):(r.set(A,s),s)}t.settings=t.settings.map(A=>{let s=A.settings?.foreground&&!A.settings.foreground.startsWith("#"),c=A.settings?.background&&!A.settings.background.startsWith("#");if(!s&&!c)return A;let d={...A,settings:{...A.settings}};if(s){let l=i(A.settings.foreground);t.colorReplacements[l]=A.settings.foreground,d.settings.foreground=l}if(c){let l=i(A.settings.background);t.colorReplacements[l]=A.settings.background,d.settings.background=l}return d});for(let A of Object.keys(t.colors||{}))if((A==="editor.foreground"||A==="editor.background"||A.startsWith("terminal.ansi"))&&!t.colors[A]?.startsWith("#")){let s=i(t.colors[A]);t.colorReplacements[s]=t.colors[A],t.colors[A]=s}return Object.defineProperty(t,pT,{enumerable:!1,writable:!1,value:!0}),t}async function fT(e){return[...new Set((await Promise.all(e.filter(t=>!$8(t)).map(async t=>await M8(t).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function bT(e){return(await Promise.all(e.map(async t=>j8(t)?null:pC(await M8(t))))).filter(t=>!!t)}function hT(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new ct(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var ele=class extends uT{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,o={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=o,this._themes.map(a=>this.loadTheme(a)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=pC(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Jm.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=hT(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(a=>a.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let o=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(o.name=e.name,this._resolvedGrammars.set(e.name,o),e.aliases&&e.aliases.forEach(a=>{this._alias[a]=e.name}),this._loadedLanguagesCache=null,t.size)for(let a of t)this._resolvedGrammars.delete(a.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(a.scopeName),this._syncRegistry?._grammars?.delete(a.scopeName),this.loadLanguage(this._langMap.get(a.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let o of e)this.resolveEmbeddedLanguages(o);let t=[...this._langGraph.entries()],n=t.filter(([o,a])=>!a);if(n.length){let o=t.filter(([a,r])=>r?(r.embeddedLanguages||r.embeddedLangs)?.some(i=>n.map(([A])=>A).includes(i)):!1).filter(a=>!n.includes(a));throw new ct(`Missing languages ${n.map(([a])=>`\`${a}\``).join(", ")}, required by ${o.map(([a])=>`\`${a}\``).join(", ")}`)}for(let[o,a]of t)this._resolver.addLanguage(a);for(let[o,a]of t)this.loadLanguage(a)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let n of t)this._langGraph.set(n,this._langMap.get(n))}},tle=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},t.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let o=1;o<=t.length;o++){let a=t.slice(0,o).join(".");n=[...n,...this._injections.get(a)||[]]}return n}},ef=0;function P8(e){ef+=1,e.warnings!==!1&&ef>=10&&ef%10===0&&console.warn(`[Shiki] ${ef} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new ct("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),o=(e.themes||[]).flat(1).map(pC),a=new ele(new tle(e.engine,n),o,n,e.langAlias),r;function i(b){return hT(b,e.langAlias)}function A(b){B();let y=a.getGrammar(typeof b=="string"?b:b.name);if(!y)throw new ct(`Language \`${b}\` not found, you may need to load it first`);return y}function s(b){if(b==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};B();let y=a.getTheme(b);if(!y)throw new ct(`Theme \`${b}\` not found, you may need to load it first`);return y}function c(b){B();let y=s(b);return r!==b&&(a.setTheme(y),r=b),{theme:y,colorMap:a.getColorMap()}}function d(){return B(),a.getLoadedThemes()}function l(){return B(),a.getLoadedLanguages()}function g(...b){B(),a.loadLanguages(b.flat(1))}async function p(...b){return g(await fT(b))}function m(...b){B();for(let y of b.flat(1))a.loadTheme(y)}async function h(...b){return B(),m(await bT(b))}function B(){if(t)throw new ct("Shiki instance has been disposed")}function f(){t||(t=!0,a.dispose(),ef-=1)}return{setTheme:c,getTheme:s,getLanguage:A,getLoadedThemes:d,getLoadedLanguages:l,resolveLangAlias:i,loadLanguage:p,loadLanguageSync:g,loadTheme:h,loadThemeSync:m,dispose:f,[Symbol.dispose]:f}}async function G8(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,o]=await Promise.all([bT(e.themes||[]),fT(e.langs||[]),e.engine]);return P8({...e,themes:t,langs:n,engine:o})}var BT=new WeakMap;function of(e,t){BT.set(e,t)}function Nl(e){return BT.get(e)}var gC=class yT{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new yT(Object.fromEntries(mT(n).map(o=>[o,lC])),t)}constructor(...t){if(t.length===2){let[n,o]=t;this.lang=o,this._stacks=n}else{let[n,o,a]=t;this.lang=o,this._stacks={[a]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return nle(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function nle(e){let t=[],n=new Set;function o(a){if(n.has(a))return;n.add(a);let r=a?.nameScopesList?.scopeName;r&&t.push(r),a.parent&&o(a.parent)}return o(e),t}function ale(e,t){if(!(e instanceof gC))throw new ct("Invalid grammar state");return e.getInternalStack(t)}var ole=/,/,rle=/ /;function H8(e,t,n={}){let{theme:o=e.getLoadedThemes()[0]}=n;if(nf(e.resolveLangAlias(n.lang||"text"))||af(o))return Rl(t).map(A=>[{content:A[0],offset:A[1]}]);let{theme:a,colorMap:r}=e.setTheme(o),i=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==i.name)throw new ct(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${i.name}"`);if(!n.grammarState.themes.includes(a.name))throw new ct(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return wT(t,i,a,r,n)}function CT(...e){if(e.length===2)return Nl(e[1]);let[t,n,o={}]=e,{lang:a="text",theme:r=t.getLoadedThemes()[0]}=o;if(nf(a)||af(r))throw new ct("Plain language does not have grammar state");if(a==="ansi")throw new ct("ANSI language does not have grammar state");let{theme:i,colorMap:A}=t.setTheme(r),s=t.getLanguage(a);return new gC(T8(n,s,i,A,o).stateStack,s.name,i.name)}function wT(e,t,n,o,a){let r=T8(e,t,n,o,a),i=new gC(r.stateStack,t.name,n.name);return of(r.tokens,i),r.tokens}function T8(e,t,n,o,a){let r=tf(n,a),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:A=500}=a,s=Rl(e),c=a.grammarState?ale(a.grammarState,n.name)??lC:a.grammarContextCode!=null?T8(a.grammarContextCode,t,n,o,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:lC,d=[],l=[];for(let g=0,p=s.length;g<p;g++){let[m,h]=s[g];if(m===""){d=[],l.push([]);continue}if(i>0&&m.length>=i){d=[],l.push([{content:m,offset:h,color:"",fontStyle:0}]);continue}let B,f,b;a.includeExplanation&&(B=t.tokenizeLine(m,c,A),f=B.tokens,b=0);let y=t.tokenizeLine2(m,c,A),E=y.tokens.length/2;for(let Q=0;Q<E;Q++){let v=y.tokens[2*Q],x=Q+1<E?y.tokens[2*Q+2]:m.length;if(v===x)continue;let $=y.tokens[2*Q+1],R=RA(o[du.getForeground($)],r),G=du.getFontStyle($),se={content:m.substring(v,x),offset:h+v,color:R,fontStyle:G};if(a.includeExplanation){let q=[];if(a.includeExplanation!=="scopeName")for(let oe of n.settings){let V;switch(typeof oe.scope){case"string":V=oe.scope.split(ole).map(Ye=>Ye.trim());break;case"object":V=oe.scope;break;default:continue}q.push({settings:oe,selectors:V.map(Ye=>Ye.split(rle))})}se.explanation=[];let ne=0;for(;v+ne<x;){let oe=f[b],V=m.substring(oe.startIndex,oe.endIndex);ne+=V.length,se.explanation.push({content:V,scopes:a.includeExplanation==="scopeName"?ile(oe.scopes):Ale(q,oe.scopes)}),b+=1}}d.push(se)}l.push(d),d=[],c=y.ruleStack}return{tokens:l,stateStack:c}}function ile(e){return e.map(t=>({scopeName:t}))}function Ale(e,t){let n=[];for(let o=0,a=t.length;o<a;o++){let r=t[o];n[o]={scopeName:r,themeMatches:cle(e,r,t.slice(0,o))}}return n}function gT(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function sle(e,t,n){if(!gT(e.at(-1),t))return!1;let o=e.length-2,a=n.length-1;for(;o>=0&&a>=0;)gT(e[o],n[a])&&(o-=1),a-=1;return o===-1}function cle(e,t,n){let o=[];for(let{selectors:a,settings:r}of e)for(let i of a)if(sle(i,t,n)){o.push(r);break}return o}function mC(e,t,n,o=H8){let a=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),r=a.map(c=>{let d=o(e,t,{...n,theme:c.theme});return{tokens:d,state:Nl(d),theme:typeof c.theme=="string"?c.theme:c.theme.name}}),i=ule(...r.map(c=>c.tokens)),A=i[0].map((c,d)=>c.map((l,g)=>{let p={content:l.content,variants:{},offset:l.offset};return"includeExplanation"in n&&n.includeExplanation&&(p.explanation=l.explanation),i.forEach((m,h)=>{let{content:B,explanation:f,offset:b,...y}=m[d][g];p.variants[a[h].color]=y}),p})),s=r[0].state?new gC(Object.fromEntries(r.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),r[0].state.lang):void 0;return s&&of(A,s),A}function ule(...e){let t=e.map(()=>[]),n=e.length;for(let o=0;o<e[0].length;o++){let a=e.map(s=>s[o]),r=t.map(()=>[]);t.forEach((s,c)=>s.push(r[c]));let i=a.map(()=>0),A=a.map(s=>s[0]);for(;A.every(s=>s);){let s=Math.min(...A.map(c=>c.content.length));for(let c=0;c<n;c++){let d=A[c];d.content.length===s?(r[c].push(d),i[c]+=1,A[c]=a[c][i[c]]):(r[c].push({...d,content:d.content.slice(0,s)}),A[c]={...d,content:d.content.slice(s),offset:d.offset+s})}}}return t}var ET=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var NA=class{constructor(t,n,o){this.normal=n,this.property=t,o&&(this.space=o)}};NA.prototype.normal={};NA.prototype.property={};NA.prototype.space=void 0;function U8(e,t){let n={},o={};for(let a of e)Object.assign(n,a.property),Object.assign(o,a.normal);return new NA(n,o,t)}function rf(e){return e.toLowerCase()}var ea=class{constructor(t,n){this.attribute=n,this.property=t}};ea.prototype.attribute="";ea.prototype.booleanish=!1;ea.prototype.boolean=!1;ea.prototype.commaOrSpaceSeparated=!1;ea.prototype.commaSeparated=!1;ea.prototype.defined=!1;ea.prototype.mustUseProperty=!1;ea.prototype.number=!1;ea.prototype.overloadedBoolean=!1;ea.prototype.property="";ea.prototype.spaceSeparated=!1;ea.prototype.space=void 0;var Af={};L(Af,{boolean:()=>Be,booleanish:()=>nn,commaOrSpaceSeparated:()=>go,commaSeparated:()=>zs,number:()=>z,overloadedBoolean:()=>fC,spaceSeparated:()=>ut});var dle=0,Be=lu(),nn=lu(),fC=lu(),z=lu(),ut=lu(),zs=lu(),go=lu();function lu(){return 2**++dle}var O8=Object.keys(Af),pu=class extends ea{constructor(t,n,o,a){let r=-1;if(super(t,n),kT(this,"space",a),typeof o=="number")for(;++r<O8.length;){let i=O8[r];kT(this,O8[r],(o&Af[i])===Af[i])}}};pu.prototype.defined=!0;function kT(e,t,n){n&&(e[t]=n)}function ir(e){let t={},n={};for(let[o,a]of Object.entries(e.properties)){let r=new pu(o,e.transform(e.attributes||{},o),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(r.mustUseProperty=!0),t[o]=r,n[rf(o)]=o,n[rf(r.attribute)]=o}return new NA(t,n,e.space)}var q8=ir({properties:{ariaActiveDescendant:null,ariaAtomic:nn,ariaAutoComplete:null,ariaBusy:nn,ariaChecked:nn,ariaColCount:z,ariaColIndex:z,ariaColSpan:z,ariaControls:ut,ariaCurrent:null,ariaDescribedBy:ut,ariaDetails:null,ariaDisabled:nn,ariaDropEffect:ut,ariaErrorMessage:null,ariaExpanded:nn,ariaFlowTo:ut,ariaGrabbed:nn,ariaHasPopup:null,ariaHidden:nn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ut,ariaLevel:z,ariaLive:null,ariaModal:nn,ariaMultiLine:nn,ariaMultiSelectable:nn,ariaOrientation:null,ariaOwns:ut,ariaPlaceholder:null,ariaPosInSet:z,ariaPressed:nn,ariaReadOnly:nn,ariaRelevant:null,ariaRequired:nn,ariaRoleDescription:ut,ariaRowCount:z,ariaRowIndex:z,ariaRowSpan:z,ariaSelected:nn,ariaSetSize:z,ariaSort:null,ariaValueMax:z,ariaValueMin:z,ariaValueNow:z,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function bC(e,t){return t in e?e[t]:t}function hC(e,t){return bC(e,t.toLowerCase())}var QT=ir({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zs,acceptCharset:ut,accessKey:ut,action:null,allow:null,allowFullScreen:Be,allowPaymentRequest:Be,allowUserMedia:Be,alt:null,as:null,async:Be,autoCapitalize:null,autoComplete:ut,autoFocus:Be,autoPlay:Be,blocking:ut,capture:null,charSet:null,checked:Be,cite:null,className:ut,cols:z,colSpan:null,content:null,contentEditable:nn,controls:Be,controlsList:ut,coords:z|zs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Be,defer:Be,dir:null,dirName:null,disabled:Be,download:fC,draggable:nn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Be,formTarget:null,headers:ut,height:z,hidden:fC,high:z,href:null,hrefLang:null,htmlFor:ut,httpEquiv:ut,id:null,imageSizes:null,imageSrcSet:null,inert:Be,inputMode:null,integrity:null,is:null,isMap:Be,itemId:null,itemProp:ut,itemRef:ut,itemScope:Be,itemType:ut,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Be,low:z,manifest:null,max:null,maxLength:z,media:null,method:null,min:null,minLength:z,multiple:Be,muted:Be,name:null,nonce:null,noModule:Be,noValidate:Be,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Be,optimum:z,pattern:null,ping:ut,placeholder:null,playsInline:Be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Be,referrerPolicy:null,rel:ut,required:Be,reversed:Be,rows:z,rowSpan:z,sandbox:ut,scope:null,scoped:Be,seamless:Be,selected:Be,shadowRootClonable:Be,shadowRootDelegatesFocus:Be,shadowRootMode:null,shape:null,size:z,sizes:null,slot:null,span:z,spellCheck:nn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:z,step:null,style:null,tabIndex:z,target:null,title:null,translate:null,type:null,typeMustMatch:Be,useMap:null,value:nn,width:z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ut,axis:null,background:null,bgColor:null,border:z,borderColor:null,bottomMargin:z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Be,declare:Be,event:null,face:null,frame:null,frameBorder:null,hSpace:z,leftMargin:z,link:null,longDesc:null,lowSrc:null,marginHeight:z,marginWidth:z,noResize:Be,noHref:Be,noShade:Be,noWrap:Be,object:null,profile:null,prompt:null,rev:null,rightMargin:z,rules:null,scheme:null,scrolling:nn,standby:null,summary:null,text:null,topMargin:z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Be,disableRemotePlayback:Be,prefix:null,property:null,results:z,security:null,unselectable:null},space:"html",transform:hC});var IT=ir({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:go,accentHeight:z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:z,amplitude:z,arabicForm:null,ascent:z,attributeName:null,attributeType:null,azimuth:z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:z,by:null,calcMode:null,capHeight:z,className:ut,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:z,diffuseConstant:z,direction:null,display:null,dur:null,divisor:z,dominantBaseline:null,download:Be,dx:null,dy:null,edgeMode:null,editable:null,elevation:z,enableBackground:null,end:null,event:null,exponent:z,externalResourcesRequired:null,fill:null,fillOpacity:z,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:zs,g2:zs,glyphName:zs,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:z,horizOriginX:z,horizOriginY:z,id:null,ideographic:z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:z,k:z,k1:z,k2:z,k3:z,k4:z,kernelMatrix:go,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:z,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:z,overlineThickness:z,paintOrder:null,panose1:null,path:null,pathLength:z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ut,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:z,pointsAtY:z,pointsAtZ:z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:go,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:go,rev:go,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:go,requiredFeatures:go,requiredFonts:go,requiredFormats:go,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:z,specularExponent:z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:z,strikethroughThickness:z,string:null,stroke:null,strokeDashArray:go,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:z,strokeOpacity:z,strokeWidth:null,style:null,surfaceScale:z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:go,tabIndex:z,tableValues:null,target:null,targetX:z,targetY:z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:go,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:z,underlineThickness:z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:z,values:null,vAlphabetic:z,vMathematical:z,vectorEffect:null,vHanging:z,vIdeographic:z,version:null,vertAdvY:z,vertOriginX:z,vertOriginY:z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:bC});var z8=ir({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var Y8=ir({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:hC});var K8=ir({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var lle=/[A-Z]/g,vT=/-[a-z]/g,ple=/^data[-\w.:]+$/i;function J8(e,t){let n=rf(t),o=t,a=ea;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ple.test(t)){if(t.charAt(4)==="-"){let r=t.slice(5).replace(vT,mle);o="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{let r=t.slice(4);if(!vT.test(r)){let i=r.replace(lle,gle);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}a=pu}return new a(o,t)}function gle(e){return"-"+e.toLowerCase()}function mle(e){return e.charAt(1).toUpperCase()}var _T=U8([q8,QT,z8,Y8,K8],"html"),BC=U8([q8,IT,z8,Y8,K8],"svg");var xT={}.hasOwnProperty;function DT(e,t){let n=t||{};function o(a,...r){let i=o.invalid,A=o.handlers;if(a&&xT.call(a,e)){let s=String(a[e]);i=xT.call(A,s)?A[s]:o.unknown}if(i)return i.call(this,a,...r)}return o.handlers=n.handlers||{},o.invalid=n.invalid,o.unknown=n.unknown,o}var fle=/["&'<>`]/g,ble=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hle=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Ble=/[|\\{}()[\]^$+*?.]/g,FT=new WeakMap;function ST(e,t){if(e=e.replace(t.subset?yle(t.subset):fle,o),t.subset||t.escapeOnly)return e;return e.replace(ble,n).replace(hle,o);function n(a,r,i){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,i.charCodeAt(r+2),t)}function o(a,r,i){return t.format(a.charCodeAt(0),i.charCodeAt(r+1),t)}}function yle(e){let t=FT.get(e);return t||(t=Cle(e),FT.set(e,t)),t}function Cle(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(Ble,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var wle=/[\dA-Fa-f]/;function LT(e,t,n){let o="&#x"+e.toString(16).toUpperCase();return n&&t&&!wle.test(String.fromCharCode(t))?o:o+";"}var Ele=/\d/;function RT(e,t,n){let o="&#"+String(e);return n&&t&&!Ele.test(String.fromCharCode(t))?o:o+";"}var NT=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var yC={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var MT=["cent","copy","divide","gt","lt","not","para","times"];var $T={}.hasOwnProperty,W8={},CC;for(CC in yC)$T.call(yC,CC)&&(W8[yC[CC]]=CC);var kle=/[^\dA-Za-z]/;function jT(e,t,n,o){let a=String.fromCharCode(e);if($T.call(W8,a)){let r=W8[a],i="&"+r;return n&&NT.includes(r)&&!MT.includes(r)&&(!o||t&&t!==61&&kle.test(String.fromCharCode(t)))?i:i+";"}return""}function PT(e,t,n){let o=LT(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=jT(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){let r=RT(e,t,n.omitOptionalSemicolons);r.length<o.length&&(o=r)}return a&&(!n.useShortestReferences||a.length<o.length)?a:o}function MA(e,t){return ST(e,Object.assign({format:PT},t))}var Qle=/^>|^->|<!--|-->|--!>|<!-$/g,Ile=[">"],vle=["<",">"];function GT(e,t,n,o){return o.settings.bogusComments?"<?"+MA(e.value,Object.assign({},o.settings.characterReferences,{subset:Ile}))+">":"<!--"+e.value.replace(Qle,a)+"-->";function a(r){return MA(r,Object.assign({},o.settings.characterReferences,{subset:vle}))}}function HT(e,t,n,o){return"<!"+(o.settings.upperDoctype?"DOCTYPE":"doctype")+(o.settings.tightDoctype?"":" ")+"html>"}function Z8(e,t){let n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let o=0,a=n.indexOf(t);for(;a!==-1;)o++,a=n.indexOf(t,a+t.length);return o}function TT(e,t){let n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function UT(e){return e.join(" ").trim()}var _le=/[ \t\n\f\r]/g;function gu(e){return typeof e=="object"?e.type==="text"?OT(e.value):!1:OT(e)}function OT(e){return e.replace(_le,"")===""}var gn=qT(1),V8=qT(-1),xle=[];function qT(e){return t;function t(n,o,a){let r=n?n.children:xle,i=(o||0)+e,A=r[i];if(!a)for(;A&&gu(A);)i+=e,A=r[i];return A}}var Dle={}.hasOwnProperty;function wC(e){return t;function t(n,o,a){return Dle.call(e,n.tagName)&&e[n.tagName](n,o,a)}}var sf=wC({body:Sle,caption:X8,colgroup:X8,dd:Mle,dt:Nle,head:X8,html:Fle,li:Rle,optgroup:$le,option:jle,p:Lle,rp:zT,rt:zT,tbody:Gle,td:YT,tfoot:Hle,th:YT,thead:Ple,tr:Tle});function X8(e,t,n){let o=gn(n,t,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&gu(o.value.charAt(0)))}function Fle(e,t,n){let o=gn(n,t);return!o||o.type!=="comment"}function Sle(e,t,n){let o=gn(n,t);return!o||o.type!=="comment"}function Lle(e,t,n){let o=gn(n,t);return o?o.type==="element"&&(o.tagName==="address"||o.tagName==="article"||o.tagName==="aside"||o.tagName==="blockquote"||o.tagName==="details"||o.tagName==="div"||o.tagName==="dl"||o.tagName==="fieldset"||o.tagName==="figcaption"||o.tagName==="figure"||o.tagName==="footer"||o.tagName==="form"||o.tagName==="h1"||o.tagName==="h2"||o.tagName==="h3"||o.tagName==="h4"||o.tagName==="h5"||o.tagName==="h6"||o.tagName==="header"||o.tagName==="hgroup"||o.tagName==="hr"||o.tagName==="main"||o.tagName==="menu"||o.tagName==="nav"||o.tagName==="ol"||o.tagName==="p"||o.tagName==="pre"||o.tagName==="section"||o.tagName==="table"||o.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function Rle(e,t,n){let o=gn(n,t);return!o||o.type==="element"&&o.tagName==="li"}function Nle(e,t,n){let o=gn(n,t);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function Mle(e,t,n){let o=gn(n,t);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function zT(e,t,n){let o=gn(n,t);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function $le(e,t,n){let o=gn(n,t);return!o||o.type==="element"&&o.tagName==="optgroup"}function jle(e,t,n){let o=gn(n,t);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function Ple(e,t,n){let o=gn(n,t);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function Gle(e,t,n){let o=gn(n,t);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function Hle(e,t,n){return!gn(n,t)}function Tle(e,t,n){let o=gn(n,t);return!o||o.type==="element"&&o.tagName==="tr"}function YT(e,t,n){let o=gn(n,t);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}var KT=wC({body:qle,colgroup:zle,head:Ole,html:Ule,tbody:Yle});function Ule(e){let t=gn(e,-1);return!t||t.type!=="comment"}function Ole(e){let t=new Set;for(let o of e.children)if(o.type==="element"&&(o.tagName==="base"||o.tagName==="title")){if(t.has(o.tagName))return!1;t.add(o.tagName)}let n=e.children[0];return!n||n.type==="element"}function qle(e){let t=gn(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&gu(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function zle(e,t,n){let o=V8(n,t),a=gn(e,-1,!0);return n&&o&&o.type==="element"&&o.tagName==="colgroup"&&sf(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function Yle(e,t,n){let o=V8(n,t),a=gn(e,-1);return n&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&sf(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}var EC={name:[[`
78
78
  \f\r &/=>`.split(""),`