fern-api 5.118.0 → 5.119.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.
Files changed (2) hide show
  1. package/cli.cjs +9 -9
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -168,9 +168,9 @@ GFS4: `),console.error(e)});wE[iB]||(O5a=global[iB]||[],P5a(wE,O5a),wE.close=(fu
168
168
 
169
169
  `)}f.write("payload.value = newResult;"),f.write("return payload;");let E=f.compile();return(x,I)=>E(d,x,I)},o,s=yje,a=!iFt.jitless,u=a&&T7i.value,l=t.catchall,p;e._zod.parse=(d,f)=>{p??(p=n.value);let m=d.value;return s(m)?a&&u&&f?.async===!1&&f.jitless!==!0?(o||(o=i(t.shape)),d=o(d,f),l?u9a([],m,d,f,p,e):d):r(d,f):(d.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),d)}});yFt=xr("$ZodUnion",(e,t)=>{Gu.init(e,t),zp(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),zp(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),zp(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),zp(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){let i=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>aFt(o.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(i,o)=>{if(r)return n(i,o);let s=!1,a=[];for(let c of t.options){let u=c._zod.run({value:i.value,issues:[]},o);if(u instanceof Promise)a.push(u),s=!0;else{if(u.issues.length===0)return u;a.push(u)}}return s?Promise.all(a).then(c=>Y8a(c,i,e,o)):Y8a(a,i,e,o)}});bHi=xr("$ZodXor",(e,t)=>{yFt.init(e,t),t.inclusive=!1;let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(i,o)=>{if(r)return n(i,o);let s=!1,a=[];for(let c of t.options){let u=c._zod.run({value:i.value,issues:[]},o);u instanceof Promise?(a.push(u),s=!0):a.push(u)}return s?Promise.all(a).then(c=>X8a(c,i,e,o)):X8a(a,i,e,o)}}),EHi=xr("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,yFt.init(e,t);let r=e._zod.parse;zp(e._zod,"propValues",()=>{let i={};for(let o of t.options){let s=o._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[a,c]of Object.entries(s)){i[a]||(i[a]=new Set);for(let u of c)i[a].add(u)}}return i});let n=hJe(()=>{let i=t.options,o=new Map;for(let s of i){let a=s._zod.propValues?.[t.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(let c of a){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,s)}}return o});e._zod.parse=(i,o)=>{let s=i.value;if(!yje(s))return i.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),i;let a=n.value.get(s?.[t.discriminator]);return a?a._zod.run(i,o):t.unionFallback?r(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),i)}}),IHi=xr("$ZodIntersection",(e,t)=>{Gu.init(e,t),e._zod.parse=(r,n)=>{let i=r.value,o=t.left._zod.run({value:i,issues:[]},n),s=t.right._zod.run({value:i,issues:[]},n);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([c,u])=>Z8a(r,c,u)):Z8a(r,o,s)}});mEr=xr("$ZodTuple",(e,t)=>{Gu.init(e,t);let r=t.items;e._zod.parse=(n,i)=>{let o=n.value;if(!Array.isArray(o))return n.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let s=[],a=[...r].reverse().findIndex(l=>l._zod.optin!=="optional"),c=a===-1?0:r.length-a;if(!t.rest){let l=o.length>r.length,p=o.length<c-1;if(l||p)return n.issues.push({...l?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:o,inst:e,origin:"array"}),n}let u=-1;for(let l of r){if(u++,u>=o.length&&u>=c)continue;let p=l._zod.run({value:o[u],issues:[]},i);p instanceof Promise?s.push(p.then(d=>aEr(d,n,u))):aEr(p,n,u)}if(t.rest){let l=o.slice(r.length);for(let p of l){u++;let d=t.rest._zod.run({value:p,issues:[]},i);d instanceof Promise?s.push(d.then(f=>aEr(f,n,u))):aEr(d,n,u)}}return s.length?Promise.all(s).then(()=>n):n}});vHi=xr("$ZodRecord",(e,t)=>{Gu.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Sbe(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s){r.value={};let a=new Set;for(let u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){a.add(typeof u=="number"?u.toString():u);let l=t.valueType._zod.run({value:i[u],issues:[]},n);l instanceof Promise?o.push(l.then(p=>{p.issues.length&&r.issues.push(...CL(u,p.issues)),r.value[u]=p.value})):(l.issues.length&&r.issues.push(...CL(u,l.issues)),r.value[u]=l.value)}let c;for(let u in i)a.has(u)||(c=c??[],c.push(u));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:c})}else{r.value={};for(let a of Reflect.ownKeys(i)){if(a==="__proto__")continue;let c=t.keyType._zod.run({value:a,issues:[]},n);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&rEr.test(a)&&c.issues.length){let p=t.keyType._zod.run({value:Number(a),issues:[]},n);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(c=p)}if(c.issues.length){t.mode==="loose"?r.value[a]=i[a]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(p=>$j(p,n,FI())),input:a,path:[a],inst:e});continue}let l=t.valueType._zod.run({value:i[a],issues:[]},n);l instanceof Promise?o.push(l.then(p=>{p.issues.length&&r.issues.push(...CL(a,p.issues)),r.value[c.value]=p.value})):(l.issues.length&&r.issues.push(...CL(a,l.issues)),r.value[c.value]=l.value)}}return o.length?Promise.all(o).then(()=>r):r}}),xHi=xr("$ZodMap",(e,t)=>{Gu.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),r;let o=[];r.value=new Map;for(let[s,a]of i){let c=t.keyType._zod.run({value:s,issues:[]},n),u=t.valueType._zod.run({value:a,issues:[]},n);c instanceof Promise||u instanceof Promise?o.push(Promise.all([c,u]).then(([l,p])=>{$8a(l,p,r,s,i,e,n)})):$8a(c,u,r,s,i,e,n)}return o.length?Promise.all(o).then(()=>r):r}});CHi=xr("$ZodSet",(e,t)=>{Gu.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let s of i){let a=t.valueType._zod.run({value:s,issues:[]},n);a instanceof Promise?o.push(a.then(c=>e9a(c,r))):e9a(a,r)}return o.length?Promise.all(o).then(()=>r):r}});wHi=xr("$ZodEnum",(e,t)=>{Gu.init(e,t);let r=sFt(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(i=>cFt.has(typeof i)).map(i=>typeof i=="string"?hU(i):i.toString()).join("|")})$`),e._zod.parse=(i,o)=>{let s=i.value;return n.has(s)||i.issues.push({code:"invalid_value",values:r,input:s,inst:e}),i}}),SHi=xr("$ZodLiteral",(e,t)=>{if(Gu.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?hU(n):n?hU(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,i)=>{let o=n.value;return r.has(o)||n.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),n}}),THi=xr("$ZodFile",(e,t)=>{Gu.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;return i instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),r}}),OHi=xr("$ZodTransform",(e,t)=>{Gu.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new xbe(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(s=>(r.value=s,r));if(i instanceof Promise)throw new K7;return r.value=i,r}});hEr=xr("$ZodOptional",(e,t)=>{Gu.init(e,t),e._zod.optin="optional",e._zod.optout="optional",zp(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),zp(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${aFt(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(o=>t9a(o,r.value)):t9a(i,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),BHi=xr("$ZodExactOptional",(e,t)=>{hEr.init(e,t),zp(e._zod,"values",()=>t.innerType._zod.values),zp(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,n)=>t.innerType._zod.run(r,n)}),PHi=xr("$ZodNullable",(e,t)=>{Gu.init(e,t),zp(e._zod,"optin",()=>t.innerType._zod.optin),zp(e._zod,"optout",()=>t.innerType._zod.optout),zp(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${aFt(r.source)}|null)$`):void 0}),zp(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),DHi=xr("$ZodDefault",(e,t)=>{Gu.init(e,t),e._zod.optin="optional",zp(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(o=>r9a(o,t)):r9a(i,t)}});RHi=xr("$ZodPrefault",(e,t)=>{Gu.init(e,t),e._zod.optin="optional",zp(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),kHi=xr("$ZodNonOptional",(e,t)=>{Gu.init(e,t),zp(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(o=>n9a(o,e)):n9a(i,e)}});FHi=xr("$ZodSuccess",(e,t)=>{Gu.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new xbe("ZodSuccess");let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(o=>(r.value=o.issues.length===0,r)):(r.value=i.issues.length===0,r)}}),NHi=xr("$ZodCatch",(e,t)=>{Gu.init(e,t),zp(e._zod,"optin",()=>t.innerType._zod.optin),zp(e._zod,"optout",()=>t.innerType._zod.optout),zp(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(s=>$j(s,n,FI()))},input:r.value}),r.issues=[]),r)):(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(o=>$j(o,n,FI()))},input:r.value}),r.issues=[]),r)}}),jHi=xr("$ZodNaN",(e,t)=>{Gu.init(e,t),e._zod.parse=(r,n)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),QHi=xr("$ZodPipe",(e,t)=>{Gu.init(e,t),zp(e._zod,"values",()=>t.in._zod.values),zp(e._zod,"optin",()=>t.in._zod.optin),zp(e._zod,"optout",()=>t.out._zod.optout),zp(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let o=t.out._zod.run(r,n);return o instanceof Promise?o.then(s=>cEr(s,t.in,n)):cEr(o,t.in,n)}let i=t.in._zod.run(r,n);return i instanceof Promise?i.then(o=>cEr(o,t.out,n)):cEr(i,t.out,n)}});bFt=xr("$ZodCodec",(e,t)=>{Gu.init(e,t),zp(e._zod,"values",()=>t.in._zod.values),zp(e._zod,"optin",()=>t.in._zod.optin),zp(e._zod,"optout",()=>t.out._zod.optout),zp(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if((n.direction||"forward")==="forward"){let o=t.in._zod.run(r,n);return o instanceof Promise?o.then(s=>uEr(s,t,n)):uEr(o,t,n)}else{let o=t.out._zod.run(r,n);return o instanceof Promise?o.then(s=>uEr(s,t,n)):uEr(o,t,n)}}});zHi=xr("$ZodReadonly",(e,t)=>{Gu.init(e,t),zp(e._zod,"propValues",()=>t.innerType._zod.propValues),zp(e._zod,"values",()=>t.innerType._zod.values),zp(e._zod,"optin",()=>t.innerType?._zod?.optin),zp(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(i9a):i9a(i)}});MHi=xr("$ZodTemplateLiteral",(e,t)=>{Gu.init(e,t);let r=[];for(let n of t.parts)if(typeof n=="object"&&n!==null){if(!n._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);let i=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!i)throw new Error(`Invalid template literal part: ${n._zod.traits}`);let o=i.startsWith("^")?1:0,s=i.endsWith("$")?i.length-1:i.length;r.push(i.slice(o,s))}else if(n===null||B7i.has(typeof n))r.push(hU(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(n,i)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),n)}),LHi=xr("$ZodFunction",(e,t)=>(Gu.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...n){let i=e._def.input?q0r(e._def.input,n):n,o=Reflect.apply(r,this,i);return e._def.output?q0r(e._def.output,o):o}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...n){let i=e._def.input?await W0r(e._def.input,n):n,o=await Reflect.apply(r,this,i);return e._def.output?await W0r(e._def.output,o):o}},e._zod.parse=(r,n)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let n=e.constructor;return Array.isArray(r[0])?new n({type:"function",input:new mEr({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new n({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let n=e.constructor;return new n({type:"function",input:e._def.input,output:r})},e)),VHi=xr("$ZodPromise",(e,t)=>{Gu.init(e,t),e._zod.parse=(r,n)=>Promise.resolve(r.value).then(i=>t.innerType._zod.run({value:i,issues:[]},n))}),UHi=xr("$ZodLazy",(e,t)=>{Gu.init(e,t),zp(e._zod,"innerType",()=>t.getter()),zp(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),zp(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),zp(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),zp(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,n)=>e._zod.innerType._zod.run(r,n)}),_Hi=xr("$ZodCustom",(e,t)=>{MA.init(e,t),Gu.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(o=>o9a(o,r,n,e));o9a(i,r,n,e)}})});function p9a(){return{localeError:zPf()}}var zPf,f9a=h(()=>{"use strict";Va();zPf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.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 ${i.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 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${a}`}case"invalid_value":return i.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 ${li(i.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: ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${i.maximum.toString()} ${s.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 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${i.minimum.toString()} ${s.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${i.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${r[o.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${i.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${i.keys.length>1?"\u0629":""}: ${tn(i.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${i.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 ${i.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}}});function d9a(){return{localeError:MPf()}}var MPf,m9a=h(()=>{"use strict";Va();MPf=()=>{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(i){return e[i]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${i.expected}, daxil olan ${a}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${a}`}case"invalid_value":return i.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${li(i.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${o}${i.maximum.toString()} ${s.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${o}${i.minimum.toString()} ${s.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[o.format]??i.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${i.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${i.keys.length>1?"lar":""}: ${tn(i.keys,", ")}`;case"invalid_key":return`${i.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${i.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}}});function h9a(e,t,r,n){let i=Math.abs(e),o=i%10,s=i%100;return s>=11&&s<=19?n:o===1?t:o>=2&&o<=4?r:n}function g9a(){return{localeError:LPf()}}var LPf,A9a=h(()=>{"use strict";Va();LPf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${i.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 ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${a}`}case"invalid_value":return i.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 ${li(i.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 ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);if(s){let a=Number(i.maximum),c=h9a(a,s.unit.one,s.unit.few,s.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 ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${o}${i.maximum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);if(s){let a=Number(i.minimum),c=h9a(a,s.unit.one,s.unit.few,s.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 ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${o}${i.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[o.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${i.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${tn(i.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${i.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 ${i.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}}});function y9a(){return{localeError:VPf()}}var VPf,b9a=h(()=>{"use strict";Va();VPf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${i.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 ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${a}`}case"invalid_value":return i.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${li(i.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${i.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${i.minimum.toString()} ${s.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;if(o.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${o.prefix}"`;if(o.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${o.suffix}"`;if(o.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${o.includes}"`;if(o.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${o.pattern}`;let s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${r[o.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${i.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${i.keys.length>1?"\u043E\u0432\u0435":""}: ${tn(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${i.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}}});function E9a(){return{localeError:UPf()}}var UPf,I9a=h(()=>{"use strict";Va();UPf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${i.expected}, s'ha rebut ${a}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${a}`}case"invalid_value":return i.values.length===1?`Valor inv\xE0lid: s'esperava ${li(i.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${tn(i.values," o ")}`;case"too_big":{let o=i.inclusive?"com a m\xE0xim":"menys de",s=t(i.origin);return s?`Massa gran: s'esperava que ${i.origin??"el valor"} contingu\xE9s ${o} ${i.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${i.origin??"el valor"} fos ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?"com a m\xEDnim":"m\xE9s de",s=t(i.origin);return s?`Massa petit: s'esperava que ${i.origin} contingu\xE9s ${o} ${i.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${i.origin} fos ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${r[o.format]??i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${i.divisor}`;case"unrecognized_keys":return`Clau${i.keys.length>1?"s":""} no reconeguda${i.keys.length>1?"s":""}: ${tn(i.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${i.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${i.origin}`;default:return"Entrada inv\xE0lida"}}}});function v9a(){return{localeError:_Pf()}}var _Pf,x9a=h(()=>{"use strict";Va();_Pf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${i.expected}, obdr\u017Eeno ${a}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${a}`}case"invalid_value":return i.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${li(i.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${o}${i.maximum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${o}${i.minimum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${r[o.format]??i.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${i.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${tn(i.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${i.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${i.origin}`;default:return"Neplatn\xFD vstup"}}}});function C9a(){return{localeError:GPf()}}var GPf,w9a=h(()=>{"use strict";Va();GPf=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(i){return e[i]??null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\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"},n={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Ugyldigt input: forventede instanceof ${i.expected}, fik ${a}`:`Ugyldigt input: forventede ${o}, fik ${a}`}case"invalid_value":return i.values.length===1?`Ugyldig v\xE6rdi: forventede ${li(i.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin),a=n[i.origin]??i.origin;return s?`For stor: forventede ${a??"value"} ${s.verb} ${o} ${i.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${a??"value"} havde ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin),a=n[i.origin]??i.origin;return s?`For lille: forventede ${a} ${s.verb} ${o} ${i.minimum.toString()} ${s.unit}`:`For lille: forventede ${a} havde ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??i.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${tn(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${i.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${i.origin}`;default:return"Ugyldigt input"}}}});function S9a(){return{localeError:qPf()}}var qPf,T9a=h(()=>{"use strict";Va();qPf=()=>{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(i){return e[i]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},n={nan:"NaN",number:"Zahl",array:"Array"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${i.expected}, erhalten ${a}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${a}`}case"invalid_value":return i.values.length===1?`Ung\xFCltige Eingabe: erwartet ${li(i.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${o}${i.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${o}${i.maximum.toString()} ist`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`Zu klein: erwartet, dass ${i.origin} ${o}${i.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${i.origin} ${o}${i.minimum.toString()} ist`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${r[o.format]??i.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${i.divisor} sein`;case"unrecognized_keys":return`${i.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${tn(i.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${i.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${i.origin}`;default:return"Ung\xFCltige Eingabe"}}}});function gEr(){return{localeError:WPf()}}var WPf,qHi=h(()=>{"use strict";Va();WPf=()=>{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(i){return e[i]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return`Invalid input: expected ${o}, received ${a}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${li(i.values[0])}`:`Invalid option: expected one of ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`Too big: expected ${i.origin??"value"} to have ${o}${i.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`Too small: expected ${i.origin} to have ${o}${i.minimum.toString()} ${s.unit}`:`Too small: expected ${i.origin} to be ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${tn(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}}});function O9a(){return{localeError:HPf()}}var HPf,B9a=h(()=>{"use strict";Va();HPf=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${i.expected}, ricevi\u011Dis ${a}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${a}`}case"invalid_value":return i.values.length===1?`Nevalida enigo: atendi\u011Dis ${li(i.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${o}${i.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`Tro malgranda: atendi\u011Dis ke ${i.origin} havu ${o}${i.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\u011Dis ke ${i.origin} estu ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${r[o.format]??i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} \u015Dlosilo${i.keys.length>1?"j":""}: ${tn(i.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}}});function P9a(){return{localeError:KPf()}}var KPf,D9a=h(()=>{"use strict";Va();KPf=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(i){return e[i]??null}let r={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"},n={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 i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${i.expected}, recibido ${a}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${a}`}case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: se esperaba ${li(i.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin),a=n[i.origin]??i.origin;return s?`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${o}${i.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${a??"valor"} fuera ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin),a=n[i.origin]??i.origin;return s?`Demasiado peque\xF1o: se esperaba que ${a} tuviera ${o}${i.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${a} fuera ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${r[o.format]??i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Llave${i.keys.length>1?"s":""} desconocida${i.keys.length>1?"s":""}: ${tn(i.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${n[i.origin]??i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${n[i.origin]??i.origin}`;default:return"Entrada inv\xE1lida"}}}});function R9a(){return{localeError:JPf()}}var JPf,k9a=h(()=>{"use strict";Va();JPf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${i.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 ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${a} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return i.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${li(i.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 ${tn(i.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${i.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${i.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${o}${i.minimum.toString()} ${s.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${o}${i.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[o.format]??i.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 ${i.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${i.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${tn(i.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${i.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 ${i.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}}});function F9a(){return{localeError:YPf()}}var YPf,N9a=h(()=>{"use strict";Va();YPf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Virheellinen tyyppi: odotettiin instanceof ${i.expected}, oli ${a}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${a}`}case"invalid_value":return i.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${li(i.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${o}${i.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${o}${i.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${r[o.format]??i.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${i.divisor} monikerta`;case"unrecognized_keys":return`${i.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${tn(i.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 j9a(){return{localeError:XPf()}}var XPf,Q9a=h(()=>{"use strict";Va();XPf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"nombre",array:"tableau"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Entr\xE9e invalide : instanceof ${i.expected} attendu, ${a} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${a} re\xE7u`}case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : ${li(i.values[0])} attendu`:`Option invalide : une valeur parmi ${tn(i.values,"|")} attendue`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`Trop grand : ${i.origin??"valeur"} doit ${s.verb} ${o}${i.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i.origin??"valeur"} doit \xEAtre ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`Trop petit : ${i.origin} doit ${s.verb} ${o}${i.minimum.toString()} ${s.unit}`:`Trop petit : ${i.origin} doit \xEAtre ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${r[o.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${tn(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}}});function z9a(){return{localeError:ZPf()}}var ZPf,M9a=h(()=>{"use strict";Va();ZPf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Entr\xE9e invalide : attendu instanceof ${i.expected}, re\xE7u ${a}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${a}`}case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : attendu ${li(i.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"\u2264":"<",s=t(i.origin);return s?`Trop grand : attendu que ${i.origin??"la valeur"} ait ${o}${i.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${i.origin??"la valeur"} soit ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?"\u2265":">",s=t(i.origin);return s?`Trop petit : attendu que ${i.origin} ait ${o}${i.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${i.origin} soit ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${r[o.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${tn(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}}});function L9a(){return{localeError:$Pf()}}var $Pf,V9a=h(()=>{"use strict";Va();$Pf=()=>{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"}},r=u=>u?e[u]:void 0,n=u=>{let l=r(u);return l?l.label:u??e.unknown.label},i=u=>`\u05D4${n(u)}`,o=u=>(r(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",s=u=>u?t[u]??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"}},c={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let l=u.expected,p=c[l??""]??n(l),d=yi(u.input),f=c[d]??e[d]?.label??d;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${li(u.values[0])}`;let l=u.values.map(f=>li(f));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l[0]} \u05D0\u05D5 ${l[1]}`;let p=l[l.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 ${l.slice(0,-1).join(", ")} \u05D0\u05D5 ${p}`}case"too_big":{let l=s(u.origin),p=i(u.origin??"value");if(u.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",g=u.inclusive?`${u.maximum} ${l?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${l?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${g}`.trim()}let d=u.inclusive?"<=":"<",f=o(u.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${p} ${f} ${d}${u.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${f} ${d}${u.maximum.toString()}`}case"too_small":{let l=s(u.origin),p=i(u.origin??"value");if(u.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let A=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${A}`}let g=u.inclusive?`${u.minimum} ${l?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${l?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${g}`.trim()}let d=u.inclusive?">=":">",f=o(u.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${p} ${f} ${d}${u.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${f} ${d}${u.minimum.toString()}`}case"invalid_format":{let l=u;if(l.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${l.prefix}"`;if(l.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${l.suffix}"`;if(l.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${l.includes}"`;if(l.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 ${l.pattern}`;let p=a[l.format],d=p?.label??l.format,m=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${d} \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 ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${tn(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${i(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}}});function U9a(){return{localeError:eDf()}}var eDf,_9a=h(()=>{"use strict";Va();eDf=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${i.expected}, a kapott \xE9rt\xE9k ${a}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${a}`}case"invalid_value":return i.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${li(i.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`T\xFAl nagy: ${i.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${i.maximum.toString()} ${s.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${i.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} m\xE9rete t\xFAl kicsi ${o}${i.minimum.toString()} ${s.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} t\xFAl kicsi ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[o.format]??i.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${i.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${i.keys.length>1?"s":""}: ${tn(i.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${i.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${i.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}}});function G9a(e,t,r){return Math.abs(e)===1?t:r}function vJe(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}function q9a(){return{localeError:tDf()}}var tDf,W9a=h(()=>{"use strict";Va();tDf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.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 ${i.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 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${a}`}case"invalid_value":return i.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 ${li(i.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 ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);if(s){let a=Number(i.maximum),c=G9a(a,s.unit.one,s.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 ${vJe(i.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${i.maximum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${vJe(i.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);if(s){let a=Number(i.minimum),c=G9a(a,s.unit.one,s.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 ${vJe(i.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${i.minimum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${vJe(i.origin)} \u056C\u056B\u0576\u056B ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[o.format]??i.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 ${i.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${i.keys.length>1?"\u0576\u0565\u0580":""}. ${tn(i.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${vJe(i.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 ${vJe(i.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}}});function H9a(){return{localeError:rDf()}}var rDf,K9a=h(()=>{"use strict";Va();rDf=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(i){return e[i]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Input tidak valid: diharapkan instanceof ${i.expected}, diterima ${a}`:`Input tidak valid: diharapkan ${o}, diterima ${a}`}case"invalid_value":return i.values.length===1?`Input tidak valid: diharapkan ${li(i.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`Terlalu besar: diharapkan ${i.origin??"value"} memiliki ${o}${i.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${i.origin??"value"} menjadi ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`Terlalu kecil: diharapkan ${i.origin} memiliki ${o}${i.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${i.origin} menjadi ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${r[o.format]??i.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${i.keys.length>1?"s":""}: ${tn(i.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${i.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${i.origin}`;default:return"Input tidak valid"}}}});function J9a(){return{localeError:nDf()}}var nDf,Y9a=h(()=>{"use strict";Va();nDf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"n\xFAmer",array:"fylki"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera instanceof ${i.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return i.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${li(i.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin??"gildi"} hafi ${o}${i.maximum.toString()} ${s.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin??"gildi"} s\xE9 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin} hafi ${o}${i.minimum.toString()} ${s.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin} s\xE9 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${r[o.format]??i.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${i.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${i.keys.length>1?"ir lyklar":"ur lykill"}: ${tn(i.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${i.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${i.origin}`;default:return"Rangt gildi"}}}});function X9a(){return{localeError:iDf()}}var iDf,Z9a=h(()=>{"use strict";Va();iDf=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(i){return e[i]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"numero",array:"vettore"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Input non valido: atteso instanceof ${i.expected}, ricevuto ${a}`:`Input non valido: atteso ${o}, ricevuto ${a}`}case"invalid_value":return i.values.length===1?`Input non valido: atteso ${li(i.values[0])}`:`Opzione non valida: atteso uno tra ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`Troppo grande: ${i.origin??"valore"} deve avere ${o}${i.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${i.origin??"valore"} deve essere ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`Troppo piccolo: ${i.origin} deve avere ${o}${i.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${i.origin} deve essere ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${r[o.format]??i.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${i.divisor}`;case"unrecognized_keys":return`Chiav${i.keys.length>1?"i":"e"} non riconosciut${i.keys.length>1?"e":"a"}: ${tn(i.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${i.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${i.origin}`;default:return"Input non valido"}}}});function $9a(){return{localeError:oDf()}}var oDf,eGa=h(()=>{"use strict";Va();oDf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${i.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: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return i.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${li(i.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${tn(i.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=i.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",s=t(i.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${s.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=i.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",s=t(i.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${s.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[o.format]??i.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${i.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${i.keys.length>1?"\u7FA4":""}: ${tn(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}}});function tGa(){return{localeError:sDf()}}var sDf,rGa=h(()=>{"use strict";Va();sDf=()=>{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(i){return e[i]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},n={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.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 ${i.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 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${a}`}case"invalid_value":return i.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${li(i.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${tn(i.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${s.verb} ${o}${i.maximum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin} ${s.verb} ${o}${i.minimum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.prefix}"-\u10D8\u10D7`:o.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.suffix}"-\u10D8\u10D7`:o.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${o.includes}"-\u10E1`:o.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[o.format]??i.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${i.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${i.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${tn(i.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${i.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${i.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}}});function AEr(){return{localeError:aDf()}}var aDf,WHi=h(()=>{"use strict";Va();aDf=()=>{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(i){return e[i]??null}let r={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"},n={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 i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.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 ${i.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 ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${a}`}case"invalid_value":return i.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 ${li(i.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 ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${i.maximum.toString()} ${s.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${o} ${i.minimum.toString()} ${s.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[o.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${tn(i.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 ${i.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 ${i.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 nGa(){return AEr()}var iGa=h(()=>{"use strict";WHi()});function oGa(){return{localeError:cDf()}}var cDf,sGa=h(()=>{"use strict";Va();cDf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${i.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`}case"invalid_value":return i.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${li(i.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${tn(i.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=i.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=t(i.origin),c=a?.unit??"\uC694\uC18C";return a?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()}${c} ${o}${s}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()} ${o}${s}`}case"too_small":{let o=i.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=t(i.origin),c=a?.unit??"\uC694\uC18C";return a?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()}${c} ${o}${s}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()} ${o}${s}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[o.format]??i.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${i.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${tn(i.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${i.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${i.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}}});function aGa(e){let t=Math.abs(e),r=t%10,n=t%100;return n>=11&&n<=19||r===0?"many":r===1?"one":"few"}function cGa(){return{localeError:uDf()}}var EFt,uDf,uGa=h(()=>{"use strict";Va();EFt=e=>e.charAt(0).toUpperCase()+e.slice(1);uDf=()=>{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(i,o,s,a){let c=e[i]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[a][s?"inclusive":"notInclusive"]}}let r={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"},n={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 i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Gautas tipas ${a}, o tik\u0117tasi - instanceof ${i.expected}`:`Gautas tipas ${a}, o tik\u0117tasi - ${o}`}case"invalid_value":return i.values.length===1?`Privalo b\u016Bti ${li(i.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${tn(i.values,"|")} pasirinkim\u0173`;case"too_big":{let o=n[i.origin]??i.origin,s=t(i.origin,aGa(Number(i.maximum)),i.inclusive??!1,"smaller");if(s?.verb)return`${EFt(o??i.origin??"reik\u0161m\u0117")} ${s.verb} ${i.maximum.toString()} ${s.unit??"element\u0173"}`;let a=i.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${EFt(o??i.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${i.maximum.toString()} ${s?.unit}`}case"too_small":{let o=n[i.origin]??i.origin,s=t(i.origin,aGa(Number(i.minimum)),i.inclusive??!1,"bigger");if(s?.verb)return`${EFt(o??i.origin??"reik\u0161m\u0117")} ${s.verb} ${i.minimum.toString()} ${s.unit??"element\u0173"}`;let a=i.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${EFt(o??i.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${i.minimum.toString()} ${s?.unit}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${r[o.format]??i.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${i.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${i.keys.length>1?"i":"as"} rakt${i.keys.length>1?"ai":"as"}: ${tn(i.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=n[i.origin]??i.origin;return`${EFt(o??i.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}}});function lGa(){return{localeError:lDf()}}var lDf,pGa=h(()=>{"use strict";Va();lDf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${i.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 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${a}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${li(i.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 ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${i.maximum.toString()} ${s.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 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${i.minimum.toString()} ${s.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${r[o.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`${i.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"}: ${tn(i.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${i.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 ${i.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}}});function fGa(){return{localeError:pDf()}}var pDf,dGa=h(()=>{"use strict";Va();pDf=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(i){return e[i]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"nombor"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Input tidak sah: dijangka instanceof ${i.expected}, diterima ${a}`:`Input tidak sah: dijangka ${o}, diterima ${a}`}case"invalid_value":return i.values.length===1?`Input tidak sah: dijangka ${li(i.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`Terlalu besar: dijangka ${i.origin??"nilai"} ${s.verb} ${o}${i.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${i.origin??"nilai"} adalah ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`Terlalu kecil: dijangka ${i.origin} ${s.verb} ${o}${i.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${i.origin} adalah ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${r[o.format]??i.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${tn(i.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${i.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${i.origin}`;default:return"Input tidak sah"}}}});function mGa(){return{localeError:fDf()}}var fDf,hGa=h(()=>{"use strict";Va();fDf=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(i){return e[i]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},n={nan:"NaN",number:"getal"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Ongeldige invoer: verwacht instanceof ${i.expected}, ontving ${a}`:`Ongeldige invoer: verwacht ${o}, ontving ${a}`}case"invalid_value":return i.values.length===1?`Ongeldige invoer: verwacht ${li(i.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin),a=i.origin==="date"?"laat":i.origin==="string"?"lang":"groot";return s?`Te ${a}: verwacht dat ${i.origin??"waarde"} ${o}${i.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${a}: verwacht dat ${i.origin??"waarde"} ${o}${i.maximum.toString()} is`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin),a=i.origin==="date"?"vroeg":i.origin==="string"?"kort":"klein";return s?`Te ${a}: verwacht dat ${i.origin} ${o}${i.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${a}: verwacht dat ${i.origin} ${o}${i.minimum.toString()} is`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${r[o.format]??i.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${i.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${i.keys.length>1?"s":""}: ${tn(i.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${i.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${i.origin}`;default:return"Ongeldige invoer"}}}});function gGa(){return{localeError:dDf()}}var dDf,AGa=h(()=>{"use strict";Va();dDf=()=>{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(i){return e[i]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\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"},n={nan:"NaN",number:"tall",array:"liste"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Ugyldig input: forventet instanceof ${i.expected}, fikk ${a}`:`Ugyldig input: forventet ${o}, fikk ${a}`}case"invalid_value":return i.values.length===1?`Ugyldig verdi: forventet ${li(i.values[0])}`:`Ugyldig valg: forventet en av ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${o}${i.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`For lite(n): forventet ${i.origin} til \xE5 ha ${o}${i.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${i.origin} til \xE5 ha ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??i.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${tn(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${i.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${i.origin}`;default:return"Ugyldig input"}}}});function yGa(){return{localeError:mDf()}}var mDf,bGa=h(()=>{"use strict";Va();mDf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`F\xE2sit giren: umulan instanceof ${i.expected}, al\u0131nan ${a}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${a}`}case"invalid_value":return i.values.length===1?`F\xE2sit giren: umulan ${li(i.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${o}${i.maximum.toString()} ${s.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${o}${i.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${o}${i.minimum.toString()} ${s.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${o}${i.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=i;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[o.format]??i.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${i.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${i.keys.length>1?"s":""}: ${tn(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${i.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}}});function EGa(){return{localeError:hDf()}}var hDf,IGa=h(()=>{"use strict";Va();hDf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${i.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 ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${a} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return i.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${li(i.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${tn(i.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${i.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${i.maximum.toString()} \u0648\u064A`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${o}${i.minimum.toString()} ${s.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${o}${i.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[o.format]??i.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${i.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${i.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${tn(i.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${i.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 ${i.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}}});function vGa(){return{localeError:gDf()}}var gDf,xGa=h(()=>{"use strict";Va();gDf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"liczba",array:"tablica"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${i.expected}, otrzymano ${a}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${a}`}case"invalid_value":return i.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${li(i.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${i.maximum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${i.minimum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[o.format]??i.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${i.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${i.keys.length>1?"s":""}: ${tn(i.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${i.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${i.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}}});function CGa(){return{localeError:ADf()}}var ADf,wGa=h(()=>{"use strict";Va();ADf=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"n\xFAmero",null:"nulo"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Tipo inv\xE1lido: esperado instanceof ${i.expected}, recebido ${a}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${a}`}case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: esperado ${li(i.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`Muito grande: esperado que ${i.origin??"valor"} tivesse ${o}${i.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${i.origin??"valor"} fosse ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`Muito pequeno: esperado que ${i.origin} tivesse ${o}${i.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${i.origin} fosse ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${r[o.format]??i.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Chave${i.keys.length>1?"s":""} desconhecida${i.keys.length>1?"s":""}: ${tn(i.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${i.origin}`;default:return"Campo inv\xE1lido"}}}});function SGa(e,t,r,n){let i=Math.abs(e),o=i%10,s=i%100;return s>=11&&s<=19?n:o===1?t:o>=2&&o<=4?r:n}function TGa(){return{localeError:yDf()}}var yDf,OGa=h(()=>{"use strict";Va();yDf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${i.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 ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${a}`}case"invalid_value":return i.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${li(i.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 ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);if(s){let a=Number(i.maximum),c=SGa(a,s.unit.one,s.unit.few,s.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 ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${i.maximum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);if(s){let a=Number(i.minimum),c=SGa(a,s.unit.one,s.unit.few,s.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 ${i.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${i.minimum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[o.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${i.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0438":""}: ${tn(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${i.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 ${i.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 BGa(){return{localeError:bDf()}}var bDf,PGa=h(()=>{"use strict";Va();bDf=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${i.expected}, prejeto ${a}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${a}`}case"invalid_value":return i.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${li(i.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} imelo ${o}${i.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${i.origin} imelo ${o}${i.minimum.toString()} ${s.unit}`:`Premajhno: pri\u010Dakovano, da bo ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${r[o.format]??i.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${i.divisor}`;case"unrecognized_keys":return`Neprepoznan${i.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${tn(i.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${i.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${i.origin}`;default:return"Neveljaven vnos"}}}});function DGa(){return{localeError:EDf()}}var EDf,RGa=h(()=>{"use strict";Va();EDf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"antal",array:"lista"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${i.expected}, fick ${a}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${a}`}case"invalid_value":return i.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${li(i.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${o}${i.maximum.toString()} ${s.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${i.origin??"v\xE4rdet"} att ha ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${o}${i.minimum.toString()} ${s.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${r[o.format]??i.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${tn(i.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${i.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${i.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}}});function kGa(){return{localeError:IDf()}}var IDf,FGa=h(()=>{"use strict";Va();IDf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.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 ${i.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 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a}`}case"invalid_value":return i.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 ${li(i.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 ${tn(i.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`\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 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${i.maximum.toString()} ${s.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 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${i.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`\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 ${i.origin} ${o}${i.minimum.toString()} ${s.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 ${i.origin} ${o}${i.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[o.format]??i.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${i.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${i.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${tn(i.keys,", ")}`;case"invalid_key":return`${i.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`${i.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 NGa(){return{localeError:vDf()}}var vDf,jGa=h(()=>{"use strict";Va();vDf=()=>{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(i){return e[i]??null}let r={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"},n={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 i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.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 ${i.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 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${a}`}case"invalid_value":return i.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${li(i.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 ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=t(i.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${i.maximum.toString()} ${s.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",s=t(i.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${i.minimum.toString()} ${s.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[o.format]??i.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 ${i.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: ${tn(i.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${i.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 ${i.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}}});function QGa(){return{localeError:xDf()}}var xDf,zGa=h(()=>{"use strict";Va();xDf=()=>{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(i){return e[i]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\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"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${i.expected}, al\u0131nan ${a}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${a}`}case"invalid_value":return i.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${li(i.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${o}${i.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${o}${i.minimum.toString()} ${s.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[o.format]??i.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${i.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${i.keys.length>1?"lar":""}: ${tn(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${i.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}}});function yEr(){return{localeError:CDf()}}var CDf,HHi=h(()=>{"use strict";Va();CDf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.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 ${i.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 ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${a}`}case"invalid_value":return i.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 ${li(i.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 ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`\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 ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${s.verb} ${o}${i.maximum.toString()} ${s.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 ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin} ${s.verb} ${o}${i.minimum.toString()} ${s.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin} \u0431\u0443\u0434\u0435 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[o.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0456":""}: ${tn(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${i.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 ${i.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 MGa(){return yEr()}var LGa=h(()=>{"use strict";HHi()});function VGa(){return{localeError:wDf()}}var wDf,UGa=h(()=>{"use strict";Va();wDf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${i.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: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${a} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return i.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${li(i.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${tn(i.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${i.maximum.toString()} ${s.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${i.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u06D2 ${o}${i.minimum.toString()} ${s.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u0627 ${o}${i.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[o.format]??i.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${i.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${i.keys.length>1?"\u0632":""}: ${tn(i.keys,"\u060C ")}`;case"invalid_key":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}}});function _Ga(){return{localeError:SDf()}}var SDf,GGa=h(()=>{"use strict";Va();SDf=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function t(i){return e[i]??null}let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},n={nan:"NaN",number:"raqam",array:"massiv"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${i.expected}, qabul qilingan ${a}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${a}`}case"invalid_value":return i.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${li(i.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`Juda katta: kutilgan ${i.origin??"qiymat"} ${o}${i.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${i.origin??"qiymat"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`Juda kichik: kutilgan ${i.origin} ${o}${i.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[o.format]??i.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${i.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${i.keys.length>1?"lar":""}: ${tn(i.keys,", ")}`;case"invalid_key":return`${i.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${i.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}}});function qGa(){return{localeError:TDf()}}var TDf,WGa=h(()=>{"use strict";Va();TDf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${i.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`}case"invalid_value":return i.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${li(i.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${o}${i.maximum.toString()} ${s.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${s.verb} ${o}${i.minimum.toString()} ${s.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${r[o.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${tn(i.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${i.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 ${i.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}}});function HGa(){return{localeError:ODf()}}var ODf,KGa=h(()=>{"use strict";Va();ODf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${i.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`}case"invalid_value":return i.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${li(i.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${o}${i.maximum.toString()} ${s.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${o}${i.minimum.toString()} ${s.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${r[o.format]??i.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${i.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${tn(i.keys,", ")}`;case"invalid_key":return`${i.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${i.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}}});function JGa(){return{localeError:BDf()}}var BDf,YGa=h(()=>{"use strict";Va();BDf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${i.expected}\uFF0C\u4F46\u6536\u5230 ${a}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${a}`}case"invalid_value":return i.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${li(i.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${o}${i.maximum.toString()} ${s.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${o}${i.minimum.toString()} ${s.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${r[o.format]??i.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${i.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${i.keys.length>1?"\u5011":""}\uFF1A${tn(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}}});function XGa(){return{localeError:PDf()}}var PDf,ZGa=h(()=>{"use strict";Va();PDf=()=>{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(i){return e[i]??null}let r={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"},n={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return i=>{switch(i.code){case"invalid_type":{let o=n[i.expected]??i.expected,s=yi(i.input),a=n[s]??s;return/^[A-Z]/.test(i.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${i.expected}, \xE0m\u1ECD\u0300 a r\xED ${a}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${a}`}case"invalid_value":return i.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${li(i.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${tn(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",s=t(i.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${i.origin??"iye"} ${s.verb} ${o}${i.maximum} ${s.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${i.maximum}`}case"too_small":{let o=i.inclusive?">=":">",s=t(i.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${i.origin} ${s.verb} ${o}${i.minimum} ${s.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${i.minimum}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${r[o.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${tn(i.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${i.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 ${i.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}}});var IFt={};Z(IFt,{ar:()=>p9a,az:()=>d9a,be:()=>g9a,bg:()=>y9a,ca:()=>E9a,cs:()=>v9a,da:()=>C9a,de:()=>S9a,en:()=>gEr,eo:()=>O9a,es:()=>P9a,fa:()=>R9a,fi:()=>F9a,fr:()=>j9a,frCA:()=>z9a,he:()=>L9a,hu:()=>U9a,hy:()=>q9a,id:()=>H9a,is:()=>J9a,it:()=>X9a,ja:()=>$9a,ka:()=>tGa,kh:()=>nGa,km:()=>AEr,ko:()=>oGa,lt:()=>cGa,mk:()=>lGa,ms:()=>fGa,nl:()=>mGa,no:()=>gGa,ota:()=>yGa,pl:()=>vGa,ps:()=>EGa,pt:()=>CGa,ru:()=>TGa,sl:()=>BGa,sv:()=>DGa,ta:()=>kGa,th:()=>NGa,tr:()=>QGa,ua:()=>MGa,uk:()=>yEr,ur:()=>VGa,uz:()=>_Ga,vi:()=>qGa,yo:()=>XGa,zhCN:()=>HGa,zhTW:()=>JGa});var KHi=h(()=>{"use strict";f9a();m9a();A9a();b9a();I9a();x9a();w9a();T9a();qHi();B9a();D9a();k9a();N9a();Q9a();M9a();V9a();_9a();W9a();K9a();Y9a();Z9a();eGa();rGa();iGa();WHi();sGa();uGa();pGa();dGa();hGa();AGa();bGa();IGa();xGa();wGa();OGa();PGa();RGa();FGa();jGa();zGa();LGa();HHi();UGa();GGa();WGa();KGa();YGa();ZGa()});function EEr(){return new bEr}var $Ga,JHi,YHi,bEr,oB,vFt=h(()=>{"use strict";JHi=Symbol("ZodOutput"),YHi=Symbol("ZodInput"),bEr=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let i={...n,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};($Ga=globalThis).__zod_globalRegistry??($Ga.__zod_globalRegistry=EEr());oB=globalThis.__zod_globalRegistry});function XHi(e,t){return new e({type:"string",...Pi(t)})}function ZHi(e,t){return new e({type:"string",coerce:!0,...Pi(t)})}function IEr(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Pi(t)})}function xFt(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Pi(t)})}function vEr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Pi(t)})}function xEr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Pi(t)})}function CEr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Pi(t)})}function wEr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Pi(t)})}function CFt(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Pi(t)})}function SEr(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Pi(t)})}function TEr(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Pi(t)})}function OEr(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Pi(t)})}function BEr(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Pi(t)})}function PEr(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Pi(t)})}function DEr(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Pi(t)})}function REr(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Pi(t)})}function kEr(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Pi(t)})}function FEr(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Pi(t)})}function $Hi(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...Pi(t)})}function NEr(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Pi(t)})}function jEr(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Pi(t)})}function QEr(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Pi(t)})}function zEr(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Pi(t)})}function MEr(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Pi(t)})}function LEr(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Pi(t)})}function tKi(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Pi(t)})}function rKi(e,t){return new e({type:"string",format:"date",check:"string_format",...Pi(t)})}function nKi(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Pi(t)})}function iKi(e,t){return new e({type:"string",format:"duration",check:"string_format",...Pi(t)})}function oKi(e,t){return new e({type:"number",checks:[],...Pi(t)})}function sKi(e,t){return new e({type:"number",coerce:!0,checks:[],...Pi(t)})}function aKi(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Pi(t)})}function cKi(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...Pi(t)})}function uKi(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...Pi(t)})}function lKi(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...Pi(t)})}function pKi(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...Pi(t)})}function fKi(e,t){return new e({type:"boolean",...Pi(t)})}function dKi(e,t){return new e({type:"boolean",coerce:!0,...Pi(t)})}function mKi(e,t){return new e({type:"bigint",...Pi(t)})}function hKi(e,t){return new e({type:"bigint",coerce:!0,...Pi(t)})}function gKi(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...Pi(t)})}function AKi(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...Pi(t)})}function yKi(e,t){return new e({type:"symbol",...Pi(t)})}function bKi(e,t){return new e({type:"undefined",...Pi(t)})}function EKi(e,t){return new e({type:"null",...Pi(t)})}function IKi(e){return new e({type:"any"})}function vKi(e){return new e({type:"unknown"})}function xKi(e,t){return new e({type:"never",...Pi(t)})}function CKi(e,t){return new e({type:"void",...Pi(t)})}function wKi(e,t){return new e({type:"date",...Pi(t)})}function SKi(e,t){return new e({type:"date",coerce:!0,...Pi(t)})}function TKi(e,t){return new e({type:"nan",...Pi(t)})}function lX(e,t){return new iEr({check:"less_than",...Pi(t),value:e,inclusive:!1})}function wL(e,t){return new iEr({check:"less_than",...Pi(t),value:e,inclusive:!0})}function pX(e,t){return new oEr({check:"greater_than",...Pi(t),value:e,inclusive:!1})}function bF(e,t){return new oEr({check:"greater_than",...Pi(t),value:e,inclusive:!0})}function VEr(e){return pX(0,e)}function UEr(e){return lX(0,e)}function _Er(e){return wL(0,e)}function GEr(e){return bF(0,e)}function Obe(e,t){return new dWi({check:"multiple_of",...Pi(t),value:e})}function Bbe(e,t){return new gWi({check:"max_size",...Pi(t),maximum:e})}function fX(e,t){return new AWi({check:"min_size",...Pi(t),minimum:e})}function Ije(e,t){return new yWi({check:"size_equals",...Pi(t),size:e})}function vje(e,t){return new bWi({check:"max_length",...Pi(t),maximum:e})}function tle(e,t){return new EWi({check:"min_length",...Pi(t),minimum:e})}function xje(e,t){return new IWi({check:"length_equals",...Pi(t),length:e})}function xJe(e,t){return new vWi({check:"string_format",format:"regex",...Pi(t),pattern:e})}function CJe(e){return new xWi({check:"string_format",format:"lowercase",...Pi(e)})}function wJe(e){return new CWi({check:"string_format",format:"uppercase",...Pi(e)})}function SJe(e,t){return new wWi({check:"string_format",format:"includes",...Pi(t),includes:e})}function TJe(e,t){return new SWi({check:"string_format",format:"starts_with",...Pi(t),prefix:e})}function OJe(e,t){return new TWi({check:"string_format",format:"ends_with",...Pi(t),suffix:e})}function qEr(e,t,r){return new OWi({check:"property",property:e,schema:t,...Pi(r)})}function BJe(e,t){return new BWi({check:"mime_type",mime:e,...Pi(t)})}function J7(e){return new PWi({check:"overwrite",tx:e})}function PJe(e){return J7(t=>t.normalize(e))}function DJe(){return J7(e=>e.trim())}function RJe(){return J7(e=>e.toLowerCase())}function kJe(){return J7(e=>e.toUpperCase())}function FJe(){return J7(e=>S7i(e))}function OKi(e,t,r){return new e({type:"array",element:t,...Pi(r)})}function RDf(e,t,r){return new e({type:"union",options:t,...Pi(r)})}function kDf(e,t,r){return new e({type:"union",options:t,inclusive:!1,...Pi(r)})}function FDf(e,t,r,n){return new e({type:"union",options:r,discriminator:t,...Pi(n)})}function NDf(e,t,r){return new e({type:"intersection",left:t,right:r})}function jDf(e,t,r,n){let i=r instanceof Gu,o=i?n:r,s=i?r:null;return new e({type:"tuple",items:t,rest:s,...Pi(o)})}function QDf(e,t,r,n){return new e({type:"record",keyType:t,valueType:r,...Pi(n)})}function zDf(e,t,r,n){return new e({type:"map",keyType:t,valueType:r,...Pi(n)})}function MDf(e,t,r){return new e({type:"set",valueType:t,...Pi(r)})}function LDf(e,t,r){let n=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new e({type:"enum",entries:n,...Pi(r)})}function VDf(e,t,r){return new e({type:"enum",entries:t,...Pi(r)})}function UDf(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...Pi(r)})}function BKi(e,t){return new e({type:"file",...Pi(t)})}function _Df(e,t){return new e({type:"transform",transform:t})}function GDf(e,t){return new e({type:"optional",innerType:t})}function qDf(e,t){return new e({type:"nullable",innerType:t})}function WDf(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():O7i(r)}})}function HDf(e,t,r){return new e({type:"nonoptional",innerType:t,...Pi(r)})}function KDf(e,t){return new e({type:"success",innerType:t})}function JDf(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function YDf(e,t,r){return new e({type:"pipe",in:t,out:r})}function XDf(e,t){return new e({type:"readonly",innerType:t})}function ZDf(e,t,r){return new e({type:"template_literal",parts:t,...Pi(r)})}function $Df(e,t){return new e({type:"lazy",getter:t})}function eRf(e,t){return new e({type:"promise",innerType:t})}function PKi(e,t,r){let n=Pi(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function DKi(e,t,r){return new e({type:"custom",check:"custom",fn:t,...Pi(r)})}function RKi(e){let t=eqa(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(gJe(n,r.value,t._zod.def));else{let i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),r.issues.push(gJe(i))}},e(r.value,r)));return t}function eqa(e,t){let r=new MA({check:"custom",...Pi(t)});return r._zod.check=e,r}function kKi(e){let t=new MA({check:"describe"});return t._zod.onattach=[r=>{let n=oB.get(r)??{};oB.add(r,{...n,description:e})}],t._zod.check=()=>{},t}function FKi(e){let t=new MA({check:"meta"});return t._zod.onattach=[r=>{let n=oB.get(r)??{};oB.add(r,{...n,...e})}],t._zod.check=()=>{},t}function NKi(e,t){let r=Pi(t),n=r.truthy??["true","1","yes","on","y","enabled"],i=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(n=n.map(f=>typeof f=="string"?f.toLowerCase():f),i=i.map(f=>typeof f=="string"?f.toLowerCase():f));let o=new Set(n),s=new Set(i),a=e.Codec??bFt,c=e.Boolean??AFt,u=e.String??Eje,l=new u({type:"string",error:r.error}),p=new c({type:"boolean",error:r.error}),d=new a({type:"pipe",in:l,out:p,transform:((f,m)=>{let g=f;return r.case!=="sensitive"&&(g=g.toLowerCase()),o.has(g)?!0:s.has(g)?!1:(m.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...s],input:m.value,inst:d,continue:!1}),{})}),reverseTransform:((f,m)=>f===!0?n[0]||"true":i[0]||"false"),error:r.error});return d}function NJe(e,t,r,n={}){let i=Pi(n),o={...Pi(n),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:a=>r.test(a),...i};return r instanceof RegExp&&(o.pattern=r),new e(o)}var eKi,tqa=h(()=>{"use strict";sEr();vFt();GHi();Va();eKi={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}});function Pbe(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??oB,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 Hh(e,t,r={path:[],schemaPath:[]}){var n;let i=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;let s={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,s);let a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{let l={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,l);else{let d=s.schema,f=t.processors[i.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);f(e,t,d,l)}let p=e._zod.parent;p&&(s.ref||(s.ref=p),Hh(p,t,l),t.seen.get(p).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(s.schema,c),t.io==="input"&&EF(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&s.schema._prefault&&((n=s.schema).default??(n.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function Dbe(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let s of e.seen.entries()){let a=e.metadataRegistry.get(s[0])?.id;if(a){let c=n.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(a,s[0])}}let i=s=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(s[0])?.id,d=e.external.uri??(m=>m);if(p)return{ref:d(p)};let f=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=f,{defId:f,ref:`${d("__shared")}#/${a}/${f}`}}if(s[1]===r)return{ref:"#"};let u=`#/${a}/`,l=s[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:u+l}},o=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:c,defId:u}=i(s);a.def={...a.schema},u&&(a.defId=u);let l=a.schema;for(let p in l)delete l[p];l.$ref=c};if(e.cycles==="throw")for(let s of e.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
170
170
 
171
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let a=s[1];if(t===s[0]){o(s);continue}if(e.external){let u=e.external.registry.get(s[0])?.id;if(t!==s[0]&&u){o(s);continue}}if(e.metadataRegistry.get(s[0])?.id){o(s);continue}if(a.cycle){o(s);continue}if(a.count>1&&e.reused==="ref"){o(s);continue}}}function Rbe(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=s=>{let a=e.seen.get(s);if(a.ref===null)return;let c=a.def??a.schema,u={...c},l=a.ref;if(a.ref=null,l){n(l);let d=e.seen.get(l),f=d.schema;if(f.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(f)):Object.assign(c,f),Object.assign(c,u),s._zod.parent===l)for(let g in c)g==="$ref"||g==="allOf"||g in u||delete c[g];if(f.$ref&&d.def)for(let g in c)g==="$ref"||g==="allOf"||g in d.def&&JSON.stringify(c[g])===JSON.stringify(d.def[g])&&delete c[g]}let p=s._zod.parent;if(p&&p!==l){n(p);let d=e.seen.get(p);if(d?.schema.$ref&&(c.$ref=d.schema.$ref,d.def))for(let f in c)f==="$ref"||f==="allOf"||f in d.def&&JSON.stringify(c[f])===JSON.stringify(d.def[f])&&delete c[f]}e.override({zodSchema:s,jsonSchema:c,path:a.path??[]})};for(let s of[...e.seen.entries()].reverse())n(s[0]);let i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(s)}Object.assign(i,r.def??r.schema);let o=e.external?.defs??{};for(let s of e.seen.entries()){let a=s[1];a.def&&a.defId&&(o[a.defId]=a.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?i.$defs=o:i.definitions=o);try{let s=JSON.parse(JSON.stringify(i));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:jJe(t,"input",e.processors),output:jJe(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function EF(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return EF(n.element,r);if(n.type==="set")return EF(n.valueType,r);if(n.type==="lazy")return EF(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return EF(n.innerType,r);if(n.type==="intersection")return EF(n.left,r)||EF(n.right,r);if(n.type==="record"||n.type==="map")return EF(n.keyType,r)||EF(n.valueType,r);if(n.type==="pipe")return EF(n.in,r)||EF(n.out,r);if(n.type==="object"){for(let i in n.shape)if(EF(n.shape[i],r))return!0;return!1}if(n.type==="union"){for(let i of n.options)if(EF(i,r))return!0;return!1}if(n.type==="tuple"){for(let i of n.items)if(EF(i,r))return!0;return!!(n.rest&&EF(n.rest,r))}return!1}var jKi,jJe,wFt=h(()=>{"use strict";vFt();jKi=(e,t={})=>r=>{let n=Pbe({...r,processors:t});return Hh(e,n),Dbe(n,e),Rbe(n,e)},jJe=(e,t,r={})=>n=>{let{libraryOptions:i,target:o}=n??{},s=Pbe({...i??{},target:o,io:t,processors:r});return Hh(e,s),Dbe(s,e),Rbe(s,e)}});function JEr(e,t){if("_idmap"in e){let n=e,i=Pbe({...t,processors:WEr}),o={};for(let c of n._idmap.entries()){let[u,l]=c;Hh(l,i)}let s={},a={registry:n,uri:t?.uri,defs:o};i.external=a;for(let c of n._idmap.entries()){let[u,l]=c;Dbe(i,l),s[u]=Rbe(i,l)}if(Object.keys(o).length>0){let c=i.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[c]:o}}return{schemas:s}}let r=Pbe({...t,processors:WEr});return Hh(e,r),Dbe(r,e),Rbe(r,e)}var tRf,QKi,zKi,MKi,LKi,VKi,UKi,_Ki,GKi,qKi,WKi,HKi,KKi,JKi,YKi,XKi,ZKi,$Ki,eJi,tJi,rJi,nJi,iJi,oJi,sJi,aJi,HEr,cJi,uJi,lJi,pJi,fJi,dJi,mJi,hJi,gJi,AJi,yJi,KEr,bJi,WEr,SFt=h(()=>{"use strict";wFt();Va();tRf={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},QKi=(e,t,r,n)=>{let i=r;i.type="string";let{minimum:o,maximum:s,format:a,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(i.minLength=o),typeof s=="number"&&(i.maxLength=s),a&&(i.format=tRf[a]??a,i.format===""&&delete i.format,a==="time"&&delete i.format),u&&(i.contentEncoding=u),c&&c.size>0){let l=[...c];l.length===1?i.pattern=l[0].source:l.length>1&&(i.allOf=[...l.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},zKi=(e,t,r,n)=>{let i=r,{minimum:o,maximum:s,format:a,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;typeof a=="string"&&a.includes("int")?i.type="integer":i.type="number",typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l),typeof o=="number"&&(i.minimum=o,typeof l=="number"&&t.target!=="draft-04"&&(l>=o?delete i.minimum:delete i.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=u,i.exclusiveMaximum=!0):i.exclusiveMaximum=u),typeof s=="number"&&(i.maximum=s,typeof u=="number"&&t.target!=="draft-04"&&(u<=s?delete i.maximum:delete i.exclusiveMaximum)),typeof c=="number"&&(i.multipleOf=c)},MKi=(e,t,r,n)=>{r.type="boolean"},LKi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},VKi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},UKi=(e,t,r,n)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},_Ki=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},GKi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},qKi=(e,t,r,n)=>{r.not={}},WKi=(e,t,r,n)=>{},HKi=(e,t,r,n)=>{},KKi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},JKi=(e,t,r,n)=>{let i=e._zod.def,o=sFt(i.entries);o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),r.enum=o},YKi=(e,t,r,n)=>{let i=e._zod.def,o=[];for(let s of i.values)if(s===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(s))}else o.push(s);if(o.length!==0)if(o.length===1){let s=o[0];r.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[s]:r.const=s}else o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),o.every(s=>typeof s=="boolean")&&(r.type="boolean"),o.every(s=>s===null)&&(r.type="null"),r.enum=o},XKi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},ZKi=(e,t,r,n)=>{let i=r,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");i.type="string",i.pattern=o.source},$Ki=(e,t,r,n)=>{let i=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:a,mime:c}=e._zod.bag;s!==void 0&&(o.minLength=s),a!==void 0&&(o.maxLength=a),c?c.length===1?(o.contentMediaType=c[0],Object.assign(i,o)):(Object.assign(i,o),i.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(i,o)},eJi=(e,t,r,n)=>{r.type="boolean"},tJi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},rJi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},nJi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},iJi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},oJi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},sJi=(e,t,r,n)=>{let i=r,o=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;typeof s=="number"&&(i.minItems=s),typeof a=="number"&&(i.maxItems=a),i.type="array",i.items=Hh(o.element,t,{...n,path:[...n.path,"items"]})},aJi=(e,t,r,n)=>{let i=r,o=e._zod.def;i.type="object",i.properties={};let s=o.shape;for(let u in s)i.properties[u]=Hh(s[u],t,{...n,path:[...n.path,"properties",u]});let a=new Set(Object.keys(s)),c=new Set([...a].filter(u=>{let l=o.shape[u]._zod;return t.io==="input"?l.optin===void 0:l.optout===void 0}));c.size>0&&(i.required=Array.from(c)),o.catchall?._zod.def.type==="never"?i.additionalProperties=!1:o.catchall?o.catchall&&(i.additionalProperties=Hh(o.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},HEr=(e,t,r,n)=>{let i=e._zod.def,o=i.inclusive===!1,s=i.options.map((a,c)=>Hh(a,t,{...n,path:[...n.path,o?"oneOf":"anyOf",c]}));o?r.oneOf=s:r.anyOf=s},cJi=(e,t,r,n)=>{let i=e._zod.def,o=Hh(i.left,t,{...n,path:[...n.path,"allOf",0]}),s=Hh(i.right,t,{...n,path:[...n.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(o)?o.allOf:[o],...a(s)?s.allOf:[s]];r.allOf=c},uJi=(e,t,r,n)=>{let i=r,o=e._zod.def;i.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((d,f)=>Hh(d,t,{...n,path:[...n.path,s,f]})),u=o.rest?Hh(o.rest,t,{...n,path:[...n.path,a,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(i.prefixItems=c,u&&(i.items=u)):t.target==="openapi-3.0"?(i.items={anyOf:c},u&&i.items.anyOf.push(u),i.minItems=c.length,u||(i.maxItems=c.length)):(i.items=c,u&&(i.additionalItems=u));let{minimum:l,maximum:p}=e._zod.bag;typeof l=="number"&&(i.minItems=l),typeof p=="number"&&(i.maxItems=p)},lJi=(e,t,r,n)=>{let i=r,o=e._zod.def;i.type="object";let s=o.keyType,c=s._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){let l=Hh(o.valueType,t,{...n,path:[...n.path,"patternProperties","*"]});i.patternProperties={};for(let p of c)i.patternProperties[p.source]=l}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(i.propertyNames=Hh(o.keyType,t,{...n,path:[...n.path,"propertyNames"]})),i.additionalProperties=Hh(o.valueType,t,{...n,path:[...n.path,"additionalProperties"]});let u=s._zod.values;if(u){let l=[...u].filter(p=>typeof p=="string"||typeof p=="number");l.length>0&&(i.required=l)}},pJi=(e,t,r,n)=>{let i=e._zod.def,o=Hh(i.innerType,t,n),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=i.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},fJi=(e,t,r,n)=>{let i=e._zod.def;Hh(i.innerType,t,n);let o=t.seen.get(e);o.ref=i.innerType},dJi=(e,t,r,n)=>{let i=e._zod.def;Hh(i.innerType,t,n);let o=t.seen.get(e);o.ref=i.innerType,r.default=JSON.parse(JSON.stringify(i.defaultValue))},mJi=(e,t,r,n)=>{let i=e._zod.def;Hh(i.innerType,t,n);let o=t.seen.get(e);o.ref=i.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},hJi=(e,t,r,n)=>{let i=e._zod.def;Hh(i.innerType,t,n);let o=t.seen.get(e);o.ref=i.innerType;let s;try{s=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},gJi=(e,t,r,n)=>{let i=e._zod.def,o=t.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;Hh(o,t,n);let s=t.seen.get(e);s.ref=o},AJi=(e,t,r,n)=>{let i=e._zod.def;Hh(i.innerType,t,n);let o=t.seen.get(e);o.ref=i.innerType,r.readOnly=!0},yJi=(e,t,r,n)=>{let i=e._zod.def;Hh(i.innerType,t,n);let o=t.seen.get(e);o.ref=i.innerType},KEr=(e,t,r,n)=>{let i=e._zod.def;Hh(i.innerType,t,n);let o=t.seen.get(e);o.ref=i.innerType},bJi=(e,t,r,n)=>{let i=e._zod.innerType;Hh(i,t,n);let o=t.seen.get(e);o.ref=i},WEr={string:QKi,number:zKi,boolean:MKi,bigint:LKi,symbol:VKi,null:UKi,undefined:_Ki,void:GKi,never:qKi,any:WKi,unknown:HKi,date:KKi,enum:JKi,literal:YKi,nan:XKi,template_literal:ZKi,file:$Ki,success:eJi,custom:tJi,function:rJi,transform:nJi,map:iJi,set:oJi,array:sJi,object:aJi,union:HEr,intersection:cJi,tuple:uJi,record:lJi,nullable:pJi,nonoptional:fJi,default:dJi,prefault:mJi,catch:hJi,pipe:gJi,readonly:AJi,promise:yJi,optional:KEr,lazy:bJi}});var YEr,rqa=h(()=>{"use strict";SFt();wFt();YEr=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 r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Pbe({processors:WEr,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return Hh(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),Dbe(this.ctx,t);let n=Rbe(this.ctx,t),{"~standard":i,...o}=n;return o}}});var nqa={};var iqa=h(()=>{"use strict"});var rle={};Z(rle,{$ZodAny:()=>fHi,$ZodArray:()=>AHi,$ZodAsyncError:()=>K7,$ZodBase64:()=>rHi,$ZodBase64URL:()=>nHi,$ZodBigInt:()=>dEr,$ZodBigIntFormat:()=>cHi,$ZodBoolean:()=>AFt,$ZodCIDRv4:()=>$Wi,$ZodCIDRv6:()=>eHi,$ZodCUID:()=>VWi,$ZodCUID2:()=>UWi,$ZodCatch:()=>NHi,$ZodCheck:()=>MA,$ZodCheckBigIntFormat:()=>hWi,$ZodCheckEndsWith:()=>TWi,$ZodCheckGreaterThan:()=>oEr,$ZodCheckIncludes:()=>wWi,$ZodCheckLengthEquals:()=>IWi,$ZodCheckLessThan:()=>iEr,$ZodCheckLowerCase:()=>xWi,$ZodCheckMaxLength:()=>bWi,$ZodCheckMaxSize:()=>gWi,$ZodCheckMimeType:()=>BWi,$ZodCheckMinLength:()=>EWi,$ZodCheckMinSize:()=>AWi,$ZodCheckMultipleOf:()=>dWi,$ZodCheckNumberFormat:()=>mWi,$ZodCheckOverwrite:()=>PWi,$ZodCheckProperty:()=>OWi,$ZodCheckRegex:()=>vWi,$ZodCheckSizeEquals:()=>yWi,$ZodCheckStartsWith:()=>SWi,$ZodCheckStringFormat:()=>IJe,$ZodCheckUpperCase:()=>CWi,$ZodCodec:()=>bFt,$ZodCustom:()=>_Hi,$ZodCustomStringFormat:()=>sHi,$ZodDate:()=>gHi,$ZodDefault:()=>DHi,$ZodDiscriminatedUnion:()=>EHi,$ZodE164:()=>iHi,$ZodEmail:()=>QWi,$ZodEmoji:()=>MWi,$ZodEncodeError:()=>xbe,$ZodEnum:()=>wHi,$ZodError:()=>pFt,$ZodExactOptional:()=>BHi,$ZodFile:()=>THi,$ZodFunction:()=>LHi,$ZodGUID:()=>NWi,$ZodIPv4:()=>YWi,$ZodIPv6:()=>XWi,$ZodISODate:()=>HWi,$ZodISODateTime:()=>WWi,$ZodISODuration:()=>JWi,$ZodISOTime:()=>KWi,$ZodIntersection:()=>IHi,$ZodJWT:()=>oHi,$ZodKSUID:()=>qWi,$ZodLazy:()=>UHi,$ZodLiteral:()=>SHi,$ZodMAC:()=>ZWi,$ZodMap:()=>xHi,$ZodNaN:()=>jHi,$ZodNanoID:()=>LWi,$ZodNever:()=>mHi,$ZodNonOptional:()=>kHi,$ZodNull:()=>pHi,$ZodNullable:()=>PHi,$ZodNumber:()=>fEr,$ZodNumberFormat:()=>aHi,$ZodObject:()=>l9a,$ZodObjectJIT:()=>yHi,$ZodOptional:()=>hEr,$ZodPipe:()=>QHi,$ZodPrefault:()=>RHi,$ZodPromise:()=>VHi,$ZodReadonly:()=>zHi,$ZodRealError:()=>eQ,$ZodRecord:()=>vHi,$ZodRegistry:()=>bEr,$ZodSet:()=>CHi,$ZodString:()=>Eje,$ZodStringFormat:()=>dA,$ZodSuccess:()=>FHi,$ZodSymbol:()=>uHi,$ZodTemplateLiteral:()=>MHi,$ZodTransform:()=>OHi,$ZodTuple:()=>mEr,$ZodType:()=>Gu,$ZodULID:()=>_Wi,$ZodURL:()=>zWi,$ZodUUID:()=>jWi,$ZodUndefined:()=>lHi,$ZodUnion:()=>yFt,$ZodUnknown:()=>dHi,$ZodVoid:()=>hHi,$ZodXID:()=>GWi,$ZodXor:()=>bHi,$brand:()=>U0r,$constructor:()=>xr,$input:()=>YHi,$output:()=>JHi,Doc:()=>gFt,JSONSchema:()=>nqa,JSONSchemaGenerator:()=>YEr,NEVER:()=>v7i,TimePrecision:()=>eKi,_any:()=>IKi,_array:()=>OKi,_base64:()=>QEr,_base64url:()=>zEr,_bigint:()=>mKi,_boolean:()=>fKi,_catch:()=>JDf,_check:()=>eqa,_cidrv4:()=>NEr,_cidrv6:()=>jEr,_coercedBigint:()=>hKi,_coercedBoolean:()=>dKi,_coercedDate:()=>SKi,_coercedNumber:()=>sKi,_coercedString:()=>ZHi,_cuid:()=>OEr,_cuid2:()=>BEr,_custom:()=>PKi,_date:()=>wKi,_decode:()=>K0r,_decodeAsync:()=>Y0r,_default:()=>WDf,_discriminatedUnion:()=>FDf,_e164:()=>MEr,_email:()=>IEr,_emoji:()=>SEr,_encode:()=>H0r,_encodeAsync:()=>J0r,_endsWith:()=>OJe,_enum:()=>LDf,_file:()=>BKi,_float32:()=>cKi,_float64:()=>uKi,_gt:()=>pX,_gte:()=>bF,_guid:()=>xFt,_includes:()=>SJe,_int:()=>aKi,_int32:()=>lKi,_int64:()=>gKi,_intersection:()=>NDf,_ipv4:()=>kEr,_ipv6:()=>FEr,_isoDate:()=>rKi,_isoDateTime:()=>tKi,_isoDuration:()=>iKi,_isoTime:()=>nKi,_jwt:()=>LEr,_ksuid:()=>REr,_lazy:()=>$Df,_length:()=>xje,_literal:()=>UDf,_lowercase:()=>CJe,_lt:()=>lX,_lte:()=>wL,_mac:()=>$Hi,_map:()=>zDf,_max:()=>wL,_maxLength:()=>vje,_maxSize:()=>Bbe,_mime:()=>BJe,_min:()=>bF,_minLength:()=>tle,_minSize:()=>fX,_multipleOf:()=>Obe,_nan:()=>TKi,_nanoid:()=>TEr,_nativeEnum:()=>VDf,_negative:()=>UEr,_never:()=>xKi,_nonnegative:()=>GEr,_nonoptional:()=>HDf,_nonpositive:()=>_Er,_normalize:()=>PJe,_null:()=>EKi,_nullable:()=>qDf,_number:()=>oKi,_optional:()=>GDf,_overwrite:()=>J7,_parse:()=>AJe,_parseAsync:()=>yJe,_pipe:()=>YDf,_positive:()=>VEr,_promise:()=>eRf,_property:()=>qEr,_readonly:()=>XDf,_record:()=>QDf,_refine:()=>DKi,_regex:()=>xJe,_safeDecode:()=>Z0r,_safeDecodeAsync:()=>eEr,_safeEncode:()=>X0r,_safeEncodeAsync:()=>$0r,_safeParse:()=>bJe,_safeParseAsync:()=>EJe,_set:()=>MDf,_size:()=>Ije,_slugify:()=>FJe,_startsWith:()=>TJe,_string:()=>XHi,_stringFormat:()=>NJe,_stringbool:()=>NKi,_success:()=>KDf,_superRefine:()=>RKi,_symbol:()=>yKi,_templateLiteral:()=>ZDf,_toLowerCase:()=>RJe,_toUpperCase:()=>kJe,_transform:()=>_Df,_trim:()=>DJe,_tuple:()=>jDf,_uint32:()=>pKi,_uint64:()=>AKi,_ulid:()=>PEr,_undefined:()=>bKi,_union:()=>RDf,_unknown:()=>vKi,_uppercase:()=>wJe,_url:()=>CFt,_uuid:()=>vEr,_uuidv4:()=>xEr,_uuidv6:()=>CEr,_uuidv7:()=>wEr,_void:()=>CKi,_xid:()=>DEr,_xor:()=>kDf,clone:()=>yF,config:()=>FI,createStandardJSONSchemaMethod:()=>jJe,createToJSONSchemaMethod:()=>jKi,decode:()=>nPf,decodeAsync:()=>oPf,describe:()=>kKi,encode:()=>rPf,encodeAsync:()=>iPf,extractDefs:()=>Dbe,finalize:()=>Rbe,flattenError:()=>fFt,formatError:()=>dFt,globalConfig:()=>iFt,globalRegistry:()=>oB,initializeContext:()=>Pbe,isValidBase64:()=>tHi,isValidBase64URL:()=>s9a,isValidJWT:()=>a9a,locales:()=>IFt,meta:()=>FKi,parse:()=>q0r,parseAsync:()=>W0r,prettifyError:()=>F7i,process:()=>Hh,regexes:()=>gU,registry:()=>EEr,safeDecode:()=>aPf,safeDecodeAsync:()=>uPf,safeEncode:()=>sPf,safeEncodeAsync:()=>cPf,safeParse:()=>j7i,safeParseAsync:()=>Q7i,toDotPath:()=>U8a,toJSONSchema:()=>JEr,treeifyError:()=>k7i,util:()=>vi,version:()=>RWi});var tQ=h(()=>{"use strict";dJe();z7i();N7i();GHi();sEr();kWi();Va();nEr();KHi();vFt();DWi();tqa();wFt();SFt();rqa();iqa()});var XEr={};Z(XEr,{endsWith:()=>OJe,gt:()=>pX,gte:()=>bF,includes:()=>SJe,length:()=>xje,lowercase:()=>CJe,lt:()=>lX,lte:()=>wL,maxLength:()=>vje,maxSize:()=>Bbe,mime:()=>BJe,minLength:()=>tle,minSize:()=>fX,multipleOf:()=>Obe,negative:()=>UEr,nonnegative:()=>GEr,nonpositive:()=>_Er,normalize:()=>PJe,overwrite:()=>J7,positive:()=>VEr,property:()=>qEr,regex:()=>xJe,size:()=>Ije,slugify:()=>FJe,startsWith:()=>TJe,toLowerCase:()=>RJe,toUpperCase:()=>kJe,trim:()=>DJe,uppercase:()=>wJe});var ZEr=h(()=>{"use strict";tQ()});var QJe={};Z(QJe,{ZodISODate:()=>eIr,ZodISODateTime:()=>$Er,ZodISODuration:()=>rIr,ZodISOTime:()=>tIr,date:()=>IJi,datetime:()=>EJi,duration:()=>xJi,time:()=>vJi});function EJi(e){return tKi($Er,e)}function IJi(e){return rKi(eIr,e)}function vJi(e){return nKi(tIr,e)}function xJi(e){return iKi(rIr,e)}var $Er,eIr,tIr,rIr,TFt=h(()=>{"use strict";tQ();BFt();$Er=xr("ZodISODateTime",(e,t)=>{WWi.init(e,t),mA.init(e,t)});eIr=xr("ZodISODate",(e,t)=>{HWi.init(e,t),mA.init(e,t)});tIr=xr("ZodISOTime",(e,t)=>{KWi.init(e,t),mA.init(e,t)});rIr=xr("ZodISODuration",(e,t)=>{JWi.init(e,t),mA.init(e,t)})});var oqa,nRf,rQ,CJi=h(()=>{"use strict";tQ();tQ();Va();oqa=(e,t)=>{pFt.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>dFt(e,r)},flatten:{value:r=>fFt(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,mJe,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,mJe,2)}},isEmpty:{get(){return e.issues.length===0}}})},nRf=xr("ZodError",oqa),rQ=xr("ZodError",oqa,{Parent:Error})});var wJi,SJi,TJi,OJi,BJi,PJi,DJi,RJi,kJi,FJi,NJi,jJi,QJi=h(()=>{"use strict";tQ();CJi();wJi=AJe(rQ),SJi=yJe(rQ),TJi=bJe(rQ),OJi=EJe(rQ),BJi=H0r(rQ),PJi=K0r(rQ),DJi=J0r(rQ),RJi=Y0r(rQ),kJi=X0r(rQ),FJi=Z0r(rQ),NJi=$0r(rQ),jJi=eEr(rQ)});var OFt={};Z(OFt,{ZodAny:()=>qJi,ZodArray:()=>JJi,ZodBase64:()=>yIr,ZodBase64URL:()=>bIr,ZodBigInt:()=>_Je,ZodBigIntFormat:()=>vIr,ZodBoolean:()=>UJe,ZodCIDRv4:()=>gIr,ZodCIDRv6:()=>AIr,ZodCUID:()=>uIr,ZodCUID2:()=>lIr,ZodCatch:()=>AYi,ZodCodec:()=>PIr,ZodCustom:()=>LFt,ZodCustomStringFormat:()=>LJe,ZodDate:()=>NFt,ZodDefault:()=>pYi,ZodDiscriminatedUnion:()=>XJi,ZodE164:()=>EIr,ZodEmail:()=>sIr,ZodEmoji:()=>aIr,ZodEnum:()=>zJe,ZodExactOptional:()=>cYi,ZodFile:()=>sYi,ZodFunction:()=>SYi,ZodGUID:()=>PFt,ZodIPv4:()=>mIr,ZodIPv6:()=>hIr,ZodIntersection:()=>ZJi,ZodJWT:()=>IIr,ZodKSUID:()=>dIr,ZodLazy:()=>xYi,ZodLiteral:()=>oYi,ZodMAC:()=>zJi,ZodMap:()=>nYi,ZodNaN:()=>bYi,ZodNanoID:()=>cIr,ZodNever:()=>HJi,ZodNonOptional:()=>OIr,ZodNull:()=>_Ji,ZodNullable:()=>lYi,ZodNumber:()=>VJe,ZodNumberFormat:()=>wje,ZodObject:()=>QFt,ZodOptional:()=>TIr,ZodPipe:()=>BIr,ZodPrefault:()=>dYi,ZodPromise:()=>wYi,ZodReadonly:()=>EYi,ZodRecord:()=>MFt,ZodSet:()=>iYi,ZodString:()=>MJe,ZodStringFormat:()=>mA,ZodSuccess:()=>gYi,ZodSymbol:()=>VJi,ZodTemplateLiteral:()=>vYi,ZodTransform:()=>aYi,ZodTuple:()=>eYi,ZodType:()=>sp,ZodULID:()=>pIr,ZodURL:()=>FFt,ZodUUID:()=>dX,ZodUndefined:()=>UJi,ZodUnion:()=>zFt,ZodUnknown:()=>WJi,ZodVoid:()=>KJi,ZodXID:()=>fIr,ZodXor:()=>YJi,_ZodString:()=>oIr,_default:()=>fYi,_function:()=>p7a,any:()=>_qa,array:()=>jFt,base64:()=>Sqa,base64url:()=>Tqa,bigint:()=>zqa,boolean:()=>LJi,catch:()=>yYi,check:()=>f7a,cidrv4:()=>Cqa,cidrv6:()=>wqa,codec:()=>c7a,cuid:()=>gqa,cuid2:()=>Aqa,custom:()=>d7a,date:()=>qqa,describe:()=>m7a,discriminatedUnion:()=>Xqa,e164:()=>Oqa,email:()=>sqa,emoji:()=>mqa,enum:()=>wIr,exactOptional:()=>uYi,file:()=>i7a,float32:()=>Fqa,float64:()=>Nqa,function:()=>p7a,guid:()=>aqa,hash:()=>kqa,hex:()=>Rqa,hostname:()=>Dqa,httpUrl:()=>dqa,instanceof:()=>g7a,int:()=>iIr,int32:()=>jqa,int64:()=>Mqa,intersection:()=>$Ji,ipv4:()=>Iqa,ipv6:()=>xqa,json:()=>y7a,jwt:()=>Bqa,keyof:()=>Wqa,ksuid:()=>Eqa,lazy:()=>CYi,literal:()=>n7a,looseObject:()=>Jqa,looseRecord:()=>$qa,mac:()=>vqa,map:()=>e7a,meta:()=>h7a,nan:()=>a7a,nanoid:()=>hqa,nativeEnum:()=>r7a,never:()=>xIr,nonoptional:()=>hYi,null:()=>GJi,nullable:()=>RFt,nullish:()=>o7a,number:()=>MJi,object:()=>Hqa,optional:()=>DFt,partialRecord:()=>Zqa,pipe:()=>kFt,prefault:()=>mYi,preprocess:()=>b7a,promise:()=>l7a,readonly:()=>IYi,record:()=>rYi,refine:()=>TYi,set:()=>t7a,strictObject:()=>Kqa,string:()=>nIr,stringFormat:()=>Pqa,stringbool:()=>A7a,success:()=>s7a,superRefine:()=>OYi,symbol:()=>Vqa,templateLiteral:()=>u7a,transform:()=>SIr,tuple:()=>tYi,uint32:()=>Qqa,uint64:()=>Lqa,ulid:()=>yqa,undefined:()=>Uqa,union:()=>CIr,unknown:()=>Cje,url:()=>fqa,uuid:()=>cqa,uuidv4:()=>uqa,uuidv6:()=>lqa,uuidv7:()=>pqa,void:()=>Gqa,xid:()=>bqa,xor:()=>Yqa});function nIr(e){return XHi(MJe,e)}function sqa(e){return IEr(sIr,e)}function aqa(e){return xFt(PFt,e)}function cqa(e){return vEr(dX,e)}function uqa(e){return xEr(dX,e)}function lqa(e){return CEr(dX,e)}function pqa(e){return wEr(dX,e)}function fqa(e){return CFt(FFt,e)}function dqa(e){return CFt(FFt,{protocol:/^https?$/,hostname:gU.domain,...vi.normalizeParams(e)})}function mqa(e){return SEr(aIr,e)}function hqa(e){return TEr(cIr,e)}function gqa(e){return OEr(uIr,e)}function Aqa(e){return BEr(lIr,e)}function yqa(e){return PEr(pIr,e)}function bqa(e){return DEr(fIr,e)}function Eqa(e){return REr(dIr,e)}function Iqa(e){return kEr(mIr,e)}function vqa(e){return $Hi(zJi,e)}function xqa(e){return FEr(hIr,e)}function Cqa(e){return NEr(gIr,e)}function wqa(e){return jEr(AIr,e)}function Sqa(e){return QEr(yIr,e)}function Tqa(e){return zEr(bIr,e)}function Oqa(e){return MEr(EIr,e)}function Bqa(e){return LEr(IIr,e)}function Pqa(e,t,r={}){return NJe(LJe,e,t,r)}function Dqa(e){return NJe(LJe,"hostname",gU.hostname,e)}function Rqa(e){return NJe(LJe,"hex",gU.hex,e)}function kqa(e,t){let r=t?.enc??"hex",n=`${e}_${r}`,i=gU[n];if(!i)throw new Error(`Unrecognized hash format: ${n}`);return NJe(LJe,n,i,t)}function MJi(e){return oKi(VJe,e)}function iIr(e){return aKi(wje,e)}function Fqa(e){return cKi(wje,e)}function Nqa(e){return uKi(wje,e)}function jqa(e){return lKi(wje,e)}function Qqa(e){return pKi(wje,e)}function LJi(e){return fKi(UJe,e)}function zqa(e){return mKi(_Je,e)}function Mqa(e){return gKi(vIr,e)}function Lqa(e){return AKi(vIr,e)}function Vqa(e){return yKi(VJi,e)}function Uqa(e){return bKi(UJi,e)}function GJi(e){return EKi(_Ji,e)}function _qa(){return IKi(qJi)}function Cje(){return vKi(WJi)}function xIr(e){return xKi(HJi,e)}function Gqa(e){return CKi(KJi,e)}function qqa(e){return wKi(NFt,e)}function jFt(e,t){return OKi(JJi,e,t)}function Wqa(e){let t=e._zod.def.shape;return wIr(Object.keys(t))}function Hqa(e,t){let r={type:"object",shape:e??{},...vi.normalizeParams(t)};return new QFt(r)}function Kqa(e,t){return new QFt({type:"object",shape:e,catchall:xIr(),...vi.normalizeParams(t)})}function Jqa(e,t){return new QFt({type:"object",shape:e,catchall:Cje(),...vi.normalizeParams(t)})}function CIr(e,t){return new zFt({type:"union",options:e,...vi.normalizeParams(t)})}function Yqa(e,t){return new YJi({type:"union",options:e,inclusive:!1,...vi.normalizeParams(t)})}function Xqa(e,t,r){return new XJi({type:"union",options:t,discriminator:e,...vi.normalizeParams(r)})}function $Ji(e,t){return new ZJi({type:"intersection",left:e,right:t})}function tYi(e,t,r){let n=t instanceof Gu,i=n?r:t,o=n?t:null;return new eYi({type:"tuple",items:e,rest:o,...vi.normalizeParams(i)})}function rYi(e,t,r){return new MFt({type:"record",keyType:e,valueType:t,...vi.normalizeParams(r)})}function Zqa(e,t,r){let n=yF(e);return n._zod.values=void 0,new MFt({type:"record",keyType:n,valueType:t,...vi.normalizeParams(r)})}function $qa(e,t,r){return new MFt({type:"record",keyType:e,valueType:t,mode:"loose",...vi.normalizeParams(r)})}function e7a(e,t,r){return new nYi({type:"map",keyType:e,valueType:t,...vi.normalizeParams(r)})}function t7a(e,t){return new iYi({type:"set",valueType:e,...vi.normalizeParams(t)})}function wIr(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new zJe({type:"enum",entries:r,...vi.normalizeParams(t)})}function r7a(e,t){return new zJe({type:"enum",entries:e,...vi.normalizeParams(t)})}function n7a(e,t){return new oYi({type:"literal",values:Array.isArray(e)?e:[e],...vi.normalizeParams(t)})}function i7a(e){return BKi(sYi,e)}function SIr(e){return new aYi({type:"transform",transform:e})}function DFt(e){return new TIr({type:"optional",innerType:e})}function uYi(e){return new cYi({type:"optional",innerType:e})}function RFt(e){return new lYi({type:"nullable",innerType:e})}function o7a(e){return DFt(RFt(e))}function fYi(e,t){return new pYi({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():vi.shallowClone(t)}})}function mYi(e,t){return new dYi({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():vi.shallowClone(t)}})}function hYi(e,t){return new OIr({type:"nonoptional",innerType:e,...vi.normalizeParams(t)})}function s7a(e){return new gYi({type:"success",innerType:e})}function yYi(e,t){return new AYi({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}function a7a(e){return TKi(bYi,e)}function kFt(e,t){return new BIr({type:"pipe",in:e,out:t})}function c7a(e,t,r){return new PIr({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function IYi(e){return new EYi({type:"readonly",innerType:e})}function u7a(e,t){return new vYi({type:"template_literal",parts:e,...vi.normalizeParams(t)})}function CYi(e){return new xYi({type:"lazy",getter:e})}function l7a(e){return new wYi({type:"promise",innerType:e})}function p7a(e){return new SYi({type:"function",input:Array.isArray(e?.input)?tYi(e?.input):e?.input??jFt(Cje()),output:e?.output??Cje()})}function f7a(e){let t=new MA({check:"custom"});return t._zod.check=e,t}function d7a(e,t){return PKi(LFt,e??(()=>!0),t)}function TYi(e,t={}){return DKi(LFt,e,t)}function OYi(e){return RKi(e)}function g7a(e,t={}){let r=new LFt({type:"custom",check:"custom",fn:n=>n instanceof e,abort:!0,...vi.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=n=>{n.value instanceof e||n.issues.push({code:"invalid_type",expected:e.name,input:n.value,inst:r,path:[...r._zod.def.path??[]]})},r}function y7a(e){let t=CYi(()=>CIr([nIr(e),MJi(),LJi(),GJi(),jFt(t),rYi(nIr(),t)]));return t}function b7a(e,t){return kFt(SIr(e),t)}var sp,oIr,MJe,mA,sIr,PFt,dX,FFt,aIr,cIr,uIr,lIr,pIr,fIr,dIr,mIr,zJi,hIr,gIr,AIr,yIr,bIr,EIr,IIr,LJe,VJe,wje,UJe,_Je,vIr,VJi,UJi,_Ji,qJi,WJi,HJi,KJi,NFt,JJi,QFt,zFt,YJi,XJi,ZJi,eYi,MFt,nYi,iYi,zJe,oYi,sYi,aYi,TIr,cYi,lYi,pYi,dYi,OIr,gYi,AYi,bYi,BIr,PIr,EYi,vYi,xYi,wYi,SYi,LFt,m7a,h7a,A7a,BFt=h(()=>{"use strict";tQ();tQ();SFt();wFt();ZEr();TFt();QJi();sp=xr("ZodType",(e,t)=>(Gu.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:jJe(e,"input"),output:jJe(e,"output")}}),e.toJSONSchema=jKi(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(vi.mergeDefs(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(r,n)=>yF(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>wJi(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>TJi(e,r,n),e.parseAsync=async(r,n)=>SJi(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>OJi(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>BJi(e,r,n),e.decode=(r,n)=>PJi(e,r,n),e.encodeAsync=async(r,n)=>DJi(e,r,n),e.decodeAsync=async(r,n)=>RJi(e,r,n),e.safeEncode=(r,n)=>kJi(e,r,n),e.safeDecode=(r,n)=>FJi(e,r,n),e.safeEncodeAsync=async(r,n)=>NJi(e,r,n),e.safeDecodeAsync=async(r,n)=>jJi(e,r,n),e.refine=(r,n)=>e.check(TYi(r,n)),e.superRefine=r=>e.check(OYi(r)),e.overwrite=r=>e.check(J7(r)),e.optional=()=>DFt(e),e.exactOptional=()=>uYi(e),e.nullable=()=>RFt(e),e.nullish=()=>DFt(RFt(e)),e.nonoptional=r=>hYi(e,r),e.array=()=>jFt(e),e.or=r=>CIr([e,r]),e.and=r=>$Ji(e,r),e.transform=r=>kFt(e,SIr(r)),e.default=r=>fYi(e,r),e.prefault=r=>mYi(e,r),e.catch=r=>yYi(e,r),e.pipe=r=>kFt(e,r),e.readonly=()=>IYi(e),e.describe=r=>{let n=e.clone();return oB.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return oB.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return oB.get(e);let n=e.clone();return oB.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),oIr=xr("_ZodString",(e,t)=>{Eje.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(n,i,o)=>QKi(e,n,i,o);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(xJe(...n)),e.includes=(...n)=>e.check(SJe(...n)),e.startsWith=(...n)=>e.check(TJe(...n)),e.endsWith=(...n)=>e.check(OJe(...n)),e.min=(...n)=>e.check(tle(...n)),e.max=(...n)=>e.check(vje(...n)),e.length=(...n)=>e.check(xje(...n)),e.nonempty=(...n)=>e.check(tle(1,...n)),e.lowercase=n=>e.check(CJe(n)),e.uppercase=n=>e.check(wJe(n)),e.trim=()=>e.check(DJe()),e.normalize=(...n)=>e.check(PJe(...n)),e.toLowerCase=()=>e.check(RJe()),e.toUpperCase=()=>e.check(kJe()),e.slugify=()=>e.check(FJe())}),MJe=xr("ZodString",(e,t)=>{Eje.init(e,t),oIr.init(e,t),e.email=r=>e.check(IEr(sIr,r)),e.url=r=>e.check(CFt(FFt,r)),e.jwt=r=>e.check(LEr(IIr,r)),e.emoji=r=>e.check(SEr(aIr,r)),e.guid=r=>e.check(xFt(PFt,r)),e.uuid=r=>e.check(vEr(dX,r)),e.uuidv4=r=>e.check(xEr(dX,r)),e.uuidv6=r=>e.check(CEr(dX,r)),e.uuidv7=r=>e.check(wEr(dX,r)),e.nanoid=r=>e.check(TEr(cIr,r)),e.guid=r=>e.check(xFt(PFt,r)),e.cuid=r=>e.check(OEr(uIr,r)),e.cuid2=r=>e.check(BEr(lIr,r)),e.ulid=r=>e.check(PEr(pIr,r)),e.base64=r=>e.check(QEr(yIr,r)),e.base64url=r=>e.check(zEr(bIr,r)),e.xid=r=>e.check(DEr(fIr,r)),e.ksuid=r=>e.check(REr(dIr,r)),e.ipv4=r=>e.check(kEr(mIr,r)),e.ipv6=r=>e.check(FEr(hIr,r)),e.cidrv4=r=>e.check(NEr(gIr,r)),e.cidrv6=r=>e.check(jEr(AIr,r)),e.e164=r=>e.check(MEr(EIr,r)),e.datetime=r=>e.check(EJi(r)),e.date=r=>e.check(IJi(r)),e.time=r=>e.check(vJi(r)),e.duration=r=>e.check(xJi(r))});mA=xr("ZodStringFormat",(e,t)=>{dA.init(e,t),oIr.init(e,t)}),sIr=xr("ZodEmail",(e,t)=>{QWi.init(e,t),mA.init(e,t)});PFt=xr("ZodGUID",(e,t)=>{NWi.init(e,t),mA.init(e,t)});dX=xr("ZodUUID",(e,t)=>{jWi.init(e,t),mA.init(e,t)});FFt=xr("ZodURL",(e,t)=>{zWi.init(e,t),mA.init(e,t)});aIr=xr("ZodEmoji",(e,t)=>{MWi.init(e,t),mA.init(e,t)});cIr=xr("ZodNanoID",(e,t)=>{LWi.init(e,t),mA.init(e,t)});uIr=xr("ZodCUID",(e,t)=>{VWi.init(e,t),mA.init(e,t)});lIr=xr("ZodCUID2",(e,t)=>{UWi.init(e,t),mA.init(e,t)});pIr=xr("ZodULID",(e,t)=>{_Wi.init(e,t),mA.init(e,t)});fIr=xr("ZodXID",(e,t)=>{GWi.init(e,t),mA.init(e,t)});dIr=xr("ZodKSUID",(e,t)=>{qWi.init(e,t),mA.init(e,t)});mIr=xr("ZodIPv4",(e,t)=>{YWi.init(e,t),mA.init(e,t)});zJi=xr("ZodMAC",(e,t)=>{ZWi.init(e,t),mA.init(e,t)});hIr=xr("ZodIPv6",(e,t)=>{XWi.init(e,t),mA.init(e,t)});gIr=xr("ZodCIDRv4",(e,t)=>{$Wi.init(e,t),mA.init(e,t)});AIr=xr("ZodCIDRv6",(e,t)=>{eHi.init(e,t),mA.init(e,t)});yIr=xr("ZodBase64",(e,t)=>{rHi.init(e,t),mA.init(e,t)});bIr=xr("ZodBase64URL",(e,t)=>{nHi.init(e,t),mA.init(e,t)});EIr=xr("ZodE164",(e,t)=>{iHi.init(e,t),mA.init(e,t)});IIr=xr("ZodJWT",(e,t)=>{oHi.init(e,t),mA.init(e,t)});LJe=xr("ZodCustomStringFormat",(e,t)=>{sHi.init(e,t),mA.init(e,t)});VJe=xr("ZodNumber",(e,t)=>{fEr.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(n,i,o)=>zKi(e,n,i,o),e.gt=(n,i)=>e.check(pX(n,i)),e.gte=(n,i)=>e.check(bF(n,i)),e.min=(n,i)=>e.check(bF(n,i)),e.lt=(n,i)=>e.check(lX(n,i)),e.lte=(n,i)=>e.check(wL(n,i)),e.max=(n,i)=>e.check(wL(n,i)),e.int=n=>e.check(iIr(n)),e.safe=n=>e.check(iIr(n)),e.positive=n=>e.check(pX(0,n)),e.nonnegative=n=>e.check(bF(0,n)),e.negative=n=>e.check(lX(0,n)),e.nonpositive=n=>e.check(wL(0,n)),e.multipleOf=(n,i)=>e.check(Obe(n,i)),e.step=(n,i)=>e.check(Obe(n,i)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});wje=xr("ZodNumberFormat",(e,t)=>{aHi.init(e,t),VJe.init(e,t)});UJe=xr("ZodBoolean",(e,t)=>{AFt.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>MKi(e,r,n,i)});_Je=xr("ZodBigInt",(e,t)=>{dEr.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(n,i,o)=>LKi(e,n,i,o),e.gte=(n,i)=>e.check(bF(n,i)),e.min=(n,i)=>e.check(bF(n,i)),e.gt=(n,i)=>e.check(pX(n,i)),e.gte=(n,i)=>e.check(bF(n,i)),e.min=(n,i)=>e.check(bF(n,i)),e.lt=(n,i)=>e.check(lX(n,i)),e.lte=(n,i)=>e.check(wL(n,i)),e.max=(n,i)=>e.check(wL(n,i)),e.positive=n=>e.check(pX(BigInt(0),n)),e.negative=n=>e.check(lX(BigInt(0),n)),e.nonpositive=n=>e.check(wL(BigInt(0),n)),e.nonnegative=n=>e.check(bF(BigInt(0),n)),e.multipleOf=(n,i)=>e.check(Obe(n,i));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});vIr=xr("ZodBigIntFormat",(e,t)=>{cHi.init(e,t),_Je.init(e,t)});VJi=xr("ZodSymbol",(e,t)=>{uHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>VKi(e,r,n,i)});UJi=xr("ZodUndefined",(e,t)=>{lHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>_Ki(e,r,n,i)});_Ji=xr("ZodNull",(e,t)=>{pHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>UKi(e,r,n,i)});qJi=xr("ZodAny",(e,t)=>{fHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>WKi(e,r,n,i)});WJi=xr("ZodUnknown",(e,t)=>{dHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>HKi(e,r,n,i)});HJi=xr("ZodNever",(e,t)=>{mHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>qKi(e,r,n,i)});KJi=xr("ZodVoid",(e,t)=>{hHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>GKi(e,r,n,i)});NFt=xr("ZodDate",(e,t)=>{gHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(n,i,o)=>KKi(e,n,i,o),e.min=(n,i)=>e.check(bF(n,i)),e.max=(n,i)=>e.check(wL(n,i));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});JJi=xr("ZodArray",(e,t)=>{AHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>sJi(e,r,n,i),e.element=t.element,e.min=(r,n)=>e.check(tle(r,n)),e.nonempty=r=>e.check(tle(1,r)),e.max=(r,n)=>e.check(vje(r,n)),e.length=(r,n)=>e.check(xje(r,n)),e.unwrap=()=>e.element});QFt=xr("ZodObject",(e,t)=>{yHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>aJi(e,r,n,i),vi.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>wIr(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Cje()}),e.loose=()=>e.clone({...e._zod.def,catchall:Cje()}),e.strict=()=>e.clone({...e._zod.def,catchall:xIr()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>vi.extend(e,r),e.safeExtend=r=>vi.safeExtend(e,r),e.merge=r=>vi.merge(e,r),e.pick=r=>vi.pick(e,r),e.omit=r=>vi.omit(e,r),e.partial=(...r)=>vi.partial(TIr,e,r[0]),e.required=(...r)=>vi.required(OIr,e,r[0])});zFt=xr("ZodUnion",(e,t)=>{yFt.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>HEr(e,r,n,i),e.options=t.options});YJi=xr("ZodXor",(e,t)=>{zFt.init(e,t),bHi.init(e,t),e._zod.processJSONSchema=(r,n,i)=>HEr(e,r,n,i),e.options=t.options});XJi=xr("ZodDiscriminatedUnion",(e,t)=>{zFt.init(e,t),EHi.init(e,t)});ZJi=xr("ZodIntersection",(e,t)=>{IHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>cJi(e,r,n,i)});eYi=xr("ZodTuple",(e,t)=>{mEr.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>uJi(e,r,n,i),e.rest=r=>e.clone({...e._zod.def,rest:r})});MFt=xr("ZodRecord",(e,t)=>{vHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>lJi(e,r,n,i),e.keyType=t.keyType,e.valueType=t.valueType});nYi=xr("ZodMap",(e,t)=>{xHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>iJi(e,r,n,i),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(fX(...r)),e.nonempty=r=>e.check(fX(1,r)),e.max=(...r)=>e.check(Bbe(...r)),e.size=(...r)=>e.check(Ije(...r))});iYi=xr("ZodSet",(e,t)=>{CHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>oJi(e,r,n,i),e.min=(...r)=>e.check(fX(...r)),e.nonempty=r=>e.check(fX(1,r)),e.max=(...r)=>e.check(Bbe(...r)),e.size=(...r)=>e.check(Ije(...r))});zJe=xr("ZodEnum",(e,t)=>{wHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(n,i,o)=>JKi(e,n,i,o),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(n,i)=>{let o={};for(let s of n)if(r.has(s))o[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new zJe({...t,checks:[],...vi.normalizeParams(i),entries:o})},e.exclude=(n,i)=>{let o={...t.entries};for(let s of n)if(r.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new zJe({...t,checks:[],...vi.normalizeParams(i),entries:o})}});oYi=xr("ZodLiteral",(e,t)=>{SHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>YKi(e,r,n,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});sYi=xr("ZodFile",(e,t)=>{THi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>$Ki(e,r,n,i),e.min=(r,n)=>e.check(fX(r,n)),e.max=(r,n)=>e.check(Bbe(r,n)),e.mime=(r,n)=>e.check(BJe(Array.isArray(r)?r:[r],n))});aYi=xr("ZodTransform",(e,t)=>{OHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>nJi(e,r,n,i),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new xbe(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(vi.issue(o,r.value,t));else{let s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(vi.issue(s))}};let i=t.transform(r.value,r);return i instanceof Promise?i.then(o=>(r.value=o,r)):(r.value=i,r)}});TIr=xr("ZodOptional",(e,t)=>{hEr.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>KEr(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});cYi=xr("ZodExactOptional",(e,t)=>{BHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>KEr(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});lYi=xr("ZodNullable",(e,t)=>{PHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>pJi(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});pYi=xr("ZodDefault",(e,t)=>{DHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>dJi(e,r,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});dYi=xr("ZodPrefault",(e,t)=>{RHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>mJi(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});OIr=xr("ZodNonOptional",(e,t)=>{kHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>fJi(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});gYi=xr("ZodSuccess",(e,t)=>{FHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>eJi(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});AYi=xr("ZodCatch",(e,t)=>{NHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>hJi(e,r,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});bYi=xr("ZodNaN",(e,t)=>{jHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>XKi(e,r,n,i)});BIr=xr("ZodPipe",(e,t)=>{QHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>gJi(e,r,n,i),e.in=t.in,e.out=t.out});PIr=xr("ZodCodec",(e,t)=>{BIr.init(e,t),bFt.init(e,t)});EYi=xr("ZodReadonly",(e,t)=>{zHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>AJi(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});vYi=xr("ZodTemplateLiteral",(e,t)=>{MHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>ZKi(e,r,n,i)});xYi=xr("ZodLazy",(e,t)=>{UHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>bJi(e,r,n,i),e.unwrap=()=>e._zod.def.getter()});wYi=xr("ZodPromise",(e,t)=>{VHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>yJi(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});SYi=xr("ZodFunction",(e,t)=>{LHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>rJi(e,r,n,i)});LFt=xr("ZodCustom",(e,t)=>{_Hi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>tJi(e,r,n,i)});m7a=kKi,h7a=FKi;A7a=(...e)=>NKi({Codec:PIr,Boolean:UJe,String:MJe},...e)});function sRf(e){FI({customError:e})}function aRf(){return FI().customError}var oRf,BYi,E7a=h(()=>{"use strict";tQ();tQ();oRf={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"};BYi||(BYi={})});function uRf(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function lRf(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let n=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===n){let i=r[1];if(!i||!t.defs[i])throw new Error(`Reference not found: ${e}`);return t.defs[i]}throw new Error(`Reference not found: ${e}`)}function I7a(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return Qo.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 i=e.$ref;if(t.refs.has(i))return t.refs.get(i);if(t.processing.has(i))return Qo.lazy(()=>{if(!t.refs.has(i))throw new Error(`Circular reference not resolved: ${i}`);return t.refs.get(i)});t.processing.add(i);let o=lRf(i,t),s=pD(o,t);return t.refs.set(i,s),t.processing.delete(i),s}if(e.enum!==void 0){let i=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&i.length===1&&i[0]===null)return Qo.null();if(i.length===0)return Qo.never();if(i.length===1)return Qo.literal(i[0]);if(i.every(s=>typeof s=="string"))return Qo.enum(i);let o=i.map(s=>Qo.literal(s));return o.length<2?o[0]:Qo.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return Qo.literal(e.const);let r=e.type;if(Array.isArray(r)){let i=r.map(o=>{let s={...e,type:o};return I7a(s,t)});return i.length===0?Qo.never():i.length===1?i[0]:Qo.union(i)}if(!r)return Qo.any();let n;switch(r){case"string":{let i=Qo.string();if(e.format){let o=e.format;o==="email"?i=i.check(Qo.email()):o==="uri"||o==="uri-reference"?i=i.check(Qo.url()):o==="uuid"||o==="guid"?i=i.check(Qo.uuid()):o==="date-time"?i=i.check(Qo.iso.datetime()):o==="date"?i=i.check(Qo.iso.date()):o==="time"?i=i.check(Qo.iso.time()):o==="duration"?i=i.check(Qo.iso.duration()):o==="ipv4"?i=i.check(Qo.ipv4()):o==="ipv6"?i=i.check(Qo.ipv6()):o==="mac"?i=i.check(Qo.mac()):o==="cidr"?i=i.check(Qo.cidrv4()):o==="cidr-v6"?i=i.check(Qo.cidrv6()):o==="base64"?i=i.check(Qo.base64()):o==="base64url"?i=i.check(Qo.base64url()):o==="e164"?i=i.check(Qo.e164()):o==="jwt"?i=i.check(Qo.jwt()):o==="emoji"?i=i.check(Qo.emoji()):o==="nanoid"?i=i.check(Qo.nanoid()):o==="cuid"?i=i.check(Qo.cuid()):o==="cuid2"?i=i.check(Qo.cuid2()):o==="ulid"?i=i.check(Qo.ulid()):o==="xid"?i=i.check(Qo.xid()):o==="ksuid"&&(i=i.check(Qo.ksuid()))}typeof e.minLength=="number"&&(i=i.min(e.minLength)),typeof e.maxLength=="number"&&(i=i.max(e.maxLength)),e.pattern&&(i=i.regex(new RegExp(e.pattern))),n=i;break}case"number":case"integer":{let i=r==="integer"?Qo.number().int():Qo.number();typeof e.minimum=="number"&&(i=i.min(e.minimum)),typeof e.maximum=="number"&&(i=i.max(e.maximum)),typeof e.exclusiveMinimum=="number"?i=i.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(i=i.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?i=i.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(i=i.lt(e.maximum)),typeof e.multipleOf=="number"&&(i=i.multipleOf(e.multipleOf)),n=i;break}case"boolean":{n=Qo.boolean();break}case"null":{n=Qo.null();break}case"object":{let i={},o=e.properties||{},s=new Set(e.required||[]);for(let[c,u]of Object.entries(o)){let l=pD(u,t);i[c]=s.has(c)?l:l.optional()}if(e.propertyNames){let c=pD(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?pD(e.additionalProperties,t):Qo.any();if(Object.keys(i).length===0){n=Qo.record(c,u);break}let l=Qo.object(i).passthrough(),p=Qo.looseRecord(c,u);n=Qo.intersection(l,p);break}if(e.patternProperties){let c=e.patternProperties,u=Object.keys(c),l=[];for(let d of u){let f=pD(c[d],t),m=Qo.string().regex(new RegExp(d));l.push(Qo.looseRecord(m,f))}let p=[];if(Object.keys(i).length>0&&p.push(Qo.object(i).passthrough()),p.push(...l),p.length===0)n=Qo.object({}).passthrough();else if(p.length===1)n=p[0];else{let d=Qo.intersection(p[0],p[1]);for(let f=2;f<p.length;f++)d=Qo.intersection(d,p[f]);n=d}break}let a=Qo.object(i);e.additionalProperties===!1?n=a.strict():typeof e.additionalProperties=="object"?n=a.catchall(pD(e.additionalProperties,t)):n=a.passthrough();break}case"array":{let i=e.prefixItems,o=e.items;if(i&&Array.isArray(i)){let s=i.map(c=>pD(c,t)),a=o&&typeof o=="object"&&!Array.isArray(o)?pD(o,t):void 0;a?n=Qo.tuple(s).rest(a):n=Qo.tuple(s),typeof e.minItems=="number"&&(n=n.check(Qo.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(Qo.maxLength(e.maxItems)))}else if(Array.isArray(o)){let s=o.map(c=>pD(c,t)),a=e.additionalItems&&typeof e.additionalItems=="object"?pD(e.additionalItems,t):void 0;a?n=Qo.tuple(s).rest(a):n=Qo.tuple(s),typeof e.minItems=="number"&&(n=n.check(Qo.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(Qo.maxLength(e.maxItems)))}else if(o!==void 0){let s=pD(o,t),a=Qo.array(s);typeof e.minItems=="number"&&(a=a.min(e.minItems)),typeof e.maxItems=="number"&&(a=a.max(e.maxItems)),n=a}else n=Qo.array(Qo.any());break}default:throw new Error(`Unsupported type: ${r}`)}return e.description&&(n=n.describe(e.description)),e.default!==void 0&&(n=n.default(e.default)),n}function pD(e,t){if(typeof e=="boolean")return e?Qo.any():Qo.never();let r=I7a(e,t),n=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let a=e.anyOf.map(u=>pD(u,t)),c=Qo.union(a);r=n?Qo.intersection(r,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let a=e.oneOf.map(u=>pD(u,t)),c=Qo.xor(a);r=n?Qo.intersection(r,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=n?r:Qo.any();else{let a=n?r:pD(e.allOf[0],t),c=n?0:1;for(let u=c;u<e.allOf.length;u++)a=Qo.intersection(a,pD(e.allOf[u],t));r=a}e.nullable===!0&&t.version==="openapi-3.0"&&(r=Qo.nullable(r)),e.readOnly===!0&&(r=Qo.readonly(r));let i={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let a of o)a in e&&(i[a]=e[a]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let a of s)a in e&&(i[a]=e[a]);for(let a of Object.keys(e))cRf.has(a)||(i[a]=e[a]);return Object.keys(i).length>0&&t.registry.add(r,i),r}function v7a(e,t){if(typeof e=="boolean")return e?Qo.any():Qo.never();let r=uRf(e,t?.defaultTarget),n=e.$defs||e.definitions||{},i={version:r,defs:n,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??oB};return pD(e,i)}var Qo,cRf,x7a=h(()=>{"use strict";vFt();ZEr();TFt();BFt();Qo={...OFt,...XEr,iso:QJe},cRf=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"])});var PYi={};Z(PYi,{bigint:()=>mRf,boolean:()=>dRf,date:()=>hRf,number:()=>fRf,string:()=>pRf});function pRf(e){return ZHi(MJe,e)}function fRf(e){return sKi(VJe,e)}function dRf(e){return dKi(UJe,e)}function mRf(e){return hKi(_Je,e)}function hRf(e){return SKi(NFt,e)}var C7a=h(()=>{"use strict";tQ();BFt()});var G={};Z(G,{$brand:()=>U0r,$input:()=>YHi,$output:()=>JHi,NEVER:()=>v7i,TimePrecision:()=>eKi,ZodAny:()=>qJi,ZodArray:()=>JJi,ZodBase64:()=>yIr,ZodBase64URL:()=>bIr,ZodBigInt:()=>_Je,ZodBigIntFormat:()=>vIr,ZodBoolean:()=>UJe,ZodCIDRv4:()=>gIr,ZodCIDRv6:()=>AIr,ZodCUID:()=>uIr,ZodCUID2:()=>lIr,ZodCatch:()=>AYi,ZodCodec:()=>PIr,ZodCustom:()=>LFt,ZodCustomStringFormat:()=>LJe,ZodDate:()=>NFt,ZodDefault:()=>pYi,ZodDiscriminatedUnion:()=>XJi,ZodE164:()=>EIr,ZodEmail:()=>sIr,ZodEmoji:()=>aIr,ZodEnum:()=>zJe,ZodError:()=>nRf,ZodExactOptional:()=>cYi,ZodFile:()=>sYi,ZodFirstPartyTypeKind:()=>BYi,ZodFunction:()=>SYi,ZodGUID:()=>PFt,ZodIPv4:()=>mIr,ZodIPv6:()=>hIr,ZodISODate:()=>eIr,ZodISODateTime:()=>$Er,ZodISODuration:()=>rIr,ZodISOTime:()=>tIr,ZodIntersection:()=>ZJi,ZodIssueCode:()=>oRf,ZodJWT:()=>IIr,ZodKSUID:()=>dIr,ZodLazy:()=>xYi,ZodLiteral:()=>oYi,ZodMAC:()=>zJi,ZodMap:()=>nYi,ZodNaN:()=>bYi,ZodNanoID:()=>cIr,ZodNever:()=>HJi,ZodNonOptional:()=>OIr,ZodNull:()=>_Ji,ZodNullable:()=>lYi,ZodNumber:()=>VJe,ZodNumberFormat:()=>wje,ZodObject:()=>QFt,ZodOptional:()=>TIr,ZodPipe:()=>BIr,ZodPrefault:()=>dYi,ZodPromise:()=>wYi,ZodReadonly:()=>EYi,ZodRealError:()=>rQ,ZodRecord:()=>MFt,ZodSet:()=>iYi,ZodString:()=>MJe,ZodStringFormat:()=>mA,ZodSuccess:()=>gYi,ZodSymbol:()=>VJi,ZodTemplateLiteral:()=>vYi,ZodTransform:()=>aYi,ZodTuple:()=>eYi,ZodType:()=>sp,ZodULID:()=>pIr,ZodURL:()=>FFt,ZodUUID:()=>dX,ZodUndefined:()=>UJi,ZodUnion:()=>zFt,ZodUnknown:()=>WJi,ZodVoid:()=>KJi,ZodXID:()=>fIr,ZodXor:()=>YJi,_ZodString:()=>oIr,_default:()=>fYi,_function:()=>p7a,any:()=>_qa,array:()=>jFt,base64:()=>Sqa,base64url:()=>Tqa,bigint:()=>zqa,boolean:()=>LJi,catch:()=>yYi,check:()=>f7a,cidrv4:()=>Cqa,cidrv6:()=>wqa,clone:()=>yF,codec:()=>c7a,coerce:()=>PYi,config:()=>FI,core:()=>rle,cuid:()=>gqa,cuid2:()=>Aqa,custom:()=>d7a,date:()=>qqa,decode:()=>PJi,decodeAsync:()=>RJi,describe:()=>m7a,discriminatedUnion:()=>Xqa,e164:()=>Oqa,email:()=>sqa,emoji:()=>mqa,encode:()=>BJi,encodeAsync:()=>DJi,endsWith:()=>OJe,enum:()=>wIr,exactOptional:()=>uYi,file:()=>i7a,flattenError:()=>fFt,float32:()=>Fqa,float64:()=>Nqa,formatError:()=>dFt,fromJSONSchema:()=>v7a,function:()=>p7a,getErrorMap:()=>aRf,globalRegistry:()=>oB,gt:()=>pX,gte:()=>bF,guid:()=>aqa,hash:()=>kqa,hex:()=>Rqa,hostname:()=>Dqa,httpUrl:()=>dqa,includes:()=>SJe,instanceof:()=>g7a,int:()=>iIr,int32:()=>jqa,int64:()=>Mqa,intersection:()=>$Ji,ipv4:()=>Iqa,ipv6:()=>xqa,iso:()=>QJe,json:()=>y7a,jwt:()=>Bqa,keyof:()=>Wqa,ksuid:()=>Eqa,lazy:()=>CYi,length:()=>xje,literal:()=>n7a,locales:()=>IFt,looseObject:()=>Jqa,looseRecord:()=>$qa,lowercase:()=>CJe,lt:()=>lX,lte:()=>wL,mac:()=>vqa,map:()=>e7a,maxLength:()=>vje,maxSize:()=>Bbe,meta:()=>h7a,mime:()=>BJe,minLength:()=>tle,minSize:()=>fX,multipleOf:()=>Obe,nan:()=>a7a,nanoid:()=>hqa,nativeEnum:()=>r7a,negative:()=>UEr,never:()=>xIr,nonnegative:()=>GEr,nonoptional:()=>hYi,nonpositive:()=>_Er,normalize:()=>PJe,null:()=>GJi,nullable:()=>RFt,nullish:()=>o7a,number:()=>MJi,object:()=>Hqa,optional:()=>DFt,overwrite:()=>J7,parse:()=>wJi,parseAsync:()=>SJi,partialRecord:()=>Zqa,pipe:()=>kFt,positive:()=>VEr,prefault:()=>mYi,preprocess:()=>b7a,prettifyError:()=>F7i,promise:()=>l7a,property:()=>qEr,readonly:()=>IYi,record:()=>rYi,refine:()=>TYi,regex:()=>xJe,regexes:()=>gU,registry:()=>EEr,safeDecode:()=>FJi,safeDecodeAsync:()=>jJi,safeEncode:()=>kJi,safeEncodeAsync:()=>NJi,safeParse:()=>TJi,safeParseAsync:()=>OJi,set:()=>t7a,setErrorMap:()=>sRf,size:()=>Ije,slugify:()=>FJe,startsWith:()=>TJe,strictObject:()=>Kqa,string:()=>nIr,stringFormat:()=>Pqa,stringbool:()=>A7a,success:()=>s7a,superRefine:()=>OYi,symbol:()=>Vqa,templateLiteral:()=>u7a,toJSONSchema:()=>JEr,toLowerCase:()=>RJe,toUpperCase:()=>kJe,transform:()=>SIr,treeifyError:()=>k7i,trim:()=>DJe,tuple:()=>tYi,uint32:()=>Qqa,uint64:()=>Lqa,ulid:()=>yqa,undefined:()=>Uqa,union:()=>CIr,unknown:()=>Cje,uppercase:()=>wJe,url:()=>fqa,util:()=>vi,uuid:()=>cqa,uuidv4:()=>uqa,uuidv6:()=>lqa,uuidv7:()=>pqa,void:()=>Gqa,xid:()=>bqa,xor:()=>Yqa});var DYi=h(()=>{"use strict";tQ();BFt();ZEr();CJi();QJi();E7a();tQ();qHi();tQ();SFt();x7a();KHi();TFt();TFt();C7a();FI(gEr())});var ms=h(()=>{"use strict";DYi();DYi()});var w7a=h(()=>{"use strict"});var WYi={};Z(WYi,{AIChatConfig:()=>FYi,AIChatDatasource:()=>dWa,AIChatLocation:()=>O7a,AIChatModel:()=>B7a,AIChatWebsiteDatasource:()=>fWa,AbsoluteProductPath:()=>IHa,AgentsConfig:()=>hWa,AiExamplesConfig:()=>pWa,AnalyticsConfig:()=>lWa,AnnouncementConfig:()=>NIr,ApiReferenceConfiguration:()=>uHa,ApiReferenceEndpointConfiguration:()=>iHa,ApiReferenceLayout:()=>L7a,ApiReferenceLayoutItem:()=>qFt,ApiReferenceOperationConfiguration:()=>oHa,ApiReferencePackageConfiguration:()=>cHa,ApiReferencePackageConfigurationWithOptions:()=>aHa,ApiReferenceSectionConfiguration:()=>sHa,Audience:()=>UFt,AudienceId:()=>RYi,Availability:()=>ile,BackgroundImageConfiguration:()=>eWa,BackgroundImageThemedConfig:()=>$7a,BlogConfiguration:()=>tHa,BodyThemeConfig:()=>q7a,ChangelogConfiguration:()=>eHa,ChangelogFolderRelativePath:()=>VFt,ChangelogLayout:()=>M7a,CheckConfig:()=>WWa,CheckRuleSeverity:()=>nle,CheckRulesConfig:()=>qWa,CollapsedStringValue:()=>rWa,CollapsedValue:()=>_Ft,ColorConfig:()=>iC,ColorThemedConfig:()=>Y7a,ColorsConfiguration:()=>xWa,ContentAlignment:()=>Q7a,CssConfig:()=>tWa,CustomDomain:()=>X7a,CustomPageAction:()=>CWa,DocsConfiguration:()=>IRf,DocsInstance:()=>BWa,DocsSettingsConfig:()=>vWa,DocsTypographyConfig:()=>yWa,EditThisPageConfig:()=>OWa,EditThisPageLaunch:()=>P7a,ExperimentalConfig:()=>KWa,ExternalProduct:()=>yHa,FeatureFlag:()=>kYi,FeatureFlagConfiguration:()=>nWa,FolderConfiguration:()=>nHa,FontConfig:()=>DIr,FontConfigPath:()=>AWa,FontConfigVariant:()=>gWa,FontDisplay:()=>k7a,FontStyle:()=>zYi,FontWeight:()=>LYi,FooterLinksConfig:()=>zWa,FooterNavThemeConfig:()=>_7a,FullStoryAnalyticsConfig:()=>oWa,GTMConfig:()=>cWa,GitLibraryInputSchema:()=>JWa,GithubEditThisPageConfig:()=>TWa,GoogleAnalytics4Config:()=>uWa,HeaderPosition:()=>z7a,HttpSnippetLanguage:()=>K7a,HttpSnippetsConfig:()=>Z7a,IntegrationsConfig:()=>HWa,IntercomConfig:()=>sWa,InternalProduct:()=>AHa,JsConfig:()=>UWa,JsConfigOptions:()=>NYi,JsFileConfig:()=>LWa,JsFileConfigSettings:()=>MWa,JsRemoteConfig:()=>VWa,JsScriptStrategy:()=>MYi,Language:()=>kIr,LanguageSwitcherThemeConfig:()=>U7a,LayoutConfig:()=>EWa,LibraryConfiguration:()=>$Wa,LibraryInputConfiguration:()=>XWa,LibraryLanguage:()=>R7a,LibraryName:()=>jYi,LibraryOutputConfiguration:()=>ZWa,LibraryReferenceConfiguration:()=>rHa,LinkConfiguration:()=>UYi,LogoConfiguration:()=>PWa,MetadataConfig:()=>_Wa,NavbarDropdownConfig:()=>jWa,NavbarGithubConfig:()=>NWa,NavbarGithubConfigWithOptions:()=>FWa,NavbarLink:()=>QWa,NavbarLinkConfig:()=>Sje,NavigationConfig:()=>jIr,NavigationItem:()=>WFt,PageActionOption:()=>T7a,PageActionOptions:()=>wWa,PageActionsConfig:()=>SWa,PageActionsThemeConfig:()=>H7a,PageConfiguration:()=>WJe,PageDescriptionSource:()=>mWa,PathLibraryInputSchema:()=>YWa,PlaygroundButtonSettings:()=>kWa,PlaygroundSettings:()=>GFt,PostHogConfig:()=>aWa,ProductConfig:()=>bHa,ProductConfigBase:()=>qYi,ProductFileConfig:()=>ERf,ProductPath:()=>bRf,ProductSwitcherThemeConfig:()=>V7a,ProgrammingLanguage:()=>S7a,RedirectConfig:()=>_Yi,RedirectsConfiguration:()=>GWa,RedirectsFile:()=>ARf,RelativeProductPath:()=>EHa,Role:()=>VYi,RoleId:()=>RIr,SearchSettingsConfig:()=>IWa,SearchbarPlacement:()=>F7a,SectionConfiguration:()=>lHa,SegmentConfig:()=>iWa,SidebarThemeConfig:()=>W7a,SnippetLanguageConfiguration:()=>mX,SnippetsConfiguration:()=>RWa,SwitcherPlacement:()=>j7a,TabConfig:()=>QIr,TabId:()=>GJe,TabVariant:()=>fHa,TabbedNavigationConfig:()=>gHa,TabbedNavigationItem:()=>hHa,TabbedNavigationItemWithLayout:()=>dHa,TabbedNavigationItemWithVariants:()=>mHa,TabsPlacement:()=>N7a,TabsThemeConfig:()=>G7a,Target:()=>qJe,ThemeConfig:()=>bWa,TitleSource:()=>QYi,TranslationConfig:()=>xHa,TranslationConfigObject:()=>vHa,TwitterCardSetting:()=>J7a,UntabbedNavigationConfig:()=>pHa,VersionAvailability:()=>D7a,VersionConfig:()=>GYi,VersionFileConfig:()=>yRf,VersionedSnippetLanguageConfiguration:()=>DWa,WithFeatureFlags:()=>aB,WithPermissions:()=>sB,WithViewers:()=>FIr,normalizeTranslationConfig:()=>CHa});function CHa(e){return typeof e=="string"?{lang:e}:e}var GJe,VFt,RYi,RIr,jYi,S7a,kIr,T7a,O7a,B7a,P7a,ile,D7a,QYi,R7a,zYi,k7a,F7a,N7a,j7a,Q7a,z7a,M7a,L7a,V7a,U7a,_7a,G7a,q7a,W7a,H7a,K7a,qJe,J7a,MYi,LYi,Y7a,iC,UFt,VYi,X7a,Z7a,$7a,eWa,tWa,rWa,_Ft,sB,kYi,nWa,aB,FIr,iWa,oWa,sWa,aWa,cWa,uWa,lWa,pWa,fWa,dWa,mWa,hWa,FYi,gWa,AWa,DIr,yWa,bWa,EWa,IWa,vWa,xWa,CWa,wWa,SWa,TWa,OWa,BWa,PWa,UYi,DWa,mX,RWa,kWa,GFt,NIr,Sje,FWa,NWa,jWa,QWa,zWa,MWa,LWa,VWa,NYi,UWa,_Wa,_Yi,GWa,ARf,nle,qWa,WWa,HWa,KWa,JWa,YWa,XWa,ZWa,$Wa,WJe,eHa,tHa,rHa,nHa,iHa,oHa,qFt,sHa,aHa,cHa,uHa,WFt,lHa,pHa,fHa,dHa,mHa,hHa,gHa,jIr,QIr,GYi,yRf,qYi,AHa,yHa,bHa,EHa,IHa,bRf,ERf,vHa,xHa,IRf,wHa=h(()=>{"use strict";ms();GJe=G.string(),VFt=G.string(),RYi=G.string(),RIr=G.string(),jYi=G.string(),S7a=G.enum(["typescript","javascript","python","java","go","ruby","csharp","php","swift","rust","nodets","nodejs","dotnet","curl","jvm","ts","js"]),kIr=G.string().regex(/^[a-zA-Z]{2,8}(-[a-zA-Z0-9]{1,8})*$/,"Language must be a valid BCP 47 language tag (e.g. 'en', 'ja', 'ja-JP', 'pt-BR', 'zh-Hans-CN')"),T7a=G.enum(["copy-page","view-as-markdown","ask-ai","chatgpt","claude","cursor","vscode"]),O7a=G.enum(["docs","slack","discord"]),B7a=G.enum(["claude-3.7","claude-4","command-a"]),P7a=G.enum(["github","dashboard"]),ile=G.enum(["stable","generally-available","in-development","pre-release","deprecated","beta"]),D7a=G.enum(["deprecated","ga","stable","beta"]),QYi=G.enum(["frontmatter","filename"]),R7a=G.enum(["python","cpp"]),zYi=G.enum(["normal","italic"]),k7a=G.enum(["auto","block","swap","fallback","optional"]),F7a=G.enum(["header","header-tabs","sidebar"]),N7a=G.enum(["header","sidebar"]),j7a=G.enum(["header","sidebar"]),Q7a=G.enum(["center","left"]),z7a=G.enum(["fixed","static"]),M7a=G.enum(["timeline","classic"]),L7a=G.enum(["indented","cards"]),V7a=G.enum(["default","toggle","tabs"]),U7a=G.enum(["default","minimal"]),_7a=G.enum(["default","minimal"]),G7a=G.enum(["default","bubble"]),q7a=G.enum(["default","canvas"]),W7a=G.enum(["default","minimal"]),H7a=G.enum(["default","toolbar"]),K7a=G.enum(["curl","csharp","go","java","javascript","php","python","ruby","swift","typescript"]),qJe=G.enum(["_blank","_self","_parent","_top"]),J7a=G.enum(["summary","summary_large_image","app","player"]),MYi=G.enum(["beforeInteractive","afterInteractive","lazyOnload"]),LYi=G.union([G.string(),G.number().int()]),Y7a=G.object({dark:G.string().optional(),light:G.string().optional()}),iC=G.union([G.string(),Y7a]),UFt=G.union([RYi,G.array(RYi)]),VYi=G.union([RIr,G.array(RIr)]),X7a=G.union([G.string(),G.array(G.string())]),Z7a=G.union([G.boolean(),G.array(K7a)]),$7a=G.object({dark:G.string().optional(),light:G.string().optional()}),eWa=G.union([G.string(),$7a]),tWa=G.union([G.string(),G.array(G.string())]),rWa=G.enum(["open-by-default"]),_Ft=G.union([G.boolean(),rWa]),sB=G.object({viewers:VYi.optional(),orphaned:G.boolean().optional()}),kYi=G.object({flag:G.string(),"fallback-value":G.unknown().optional(),match:G.unknown().optional()}),nWa=G.union([G.string(),kYi,G.array(kYi)]),aB=G.object({"feature-flag":nWa.optional()}),FIr=G.object({viewers:VYi.optional()}),iWa=G.object({"write-key":G.string()}),oWa=G.object({"org-id":G.string()}),sWa=G.object({"app-id":G.string(),"api-base":G.string().optional()}),aWa=G.object({"api-key":G.string(),endpoint:G.string().optional()}),cWa=G.object({"container-id":G.string()}),uWa=G.object({"measurement-id":G.string()}),lWa=G.object({segment:iWa.optional(),fullstory:oWa.optional(),intercom:sWa.optional(),posthog:aWa.optional(),gtm:cWa.optional(),ga4:uWa.optional()}),pWa=G.object({enabled:G.boolean().optional(),style:G.string().optional()}),fWa=G.object({url:G.string(),title:G.string().optional()}),dWa=fWa,mWa=G.enum(["description","subtitle"]),hWa=G.object({"page-directive":G.string().optional(),"page-description-source":mWa.optional(),"llms-txt":G.string().optional(),"llms-full-txt":G.string().optional()}),FYi=G.object({model:B7a.optional(),"system-prompt":G.string().optional(),location:G.array(O7a).optional(),datasources:G.array(dWa).optional(),"mask-pii":G.boolean().optional()}),gWa=G.object({path:G.string(),weight:LYi.optional(),style:zYi.optional()}),AWa=G.union([G.string(),gWa]),DIr=G.object({name:G.string().optional(),path:G.string().optional(),weight:LYi.optional(),style:zYi.optional(),paths:G.array(AWa).optional(),display:k7a.optional(),fallback:G.array(G.string()).optional(),"font-variation-settings":G.string().optional()}),yWa=G.object({headingsFont:DIr.optional(),bodyFont:DIr.optional(),codeFont:DIr.optional()}),bWa=G.object({sidebar:W7a.optional(),body:q7a.optional(),tabs:G7a.optional(),"page-actions":H7a.optional(),"footer-nav":_7a.optional(),"language-switcher":U7a.optional(),"product-switcher":V7a.optional()}),EWa=G.object({"page-width":G.string().optional(),"content-width":G.string().optional(),"sidebar-width":G.string().optional(),"header-height":G.string().optional(),"searchbar-placement":F7a.optional(),"tabs-placement":N7a.optional(),"switcher-placement":j7a.optional(),"content-alignment":Q7a.optional(),"header-position":z7a.optional(),"disable-header":G.boolean().optional(),"hide-nav-links":G.boolean().optional(),"hide-feedback":G.boolean().optional(),"mobile-toc":G.boolean().optional(),"changelog-layout":M7a.optional(),"api-reference-layout":L7a.optional(),"show-nav-availability-badges":G.boolean().optional()}),IWa=G.object({"prioritize-current-product":G.boolean().optional(),"default-filter-by-current-product":G.boolean().optional()}),vWa=G.object({"search-text":G.string().optional(),"disable-search":G.boolean().optional(),"dark-mode-code":G.boolean().optional(),"default-search-filters":G.boolean().optional(),search:IWa.optional(),"http-snippets":Z7a.optional(),"hide-404-page":G.boolean().optional(),"use-javascript-as-typescript":G.boolean().optional(),"disable-explorer-proxy":G.boolean().optional(),"disable-analytics":G.boolean().optional(),language:kIr.optional(),"folder-title-source":QYi.optional(),"substitute-env-vars":G.boolean().optional(),"websocket-oneof-display":G.enum(["flat","grouped"]).optional()}),xWa=G.object({"accent-primary":iC.optional(),accentPrimary:iC.optional(),background:iC.optional(),border:iC.optional(),"sidebar-background":iC.optional(),"header-background":iC.optional(),"card-background":iC.optional(),"accent-1":iC.optional(),"accent-2":iC.optional(),"accent-3":iC.optional(),"accent-4":iC.optional(),"accent-5":iC.optional(),"accent-6":iC.optional(),"accent-7":iC.optional(),"accent-8":iC.optional(),"accent-9":iC.optional(),"accent-10":iC.optional(),"accent-11":iC.optional(),"accent-12":iC.optional()}),CWa=G.object({title:G.string(),subtitle:G.string().optional(),url:G.string(),icon:G.string().optional(),default:G.boolean().optional()}),wWa=G.object({"copy-page":G.boolean().optional(),"view-as-markdown":G.boolean().optional(),"ask-ai":G.boolean().optional(),chatgpt:G.boolean().optional(),claude:G.boolean().optional(),cursor:G.boolean().optional(),mcp:G.boolean().optional(),vscode:G.boolean().optional(),custom:G.array(CWa).optional()}),SWa=G.object({default:T7a.optional(),options:wWa.optional()}),TWa=G.object({host:G.string().optional(),owner:G.string(),repo:G.string(),branch:G.string().optional()}),OWa=G.object({github:TWa.optional(),launch:P7a.optional()}),BWa=G.object({url:G.string(),"custom-domain":X7a.optional(),"edit-this-page":OWa.optional(),audiences:UFt.optional(),"multi-source":G.boolean().optional()}),PWa=G.object({dark:G.string().optional(),light:G.string().optional(),height:G.number().optional(),href:G.string().optional(),"right-text":G.string().optional()}),UYi=G.object({link:G.string(),href:G.string(),icon:G.string().optional(),target:qJe.optional()}),DWa=G.object({version:G.string(),package:G.string()}),mX=G.union([G.string(),DWa]),RWa=G.object({python:mX.optional(),typescript:mX.optional(),go:mX.optional(),java:mX.optional(),ruby:mX.optional(),csharp:mX.optional(),php:mX.optional(),swift:mX.optional(),rust:mX.optional()}),kWa=G.object({href:G.string().optional()}),GFt=G.object({hidden:G.boolean().optional(),environments:G.array(G.string()).optional(),button:kWa.optional(),oauth:G.boolean().optional(),"limit-websocket-messages-per-connection":G.number().int().optional(),"send-optional-defaults":G.boolean().optional()}),NIr=G.object({message:G.string()}),Sje=FIr.merge(G.object({href:G.string().optional(),target:qJe.optional(),url:G.string().optional(),text:G.string().optional(),icon:G.string().optional(),rightIcon:G.string().optional(),rounded:G.boolean().optional()})),FWa=FIr.merge(G.object({url:G.string(),target:qJe.optional()})),NWa=G.union([G.string(),FWa]),jWa=FIr.merge(G.object({links:G.array(Sje),text:G.string().optional(),icon:G.string().optional(),rightIcon:G.string().optional(),rounded:G.boolean().optional()})),QWa=G.union([Sje.merge(G.object({type:G.literal("filled")})),Sje.merge(G.object({type:G.literal("outlined")})),Sje.merge(G.object({type:G.literal("minimal")})),G.object({type:G.literal("github"),value:NWa}),jWa.merge(G.object({type:G.literal("dropdown")})),Sje.merge(G.object({type:G.literal("primary")})),Sje.merge(G.object({type:G.literal("secondary")}))]),zWa=G.object({github:G.string().optional(),twitter:G.string().optional(),x:G.string().optional(),linkedin:G.string().optional(),youtube:G.string().optional(),instagram:G.string().optional(),facebook:G.string().optional(),discord:G.string().optional(),slack:G.string().optional(),hackernews:G.string().optional(),medium:G.string().optional(),website:G.string().optional()}),MWa=G.object({path:G.string(),strategy:MYi.optional()}),LWa=G.union([G.string(),MWa]),VWa=G.object({url:G.string(),strategy:MYi.optional(),"disable-sri":G.boolean().optional()}),NYi=G.union([VWa,LWa]),UWa=G.union([NYi,G.array(NYi)]),_Wa=G.object({"og:site_name":G.string().optional(),"og:title":G.string().optional(),"og:description":G.string().optional(),"og:url":G.string().optional(),"og:image":G.string().optional(),"og:image:width":G.number().optional(),"og:image:height":G.number().optional(),"og:locale":G.string().optional(),"og:logo":G.string().optional(),"twitter:title":G.string().optional(),"twitter:description":G.string().optional(),"twitter:handle":G.string().optional(),"twitter:image":G.string().optional(),"twitter:site":G.string().optional(),"twitter:url":G.string().optional(),"twitter:card":J7a.optional(),"og:dynamic":G.boolean().optional(),"og:dynamic:background-image":G.string().optional(),"og:dynamic:text-color":G.string().optional(),"og:dynamic:background-color":G.string().optional(),"og:dynamic:logo-color":G.enum(["dark","light"]).optional(),"og:dynamic:show-logo":G.boolean().optional(),"og:dynamic:show-section":G.boolean().optional(),"og:dynamic:show-description":G.boolean().optional(),"og:dynamic:show-url":G.boolean().optional(),"og:dynamic:show-gradient":G.boolean().optional(),"canonical-host":G.string().optional()}),_Yi=G.object({source:G.string(),destination:G.string(),permanent:G.boolean().optional()}),GWa=G.union([G.array(_Yi),G.string(),G.array(G.string())]),ARf=G.object({redirects:G.array(_Yi.strict())}).strict(),nle=G.enum(["warn","error"]),qWa=G.object({"example-validation":nle.optional(),"broken-links":nle.optional(),"no-non-component-refs":nle.optional(),"valid-local-references":nle.optional(),"no-circular-redirects":nle.optional(),"valid-docs-endpoints":nle.optional(),"missing-redirects":nle.optional(),"valid-changelog-slug":nle.optional()}),WWa=G.object({rules:qWa.optional()}),HWa=G.object({intercom:G.string().optional(),context7:G.string().optional()}),KWa=G.object({"mdx-components":G.array(G.string()).optional(),"disable-stream-toggle":G.boolean().optional(),"openapi-parser-v2":G.boolean().optional(),"openapi-parser-v3":G.boolean().optional(),"dynamic-snippets":G.boolean().optional(),"ai-examples":G.boolean().optional(),"ai-example-style-instructions":G.string().optional(),"exclude-apis":G.boolean().optional(),"basepath-aware":G.boolean().optional(),"external-sitemaps":G.array(G.string()).optional()}),JWa=G.object({git:G.string(),subpath:G.string().optional(),ref:G.string().optional()}),YWa=G.object({path:G.string()}),XWa=G.union([JWa,YWa]),ZWa=G.object({path:G.string()}),$Wa=G.object({input:XWa,output:ZWa,lang:R7a}),WJe=sB.merge(aB).merge(G.object({page:G.string(),path:G.string(),slug:G.string().optional(),icon:G.string().optional(),hidden:G.boolean().optional(),noindex:G.boolean().optional(),availability:ile.optional()})),eHa=sB.merge(aB).merge(G.object({changelog:VFt,title:G.string().optional(),slug:G.string().optional(),icon:G.string().optional(),hidden:G.boolean().optional()})),tHa=sB.merge(aB).merge(G.object({blog:VFt,title:G.string().optional(),slug:G.string().optional(),icon:G.string().optional(),hidden:G.boolean().optional()})),rHa=sB.merge(aB).merge(G.object({library:jYi,title:G.string().optional(),slug:G.string().optional()})),nHa=sB.merge(aB).merge(G.object({folder:G.string(),title:G.string().optional(),"title-source":QYi.optional(),slug:G.string().optional(),icon:G.string().optional(),hidden:G.boolean().optional(),"skip-slug":G.boolean().optional(),collapsed:_Ft.optional(),collapsible:G.boolean().optional(),"collapsed-by-default":G.boolean().optional(),availability:ile.optional()})),iHa=sB.merge(aB).merge(G.object({endpoint:G.string(),title:G.string().optional(),slug:G.string().optional(),icon:G.string().optional(),hidden:G.boolean().optional(),availability:ile.optional(),playground:GFt.optional()})),oHa=sB.merge(aB).merge(G.object({operation:G.string(),title:G.string().optional(),slug:G.string().optional(),hidden:G.boolean().optional(),availability:ile.optional()})),qFt=G.lazy(()=>G.union([G.string(),G.record(G.string(),cHa),sHa,iHa,oHa,WJe,UYi])),sHa=sB.merge(aB).merge(G.object({section:G.string(),"referenced-packages":G.array(G.string()).optional(),summary:G.string().optional(),contents:G.array(qFt).optional(),slug:G.string().optional(),icon:G.string().optional(),hidden:G.boolean().optional(),"skip-slug":G.boolean().optional(),collapsed:_Ft.optional(),collapsible:G.boolean().optional(),"collapsed-by-default":G.boolean().optional(),availability:ile.optional(),playground:GFt.optional()})),aHa=sB.merge(aB).merge(G.object({title:G.string().optional(),summary:G.string().optional(),contents:G.array(qFt).optional(),availability:ile.optional(),slug:G.string().optional(),icon:G.string().optional(),hidden:G.boolean().optional(),"skip-slug":G.boolean().optional(),playground:GFt.optional()})),cHa=G.lazy(()=>G.union([G.array(qFt),aHa])),uHa=sB.merge(aB).merge(G.object({api:G.string(),"api-name":G.string().optional(),openrpc:G.string().optional(),audiences:UFt.optional(),"display-errors":G.boolean().optional(),"tag-description-pages":G.boolean().optional(),snippets:RWa.optional(),postman:G.string().optional(),summary:G.string().optional(),layout:G.array(qFt).optional(),collapsed:_Ft.optional(),icon:G.string().optional(),slug:G.string().optional(),hidden:G.boolean().optional(),availability:ile.optional(),"skip-slug":G.boolean().optional(),alphabetized:G.boolean().optional(),flattened:G.boolean().optional(),paginated:G.boolean().optional(),playground:GFt.optional()})),WFt=G.lazy(()=>G.union([WJe,lHa,uHa,rHa,UYi,eHa,tHa,nHa])),lHa=sB.merge(aB).merge(G.object({section:G.string(),path:G.string().optional(),contents:G.array(WFt),collapsed:_Ft.optional(),collapsible:G.boolean().optional(),"collapsed-by-default":G.boolean().optional(),slug:G.string().optional(),icon:G.string().optional(),hidden:G.boolean().optional(),"skip-slug":G.boolean().optional(),availability:ile.optional()})),pHa=G.array(WFt),fHa=sB.merge(aB).merge(G.object({title:G.string(),subtitle:G.string().optional(),icon:G.string().optional(),layout:G.array(WFt),slug:G.string().optional(),"skip-slug":G.boolean().optional(),hidden:G.boolean().optional(),default:G.boolean().optional()})),dHa=G.object({tab:GJe,layout:G.array(WFt).optional()}),mHa=G.object({tab:GJe,variants:G.array(fHa)}),hHa=G.union([dHa,mHa]),gHa=G.array(hHa),jIr=G.union([pHa,gHa]),QIr=sB.merge(aB).merge(G.object({"display-name":G.string(),icon:G.string().optional(),slug:G.string().optional(),"skip-slug":G.boolean().optional(),hidden:G.boolean().optional(),href:G.string().optional(),target:qJe.optional(),changelog:VFt.optional(),blog:VFt.optional()})),GYi=sB.merge(aB).merge(G.object({"display-name":G.string(),path:G.string().optional(),ref:G.string().optional(),slug:G.string().optional(),availability:D7a.optional(),audiences:UFt.optional(),hidden:G.boolean().optional(),announcement:NIr.optional()})),yRf=G.object({tabs:G.record(GJe,QIr).optional(),"landing-page":WJe.optional(),navigation:jIr}),qYi=sB.merge(aB).merge(G.object({"display-name":G.string(),subtitle:G.string().optional(),icon:G.string().optional(),image:G.string().optional(),versions:G.array(GYi).optional(),audiences:UFt.optional()})),AHa=qYi.merge(G.object({path:G.string(),slug:G.string().optional(),announcement:NIr.optional()})),yHa=qYi.merge(G.object({href:G.string(),target:qJe.optional()})),bHa=G.union([AHa,yHa]),EHa=sB.merge(aB).merge(G.object({"display-name":G.string(),path:G.string(),slug:G.string().optional()})),IHa=G.object({href:G.string()}),bRf=G.union([EHa,IHa]),ERf=G.object({tabs:G.record(GJe,QIr).optional(),"landing-page":WJe.optional(),navigation:jIr}),vHa=G.object({lang:kIr,default:G.boolean().optional()}),xHa=G.union([kIr,vHa]);IRf=G.object({instances:G.array(BWa),title:G.string().optional(),libraries:G.record(jYi,$Wa).optional(),analytics:lWa.optional(),announcement:NIr.optional(),roles:G.array(RIr).optional(),tabs:G.record(GJe,QIr).optional(),versions:G.array(GYi).optional(),products:G.array(bHa).optional(),"landing-page":WJe.optional(),navigation:jIr.optional(),"navbar-links":G.array(QWa).optional(),"footer-links":zWa.optional(),"page-actions":SWa.optional(),experimental:KWa.optional(),"default-language":S7a.optional(),languages:G.array(G.string()).optional(),translations:G.array(xHa).optional().superRefine((e,t)=>{if(e==null)return;let n=e.map(CHa).filter(i=>i.default===!0).length;n>1&&t.addIssue({code:G.ZodIssueCode.custom,message:`Only one translation entry can be marked as default, but ${n} were found`})}),"ai-chat":FYi.optional(),"ai-search":FYi.optional(),"ai-examples":pWa.optional(),agents:hWa.optional(),metadata:_Wa.optional(),redirects:GWa.optional(),check:WWa.optional(),logo:PWa.optional(),favicon:G.string().optional(),"background-image":eWa.optional(),colors:xWa.optional(),typography:yWa.optional(),layout:EWa.optional(),settings:vWa.optional(),theme:bWa.optional(),"global-theme":G.string().optional(),integrations:HWa.optional(),css:tWa.optional(),js:UWa.optional(),header:G.string().optional(),footer:G.string().optional()})});function CRf(e){if("changelog"in e)return e.changelog;if("blog"in e)return e.blog}function wRf(e){return e.changelog??e.blog}var vRf,xRf,SHa=h(()=>{"use strict";vRf="Changelog",xRf="Blog"});var THa=h(()=>{"use strict"});var OHa=h(()=>{"use strict"});var BHa=h(()=>{"use strict"});var PHa=h(()=>{"use strict"});var DHa=h(()=>{"use strict"});var HYi,RHa=h(()=>{"use strict";HYi={Docs:"docs",Slack:"slack",Discord:"discord"}});var KYi,kHa=h(()=>{"use strict";KYi={Claude37:"claude-3.7",Claude4:"claude-4",CommandA:"command-a"}});var FHa=h(()=>{"use strict"});var NHa=h(()=>{"use strict"});var jHa=h(()=>{"use strict"});var QHa=h(()=>{"use strict"});var zHa=h(()=>{"use strict"});var MHa=h(()=>{"use strict"});var JYi,LHa=h(()=>{"use strict";JYi={Indented:"indented",Cards:"cards"}});var VHa=h(()=>{"use strict"});var UHa=h(()=>{"use strict"});var _Ha=h(()=>{"use strict"});var GHa=h(()=>{"use strict"});var qHa=h(()=>{"use strict"});var WHa=h(()=>{"use strict"});var HHa=h(()=>{"use strict"});var YYi,KHa=h(()=>{"use strict";YYi={Stable:"stable",GenerallyAvailable:"generally-available",InDevelopment:"in-development",PreRelease:"pre-release",Deprecated:"deprecated",Beta:"beta",Alpha:"alpha",Preview:"preview",Legacy:"legacy"}});var JHa=h(()=>{"use strict"});var YHa=h(()=>{"use strict"});var XHa=h(()=>{"use strict"});var XYi,ZHa=h(()=>{"use strict";XYi={Default:"default",Canvas:"canvas"}});var $Ha=h(()=>{"use strict"});var eKa=h(()=>{"use strict"});var ZYi,tKa=h(()=>{"use strict";ZYi={Timeline:"timeline",Classic:"classic"}});var rKa=h(()=>{"use strict"});var $Yi,nKa=h(()=>{"use strict";$Yi={Warn:"warn",Error:"error"}});var iKa=h(()=>{"use strict"});var eXi,oKa=h(()=>{"use strict";eXi={OpenByDefault:"open-by-default"}});var sKa=h(()=>{"use strict"});var aKa=h(()=>{"use strict"});var cKa=h(()=>{"use strict"});var uKa=h(()=>{"use strict"});var tXi,lKa=h(()=>{"use strict";tXi={Center:"center",Left:"left"}});var pKa=h(()=>{"use strict"});var fKa=h(()=>{"use strict"});var dKa=h(()=>{"use strict"});var mKa=h(()=>{"use strict"});var hKa=h(()=>{"use strict"});var gKa=h(()=>{"use strict"});var AKa=h(()=>{"use strict"});var yKa=h(()=>{"use strict"});var rXi,bKa=h(()=>{"use strict";rXi={Github:"github",Dashboard:"dashboard"}});var EKa=h(()=>{"use strict"});var IKa=h(()=>{"use strict"});var vKa=h(()=>{"use strict"});var xKa=h(()=>{"use strict"});var CKa=h(()=>{"use strict"});var wKa=h(()=>{"use strict"});var SKa=h(()=>{"use strict"});var TKa=h(()=>{"use strict"});var nXi,OKa=h(()=>{"use strict";nXi={Auto:"auto",Block:"block",Swap:"swap",Fallback:"fallback",Optional:"optional"}});var iXi,BKa=h(()=>{"use strict";iXi={Normal:"normal",Italic:"italic"}});var PKa=h(()=>{"use strict"});var DKa=h(()=>{"use strict"});var oXi,RKa=h(()=>{"use strict";oXi={Default:"default",Minimal:"minimal"}});var kKa=h(()=>{"use strict"});var FKa=h(()=>{"use strict"});var NKa=h(()=>{"use strict"});var jKa=h(()=>{"use strict"});var QKa=h(()=>{"use strict"});var sXi,zKa=h(()=>{"use strict";sXi={Fixed:"fixed",Static:"static"}});var aXi,MKa=h(()=>{"use strict";aXi={Curl:"curl",Csharp:"csharp",Go:"go",Java:"java",Javascript:"javascript",Php:"php",Python:"python",Ruby:"ruby",Swift:"swift",Typescript:"typescript"}});var LKa=h(()=>{"use strict"});var VKa=h(()=>{"use strict"});var UKa=h(()=>{"use strict"});var _Ka=h(()=>{"use strict"});var GKa=h(()=>{"use strict"});var qKa=h(()=>{"use strict"});var WKa=h(()=>{"use strict"});var HKa=h(()=>{"use strict"});var KKa=h(()=>{"use strict"});var cXi,JKa=h(()=>{"use strict";cXi={BeforeInteractive:"beforeInteractive",AfterInteractive:"afterInteractive",LazyOnload:"lazyOnload"}});var YKa=h(()=>{"use strict"});var uXi,XKa=h(()=>{"use strict";uXi={Default:"default",Minimal:"minimal"}});var ZKa=h(()=>{"use strict"});var $Ka=h(()=>{"use strict"});var eJa=h(()=>{"use strict"});var tJa=h(()=>{"use strict"});var lXi,rJa=h(()=>{"use strict";lXi={Python:"python",Cpp:"cpp"}});var nJa=h(()=>{"use strict"});var iJa=h(()=>{"use strict"});var oJa=h(()=>{"use strict"});var sJa=h(()=>{"use strict"});var aJa=h(()=>{"use strict"});var cJa=h(()=>{"use strict"});var uJa=h(()=>{"use strict"});var lJa=h(()=>{"use strict"});var pJa=h(()=>{"use strict"});var fJa=h(()=>{"use strict"});var dJa=h(()=>{"use strict"});var mJa=h(()=>{"use strict"});var hJa=h(()=>{"use strict"});var pXi,gJa=h(()=>{"use strict";pXi={Dark:"dark",Light:"light"}});var fXi,AJa=h(()=>{"use strict";fXi={CopyPage:"copy-page",ViewAsMarkdown:"view-as-markdown",AskAi:"ask-ai",Chatgpt:"chatgpt",Claude:"claude",Cursor:"cursor",ClaudeCode:"claude-code",Vscode:"vscode"}});var yJa=h(()=>{"use strict"});var bJa=h(()=>{"use strict"});var dXi,EJa=h(()=>{"use strict";dXi={Default:"default",Toolbar:"toolbar"}});var IJa=h(()=>{"use strict"});var mXi,vJa=h(()=>{"use strict";mXi={Description:"description",Subtitle:"subtitle"}});var xJa=h(()=>{"use strict"});var CJa=h(()=>{"use strict"});var wJa=h(()=>{"use strict"});var SJa=h(()=>{"use strict"});var TJa=h(()=>{"use strict"});var OJa=h(()=>{"use strict"});var BJa=h(()=>{"use strict"});var PJa=h(()=>{"use strict"});var hXi,DJa=h(()=>{"use strict";hXi={Default:"default",Toggle:"toggle",Tabs:"tabs"}});var gXi,RJa=h(()=>{"use strict";gXi={Typescript:"typescript",Javascript:"javascript",Python:"python",Java:"java",Go:"go",Ruby:"ruby",Csharp:"csharp",Php:"php",Swift:"swift",Rust:"rust",Nodets:"nodets",Nodejs:"nodejs",Dotnet:"dotnet",Curl:"curl",Jvm:"jvm",Ts:"ts",Js:"js"}});var kJa=h(()=>{"use strict"});var FJa=h(()=>{"use strict"});var NJa=h(()=>{"use strict"});var jJa=h(()=>{"use strict"});var QJa=h(()=>{"use strict"});var AXi,zJa=h(()=>{"use strict";AXi={Header:"header",HeaderTabs:"header-tabs",Sidebar:"sidebar"}});var MJa=h(()=>{"use strict"});var LJa=h(()=>{"use strict"});var VJa=h(()=>{"use strict"});var yXi,UJa=h(()=>{"use strict";yXi={Default:"default",Minimal:"minimal"}});var _Ja=h(()=>{"use strict"});var GJa=h(()=>{"use strict"});var qJa=h(()=>{"use strict"});var WJa=h(()=>{"use strict"});var HJa=h(()=>{"use strict"});var bXi,KJa=h(()=>{"use strict";bXi={Header:"header",Sidebar:"sidebar"}});var JJa=h(()=>{"use strict"});var YJa=h(()=>{"use strict"});var XJa=h(()=>{"use strict"});var ZJa=h(()=>{"use strict"});var $Ja=h(()=>{"use strict"});var eYa=h(()=>{"use strict"});var EXi,tYa=h(()=>{"use strict";EXi={Left:"left",Center:"center"}});var IXi,rYa=h(()=>{"use strict";IXi={Header:"header",Sidebar:"sidebar"}});var nYa=h(()=>{"use strict"});var iYa=h(()=>{"use strict"});var vXi,oYa=h(()=>{"use strict";vXi={Default:"default",Bubble:"bubble"}});var sYa=h(()=>{"use strict"});var xXi,aYa=h(()=>{"use strict";xXi={Blank:"_blank",Self:"_self",Parent:"_parent",Top:"_top"}});var cYa=h(()=>{"use strict"});var CXi,uYa=h(()=>{"use strict";CXi={Frontmatter:"frontmatter",Filename:"filename"}});var lYa=h(()=>{"use strict"});var pYa=h(()=>{"use strict"});var wXi,fYa=h(()=>{"use strict";wXi={Summary:"summary",SummaryLargeImage:"summary_large_image",App:"app",Player:"player"}});var dYa=h(()=>{"use strict"});var SXi,mYa=h(()=>{"use strict";SXi={Deprecated:"deprecated",Legacy:"legacy",Ga:"ga",Stable:"stable",Beta:"beta",Alpha:"alpha",Preview:"preview"}});var hYa=h(()=>{"use strict"});var gYa=h(()=>{"use strict"});var AYa=h(()=>{"use strict"});var TXi,yYa=h(()=>{"use strict";TXi={Flat:"flat",Grouped:"grouped"}});var bYa=h(()=>{"use strict"});var EYa=h(()=>{"use strict"});var IYa=h(()=>{"use strict"});var OXi=h(()=>{"use strict";OHa();BHa();PHa();DHa();RHa();kHa();FHa();NHa();jHa();QHa();zHa();MHa();LHa();VHa();UHa();_Ha();GHa();qHa();WHa();HHa();KHa();JHa();YHa();XHa();ZHa();$Ha();eKa();tKa();rKa();nKa();iKa();oKa();sKa();aKa();cKa();uKa();lKa();pKa();fKa();dKa();mKa();hKa();gKa();AKa();yKa();bKa();EKa();IKa();vKa();xKa();CKa();wKa();SKa();TKa();OKa();BKa();PKa();DKa();RKa();kKa();FKa();NKa();jKa();QKa();zKa();MKa();LKa();VKa();UKa();_Ka();GKa();qKa();WKa();HKa();KKa();JKa();YKa();XKa();ZKa();$Ka();eJa();tJa();rJa();nJa();iJa();oJa();sJa();aJa();cJa();uJa();lJa();pJa();fJa();dJa();mJa();hJa();gJa();AJa();yJa();bJa();EJa();IJa();vJa();xJa();CJa();wJa();SJa();TJa();OJa();BJa();PJa();DJa();RJa();kJa();FJa();NJa();jJa();QJa();zJa();MJa();LJa();VJa();UJa();_Ja();GJa();qJa();WJa();HJa();KJa();JJa();YJa();XJa();ZJa();$Ja();eYa();tYa();rYa();nYa();iYa();oYa();sYa();aYa();cYa();uYa();lYa();pYa();fYa();dYa();mYa();hYa();gYa();AYa();yYa();bYa();EYa();IYa()});var zIr={};Z(zIr,{AiChatLocation:()=>HYi,AiChatModel:()=>KYi,ApiReferenceLayout:()=>JYi,Availability:()=>YYi,BodyThemeConfig:()=>XYi,ChangelogLayout:()=>ZYi,CheckRuleSeverity:()=>$Yi,CollapsedStringValue:()=>eXi,ContentAlignment:()=>tXi,EditThisPageLaunch:()=>rXi,FontDisplay:()=>nXi,FontStyle:()=>iXi,FooterNavThemeConfig:()=>oXi,HeaderPosition:()=>sXi,HttpSnippetLanguage:()=>aXi,JsScriptStrategy:()=>cXi,LanguageSwitcherThemeConfig:()=>uXi,LibraryLanguage:()=>lXi,OgDynamicLogoColor:()=>pXi,PageActionOption:()=>fXi,PageActionsThemeConfig:()=>dXi,PageDescriptionSource:()=>mXi,ProductSwitcherThemeConfig:()=>hXi,ProgrammingLanguage:()=>gXi,SearchbarPlacement:()=>AXi,SidebarThemeConfig:()=>yXi,SwitcherPlacement:()=>bXi,TabsAlignment:()=>EXi,TabsPlacement:()=>IXi,TabsThemeStyle:()=>vXi,Target:()=>xXi,TitleSource:()=>CXi,TwitterCardSetting:()=>wXi,VersionAvailability:()=>SXi,WebSocketOneofDisplay:()=>TXi});var vYa=h(()=>{"use strict";OXi()});var xYa=h(()=>{"use strict";vYa();OXi()});var BXi={};Z(BXi,{AiChatLocation:()=>HYi,AiChatModel:()=>KYi,ApiReferenceLayout:()=>JYi,Availability:()=>YYi,BodyThemeConfig:()=>XYi,ChangelogLayout:()=>ZYi,CheckRuleSeverity:()=>$Yi,CollapsedStringValue:()=>eXi,ContentAlignment:()=>tXi,EditThisPageLaunch:()=>rXi,FontDisplay:()=>nXi,FontStyle:()=>iXi,FooterNavThemeConfig:()=>oXi,HeaderPosition:()=>sXi,HttpSnippetLanguage:()=>aXi,JsScriptStrategy:()=>cXi,LanguageSwitcherThemeConfig:()=>uXi,LibraryLanguage:()=>lXi,OgDynamicLogoColor:()=>pXi,PageActionOption:()=>fXi,PageActionsThemeConfig:()=>dXi,PageDescriptionSource:()=>mXi,ProductSwitcherThemeConfig:()=>hXi,ProgrammingLanguage:()=>gXi,SearchbarPlacement:()=>AXi,SidebarThemeConfig:()=>yXi,SwitcherPlacement:()=>bXi,TabsAlignment:()=>EXi,TabsPlacement:()=>IXi,TabsThemeStyle:()=>vXi,Target:()=>xXi,TitleSource:()=>CXi,TwitterCardSetting:()=>wXi,VersionAvailability:()=>SXi,WebSocketOneofDisplay:()=>TXi,docs:()=>zIr});var PXi=h(()=>{"use strict";xYa()});var CYa,wYa=h(()=>{"use strict";CYa=(e,t,r)=>JSON.stringify(e,t,r)});function SRf({message:e,statusCode:t,body:r}){let n=[];return e!=null&&n.push(e),t!=null&&n.push(`Status code: ${t.toString()}`),r!=null&&n.push(`Body: ${CYa(r,void 0,2)}`),n.join(`
171
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let a=s[1];if(t===s[0]){o(s);continue}if(e.external){let u=e.external.registry.get(s[0])?.id;if(t!==s[0]&&u){o(s);continue}}if(e.metadataRegistry.get(s[0])?.id){o(s);continue}if(a.cycle){o(s);continue}if(a.count>1&&e.reused==="ref"){o(s);continue}}}function Rbe(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=s=>{let a=e.seen.get(s);if(a.ref===null)return;let c=a.def??a.schema,u={...c},l=a.ref;if(a.ref=null,l){n(l);let d=e.seen.get(l),f=d.schema;if(f.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(f)):Object.assign(c,f),Object.assign(c,u),s._zod.parent===l)for(let g in c)g==="$ref"||g==="allOf"||g in u||delete c[g];if(f.$ref&&d.def)for(let g in c)g==="$ref"||g==="allOf"||g in d.def&&JSON.stringify(c[g])===JSON.stringify(d.def[g])&&delete c[g]}let p=s._zod.parent;if(p&&p!==l){n(p);let d=e.seen.get(p);if(d?.schema.$ref&&(c.$ref=d.schema.$ref,d.def))for(let f in c)f==="$ref"||f==="allOf"||f in d.def&&JSON.stringify(c[f])===JSON.stringify(d.def[f])&&delete c[f]}e.override({zodSchema:s,jsonSchema:c,path:a.path??[]})};for(let s of[...e.seen.entries()].reverse())n(s[0]);let i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(s)}Object.assign(i,r.def??r.schema);let o=e.external?.defs??{};for(let s of e.seen.entries()){let a=s[1];a.def&&a.defId&&(o[a.defId]=a.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?i.$defs=o:i.definitions=o);try{let s=JSON.parse(JSON.stringify(i));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:jJe(t,"input",e.processors),output:jJe(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function EF(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return EF(n.element,r);if(n.type==="set")return EF(n.valueType,r);if(n.type==="lazy")return EF(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return EF(n.innerType,r);if(n.type==="intersection")return EF(n.left,r)||EF(n.right,r);if(n.type==="record"||n.type==="map")return EF(n.keyType,r)||EF(n.valueType,r);if(n.type==="pipe")return EF(n.in,r)||EF(n.out,r);if(n.type==="object"){for(let i in n.shape)if(EF(n.shape[i],r))return!0;return!1}if(n.type==="union"){for(let i of n.options)if(EF(i,r))return!0;return!1}if(n.type==="tuple"){for(let i of n.items)if(EF(i,r))return!0;return!!(n.rest&&EF(n.rest,r))}return!1}var jKi,jJe,wFt=h(()=>{"use strict";vFt();jKi=(e,t={})=>r=>{let n=Pbe({...r,processors:t});return Hh(e,n),Dbe(n,e),Rbe(n,e)},jJe=(e,t,r={})=>n=>{let{libraryOptions:i,target:o}=n??{},s=Pbe({...i??{},target:o,io:t,processors:r});return Hh(e,s),Dbe(s,e),Rbe(s,e)}});function JEr(e,t){if("_idmap"in e){let n=e,i=Pbe({...t,processors:WEr}),o={};for(let c of n._idmap.entries()){let[u,l]=c;Hh(l,i)}let s={},a={registry:n,uri:t?.uri,defs:o};i.external=a;for(let c of n._idmap.entries()){let[u,l]=c;Dbe(i,l),s[u]=Rbe(i,l)}if(Object.keys(o).length>0){let c=i.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[c]:o}}return{schemas:s}}let r=Pbe({...t,processors:WEr});return Hh(e,r),Dbe(r,e),Rbe(r,e)}var tRf,QKi,zKi,MKi,LKi,VKi,UKi,_Ki,GKi,qKi,WKi,HKi,KKi,JKi,YKi,XKi,ZKi,$Ki,eJi,tJi,rJi,nJi,iJi,oJi,sJi,aJi,HEr,cJi,uJi,lJi,pJi,fJi,dJi,mJi,hJi,gJi,AJi,yJi,KEr,bJi,WEr,SFt=h(()=>{"use strict";wFt();Va();tRf={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},QKi=(e,t,r,n)=>{let i=r;i.type="string";let{minimum:o,maximum:s,format:a,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(i.minLength=o),typeof s=="number"&&(i.maxLength=s),a&&(i.format=tRf[a]??a,i.format===""&&delete i.format,a==="time"&&delete i.format),u&&(i.contentEncoding=u),c&&c.size>0){let l=[...c];l.length===1?i.pattern=l[0].source:l.length>1&&(i.allOf=[...l.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},zKi=(e,t,r,n)=>{let i=r,{minimum:o,maximum:s,format:a,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;typeof a=="string"&&a.includes("int")?i.type="integer":i.type="number",typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l),typeof o=="number"&&(i.minimum=o,typeof l=="number"&&t.target!=="draft-04"&&(l>=o?delete i.minimum:delete i.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=u,i.exclusiveMaximum=!0):i.exclusiveMaximum=u),typeof s=="number"&&(i.maximum=s,typeof u=="number"&&t.target!=="draft-04"&&(u<=s?delete i.maximum:delete i.exclusiveMaximum)),typeof c=="number"&&(i.multipleOf=c)},MKi=(e,t,r,n)=>{r.type="boolean"},LKi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},VKi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},UKi=(e,t,r,n)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},_Ki=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},GKi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},qKi=(e,t,r,n)=>{r.not={}},WKi=(e,t,r,n)=>{},HKi=(e,t,r,n)=>{},KKi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},JKi=(e,t,r,n)=>{let i=e._zod.def,o=sFt(i.entries);o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),r.enum=o},YKi=(e,t,r,n)=>{let i=e._zod.def,o=[];for(let s of i.values)if(s===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(s))}else o.push(s);if(o.length!==0)if(o.length===1){let s=o[0];r.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[s]:r.const=s}else o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),o.every(s=>typeof s=="boolean")&&(r.type="boolean"),o.every(s=>s===null)&&(r.type="null"),r.enum=o},XKi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},ZKi=(e,t,r,n)=>{let i=r,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");i.type="string",i.pattern=o.source},$Ki=(e,t,r,n)=>{let i=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:a,mime:c}=e._zod.bag;s!==void 0&&(o.minLength=s),a!==void 0&&(o.maxLength=a),c?c.length===1?(o.contentMediaType=c[0],Object.assign(i,o)):(Object.assign(i,o),i.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(i,o)},eJi=(e,t,r,n)=>{r.type="boolean"},tJi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},rJi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},nJi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},iJi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},oJi=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},sJi=(e,t,r,n)=>{let i=r,o=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;typeof s=="number"&&(i.minItems=s),typeof a=="number"&&(i.maxItems=a),i.type="array",i.items=Hh(o.element,t,{...n,path:[...n.path,"items"]})},aJi=(e,t,r,n)=>{let i=r,o=e._zod.def;i.type="object",i.properties={};let s=o.shape;for(let u in s)i.properties[u]=Hh(s[u],t,{...n,path:[...n.path,"properties",u]});let a=new Set(Object.keys(s)),c=new Set([...a].filter(u=>{let l=o.shape[u]._zod;return t.io==="input"?l.optin===void 0:l.optout===void 0}));c.size>0&&(i.required=Array.from(c)),o.catchall?._zod.def.type==="never"?i.additionalProperties=!1:o.catchall?o.catchall&&(i.additionalProperties=Hh(o.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},HEr=(e,t,r,n)=>{let i=e._zod.def,o=i.inclusive===!1,s=i.options.map((a,c)=>Hh(a,t,{...n,path:[...n.path,o?"oneOf":"anyOf",c]}));o?r.oneOf=s:r.anyOf=s},cJi=(e,t,r,n)=>{let i=e._zod.def,o=Hh(i.left,t,{...n,path:[...n.path,"allOf",0]}),s=Hh(i.right,t,{...n,path:[...n.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(o)?o.allOf:[o],...a(s)?s.allOf:[s]];r.allOf=c},uJi=(e,t,r,n)=>{let i=r,o=e._zod.def;i.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((d,f)=>Hh(d,t,{...n,path:[...n.path,s,f]})),u=o.rest?Hh(o.rest,t,{...n,path:[...n.path,a,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(i.prefixItems=c,u&&(i.items=u)):t.target==="openapi-3.0"?(i.items={anyOf:c},u&&i.items.anyOf.push(u),i.minItems=c.length,u||(i.maxItems=c.length)):(i.items=c,u&&(i.additionalItems=u));let{minimum:l,maximum:p}=e._zod.bag;typeof l=="number"&&(i.minItems=l),typeof p=="number"&&(i.maxItems=p)},lJi=(e,t,r,n)=>{let i=r,o=e._zod.def;i.type="object";let s=o.keyType,c=s._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){let l=Hh(o.valueType,t,{...n,path:[...n.path,"patternProperties","*"]});i.patternProperties={};for(let p of c)i.patternProperties[p.source]=l}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(i.propertyNames=Hh(o.keyType,t,{...n,path:[...n.path,"propertyNames"]})),i.additionalProperties=Hh(o.valueType,t,{...n,path:[...n.path,"additionalProperties"]});let u=s._zod.values;if(u){let l=[...u].filter(p=>typeof p=="string"||typeof p=="number");l.length>0&&(i.required=l)}},pJi=(e,t,r,n)=>{let i=e._zod.def,o=Hh(i.innerType,t,n),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=i.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},fJi=(e,t,r,n)=>{let i=e._zod.def;Hh(i.innerType,t,n);let o=t.seen.get(e);o.ref=i.innerType},dJi=(e,t,r,n)=>{let i=e._zod.def;Hh(i.innerType,t,n);let o=t.seen.get(e);o.ref=i.innerType,r.default=JSON.parse(JSON.stringify(i.defaultValue))},mJi=(e,t,r,n)=>{let i=e._zod.def;Hh(i.innerType,t,n);let o=t.seen.get(e);o.ref=i.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},hJi=(e,t,r,n)=>{let i=e._zod.def;Hh(i.innerType,t,n);let o=t.seen.get(e);o.ref=i.innerType;let s;try{s=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},gJi=(e,t,r,n)=>{let i=e._zod.def,o=t.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;Hh(o,t,n);let s=t.seen.get(e);s.ref=o},AJi=(e,t,r,n)=>{let i=e._zod.def;Hh(i.innerType,t,n);let o=t.seen.get(e);o.ref=i.innerType,r.readOnly=!0},yJi=(e,t,r,n)=>{let i=e._zod.def;Hh(i.innerType,t,n);let o=t.seen.get(e);o.ref=i.innerType},KEr=(e,t,r,n)=>{let i=e._zod.def;Hh(i.innerType,t,n);let o=t.seen.get(e);o.ref=i.innerType},bJi=(e,t,r,n)=>{let i=e._zod.innerType;Hh(i,t,n);let o=t.seen.get(e);o.ref=i},WEr={string:QKi,number:zKi,boolean:MKi,bigint:LKi,symbol:VKi,null:UKi,undefined:_Ki,void:GKi,never:qKi,any:WKi,unknown:HKi,date:KKi,enum:JKi,literal:YKi,nan:XKi,template_literal:ZKi,file:$Ki,success:eJi,custom:tJi,function:rJi,transform:nJi,map:iJi,set:oJi,array:sJi,object:aJi,union:HEr,intersection:cJi,tuple:uJi,record:lJi,nullable:pJi,nonoptional:fJi,default:dJi,prefault:mJi,catch:hJi,pipe:gJi,readonly:AJi,promise:yJi,optional:KEr,lazy:bJi}});var YEr,rqa=h(()=>{"use strict";SFt();wFt();YEr=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 r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Pbe({processors:WEr,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return Hh(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),Dbe(this.ctx,t);let n=Rbe(this.ctx,t),{"~standard":i,...o}=n;return o}}});var nqa={};var iqa=h(()=>{"use strict"});var rle={};Z(rle,{$ZodAny:()=>fHi,$ZodArray:()=>AHi,$ZodAsyncError:()=>K7,$ZodBase64:()=>rHi,$ZodBase64URL:()=>nHi,$ZodBigInt:()=>dEr,$ZodBigIntFormat:()=>cHi,$ZodBoolean:()=>AFt,$ZodCIDRv4:()=>$Wi,$ZodCIDRv6:()=>eHi,$ZodCUID:()=>VWi,$ZodCUID2:()=>UWi,$ZodCatch:()=>NHi,$ZodCheck:()=>MA,$ZodCheckBigIntFormat:()=>hWi,$ZodCheckEndsWith:()=>TWi,$ZodCheckGreaterThan:()=>oEr,$ZodCheckIncludes:()=>wWi,$ZodCheckLengthEquals:()=>IWi,$ZodCheckLessThan:()=>iEr,$ZodCheckLowerCase:()=>xWi,$ZodCheckMaxLength:()=>bWi,$ZodCheckMaxSize:()=>gWi,$ZodCheckMimeType:()=>BWi,$ZodCheckMinLength:()=>EWi,$ZodCheckMinSize:()=>AWi,$ZodCheckMultipleOf:()=>dWi,$ZodCheckNumberFormat:()=>mWi,$ZodCheckOverwrite:()=>PWi,$ZodCheckProperty:()=>OWi,$ZodCheckRegex:()=>vWi,$ZodCheckSizeEquals:()=>yWi,$ZodCheckStartsWith:()=>SWi,$ZodCheckStringFormat:()=>IJe,$ZodCheckUpperCase:()=>CWi,$ZodCodec:()=>bFt,$ZodCustom:()=>_Hi,$ZodCustomStringFormat:()=>sHi,$ZodDate:()=>gHi,$ZodDefault:()=>DHi,$ZodDiscriminatedUnion:()=>EHi,$ZodE164:()=>iHi,$ZodEmail:()=>QWi,$ZodEmoji:()=>MWi,$ZodEncodeError:()=>xbe,$ZodEnum:()=>wHi,$ZodError:()=>pFt,$ZodExactOptional:()=>BHi,$ZodFile:()=>THi,$ZodFunction:()=>LHi,$ZodGUID:()=>NWi,$ZodIPv4:()=>YWi,$ZodIPv6:()=>XWi,$ZodISODate:()=>HWi,$ZodISODateTime:()=>WWi,$ZodISODuration:()=>JWi,$ZodISOTime:()=>KWi,$ZodIntersection:()=>IHi,$ZodJWT:()=>oHi,$ZodKSUID:()=>qWi,$ZodLazy:()=>UHi,$ZodLiteral:()=>SHi,$ZodMAC:()=>ZWi,$ZodMap:()=>xHi,$ZodNaN:()=>jHi,$ZodNanoID:()=>LWi,$ZodNever:()=>mHi,$ZodNonOptional:()=>kHi,$ZodNull:()=>pHi,$ZodNullable:()=>PHi,$ZodNumber:()=>fEr,$ZodNumberFormat:()=>aHi,$ZodObject:()=>l9a,$ZodObjectJIT:()=>yHi,$ZodOptional:()=>hEr,$ZodPipe:()=>QHi,$ZodPrefault:()=>RHi,$ZodPromise:()=>VHi,$ZodReadonly:()=>zHi,$ZodRealError:()=>eQ,$ZodRecord:()=>vHi,$ZodRegistry:()=>bEr,$ZodSet:()=>CHi,$ZodString:()=>Eje,$ZodStringFormat:()=>dA,$ZodSuccess:()=>FHi,$ZodSymbol:()=>uHi,$ZodTemplateLiteral:()=>MHi,$ZodTransform:()=>OHi,$ZodTuple:()=>mEr,$ZodType:()=>Gu,$ZodULID:()=>_Wi,$ZodURL:()=>zWi,$ZodUUID:()=>jWi,$ZodUndefined:()=>lHi,$ZodUnion:()=>yFt,$ZodUnknown:()=>dHi,$ZodVoid:()=>hHi,$ZodXID:()=>GWi,$ZodXor:()=>bHi,$brand:()=>U0r,$constructor:()=>xr,$input:()=>YHi,$output:()=>JHi,Doc:()=>gFt,JSONSchema:()=>nqa,JSONSchemaGenerator:()=>YEr,NEVER:()=>v7i,TimePrecision:()=>eKi,_any:()=>IKi,_array:()=>OKi,_base64:()=>QEr,_base64url:()=>zEr,_bigint:()=>mKi,_boolean:()=>fKi,_catch:()=>JDf,_check:()=>eqa,_cidrv4:()=>NEr,_cidrv6:()=>jEr,_coercedBigint:()=>hKi,_coercedBoolean:()=>dKi,_coercedDate:()=>SKi,_coercedNumber:()=>sKi,_coercedString:()=>ZHi,_cuid:()=>OEr,_cuid2:()=>BEr,_custom:()=>PKi,_date:()=>wKi,_decode:()=>K0r,_decodeAsync:()=>Y0r,_default:()=>WDf,_discriminatedUnion:()=>FDf,_e164:()=>MEr,_email:()=>IEr,_emoji:()=>SEr,_encode:()=>H0r,_encodeAsync:()=>J0r,_endsWith:()=>OJe,_enum:()=>LDf,_file:()=>BKi,_float32:()=>cKi,_float64:()=>uKi,_gt:()=>pX,_gte:()=>bF,_guid:()=>xFt,_includes:()=>SJe,_int:()=>aKi,_int32:()=>lKi,_int64:()=>gKi,_intersection:()=>NDf,_ipv4:()=>kEr,_ipv6:()=>FEr,_isoDate:()=>rKi,_isoDateTime:()=>tKi,_isoDuration:()=>iKi,_isoTime:()=>nKi,_jwt:()=>LEr,_ksuid:()=>REr,_lazy:()=>$Df,_length:()=>xje,_literal:()=>UDf,_lowercase:()=>CJe,_lt:()=>lX,_lte:()=>wL,_mac:()=>$Hi,_map:()=>zDf,_max:()=>wL,_maxLength:()=>vje,_maxSize:()=>Bbe,_mime:()=>BJe,_min:()=>bF,_minLength:()=>tle,_minSize:()=>fX,_multipleOf:()=>Obe,_nan:()=>TKi,_nanoid:()=>TEr,_nativeEnum:()=>VDf,_negative:()=>UEr,_never:()=>xKi,_nonnegative:()=>GEr,_nonoptional:()=>HDf,_nonpositive:()=>_Er,_normalize:()=>PJe,_null:()=>EKi,_nullable:()=>qDf,_number:()=>oKi,_optional:()=>GDf,_overwrite:()=>J7,_parse:()=>AJe,_parseAsync:()=>yJe,_pipe:()=>YDf,_positive:()=>VEr,_promise:()=>eRf,_property:()=>qEr,_readonly:()=>XDf,_record:()=>QDf,_refine:()=>DKi,_regex:()=>xJe,_safeDecode:()=>Z0r,_safeDecodeAsync:()=>eEr,_safeEncode:()=>X0r,_safeEncodeAsync:()=>$0r,_safeParse:()=>bJe,_safeParseAsync:()=>EJe,_set:()=>MDf,_size:()=>Ije,_slugify:()=>FJe,_startsWith:()=>TJe,_string:()=>XHi,_stringFormat:()=>NJe,_stringbool:()=>NKi,_success:()=>KDf,_superRefine:()=>RKi,_symbol:()=>yKi,_templateLiteral:()=>ZDf,_toLowerCase:()=>RJe,_toUpperCase:()=>kJe,_transform:()=>_Df,_trim:()=>DJe,_tuple:()=>jDf,_uint32:()=>pKi,_uint64:()=>AKi,_ulid:()=>PEr,_undefined:()=>bKi,_union:()=>RDf,_unknown:()=>vKi,_uppercase:()=>wJe,_url:()=>CFt,_uuid:()=>vEr,_uuidv4:()=>xEr,_uuidv6:()=>CEr,_uuidv7:()=>wEr,_void:()=>CKi,_xid:()=>DEr,_xor:()=>kDf,clone:()=>yF,config:()=>FI,createStandardJSONSchemaMethod:()=>jJe,createToJSONSchemaMethod:()=>jKi,decode:()=>nPf,decodeAsync:()=>oPf,describe:()=>kKi,encode:()=>rPf,encodeAsync:()=>iPf,extractDefs:()=>Dbe,finalize:()=>Rbe,flattenError:()=>fFt,formatError:()=>dFt,globalConfig:()=>iFt,globalRegistry:()=>oB,initializeContext:()=>Pbe,isValidBase64:()=>tHi,isValidBase64URL:()=>s9a,isValidJWT:()=>a9a,locales:()=>IFt,meta:()=>FKi,parse:()=>q0r,parseAsync:()=>W0r,prettifyError:()=>F7i,process:()=>Hh,regexes:()=>gU,registry:()=>EEr,safeDecode:()=>aPf,safeDecodeAsync:()=>uPf,safeEncode:()=>sPf,safeEncodeAsync:()=>cPf,safeParse:()=>j7i,safeParseAsync:()=>Q7i,toDotPath:()=>U8a,toJSONSchema:()=>JEr,treeifyError:()=>k7i,util:()=>vi,version:()=>RWi});var tQ=h(()=>{"use strict";dJe();z7i();N7i();GHi();sEr();kWi();Va();nEr();KHi();vFt();DWi();tqa();wFt();SFt();rqa();iqa()});var XEr={};Z(XEr,{endsWith:()=>OJe,gt:()=>pX,gte:()=>bF,includes:()=>SJe,length:()=>xje,lowercase:()=>CJe,lt:()=>lX,lte:()=>wL,maxLength:()=>vje,maxSize:()=>Bbe,mime:()=>BJe,minLength:()=>tle,minSize:()=>fX,multipleOf:()=>Obe,negative:()=>UEr,nonnegative:()=>GEr,nonpositive:()=>_Er,normalize:()=>PJe,overwrite:()=>J7,positive:()=>VEr,property:()=>qEr,regex:()=>xJe,size:()=>Ije,slugify:()=>FJe,startsWith:()=>TJe,toLowerCase:()=>RJe,toUpperCase:()=>kJe,trim:()=>DJe,uppercase:()=>wJe});var ZEr=h(()=>{"use strict";tQ()});var QJe={};Z(QJe,{ZodISODate:()=>eIr,ZodISODateTime:()=>$Er,ZodISODuration:()=>rIr,ZodISOTime:()=>tIr,date:()=>IJi,datetime:()=>EJi,duration:()=>xJi,time:()=>vJi});function EJi(e){return tKi($Er,e)}function IJi(e){return rKi(eIr,e)}function vJi(e){return nKi(tIr,e)}function xJi(e){return iKi(rIr,e)}var $Er,eIr,tIr,rIr,TFt=h(()=>{"use strict";tQ();BFt();$Er=xr("ZodISODateTime",(e,t)=>{WWi.init(e,t),mA.init(e,t)});eIr=xr("ZodISODate",(e,t)=>{HWi.init(e,t),mA.init(e,t)});tIr=xr("ZodISOTime",(e,t)=>{KWi.init(e,t),mA.init(e,t)});rIr=xr("ZodISODuration",(e,t)=>{JWi.init(e,t),mA.init(e,t)})});var oqa,nRf,rQ,CJi=h(()=>{"use strict";tQ();tQ();Va();oqa=(e,t)=>{pFt.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>dFt(e,r)},flatten:{value:r=>fFt(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,mJe,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,mJe,2)}},isEmpty:{get(){return e.issues.length===0}}})},nRf=xr("ZodError",oqa),rQ=xr("ZodError",oqa,{Parent:Error})});var wJi,SJi,TJi,OJi,BJi,PJi,DJi,RJi,kJi,FJi,NJi,jJi,QJi=h(()=>{"use strict";tQ();CJi();wJi=AJe(rQ),SJi=yJe(rQ),TJi=bJe(rQ),OJi=EJe(rQ),BJi=H0r(rQ),PJi=K0r(rQ),DJi=J0r(rQ),RJi=Y0r(rQ),kJi=X0r(rQ),FJi=Z0r(rQ),NJi=$0r(rQ),jJi=eEr(rQ)});var OFt={};Z(OFt,{ZodAny:()=>qJi,ZodArray:()=>JJi,ZodBase64:()=>yIr,ZodBase64URL:()=>bIr,ZodBigInt:()=>_Je,ZodBigIntFormat:()=>vIr,ZodBoolean:()=>UJe,ZodCIDRv4:()=>gIr,ZodCIDRv6:()=>AIr,ZodCUID:()=>uIr,ZodCUID2:()=>lIr,ZodCatch:()=>AYi,ZodCodec:()=>PIr,ZodCustom:()=>LFt,ZodCustomStringFormat:()=>LJe,ZodDate:()=>NFt,ZodDefault:()=>pYi,ZodDiscriminatedUnion:()=>XJi,ZodE164:()=>EIr,ZodEmail:()=>sIr,ZodEmoji:()=>aIr,ZodEnum:()=>zJe,ZodExactOptional:()=>cYi,ZodFile:()=>sYi,ZodFunction:()=>SYi,ZodGUID:()=>PFt,ZodIPv4:()=>mIr,ZodIPv6:()=>hIr,ZodIntersection:()=>ZJi,ZodJWT:()=>IIr,ZodKSUID:()=>dIr,ZodLazy:()=>xYi,ZodLiteral:()=>oYi,ZodMAC:()=>zJi,ZodMap:()=>nYi,ZodNaN:()=>bYi,ZodNanoID:()=>cIr,ZodNever:()=>HJi,ZodNonOptional:()=>OIr,ZodNull:()=>_Ji,ZodNullable:()=>lYi,ZodNumber:()=>VJe,ZodNumberFormat:()=>wje,ZodObject:()=>QFt,ZodOptional:()=>TIr,ZodPipe:()=>BIr,ZodPrefault:()=>dYi,ZodPromise:()=>wYi,ZodReadonly:()=>EYi,ZodRecord:()=>MFt,ZodSet:()=>iYi,ZodString:()=>MJe,ZodStringFormat:()=>mA,ZodSuccess:()=>gYi,ZodSymbol:()=>VJi,ZodTemplateLiteral:()=>vYi,ZodTransform:()=>aYi,ZodTuple:()=>eYi,ZodType:()=>sp,ZodULID:()=>pIr,ZodURL:()=>FFt,ZodUUID:()=>dX,ZodUndefined:()=>UJi,ZodUnion:()=>zFt,ZodUnknown:()=>WJi,ZodVoid:()=>KJi,ZodXID:()=>fIr,ZodXor:()=>YJi,_ZodString:()=>oIr,_default:()=>fYi,_function:()=>p7a,any:()=>_qa,array:()=>jFt,base64:()=>Sqa,base64url:()=>Tqa,bigint:()=>zqa,boolean:()=>LJi,catch:()=>yYi,check:()=>f7a,cidrv4:()=>Cqa,cidrv6:()=>wqa,codec:()=>c7a,cuid:()=>gqa,cuid2:()=>Aqa,custom:()=>d7a,date:()=>qqa,describe:()=>m7a,discriminatedUnion:()=>Xqa,e164:()=>Oqa,email:()=>sqa,emoji:()=>mqa,enum:()=>wIr,exactOptional:()=>uYi,file:()=>i7a,float32:()=>Fqa,float64:()=>Nqa,function:()=>p7a,guid:()=>aqa,hash:()=>kqa,hex:()=>Rqa,hostname:()=>Dqa,httpUrl:()=>dqa,instanceof:()=>g7a,int:()=>iIr,int32:()=>jqa,int64:()=>Mqa,intersection:()=>$Ji,ipv4:()=>Iqa,ipv6:()=>xqa,json:()=>y7a,jwt:()=>Bqa,keyof:()=>Wqa,ksuid:()=>Eqa,lazy:()=>CYi,literal:()=>n7a,looseObject:()=>Jqa,looseRecord:()=>$qa,mac:()=>vqa,map:()=>e7a,meta:()=>h7a,nan:()=>a7a,nanoid:()=>hqa,nativeEnum:()=>r7a,never:()=>xIr,nonoptional:()=>hYi,null:()=>GJi,nullable:()=>RFt,nullish:()=>o7a,number:()=>MJi,object:()=>Hqa,optional:()=>DFt,partialRecord:()=>Zqa,pipe:()=>kFt,prefault:()=>mYi,preprocess:()=>b7a,promise:()=>l7a,readonly:()=>IYi,record:()=>rYi,refine:()=>TYi,set:()=>t7a,strictObject:()=>Kqa,string:()=>nIr,stringFormat:()=>Pqa,stringbool:()=>A7a,success:()=>s7a,superRefine:()=>OYi,symbol:()=>Vqa,templateLiteral:()=>u7a,transform:()=>SIr,tuple:()=>tYi,uint32:()=>Qqa,uint64:()=>Lqa,ulid:()=>yqa,undefined:()=>Uqa,union:()=>CIr,unknown:()=>Cje,url:()=>fqa,uuid:()=>cqa,uuidv4:()=>uqa,uuidv6:()=>lqa,uuidv7:()=>pqa,void:()=>Gqa,xid:()=>bqa,xor:()=>Yqa});function nIr(e){return XHi(MJe,e)}function sqa(e){return IEr(sIr,e)}function aqa(e){return xFt(PFt,e)}function cqa(e){return vEr(dX,e)}function uqa(e){return xEr(dX,e)}function lqa(e){return CEr(dX,e)}function pqa(e){return wEr(dX,e)}function fqa(e){return CFt(FFt,e)}function dqa(e){return CFt(FFt,{protocol:/^https?$/,hostname:gU.domain,...vi.normalizeParams(e)})}function mqa(e){return SEr(aIr,e)}function hqa(e){return TEr(cIr,e)}function gqa(e){return OEr(uIr,e)}function Aqa(e){return BEr(lIr,e)}function yqa(e){return PEr(pIr,e)}function bqa(e){return DEr(fIr,e)}function Eqa(e){return REr(dIr,e)}function Iqa(e){return kEr(mIr,e)}function vqa(e){return $Hi(zJi,e)}function xqa(e){return FEr(hIr,e)}function Cqa(e){return NEr(gIr,e)}function wqa(e){return jEr(AIr,e)}function Sqa(e){return QEr(yIr,e)}function Tqa(e){return zEr(bIr,e)}function Oqa(e){return MEr(EIr,e)}function Bqa(e){return LEr(IIr,e)}function Pqa(e,t,r={}){return NJe(LJe,e,t,r)}function Dqa(e){return NJe(LJe,"hostname",gU.hostname,e)}function Rqa(e){return NJe(LJe,"hex",gU.hex,e)}function kqa(e,t){let r=t?.enc??"hex",n=`${e}_${r}`,i=gU[n];if(!i)throw new Error(`Unrecognized hash format: ${n}`);return NJe(LJe,n,i,t)}function MJi(e){return oKi(VJe,e)}function iIr(e){return aKi(wje,e)}function Fqa(e){return cKi(wje,e)}function Nqa(e){return uKi(wje,e)}function jqa(e){return lKi(wje,e)}function Qqa(e){return pKi(wje,e)}function LJi(e){return fKi(UJe,e)}function zqa(e){return mKi(_Je,e)}function Mqa(e){return gKi(vIr,e)}function Lqa(e){return AKi(vIr,e)}function Vqa(e){return yKi(VJi,e)}function Uqa(e){return bKi(UJi,e)}function GJi(e){return EKi(_Ji,e)}function _qa(){return IKi(qJi)}function Cje(){return vKi(WJi)}function xIr(e){return xKi(HJi,e)}function Gqa(e){return CKi(KJi,e)}function qqa(e){return wKi(NFt,e)}function jFt(e,t){return OKi(JJi,e,t)}function Wqa(e){let t=e._zod.def.shape;return wIr(Object.keys(t))}function Hqa(e,t){let r={type:"object",shape:e??{},...vi.normalizeParams(t)};return new QFt(r)}function Kqa(e,t){return new QFt({type:"object",shape:e,catchall:xIr(),...vi.normalizeParams(t)})}function Jqa(e,t){return new QFt({type:"object",shape:e,catchall:Cje(),...vi.normalizeParams(t)})}function CIr(e,t){return new zFt({type:"union",options:e,...vi.normalizeParams(t)})}function Yqa(e,t){return new YJi({type:"union",options:e,inclusive:!1,...vi.normalizeParams(t)})}function Xqa(e,t,r){return new XJi({type:"union",options:t,discriminator:e,...vi.normalizeParams(r)})}function $Ji(e,t){return new ZJi({type:"intersection",left:e,right:t})}function tYi(e,t,r){let n=t instanceof Gu,i=n?r:t,o=n?t:null;return new eYi({type:"tuple",items:e,rest:o,...vi.normalizeParams(i)})}function rYi(e,t,r){return new MFt({type:"record",keyType:e,valueType:t,...vi.normalizeParams(r)})}function Zqa(e,t,r){let n=yF(e);return n._zod.values=void 0,new MFt({type:"record",keyType:n,valueType:t,...vi.normalizeParams(r)})}function $qa(e,t,r){return new MFt({type:"record",keyType:e,valueType:t,mode:"loose",...vi.normalizeParams(r)})}function e7a(e,t,r){return new nYi({type:"map",keyType:e,valueType:t,...vi.normalizeParams(r)})}function t7a(e,t){return new iYi({type:"set",valueType:e,...vi.normalizeParams(t)})}function wIr(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new zJe({type:"enum",entries:r,...vi.normalizeParams(t)})}function r7a(e,t){return new zJe({type:"enum",entries:e,...vi.normalizeParams(t)})}function n7a(e,t){return new oYi({type:"literal",values:Array.isArray(e)?e:[e],...vi.normalizeParams(t)})}function i7a(e){return BKi(sYi,e)}function SIr(e){return new aYi({type:"transform",transform:e})}function DFt(e){return new TIr({type:"optional",innerType:e})}function uYi(e){return new cYi({type:"optional",innerType:e})}function RFt(e){return new lYi({type:"nullable",innerType:e})}function o7a(e){return DFt(RFt(e))}function fYi(e,t){return new pYi({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():vi.shallowClone(t)}})}function mYi(e,t){return new dYi({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():vi.shallowClone(t)}})}function hYi(e,t){return new OIr({type:"nonoptional",innerType:e,...vi.normalizeParams(t)})}function s7a(e){return new gYi({type:"success",innerType:e})}function yYi(e,t){return new AYi({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}function a7a(e){return TKi(bYi,e)}function kFt(e,t){return new BIr({type:"pipe",in:e,out:t})}function c7a(e,t,r){return new PIr({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function IYi(e){return new EYi({type:"readonly",innerType:e})}function u7a(e,t){return new vYi({type:"template_literal",parts:e,...vi.normalizeParams(t)})}function CYi(e){return new xYi({type:"lazy",getter:e})}function l7a(e){return new wYi({type:"promise",innerType:e})}function p7a(e){return new SYi({type:"function",input:Array.isArray(e?.input)?tYi(e?.input):e?.input??jFt(Cje()),output:e?.output??Cje()})}function f7a(e){let t=new MA({check:"custom"});return t._zod.check=e,t}function d7a(e,t){return PKi(LFt,e??(()=>!0),t)}function TYi(e,t={}){return DKi(LFt,e,t)}function OYi(e){return RKi(e)}function g7a(e,t={}){let r=new LFt({type:"custom",check:"custom",fn:n=>n instanceof e,abort:!0,...vi.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=n=>{n.value instanceof e||n.issues.push({code:"invalid_type",expected:e.name,input:n.value,inst:r,path:[...r._zod.def.path??[]]})},r}function y7a(e){let t=CYi(()=>CIr([nIr(e),MJi(),LJi(),GJi(),jFt(t),rYi(nIr(),t)]));return t}function b7a(e,t){return kFt(SIr(e),t)}var sp,oIr,MJe,mA,sIr,PFt,dX,FFt,aIr,cIr,uIr,lIr,pIr,fIr,dIr,mIr,zJi,hIr,gIr,AIr,yIr,bIr,EIr,IIr,LJe,VJe,wje,UJe,_Je,vIr,VJi,UJi,_Ji,qJi,WJi,HJi,KJi,NFt,JJi,QFt,zFt,YJi,XJi,ZJi,eYi,MFt,nYi,iYi,zJe,oYi,sYi,aYi,TIr,cYi,lYi,pYi,dYi,OIr,gYi,AYi,bYi,BIr,PIr,EYi,vYi,xYi,wYi,SYi,LFt,m7a,h7a,A7a,BFt=h(()=>{"use strict";tQ();tQ();SFt();wFt();ZEr();TFt();QJi();sp=xr("ZodType",(e,t)=>(Gu.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:jJe(e,"input"),output:jJe(e,"output")}}),e.toJSONSchema=jKi(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(vi.mergeDefs(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(r,n)=>yF(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>wJi(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>TJi(e,r,n),e.parseAsync=async(r,n)=>SJi(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>OJi(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>BJi(e,r,n),e.decode=(r,n)=>PJi(e,r,n),e.encodeAsync=async(r,n)=>DJi(e,r,n),e.decodeAsync=async(r,n)=>RJi(e,r,n),e.safeEncode=(r,n)=>kJi(e,r,n),e.safeDecode=(r,n)=>FJi(e,r,n),e.safeEncodeAsync=async(r,n)=>NJi(e,r,n),e.safeDecodeAsync=async(r,n)=>jJi(e,r,n),e.refine=(r,n)=>e.check(TYi(r,n)),e.superRefine=r=>e.check(OYi(r)),e.overwrite=r=>e.check(J7(r)),e.optional=()=>DFt(e),e.exactOptional=()=>uYi(e),e.nullable=()=>RFt(e),e.nullish=()=>DFt(RFt(e)),e.nonoptional=r=>hYi(e,r),e.array=()=>jFt(e),e.or=r=>CIr([e,r]),e.and=r=>$Ji(e,r),e.transform=r=>kFt(e,SIr(r)),e.default=r=>fYi(e,r),e.prefault=r=>mYi(e,r),e.catch=r=>yYi(e,r),e.pipe=r=>kFt(e,r),e.readonly=()=>IYi(e),e.describe=r=>{let n=e.clone();return oB.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return oB.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return oB.get(e);let n=e.clone();return oB.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),oIr=xr("_ZodString",(e,t)=>{Eje.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(n,i,o)=>QKi(e,n,i,o);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(xJe(...n)),e.includes=(...n)=>e.check(SJe(...n)),e.startsWith=(...n)=>e.check(TJe(...n)),e.endsWith=(...n)=>e.check(OJe(...n)),e.min=(...n)=>e.check(tle(...n)),e.max=(...n)=>e.check(vje(...n)),e.length=(...n)=>e.check(xje(...n)),e.nonempty=(...n)=>e.check(tle(1,...n)),e.lowercase=n=>e.check(CJe(n)),e.uppercase=n=>e.check(wJe(n)),e.trim=()=>e.check(DJe()),e.normalize=(...n)=>e.check(PJe(...n)),e.toLowerCase=()=>e.check(RJe()),e.toUpperCase=()=>e.check(kJe()),e.slugify=()=>e.check(FJe())}),MJe=xr("ZodString",(e,t)=>{Eje.init(e,t),oIr.init(e,t),e.email=r=>e.check(IEr(sIr,r)),e.url=r=>e.check(CFt(FFt,r)),e.jwt=r=>e.check(LEr(IIr,r)),e.emoji=r=>e.check(SEr(aIr,r)),e.guid=r=>e.check(xFt(PFt,r)),e.uuid=r=>e.check(vEr(dX,r)),e.uuidv4=r=>e.check(xEr(dX,r)),e.uuidv6=r=>e.check(CEr(dX,r)),e.uuidv7=r=>e.check(wEr(dX,r)),e.nanoid=r=>e.check(TEr(cIr,r)),e.guid=r=>e.check(xFt(PFt,r)),e.cuid=r=>e.check(OEr(uIr,r)),e.cuid2=r=>e.check(BEr(lIr,r)),e.ulid=r=>e.check(PEr(pIr,r)),e.base64=r=>e.check(QEr(yIr,r)),e.base64url=r=>e.check(zEr(bIr,r)),e.xid=r=>e.check(DEr(fIr,r)),e.ksuid=r=>e.check(REr(dIr,r)),e.ipv4=r=>e.check(kEr(mIr,r)),e.ipv6=r=>e.check(FEr(hIr,r)),e.cidrv4=r=>e.check(NEr(gIr,r)),e.cidrv6=r=>e.check(jEr(AIr,r)),e.e164=r=>e.check(MEr(EIr,r)),e.datetime=r=>e.check(EJi(r)),e.date=r=>e.check(IJi(r)),e.time=r=>e.check(vJi(r)),e.duration=r=>e.check(xJi(r))});mA=xr("ZodStringFormat",(e,t)=>{dA.init(e,t),oIr.init(e,t)}),sIr=xr("ZodEmail",(e,t)=>{QWi.init(e,t),mA.init(e,t)});PFt=xr("ZodGUID",(e,t)=>{NWi.init(e,t),mA.init(e,t)});dX=xr("ZodUUID",(e,t)=>{jWi.init(e,t),mA.init(e,t)});FFt=xr("ZodURL",(e,t)=>{zWi.init(e,t),mA.init(e,t)});aIr=xr("ZodEmoji",(e,t)=>{MWi.init(e,t),mA.init(e,t)});cIr=xr("ZodNanoID",(e,t)=>{LWi.init(e,t),mA.init(e,t)});uIr=xr("ZodCUID",(e,t)=>{VWi.init(e,t),mA.init(e,t)});lIr=xr("ZodCUID2",(e,t)=>{UWi.init(e,t),mA.init(e,t)});pIr=xr("ZodULID",(e,t)=>{_Wi.init(e,t),mA.init(e,t)});fIr=xr("ZodXID",(e,t)=>{GWi.init(e,t),mA.init(e,t)});dIr=xr("ZodKSUID",(e,t)=>{qWi.init(e,t),mA.init(e,t)});mIr=xr("ZodIPv4",(e,t)=>{YWi.init(e,t),mA.init(e,t)});zJi=xr("ZodMAC",(e,t)=>{ZWi.init(e,t),mA.init(e,t)});hIr=xr("ZodIPv6",(e,t)=>{XWi.init(e,t),mA.init(e,t)});gIr=xr("ZodCIDRv4",(e,t)=>{$Wi.init(e,t),mA.init(e,t)});AIr=xr("ZodCIDRv6",(e,t)=>{eHi.init(e,t),mA.init(e,t)});yIr=xr("ZodBase64",(e,t)=>{rHi.init(e,t),mA.init(e,t)});bIr=xr("ZodBase64URL",(e,t)=>{nHi.init(e,t),mA.init(e,t)});EIr=xr("ZodE164",(e,t)=>{iHi.init(e,t),mA.init(e,t)});IIr=xr("ZodJWT",(e,t)=>{oHi.init(e,t),mA.init(e,t)});LJe=xr("ZodCustomStringFormat",(e,t)=>{sHi.init(e,t),mA.init(e,t)});VJe=xr("ZodNumber",(e,t)=>{fEr.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(n,i,o)=>zKi(e,n,i,o),e.gt=(n,i)=>e.check(pX(n,i)),e.gte=(n,i)=>e.check(bF(n,i)),e.min=(n,i)=>e.check(bF(n,i)),e.lt=(n,i)=>e.check(lX(n,i)),e.lte=(n,i)=>e.check(wL(n,i)),e.max=(n,i)=>e.check(wL(n,i)),e.int=n=>e.check(iIr(n)),e.safe=n=>e.check(iIr(n)),e.positive=n=>e.check(pX(0,n)),e.nonnegative=n=>e.check(bF(0,n)),e.negative=n=>e.check(lX(0,n)),e.nonpositive=n=>e.check(wL(0,n)),e.multipleOf=(n,i)=>e.check(Obe(n,i)),e.step=(n,i)=>e.check(Obe(n,i)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});wje=xr("ZodNumberFormat",(e,t)=>{aHi.init(e,t),VJe.init(e,t)});UJe=xr("ZodBoolean",(e,t)=>{AFt.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>MKi(e,r,n,i)});_Je=xr("ZodBigInt",(e,t)=>{dEr.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(n,i,o)=>LKi(e,n,i,o),e.gte=(n,i)=>e.check(bF(n,i)),e.min=(n,i)=>e.check(bF(n,i)),e.gt=(n,i)=>e.check(pX(n,i)),e.gte=(n,i)=>e.check(bF(n,i)),e.min=(n,i)=>e.check(bF(n,i)),e.lt=(n,i)=>e.check(lX(n,i)),e.lte=(n,i)=>e.check(wL(n,i)),e.max=(n,i)=>e.check(wL(n,i)),e.positive=n=>e.check(pX(BigInt(0),n)),e.negative=n=>e.check(lX(BigInt(0),n)),e.nonpositive=n=>e.check(wL(BigInt(0),n)),e.nonnegative=n=>e.check(bF(BigInt(0),n)),e.multipleOf=(n,i)=>e.check(Obe(n,i));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});vIr=xr("ZodBigIntFormat",(e,t)=>{cHi.init(e,t),_Je.init(e,t)});VJi=xr("ZodSymbol",(e,t)=>{uHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>VKi(e,r,n,i)});UJi=xr("ZodUndefined",(e,t)=>{lHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>_Ki(e,r,n,i)});_Ji=xr("ZodNull",(e,t)=>{pHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>UKi(e,r,n,i)});qJi=xr("ZodAny",(e,t)=>{fHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>WKi(e,r,n,i)});WJi=xr("ZodUnknown",(e,t)=>{dHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>HKi(e,r,n,i)});HJi=xr("ZodNever",(e,t)=>{mHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>qKi(e,r,n,i)});KJi=xr("ZodVoid",(e,t)=>{hHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>GKi(e,r,n,i)});NFt=xr("ZodDate",(e,t)=>{gHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(n,i,o)=>KKi(e,n,i,o),e.min=(n,i)=>e.check(bF(n,i)),e.max=(n,i)=>e.check(wL(n,i));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});JJi=xr("ZodArray",(e,t)=>{AHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>sJi(e,r,n,i),e.element=t.element,e.min=(r,n)=>e.check(tle(r,n)),e.nonempty=r=>e.check(tle(1,r)),e.max=(r,n)=>e.check(vje(r,n)),e.length=(r,n)=>e.check(xje(r,n)),e.unwrap=()=>e.element});QFt=xr("ZodObject",(e,t)=>{yHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>aJi(e,r,n,i),vi.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>wIr(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Cje()}),e.loose=()=>e.clone({...e._zod.def,catchall:Cje()}),e.strict=()=>e.clone({...e._zod.def,catchall:xIr()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>vi.extend(e,r),e.safeExtend=r=>vi.safeExtend(e,r),e.merge=r=>vi.merge(e,r),e.pick=r=>vi.pick(e,r),e.omit=r=>vi.omit(e,r),e.partial=(...r)=>vi.partial(TIr,e,r[0]),e.required=(...r)=>vi.required(OIr,e,r[0])});zFt=xr("ZodUnion",(e,t)=>{yFt.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>HEr(e,r,n,i),e.options=t.options});YJi=xr("ZodXor",(e,t)=>{zFt.init(e,t),bHi.init(e,t),e._zod.processJSONSchema=(r,n,i)=>HEr(e,r,n,i),e.options=t.options});XJi=xr("ZodDiscriminatedUnion",(e,t)=>{zFt.init(e,t),EHi.init(e,t)});ZJi=xr("ZodIntersection",(e,t)=>{IHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>cJi(e,r,n,i)});eYi=xr("ZodTuple",(e,t)=>{mEr.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>uJi(e,r,n,i),e.rest=r=>e.clone({...e._zod.def,rest:r})});MFt=xr("ZodRecord",(e,t)=>{vHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>lJi(e,r,n,i),e.keyType=t.keyType,e.valueType=t.valueType});nYi=xr("ZodMap",(e,t)=>{xHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>iJi(e,r,n,i),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(fX(...r)),e.nonempty=r=>e.check(fX(1,r)),e.max=(...r)=>e.check(Bbe(...r)),e.size=(...r)=>e.check(Ije(...r))});iYi=xr("ZodSet",(e,t)=>{CHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>oJi(e,r,n,i),e.min=(...r)=>e.check(fX(...r)),e.nonempty=r=>e.check(fX(1,r)),e.max=(...r)=>e.check(Bbe(...r)),e.size=(...r)=>e.check(Ije(...r))});zJe=xr("ZodEnum",(e,t)=>{wHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(n,i,o)=>JKi(e,n,i,o),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(n,i)=>{let o={};for(let s of n)if(r.has(s))o[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new zJe({...t,checks:[],...vi.normalizeParams(i),entries:o})},e.exclude=(n,i)=>{let o={...t.entries};for(let s of n)if(r.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new zJe({...t,checks:[],...vi.normalizeParams(i),entries:o})}});oYi=xr("ZodLiteral",(e,t)=>{SHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>YKi(e,r,n,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});sYi=xr("ZodFile",(e,t)=>{THi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>$Ki(e,r,n,i),e.min=(r,n)=>e.check(fX(r,n)),e.max=(r,n)=>e.check(Bbe(r,n)),e.mime=(r,n)=>e.check(BJe(Array.isArray(r)?r:[r],n))});aYi=xr("ZodTransform",(e,t)=>{OHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>nJi(e,r,n,i),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new xbe(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(vi.issue(o,r.value,t));else{let s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(vi.issue(s))}};let i=t.transform(r.value,r);return i instanceof Promise?i.then(o=>(r.value=o,r)):(r.value=i,r)}});TIr=xr("ZodOptional",(e,t)=>{hEr.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>KEr(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});cYi=xr("ZodExactOptional",(e,t)=>{BHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>KEr(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});lYi=xr("ZodNullable",(e,t)=>{PHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>pJi(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});pYi=xr("ZodDefault",(e,t)=>{DHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>dJi(e,r,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});dYi=xr("ZodPrefault",(e,t)=>{RHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>mJi(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});OIr=xr("ZodNonOptional",(e,t)=>{kHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>fJi(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});gYi=xr("ZodSuccess",(e,t)=>{FHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>eJi(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});AYi=xr("ZodCatch",(e,t)=>{NHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>hJi(e,r,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});bYi=xr("ZodNaN",(e,t)=>{jHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>XKi(e,r,n,i)});BIr=xr("ZodPipe",(e,t)=>{QHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>gJi(e,r,n,i),e.in=t.in,e.out=t.out});PIr=xr("ZodCodec",(e,t)=>{BIr.init(e,t),bFt.init(e,t)});EYi=xr("ZodReadonly",(e,t)=>{zHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>AJi(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});vYi=xr("ZodTemplateLiteral",(e,t)=>{MHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>ZKi(e,r,n,i)});xYi=xr("ZodLazy",(e,t)=>{UHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>bJi(e,r,n,i),e.unwrap=()=>e._zod.def.getter()});wYi=xr("ZodPromise",(e,t)=>{VHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>yJi(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});SYi=xr("ZodFunction",(e,t)=>{LHi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>rJi(e,r,n,i)});LFt=xr("ZodCustom",(e,t)=>{_Hi.init(e,t),sp.init(e,t),e._zod.processJSONSchema=(r,n,i)=>tJi(e,r,n,i)});m7a=kKi,h7a=FKi;A7a=(...e)=>NKi({Codec:PIr,Boolean:UJe,String:MJe},...e)});function sRf(e){FI({customError:e})}function aRf(){return FI().customError}var oRf,BYi,E7a=h(()=>{"use strict";tQ();tQ();oRf={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"};BYi||(BYi={})});function uRf(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function lRf(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let n=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===n){let i=r[1];if(!i||!t.defs[i])throw new Error(`Reference not found: ${e}`);return t.defs[i]}throw new Error(`Reference not found: ${e}`)}function I7a(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return Qo.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 i=e.$ref;if(t.refs.has(i))return t.refs.get(i);if(t.processing.has(i))return Qo.lazy(()=>{if(!t.refs.has(i))throw new Error(`Circular reference not resolved: ${i}`);return t.refs.get(i)});t.processing.add(i);let o=lRf(i,t),s=pD(o,t);return t.refs.set(i,s),t.processing.delete(i),s}if(e.enum!==void 0){let i=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&i.length===1&&i[0]===null)return Qo.null();if(i.length===0)return Qo.never();if(i.length===1)return Qo.literal(i[0]);if(i.every(s=>typeof s=="string"))return Qo.enum(i);let o=i.map(s=>Qo.literal(s));return o.length<2?o[0]:Qo.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return Qo.literal(e.const);let r=e.type;if(Array.isArray(r)){let i=r.map(o=>{let s={...e,type:o};return I7a(s,t)});return i.length===0?Qo.never():i.length===1?i[0]:Qo.union(i)}if(!r)return Qo.any();let n;switch(r){case"string":{let i=Qo.string();if(e.format){let o=e.format;o==="email"?i=i.check(Qo.email()):o==="uri"||o==="uri-reference"?i=i.check(Qo.url()):o==="uuid"||o==="guid"?i=i.check(Qo.uuid()):o==="date-time"?i=i.check(Qo.iso.datetime()):o==="date"?i=i.check(Qo.iso.date()):o==="time"?i=i.check(Qo.iso.time()):o==="duration"?i=i.check(Qo.iso.duration()):o==="ipv4"?i=i.check(Qo.ipv4()):o==="ipv6"?i=i.check(Qo.ipv6()):o==="mac"?i=i.check(Qo.mac()):o==="cidr"?i=i.check(Qo.cidrv4()):o==="cidr-v6"?i=i.check(Qo.cidrv6()):o==="base64"?i=i.check(Qo.base64()):o==="base64url"?i=i.check(Qo.base64url()):o==="e164"?i=i.check(Qo.e164()):o==="jwt"?i=i.check(Qo.jwt()):o==="emoji"?i=i.check(Qo.emoji()):o==="nanoid"?i=i.check(Qo.nanoid()):o==="cuid"?i=i.check(Qo.cuid()):o==="cuid2"?i=i.check(Qo.cuid2()):o==="ulid"?i=i.check(Qo.ulid()):o==="xid"?i=i.check(Qo.xid()):o==="ksuid"&&(i=i.check(Qo.ksuid()))}typeof e.minLength=="number"&&(i=i.min(e.minLength)),typeof e.maxLength=="number"&&(i=i.max(e.maxLength)),e.pattern&&(i=i.regex(new RegExp(e.pattern))),n=i;break}case"number":case"integer":{let i=r==="integer"?Qo.number().int():Qo.number();typeof e.minimum=="number"&&(i=i.min(e.minimum)),typeof e.maximum=="number"&&(i=i.max(e.maximum)),typeof e.exclusiveMinimum=="number"?i=i.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(i=i.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?i=i.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(i=i.lt(e.maximum)),typeof e.multipleOf=="number"&&(i=i.multipleOf(e.multipleOf)),n=i;break}case"boolean":{n=Qo.boolean();break}case"null":{n=Qo.null();break}case"object":{let i={},o=e.properties||{},s=new Set(e.required||[]);for(let[c,u]of Object.entries(o)){let l=pD(u,t);i[c]=s.has(c)?l:l.optional()}if(e.propertyNames){let c=pD(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?pD(e.additionalProperties,t):Qo.any();if(Object.keys(i).length===0){n=Qo.record(c,u);break}let l=Qo.object(i).passthrough(),p=Qo.looseRecord(c,u);n=Qo.intersection(l,p);break}if(e.patternProperties){let c=e.patternProperties,u=Object.keys(c),l=[];for(let d of u){let f=pD(c[d],t),m=Qo.string().regex(new RegExp(d));l.push(Qo.looseRecord(m,f))}let p=[];if(Object.keys(i).length>0&&p.push(Qo.object(i).passthrough()),p.push(...l),p.length===0)n=Qo.object({}).passthrough();else if(p.length===1)n=p[0];else{let d=Qo.intersection(p[0],p[1]);for(let f=2;f<p.length;f++)d=Qo.intersection(d,p[f]);n=d}break}let a=Qo.object(i);e.additionalProperties===!1?n=a.strict():typeof e.additionalProperties=="object"?n=a.catchall(pD(e.additionalProperties,t)):n=a.passthrough();break}case"array":{let i=e.prefixItems,o=e.items;if(i&&Array.isArray(i)){let s=i.map(c=>pD(c,t)),a=o&&typeof o=="object"&&!Array.isArray(o)?pD(o,t):void 0;a?n=Qo.tuple(s).rest(a):n=Qo.tuple(s),typeof e.minItems=="number"&&(n=n.check(Qo.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(Qo.maxLength(e.maxItems)))}else if(Array.isArray(o)){let s=o.map(c=>pD(c,t)),a=e.additionalItems&&typeof e.additionalItems=="object"?pD(e.additionalItems,t):void 0;a?n=Qo.tuple(s).rest(a):n=Qo.tuple(s),typeof e.minItems=="number"&&(n=n.check(Qo.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(Qo.maxLength(e.maxItems)))}else if(o!==void 0){let s=pD(o,t),a=Qo.array(s);typeof e.minItems=="number"&&(a=a.min(e.minItems)),typeof e.maxItems=="number"&&(a=a.max(e.maxItems)),n=a}else n=Qo.array(Qo.any());break}default:throw new Error(`Unsupported type: ${r}`)}return e.description&&(n=n.describe(e.description)),e.default!==void 0&&(n=n.default(e.default)),n}function pD(e,t){if(typeof e=="boolean")return e?Qo.any():Qo.never();let r=I7a(e,t),n=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let a=e.anyOf.map(u=>pD(u,t)),c=Qo.union(a);r=n?Qo.intersection(r,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let a=e.oneOf.map(u=>pD(u,t)),c=Qo.xor(a);r=n?Qo.intersection(r,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=n?r:Qo.any();else{let a=n?r:pD(e.allOf[0],t),c=n?0:1;for(let u=c;u<e.allOf.length;u++)a=Qo.intersection(a,pD(e.allOf[u],t));r=a}e.nullable===!0&&t.version==="openapi-3.0"&&(r=Qo.nullable(r)),e.readOnly===!0&&(r=Qo.readonly(r));let i={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let a of o)a in e&&(i[a]=e[a]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let a of s)a in e&&(i[a]=e[a]);for(let a of Object.keys(e))cRf.has(a)||(i[a]=e[a]);return Object.keys(i).length>0&&t.registry.add(r,i),r}function v7a(e,t){if(typeof e=="boolean")return e?Qo.any():Qo.never();let r=uRf(e,t?.defaultTarget),n=e.$defs||e.definitions||{},i={version:r,defs:n,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??oB};return pD(e,i)}var Qo,cRf,x7a=h(()=>{"use strict";vFt();ZEr();TFt();BFt();Qo={...OFt,...XEr,iso:QJe},cRf=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"])});var PYi={};Z(PYi,{bigint:()=>mRf,boolean:()=>dRf,date:()=>hRf,number:()=>fRf,string:()=>pRf});function pRf(e){return ZHi(MJe,e)}function fRf(e){return sKi(VJe,e)}function dRf(e){return dKi(UJe,e)}function mRf(e){return hKi(_Je,e)}function hRf(e){return SKi(NFt,e)}var C7a=h(()=>{"use strict";tQ();BFt()});var G={};Z(G,{$brand:()=>U0r,$input:()=>YHi,$output:()=>JHi,NEVER:()=>v7i,TimePrecision:()=>eKi,ZodAny:()=>qJi,ZodArray:()=>JJi,ZodBase64:()=>yIr,ZodBase64URL:()=>bIr,ZodBigInt:()=>_Je,ZodBigIntFormat:()=>vIr,ZodBoolean:()=>UJe,ZodCIDRv4:()=>gIr,ZodCIDRv6:()=>AIr,ZodCUID:()=>uIr,ZodCUID2:()=>lIr,ZodCatch:()=>AYi,ZodCodec:()=>PIr,ZodCustom:()=>LFt,ZodCustomStringFormat:()=>LJe,ZodDate:()=>NFt,ZodDefault:()=>pYi,ZodDiscriminatedUnion:()=>XJi,ZodE164:()=>EIr,ZodEmail:()=>sIr,ZodEmoji:()=>aIr,ZodEnum:()=>zJe,ZodError:()=>nRf,ZodExactOptional:()=>cYi,ZodFile:()=>sYi,ZodFirstPartyTypeKind:()=>BYi,ZodFunction:()=>SYi,ZodGUID:()=>PFt,ZodIPv4:()=>mIr,ZodIPv6:()=>hIr,ZodISODate:()=>eIr,ZodISODateTime:()=>$Er,ZodISODuration:()=>rIr,ZodISOTime:()=>tIr,ZodIntersection:()=>ZJi,ZodIssueCode:()=>oRf,ZodJWT:()=>IIr,ZodKSUID:()=>dIr,ZodLazy:()=>xYi,ZodLiteral:()=>oYi,ZodMAC:()=>zJi,ZodMap:()=>nYi,ZodNaN:()=>bYi,ZodNanoID:()=>cIr,ZodNever:()=>HJi,ZodNonOptional:()=>OIr,ZodNull:()=>_Ji,ZodNullable:()=>lYi,ZodNumber:()=>VJe,ZodNumberFormat:()=>wje,ZodObject:()=>QFt,ZodOptional:()=>TIr,ZodPipe:()=>BIr,ZodPrefault:()=>dYi,ZodPromise:()=>wYi,ZodReadonly:()=>EYi,ZodRealError:()=>rQ,ZodRecord:()=>MFt,ZodSet:()=>iYi,ZodString:()=>MJe,ZodStringFormat:()=>mA,ZodSuccess:()=>gYi,ZodSymbol:()=>VJi,ZodTemplateLiteral:()=>vYi,ZodTransform:()=>aYi,ZodTuple:()=>eYi,ZodType:()=>sp,ZodULID:()=>pIr,ZodURL:()=>FFt,ZodUUID:()=>dX,ZodUndefined:()=>UJi,ZodUnion:()=>zFt,ZodUnknown:()=>WJi,ZodVoid:()=>KJi,ZodXID:()=>fIr,ZodXor:()=>YJi,_ZodString:()=>oIr,_default:()=>fYi,_function:()=>p7a,any:()=>_qa,array:()=>jFt,base64:()=>Sqa,base64url:()=>Tqa,bigint:()=>zqa,boolean:()=>LJi,catch:()=>yYi,check:()=>f7a,cidrv4:()=>Cqa,cidrv6:()=>wqa,clone:()=>yF,codec:()=>c7a,coerce:()=>PYi,config:()=>FI,core:()=>rle,cuid:()=>gqa,cuid2:()=>Aqa,custom:()=>d7a,date:()=>qqa,decode:()=>PJi,decodeAsync:()=>RJi,describe:()=>m7a,discriminatedUnion:()=>Xqa,e164:()=>Oqa,email:()=>sqa,emoji:()=>mqa,encode:()=>BJi,encodeAsync:()=>DJi,endsWith:()=>OJe,enum:()=>wIr,exactOptional:()=>uYi,file:()=>i7a,flattenError:()=>fFt,float32:()=>Fqa,float64:()=>Nqa,formatError:()=>dFt,fromJSONSchema:()=>v7a,function:()=>p7a,getErrorMap:()=>aRf,globalRegistry:()=>oB,gt:()=>pX,gte:()=>bF,guid:()=>aqa,hash:()=>kqa,hex:()=>Rqa,hostname:()=>Dqa,httpUrl:()=>dqa,includes:()=>SJe,instanceof:()=>g7a,int:()=>iIr,int32:()=>jqa,int64:()=>Mqa,intersection:()=>$Ji,ipv4:()=>Iqa,ipv6:()=>xqa,iso:()=>QJe,json:()=>y7a,jwt:()=>Bqa,keyof:()=>Wqa,ksuid:()=>Eqa,lazy:()=>CYi,length:()=>xje,literal:()=>n7a,locales:()=>IFt,looseObject:()=>Jqa,looseRecord:()=>$qa,lowercase:()=>CJe,lt:()=>lX,lte:()=>wL,mac:()=>vqa,map:()=>e7a,maxLength:()=>vje,maxSize:()=>Bbe,meta:()=>h7a,mime:()=>BJe,minLength:()=>tle,minSize:()=>fX,multipleOf:()=>Obe,nan:()=>a7a,nanoid:()=>hqa,nativeEnum:()=>r7a,negative:()=>UEr,never:()=>xIr,nonnegative:()=>GEr,nonoptional:()=>hYi,nonpositive:()=>_Er,normalize:()=>PJe,null:()=>GJi,nullable:()=>RFt,nullish:()=>o7a,number:()=>MJi,object:()=>Hqa,optional:()=>DFt,overwrite:()=>J7,parse:()=>wJi,parseAsync:()=>SJi,partialRecord:()=>Zqa,pipe:()=>kFt,positive:()=>VEr,prefault:()=>mYi,preprocess:()=>b7a,prettifyError:()=>F7i,promise:()=>l7a,property:()=>qEr,readonly:()=>IYi,record:()=>rYi,refine:()=>TYi,regex:()=>xJe,regexes:()=>gU,registry:()=>EEr,safeDecode:()=>FJi,safeDecodeAsync:()=>jJi,safeEncode:()=>kJi,safeEncodeAsync:()=>NJi,safeParse:()=>TJi,safeParseAsync:()=>OJi,set:()=>t7a,setErrorMap:()=>sRf,size:()=>Ije,slugify:()=>FJe,startsWith:()=>TJe,strictObject:()=>Kqa,string:()=>nIr,stringFormat:()=>Pqa,stringbool:()=>A7a,success:()=>s7a,superRefine:()=>OYi,symbol:()=>Vqa,templateLiteral:()=>u7a,toJSONSchema:()=>JEr,toLowerCase:()=>RJe,toUpperCase:()=>kJe,transform:()=>SIr,treeifyError:()=>k7i,trim:()=>DJe,tuple:()=>tYi,uint32:()=>Qqa,uint64:()=>Lqa,ulid:()=>yqa,undefined:()=>Uqa,union:()=>CIr,unknown:()=>Cje,uppercase:()=>wJe,url:()=>fqa,util:()=>vi,uuid:()=>cqa,uuidv4:()=>uqa,uuidv6:()=>lqa,uuidv7:()=>pqa,void:()=>Gqa,xid:()=>bqa,xor:()=>Yqa});var DYi=h(()=>{"use strict";tQ();BFt();ZEr();CJi();QJi();E7a();tQ();qHi();tQ();SFt();x7a();KHi();TFt();TFt();C7a();FI(gEr())});var ms=h(()=>{"use strict";DYi();DYi()});var w7a=h(()=>{"use strict"});var WYi={};Z(WYi,{AIChatConfig:()=>FYi,AIChatDatasource:()=>dWa,AIChatLocation:()=>O7a,AIChatModel:()=>B7a,AIChatWebsiteDatasource:()=>fWa,AbsoluteProductPath:()=>IHa,AgentsConfig:()=>hWa,AiExamplesConfig:()=>pWa,AnalyticsConfig:()=>lWa,AnnouncementConfig:()=>NIr,ApiReferenceConfiguration:()=>uHa,ApiReferenceEndpointConfiguration:()=>iHa,ApiReferenceLayout:()=>L7a,ApiReferenceLayoutItem:()=>qFt,ApiReferenceOperationConfiguration:()=>oHa,ApiReferencePackageConfiguration:()=>cHa,ApiReferencePackageConfigurationWithOptions:()=>aHa,ApiReferenceSectionConfiguration:()=>sHa,Audience:()=>UFt,AudienceId:()=>RYi,Availability:()=>ile,BackgroundImageConfiguration:()=>eWa,BackgroundImageThemedConfig:()=>$7a,BlogConfiguration:()=>tHa,BodyThemeConfig:()=>q7a,ChangelogConfiguration:()=>eHa,ChangelogFolderRelativePath:()=>VFt,ChangelogLayout:()=>M7a,CheckConfig:()=>WWa,CheckRuleSeverity:()=>nle,CheckRulesConfig:()=>qWa,CollapsedStringValue:()=>rWa,CollapsedValue:()=>_Ft,ColorConfig:()=>iC,ColorThemedConfig:()=>Y7a,ColorsConfiguration:()=>xWa,ContentAlignment:()=>Q7a,CssConfig:()=>tWa,CustomDomain:()=>X7a,CustomPageAction:()=>CWa,DocsConfiguration:()=>IRf,DocsInstance:()=>BWa,DocsSettingsConfig:()=>vWa,DocsTypographyConfig:()=>yWa,EditThisPageConfig:()=>OWa,EditThisPageLaunch:()=>P7a,ExperimentalConfig:()=>KWa,ExternalProduct:()=>yHa,FeatureFlag:()=>kYi,FeatureFlagConfiguration:()=>nWa,FolderConfiguration:()=>nHa,FontConfig:()=>DIr,FontConfigPath:()=>AWa,FontConfigVariant:()=>gWa,FontDisplay:()=>k7a,FontStyle:()=>zYi,FontWeight:()=>LYi,FooterLinksConfig:()=>zWa,FooterNavThemeConfig:()=>_7a,FullStoryAnalyticsConfig:()=>oWa,GTMConfig:()=>cWa,GitLibraryInputSchema:()=>JWa,GithubEditThisPageConfig:()=>TWa,GoogleAnalytics4Config:()=>uWa,HeaderPosition:()=>z7a,HttpSnippetLanguage:()=>K7a,HttpSnippetsConfig:()=>Z7a,IntegrationsConfig:()=>HWa,IntercomConfig:()=>sWa,InternalProduct:()=>AHa,JsConfig:()=>UWa,JsConfigOptions:()=>NYi,JsFileConfig:()=>LWa,JsFileConfigSettings:()=>MWa,JsRemoteConfig:()=>VWa,JsScriptStrategy:()=>MYi,Language:()=>kIr,LanguageSwitcherThemeConfig:()=>U7a,LayoutConfig:()=>EWa,LibraryConfiguration:()=>$Wa,LibraryInputConfiguration:()=>XWa,LibraryLanguage:()=>R7a,LibraryName:()=>jYi,LibraryOutputConfiguration:()=>ZWa,LibraryReferenceConfiguration:()=>rHa,LinkConfiguration:()=>UYi,LogoConfiguration:()=>PWa,MetadataConfig:()=>_Wa,NavbarDropdownConfig:()=>jWa,NavbarGithubConfig:()=>NWa,NavbarGithubConfigWithOptions:()=>FWa,NavbarLink:()=>QWa,NavbarLinkConfig:()=>Sje,NavigationConfig:()=>jIr,NavigationItem:()=>WFt,PageActionOption:()=>T7a,PageActionOptions:()=>wWa,PageActionsConfig:()=>SWa,PageActionsThemeConfig:()=>H7a,PageConfiguration:()=>WJe,PageDescriptionSource:()=>mWa,PathLibraryInputSchema:()=>YWa,PlaygroundButtonSettings:()=>kWa,PlaygroundSettings:()=>GFt,PostHogConfig:()=>aWa,ProductConfig:()=>bHa,ProductConfigBase:()=>qYi,ProductFileConfig:()=>ERf,ProductPath:()=>bRf,ProductSwitcherThemeConfig:()=>V7a,ProgrammingLanguage:()=>S7a,RedirectConfig:()=>_Yi,RedirectsConfiguration:()=>GWa,RedirectsFile:()=>ARf,RelativeProductPath:()=>EHa,Role:()=>VYi,RoleId:()=>RIr,SearchSettingsConfig:()=>IWa,SearchbarPlacement:()=>F7a,SectionConfiguration:()=>lHa,SegmentConfig:()=>iWa,SidebarThemeConfig:()=>W7a,SnippetLanguageConfiguration:()=>mX,SnippetsConfiguration:()=>RWa,SwitcherPlacement:()=>j7a,TabConfig:()=>QIr,TabId:()=>GJe,TabVariant:()=>fHa,TabbedNavigationConfig:()=>gHa,TabbedNavigationItem:()=>hHa,TabbedNavigationItemWithLayout:()=>dHa,TabbedNavigationItemWithVariants:()=>mHa,TabsPlacement:()=>N7a,TabsThemeConfig:()=>G7a,Target:()=>qJe,ThemeConfig:()=>bWa,TitleSource:()=>QYi,TranslationConfig:()=>xHa,TranslationConfigObject:()=>vHa,TwitterCardSetting:()=>J7a,UntabbedNavigationConfig:()=>pHa,VersionAvailability:()=>D7a,VersionConfig:()=>GYi,VersionFileConfig:()=>yRf,VersionedSnippetLanguageConfiguration:()=>DWa,WithFeatureFlags:()=>aB,WithPermissions:()=>sB,WithViewers:()=>FIr,normalizeTranslationConfig:()=>CHa});function CHa(e){return typeof e=="string"?{lang:e}:e}var GJe,VFt,RYi,RIr,jYi,S7a,kIr,T7a,O7a,B7a,P7a,ile,D7a,QYi,R7a,zYi,k7a,F7a,N7a,j7a,Q7a,z7a,M7a,L7a,V7a,U7a,_7a,G7a,q7a,W7a,H7a,K7a,qJe,J7a,MYi,LYi,Y7a,iC,UFt,VYi,X7a,Z7a,$7a,eWa,tWa,rWa,_Ft,sB,kYi,nWa,aB,FIr,iWa,oWa,sWa,aWa,cWa,uWa,lWa,pWa,fWa,dWa,mWa,hWa,FYi,gWa,AWa,DIr,yWa,bWa,EWa,IWa,vWa,xWa,CWa,wWa,SWa,TWa,OWa,BWa,PWa,UYi,DWa,mX,RWa,kWa,GFt,NIr,Sje,FWa,NWa,jWa,QWa,zWa,MWa,LWa,VWa,NYi,UWa,_Wa,_Yi,GWa,ARf,nle,qWa,WWa,HWa,KWa,JWa,YWa,XWa,ZWa,$Wa,WJe,eHa,tHa,rHa,nHa,iHa,oHa,qFt,sHa,aHa,cHa,uHa,WFt,lHa,pHa,fHa,dHa,mHa,hHa,gHa,jIr,QIr,GYi,yRf,qYi,AHa,yHa,bHa,EHa,IHa,bRf,ERf,vHa,xHa,IRf,wHa=h(()=>{"use strict";ms();GJe=G.string(),VFt=G.string(),RYi=G.string(),RIr=G.string(),jYi=G.string(),S7a=G.enum(["typescript","javascript","python","java","go","ruby","csharp","php","swift","rust","nodets","nodejs","dotnet","curl","jvm","ts","js"]),kIr=G.string().regex(/^[a-zA-Z]{2,8}(-[a-zA-Z0-9]{1,8})*$/,"Language must be a valid BCP 47 language tag (e.g. 'en', 'ja', 'ja-JP', 'pt-BR', 'zh-Hans-CN')"),T7a=G.enum(["copy-page","view-as-markdown","ask-ai","chatgpt","claude","cursor","vscode"]),O7a=G.enum(["docs","slack","discord"]),B7a=G.enum(["claude-3.7","claude-4","command-a"]),P7a=G.enum(["github","dashboard"]),ile=G.enum(["stable","generally-available","in-development","pre-release","deprecated","beta"]),D7a=G.enum(["deprecated","ga","stable","beta"]),QYi=G.enum(["frontmatter","filename"]),R7a=G.enum(["python","cpp"]),zYi=G.enum(["normal","italic"]),k7a=G.enum(["auto","block","swap","fallback","optional"]),F7a=G.enum(["header","header-tabs","sidebar"]),N7a=G.enum(["header","sidebar"]),j7a=G.enum(["header","sidebar"]),Q7a=G.enum(["center","left"]),z7a=G.enum(["fixed","static"]),M7a=G.enum(["timeline","classic"]),L7a=G.enum(["indented","cards"]),V7a=G.enum(["default","toggle","tabs"]),U7a=G.enum(["default","minimal"]),_7a=G.enum(["default","minimal"]),G7a=G.enum(["default","bubble"]),q7a=G.enum(["default","canvas"]),W7a=G.enum(["default","minimal"]),H7a=G.enum(["default","toolbar"]),K7a=G.enum(["curl","csharp","go","java","javascript","php","python","ruby","swift","typescript"]),qJe=G.enum(["_blank","_self","_parent","_top"]),J7a=G.enum(["summary","summary_large_image","app","player"]),MYi=G.enum(["beforeInteractive","afterInteractive","lazyOnload"]),LYi=G.union([G.string(),G.number().int()]),Y7a=G.object({dark:G.string().optional(),light:G.string().optional()}),iC=G.union([G.string(),Y7a]),UFt=G.union([RYi,G.array(RYi)]),VYi=G.union([RIr,G.array(RIr)]),X7a=G.union([G.string(),G.array(G.string())]),Z7a=G.union([G.boolean(),G.array(K7a)]),$7a=G.object({dark:G.string().optional(),light:G.string().optional()}),eWa=G.union([G.string(),$7a]),tWa=G.union([G.string(),G.array(G.string())]),rWa=G.enum(["open-by-default"]),_Ft=G.union([G.boolean(),rWa]),sB=G.object({viewers:VYi.optional(),orphaned:G.boolean().optional()}),kYi=G.object({flag:G.string(),"fallback-value":G.unknown().optional(),match:G.unknown().optional()}),nWa=G.union([G.string(),kYi,G.array(kYi)]),aB=G.object({"feature-flag":nWa.optional()}),FIr=G.object({viewers:VYi.optional()}),iWa=G.object({"write-key":G.string()}),oWa=G.object({"org-id":G.string()}),sWa=G.object({"app-id":G.string(),"api-base":G.string().optional()}),aWa=G.object({"api-key":G.string(),endpoint:G.string().optional()}),cWa=G.object({"container-id":G.string()}),uWa=G.object({"measurement-id":G.string()}),lWa=G.object({segment:iWa.optional(),fullstory:oWa.optional(),intercom:sWa.optional(),posthog:aWa.optional(),gtm:cWa.optional(),ga4:uWa.optional()}),pWa=G.object({enabled:G.boolean().optional(),style:G.string().optional()}),fWa=G.object({url:G.string(),title:G.string().optional()}),dWa=fWa,mWa=G.enum(["description","subtitle"]),hWa=G.object({"page-directive":G.string().optional(),"page-description-source":mWa.optional(),"llms-txt":G.string().optional(),"llms-full-txt":G.string().optional()}),FYi=G.object({model:B7a.optional(),"system-prompt":G.string().optional(),location:G.array(O7a).optional(),datasources:G.array(dWa).optional(),"mask-pii":G.boolean().optional()}),gWa=G.object({path:G.string(),weight:LYi.optional(),style:zYi.optional()}),AWa=G.union([G.string(),gWa]),DIr=G.object({name:G.string().optional(),path:G.string().optional(),weight:LYi.optional(),style:zYi.optional(),paths:G.array(AWa).optional(),display:k7a.optional(),fallback:G.array(G.string()).optional(),"font-variation-settings":G.string().optional()}),yWa=G.object({headingsFont:DIr.optional(),bodyFont:DIr.optional(),codeFont:DIr.optional()}),bWa=G.object({sidebar:W7a.optional(),body:q7a.optional(),tabs:G7a.optional(),"page-actions":H7a.optional(),"footer-nav":_7a.optional(),"language-switcher":U7a.optional(),"product-switcher":V7a.optional()}),EWa=G.object({"page-width":G.string().optional(),"content-width":G.string().optional(),"sidebar-width":G.string().optional(),"header-height":G.string().optional(),"searchbar-placement":F7a.optional(),"tabs-placement":N7a.optional(),"switcher-placement":j7a.optional(),"content-alignment":Q7a.optional(),"header-position":z7a.optional(),"disable-header":G.boolean().optional(),"hide-nav-links":G.boolean().optional(),"hide-feedback":G.boolean().optional(),"mobile-toc":G.boolean().optional(),"changelog-layout":M7a.optional(),"api-reference-layout":L7a.optional(),"api-reference-expand-properties":G.boolean().optional(),"show-nav-availability-badges":G.boolean().optional()}),IWa=G.object({"prioritize-current-product":G.boolean().optional(),"default-filter-by-current-product":G.boolean().optional()}),vWa=G.object({"search-text":G.string().optional(),"disable-search":G.boolean().optional(),"dark-mode-code":G.boolean().optional(),"default-search-filters":G.boolean().optional(),search:IWa.optional(),"http-snippets":Z7a.optional(),"hide-404-page":G.boolean().optional(),"use-javascript-as-typescript":G.boolean().optional(),"disable-explorer-proxy":G.boolean().optional(),"disable-analytics":G.boolean().optional(),language:kIr.optional(),"folder-title-source":QYi.optional(),"substitute-env-vars":G.boolean().optional(),"websocket-oneof-display":G.enum(["flat","grouped"]).optional()}),xWa=G.object({"accent-primary":iC.optional(),accentPrimary:iC.optional(),background:iC.optional(),border:iC.optional(),"sidebar-background":iC.optional(),"header-background":iC.optional(),"card-background":iC.optional(),"accent-1":iC.optional(),"accent-2":iC.optional(),"accent-3":iC.optional(),"accent-4":iC.optional(),"accent-5":iC.optional(),"accent-6":iC.optional(),"accent-7":iC.optional(),"accent-8":iC.optional(),"accent-9":iC.optional(),"accent-10":iC.optional(),"accent-11":iC.optional(),"accent-12":iC.optional()}),CWa=G.object({title:G.string(),subtitle:G.string().optional(),url:G.string(),icon:G.string().optional(),default:G.boolean().optional()}),wWa=G.object({"copy-page":G.boolean().optional(),"view-as-markdown":G.boolean().optional(),"ask-ai":G.boolean().optional(),chatgpt:G.boolean().optional(),claude:G.boolean().optional(),cursor:G.boolean().optional(),mcp:G.boolean().optional(),vscode:G.boolean().optional(),custom:G.array(CWa).optional()}),SWa=G.object({default:T7a.optional(),options:wWa.optional()}),TWa=G.object({host:G.string().optional(),owner:G.string(),repo:G.string(),branch:G.string().optional()}),OWa=G.object({github:TWa.optional(),launch:P7a.optional()}),BWa=G.object({url:G.string(),"custom-domain":X7a.optional(),"edit-this-page":OWa.optional(),audiences:UFt.optional(),"multi-source":G.boolean().optional()}),PWa=G.object({dark:G.string().optional(),light:G.string().optional(),height:G.number().optional(),href:G.string().optional(),"right-text":G.string().optional()}),UYi=G.object({link:G.string(),href:G.string(),icon:G.string().optional(),target:qJe.optional()}),DWa=G.object({version:G.string(),package:G.string()}),mX=G.union([G.string(),DWa]),RWa=G.object({python:mX.optional(),typescript:mX.optional(),go:mX.optional(),java:mX.optional(),ruby:mX.optional(),csharp:mX.optional(),php:mX.optional(),swift:mX.optional(),rust:mX.optional()}),kWa=G.object({href:G.string().optional()}),GFt=G.object({hidden:G.boolean().optional(),environments:G.array(G.string()).optional(),button:kWa.optional(),oauth:G.boolean().optional(),"limit-websocket-messages-per-connection":G.number().int().optional(),"send-optional-defaults":G.boolean().optional()}),NIr=G.object({message:G.string()}),Sje=FIr.merge(G.object({href:G.string().optional(),target:qJe.optional(),url:G.string().optional(),text:G.string().optional(),icon:G.string().optional(),rightIcon:G.string().optional(),rounded:G.boolean().optional()})),FWa=FIr.merge(G.object({url:G.string(),target:qJe.optional()})),NWa=G.union([G.string(),FWa]),jWa=FIr.merge(G.object({links:G.array(Sje),text:G.string().optional(),icon:G.string().optional(),rightIcon:G.string().optional(),rounded:G.boolean().optional()})),QWa=G.union([Sje.merge(G.object({type:G.literal("filled")})),Sje.merge(G.object({type:G.literal("outlined")})),Sje.merge(G.object({type:G.literal("minimal")})),G.object({type:G.literal("github"),value:NWa}),jWa.merge(G.object({type:G.literal("dropdown")})),Sje.merge(G.object({type:G.literal("primary")})),Sje.merge(G.object({type:G.literal("secondary")}))]),zWa=G.object({github:G.string().optional(),twitter:G.string().optional(),x:G.string().optional(),linkedin:G.string().optional(),youtube:G.string().optional(),instagram:G.string().optional(),facebook:G.string().optional(),discord:G.string().optional(),slack:G.string().optional(),hackernews:G.string().optional(),medium:G.string().optional(),website:G.string().optional()}),MWa=G.object({path:G.string(),strategy:MYi.optional()}),LWa=G.union([G.string(),MWa]),VWa=G.object({url:G.string(),strategy:MYi.optional(),"disable-sri":G.boolean().optional()}),NYi=G.union([VWa,LWa]),UWa=G.union([NYi,G.array(NYi)]),_Wa=G.object({"og:site_name":G.string().optional(),"og:title":G.string().optional(),"og:description":G.string().optional(),"og:url":G.string().optional(),"og:image":G.string().optional(),"og:image:width":G.number().optional(),"og:image:height":G.number().optional(),"og:locale":G.string().optional(),"og:logo":G.string().optional(),"twitter:title":G.string().optional(),"twitter:description":G.string().optional(),"twitter:handle":G.string().optional(),"twitter:image":G.string().optional(),"twitter:site":G.string().optional(),"twitter:url":G.string().optional(),"twitter:card":J7a.optional(),"og:dynamic":G.boolean().optional(),"og:dynamic:background-image":G.string().optional(),"og:dynamic:text-color":G.string().optional(),"og:dynamic:background-color":G.string().optional(),"og:dynamic:logo-color":G.enum(["dark","light"]).optional(),"og:dynamic:show-logo":G.boolean().optional(),"og:dynamic:show-section":G.boolean().optional(),"og:dynamic:show-description":G.boolean().optional(),"og:dynamic:show-url":G.boolean().optional(),"og:dynamic:show-gradient":G.boolean().optional(),"canonical-host":G.string().optional()}),_Yi=G.object({source:G.string(),destination:G.string(),permanent:G.boolean().optional()}),GWa=G.union([G.array(_Yi),G.string(),G.array(G.string())]),ARf=G.object({redirects:G.array(_Yi.strict())}).strict(),nle=G.enum(["warn","error"]),qWa=G.object({"example-validation":nle.optional(),"broken-links":nle.optional(),"no-non-component-refs":nle.optional(),"valid-local-references":nle.optional(),"no-circular-redirects":nle.optional(),"valid-docs-endpoints":nle.optional(),"missing-redirects":nle.optional(),"valid-changelog-slug":nle.optional()}),WWa=G.object({rules:qWa.optional()}),HWa=G.object({intercom:G.string().optional(),context7:G.string().optional()}),KWa=G.object({"mdx-components":G.array(G.string()).optional(),"disable-stream-toggle":G.boolean().optional(),"openapi-parser-v2":G.boolean().optional(),"openapi-parser-v3":G.boolean().optional(),"dynamic-snippets":G.boolean().optional(),"ai-examples":G.boolean().optional(),"ai-example-style-instructions":G.string().optional(),"exclude-apis":G.boolean().optional(),"basepath-aware":G.boolean().optional(),"external-sitemaps":G.array(G.string()).optional()}),JWa=G.object({git:G.string(),subpath:G.string().optional(),ref:G.string().optional()}),YWa=G.object({path:G.string()}),XWa=G.union([JWa,YWa]),ZWa=G.object({path:G.string()}),$Wa=G.object({input:XWa,output:ZWa,lang:R7a}),WJe=sB.merge(aB).merge(G.object({page:G.string(),path:G.string(),slug:G.string().optional(),icon:G.string().optional(),hidden:G.boolean().optional(),noindex:G.boolean().optional(),availability:ile.optional()})),eHa=sB.merge(aB).merge(G.object({changelog:VFt,title:G.string().optional(),slug:G.string().optional(),icon:G.string().optional(),hidden:G.boolean().optional()})),tHa=sB.merge(aB).merge(G.object({blog:VFt,title:G.string().optional(),slug:G.string().optional(),icon:G.string().optional(),hidden:G.boolean().optional()})),rHa=sB.merge(aB).merge(G.object({library:jYi,title:G.string().optional(),slug:G.string().optional()})),nHa=sB.merge(aB).merge(G.object({folder:G.string(),title:G.string().optional(),"title-source":QYi.optional(),slug:G.string().optional(),icon:G.string().optional(),hidden:G.boolean().optional(),"skip-slug":G.boolean().optional(),collapsed:_Ft.optional(),collapsible:G.boolean().optional(),"collapsed-by-default":G.boolean().optional(),availability:ile.optional()})),iHa=sB.merge(aB).merge(G.object({endpoint:G.string(),title:G.string().optional(),slug:G.string().optional(),icon:G.string().optional(),hidden:G.boolean().optional(),availability:ile.optional(),playground:GFt.optional()})),oHa=sB.merge(aB).merge(G.object({operation:G.string(),title:G.string().optional(),slug:G.string().optional(),hidden:G.boolean().optional(),availability:ile.optional()})),qFt=G.lazy(()=>G.union([G.string(),G.record(G.string(),cHa),sHa,iHa,oHa,WJe,UYi])),sHa=sB.merge(aB).merge(G.object({section:G.string(),"referenced-packages":G.array(G.string()).optional(),summary:G.string().optional(),contents:G.array(qFt).optional(),slug:G.string().optional(),icon:G.string().optional(),hidden:G.boolean().optional(),"skip-slug":G.boolean().optional(),collapsed:_Ft.optional(),collapsible:G.boolean().optional(),"collapsed-by-default":G.boolean().optional(),availability:ile.optional(),playground:GFt.optional()})),aHa=sB.merge(aB).merge(G.object({title:G.string().optional(),summary:G.string().optional(),contents:G.array(qFt).optional(),availability:ile.optional(),slug:G.string().optional(),icon:G.string().optional(),hidden:G.boolean().optional(),"skip-slug":G.boolean().optional(),playground:GFt.optional()})),cHa=G.lazy(()=>G.union([G.array(qFt),aHa])),uHa=sB.merge(aB).merge(G.object({api:G.string(),"api-name":G.string().optional(),openrpc:G.string().optional(),audiences:UFt.optional(),"display-errors":G.boolean().optional(),"tag-description-pages":G.boolean().optional(),snippets:RWa.optional(),postman:G.string().optional(),summary:G.string().optional(),layout:G.array(qFt).optional(),collapsed:_Ft.optional(),icon:G.string().optional(),slug:G.string().optional(),hidden:G.boolean().optional(),availability:ile.optional(),"skip-slug":G.boolean().optional(),alphabetized:G.boolean().optional(),flattened:G.boolean().optional(),paginated:G.boolean().optional(),playground:GFt.optional()})),WFt=G.lazy(()=>G.union([WJe,lHa,uHa,rHa,UYi,eHa,tHa,nHa])),lHa=sB.merge(aB).merge(G.object({section:G.string(),path:G.string().optional(),contents:G.array(WFt),collapsed:_Ft.optional(),collapsible:G.boolean().optional(),"collapsed-by-default":G.boolean().optional(),slug:G.string().optional(),icon:G.string().optional(),hidden:G.boolean().optional(),"skip-slug":G.boolean().optional(),availability:ile.optional()})),pHa=G.array(WFt),fHa=sB.merge(aB).merge(G.object({title:G.string(),subtitle:G.string().optional(),icon:G.string().optional(),layout:G.array(WFt),slug:G.string().optional(),"skip-slug":G.boolean().optional(),hidden:G.boolean().optional(),default:G.boolean().optional()})),dHa=G.object({tab:GJe,layout:G.array(WFt).optional()}),mHa=G.object({tab:GJe,variants:G.array(fHa)}),hHa=G.union([dHa,mHa]),gHa=G.array(hHa),jIr=G.union([pHa,gHa]),QIr=sB.merge(aB).merge(G.object({"display-name":G.string(),icon:G.string().optional(),slug:G.string().optional(),"skip-slug":G.boolean().optional(),hidden:G.boolean().optional(),href:G.string().optional(),target:qJe.optional(),changelog:VFt.optional(),blog:VFt.optional()})),GYi=sB.merge(aB).merge(G.object({"display-name":G.string(),path:G.string().optional(),ref:G.string().optional(),slug:G.string().optional(),availability:D7a.optional(),audiences:UFt.optional(),hidden:G.boolean().optional(),announcement:NIr.optional()})),yRf=G.object({tabs:G.record(GJe,QIr).optional(),"landing-page":WJe.optional(),navigation:jIr}),qYi=sB.merge(aB).merge(G.object({"display-name":G.string(),subtitle:G.string().optional(),icon:G.string().optional(),image:G.string().optional(),versions:G.array(GYi).optional(),audiences:UFt.optional()})),AHa=qYi.merge(G.object({path:G.string(),slug:G.string().optional(),announcement:NIr.optional()})),yHa=qYi.merge(G.object({href:G.string(),target:qJe.optional()})),bHa=G.union([AHa,yHa]),EHa=sB.merge(aB).merge(G.object({"display-name":G.string(),path:G.string(),slug:G.string().optional()})),IHa=G.object({href:G.string()}),bRf=G.union([EHa,IHa]),ERf=G.object({tabs:G.record(GJe,QIr).optional(),"landing-page":WJe.optional(),navigation:jIr}),vHa=G.object({lang:kIr,default:G.boolean().optional()}),xHa=G.union([kIr,vHa]);IRf=G.object({instances:G.array(BWa),title:G.string().optional(),libraries:G.record(jYi,$Wa).optional(),analytics:lWa.optional(),announcement:NIr.optional(),roles:G.array(RIr).optional(),tabs:G.record(GJe,QIr).optional(),versions:G.array(GYi).optional(),products:G.array(bHa).optional(),"landing-page":WJe.optional(),navigation:jIr.optional(),"navbar-links":G.array(QWa).optional(),"footer-links":zWa.optional(),"page-actions":SWa.optional(),experimental:KWa.optional(),"default-language":S7a.optional(),languages:G.array(G.string()).optional(),translations:G.array(xHa).optional().superRefine((e,t)=>{if(e==null)return;let n=e.map(CHa).filter(i=>i.default===!0).length;n>1&&t.addIssue({code:G.ZodIssueCode.custom,message:`Only one translation entry can be marked as default, but ${n} were found`})}),"ai-chat":FYi.optional(),"ai-search":FYi.optional(),"ai-examples":pWa.optional(),agents:hWa.optional(),metadata:_Wa.optional(),redirects:GWa.optional(),check:WWa.optional(),logo:PWa.optional(),favicon:G.string().optional(),"background-image":eWa.optional(),colors:xWa.optional(),typography:yWa.optional(),layout:EWa.optional(),settings:vWa.optional(),theme:bWa.optional(),"global-theme":G.string().optional(),integrations:HWa.optional(),css:tWa.optional(),js:UWa.optional(),header:G.string().optional(),footer:G.string().optional()})});function CRf(e){if("changelog"in e)return e.changelog;if("blog"in e)return e.blog}function wRf(e){return e.changelog??e.blog}var vRf,xRf,SHa=h(()=>{"use strict";vRf="Changelog",xRf="Blog"});var THa=h(()=>{"use strict"});var OHa=h(()=>{"use strict"});var BHa=h(()=>{"use strict"});var PHa=h(()=>{"use strict"});var DHa=h(()=>{"use strict"});var HYi,RHa=h(()=>{"use strict";HYi={Docs:"docs",Slack:"slack",Discord:"discord"}});var KYi,kHa=h(()=>{"use strict";KYi={Claude37:"claude-3.7",Claude4:"claude-4",CommandA:"command-a"}});var FHa=h(()=>{"use strict"});var NHa=h(()=>{"use strict"});var jHa=h(()=>{"use strict"});var QHa=h(()=>{"use strict"});var zHa=h(()=>{"use strict"});var MHa=h(()=>{"use strict"});var JYi,LHa=h(()=>{"use strict";JYi={Indented:"indented",Cards:"cards"}});var VHa=h(()=>{"use strict"});var UHa=h(()=>{"use strict"});var _Ha=h(()=>{"use strict"});var GHa=h(()=>{"use strict"});var qHa=h(()=>{"use strict"});var WHa=h(()=>{"use strict"});var HHa=h(()=>{"use strict"});var YYi,KHa=h(()=>{"use strict";YYi={Stable:"stable",GenerallyAvailable:"generally-available",InDevelopment:"in-development",PreRelease:"pre-release",Deprecated:"deprecated",Beta:"beta",Alpha:"alpha",Preview:"preview",Legacy:"legacy"}});var JHa=h(()=>{"use strict"});var YHa=h(()=>{"use strict"});var XHa=h(()=>{"use strict"});var XYi,ZHa=h(()=>{"use strict";XYi={Default:"default",Canvas:"canvas"}});var $Ha=h(()=>{"use strict"});var eKa=h(()=>{"use strict"});var ZYi,tKa=h(()=>{"use strict";ZYi={Timeline:"timeline",Classic:"classic"}});var rKa=h(()=>{"use strict"});var $Yi,nKa=h(()=>{"use strict";$Yi={Warn:"warn",Error:"error"}});var iKa=h(()=>{"use strict"});var eXi,oKa=h(()=>{"use strict";eXi={OpenByDefault:"open-by-default"}});var sKa=h(()=>{"use strict"});var aKa=h(()=>{"use strict"});var cKa=h(()=>{"use strict"});var uKa=h(()=>{"use strict"});var tXi,lKa=h(()=>{"use strict";tXi={Center:"center",Left:"left"}});var pKa=h(()=>{"use strict"});var fKa=h(()=>{"use strict"});var dKa=h(()=>{"use strict"});var mKa=h(()=>{"use strict"});var hKa=h(()=>{"use strict"});var gKa=h(()=>{"use strict"});var AKa=h(()=>{"use strict"});var yKa=h(()=>{"use strict"});var rXi,bKa=h(()=>{"use strict";rXi={Github:"github",Dashboard:"dashboard"}});var EKa=h(()=>{"use strict"});var IKa=h(()=>{"use strict"});var vKa=h(()=>{"use strict"});var xKa=h(()=>{"use strict"});var CKa=h(()=>{"use strict"});var wKa=h(()=>{"use strict"});var SKa=h(()=>{"use strict"});var TKa=h(()=>{"use strict"});var nXi,OKa=h(()=>{"use strict";nXi={Auto:"auto",Block:"block",Swap:"swap",Fallback:"fallback",Optional:"optional"}});var iXi,BKa=h(()=>{"use strict";iXi={Normal:"normal",Italic:"italic"}});var PKa=h(()=>{"use strict"});var DKa=h(()=>{"use strict"});var oXi,RKa=h(()=>{"use strict";oXi={Default:"default",Minimal:"minimal"}});var kKa=h(()=>{"use strict"});var FKa=h(()=>{"use strict"});var NKa=h(()=>{"use strict"});var jKa=h(()=>{"use strict"});var QKa=h(()=>{"use strict"});var sXi,zKa=h(()=>{"use strict";sXi={Fixed:"fixed",Static:"static"}});var aXi,MKa=h(()=>{"use strict";aXi={Curl:"curl",Csharp:"csharp",Go:"go",Java:"java",Javascript:"javascript",Php:"php",Python:"python",Ruby:"ruby",Swift:"swift",Typescript:"typescript"}});var LKa=h(()=>{"use strict"});var VKa=h(()=>{"use strict"});var UKa=h(()=>{"use strict"});var _Ka=h(()=>{"use strict"});var GKa=h(()=>{"use strict"});var qKa=h(()=>{"use strict"});var WKa=h(()=>{"use strict"});var HKa=h(()=>{"use strict"});var KKa=h(()=>{"use strict"});var cXi,JKa=h(()=>{"use strict";cXi={BeforeInteractive:"beforeInteractive",AfterInteractive:"afterInteractive",LazyOnload:"lazyOnload"}});var YKa=h(()=>{"use strict"});var uXi,XKa=h(()=>{"use strict";uXi={Default:"default",Minimal:"minimal"}});var ZKa=h(()=>{"use strict"});var $Ka=h(()=>{"use strict"});var eJa=h(()=>{"use strict"});var tJa=h(()=>{"use strict"});var lXi,rJa=h(()=>{"use strict";lXi={Python:"python",Cpp:"cpp"}});var nJa=h(()=>{"use strict"});var iJa=h(()=>{"use strict"});var oJa=h(()=>{"use strict"});var sJa=h(()=>{"use strict"});var aJa=h(()=>{"use strict"});var cJa=h(()=>{"use strict"});var uJa=h(()=>{"use strict"});var lJa=h(()=>{"use strict"});var pJa=h(()=>{"use strict"});var fJa=h(()=>{"use strict"});var dJa=h(()=>{"use strict"});var mJa=h(()=>{"use strict"});var hJa=h(()=>{"use strict"});var pXi,gJa=h(()=>{"use strict";pXi={Dark:"dark",Light:"light"}});var fXi,AJa=h(()=>{"use strict";fXi={CopyPage:"copy-page",ViewAsMarkdown:"view-as-markdown",AskAi:"ask-ai",Chatgpt:"chatgpt",Claude:"claude",Cursor:"cursor",ClaudeCode:"claude-code",Vscode:"vscode"}});var yJa=h(()=>{"use strict"});var bJa=h(()=>{"use strict"});var dXi,EJa=h(()=>{"use strict";dXi={Default:"default",Toolbar:"toolbar"}});var IJa=h(()=>{"use strict"});var mXi,vJa=h(()=>{"use strict";mXi={Description:"description",Subtitle:"subtitle"}});var xJa=h(()=>{"use strict"});var CJa=h(()=>{"use strict"});var wJa=h(()=>{"use strict"});var SJa=h(()=>{"use strict"});var TJa=h(()=>{"use strict"});var OJa=h(()=>{"use strict"});var BJa=h(()=>{"use strict"});var PJa=h(()=>{"use strict"});var hXi,DJa=h(()=>{"use strict";hXi={Default:"default",Toggle:"toggle",Tabs:"tabs"}});var gXi,RJa=h(()=>{"use strict";gXi={Typescript:"typescript",Javascript:"javascript",Python:"python",Java:"java",Go:"go",Ruby:"ruby",Csharp:"csharp",Php:"php",Swift:"swift",Rust:"rust",Nodets:"nodets",Nodejs:"nodejs",Dotnet:"dotnet",Curl:"curl",Jvm:"jvm",Ts:"ts",Js:"js"}});var kJa=h(()=>{"use strict"});var FJa=h(()=>{"use strict"});var NJa=h(()=>{"use strict"});var jJa=h(()=>{"use strict"});var QJa=h(()=>{"use strict"});var AXi,zJa=h(()=>{"use strict";AXi={Header:"header",HeaderTabs:"header-tabs",Sidebar:"sidebar"}});var MJa=h(()=>{"use strict"});var LJa=h(()=>{"use strict"});var VJa=h(()=>{"use strict"});var yXi,UJa=h(()=>{"use strict";yXi={Default:"default",Minimal:"minimal"}});var _Ja=h(()=>{"use strict"});var GJa=h(()=>{"use strict"});var qJa=h(()=>{"use strict"});var WJa=h(()=>{"use strict"});var HJa=h(()=>{"use strict"});var bXi,KJa=h(()=>{"use strict";bXi={Header:"header",Sidebar:"sidebar"}});var JJa=h(()=>{"use strict"});var YJa=h(()=>{"use strict"});var XJa=h(()=>{"use strict"});var ZJa=h(()=>{"use strict"});var $Ja=h(()=>{"use strict"});var eYa=h(()=>{"use strict"});var EXi,tYa=h(()=>{"use strict";EXi={Left:"left",Center:"center"}});var IXi,rYa=h(()=>{"use strict";IXi={Header:"header",Sidebar:"sidebar"}});var nYa=h(()=>{"use strict"});var iYa=h(()=>{"use strict"});var vXi,oYa=h(()=>{"use strict";vXi={Default:"default",Bubble:"bubble"}});var sYa=h(()=>{"use strict"});var xXi,aYa=h(()=>{"use strict";xXi={Blank:"_blank",Self:"_self",Parent:"_parent",Top:"_top"}});var cYa=h(()=>{"use strict"});var CXi,uYa=h(()=>{"use strict";CXi={Frontmatter:"frontmatter",Filename:"filename"}});var lYa=h(()=>{"use strict"});var pYa=h(()=>{"use strict"});var wXi,fYa=h(()=>{"use strict";wXi={Summary:"summary",SummaryLargeImage:"summary_large_image",App:"app",Player:"player"}});var dYa=h(()=>{"use strict"});var SXi,mYa=h(()=>{"use strict";SXi={Deprecated:"deprecated",Legacy:"legacy",Ga:"ga",Stable:"stable",Beta:"beta",Alpha:"alpha",Preview:"preview"}});var hYa=h(()=>{"use strict"});var gYa=h(()=>{"use strict"});var AYa=h(()=>{"use strict"});var TXi,yYa=h(()=>{"use strict";TXi={Flat:"flat",Grouped:"grouped"}});var bYa=h(()=>{"use strict"});var EYa=h(()=>{"use strict"});var IYa=h(()=>{"use strict"});var OXi=h(()=>{"use strict";OHa();BHa();PHa();DHa();RHa();kHa();FHa();NHa();jHa();QHa();zHa();MHa();LHa();VHa();UHa();_Ha();GHa();qHa();WHa();HHa();KHa();JHa();YHa();XHa();ZHa();$Ha();eKa();tKa();rKa();nKa();iKa();oKa();sKa();aKa();cKa();uKa();lKa();pKa();fKa();dKa();mKa();hKa();gKa();AKa();yKa();bKa();EKa();IKa();vKa();xKa();CKa();wKa();SKa();TKa();OKa();BKa();PKa();DKa();RKa();kKa();FKa();NKa();jKa();QKa();zKa();MKa();LKa();VKa();UKa();_Ka();GKa();qKa();WKa();HKa();KKa();JKa();YKa();XKa();ZKa();$Ka();eJa();tJa();rJa();nJa();iJa();oJa();sJa();aJa();cJa();uJa();lJa();pJa();fJa();dJa();mJa();hJa();gJa();AJa();yJa();bJa();EJa();IJa();vJa();xJa();CJa();wJa();SJa();TJa();OJa();BJa();PJa();DJa();RJa();kJa();FJa();NJa();jJa();QJa();zJa();MJa();LJa();VJa();UJa();_Ja();GJa();qJa();WJa();HJa();KJa();JJa();YJa();XJa();ZJa();$Ja();eYa();tYa();rYa();nYa();iYa();oYa();sYa();aYa();cYa();uYa();lYa();pYa();fYa();dYa();mYa();hYa();gYa();AYa();yYa();bYa();EYa();IYa()});var zIr={};Z(zIr,{AiChatLocation:()=>HYi,AiChatModel:()=>KYi,ApiReferenceLayout:()=>JYi,Availability:()=>YYi,BodyThemeConfig:()=>XYi,ChangelogLayout:()=>ZYi,CheckRuleSeverity:()=>$Yi,CollapsedStringValue:()=>eXi,ContentAlignment:()=>tXi,EditThisPageLaunch:()=>rXi,FontDisplay:()=>nXi,FontStyle:()=>iXi,FooterNavThemeConfig:()=>oXi,HeaderPosition:()=>sXi,HttpSnippetLanguage:()=>aXi,JsScriptStrategy:()=>cXi,LanguageSwitcherThemeConfig:()=>uXi,LibraryLanguage:()=>lXi,OgDynamicLogoColor:()=>pXi,PageActionOption:()=>fXi,PageActionsThemeConfig:()=>dXi,PageDescriptionSource:()=>mXi,ProductSwitcherThemeConfig:()=>hXi,ProgrammingLanguage:()=>gXi,SearchbarPlacement:()=>AXi,SidebarThemeConfig:()=>yXi,SwitcherPlacement:()=>bXi,TabsAlignment:()=>EXi,TabsPlacement:()=>IXi,TabsThemeStyle:()=>vXi,Target:()=>xXi,TitleSource:()=>CXi,TwitterCardSetting:()=>wXi,VersionAvailability:()=>SXi,WebSocketOneofDisplay:()=>TXi});var vYa=h(()=>{"use strict";OXi()});var xYa=h(()=>{"use strict";vYa();OXi()});var BXi={};Z(BXi,{AiChatLocation:()=>HYi,AiChatModel:()=>KYi,ApiReferenceLayout:()=>JYi,Availability:()=>YYi,BodyThemeConfig:()=>XYi,ChangelogLayout:()=>ZYi,CheckRuleSeverity:()=>$Yi,CollapsedStringValue:()=>eXi,ContentAlignment:()=>tXi,EditThisPageLaunch:()=>rXi,FontDisplay:()=>nXi,FontStyle:()=>iXi,FooterNavThemeConfig:()=>oXi,HeaderPosition:()=>sXi,HttpSnippetLanguage:()=>aXi,JsScriptStrategy:()=>cXi,LanguageSwitcherThemeConfig:()=>uXi,LibraryLanguage:()=>lXi,OgDynamicLogoColor:()=>pXi,PageActionOption:()=>fXi,PageActionsThemeConfig:()=>dXi,PageDescriptionSource:()=>mXi,ProductSwitcherThemeConfig:()=>hXi,ProgrammingLanguage:()=>gXi,SearchbarPlacement:()=>AXi,SidebarThemeConfig:()=>yXi,SwitcherPlacement:()=>bXi,TabsAlignment:()=>EXi,TabsPlacement:()=>IXi,TabsThemeStyle:()=>vXi,Target:()=>xXi,TitleSource:()=>CXi,TwitterCardSetting:()=>wXi,VersionAvailability:()=>SXi,WebSocketOneofDisplay:()=>TXi,docs:()=>zIr});var PXi=h(()=>{"use strict";xYa()});var CYa,wYa=h(()=>{"use strict";CYa=(e,t,r)=>JSON.stringify(e,t,r)});function SRf({message:e,statusCode:t,body:r}){let n=[];return e!=null&&n.push(e),t!=null&&n.push(`Status code: ${t.toString()}`),r!=null&&n.push(`Body: ${CYa(r,void 0,2)}`),n.join(`
172
172
  `)}var HFt,SYa=h(()=>{"use strict";wYa();HFt=class extends Error{statusCode;body;rawResponse;cause;constructor({message:t,statusCode:r,body:n,rawResponse:i,cause:o}){super(SRf({message:t,statusCode:r,body:n})),Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.statusCode=r,this.body=n,this.rawResponse=i,o!=null&&(this.cause=o)}}});var KFt,TYa=h(()=>{"use strict";KFt=class extends Error{cause;constructor(t,r){super(t),Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,r?.cause!=null&&(this.cause=r.cause)}}});var OYa=h(()=>{"use strict";SYa();TYa()});var Y7,BYa,JFt,DXi,p2b,RXi=h(()=>{"use strict";Y7={Debug:"debug",Info:"info",Warn:"warn",Error:"error"},BYa={[Y7.Debug]:1,[Y7.Info]:2,[Y7.Warn]:3,[Y7.Error]:4},JFt=class{debug(t,...r){console.debug(t,...r)}info(t,...r){console.info(t,...r)}warn(t,...r){console.warn(t,...r)}error(t,...r){console.error(t,...r)}},DXi=class{level;logger;silent;constructor(t){this.level=BYa[t.level],this.logger=t.logger,this.silent=t.silent}shouldLog(t){return!this.silent&&this.level<=BYa[t]}isDebug(){return this.shouldLog(Y7.Debug)}debug(t,...r){this.isDebug()&&this.logger.debug(t,...r)}isInfo(){return this.shouldLog(Y7.Info)}info(t,...r){this.isInfo()&&this.logger.info(t,...r)}isWarn(){return this.shouldLog(Y7.Warn)}warn(t,...r){this.isWarn()&&this.logger.warn(t,...r)}isError(){return this.shouldLog(Y7.Error)}error(t,...r){this.isError()&&this.logger.error(t,...r)}},p2b=new DXi({level:Y7.Info,logger:new JFt,silent:!0})});var kXi,PYa=h(()=>{"use strict";RXi();(function(e){e.LogLevel=Y7,e.ConsoleLogger=JFt})(kXi||(kXi={}))});var DYa=h(()=>{"use strict";PYa()});var RYa=h(()=>{"use strict";DYa()});var kYa=h(()=>{"use strict"});var FYa=h(()=>{"use strict";RXi()});var NYa=h(()=>{"use strict"});var su,Rw=h(()=>{"use strict";su={BIGINT:"bigint",DATE:"date",ENUM:"enum",LIST:"list",STRING_LITERAL:"stringLiteral",BOOLEAN_LITERAL:"booleanLiteral",OBJECT:"object",ANY:"any",BOOLEAN:"boolean",NUMBER:"number",STRING:"string",UNKNOWN:"unknown",NEVER:"never",RECORD:"record",SET:"set",UNION:"union",UNDISCRIMINATED_UNION:"undiscriminatedUnion",NULLABLE:"nullable",OPTIONAL:"optional",OPTIONAL_NULLABLE:"optionalNullable"}});function am(e,t){return`Expected ${t}. Received ${BRf(e)}.`}function BRf(e){if(Array.isArray(e))return"list";if(e===null)return"null";if(e instanceof BigInt)return"BigInt";switch(typeof e){case"string":return`"${e}"`;case"bigint":case"number":case"boolean":case"undefined":return`${e}`}return typeof e}var IF=h(()=>{"use strict"});function kw(e){return{...e,json:jYa(e.json),parse:jYa(e.parse)}}function jYa(e){return(t,r)=>{let n=e(t,r),{skipValidation:i=!1}=r??{};return!n.ok&&i?(console.warn(["Failed to validate.",...n.errors.map(o=>" - "+(o.path.length>0?`${o.path.join(".")}: ${o.message}`:o.message))].join(`
173
- `)),{ok:!0,value:t}):n}}var hX=h(()=>{"use strict"});function MIr(e){return e.path.length===0?e.message:`${e.path.join(" -> ")}: ${e.message}`}var FXi=h(()=>{"use strict"});var HJe,NXi=h(()=>{"use strict";FXi();HJe=class extends Error{errors;constructor(t){super(t.map(MIr).join("; ")),this.errors=t,Object.setPrototypeOf(this,new.target.prototype),this.name=this.constructor.name}}});var KJe,jXi=h(()=>{"use strict";FXi();KJe=class extends Error{errors;constructor(t){super(t.map(MIr).join("; ")),this.errors=t,Object.setPrototypeOf(this,new.target.prototype),this.name=this.constructor.name}}});function cm(e){return{nullable:()=>PRf(e),optional:()=>QXi(e),optionalNullable:()=>DRf(e),transform:t=>zXi(e,t),parseOrThrow:(t,r)=>{let n=e.parse(t,r);if(n.ok)return n.value;throw new KJe(n.errors)},jsonOrThrow:(t,r)=>{let n=e.json(t,r);if(n.ok)return n.value;throw new HJe(n.errors)}}}function PRf(e){let t={parse:(r,n)=>r==null?{ok:!0,value:null}:e.parse(r,n),json:(r,n)=>r==null?{ok:!0,value:null}:e.json(r,n),getType:()=>su.NULLABLE};return{...t,...cm(t)}}function QXi(e){let t={parse:(r,n)=>r==null?{ok:!0,value:void 0}:e.parse(r,n),json:(r,n)=>n?.omitUndefined&&r===void 0?{ok:!0,value:void 0}:r==null?{ok:!0,value:null}:e.json(r,n),getType:()=>su.OPTIONAL};return{...t,...cm(t)}}function DRf(e){let t={parse:(r,n)=>r===void 0?{ok:!0,value:void 0}:r===null?{ok:!0,value:null}:e.parse(r,n),json:(r,n)=>r===void 0?{ok:!0,value:void 0}:r===null?{ok:!0,value:null}:e.json(r,n),getType:()=>su.OPTIONAL_NULLABLE};return{...t,...cm(t)}}function zXi(e,t){let r={parse:(n,i)=>{let o=e.parse(n,i);return o.ok?{ok:!0,value:t.transform(o.value)}:o},json:(n,i)=>{let o=t.untransform(n);return e.json(o,i)},getType:()=>e.getType()};return{...r,...cm(r)}}var QYa=h(()=>{"use strict";Rw();NXi();jXi()});var nQ=h(()=>{"use strict";QYa();NXi();jXi()});function zYa(){let e={parse:(t,{breadcrumbsPrefix:r=[]}={})=>typeof t=="bigint"?{ok:!0,value:t}:typeof t=="number"?{ok:!0,value:BigInt(t)}:{ok:!1,errors:[{path:r,message:am(t,"bigint | number")}]},json:(t,{breadcrumbsPrefix:r=[]}={})=>typeof t!="bigint"?{ok:!1,errors:[{path:r,message:am(t,"bigint")}]}:{ok:!0,value:t},getType:()=>su.BIGINT};return{...kw(e),...cm(e)}}var MYa=h(()=>{"use strict";Rw();IF();hX();nQ()});var LYa=h(()=>{"use strict";MYa()});function VYa(){let e={parse:(t,{breadcrumbsPrefix:r=[]}={})=>typeof t!="string"?{ok:!1,errors:[{path:r,message:am(t,"string")}]}:RRf.test(t)?{ok:!0,value:new Date(t)}:{ok:!1,errors:[{path:r,message:am(t,"ISO 8601 date string")}]},json:(t,{breadcrumbsPrefix:r=[]}={})=>t instanceof Date?{ok:!0,value:t.toISOString()}:{ok:!1,errors:[{path:r,message:am(t,"Date object")}]},getType:()=>su.DATE};return{...kw(e),...cm(e)}}var RRf,UYa=h(()=>{"use strict";Rw();IF();hX();nQ();RRf=/^([+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([.,]\d+(?!:))?)?(\17[0-5]\d([.,]\d+)?)?([zZ]|([+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/});var _Ya=h(()=>{"use strict";UYa()});function o1(e,t){return()=>{let r={parse:t,json:t,getType:()=>e};return{...kw(r),...cm(r)}}}var gX=h(()=>{"use strict";nQ();hX()});function LIr(e){let t=new Set(e);return o1(su.ENUM,(n,{allowUnrecognizedEnumValues:i,breadcrumbsPrefix:o=[]}={})=>typeof n!="string"?{ok:!1,errors:[{path:o,message:am(n,"string")}]}:!t.has(n)&&!i?{ok:!1,errors:[{path:o,message:am(n,"enum")}]}:{ok:!0,value:n})()}var GYa=h(()=>{"use strict";Rw();gX();IF()});var MXi=h(()=>{"use strict";GYa()});function qYa(e){let t=LXi(e);return{...t,...cm(t)}}function LXi(e){return{parse:(t,r)=>JJe(e).parse(t,r),json:(t,r)=>JJe(e).json(t,r),getType:()=>JJe(e).getType()}}function JJe(e){let t=e;return t.__zurg_memoized==null&&(t.__zurg_memoized=e()),t.__zurg_memoized}var VXi=h(()=>{"use strict";nQ()});function UXi(e){return Object.entries(e)}var WYa=h(()=>{"use strict"});function YFt(e,t){let r=new Set(t);return Object.entries(e).reduce((n,[i,o])=>(r.has(i)&&(n[i]=o),n),{})}var _Xi=h(()=>{"use strict"});function ole(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return t===null?!0:Object.getPrototypeOf(t)===null}var XFt=h(()=>{"use strict"});function ZFt(e){return Object.keys(e)}var GXi=h(()=>{"use strict"});function HYa(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}var KYa=h(()=>{"use strict"});function X7(e){return{withParsedProperties:t=>qXi(e,t)}}function qXi(e,t){let r={parse:(n,i)=>{let o=e.parse(n,i);if(!o.ok)return o;let s={};for(let a in t)if(kRf.call(t,a)){let c=t[a];s[a]=typeof c=="function"?c(o.value):c}return{ok:!0,value:{...o.value,...s}}},json:(n,i)=>{if(!ole(n))return{ok:!1,errors:[{path:i?.breadcrumbsPrefix??[],message:am(n,"object")}]};let o=new Set(Object.keys(t)),s=YFt(n,Object.keys(n).filter(a=>!o.has(a)));return e.json(s,i)},getType:()=>e.getType()};return{...r,...cm(r),...X7(r)}}var kRf,JYa=h(()=>{"use strict";_Xi();IF();XFt();nQ();kRf=Object.prototype.hasOwnProperty});var $Ft=h(()=>{"use strict";JYa()});function YYa(e,t){return{rawKey:e,valueSchema:t,isProperty:!0}}function sle(e){return e.isProperty}var WXi=h(()=>{"use strict"});function VIr(e){let t;function r(){if(t==null){t={};for(let[d,f]of UXi(e)){let m=sle(f)?f.rawKey:d,g=sle(f)?f.valueSchema:f;t[m]={rawKey:m,parsedKey:d,valueSchema:g}}}return t}let n,i,o,s;function a(){if(n==null){n=[],i=[];for(let[d,f]of UXi(e)){let m=sle(f)?f.rawKey:d,g=sle(f)?f.valueSchema:f;NRf(g)&&(n.push(m),i.push(d))}o=new Set(n),s=new Set(i)}return n}function c(){return i==null&&a(),i}function u(){return o==null&&a(),o}function l(){return s==null&&a(),s}let p={_getRawProperties:()=>Object.entries(e).map(([d,f])=>sle(f)?f.rawKey:d),_getParsedProperties:()=>ZFt(e),parse:(d,f)=>{let m=f?.breadcrumbsPrefix??[];return XYa({value:d,requiredKeys:a(),requiredKeysSet:u(),getProperty:g=>{let A=r()[g];if(A!=null)return{transformedKey:A.parsedKey,transform:y=>{let E=[...m,g];return A.valueSchema.parse(y,{...f,breadcrumbsPrefix:E})}}},unrecognizedObjectKeys:f?.unrecognizedObjectKeys,skipValidation:f?.skipValidation,breadcrumbsPrefix:m,omitUndefined:f?.omitUndefined})},json:(d,f)=>{let m=f?.breadcrumbsPrefix??[];return XYa({value:d,requiredKeys:c(),requiredKeysSet:l(),getProperty:g=>{let A=e[g];if(A!=null)return sle(A)?{transformedKey:A.rawKey,transform:y=>{let E=[...m,g];return A.valueSchema.json(y,{...f,breadcrumbsPrefix:E})}}:{transformedKey:g,transform:y=>{let E=[...m,g];return A.json(y,{...f,breadcrumbsPrefix:E})}}},unrecognizedObjectKeys:f?.unrecognizedObjectKeys,skipValidation:f?.skipValidation,breadcrumbsPrefix:m,omitUndefined:f?.omitUndefined})},getType:()=>su.OBJECT};return{...kw(p),...cm(p),...X7(p),...Tje(p)}}function XYa({value:e,requiredKeys:t,requiredKeysSet:r,getProperty:n,unrecognizedObjectKeys:i="fail",skipValidation:o=!1,breadcrumbsPrefix:s=[]}){if(!ole(e))return{ok:!1,errors:[{path:s,message:am(e,"object")}]};let a=t.length,c=[],u={};for(let l in e){if(!FRf.call(e,l))continue;let p=e[l],d=n(l);if(d!=null){a>0&&r.has(l)&&a--;let f=d.transform(p);f.ok?u[d.transformedKey]=f.value:(u[l]=p,c.push(...f.errors))}else switch(i){case"fail":c.push({path:[...s,l],message:`Unexpected key "${l}"`});break;case"strip":break;case"passthrough":u[l]=p;break}}if(a>0)for(let l of t)l in e||c.push({path:s,message:`Missing required key "${l}"`});return c.length===0||o?{ok:!0,value:u}:{ok:!1,errors:c}}function Tje(e){return{extend:t=>{let r={_getParsedProperties:()=>[...e._getParsedProperties(),...t._getParsedProperties()],_getRawProperties:()=>[...e._getRawProperties(),...t._getRawProperties()],parse:(n,i)=>ZYa({extensionKeys:t._getRawProperties(),value:n,transformBase:o=>e.parse(o,i),transformExtension:o=>t.parse(o,i),breadcrumbsPrefix:i?.breadcrumbsPrefix}),json:(n,i)=>ZYa({extensionKeys:t._getParsedProperties(),value:n,transformBase:o=>e.json(o,i),transformExtension:o=>t.json(o,i),breadcrumbsPrefix:i?.breadcrumbsPrefix}),getType:()=>su.OBJECT};return{...r,...cm(r),...X7(r),...Tje(r)}},passthrough:()=>{let t=new Set(e._getRawProperties()),r=new Set(e._getParsedProperties()),n={_getParsedProperties:()=>e._getParsedProperties(),_getRawProperties:()=>e._getRawProperties(),parse:(i,o)=>{let s=e.parse(i,{...o,unrecognizedObjectKeys:"passthrough"});if(!s.ok)return s;let a={};if(typeof i=="object"&&i!=null)for(let[c,u]of Object.entries(i))t.has(c)||(a[c]=u);return{ok:!0,value:{...a,...s.value}}},json:(i,o)=>{let s=e.json(i,{...o,unrecognizedObjectKeys:"passthrough"});if(!s.ok)return s;let a={};if(typeof i=="object"&&i!=null)for(let[c,u]of Object.entries(i))r.has(c)||(a[c]=u);return{ok:!0,value:{...a,...s.value}}},getType:()=>su.OBJECT};return{...n,...cm(n),...X7(n),...Tje(n)}}}}function ZYa({extensionKeys:e,value:t,transformBase:r,transformExtension:n,breadcrumbsPrefix:i=[]}){if(!ole(t))return{ok:!1,errors:[{path:i,message:am(t,"object")}]};let o=new Set(e),[s,a]=HYa(ZFt(t),l=>o.has(l)),c=r(YFt(t,a)),u=n(YFt(t,s));return c.ok&&u.ok?{ok:!0,value:{...c.value,...u.value}}:{ok:!1,errors:[...c.ok?[]:c.errors,...u.ok?[]:u.errors]}}function NRf(e){return!jRf(e)}function jRf(e){switch(e.getType()){case su.ANY:case su.UNKNOWN:case su.OPTIONAL:case su.OPTIONAL_NULLABLE:return!0;default:return!1}}var FRf,HXi=h(()=>{"use strict";Rw();WYa();_Xi();IF();XFt();GXi();hX();KYa();$Ft();nQ();WXi();FRf=Object.prototype.hasOwnProperty});function $Ya(e){return VIr(e)}var eXa=h(()=>{"use strict";HXi()});var KXi=h(()=>{"use strict";HXi();eXa();WXi()});function tXa(e){let t={...LXi(e),_getRawProperties:()=>JJe(e)._getRawProperties(),_getParsedProperties:()=>JJe(e)._getParsedProperties()};return{...t,...cm(t),...X7(t),...Tje(t)}}var rXa=h(()=>{"use strict";KXi();$Ft();nQ();VXi()});var nXa=h(()=>{"use strict";VXi();rXa()});function UIr(e){let t={parse:(r,n)=>iXa(r,(i,o)=>e.parse(i,{...n,breadcrumbsPrefix:[...n?.breadcrumbsPrefix??[],`[${o}]`]})),json:(r,n)=>iXa(r,(i,o)=>e.json(i,{...n,breadcrumbsPrefix:[...n?.breadcrumbsPrefix??[],`[${o}]`]})),getType:()=>su.LIST};return{...kw(t),...cm(t)}}function iXa(e,t){if(!Array.isArray(e))return{ok:!1,errors:[{message:am(e,"list"),path:[]}]};let r=[],n=[];for(let i=0;i<e.length;i++){let o=t(e[i],i);o.ok?r.push(o.value):n.push(...o.errors)}return n.length===0?{ok:!0,value:r}:{ok:!1,errors:n}}var oXa=h(()=>{"use strict";Rw();IF();hX();nQ()});var JXi=h(()=>{"use strict";oXa()});function sXa(e){return o1(su.BOOLEAN_LITERAL,(r,{breadcrumbsPrefix:n=[]}={})=>r===e?{ok:!0,value:e}:{ok:!1,errors:[{path:n,message:am(r,`${e.toString()}`)}]})()}var aXa=h(()=>{"use strict";Rw();gX();IF()});function cXa(e){return o1(su.STRING_LITERAL,(r,{breadcrumbsPrefix:n=[]}={})=>r===e?{ok:!0,value:e}:{ok:!1,errors:[{path:n,message:am(r,`"${e}"`)}]})()}var uXa=h(()=>{"use strict";Rw();gX();IF()});var lXa=h(()=>{"use strict";aXa();uXa()});var pXa,fXa=h(()=>{"use strict";Rw();gX();pXa=o1(su.ANY,e=>({ok:!0,value:e}))});var dXa,mXa=h(()=>{"use strict";Rw();gX();IF();dXa=o1(su.BOOLEAN,(e,{breadcrumbsPrefix:t=[]}={})=>typeof e=="boolean"?{ok:!0,value:e}:{ok:!1,errors:[{path:t,message:am(e,"boolean")}]})});var hXa,gXa=h(()=>{"use strict";Rw();gX();hXa=o1(su.NEVER,(e,{breadcrumbsPrefix:t=[]}={})=>({ok:!1,errors:[{path:t,message:"Expected never"}]}))});var AXa,yXa=h(()=>{"use strict";Rw();gX();IF();AXa=o1(su.NUMBER,(e,{breadcrumbsPrefix:t=[]}={})=>typeof e=="number"?{ok:!0,value:e}:{ok:!1,errors:[{path:t,message:am(e,"number")}]})});var bXa,EXa=h(()=>{"use strict";Rw();gX();IF();bXa=o1(su.STRING,(e,{breadcrumbsPrefix:t=[]}={})=>typeof e=="string"?{ok:!0,value:e}:{ok:!1,errors:[{path:t,message:am(e,"string")}]})});var IXa,vXa=h(()=>{"use strict";Rw();gX();IXa=o1(su.UNKNOWN,e=>({ok:!0,value:e}))});var xXa=h(()=>{"use strict";fXa();mXa();gXa();yXa();EXa();vXa()});function CXa(e,t){let r={parse:(n,i)=>_Ir({value:n,isKeyNumeric:e.getType()===su.NUMBER,transformKey:o=>e.parse(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${o} (key)`]}),transformValue:(o,s)=>t.parse(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${s}`]}),breadcrumbsPrefix:i?.breadcrumbsPrefix}),json:(n,i)=>_Ir({value:n,isKeyNumeric:e.getType()===su.NUMBER,transformKey:o=>e.json(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${o} (key)`]}),transformValue:(o,s)=>t.json(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${s}`]}),breadcrumbsPrefix:i?.breadcrumbsPrefix}),getType:()=>su.RECORD};return{...kw(r),...cm(r)}}function wXa(e,t){let r={parse:(n,i)=>_Ir({value:n,isKeyNumeric:e.getType()===su.NUMBER,transformKey:o=>e.parse(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${o} (key)`]}),transformValue:(o,s)=>t.parse(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${s}`]}),breadcrumbsPrefix:i?.breadcrumbsPrefix}),json:(n,i)=>_Ir({value:n,isKeyNumeric:e.getType()===su.NUMBER,transformKey:o=>e.json(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${o} (key)`]}),transformValue:(o,s)=>t.json(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${s}`]}),breadcrumbsPrefix:i?.breadcrumbsPrefix}),getType:()=>su.RECORD};return{...kw(r),...cm(r)}}function _Ir({value:e,isKeyNumeric:t,transformKey:r,transformValue:n,breadcrumbsPrefix:i=[]}){if(!ole(e))return{ok:!1,errors:[{path:i,message:am(e,"object")}]};let o={},s=[];for(let a in e){if(!QRf.call(e,a))continue;let c=e[a];if(c===void 0)continue;let u=a;if(t){let d=a.length>0?Number(a):NaN;Number.isNaN(d)||(u=d)}let l=r(u),p=n(c,u);l.ok&&p.ok?o[l.value]=p.value:(l.ok||s.push(...l.errors),p.ok||s.push(...p.errors))}return s.length===0?{ok:!0,value:o}:{ok:!1,errors:s}}var QRf,SXa=h(()=>{"use strict";Rw();IF();XFt();hX();nQ();QRf=Object.prototype.hasOwnProperty});var TXa=h(()=>{"use strict";SXa()});function OXa(e){let t=UIr(e),r={parse:(n,i)=>{let o=t.parse(n,i);return o.ok?{ok:!0,value:new Set(o.value)}:o},json:(n,i)=>n instanceof Set?t.json([...n],i):{ok:!1,errors:[{path:i?.breadcrumbsPrefix??[],message:am(n,"Set")}]},getType:()=>su.SET};return{...kw(r),...cm(r)}}var BXa=h(()=>{"use strict";Rw();IF();hX();JXi();nQ()});var PXa=h(()=>{"use strict";BXa()});function RXa(e){let t={parse:(r,n)=>DXa((i,o)=>i.parse(r,o),e,n),json:(r,n)=>DXa((i,o)=>i.json(r,o),e,n),getType:()=>su.UNDISCRIMINATED_UNION};return{...kw(t),...cm(t)}}function DXa(e,t,r){let n=[];for(let[i,o]of t.entries()){let s=e(o,{...r,skipValidation:!1});if(s.ok)return s;for(let a of s.errors)n.push({path:a.path,message:`[Variant ${i}] ${a.message}`})}return{ok:!1,errors:n}}var kXa=h(()=>{"use strict";Rw();hX();nQ()});var FXa=h(()=>{"use strict";kXa()});function NXa(e,t){return{parsedDiscriminant:e,rawDiscriminant:t}}var jXa=h(()=>{"use strict"});function zXa(e,t){let r=typeof e=="string"?e:e.rawDiscriminant,n=typeof e=="string"?e:e.parsedDiscriminant,i=LIr(ZFt(t)),o={parse:(s,a)=>QXa({value:s,discriminant:r,transformedDiscriminant:n,transformDiscriminantValue:c=>i.parse(c,{allowUnrecognizedEnumValues:a?.allowUnrecognizedUnionMembers,breadcrumbsPrefix:[...a?.breadcrumbsPrefix??[],r]}),getAdditionalPropertiesSchema:c=>t[c],allowUnrecognizedUnionMembers:a?.allowUnrecognizedUnionMembers,transformAdditionalProperties:(c,u)=>u.parse(c,a),breadcrumbsPrefix:a?.breadcrumbsPrefix}),json:(s,a)=>QXa({value:s,discriminant:n,transformedDiscriminant:r,transformDiscriminantValue:c=>i.json(c,{allowUnrecognizedEnumValues:a?.allowUnrecognizedUnionMembers,breadcrumbsPrefix:[...a?.breadcrumbsPrefix??[],n]}),getAdditionalPropertiesSchema:c=>t[c],allowUnrecognizedUnionMembers:a?.allowUnrecognizedUnionMembers,transformAdditionalProperties:(c,u)=>u.json(c,a),breadcrumbsPrefix:a?.breadcrumbsPrefix}),getType:()=>su.UNION};return{...kw(o),...cm(o),...X7(o)}}function QXa({value:e,discriminant:t,transformedDiscriminant:r,transformDiscriminantValue:n,getAdditionalPropertiesSchema:i,allowUnrecognizedUnionMembers:o=!1,transformAdditionalProperties:s,breadcrumbsPrefix:a=[]}){if(!ole(e))return{ok:!1,errors:[{path:a,message:am(e,"object")}]};let c=e[t],u={};for(let f in e)zRf.call(e,f)&&f!==t&&(u[f]=e[f]);if(c==null)return{ok:!1,errors:[{path:a,message:`Missing discriminant ("${t}")`}]};let l=n(c);if(!l.ok)return{ok:!1,errors:l.errors};let p=i(l.value);if(p==null)return o?{ok:!0,value:{[r]:l.value,...u}}:{ok:!1,errors:[{path:[...a,t],message:"Unexpected discriminant value"}]};let d=s(u,p);return d.ok?{ok:!0,value:{[r]:c,...d.value}}:d}var zRf,MXa=h(()=>{"use strict";Rw();IF();XFt();GXi();hX();MXi();$Ft();nQ();zRf=Object.prototype.hasOwnProperty});var LXa=h(()=>{"use strict";jXa();MXa()});var VXa=h(()=>{"use strict";LYa();_Ya();MXi();nXa();JXi();lXa();KXi();$Ft();xXa();TXa();nQ();PXa();FXa();LXa()});var re={};Z(re,{JsonError:()=>HJe,ParseError:()=>KJe,any:()=>pXa,bigint:()=>zYa,boolean:()=>dXa,booleanLiteral:()=>sXa,date:()=>VYa,discriminant:()=>NXa,enum_:()=>LIr,getObjectLikeUtils:()=>X7,getObjectUtils:()=>Tje,getSchemaUtils:()=>cm,isProperty:()=>sle,lazy:()=>qYa,lazyObject:()=>tXa,list:()=>UIr,never:()=>hXa,number:()=>AXa,object:()=>VIr,objectWithoutOptionalProperties:()=>$Ya,optional:()=>QXi,partialRecord:()=>wXa,property:()=>YYa,record:()=>CXa,set:()=>OXa,string:()=>bXa,stringLiteral:()=>cXa,transform:()=>zXi,undiscriminatedUnion:()=>RXa,union:()=>zXa,unknown:()=>IXa,withParsedProperties:()=>qXi});var UXa=h(()=>{"use strict";VXa()});var _Xa=h(()=>{"use strict"});var Fr=h(()=>{"use strict";kYa();FYa();NYa();UXa();_Xa()});var GIr,YXi=h(()=>{"use strict";Fr();GIr=re.object({href:re.string()})});var qIr,XXi=h(()=>{"use strict";Fr();qIr=re.enum_(["description","subtitle"])});var WIr,ZXi=h(()=>{"use strict";Fr();XXi();WIr=re.object({pageDirective:re.property("page-directive",re.string().optional()),pageDescriptionSource:re.property("page-description-source",qIr.optional()),llmsTxt:re.property("llms-txt",re.string().optional()),llmsFullTxt:re.property("llms-full-txt",re.string().optional()),robotsTxt:re.property("robots-txt",re.string().optional())})});var HIr,$Xi=h(()=>{"use strict";Fr();HIr=re.object({url:re.string(),title:re.string().optional()})});var KIr,eZi=h(()=>{"use strict";Fr();$Xi();KIr=re.undiscriminatedUnion([HIr])});var JIr,tZi=h(()=>{"use strict";Fr();JIr=re.enum_(["docs","slack","discord"])});var YIr,rZi=h(()=>{"use strict";Fr();YIr=re.enum_(["claude-3.7","claude-4","command-a"])});var e2t,nZi=h(()=>{"use strict";Fr();eZi();tZi();rZi();e2t=re.object({model:YIr.optional(),systemPrompt:re.property("system-prompt",re.string().optional()),location:re.list(JIr).optional(),datasources:re.list(KIr).optional(),maskPii:re.property("mask-pii",re.boolean().optional())})});var XIr,iZi=h(()=>{"use strict";Fr();XIr=re.object({enabled:re.boolean().optional(),style:re.string().optional()})});var ZIr,oZi=h(()=>{"use strict";Fr();ZIr=re.object({orgId:re.property("org-id",re.string())})});var $Ir,sZi=h(()=>{"use strict";Fr();$Ir=re.object({measurementId:re.property("measurement-id",re.string())})});var evr,aZi=h(()=>{"use strict";Fr();evr=re.object({containerId:re.property("container-id",re.string())})});var tvr,cZi=h(()=>{"use strict";Fr();tvr=re.object({appId:re.property("app-id",re.string()),apiBase:re.property("api-base",re.string().optional())})});var rvr,uZi=h(()=>{"use strict";Fr();rvr=re.object({apiKey:re.property("api-key",re.string()),endpoint:re.string().optional()})});var nvr,lZi=h(()=>{"use strict";Fr();nvr=re.object({writeKey:re.property("write-key",re.string())})});var ivr,pZi=h(()=>{"use strict";Fr();oZi();sZi();aZi();cZi();uZi();lZi();ivr=re.object({segment:nvr.optional(),fullstory:ZIr.optional(),intercom:tvr.optional(),posthog:rvr.optional(),gtm:evr.optional(),ga4:$Ir.optional()})});var kbe,t2t=h(()=>{"use strict";Fr();kbe=re.object({message:re.string()})});var r2t,fZi=h(()=>{"use strict";Fr();r2t=re.string()});var AX,YJe=h(()=>{"use strict";Fr();fZi();AX=re.undiscriminatedUnion([r2t,re.list(r2t)])});var s1,yX=h(()=>{"use strict";Fr();s1=re.enum_(["stable","generally-available","in-development","pre-release","deprecated","beta","alpha","preview","legacy"])});var ovr,dZi=h(()=>{"use strict";Fr();ovr=re.enum_(["open-by-default"])});var bX,XJe=h(()=>{"use strict";Fr();dZi();bX=re.undiscriminatedUnion([re.boolean(),ovr])});var svr,mZi=h(()=>{"use strict";Fr();svr=re.object({href:re.string().optional()})});var EX,ZJe=h(()=>{"use strict";Fr();mZi();EX=re.object({hidden:re.boolean().optional(),environments:re.list(re.string()).optional(),button:svr.optional(),oauth:re.boolean().optional(),limitWebsocketMessagesPerConnection:re.property("limit-websocket-messages-per-connection",re.number().optional()),sendOptionalDefaults:re.property("send-optional-defaults",re.boolean().optional())})});var avr,hZi=h(()=>{"use strict";Fr();avr=re.object({version:re.string(),package:re.string()})});var AU,gZi=h(()=>{"use strict";Fr();hZi();AU=re.undiscriminatedUnion([re.string(),avr])});var cvr,AZi=h(()=>{"use strict";Fr();gZi();cvr=re.object({python:AU.optional(),typescript:AU.optional(),go:AU.optional(),java:AU.optional(),ruby:AU.optional(),csharp:AU.optional(),php:AU.optional(),swift:AU.optional(),rust:AU.optional()})});var n2t,yZi=h(()=>{"use strict";Fr();n2t=re.object({flag:re.string(),fallbackValue:re.property("fallback-value",re.unknown().optional()),match:re.unknown().optional()})});var uvr,bZi=h(()=>{"use strict";Fr();yZi();uvr=re.undiscriminatedUnion([re.string(),n2t,re.list(n2t)])});var Dd,a1=h(()=>{"use strict";Fr();bZi();Dd=re.object({featureFlag:re.property("feature-flag",uvr.optional())})});var Oje,lvr=h(()=>{"use strict";Fr();Oje=re.string()});var $Je,pvr=h(()=>{"use strict";Fr();lvr();$Je=re.undiscriminatedUnion([Oje,re.list(Oje)])});var Rd,c1=h(()=>{"use strict";Fr();pvr();Rd=re.object({viewers:$Je.optional(),orphaned:re.boolean().optional()})});var fvr,EZi=h(()=>{"use strict";Fr();SL();YJe();yX();XJe();ZJe();AZi();a1();c1();fvr=re.object({api:re.string(),apiName:re.property("api-name",re.string().optional()),openrpc:re.string().optional(),audiences:AX.optional(),displayErrors:re.property("display-errors",re.boolean().optional()),tagDescriptionPages:re.property("tag-description-pages",re.boolean().optional()),snippets:cvr.optional(),postman:re.string().optional(),summary:re.string().optional(),layout:re.list(re.lazy(()=>IX)).optional(),collapsed:bX.optional(),icon:re.string().optional(),slug:re.string().optional(),hidden:re.boolean().optional(),availability:s1.optional(),skipSlug:re.property("skip-slug",re.boolean().optional()),alphabetized:re.boolean().optional(),flattened:re.boolean().optional(),paginated:re.boolean().optional(),playground:EX.optional()}).extend(Rd).extend(Dd)});var dvr,IZi=h(()=>{"use strict";Fr();yX();ZJe();a1();c1();dvr=re.object({endpoint:re.string(),title:re.string().optional(),slug:re.string().optional(),icon:re.string().optional(),hidden:re.boolean().optional(),availability:s1.optional(),playground:EX.optional()}).extend(Rd).extend(Dd)});var mvr,vZi=h(()=>{"use strict";Fr();mvr=re.enum_(["indented","cards"])});var hvr,xZi=h(()=>{"use strict";Fr();yX();a1();c1();hvr=re.object({operation:re.string(),title:re.string().optional(),slug:re.string().optional(),hidden:re.boolean().optional(),availability:s1.optional()}).extend(Rd).extend(Dd)});var yU,Bje=h(()=>{"use strict";Fr();yU=re.enum_(["_blank","_self","_parent","_top"])});var eYe,gvr=h(()=>{"use strict";Fr();Bje();eYe=re.object({link:re.string(),href:re.string(),icon:re.string().optional(),target:yU.optional()})});var bU,Pje=h(()=>{"use strict";Fr();yX();a1();c1();bU=re.object({page:re.string(),path:re.string(),slug:re.string().optional(),icon:re.string().optional(),hidden:re.boolean().optional(),noindex:re.boolean().optional(),availability:s1.optional()}).extend(Rd).extend(Dd)});var IX,GXa=h(()=>{"use strict";Fr();SL();IZi();xZi();gvr();Pje();IX=re.undiscriminatedUnion([re.string(),re.record(re.string(),re.lazy(()=>Avr)),re.lazyObject(()=>yvr),dvr,hvr,bU,eYe])});var Avr,qXa=h(()=>{"use strict";Fr();SL();Avr=re.undiscriminatedUnion([re.list(re.lazy(()=>IX)),re.lazyObject(()=>bvr)])});var bvr,WXa=h(()=>{"use strict";Fr();SL();yX();ZJe();a1();c1();bvr=re.object({title:re.string().optional(),summary:re.string().optional(),contents:re.list(re.lazy(()=>IX)).optional(),availability:s1.optional(),slug:re.string().optional(),icon:re.string().optional(),hidden:re.boolean().optional(),skipSlug:re.property("skip-slug",re.boolean().optional()),playground:EX.optional()}).extend(Rd).extend(Dd)});var yvr,HXa=h(()=>{"use strict";Fr();SL();yX();XJe();ZJe();a1();c1();yvr=re.object({section:re.string(),referencedPackages:re.property("referenced-packages",re.list(re.string()).optional()),summary:re.string().optional(),contents:re.list(re.lazy(()=>IX)).optional(),slug:re.string().optional(),icon:re.string().optional(),hidden:re.boolean().optional(),skipSlug:re.property("skip-slug",re.boolean().optional()),collapsed:bX.optional(),collapsible:re.boolean().optional(),collapsedByDefault:re.property("collapsed-by-default",re.boolean().optional()),availability:s1.optional(),playground:EX.optional()}).extend(Rd).extend(Dd)});var Evr,CZi=h(()=>{"use strict";Fr();Evr=re.object({dark:re.string().optional(),light:re.string().optional()})});var Ivr,wZi=h(()=>{"use strict";Fr();CZi();Ivr=re.undiscriminatedUnion([re.string(),Evr])});var ale,i2t=h(()=>{"use strict";Fr();ale=re.string()});var vvr,SZi=h(()=>{"use strict";Fr();i2t();a1();c1();vvr=re.object({blog:ale,title:re.string().optional(),slug:re.string().optional(),icon:re.string().optional(),hidden:re.boolean().optional()}).extend(Rd).extend(Dd)});var xvr,TZi=h(()=>{"use strict";Fr();xvr=re.enum_(["default","canvas"])});var Cvr,OZi=h(()=>{"use strict";Fr();i2t();a1();c1();Cvr=re.object({changelog:ale,title:re.string().optional(),slug:re.string().optional(),icon:re.string().optional(),hidden:re.boolean().optional()}).extend(Rd).extend(Dd)});var wvr,BZi=h(()=>{"use strict";Fr();wvr=re.enum_(["timeline","classic"])});var Z7,PZi=h(()=>{"use strict";Fr();Z7=re.enum_(["warn","error"])});var Svr,DZi=h(()=>{"use strict";Fr();PZi();Svr=re.object({exampleValidation:re.property("example-validation",Z7.optional()),brokenLinks:re.property("broken-links",Z7.optional()),noNonComponentRefs:re.property("no-non-component-refs",Z7.optional()),validLocalReferences:re.property("valid-local-references",Z7.optional()),noCircularRedirects:re.property("no-circular-redirects",Z7.optional()),validDocsEndpoints:re.property("valid-docs-endpoints",Z7.optional()),missingRedirects:re.property("missing-redirects",Z7.optional()),validChangelogSlug:re.property("valid-changelog-slug",Z7.optional())})});var Tvr,RZi=h(()=>{"use strict";Fr();DZi();Tvr=re.object({rules:Svr.optional()})});var Ovr,kZi=h(()=>{"use strict";Fr();Ovr=re.object({dark:re.string().optional(),light:re.string().optional()})});var NI,FZi=h(()=>{"use strict";Fr();kZi();NI=re.undiscriminatedUnion([re.string(),Ovr])});var Bvr,NZi=h(()=>{"use strict";Fr();FZi();Bvr=re.object({accentPrimary:re.property("accent-primary",NI.optional()),accentPrimaryDeprecated:re.property("accentPrimary",NI.optional()),background:NI.optional(),border:NI.optional(),sidebarBackground:re.property("sidebar-background",NI.optional()),headerBackground:re.property("header-background",NI.optional()),cardBackground:re.property("card-background",NI.optional()),accent1:re.property("accent-1",NI.optional()),accent2:re.property("accent-2",NI.optional()),accent3:re.property("accent-3",NI.optional()),accent4:re.property("accent-4",NI.optional()),accent5:re.property("accent-5",NI.optional()),accent6:re.property("accent-6",NI.optional()),accent7:re.property("accent-7",NI.optional()),accent8:re.property("accent-8",NI.optional()),accent9:re.property("accent-9",NI.optional()),accent10:re.property("accent-10",NI.optional()),accent11:re.property("accent-11",NI.optional()),accent12:re.property("accent-12",NI.optional())})});var Pvr,jZi=h(()=>{"use strict";Fr();Pvr=re.enum_(["center","left"])});var Dvr,QZi=h(()=>{"use strict";Fr();Dvr=re.undiscriminatedUnion([re.string(),re.list(re.string())])});var Rvr,zZi=h(()=>{"use strict";Fr();Rvr=re.undiscriminatedUnion([re.string(),re.list(re.string())])});var kvr,MZi=h(()=>{"use strict";Fr();kvr=re.object({title:re.string(),subtitle:re.string().optional(),url:re.string(),icon:re.string().optional(),default:re.boolean().optional()})});var Fvr,LZi=h(()=>{"use strict";Fr();Fvr=re.enum_(["github","dashboard"])});var Nvr,VZi=h(()=>{"use strict";Fr();Nvr=re.object({host:re.string().optional(),owner:re.string(),repo:re.string(),branch:re.string().optional()})});var jvr,UZi=h(()=>{"use strict";Fr();LZi();VZi();jvr=re.object({github:Nvr.optional(),launch:Fvr.optional()})});var Qvr,_Zi=h(()=>{"use strict";Fr();YJe();zZi();UZi();Qvr=re.object({url:re.string(),customDomain:re.property("custom-domain",Rvr.optional()),editThisPage:re.property("edit-this-page",jvr.optional()),audiences:AX.optional(),multiSource:re.property("multi-source",re.boolean().optional())})});var zvr,GZi=h(()=>{"use strict";Fr();zvr=re.enum_(["curl","csharp","go","java","javascript","php","python","ruby","swift","typescript"])});var Mvr,qZi=h(()=>{"use strict";Fr();GZi();Mvr=re.undiscriminatedUnion([re.boolean(),re.list(zvr)])});var Fbe,o2t=h(()=>{"use strict";Fr();Fbe=re.string()});var Lvr,WZi=h(()=>{"use strict";Fr();Lvr=re.object({prioritizeCurrentProduct:re.property("prioritize-current-product",re.boolean().optional()),defaultFilterByCurrentProduct:re.property("default-filter-by-current-product",re.boolean().optional())})});var tYe,Vvr=h(()=>{"use strict";Fr();tYe=re.enum_(["frontmatter","filename"])});var Uvr,HZi=h(()=>{"use strict";Fr();Uvr=re.enum_(["flat","grouped"])});var _vr,KZi=h(()=>{"use strict";Fr();qZi();o2t();WZi();Vvr();HZi();_vr=re.object({searchText:re.property("search-text",re.string().optional()),disableSearch:re.property("disable-search",re.boolean().optional()),darkModeCode:re.property("dark-mode-code",re.boolean().optional()),defaultSearchFilters:re.property("default-search-filters",re.boolean().optional()),search:Lvr.optional(),httpSnippets:re.property("http-snippets",Mvr.optional()),hide404Page:re.property("hide-404-page",re.boolean().optional()),useJavascriptAsTypescript:re.property("use-javascript-as-typescript",re.boolean().optional()),disableExplorerProxy:re.property("disable-explorer-proxy",re.boolean().optional()),disableEnvironmentEditing:re.property("disable-environment-editing",re.boolean().optional()),disableAnalytics:re.property("disable-analytics",re.boolean().optional()),language:Fbe.optional(),folderTitleSource:re.property("folder-title-source",tYe.optional()),substituteEnvVars:re.property("substitute-env-vars",re.boolean().optional()),websocketOneofDisplay:re.property("websocket-oneof-display",Uvr.optional())})});var rYe,Gvr=h(()=>{"use strict";Fr();rYe=re.enum_(["normal","italic"])});var nYe,qvr=h(()=>{"use strict";Fr();nYe=re.undiscriminatedUnion([re.string(),re.number()])});var Wvr,JZi=h(()=>{"use strict";Fr();Gvr();qvr();Wvr=re.object({path:re.string(),weight:nYe.optional(),style:rYe.optional()})});var Hvr,YZi=h(()=>{"use strict";Fr();JZi();Hvr=re.undiscriminatedUnion([re.string(),Wvr])});var Kvr,XZi=h(()=>{"use strict";Fr();Kvr=re.enum_(["auto","block","swap","fallback","optional"])});var iYe,ZZi=h(()=>{"use strict";Fr();YZi();XZi();Gvr();qvr();iYe=re.object({name:re.string().optional(),path:re.string().optional(),weight:nYe.optional(),style:rYe.optional(),paths:re.list(Hvr).optional(),display:Kvr.optional(),fallback:re.list(re.string()).optional(),fontVariationSettings:re.property("font-variation-settings",re.string().optional())})});var Jvr,$Zi=h(()=>{"use strict";Fr();ZZi();Jvr=re.object({headingsFont:iYe.optional(),bodyFont:iYe.optional(),codeFont:iYe.optional()})});var Yvr,e$i=h(()=>{"use strict";Fr();Yvr=re.object({mdxComponents:re.property("mdx-components",re.list(re.string()).optional()),disableStreamToggle:re.property("disable-stream-toggle",re.boolean().optional()),openapiParserV2:re.property("openapi-parser-v2",re.boolean().optional()),openapiParserV3:re.property("openapi-parser-v3",re.boolean().optional()),dynamicSnippets:re.property("dynamic-snippets",re.boolean().optional()),aiExamples:re.property("ai-examples",re.boolean().optional()),aiExampleStyleInstructions:re.property("ai-example-style-instructions",re.string().optional()),excludeApis:re.property("exclude-apis",re.boolean().optional()),basepathAware:re.property("basepath-aware",re.boolean().optional()),externalSitemaps:re.property("external-sitemaps",re.list(re.string()).optional())})});var Xvr,t$i=h(()=>{"use strict";Fr();Xvr=re.object({github:re.string().optional(),twitter:re.string().optional(),x:re.string().optional(),linkedin:re.string().optional(),youtube:re.string().optional(),instagram:re.string().optional(),facebook:re.string().optional(),discord:re.string().optional(),slack:re.string().optional(),hackernews:re.string().optional(),medium:re.string().optional(),website:re.string().optional()})});var Zvr,r$i=h(()=>{"use strict";Fr();Zvr=re.object({intercom:re.string().optional(),context7:re.string().optional()})});var oYe,$vr=h(()=>{"use strict";Fr();oYe=re.enum_(["beforeInteractive","afterInteractive","lazyOnload"])});var exr,n$i=h(()=>{"use strict";Fr();$vr();exr=re.object({path:re.string(),strategy:oYe.optional()})});var txr,i$i=h(()=>{"use strict";Fr();n$i();txr=re.undiscriminatedUnion([re.string(),exr])});var rxr,o$i=h(()=>{"use strict";Fr();$vr();rxr=re.object({url:re.string(),strategy:oYe.optional(),disableSri:re.property("disable-sri",re.boolean().optional())})});var s2t,s$i=h(()=>{"use strict";Fr();i$i();o$i();s2t=re.undiscriminatedUnion([rxr,txr])});var nxr,a$i=h(()=>{"use strict";Fr();s$i();nxr=re.undiscriminatedUnion([s2t,re.list(s2t)])});var ixr,c$i=h(()=>{"use strict";Fr();ixr=re.enum_(["fixed","static"])});var oxr,u$i=h(()=>{"use strict";Fr();oxr=re.enum_(["header","header-tabs","sidebar"])});var sxr,l$i=h(()=>{"use strict";Fr();sxr=re.enum_(["header","sidebar"])});var sYe,axr=h(()=>{"use strict";Fr();sYe=re.enum_(["header","sidebar"])});var cxr,p$i=h(()=>{"use strict";Fr();vZi();BZi();jZi();c$i();u$i();l$i();axr();cxr=re.object({pageWidth:re.property("page-width",re.string().optional()),contentWidth:re.property("content-width",re.string().optional()),sidebarWidth:re.property("sidebar-width",re.string().optional()),headerHeight:re.property("header-height",re.string().optional()),searchbarPlacement:re.property("searchbar-placement",oxr.optional()),tabsPlacement:re.property("tabs-placement",sYe.optional()),switcherPlacement:re.property("switcher-placement",sxr.optional()),contentAlignment:re.property("content-alignment",Pvr.optional()),headerPosition:re.property("header-position",ixr.optional()),disableHeader:re.property("disable-header",re.boolean().optional()),hideNavLinks:re.property("hide-nav-links",re.boolean().optional()),hideFeedback:re.property("hide-feedback",re.boolean().optional()),mobileToc:re.property("mobile-toc",re.boolean().optional()),changelogLayout:re.property("changelog-layout",wvr.optional()),apiReferenceLayout:re.property("api-reference-layout",mvr.optional()),showNavAvailabilityBadges:re.property("show-nav-availability-badges",re.boolean().optional())})});var uxr,f$i=h(()=>{"use strict";Fr();uxr=re.object({doxyfile:re.string().optional()})});var lxr,d$i=h(()=>{"use strict";Fr();lxr=re.object({git:re.string(),subpath:re.string().optional(),ref:re.string().optional()})});var pxr,m$i=h(()=>{"use strict";Fr();pxr=re.object({path:re.string()})});var fxr,h$i=h(()=>{"use strict";Fr();d$i();m$i();fxr=re.undiscriminatedUnion([lxr,pxr])});var dxr,g$i=h(()=>{"use strict";Fr();dxr=re.enum_(["python","cpp"])});var mxr,A$i=h(()=>{"use strict";Fr();mxr=re.object({path:re.string()})});var hxr,y$i=h(()=>{"use strict";Fr();f$i();h$i();g$i();A$i();hxr=re.object({input:fxr,output:mxr,lang:dxr,config:uxr.optional()})});var aYe,gxr=h(()=>{"use strict";Fr();aYe=re.string()});var Axr,b$i=h(()=>{"use strict";Fr();Axr=re.object({dark:re.string().optional(),light:re.string().optional(),height:re.number().optional(),href:re.string().optional(),rightText:re.property("right-text",re.string().optional())})});var yxr,E$i=h(()=>{"use strict";Fr();yxr=re.enum_(["dark","light"])});var bxr,I$i=h(()=>{"use strict";Fr();bxr=re.enum_(["summary","summary_large_image","app","player"])});var Exr,v$i=h(()=>{"use strict";Fr();E$i();I$i();Exr=re.object({ogSiteName:re.property("og:site_name",re.string().optional()),ogTitle:re.property("og:title",re.string().optional()),ogDescription:re.property("og:description",re.string().optional()),ogUrl:re.property("og:url",re.string().optional()),ogImage:re.property("og:image",re.string().optional()),ogImageWidth:re.property("og:image:width",re.number().optional()),ogImageHeight:re.property("og:image:height",re.number().optional()),ogLocale:re.property("og:locale",re.string().optional()),ogLogo:re.property("og:logo",re.string().optional()),twitterTitle:re.property("twitter:title",re.string().optional()),twitterDescription:re.property("twitter:description",re.string().optional()),twitterHandle:re.property("twitter:handle",re.string().optional()),twitterImage:re.property("twitter:image",re.string().optional()),twitterSite:re.property("twitter:site",re.string().optional()),twitterUrl:re.property("twitter:url",re.string().optional()),twitterCard:re.property("twitter:card",bxr.optional()),ogDynamic:re.property("og:dynamic",re.boolean().optional()),ogDynamicBackgroundImage:re.property("og:dynamic:background-image",re.string().optional()),ogDynamicTextColor:re.property("og:dynamic:text-color",re.string().optional()),ogDynamicBackgroundColor:re.property("og:dynamic:background-color",re.string().optional()),ogDynamicLogoColor:re.property("og:dynamic:logo-color",yxr.optional()),ogDynamicShowLogo:re.property("og:dynamic:show-logo",re.boolean().optional()),ogDynamicShowSection:re.property("og:dynamic:show-section",re.boolean().optional()),ogDynamicShowDescription:re.property("og:dynamic:show-description",re.boolean().optional()),ogDynamicShowUrl:re.property("og:dynamic:show-url",re.boolean().optional()),ogDynamicShowGradient:re.property("og:dynamic:show-gradient",re.boolean().optional()),canonicalHost:re.property("canonical-host",re.string().optional())})});var Nbe,a2t=h(()=>{"use strict";Fr();pvr();Nbe=re.object({viewers:$Je.optional()})});var vX,Ixr=h(()=>{"use strict";Fr();Bje();a2t();vX=re.object({href:re.string().optional(),target:yU.optional(),url:re.string().optional(),text:re.string().optional(),icon:re.string().optional(),rightIcon:re.string().optional(),rounded:re.boolean().optional()}).extend(Nbe)});var vxr,x$i=h(()=>{"use strict";Fr();Ixr();a2t();vxr=re.object({links:re.list(vX),text:re.string().optional(),icon:re.string().optional(),rightIcon:re.string().optional(),rounded:re.boolean().optional()}).extend(Nbe)});var xxr,C$i=h(()=>{"use strict";Fr();Bje();a2t();xxr=re.object({url:re.string(),target:yU.optional()}).extend(Nbe)});var Cxr,w$i=h(()=>{"use strict";Fr();C$i();Cxr=re.undiscriminatedUnion([re.string(),xxr])});var wxr,S$i=h(()=>{"use strict";Fr();x$i();w$i();Ixr();wxr=re.union("type",{filled:vX,outlined:vX,minimal:vX,github:re.object({value:Cxr}),dropdown:vxr,primary:vX,secondary:vX}).transform({transform:e=>e,untransform:e=>e})});var EU,Dje=h(()=>{"use strict";Fr();EU=re.string()});var Sxr,T$i=h(()=>{"use strict";Fr();SL();Dje();Sxr=re.object({tab:EU,layout:re.list(re.lazy(()=>xX)).optional()})});var Txr,O$i=h(()=>{"use strict";Fr();SL();a1();c1();Txr=re.object({title:re.string(),subtitle:re.string().optional(),icon:re.string().optional(),layout:re.list(re.lazy(()=>xX)),slug:re.string().optional(),skipSlug:re.property("skip-slug",re.boolean().optional()),hidden:re.boolean().optional(),default:re.boolean().optional()}).extend(Rd).extend(Dd)});var Oxr,B$i=h(()=>{"use strict";Fr();Dje();O$i();Oxr=re.object({tab:EU,variants:re.list(Txr)})});var Bxr,P$i=h(()=>{"use strict";Fr();T$i();B$i();Bxr=re.undiscriminatedUnion([Sxr,Oxr])});var Pxr,D$i=h(()=>{"use strict";Fr();P$i();Pxr=re.list(Bxr)});var Dxr,R$i=h(()=>{"use strict";Fr();SL();Dxr=re.list(re.lazy(()=>xX))});var jbe,c2t=h(()=>{"use strict";Fr();D$i();R$i();jbe=re.undiscriminatedUnion([Dxr,Pxr])});var Rxr,k$i=h(()=>{"use strict";Fr();Rxr=re.enum_(["copy-page","view-as-markdown","ask-ai","chatgpt","claude","cursor","claude-code","vscode"])});var kxr,F$i=h(()=>{"use strict";Fr();kxr=re.object({name:re.string(),description:re.string().optional(),url:re.string().optional()})});var Fxr,N$i=h(()=>{"use strict";Fr();Fxr=re.undiscriminatedUnion([re.string(),re.list(re.string())])});var Nxr,j$i=h(()=>{"use strict";Fr();F$i();N$i();Nxr=re.object({title:re.string().optional(),description:re.string().optional(),learnMoreUrl:re.property("learn-more-url",re.string().optional()),repository:re.string().optional(),installCommand:re.property("install-command",Fxr.optional()),skills:re.list(kxr).optional()})});var jxr,Q$i=h(()=>{"use strict";Fr();MZi();j$i();jxr=re.object({copyPage:re.property("copy-page",re.boolean().optional()),viewAsMarkdown:re.property("view-as-markdown",re.boolean().optional()),askAi:re.property("ask-ai",re.boolean().optional()),chatgpt:re.boolean().optional(),claude:re.boolean().optional(),claudeCode:re.property("claude-code",re.boolean().optional()),cursor:re.boolean().optional(),mcp:re.boolean().optional(),vscode:re.boolean().optional(),custom:re.list(kvr).optional(),skills:Nxr.optional()})});var Qxr,z$i=h(()=>{"use strict";Fr();k$i();Q$i();Qxr=re.object({default:Rxr.optional(),options:jxr.optional()})});var zxr,M$i=h(()=>{"use strict";Fr();zxr=re.enum_(["deprecated","legacy","ga","stable","beta","alpha","preview"])});var cYe,Mxr=h(()=>{"use strict";Fr();t2t();YJe();M$i();a1();c1();cYe=re.object({displayName:re.property("display-name",re.string()),path:re.string().optional(),ref:re.string().optional(),slug:re.string().optional(),availability:zxr.optional(),audiences:AX.optional(),hidden:re.boolean().optional(),announcement:kbe.optional()}).extend(Rd).extend(Dd)});var uYe,Lxr=h(()=>{"use strict";Fr();YJe();Mxr();a1();c1();uYe=re.object({displayName:re.property("display-name",re.string()),subtitle:re.string().optional(),icon:re.string().optional(),image:re.string().optional(),versions:re.list(cYe).optional(),audiences:AX.optional()}).extend(Rd).extend(Dd)});var Vxr,L$i=h(()=>{"use strict";Fr();Lxr();Bje();Vxr=re.object({href:re.string(),target:yU.optional()}).extend(uYe)});var Uxr,V$i=h(()=>{"use strict";Fr();t2t();Lxr();Uxr=re.object({path:re.string(),slug:re.string().optional(),announcement:kbe.optional()}).extend(uYe)});var _xr,U$i=h(()=>{"use strict";Fr();L$i();V$i();_xr=re.undiscriminatedUnion([Uxr,Vxr])});var Gxr,_$i=h(()=>{"use strict";Fr();Gxr=re.enum_(["typescript","javascript","python","java","go","ruby","csharp","php","swift","rust","nodets","nodejs","dotnet","curl","jvm","ts","js"])});var qxr,G$i=h(()=>{"use strict";Fr();qxr=re.object({source:re.string(),destination:re.string(),permanent:re.boolean().optional()})});var Wxr,q$i=h(()=>{"use strict";Fr();G$i();Wxr=re.undiscriminatedUnion([re.list(qxr),re.string(),re.list(re.string())])});var Qbe,u2t=h(()=>{"use strict";Fr();i2t();Bje();a1();c1();Qbe=re.object({displayName:re.property("display-name",re.string()),icon:re.string().optional(),slug:re.string().optional(),skipSlug:re.property("skip-slug",re.boolean().optional()),hidden:re.boolean().optional(),href:re.string().optional(),target:yU.optional(),changelog:ale.optional(),blog:ale.optional()}).extend(Rd).extend(Dd)});var Hxr,W$i=h(()=>{"use strict";Fr();Hxr=re.enum_(["default","minimal"])});var Kxr,H$i=h(()=>{"use strict";Fr();Kxr=re.enum_(["default","minimal"])});var Jxr,K$i=h(()=>{"use strict";Fr();Jxr=re.enum_(["default","toolbar"])});var Yxr,J$i=h(()=>{"use strict";Fr();Yxr=re.enum_(["default","toggle","tabs"])});var Xxr,Y$i=h(()=>{"use strict";Fr();Xxr=re.enum_(["default","minimal"])});var Zxr,X$i=h(()=>{"use strict";Fr();Zxr=re.enum_(["left","center"])});var lYe,$xr=h(()=>{"use strict";Fr();lYe=re.enum_(["default","bubble"])});var eCr,Z$i=h(()=>{"use strict";Fr();X$i();axr();$xr();eCr=re.object({style:lYe.optional(),alignment:Zxr.optional(),placement:sYe.optional()})});var tCr,$$i=h(()=>{"use strict";Fr();Z$i();$xr();tCr=re.undiscriminatedUnion([lYe,eCr])});var rCr,eeo=h(()=>{"use strict";Fr();TZi();W$i();H$i();K$i();J$i();Y$i();$$i();rCr=re.object({sidebar:Xxr.optional(),body:xvr.optional(),tabs:tCr.optional(),pageActions:re.property("page-actions",Jxr.optional()),footerNav:re.property("footer-nav",Hxr.optional()),languageSwitcher:re.property("language-switcher",Kxr.optional()),productSwitcher:re.property("product-switcher",Yxr.optional())})});var nCr,teo=h(()=>{"use strict";Fr();o2t();nCr=re.object({lang:Fbe,default:re.boolean().optional()})});var iCr,reo=h(()=>{"use strict";Fr();o2t();teo();iCr=re.undiscriminatedUnion([Fbe,nCr])});var KXa,JXa=h(()=>{"use strict";Fr();ZXi();nZi();iZi();pZi();t2t();wZi();RZi();NZi();QZi();_Zi();KZi();$Zi();e$i();t$i();r$i();a$i();p$i();y$i();gxr();b$i();v$i();S$i();c2t();z$i();Pje();U$i();_$i();q$i();lvr();u2t();Dje();eeo();reo();Mxr();KXa=re.object({instances:re.list(Qvr),title:re.string().optional(),libraries:re.record(aYe,hxr).optional(),analytics:ivr.optional(),announcement:kbe.optional(),roles:re.list(Oje).optional(),tabs:re.record(EU,Qbe).optional(),versions:re.list(cYe).optional(),products:re.list(_xr).optional(),landingPage:re.property("landing-page",bU.optional()),navigation:jbe.optional(),navbarLinks:re.property("navbar-links",re.list(wxr).optional()),footerLinks:re.property("footer-links",Xvr.optional()),pageActions:re.property("page-actions",Qxr.optional()),globalTheme:re.property("global-theme",re.string().optional()),experimental:Yvr.optional(),defaultLanguage:re.property("default-language",Gxr.optional()),languages:re.list(re.string()).optional(),translations:re.list(iCr).optional(),aiChat:re.property("ai-chat",e2t.optional()),aiSearch:re.property("ai-search",e2t.optional()),aiExamples:re.property("ai-examples",XIr.optional()),agents:WIr.optional(),metadata:Exr.optional(),redirects:Wxr.optional(),check:Tvr.optional(),logo:Axr.optional(),favicon:re.string().optional(),backgroundImage:re.property("background-image",Ivr.optional()),colors:Bvr.optional(),typography:Jvr.optional(),layout:cxr.optional(),settings:_vr.optional(),theme:rCr.optional(),integrations:Zvr.optional(),css:Dvr.optional(),js:nxr.optional(),header:re.string().optional(),footer:re.string().optional()})});var oCr,neo=h(()=>{"use strict";Fr();yX();XJe();Vvr();a1();c1();oCr=re.object({folder:re.string(),title:re.string().optional(),titleSource:re.property("title-source",tYe.optional()),slug:re.string().optional(),icon:re.string().optional(),hidden:re.boolean().optional(),skipSlug:re.property("skip-slug",re.boolean().optional()),collapsed:bX.optional(),collapsible:re.boolean().optional(),collapsedByDefault:re.property("collapsed-by-default",re.boolean().optional()),availability:s1.optional()}).extend(Rd).extend(Dd)});var sCr,ieo=h(()=>{"use strict";Fr();gxr();a1();c1();sCr=re.object({library:aYe,title:re.string().optional(),slug:re.string().optional()}).extend(Rd).extend(Dd)});var xX,YXa=h(()=>{"use strict";Fr();SL();EZi();SZi();OZi();neo();ieo();gvr();Pje();xX=re.undiscriminatedUnion([bU,re.lazyObject(()=>aCr),fvr,sCr,eYe,Cvr,vvr,oCr])});var XXa,ZXa=h(()=>{"use strict";Fr();c2t();Pje();u2t();Dje();XXa=re.object({tabs:re.record(EU,Qbe).optional(),landingPage:re.property("landing-page",bU.optional()),navigation:jbe})});var cCr,oeo=h(()=>{"use strict";Fr();a1();c1();cCr=re.object({displayName:re.property("display-name",re.string()),path:re.string(),slug:re.string().optional()}).extend(Rd).extend(Dd)});var $Xa,eZa=h(()=>{"use strict";Fr();YXi();oeo();$Xa=re.undiscriminatedUnion([cCr,GIr])});var aCr,tZa=h(()=>{"use strict";Fr();SL();yX();XJe();a1();c1();aCr=re.object({section:re.string(),path:re.string().optional(),contents:re.list(re.lazy(()=>xX)),collapsed:bX.optional(),collapsible:re.boolean().optional(),collapsedByDefault:re.property("collapsed-by-default",re.boolean().optional()),slug:re.string().optional(),icon:re.string().optional(),hidden:re.boolean().optional(),skipSlug:re.property("skip-slug",re.boolean().optional()),availability:s1.optional()}).extend(Rd).extend(Dd)});var rZa,nZa=h(()=>{"use strict";Fr();c2t();Pje();u2t();Dje();rZa=re.object({tabs:re.record(EU,Qbe).optional(),landingPage:re.property("landing-page",bU.optional()),navigation:jbe})});var seo=h(()=>{"use strict";YXi();ZXi();nZi();eZi();tZi();rZi();$Xi();iZi();pZi();t2t();EZi();IZi();vZi();GXa();xZi();qXa();WXa();HXa();YJe();fZi();yX();wZi();CZi();SZi();TZi();OZi();i2t();BZi();RZi();PZi();DZi();dZi();XJe();FZi();NZi();kZi();jZi();QZi();zZi();MZi();JXa();_Zi();KZi();$Zi();UZi();LZi();e$i();L$i();yZi();bZi();neo();ZZi();YZi();JZi();XZi();Gvr();qvr();t$i();W$i();oZi();VZi();d$i();sZi();aZi();c$i();GZi();qZi();r$i();cZi();V$i();a$i();s$i();i$i();n$i();o$i();$vr();o2t();H$i();p$i();f$i();y$i();h$i();g$i();gxr();A$i();ieo();gvr();b$i();v$i();x$i();w$i();C$i();S$i();Ixr();c2t();YXa();E$i();k$i();Q$i();z$i();K$i();Pje();XXi();m$i();mZi();ZJe();uZi();U$i();Lxr();ZXa();eZa();J$i();_$i();G$i();q$i();oeo();pvr();lvr();u$i();WZi();tZa();lZi();Y$i();F$i();N$i();j$i();gZi();AZi();l$i();D$i();P$i();T$i();B$i();u2t();Dje();X$i();axr();$$i();Z$i();$xr();O$i();Bje();eeo();Vvr();reo();teo();I$i();R$i();M$i();Mxr();hZi();nZa();HZi();a1();c1();a2t()});var aeo={};Z(aeo,{AbsoluteProductPath:()=>GIr,AgentsConfig:()=>WIr,AiChatConfig:()=>e2t,AiChatDatasource:()=>KIr,AiChatLocation:()=>JIr,AiChatModel:()=>YIr,AiChatWebsiteDatasource:()=>HIr,AiExamplesConfig:()=>XIr,AnalyticsConfig:()=>ivr,AnnouncementConfig:()=>kbe,ApiReferenceConfiguration:()=>fvr,ApiReferenceEndpointConfiguration:()=>dvr,ApiReferenceLayout:()=>mvr,ApiReferenceLayoutItem:()=>IX,ApiReferenceOperationConfiguration:()=>hvr,ApiReferencePackageConfiguration:()=>Avr,ApiReferencePackageConfigurationWithOptions:()=>bvr,ApiReferenceSectionConfiguration:()=>yvr,Audience:()=>AX,AudienceId:()=>r2t,Availability:()=>s1,BackgroundImageConfiguration:()=>Ivr,BackgroundImageThemedConfig:()=>Evr,BlogConfiguration:()=>vvr,BodyThemeConfig:()=>xvr,ChangelogConfiguration:()=>Cvr,ChangelogFolderRelativePath:()=>ale,ChangelogLayout:()=>wvr,CheckConfig:()=>Tvr,CheckRuleSeverity:()=>Z7,CheckRulesConfig:()=>Svr,CollapsedStringValue:()=>ovr,CollapsedValue:()=>bX,ColorConfig:()=>NI,ColorThemedConfig:()=>Ovr,ColorsConfiguration:()=>Bvr,ContentAlignment:()=>Pvr,CssConfig:()=>Dvr,CustomDomain:()=>Rvr,CustomPageAction:()=>kvr,DocsConfiguration:()=>KXa,DocsInstance:()=>Qvr,DocsSettingsConfig:()=>_vr,DocsTypographyConfig:()=>Jvr,EditThisPageConfig:()=>jvr,EditThisPageLaunch:()=>Fvr,ExperimentalConfig:()=>Yvr,ExternalProduct:()=>Vxr,FeatureFlag:()=>n2t,FeatureFlagConfiguration:()=>uvr,FolderConfiguration:()=>oCr,FontConfig:()=>iYe,FontConfigPath:()=>Hvr,FontConfigVariant:()=>Wvr,FontDisplay:()=>Kvr,FontStyle:()=>rYe,FontWeight:()=>nYe,FooterLinksConfig:()=>Xvr,FooterNavThemeConfig:()=>Hxr,FullStoryAnalyticsConfig:()=>ZIr,GitLibraryInputSchema:()=>lxr,GithubEditThisPageConfig:()=>Nvr,GoogleAnalytics4Config:()=>$Ir,GtmConfig:()=>evr,HeaderPosition:()=>ixr,HttpSnippetLanguage:()=>zvr,HttpSnippetsConfig:()=>Mvr,IntegrationsConfig:()=>Zvr,IntercomConfig:()=>tvr,InternalProduct:()=>Uxr,JsConfig:()=>nxr,JsConfigOptions:()=>s2t,JsFileConfig:()=>txr,JsFileConfigSettings:()=>exr,JsRemoteConfig:()=>rxr,JsScriptStrategy:()=>oYe,Language:()=>Fbe,LanguageSwitcherThemeConfig:()=>Kxr,LayoutConfig:()=>cxr,LibraryConfig:()=>uxr,LibraryConfiguration:()=>hxr,LibraryInputConfiguration:()=>fxr,LibraryLanguage:()=>dxr,LibraryName:()=>aYe,LibraryOutputConfiguration:()=>mxr,LibraryReferenceConfiguration:()=>sCr,LinkConfiguration:()=>eYe,LogoConfiguration:()=>Axr,MetadataConfig:()=>Exr,NavbarDropdownConfig:()=>vxr,NavbarGithubConfig:()=>Cxr,NavbarGithubConfigWithOptions:()=>xxr,NavbarLink:()=>wxr,NavbarLinkConfig:()=>vX,NavigationConfig:()=>jbe,NavigationItem:()=>xX,OgDynamicLogoColor:()=>yxr,PageActionOption:()=>Rxr,PageActionOptions:()=>jxr,PageActionsConfig:()=>Qxr,PageActionsThemeConfig:()=>Jxr,PageConfiguration:()=>bU,PageDescriptionSource:()=>qIr,PathLibraryInputSchema:()=>pxr,PlaygroundButtonSettings:()=>svr,PlaygroundSettings:()=>EX,PostHogConfig:()=>rvr,ProductConfig:()=>_xr,ProductConfigBase:()=>uYe,ProductFileConfig:()=>XXa,ProductPath:()=>$Xa,ProductSwitcherThemeConfig:()=>Yxr,ProgrammingLanguage:()=>Gxr,RedirectConfig:()=>qxr,RedirectsConfiguration:()=>Wxr,RelativeProductPath:()=>cCr,Role:()=>$Je,RoleId:()=>Oje,SearchSettingsConfig:()=>Lvr,SearchbarPlacement:()=>oxr,SectionConfiguration:()=>aCr,SegmentConfig:()=>nvr,SidebarThemeConfig:()=>Xxr,SkillEntry:()=>kxr,SkillsInstallCommand:()=>Fxr,SkillsPageActionConfig:()=>Nxr,SnippetLanguageConfiguration:()=>AU,SnippetsConfiguration:()=>cvr,SwitcherPlacement:()=>sxr,TabConfig:()=>Qbe,TabId:()=>EU,TabVariant:()=>Txr,TabbedNavigationConfig:()=>Pxr,TabbedNavigationItem:()=>Bxr,TabbedNavigationItemWithLayout:()=>Sxr,TabbedNavigationItemWithVariants:()=>Oxr,TabsAlignment:()=>Zxr,TabsPlacement:()=>sYe,TabsThemeConfig:()=>tCr,TabsThemeObjectConfig:()=>eCr,TabsThemeStyle:()=>lYe,Target:()=>yU,ThemeConfig:()=>rCr,TitleSource:()=>tYe,TranslationConfig:()=>iCr,TranslationConfigObject:()=>nCr,TwitterCardSetting:()=>bxr,UntabbedNavigationConfig:()=>Dxr,VersionAvailability:()=>zxr,VersionConfig:()=>cYe,VersionFileConfig:()=>rZa,VersionedSnippetLanguageConfiguration:()=>avr,WebSocketOneofDisplay:()=>Uvr,WithFeatureFlags:()=>Dd,WithPermissions:()=>Rd,WithViewers:()=>Nbe});var iZa=h(()=>{"use strict";seo()});var oZa=h(()=>{"use strict";iZa();seo()});var iQ={};Z(iQ,{AbsoluteProductPath:()=>GIr,AgentsConfig:()=>WIr,AiChatConfig:()=>e2t,AiChatDatasource:()=>KIr,AiChatLocation:()=>JIr,AiChatModel:()=>YIr,AiChatWebsiteDatasource:()=>HIr,AiExamplesConfig:()=>XIr,AnalyticsConfig:()=>ivr,AnnouncementConfig:()=>kbe,ApiReferenceConfiguration:()=>fvr,ApiReferenceEndpointConfiguration:()=>dvr,ApiReferenceLayout:()=>mvr,ApiReferenceLayoutItem:()=>IX,ApiReferenceOperationConfiguration:()=>hvr,ApiReferencePackageConfiguration:()=>Avr,ApiReferencePackageConfigurationWithOptions:()=>bvr,ApiReferenceSectionConfiguration:()=>yvr,Audience:()=>AX,AudienceId:()=>r2t,Availability:()=>s1,BackgroundImageConfiguration:()=>Ivr,BackgroundImageThemedConfig:()=>Evr,BlogConfiguration:()=>vvr,BodyThemeConfig:()=>xvr,ChangelogConfiguration:()=>Cvr,ChangelogFolderRelativePath:()=>ale,ChangelogLayout:()=>wvr,CheckConfig:()=>Tvr,CheckRuleSeverity:()=>Z7,CheckRulesConfig:()=>Svr,CollapsedStringValue:()=>ovr,CollapsedValue:()=>bX,ColorConfig:()=>NI,ColorThemedConfig:()=>Ovr,ColorsConfiguration:()=>Bvr,ContentAlignment:()=>Pvr,CssConfig:()=>Dvr,CustomDomain:()=>Rvr,CustomPageAction:()=>kvr,DocsConfiguration:()=>KXa,DocsInstance:()=>Qvr,DocsSettingsConfig:()=>_vr,DocsTypographyConfig:()=>Jvr,EditThisPageConfig:()=>jvr,EditThisPageLaunch:()=>Fvr,ExperimentalConfig:()=>Yvr,ExternalProduct:()=>Vxr,FeatureFlag:()=>n2t,FeatureFlagConfiguration:()=>uvr,FolderConfiguration:()=>oCr,FontConfig:()=>iYe,FontConfigPath:()=>Hvr,FontConfigVariant:()=>Wvr,FontDisplay:()=>Kvr,FontStyle:()=>rYe,FontWeight:()=>nYe,FooterLinksConfig:()=>Xvr,FooterNavThemeConfig:()=>Hxr,FullStoryAnalyticsConfig:()=>ZIr,GitLibraryInputSchema:()=>lxr,GithubEditThisPageConfig:()=>Nvr,GoogleAnalytics4Config:()=>$Ir,GtmConfig:()=>evr,HeaderPosition:()=>ixr,HttpSnippetLanguage:()=>zvr,HttpSnippetsConfig:()=>Mvr,IntegrationsConfig:()=>Zvr,IntercomConfig:()=>tvr,InternalProduct:()=>Uxr,JsConfig:()=>nxr,JsConfigOptions:()=>s2t,JsFileConfig:()=>txr,JsFileConfigSettings:()=>exr,JsRemoteConfig:()=>rxr,JsScriptStrategy:()=>oYe,Language:()=>Fbe,LanguageSwitcherThemeConfig:()=>Kxr,LayoutConfig:()=>cxr,LibraryConfig:()=>uxr,LibraryConfiguration:()=>hxr,LibraryInputConfiguration:()=>fxr,LibraryLanguage:()=>dxr,LibraryName:()=>aYe,LibraryOutputConfiguration:()=>mxr,LibraryReferenceConfiguration:()=>sCr,LinkConfiguration:()=>eYe,LogoConfiguration:()=>Axr,MetadataConfig:()=>Exr,NavbarDropdownConfig:()=>vxr,NavbarGithubConfig:()=>Cxr,NavbarGithubConfigWithOptions:()=>xxr,NavbarLink:()=>wxr,NavbarLinkConfig:()=>vX,NavigationConfig:()=>jbe,NavigationItem:()=>xX,OgDynamicLogoColor:()=>yxr,PageActionOption:()=>Rxr,PageActionOptions:()=>jxr,PageActionsConfig:()=>Qxr,PageActionsThemeConfig:()=>Jxr,PageConfiguration:()=>bU,PageDescriptionSource:()=>qIr,PathLibraryInputSchema:()=>pxr,PlaygroundButtonSettings:()=>svr,PlaygroundSettings:()=>EX,PostHogConfig:()=>rvr,ProductConfig:()=>_xr,ProductConfigBase:()=>uYe,ProductFileConfig:()=>XXa,ProductPath:()=>$Xa,ProductSwitcherThemeConfig:()=>Yxr,ProgrammingLanguage:()=>Gxr,RedirectConfig:()=>qxr,RedirectsConfiguration:()=>Wxr,RelativeProductPath:()=>cCr,Role:()=>$Je,RoleId:()=>Oje,SearchSettingsConfig:()=>Lvr,SearchbarPlacement:()=>oxr,SectionConfiguration:()=>aCr,SegmentConfig:()=>nvr,SidebarThemeConfig:()=>Xxr,SkillEntry:()=>kxr,SkillsInstallCommand:()=>Fxr,SkillsPageActionConfig:()=>Nxr,SnippetLanguageConfiguration:()=>AU,SnippetsConfiguration:()=>cvr,SwitcherPlacement:()=>sxr,TabConfig:()=>Qbe,TabId:()=>EU,TabVariant:()=>Txr,TabbedNavigationConfig:()=>Pxr,TabbedNavigationItem:()=>Bxr,TabbedNavigationItemWithLayout:()=>Sxr,TabbedNavigationItemWithVariants:()=>Oxr,TabsAlignment:()=>Zxr,TabsPlacement:()=>sYe,TabsThemeConfig:()=>tCr,TabsThemeObjectConfig:()=>eCr,TabsThemeStyle:()=>lYe,Target:()=>yU,ThemeConfig:()=>rCr,TitleSource:()=>tYe,TranslationConfig:()=>iCr,TranslationConfigObject:()=>nCr,TwitterCardSetting:()=>bxr,UntabbedNavigationConfig:()=>Dxr,VersionAvailability:()=>zxr,VersionConfig:()=>cYe,VersionFileConfig:()=>rZa,VersionedSnippetLanguageConfiguration:()=>avr,WebSocketOneofDisplay:()=>Uvr,WithFeatureFlags:()=>Dd,WithPermissions:()=>Rd,WithViewers:()=>Nbe,docs:()=>aeo});var SL=h(()=>{"use strict";oZa()});var sZa=h(()=>{"use strict";PXi();OYa();RYa();SL()});var ceo={};Z(ceo,{AiChatLocation:()=>HYi,AiChatModel:()=>KYi,ApiReferenceLayout:()=>JYi,Availability:()=>YYi,BodyThemeConfig:()=>XYi,ChangelogLayout:()=>ZYi,CheckRuleSeverity:()=>$Yi,CollapsedStringValue:()=>eXi,ContentAlignment:()=>tXi,EditThisPageLaunch:()=>rXi,FernDocsConfig:()=>BXi,FernDocsConfigError:()=>HFt,FernDocsConfigTimeoutError:()=>KFt,FontDisplay:()=>nXi,FontStyle:()=>iXi,FooterNavThemeConfig:()=>oXi,HeaderPosition:()=>sXi,HttpSnippetLanguage:()=>aXi,JsScriptStrategy:()=>cXi,LanguageSwitcherThemeConfig:()=>uXi,LibraryLanguage:()=>lXi,OgDynamicLogoColor:()=>pXi,PageActionOption:()=>fXi,PageActionsThemeConfig:()=>dXi,PageDescriptionSource:()=>mXi,ProductSwitcherThemeConfig:()=>hXi,ProgrammingLanguage:()=>gXi,SearchbarPlacement:()=>AXi,Serializer:()=>iQ,SidebarThemeConfig:()=>yXi,SwitcherPlacement:()=>bXi,TabsAlignment:()=>EXi,TabsPlacement:()=>IXi,TabsThemeStyle:()=>vXi,Target:()=>xXi,TitleSource:()=>CXi,TwitterCardSetting:()=>wXi,VersionAvailability:()=>SXi,WebSocketOneofDisplay:()=>TXi,docs:()=>zIr,logging:()=>kXi,serialization:()=>iQ});var aZa=h(()=>{"use strict";sZa();PXi();SL()});function LRf(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}var cZa,uZa,VRf,lZa=h(()=>{"use strict";cZa={logo:"global",favicon:"global",backgroundImage:"global",colors:"global",typography:"global",layout:"global",settings:"global",theme:"global",integrations:"global",css:"global",js:"global",header:"global",footer:"global",navbarLinks:"global",footerLinks:"global",aiSearch:"global",announcement:"global",metadata:"global"},uZa=Object.keys(cZa);VRf=new Set(uZa.map(LRf))});var Hc={};Z(Hc,{DEFAULT_BLOG_TITLE:()=>xRf,DEFAULT_CHANGELOG_TITLE:()=>vRf,DocsYmlSchemas:()=>WYi,RawSchemas:()=>ceo,THEME_ELIGIBLE_FIELDS:()=>uZa,THEME_ELIGIBLE_YAML_KEYS:()=>VRf,THEME_FIELD_POLICIES:()=>cZa,getChangelogFolderFromNavigationItem:()=>CRf,getChangelogFolderFromTabConfig:()=>wRf});var pZa=h(()=>{"use strict";wHa();SHa();THa();aZa();lZa()});var fZa=h(()=>{"use strict"});async function CX({absolutePathToFernignore:e}){let t=(await(0,dZa.readFile)(e)).toString();return mZa(t)}function mZa(e){return[i1,...e.trim().split(_Rf).map(t=>{let r=t.indexOf("#");return r!==-1?t.slice(0,r).trim():t.trim()}).filter(t=>t.length>0)]}var dZa,_Rf,hZa=h(()=>{"use strict";dZa=require("fs/promises");V0r();_Rf=/\r?\n/});function AZa({generatorInvocation:e}){return e.language==="go"?GRf(e):e.outputMode._visit({downloadFiles:()=>{},github:t=>t.publishInfo?._visit({maven:r=>r.coordinate,npm:r=>r.packageName,pypi:r=>r.packageName,postman:()=>{},rubygems:r=>r.packageName,nuget:r=>r.packageName,crates:r=>r.packageName,_other:()=>{}}),githubV2:t=>t.publishInfo?._visit({maven:r=>r.coordinate,npm:r=>r.packageName,pypi:r=>r.packageName,postman:()=>{},rubygems:r=>r.packageName,nuget:r=>r.packageName,crates:r=>r.packageName,_other:()=>{}}),publish:()=>{},publishV2:()=>{},_other:()=>{}})}function GRf(e){return e.outputMode._visit({downloadFiles:()=>{},github:t=>`github.com/${t.owner}/${t.repo}`,githubV2:t=>`github.com/${t.owner}/${t.repo}`,publish:()=>{},publishV2:()=>{},_other:()=>{}})}var gZa,yZa=h(()=>{"use strict";gZa={TYPESCRIPT:"typescript",JAVA:"java",PYTHON:"python",GO:"go",RUBY:"ruby",CSHARP:"csharp",SWIFT:"swift",PHP:"php",RUST:"rust"}});function bZa(e){return typeof e!="string"&&"proto"in e}var EZa=h(()=>{"use strict"});function IZa({rootAutomation:e,groupAutomation:t,generatorAutomation:r}){return{generate:r?.generate??t?.generate??e?.generate??uCr.generate,upgrade:r?.upgrade??t?.upgrade??e?.upgrade??uCr.upgrade,preview:r?.preview??t?.preview??e?.preview??uCr.preview,verify:r?.verify??t?.verify??e?.verify??uCr.verify}}var uCr,vZa=h(()=>{"use strict";uCr={generate:!0,upgrade:!0,preview:!0,verify:!0}});var xZa=h(()=>{"use strict"});var CZa=h(()=>{"use strict"});var wZa,SZa=h(()=>{"use strict";wZa={Openai:"openai",Anthropic:"anthropic",AwsBedrock:"aws-bedrock"}});var ueo=h(()=>{"use strict";xZa();CZa();SZa()});var leo={};Z(leo,{ModelProvider:()=>wZa});var TZa=h(()=>{"use strict";ueo()});var OZa=h(()=>{"use strict"});var peo=h(()=>{"use strict";OZa()});var BZa={};var PZa=h(()=>{"use strict";peo()});var DZa=h(()=>{"use strict"});var RZa=h(()=>{"use strict"});var kZa=h(()=>{"use strict"});var FZa=h(()=>{"use strict"});var NZa=h(()=>{"use strict"});var jZa=h(()=>{"use strict"});var QZa=h(()=>{"use strict"});var zZa=h(()=>{"use strict"});var MZa=h(()=>{"use strict"});var LZa=h(()=>{"use strict"});var VZa=h(()=>{"use strict"});var UZa=h(()=>{"use strict"});var _Za=h(()=>{"use strict"});var GZa=h(()=>{"use strict"});var qZa=h(()=>{"use strict"});var WZa=h(()=>{"use strict"});var HZa=h(()=>{"use strict"});var KZa=h(()=>{"use strict"});var JZa,YZa=h(()=>{"use strict";JZa={ClientCredentials:"client-credentials",AuthorizationCode:"authorization-code",DeviceCode:"device-code"}});var XZa=h(()=>{"use strict"});var ZZa=h(()=>{"use strict"});var $Za=h(()=>{"use strict"});var e$a=h(()=>{"use strict"});var t$a=h(()=>{"use strict"});var r$a=h(()=>{"use strict"});var n$a=h(()=>{"use strict"});var i$a=h(()=>{"use strict"});var o$a=h(()=>{"use strict"});var s$a=h(()=>{"use strict"});var feo=h(()=>{"use strict";DZa();RZa();kZa();FZa();NZa();jZa();QZa();zZa();MZa();LZa();VZa();UZa();_Za();GZa();qZa();WZa();HZa();KZa();YZa();XZa();ZZa();$Za();e$a();t$a();r$a();n$a();i$a();o$a();s$a()});var deo={};Z(deo,{OAuthFlowTypeSchema:()=>JZa});var a$a=h(()=>{"use strict";feo()});var c$a=h(()=>{"use strict"});var u$a,l$a=h(()=>{"use strict";u$a={InDevelopment:"in-development",PreRelease:"pre-release",Deprecated:"deprecated",GenerallyAvailable:"generally-available"}});var p$a=h(()=>{"use strict"});var meo=h(()=>{"use strict";c$a();l$a();p$a()});var heo={};Z(heo,{AvailabilityStatusSchema:()=>u$a});var f$a=h(()=>{"use strict";meo()});var d$a=h(()=>{"use strict"});var m$a=h(()=>{"use strict"});var h$a=h(()=>{"use strict"});var g$a=h(()=>{"use strict"});var geo=h(()=>{"use strict";d$a();m$a();h$a();g$a()});var A$a={};var y$a=h(()=>{"use strict";geo()});var b$a=h(()=>{"use strict"});var E$a=h(()=>{"use strict"});var Aeo=h(()=>{"use strict";b$a();E$a()});var I$a={};var v$a=h(()=>{"use strict";Aeo()});var x$a=h(()=>{"use strict"});var C$a=h(()=>{"use strict"});var w$a=h(()=>{"use strict"});var S$a=h(()=>{"use strict"});var T$a=h(()=>{"use strict"});var yeo=h(()=>{"use strict";x$a();C$a();w$a();S$a();T$a()});var O$a={};var B$a=h(()=>{"use strict";yeo()});var P$a=h(()=>{"use strict"});var beo=h(()=>{"use strict";P$a()});var D$a={};var R$a=h(()=>{"use strict";beo()});var k$a=h(()=>{"use strict"});var F$a=h(()=>{"use strict"});var N$a=h(()=>{"use strict"});var Eeo=h(()=>{"use strict";k$a();F$a();N$a()});var j$a={};var Q$a=h(()=>{"use strict";Eeo()});var z$a=h(()=>{"use strict"});var M$a=h(()=>{"use strict"});var Ieo=h(()=>{"use strict";z$a();M$a()});var L$a={};var V$a=h(()=>{"use strict";Ieo()});var U$a=h(()=>{"use strict"});var _$a=h(()=>{"use strict"});var G$a=h(()=>{"use strict"});var q$a=h(()=>{"use strict"});var W$a=h(()=>{"use strict"});var veo=h(()=>{"use strict";U$a();_$a();G$a();q$a();W$a()});var H$a={};var K$a=h(()=>{"use strict";veo()});var J$a=h(()=>{"use strict";a$a();feo();f$a();meo();y$a();geo();v$a();Aeo();B$a();yeo();R$a();beo();Q$a();Eeo();V$a();Ieo();K$a();veo()});var xeo={};Z(xeo,{AvailabilityStatusSchema:()=>u$a,OAuthFlowTypeSchema:()=>JZa,auth:()=>deo,availability:()=>heo,commons:()=>A$a,encoding:()=>I$a,environments:()=>O$a,file:()=>D$a,service:()=>j$a,types:()=>L$a,validation:()=>H$a});var Y$a=h(()=>{"use strict";J$a()});var X$a=h(()=>{"use strict"});var Z$a=h(()=>{"use strict"});var $$a=h(()=>{"use strict"});var eec=h(()=>{"use strict"});var tec=h(()=>{"use strict"});var rec=h(()=>{"use strict"});var nec=h(()=>{"use strict"});var iec=h(()=>{"use strict"});var oec=h(()=>{"use strict"});var sec=h(()=>{"use strict"});var aec=h(()=>{"use strict"});var cec=h(()=>{"use strict"});var uec=h(()=>{"use strict"});var lec,pec=h(()=>{"use strict";lec={Literals:"literals",Enums:"enums",EnumsCoerceableToLiterals:"enums-coerceable-to-literals"}});var fec=h(()=>{"use strict"});var dec,mec=h(()=>{"use strict";dec={Int32:"int32",Int64:"int64",Uint32:"uint32",Uint64:"uint64"}});var hec,gec=h(()=>{"use strict";hec={Minimal:"minimal",Comprehensive:"comprehensive"}});var Aec,yec=h(()=>{"use strict";Aec={Form:"form",Json:"json"}});var bec=h(()=>{"use strict"});var Eec=h(()=>{"use strict"});var Iec=h(()=>{"use strict"});var vec=h(()=>{"use strict"});var xec=h(()=>{"use strict"});var Cec=h(()=>{"use strict"});var wec,Sec=h(()=>{"use strict";wec={Java:"java",Python:"python",Go:"go",Ruby:"ruby",Csharp:"csharp",Typescript:"typescript",Php:"php",Rust:"rust",Swift:"swift"}});var Tec,Oec=h(()=>{"use strict";Tec={V1:"v1",V2:"v2"}});var Bec,Pec=h(()=>{"use strict";Bec={EnvironmentPerServer:"environment-per-server",UrlsPerEnvironment:"urls-per-environment"}});var Dec=h(()=>{"use strict"});var Rec=h(()=>{"use strict"});var kec=h(()=>{"use strict"});var Fec=h(()=>{"use strict"});var Nec=h(()=>{"use strict"});var jec=h(()=>{"use strict"});var Qec=h(()=>{"use strict"});var zec=h(()=>{"use strict"});var Mec=h(()=>{"use strict"});var Lec,Vec=h(()=>{"use strict";Lec={UrlOrder:"url-order",SpecOrder:"spec-order"}});var Uec=h(()=>{"use strict"});var _ec=h(()=>{"use strict"});var Gec=h(()=>{"use strict"});var qec=h(()=>{"use strict"});var Wec=h(()=>{"use strict"});var Hec=h(()=>{"use strict"});var Kec=h(()=>{"use strict"});var Jec,Yec=h(()=>{"use strict";Jec={Always:"always",Never:"never"}});var Xec=h(()=>{"use strict"});var Zec=h(()=>{"use strict"});var $ec=h(()=>{"use strict"});var etc=h(()=>{"use strict"});var ttc=h(()=>{"use strict"});var rtc=h(()=>{"use strict"});var ntc,itc=h(()=>{"use strict";ntc={V1:"v1"}});var otc=h(()=>{"use strict"});var stc=h(()=>{"use strict"});var Ceo=h(()=>{"use strict";X$a();Z$a();$$a();eec();tec();rec();nec();iec();oec();sec();aec();cec();uec();pec();fec();mec();gec();yec();bec();Eec();Iec();vec();xec();Cec();Sec();Oec();Pec();Dec();Rec();kec();Fec();Nec();jec();Qec();zec();Mec();Vec();Uec();_ec();Gec();qec();Wec();Hec();Kec();Yec();Xec();Zec();$ec();etc();ttc();rtc();itc();otc();stc()});var weo={};Z(weo,{CoerceConstsTo:()=>lec,DefaultIntegerFormat:()=>dec,ExampleStyle:()=>hec,FormParameterEncoding:()=>Aec,Language:()=>wec,MessageNamingSettingsSchema:()=>Tec,MultiServerStrategy:()=>Bec,PathParameterOrder:()=>Lec,RemoveDiscriminantsFromSchemas:()=>Jec,UnionSettingsSchema:()=>ntc});var atc=h(()=>{"use strict";Ceo()});var ctc=h(()=>{"use strict"});var utc=h(()=>{"use strict"});var ltc=h(()=>{"use strict"});var ptc=h(()=>{"use strict"});var ftc=h(()=>{"use strict"});var dtc=h(()=>{"use strict"});var mtc=h(()=>{"use strict"});var htc=h(()=>{"use strict"});var gtc=h(()=>{"use strict"});var Atc=h(()=>{"use strict"});var ytc,btc=h(()=>{"use strict";ytc={Commit:"commit",Release:"release"}});var Etc=h(()=>{"use strict"});var Itc=h(()=>{"use strict"});var vtc=h(()=>{"use strict"});var xtc=h(()=>{"use strict"});var Ctc,wtc=h(()=>{"use strict";Ctc={PullRequest:"pull-request",Push:"push",CommitAndRelease:"commit-and-release"}});var Stc=h(()=>{"use strict"});var Ttc=h(()=>{"use strict"});var Otc=h(()=>{"use strict"});var Btc=h(()=>{"use strict"});var Ptc=h(()=>{"use strict"});var Dtc=h(()=>{"use strict"});var Rtc=h(()=>{"use strict"});var ktc=h(()=>{"use strict"});var Ftc=h(()=>{"use strict"});var Ntc=h(()=>{"use strict"});var Seo=h(()=>{"use strict";ctc();utc();ltc();ptc();ftc();dtc();mtc();htc();gtc();Atc();btc();Etc();Itc();vtc();xtc();wtc();Stc();Ttc();Otc();Btc();Ptc();Dtc();Rtc();ktc();Ftc();Ntc()});var Teo={};Z(Teo,{GithubCommitAndReleaseMode:()=>ytc,GithubSelfhostedMode:()=>Ctc});var jtc=h(()=>{"use strict";Seo()});var Qtc=h(()=>{"use strict"});var ztc=h(()=>{"use strict"});var Mtc,Ltc=h(()=>{"use strict";Mtc={Mit:"MIT",Apache:"Apache-2.0"}});var Oeo=h(()=>{"use strict";Qtc();ztc();Ltc()});var Beo={};Z(Beo,{GithubLicenseType:()=>Mtc});var Vtc=h(()=>{"use strict";Oeo()});var Utc=h(()=>{"use strict"});var Peo=h(()=>{"use strict";Utc()});var _tc={};var Gtc=h(()=>{"use strict";Peo()});var qtc=h(()=>{"use strict"});var Wtc=h(()=>{"use strict"});var Deo=h(()=>{"use strict";qtc();Wtc()});var Htc={};var Ktc=h(()=>{"use strict";Deo()});var Jtc=h(()=>{"use strict";TZa();ueo();PZa();peo();Y$a();atc();Ceo();jtc();Seo();Vtc();Oeo();Gtc();Peo();Ktc();Deo()});var Ytc=h(()=>{"use strict";Jtc()});var cle,Xtc,Reo,keo,Gqb,Ztc=h(()=>{"use strict";cle={Debug:"debug",Info:"info",Warn:"warn",Error:"error"},Xtc={[cle.Debug]:1,[cle.Info]:2,[cle.Warn]:3,[cle.Error]:4},Reo=class{debug(t,...r){console.debug(t,...r)}info(t,...r){console.info(t,...r)}warn(t,...r){console.warn(t,...r)}error(t,...r){console.error(t,...r)}},keo=class{level;logger;silent;constructor(t){this.level=Xtc[t.level],this.logger=t.logger,this.silent=t.silent}shouldLog(t){return!this.silent&&this.level<=Xtc[t]}isDebug(){return this.shouldLog(cle.Debug)}debug(t,...r){this.isDebug()&&this.logger.debug(t,...r)}isInfo(){return this.shouldLog(cle.Info)}info(t,...r){this.isInfo()&&this.logger.info(t,...r)}isWarn(){return this.shouldLog(cle.Warn)}warn(t,...r){this.isWarn()&&this.logger.warn(t,...r)}isError(){return this.shouldLog(cle.Error)}error(t,...r){this.isError()&&this.logger.error(t,...r)}},Gqb=new keo({level:cle.Info,logger:new Reo,silent:!0})});var $tc=h(()=>{"use strict"});var erc=h(()=>{"use strict";Ztc()});var trc=h(()=>{"use strict"});var qu,Fw=h(()=>{"use strict";qu={BIGINT:"bigint",DATE:"date",ENUM:"enum",LIST:"list",STRING_LITERAL:"stringLiteral",BOOLEAN_LITERAL:"booleanLiteral",OBJECT:"object",ANY:"any",BOOLEAN:"boolean",NUMBER:"number",STRING:"string",UNKNOWN:"unknown",NEVER:"never",RECORD:"record",SET:"set",UNION:"union",UNDISCRIMINATED_UNION:"undiscriminatedUnion",NULLABLE:"nullable",OPTIONAL:"optional",OPTIONAL_NULLABLE:"optionalNullable"}});function um(e,t){return`Expected ${t}. Received ${WRf(e)}.`}function WRf(e){if(Array.isArray(e))return"list";if(e===null)return"null";if(e instanceof BigInt)return"BigInt";switch(typeof e){case"string":return`"${e}"`;case"bigint":case"number":case"boolean":case"undefined":return`${e}`}return typeof e}var vF=h(()=>{"use strict"});function u1(e){return{...e,json:rrc(e.json),parse:rrc(e.parse)}}function rrc(e){return(t,r)=>{let n=e(t,r),{skipValidation:i=!1}=r??{};return!n.ok&&i?(console.warn(["Failed to validate.",...n.errors.map(o=>" - "+(o.path.length>0?`${o.path.join(".")}: ${o.message}`:o.message))].join(`
173
+ `)),{ok:!0,value:t}):n}}var hX=h(()=>{"use strict"});function MIr(e){return e.path.length===0?e.message:`${e.path.join(" -> ")}: ${e.message}`}var FXi=h(()=>{"use strict"});var HJe,NXi=h(()=>{"use strict";FXi();HJe=class extends Error{errors;constructor(t){super(t.map(MIr).join("; ")),this.errors=t,Object.setPrototypeOf(this,new.target.prototype),this.name=this.constructor.name}}});var KJe,jXi=h(()=>{"use strict";FXi();KJe=class extends Error{errors;constructor(t){super(t.map(MIr).join("; ")),this.errors=t,Object.setPrototypeOf(this,new.target.prototype),this.name=this.constructor.name}}});function cm(e){return{nullable:()=>PRf(e),optional:()=>QXi(e),optionalNullable:()=>DRf(e),transform:t=>zXi(e,t),parseOrThrow:(t,r)=>{let n=e.parse(t,r);if(n.ok)return n.value;throw new KJe(n.errors)},jsonOrThrow:(t,r)=>{let n=e.json(t,r);if(n.ok)return n.value;throw new HJe(n.errors)}}}function PRf(e){let t={parse:(r,n)=>r==null?{ok:!0,value:null}:e.parse(r,n),json:(r,n)=>r==null?{ok:!0,value:null}:e.json(r,n),getType:()=>su.NULLABLE};return{...t,...cm(t)}}function QXi(e){let t={parse:(r,n)=>r==null?{ok:!0,value:void 0}:e.parse(r,n),json:(r,n)=>n?.omitUndefined&&r===void 0?{ok:!0,value:void 0}:r==null?{ok:!0,value:null}:e.json(r,n),getType:()=>su.OPTIONAL};return{...t,...cm(t)}}function DRf(e){let t={parse:(r,n)=>r===void 0?{ok:!0,value:void 0}:r===null?{ok:!0,value:null}:e.parse(r,n),json:(r,n)=>r===void 0?{ok:!0,value:void 0}:r===null?{ok:!0,value:null}:e.json(r,n),getType:()=>su.OPTIONAL_NULLABLE};return{...t,...cm(t)}}function zXi(e,t){let r={parse:(n,i)=>{let o=e.parse(n,i);return o.ok?{ok:!0,value:t.transform(o.value)}:o},json:(n,i)=>{let o=t.untransform(n);return e.json(o,i)},getType:()=>e.getType()};return{...r,...cm(r)}}var QYa=h(()=>{"use strict";Rw();NXi();jXi()});var nQ=h(()=>{"use strict";QYa();NXi();jXi()});function zYa(){let e={parse:(t,{breadcrumbsPrefix:r=[]}={})=>typeof t=="bigint"?{ok:!0,value:t}:typeof t=="number"?{ok:!0,value:BigInt(t)}:{ok:!1,errors:[{path:r,message:am(t,"bigint | number")}]},json:(t,{breadcrumbsPrefix:r=[]}={})=>typeof t!="bigint"?{ok:!1,errors:[{path:r,message:am(t,"bigint")}]}:{ok:!0,value:t},getType:()=>su.BIGINT};return{...kw(e),...cm(e)}}var MYa=h(()=>{"use strict";Rw();IF();hX();nQ()});var LYa=h(()=>{"use strict";MYa()});function VYa(){let e={parse:(t,{breadcrumbsPrefix:r=[]}={})=>typeof t!="string"?{ok:!1,errors:[{path:r,message:am(t,"string")}]}:RRf.test(t)?{ok:!0,value:new Date(t)}:{ok:!1,errors:[{path:r,message:am(t,"ISO 8601 date string")}]},json:(t,{breadcrumbsPrefix:r=[]}={})=>t instanceof Date?{ok:!0,value:t.toISOString()}:{ok:!1,errors:[{path:r,message:am(t,"Date object")}]},getType:()=>su.DATE};return{...kw(e),...cm(e)}}var RRf,UYa=h(()=>{"use strict";Rw();IF();hX();nQ();RRf=/^([+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([.,]\d+(?!:))?)?(\17[0-5]\d([.,]\d+)?)?([zZ]|([+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/});var _Ya=h(()=>{"use strict";UYa()});function o1(e,t){return()=>{let r={parse:t,json:t,getType:()=>e};return{...kw(r),...cm(r)}}}var gX=h(()=>{"use strict";nQ();hX()});function LIr(e){let t=new Set(e);return o1(su.ENUM,(n,{allowUnrecognizedEnumValues:i,breadcrumbsPrefix:o=[]}={})=>typeof n!="string"?{ok:!1,errors:[{path:o,message:am(n,"string")}]}:!t.has(n)&&!i?{ok:!1,errors:[{path:o,message:am(n,"enum")}]}:{ok:!0,value:n})()}var GYa=h(()=>{"use strict";Rw();gX();IF()});var MXi=h(()=>{"use strict";GYa()});function qYa(e){let t=LXi(e);return{...t,...cm(t)}}function LXi(e){return{parse:(t,r)=>JJe(e).parse(t,r),json:(t,r)=>JJe(e).json(t,r),getType:()=>JJe(e).getType()}}function JJe(e){let t=e;return t.__zurg_memoized==null&&(t.__zurg_memoized=e()),t.__zurg_memoized}var VXi=h(()=>{"use strict";nQ()});function UXi(e){return Object.entries(e)}var WYa=h(()=>{"use strict"});function YFt(e,t){let r=new Set(t);return Object.entries(e).reduce((n,[i,o])=>(r.has(i)&&(n[i]=o),n),{})}var _Xi=h(()=>{"use strict"});function ole(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return t===null?!0:Object.getPrototypeOf(t)===null}var XFt=h(()=>{"use strict"});function ZFt(e){return Object.keys(e)}var GXi=h(()=>{"use strict"});function HYa(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}var KYa=h(()=>{"use strict"});function X7(e){return{withParsedProperties:t=>qXi(e,t)}}function qXi(e,t){let r={parse:(n,i)=>{let o=e.parse(n,i);if(!o.ok)return o;let s={};for(let a in t)if(kRf.call(t,a)){let c=t[a];s[a]=typeof c=="function"?c(o.value):c}return{ok:!0,value:{...o.value,...s}}},json:(n,i)=>{if(!ole(n))return{ok:!1,errors:[{path:i?.breadcrumbsPrefix??[],message:am(n,"object")}]};let o=new Set(Object.keys(t)),s=YFt(n,Object.keys(n).filter(a=>!o.has(a)));return e.json(s,i)},getType:()=>e.getType()};return{...r,...cm(r),...X7(r)}}var kRf,JYa=h(()=>{"use strict";_Xi();IF();XFt();nQ();kRf=Object.prototype.hasOwnProperty});var $Ft=h(()=>{"use strict";JYa()});function YYa(e,t){return{rawKey:e,valueSchema:t,isProperty:!0}}function sle(e){return e.isProperty}var WXi=h(()=>{"use strict"});function VIr(e){let t;function r(){if(t==null){t={};for(let[d,f]of UXi(e)){let m=sle(f)?f.rawKey:d,g=sle(f)?f.valueSchema:f;t[m]={rawKey:m,parsedKey:d,valueSchema:g}}}return t}let n,i,o,s;function a(){if(n==null){n=[],i=[];for(let[d,f]of UXi(e)){let m=sle(f)?f.rawKey:d,g=sle(f)?f.valueSchema:f;NRf(g)&&(n.push(m),i.push(d))}o=new Set(n),s=new Set(i)}return n}function c(){return i==null&&a(),i}function u(){return o==null&&a(),o}function l(){return s==null&&a(),s}let p={_getRawProperties:()=>Object.entries(e).map(([d,f])=>sle(f)?f.rawKey:d),_getParsedProperties:()=>ZFt(e),parse:(d,f)=>{let m=f?.breadcrumbsPrefix??[];return XYa({value:d,requiredKeys:a(),requiredKeysSet:u(),getProperty:g=>{let A=r()[g];if(A!=null)return{transformedKey:A.parsedKey,transform:y=>{let E=[...m,g];return A.valueSchema.parse(y,{...f,breadcrumbsPrefix:E})}}},unrecognizedObjectKeys:f?.unrecognizedObjectKeys,skipValidation:f?.skipValidation,breadcrumbsPrefix:m,omitUndefined:f?.omitUndefined})},json:(d,f)=>{let m=f?.breadcrumbsPrefix??[];return XYa({value:d,requiredKeys:c(),requiredKeysSet:l(),getProperty:g=>{let A=e[g];if(A!=null)return sle(A)?{transformedKey:A.rawKey,transform:y=>{let E=[...m,g];return A.valueSchema.json(y,{...f,breadcrumbsPrefix:E})}}:{transformedKey:g,transform:y=>{let E=[...m,g];return A.json(y,{...f,breadcrumbsPrefix:E})}}},unrecognizedObjectKeys:f?.unrecognizedObjectKeys,skipValidation:f?.skipValidation,breadcrumbsPrefix:m,omitUndefined:f?.omitUndefined})},getType:()=>su.OBJECT};return{...kw(p),...cm(p),...X7(p),...Tje(p)}}function XYa({value:e,requiredKeys:t,requiredKeysSet:r,getProperty:n,unrecognizedObjectKeys:i="fail",skipValidation:o=!1,breadcrumbsPrefix:s=[]}){if(!ole(e))return{ok:!1,errors:[{path:s,message:am(e,"object")}]};let a=t.length,c=[],u={};for(let l in e){if(!FRf.call(e,l))continue;let p=e[l],d=n(l);if(d!=null){a>0&&r.has(l)&&a--;let f=d.transform(p);f.ok?u[d.transformedKey]=f.value:(u[l]=p,c.push(...f.errors))}else switch(i){case"fail":c.push({path:[...s,l],message:`Unexpected key "${l}"`});break;case"strip":break;case"passthrough":u[l]=p;break}}if(a>0)for(let l of t)l in e||c.push({path:s,message:`Missing required key "${l}"`});return c.length===0||o?{ok:!0,value:u}:{ok:!1,errors:c}}function Tje(e){return{extend:t=>{let r={_getParsedProperties:()=>[...e._getParsedProperties(),...t._getParsedProperties()],_getRawProperties:()=>[...e._getRawProperties(),...t._getRawProperties()],parse:(n,i)=>ZYa({extensionKeys:t._getRawProperties(),value:n,transformBase:o=>e.parse(o,i),transformExtension:o=>t.parse(o,i),breadcrumbsPrefix:i?.breadcrumbsPrefix}),json:(n,i)=>ZYa({extensionKeys:t._getParsedProperties(),value:n,transformBase:o=>e.json(o,i),transformExtension:o=>t.json(o,i),breadcrumbsPrefix:i?.breadcrumbsPrefix}),getType:()=>su.OBJECT};return{...r,...cm(r),...X7(r),...Tje(r)}},passthrough:()=>{let t=new Set(e._getRawProperties()),r=new Set(e._getParsedProperties()),n={_getParsedProperties:()=>e._getParsedProperties(),_getRawProperties:()=>e._getRawProperties(),parse:(i,o)=>{let s=e.parse(i,{...o,unrecognizedObjectKeys:"passthrough"});if(!s.ok)return s;let a={};if(typeof i=="object"&&i!=null)for(let[c,u]of Object.entries(i))t.has(c)||(a[c]=u);return{ok:!0,value:{...a,...s.value}}},json:(i,o)=>{let s=e.json(i,{...o,unrecognizedObjectKeys:"passthrough"});if(!s.ok)return s;let a={};if(typeof i=="object"&&i!=null)for(let[c,u]of Object.entries(i))r.has(c)||(a[c]=u);return{ok:!0,value:{...a,...s.value}}},getType:()=>su.OBJECT};return{...n,...cm(n),...X7(n),...Tje(n)}}}}function ZYa({extensionKeys:e,value:t,transformBase:r,transformExtension:n,breadcrumbsPrefix:i=[]}){if(!ole(t))return{ok:!1,errors:[{path:i,message:am(t,"object")}]};let o=new Set(e),[s,a]=HYa(ZFt(t),l=>o.has(l)),c=r(YFt(t,a)),u=n(YFt(t,s));return c.ok&&u.ok?{ok:!0,value:{...c.value,...u.value}}:{ok:!1,errors:[...c.ok?[]:c.errors,...u.ok?[]:u.errors]}}function NRf(e){return!jRf(e)}function jRf(e){switch(e.getType()){case su.ANY:case su.UNKNOWN:case su.OPTIONAL:case su.OPTIONAL_NULLABLE:return!0;default:return!1}}var FRf,HXi=h(()=>{"use strict";Rw();WYa();_Xi();IF();XFt();GXi();hX();KYa();$Ft();nQ();WXi();FRf=Object.prototype.hasOwnProperty});function $Ya(e){return VIr(e)}var eXa=h(()=>{"use strict";HXi()});var KXi=h(()=>{"use strict";HXi();eXa();WXi()});function tXa(e){let t={...LXi(e),_getRawProperties:()=>JJe(e)._getRawProperties(),_getParsedProperties:()=>JJe(e)._getParsedProperties()};return{...t,...cm(t),...X7(t),...Tje(t)}}var rXa=h(()=>{"use strict";KXi();$Ft();nQ();VXi()});var nXa=h(()=>{"use strict";VXi();rXa()});function UIr(e){let t={parse:(r,n)=>iXa(r,(i,o)=>e.parse(i,{...n,breadcrumbsPrefix:[...n?.breadcrumbsPrefix??[],`[${o}]`]})),json:(r,n)=>iXa(r,(i,o)=>e.json(i,{...n,breadcrumbsPrefix:[...n?.breadcrumbsPrefix??[],`[${o}]`]})),getType:()=>su.LIST};return{...kw(t),...cm(t)}}function iXa(e,t){if(!Array.isArray(e))return{ok:!1,errors:[{message:am(e,"list"),path:[]}]};let r=[],n=[];for(let i=0;i<e.length;i++){let o=t(e[i],i);o.ok?r.push(o.value):n.push(...o.errors)}return n.length===0?{ok:!0,value:r}:{ok:!1,errors:n}}var oXa=h(()=>{"use strict";Rw();IF();hX();nQ()});var JXi=h(()=>{"use strict";oXa()});function sXa(e){return o1(su.BOOLEAN_LITERAL,(r,{breadcrumbsPrefix:n=[]}={})=>r===e?{ok:!0,value:e}:{ok:!1,errors:[{path:n,message:am(r,`${e.toString()}`)}]})()}var aXa=h(()=>{"use strict";Rw();gX();IF()});function cXa(e){return o1(su.STRING_LITERAL,(r,{breadcrumbsPrefix:n=[]}={})=>r===e?{ok:!0,value:e}:{ok:!1,errors:[{path:n,message:am(r,`"${e}"`)}]})()}var uXa=h(()=>{"use strict";Rw();gX();IF()});var lXa=h(()=>{"use strict";aXa();uXa()});var pXa,fXa=h(()=>{"use strict";Rw();gX();pXa=o1(su.ANY,e=>({ok:!0,value:e}))});var dXa,mXa=h(()=>{"use strict";Rw();gX();IF();dXa=o1(su.BOOLEAN,(e,{breadcrumbsPrefix:t=[]}={})=>typeof e=="boolean"?{ok:!0,value:e}:{ok:!1,errors:[{path:t,message:am(e,"boolean")}]})});var hXa,gXa=h(()=>{"use strict";Rw();gX();hXa=o1(su.NEVER,(e,{breadcrumbsPrefix:t=[]}={})=>({ok:!1,errors:[{path:t,message:"Expected never"}]}))});var AXa,yXa=h(()=>{"use strict";Rw();gX();IF();AXa=o1(su.NUMBER,(e,{breadcrumbsPrefix:t=[]}={})=>typeof e=="number"?{ok:!0,value:e}:{ok:!1,errors:[{path:t,message:am(e,"number")}]})});var bXa,EXa=h(()=>{"use strict";Rw();gX();IF();bXa=o1(su.STRING,(e,{breadcrumbsPrefix:t=[]}={})=>typeof e=="string"?{ok:!0,value:e}:{ok:!1,errors:[{path:t,message:am(e,"string")}]})});var IXa,vXa=h(()=>{"use strict";Rw();gX();IXa=o1(su.UNKNOWN,e=>({ok:!0,value:e}))});var xXa=h(()=>{"use strict";fXa();mXa();gXa();yXa();EXa();vXa()});function CXa(e,t){let r={parse:(n,i)=>_Ir({value:n,isKeyNumeric:e.getType()===su.NUMBER,transformKey:o=>e.parse(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${o} (key)`]}),transformValue:(o,s)=>t.parse(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${s}`]}),breadcrumbsPrefix:i?.breadcrumbsPrefix}),json:(n,i)=>_Ir({value:n,isKeyNumeric:e.getType()===su.NUMBER,transformKey:o=>e.json(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${o} (key)`]}),transformValue:(o,s)=>t.json(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${s}`]}),breadcrumbsPrefix:i?.breadcrumbsPrefix}),getType:()=>su.RECORD};return{...kw(r),...cm(r)}}function wXa(e,t){let r={parse:(n,i)=>_Ir({value:n,isKeyNumeric:e.getType()===su.NUMBER,transformKey:o=>e.parse(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${o} (key)`]}),transformValue:(o,s)=>t.parse(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${s}`]}),breadcrumbsPrefix:i?.breadcrumbsPrefix}),json:(n,i)=>_Ir({value:n,isKeyNumeric:e.getType()===su.NUMBER,transformKey:o=>e.json(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${o} (key)`]}),transformValue:(o,s)=>t.json(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${s}`]}),breadcrumbsPrefix:i?.breadcrumbsPrefix}),getType:()=>su.RECORD};return{...kw(r),...cm(r)}}function _Ir({value:e,isKeyNumeric:t,transformKey:r,transformValue:n,breadcrumbsPrefix:i=[]}){if(!ole(e))return{ok:!1,errors:[{path:i,message:am(e,"object")}]};let o={},s=[];for(let a in e){if(!QRf.call(e,a))continue;let c=e[a];if(c===void 0)continue;let u=a;if(t){let d=a.length>0?Number(a):NaN;Number.isNaN(d)||(u=d)}let l=r(u),p=n(c,u);l.ok&&p.ok?o[l.value]=p.value:(l.ok||s.push(...l.errors),p.ok||s.push(...p.errors))}return s.length===0?{ok:!0,value:o}:{ok:!1,errors:s}}var QRf,SXa=h(()=>{"use strict";Rw();IF();XFt();hX();nQ();QRf=Object.prototype.hasOwnProperty});var TXa=h(()=>{"use strict";SXa()});function OXa(e){let t=UIr(e),r={parse:(n,i)=>{let o=t.parse(n,i);return o.ok?{ok:!0,value:new Set(o.value)}:o},json:(n,i)=>n instanceof Set?t.json([...n],i):{ok:!1,errors:[{path:i?.breadcrumbsPrefix??[],message:am(n,"Set")}]},getType:()=>su.SET};return{...kw(r),...cm(r)}}var BXa=h(()=>{"use strict";Rw();IF();hX();JXi();nQ()});var PXa=h(()=>{"use strict";BXa()});function RXa(e){let t={parse:(r,n)=>DXa((i,o)=>i.parse(r,o),e,n),json:(r,n)=>DXa((i,o)=>i.json(r,o),e,n),getType:()=>su.UNDISCRIMINATED_UNION};return{...kw(t),...cm(t)}}function DXa(e,t,r){let n=[];for(let[i,o]of t.entries()){let s=e(o,{...r,skipValidation:!1});if(s.ok)return s;for(let a of s.errors)n.push({path:a.path,message:`[Variant ${i}] ${a.message}`})}return{ok:!1,errors:n}}var kXa=h(()=>{"use strict";Rw();hX();nQ()});var FXa=h(()=>{"use strict";kXa()});function NXa(e,t){return{parsedDiscriminant:e,rawDiscriminant:t}}var jXa=h(()=>{"use strict"});function zXa(e,t){let r=typeof e=="string"?e:e.rawDiscriminant,n=typeof e=="string"?e:e.parsedDiscriminant,i=LIr(ZFt(t)),o={parse:(s,a)=>QXa({value:s,discriminant:r,transformedDiscriminant:n,transformDiscriminantValue:c=>i.parse(c,{allowUnrecognizedEnumValues:a?.allowUnrecognizedUnionMembers,breadcrumbsPrefix:[...a?.breadcrumbsPrefix??[],r]}),getAdditionalPropertiesSchema:c=>t[c],allowUnrecognizedUnionMembers:a?.allowUnrecognizedUnionMembers,transformAdditionalProperties:(c,u)=>u.parse(c,a),breadcrumbsPrefix:a?.breadcrumbsPrefix}),json:(s,a)=>QXa({value:s,discriminant:n,transformedDiscriminant:r,transformDiscriminantValue:c=>i.json(c,{allowUnrecognizedEnumValues:a?.allowUnrecognizedUnionMembers,breadcrumbsPrefix:[...a?.breadcrumbsPrefix??[],n]}),getAdditionalPropertiesSchema:c=>t[c],allowUnrecognizedUnionMembers:a?.allowUnrecognizedUnionMembers,transformAdditionalProperties:(c,u)=>u.json(c,a),breadcrumbsPrefix:a?.breadcrumbsPrefix}),getType:()=>su.UNION};return{...kw(o),...cm(o),...X7(o)}}function QXa({value:e,discriminant:t,transformedDiscriminant:r,transformDiscriminantValue:n,getAdditionalPropertiesSchema:i,allowUnrecognizedUnionMembers:o=!1,transformAdditionalProperties:s,breadcrumbsPrefix:a=[]}){if(!ole(e))return{ok:!1,errors:[{path:a,message:am(e,"object")}]};let c=e[t],u={};for(let f in e)zRf.call(e,f)&&f!==t&&(u[f]=e[f]);if(c==null)return{ok:!1,errors:[{path:a,message:`Missing discriminant ("${t}")`}]};let l=n(c);if(!l.ok)return{ok:!1,errors:l.errors};let p=i(l.value);if(p==null)return o?{ok:!0,value:{[r]:l.value,...u}}:{ok:!1,errors:[{path:[...a,t],message:"Unexpected discriminant value"}]};let d=s(u,p);return d.ok?{ok:!0,value:{[r]:c,...d.value}}:d}var zRf,MXa=h(()=>{"use strict";Rw();IF();XFt();GXi();hX();MXi();$Ft();nQ();zRf=Object.prototype.hasOwnProperty});var LXa=h(()=>{"use strict";jXa();MXa()});var VXa=h(()=>{"use strict";LYa();_Ya();MXi();nXa();JXi();lXa();KXi();$Ft();xXa();TXa();nQ();PXa();FXa();LXa()});var re={};Z(re,{JsonError:()=>HJe,ParseError:()=>KJe,any:()=>pXa,bigint:()=>zYa,boolean:()=>dXa,booleanLiteral:()=>sXa,date:()=>VYa,discriminant:()=>NXa,enum_:()=>LIr,getObjectLikeUtils:()=>X7,getObjectUtils:()=>Tje,getSchemaUtils:()=>cm,isProperty:()=>sle,lazy:()=>qYa,lazyObject:()=>tXa,list:()=>UIr,never:()=>hXa,number:()=>AXa,object:()=>VIr,objectWithoutOptionalProperties:()=>$Ya,optional:()=>QXi,partialRecord:()=>wXa,property:()=>YYa,record:()=>CXa,set:()=>OXa,string:()=>bXa,stringLiteral:()=>cXa,transform:()=>zXi,undiscriminatedUnion:()=>RXa,union:()=>zXa,unknown:()=>IXa,withParsedProperties:()=>qXi});var UXa=h(()=>{"use strict";VXa()});var _Xa=h(()=>{"use strict"});var Fr=h(()=>{"use strict";kYa();FYa();NYa();UXa();_Xa()});var GIr,YXi=h(()=>{"use strict";Fr();GIr=re.object({href:re.string()})});var qIr,XXi=h(()=>{"use strict";Fr();qIr=re.enum_(["description","subtitle"])});var WIr,ZXi=h(()=>{"use strict";Fr();XXi();WIr=re.object({pageDirective:re.property("page-directive",re.string().optional()),pageDescriptionSource:re.property("page-description-source",qIr.optional()),llmsTxt:re.property("llms-txt",re.string().optional()),llmsFullTxt:re.property("llms-full-txt",re.string().optional()),robotsTxt:re.property("robots-txt",re.string().optional())})});var HIr,$Xi=h(()=>{"use strict";Fr();HIr=re.object({url:re.string(),title:re.string().optional()})});var KIr,eZi=h(()=>{"use strict";Fr();$Xi();KIr=re.undiscriminatedUnion([HIr])});var JIr,tZi=h(()=>{"use strict";Fr();JIr=re.enum_(["docs","slack","discord"])});var YIr,rZi=h(()=>{"use strict";Fr();YIr=re.enum_(["claude-3.7","claude-4","command-a"])});var e2t,nZi=h(()=>{"use strict";Fr();eZi();tZi();rZi();e2t=re.object({model:YIr.optional(),systemPrompt:re.property("system-prompt",re.string().optional()),location:re.list(JIr).optional(),datasources:re.list(KIr).optional(),maskPii:re.property("mask-pii",re.boolean().optional())})});var XIr,iZi=h(()=>{"use strict";Fr();XIr=re.object({enabled:re.boolean().optional(),style:re.string().optional()})});var ZIr,oZi=h(()=>{"use strict";Fr();ZIr=re.object({orgId:re.property("org-id",re.string())})});var $Ir,sZi=h(()=>{"use strict";Fr();$Ir=re.object({measurementId:re.property("measurement-id",re.string())})});var evr,aZi=h(()=>{"use strict";Fr();evr=re.object({containerId:re.property("container-id",re.string())})});var tvr,cZi=h(()=>{"use strict";Fr();tvr=re.object({appId:re.property("app-id",re.string()),apiBase:re.property("api-base",re.string().optional())})});var rvr,uZi=h(()=>{"use strict";Fr();rvr=re.object({apiKey:re.property("api-key",re.string()),endpoint:re.string().optional()})});var nvr,lZi=h(()=>{"use strict";Fr();nvr=re.object({writeKey:re.property("write-key",re.string())})});var ivr,pZi=h(()=>{"use strict";Fr();oZi();sZi();aZi();cZi();uZi();lZi();ivr=re.object({segment:nvr.optional(),fullstory:ZIr.optional(),intercom:tvr.optional(),posthog:rvr.optional(),gtm:evr.optional(),ga4:$Ir.optional()})});var kbe,t2t=h(()=>{"use strict";Fr();kbe=re.object({message:re.string()})});var r2t,fZi=h(()=>{"use strict";Fr();r2t=re.string()});var AX,YJe=h(()=>{"use strict";Fr();fZi();AX=re.undiscriminatedUnion([r2t,re.list(r2t)])});var s1,yX=h(()=>{"use strict";Fr();s1=re.enum_(["stable","generally-available","in-development","pre-release","deprecated","beta","alpha","preview","legacy"])});var ovr,dZi=h(()=>{"use strict";Fr();ovr=re.enum_(["open-by-default"])});var bX,XJe=h(()=>{"use strict";Fr();dZi();bX=re.undiscriminatedUnion([re.boolean(),ovr])});var svr,mZi=h(()=>{"use strict";Fr();svr=re.object({href:re.string().optional()})});var EX,ZJe=h(()=>{"use strict";Fr();mZi();EX=re.object({hidden:re.boolean().optional(),environments:re.list(re.string()).optional(),button:svr.optional(),oauth:re.boolean().optional(),limitWebsocketMessagesPerConnection:re.property("limit-websocket-messages-per-connection",re.number().optional()),sendOptionalDefaults:re.property("send-optional-defaults",re.boolean().optional())})});var avr,hZi=h(()=>{"use strict";Fr();avr=re.object({version:re.string(),package:re.string()})});var AU,gZi=h(()=>{"use strict";Fr();hZi();AU=re.undiscriminatedUnion([re.string(),avr])});var cvr,AZi=h(()=>{"use strict";Fr();gZi();cvr=re.object({python:AU.optional(),typescript:AU.optional(),go:AU.optional(),java:AU.optional(),ruby:AU.optional(),csharp:AU.optional(),php:AU.optional(),swift:AU.optional(),rust:AU.optional()})});var n2t,yZi=h(()=>{"use strict";Fr();n2t=re.object({flag:re.string(),fallbackValue:re.property("fallback-value",re.unknown().optional()),match:re.unknown().optional()})});var uvr,bZi=h(()=>{"use strict";Fr();yZi();uvr=re.undiscriminatedUnion([re.string(),n2t,re.list(n2t)])});var Dd,a1=h(()=>{"use strict";Fr();bZi();Dd=re.object({featureFlag:re.property("feature-flag",uvr.optional())})});var Oje,lvr=h(()=>{"use strict";Fr();Oje=re.string()});var $Je,pvr=h(()=>{"use strict";Fr();lvr();$Je=re.undiscriminatedUnion([Oje,re.list(Oje)])});var Rd,c1=h(()=>{"use strict";Fr();pvr();Rd=re.object({viewers:$Je.optional(),orphaned:re.boolean().optional()})});var fvr,EZi=h(()=>{"use strict";Fr();SL();YJe();yX();XJe();ZJe();AZi();a1();c1();fvr=re.object({api:re.string(),apiName:re.property("api-name",re.string().optional()),openrpc:re.string().optional(),audiences:AX.optional(),displayErrors:re.property("display-errors",re.boolean().optional()),tagDescriptionPages:re.property("tag-description-pages",re.boolean().optional()),snippets:cvr.optional(),postman:re.string().optional(),summary:re.string().optional(),layout:re.list(re.lazy(()=>IX)).optional(),collapsed:bX.optional(),icon:re.string().optional(),slug:re.string().optional(),hidden:re.boolean().optional(),availability:s1.optional(),skipSlug:re.property("skip-slug",re.boolean().optional()),alphabetized:re.boolean().optional(),flattened:re.boolean().optional(),paginated:re.boolean().optional(),playground:EX.optional()}).extend(Rd).extend(Dd)});var dvr,IZi=h(()=>{"use strict";Fr();yX();ZJe();a1();c1();dvr=re.object({endpoint:re.string(),title:re.string().optional(),slug:re.string().optional(),icon:re.string().optional(),hidden:re.boolean().optional(),availability:s1.optional(),playground:EX.optional()}).extend(Rd).extend(Dd)});var mvr,vZi=h(()=>{"use strict";Fr();mvr=re.enum_(["indented","cards"])});var hvr,xZi=h(()=>{"use strict";Fr();yX();a1();c1();hvr=re.object({operation:re.string(),title:re.string().optional(),slug:re.string().optional(),hidden:re.boolean().optional(),availability:s1.optional()}).extend(Rd).extend(Dd)});var yU,Bje=h(()=>{"use strict";Fr();yU=re.enum_(["_blank","_self","_parent","_top"])});var eYe,gvr=h(()=>{"use strict";Fr();Bje();eYe=re.object({link:re.string(),href:re.string(),icon:re.string().optional(),target:yU.optional()})});var bU,Pje=h(()=>{"use strict";Fr();yX();a1();c1();bU=re.object({page:re.string(),path:re.string(),slug:re.string().optional(),icon:re.string().optional(),hidden:re.boolean().optional(),noindex:re.boolean().optional(),availability:s1.optional()}).extend(Rd).extend(Dd)});var IX,GXa=h(()=>{"use strict";Fr();SL();IZi();xZi();gvr();Pje();IX=re.undiscriminatedUnion([re.string(),re.record(re.string(),re.lazy(()=>Avr)),re.lazyObject(()=>yvr),dvr,hvr,bU,eYe])});var Avr,qXa=h(()=>{"use strict";Fr();SL();Avr=re.undiscriminatedUnion([re.list(re.lazy(()=>IX)),re.lazyObject(()=>bvr)])});var bvr,WXa=h(()=>{"use strict";Fr();SL();yX();ZJe();a1();c1();bvr=re.object({title:re.string().optional(),summary:re.string().optional(),contents:re.list(re.lazy(()=>IX)).optional(),availability:s1.optional(),slug:re.string().optional(),icon:re.string().optional(),hidden:re.boolean().optional(),skipSlug:re.property("skip-slug",re.boolean().optional()),playground:EX.optional()}).extend(Rd).extend(Dd)});var yvr,HXa=h(()=>{"use strict";Fr();SL();yX();XJe();ZJe();a1();c1();yvr=re.object({section:re.string(),referencedPackages:re.property("referenced-packages",re.list(re.string()).optional()),summary:re.string().optional(),contents:re.list(re.lazy(()=>IX)).optional(),slug:re.string().optional(),icon:re.string().optional(),hidden:re.boolean().optional(),skipSlug:re.property("skip-slug",re.boolean().optional()),collapsed:bX.optional(),collapsible:re.boolean().optional(),collapsedByDefault:re.property("collapsed-by-default",re.boolean().optional()),availability:s1.optional(),playground:EX.optional()}).extend(Rd).extend(Dd)});var Evr,CZi=h(()=>{"use strict";Fr();Evr=re.object({dark:re.string().optional(),light:re.string().optional()})});var Ivr,wZi=h(()=>{"use strict";Fr();CZi();Ivr=re.undiscriminatedUnion([re.string(),Evr])});var ale,i2t=h(()=>{"use strict";Fr();ale=re.string()});var vvr,SZi=h(()=>{"use strict";Fr();i2t();a1();c1();vvr=re.object({blog:ale,title:re.string().optional(),slug:re.string().optional(),icon:re.string().optional(),hidden:re.boolean().optional()}).extend(Rd).extend(Dd)});var xvr,TZi=h(()=>{"use strict";Fr();xvr=re.enum_(["default","canvas"])});var Cvr,OZi=h(()=>{"use strict";Fr();i2t();a1();c1();Cvr=re.object({changelog:ale,title:re.string().optional(),slug:re.string().optional(),icon:re.string().optional(),hidden:re.boolean().optional()}).extend(Rd).extend(Dd)});var wvr,BZi=h(()=>{"use strict";Fr();wvr=re.enum_(["timeline","classic"])});var Z7,PZi=h(()=>{"use strict";Fr();Z7=re.enum_(["warn","error"])});var Svr,DZi=h(()=>{"use strict";Fr();PZi();Svr=re.object({exampleValidation:re.property("example-validation",Z7.optional()),brokenLinks:re.property("broken-links",Z7.optional()),noNonComponentRefs:re.property("no-non-component-refs",Z7.optional()),validLocalReferences:re.property("valid-local-references",Z7.optional()),noCircularRedirects:re.property("no-circular-redirects",Z7.optional()),validDocsEndpoints:re.property("valid-docs-endpoints",Z7.optional()),missingRedirects:re.property("missing-redirects",Z7.optional()),validChangelogSlug:re.property("valid-changelog-slug",Z7.optional())})});var Tvr,RZi=h(()=>{"use strict";Fr();DZi();Tvr=re.object({rules:Svr.optional()})});var Ovr,kZi=h(()=>{"use strict";Fr();Ovr=re.object({dark:re.string().optional(),light:re.string().optional()})});var NI,FZi=h(()=>{"use strict";Fr();kZi();NI=re.undiscriminatedUnion([re.string(),Ovr])});var Bvr,NZi=h(()=>{"use strict";Fr();FZi();Bvr=re.object({accentPrimary:re.property("accent-primary",NI.optional()),accentPrimaryDeprecated:re.property("accentPrimary",NI.optional()),background:NI.optional(),border:NI.optional(),sidebarBackground:re.property("sidebar-background",NI.optional()),headerBackground:re.property("header-background",NI.optional()),cardBackground:re.property("card-background",NI.optional()),accent1:re.property("accent-1",NI.optional()),accent2:re.property("accent-2",NI.optional()),accent3:re.property("accent-3",NI.optional()),accent4:re.property("accent-4",NI.optional()),accent5:re.property("accent-5",NI.optional()),accent6:re.property("accent-6",NI.optional()),accent7:re.property("accent-7",NI.optional()),accent8:re.property("accent-8",NI.optional()),accent9:re.property("accent-9",NI.optional()),accent10:re.property("accent-10",NI.optional()),accent11:re.property("accent-11",NI.optional()),accent12:re.property("accent-12",NI.optional())})});var Pvr,jZi=h(()=>{"use strict";Fr();Pvr=re.enum_(["center","left"])});var Dvr,QZi=h(()=>{"use strict";Fr();Dvr=re.undiscriminatedUnion([re.string(),re.list(re.string())])});var Rvr,zZi=h(()=>{"use strict";Fr();Rvr=re.undiscriminatedUnion([re.string(),re.list(re.string())])});var kvr,MZi=h(()=>{"use strict";Fr();kvr=re.object({title:re.string(),subtitle:re.string().optional(),url:re.string(),icon:re.string().optional(),default:re.boolean().optional()})});var Fvr,LZi=h(()=>{"use strict";Fr();Fvr=re.enum_(["github","dashboard"])});var Nvr,VZi=h(()=>{"use strict";Fr();Nvr=re.object({host:re.string().optional(),owner:re.string(),repo:re.string(),branch:re.string().optional()})});var jvr,UZi=h(()=>{"use strict";Fr();LZi();VZi();jvr=re.object({github:Nvr.optional(),launch:Fvr.optional()})});var Qvr,_Zi=h(()=>{"use strict";Fr();YJe();zZi();UZi();Qvr=re.object({url:re.string(),customDomain:re.property("custom-domain",Rvr.optional()),editThisPage:re.property("edit-this-page",jvr.optional()),audiences:AX.optional(),multiSource:re.property("multi-source",re.boolean().optional())})});var zvr,GZi=h(()=>{"use strict";Fr();zvr=re.enum_(["curl","csharp","go","java","javascript","php","python","ruby","swift","typescript"])});var Mvr,qZi=h(()=>{"use strict";Fr();GZi();Mvr=re.undiscriminatedUnion([re.boolean(),re.list(zvr)])});var Fbe,o2t=h(()=>{"use strict";Fr();Fbe=re.string()});var Lvr,WZi=h(()=>{"use strict";Fr();Lvr=re.object({prioritizeCurrentProduct:re.property("prioritize-current-product",re.boolean().optional()),defaultFilterByCurrentProduct:re.property("default-filter-by-current-product",re.boolean().optional())})});var tYe,Vvr=h(()=>{"use strict";Fr();tYe=re.enum_(["frontmatter","filename"])});var Uvr,HZi=h(()=>{"use strict";Fr();Uvr=re.enum_(["flat","grouped"])});var _vr,KZi=h(()=>{"use strict";Fr();qZi();o2t();WZi();Vvr();HZi();_vr=re.object({searchText:re.property("search-text",re.string().optional()),disableSearch:re.property("disable-search",re.boolean().optional()),darkModeCode:re.property("dark-mode-code",re.boolean().optional()),defaultSearchFilters:re.property("default-search-filters",re.boolean().optional()),search:Lvr.optional(),httpSnippets:re.property("http-snippets",Mvr.optional()),hide404Page:re.property("hide-404-page",re.boolean().optional()),useJavascriptAsTypescript:re.property("use-javascript-as-typescript",re.boolean().optional()),disableExplorerProxy:re.property("disable-explorer-proxy",re.boolean().optional()),disableEnvironmentEditing:re.property("disable-environment-editing",re.boolean().optional()),disableAnalytics:re.property("disable-analytics",re.boolean().optional()),language:Fbe.optional(),folderTitleSource:re.property("folder-title-source",tYe.optional()),substituteEnvVars:re.property("substitute-env-vars",re.boolean().optional()),websocketOneofDisplay:re.property("websocket-oneof-display",Uvr.optional())})});var rYe,Gvr=h(()=>{"use strict";Fr();rYe=re.enum_(["normal","italic"])});var nYe,qvr=h(()=>{"use strict";Fr();nYe=re.undiscriminatedUnion([re.string(),re.number()])});var Wvr,JZi=h(()=>{"use strict";Fr();Gvr();qvr();Wvr=re.object({path:re.string(),weight:nYe.optional(),style:rYe.optional()})});var Hvr,YZi=h(()=>{"use strict";Fr();JZi();Hvr=re.undiscriminatedUnion([re.string(),Wvr])});var Kvr,XZi=h(()=>{"use strict";Fr();Kvr=re.enum_(["auto","block","swap","fallback","optional"])});var iYe,ZZi=h(()=>{"use strict";Fr();YZi();XZi();Gvr();qvr();iYe=re.object({name:re.string().optional(),path:re.string().optional(),weight:nYe.optional(),style:rYe.optional(),paths:re.list(Hvr).optional(),display:Kvr.optional(),fallback:re.list(re.string()).optional(),fontVariationSettings:re.property("font-variation-settings",re.string().optional())})});var Jvr,$Zi=h(()=>{"use strict";Fr();ZZi();Jvr=re.object({headingsFont:iYe.optional(),bodyFont:iYe.optional(),codeFont:iYe.optional()})});var Yvr,e$i=h(()=>{"use strict";Fr();Yvr=re.object({mdxComponents:re.property("mdx-components",re.list(re.string()).optional()),disableStreamToggle:re.property("disable-stream-toggle",re.boolean().optional()),openapiParserV2:re.property("openapi-parser-v2",re.boolean().optional()),openapiParserV3:re.property("openapi-parser-v3",re.boolean().optional()),dynamicSnippets:re.property("dynamic-snippets",re.boolean().optional()),aiExamples:re.property("ai-examples",re.boolean().optional()),aiExampleStyleInstructions:re.property("ai-example-style-instructions",re.string().optional()),excludeApis:re.property("exclude-apis",re.boolean().optional()),basepathAware:re.property("basepath-aware",re.boolean().optional()),externalSitemaps:re.property("external-sitemaps",re.list(re.string()).optional())})});var Xvr,t$i=h(()=>{"use strict";Fr();Xvr=re.object({github:re.string().optional(),twitter:re.string().optional(),x:re.string().optional(),linkedin:re.string().optional(),youtube:re.string().optional(),instagram:re.string().optional(),facebook:re.string().optional(),discord:re.string().optional(),slack:re.string().optional(),hackernews:re.string().optional(),medium:re.string().optional(),website:re.string().optional()})});var Zvr,r$i=h(()=>{"use strict";Fr();Zvr=re.object({intercom:re.string().optional(),context7:re.string().optional()})});var oYe,$vr=h(()=>{"use strict";Fr();oYe=re.enum_(["beforeInteractive","afterInteractive","lazyOnload"])});var exr,n$i=h(()=>{"use strict";Fr();$vr();exr=re.object({path:re.string(),strategy:oYe.optional()})});var txr,i$i=h(()=>{"use strict";Fr();n$i();txr=re.undiscriminatedUnion([re.string(),exr])});var rxr,o$i=h(()=>{"use strict";Fr();$vr();rxr=re.object({url:re.string(),strategy:oYe.optional(),disableSri:re.property("disable-sri",re.boolean().optional())})});var s2t,s$i=h(()=>{"use strict";Fr();i$i();o$i();s2t=re.undiscriminatedUnion([rxr,txr])});var nxr,a$i=h(()=>{"use strict";Fr();s$i();nxr=re.undiscriminatedUnion([s2t,re.list(s2t)])});var ixr,c$i=h(()=>{"use strict";Fr();ixr=re.enum_(["fixed","static"])});var oxr,u$i=h(()=>{"use strict";Fr();oxr=re.enum_(["header","header-tabs","sidebar"])});var sxr,l$i=h(()=>{"use strict";Fr();sxr=re.enum_(["header","sidebar"])});var sYe,axr=h(()=>{"use strict";Fr();sYe=re.enum_(["header","sidebar"])});var cxr,p$i=h(()=>{"use strict";Fr();vZi();BZi();jZi();c$i();u$i();l$i();axr();cxr=re.object({pageWidth:re.property("page-width",re.string().optional()),contentWidth:re.property("content-width",re.string().optional()),sidebarWidth:re.property("sidebar-width",re.string().optional()),headerHeight:re.property("header-height",re.string().optional()),searchbarPlacement:re.property("searchbar-placement",oxr.optional()),tabsPlacement:re.property("tabs-placement",sYe.optional()),switcherPlacement:re.property("switcher-placement",sxr.optional()),contentAlignment:re.property("content-alignment",Pvr.optional()),headerPosition:re.property("header-position",ixr.optional()),disableHeader:re.property("disable-header",re.boolean().optional()),hideNavLinks:re.property("hide-nav-links",re.boolean().optional()),hideFeedback:re.property("hide-feedback",re.boolean().optional()),mobileToc:re.property("mobile-toc",re.boolean().optional()),changelogLayout:re.property("changelog-layout",wvr.optional()),apiReferenceLayout:re.property("api-reference-layout",mvr.optional()),apiReferenceExpandProperties:re.property("api-reference-expand-properties",re.boolean().optional()),showNavAvailabilityBadges:re.property("show-nav-availability-badges",re.boolean().optional())})});var uxr,f$i=h(()=>{"use strict";Fr();uxr=re.object({doxyfile:re.string().optional()})});var lxr,d$i=h(()=>{"use strict";Fr();lxr=re.object({git:re.string(),subpath:re.string().optional(),ref:re.string().optional()})});var pxr,m$i=h(()=>{"use strict";Fr();pxr=re.object({path:re.string()})});var fxr,h$i=h(()=>{"use strict";Fr();d$i();m$i();fxr=re.undiscriminatedUnion([lxr,pxr])});var dxr,g$i=h(()=>{"use strict";Fr();dxr=re.enum_(["python","cpp"])});var mxr,A$i=h(()=>{"use strict";Fr();mxr=re.object({path:re.string()})});var hxr,y$i=h(()=>{"use strict";Fr();f$i();h$i();g$i();A$i();hxr=re.object({input:fxr,output:mxr,lang:dxr,config:uxr.optional()})});var aYe,gxr=h(()=>{"use strict";Fr();aYe=re.string()});var Axr,b$i=h(()=>{"use strict";Fr();Axr=re.object({dark:re.string().optional(),light:re.string().optional(),height:re.number().optional(),href:re.string().optional(),rightText:re.property("right-text",re.string().optional())})});var yxr,E$i=h(()=>{"use strict";Fr();yxr=re.enum_(["dark","light"])});var bxr,I$i=h(()=>{"use strict";Fr();bxr=re.enum_(["summary","summary_large_image","app","player"])});var Exr,v$i=h(()=>{"use strict";Fr();E$i();I$i();Exr=re.object({ogSiteName:re.property("og:site_name",re.string().optional()),ogTitle:re.property("og:title",re.string().optional()),ogDescription:re.property("og:description",re.string().optional()),ogUrl:re.property("og:url",re.string().optional()),ogImage:re.property("og:image",re.string().optional()),ogImageWidth:re.property("og:image:width",re.number().optional()),ogImageHeight:re.property("og:image:height",re.number().optional()),ogLocale:re.property("og:locale",re.string().optional()),ogLogo:re.property("og:logo",re.string().optional()),twitterTitle:re.property("twitter:title",re.string().optional()),twitterDescription:re.property("twitter:description",re.string().optional()),twitterHandle:re.property("twitter:handle",re.string().optional()),twitterImage:re.property("twitter:image",re.string().optional()),twitterSite:re.property("twitter:site",re.string().optional()),twitterUrl:re.property("twitter:url",re.string().optional()),twitterCard:re.property("twitter:card",bxr.optional()),ogDynamic:re.property("og:dynamic",re.boolean().optional()),ogDynamicBackgroundImage:re.property("og:dynamic:background-image",re.string().optional()),ogDynamicTextColor:re.property("og:dynamic:text-color",re.string().optional()),ogDynamicBackgroundColor:re.property("og:dynamic:background-color",re.string().optional()),ogDynamicLogoColor:re.property("og:dynamic:logo-color",yxr.optional()),ogDynamicShowLogo:re.property("og:dynamic:show-logo",re.boolean().optional()),ogDynamicShowSection:re.property("og:dynamic:show-section",re.boolean().optional()),ogDynamicShowDescription:re.property("og:dynamic:show-description",re.boolean().optional()),ogDynamicShowUrl:re.property("og:dynamic:show-url",re.boolean().optional()),ogDynamicShowGradient:re.property("og:dynamic:show-gradient",re.boolean().optional()),canonicalHost:re.property("canonical-host",re.string().optional())})});var Nbe,a2t=h(()=>{"use strict";Fr();pvr();Nbe=re.object({viewers:$Je.optional()})});var vX,Ixr=h(()=>{"use strict";Fr();Bje();a2t();vX=re.object({href:re.string().optional(),target:yU.optional(),url:re.string().optional(),text:re.string().optional(),icon:re.string().optional(),rightIcon:re.string().optional(),rounded:re.boolean().optional()}).extend(Nbe)});var vxr,x$i=h(()=>{"use strict";Fr();Ixr();a2t();vxr=re.object({links:re.list(vX),text:re.string().optional(),icon:re.string().optional(),rightIcon:re.string().optional(),rounded:re.boolean().optional()}).extend(Nbe)});var xxr,C$i=h(()=>{"use strict";Fr();Bje();a2t();xxr=re.object({url:re.string(),target:yU.optional()}).extend(Nbe)});var Cxr,w$i=h(()=>{"use strict";Fr();C$i();Cxr=re.undiscriminatedUnion([re.string(),xxr])});var wxr,S$i=h(()=>{"use strict";Fr();x$i();w$i();Ixr();wxr=re.union("type",{filled:vX,outlined:vX,minimal:vX,github:re.object({value:Cxr}),dropdown:vxr,primary:vX,secondary:vX}).transform({transform:e=>e,untransform:e=>e})});var EU,Dje=h(()=>{"use strict";Fr();EU=re.string()});var Sxr,T$i=h(()=>{"use strict";Fr();SL();Dje();Sxr=re.object({tab:EU,layout:re.list(re.lazy(()=>xX)).optional()})});var Txr,O$i=h(()=>{"use strict";Fr();SL();a1();c1();Txr=re.object({title:re.string(),subtitle:re.string().optional(),icon:re.string().optional(),layout:re.list(re.lazy(()=>xX)),slug:re.string().optional(),skipSlug:re.property("skip-slug",re.boolean().optional()),hidden:re.boolean().optional(),default:re.boolean().optional()}).extend(Rd).extend(Dd)});var Oxr,B$i=h(()=>{"use strict";Fr();Dje();O$i();Oxr=re.object({tab:EU,variants:re.list(Txr)})});var Bxr,P$i=h(()=>{"use strict";Fr();T$i();B$i();Bxr=re.undiscriminatedUnion([Sxr,Oxr])});var Pxr,D$i=h(()=>{"use strict";Fr();P$i();Pxr=re.list(Bxr)});var Dxr,R$i=h(()=>{"use strict";Fr();SL();Dxr=re.list(re.lazy(()=>xX))});var jbe,c2t=h(()=>{"use strict";Fr();D$i();R$i();jbe=re.undiscriminatedUnion([Dxr,Pxr])});var Rxr,k$i=h(()=>{"use strict";Fr();Rxr=re.enum_(["copy-page","view-as-markdown","ask-ai","chatgpt","claude","cursor","claude-code","vscode"])});var kxr,F$i=h(()=>{"use strict";Fr();kxr=re.object({name:re.string(),description:re.string().optional(),url:re.string().optional()})});var Fxr,N$i=h(()=>{"use strict";Fr();Fxr=re.undiscriminatedUnion([re.string(),re.list(re.string())])});var Nxr,j$i=h(()=>{"use strict";Fr();F$i();N$i();Nxr=re.object({title:re.string().optional(),description:re.string().optional(),learnMoreUrl:re.property("learn-more-url",re.string().optional()),repository:re.string().optional(),installCommand:re.property("install-command",Fxr.optional()),skills:re.list(kxr).optional()})});var jxr,Q$i=h(()=>{"use strict";Fr();MZi();j$i();jxr=re.object({copyPage:re.property("copy-page",re.boolean().optional()),viewAsMarkdown:re.property("view-as-markdown",re.boolean().optional()),askAi:re.property("ask-ai",re.boolean().optional()),chatgpt:re.boolean().optional(),claude:re.boolean().optional(),claudeCode:re.property("claude-code",re.boolean().optional()),cursor:re.boolean().optional(),mcp:re.boolean().optional(),vscode:re.boolean().optional(),custom:re.list(kvr).optional(),skills:Nxr.optional()})});var Qxr,z$i=h(()=>{"use strict";Fr();k$i();Q$i();Qxr=re.object({default:Rxr.optional(),options:jxr.optional()})});var zxr,M$i=h(()=>{"use strict";Fr();zxr=re.enum_(["deprecated","legacy","ga","stable","beta","alpha","preview"])});var cYe,Mxr=h(()=>{"use strict";Fr();t2t();YJe();M$i();a1();c1();cYe=re.object({displayName:re.property("display-name",re.string()),path:re.string().optional(),ref:re.string().optional(),slug:re.string().optional(),availability:zxr.optional(),audiences:AX.optional(),hidden:re.boolean().optional(),announcement:kbe.optional()}).extend(Rd).extend(Dd)});var uYe,Lxr=h(()=>{"use strict";Fr();YJe();Mxr();a1();c1();uYe=re.object({displayName:re.property("display-name",re.string()),subtitle:re.string().optional(),icon:re.string().optional(),image:re.string().optional(),versions:re.list(cYe).optional(),audiences:AX.optional()}).extend(Rd).extend(Dd)});var Vxr,L$i=h(()=>{"use strict";Fr();Lxr();Bje();Vxr=re.object({href:re.string(),target:yU.optional()}).extend(uYe)});var Uxr,V$i=h(()=>{"use strict";Fr();t2t();Lxr();Uxr=re.object({path:re.string(),slug:re.string().optional(),announcement:kbe.optional()}).extend(uYe)});var _xr,U$i=h(()=>{"use strict";Fr();L$i();V$i();_xr=re.undiscriminatedUnion([Uxr,Vxr])});var Gxr,_$i=h(()=>{"use strict";Fr();Gxr=re.enum_(["typescript","javascript","python","java","go","ruby","csharp","php","swift","rust","nodets","nodejs","dotnet","curl","jvm","ts","js"])});var qxr,G$i=h(()=>{"use strict";Fr();qxr=re.object({source:re.string(),destination:re.string(),permanent:re.boolean().optional()})});var Wxr,q$i=h(()=>{"use strict";Fr();G$i();Wxr=re.undiscriminatedUnion([re.list(qxr),re.string(),re.list(re.string())])});var Qbe,u2t=h(()=>{"use strict";Fr();i2t();Bje();a1();c1();Qbe=re.object({displayName:re.property("display-name",re.string()),icon:re.string().optional(),slug:re.string().optional(),skipSlug:re.property("skip-slug",re.boolean().optional()),hidden:re.boolean().optional(),href:re.string().optional(),target:yU.optional(),changelog:ale.optional(),blog:ale.optional()}).extend(Rd).extend(Dd)});var Hxr,W$i=h(()=>{"use strict";Fr();Hxr=re.enum_(["default","minimal"])});var Kxr,H$i=h(()=>{"use strict";Fr();Kxr=re.enum_(["default","minimal"])});var Jxr,K$i=h(()=>{"use strict";Fr();Jxr=re.enum_(["default","toolbar"])});var Yxr,J$i=h(()=>{"use strict";Fr();Yxr=re.enum_(["default","toggle","tabs"])});var Xxr,Y$i=h(()=>{"use strict";Fr();Xxr=re.enum_(["default","minimal"])});var Zxr,X$i=h(()=>{"use strict";Fr();Zxr=re.enum_(["left","center"])});var lYe,$xr=h(()=>{"use strict";Fr();lYe=re.enum_(["default","bubble"])});var eCr,Z$i=h(()=>{"use strict";Fr();X$i();axr();$xr();eCr=re.object({style:lYe.optional(),alignment:Zxr.optional(),placement:sYe.optional()})});var tCr,$$i=h(()=>{"use strict";Fr();Z$i();$xr();tCr=re.undiscriminatedUnion([lYe,eCr])});var rCr,eeo=h(()=>{"use strict";Fr();TZi();W$i();H$i();K$i();J$i();Y$i();$$i();rCr=re.object({sidebar:Xxr.optional(),body:xvr.optional(),tabs:tCr.optional(),pageActions:re.property("page-actions",Jxr.optional()),footerNav:re.property("footer-nav",Hxr.optional()),languageSwitcher:re.property("language-switcher",Kxr.optional()),productSwitcher:re.property("product-switcher",Yxr.optional())})});var nCr,teo=h(()=>{"use strict";Fr();o2t();nCr=re.object({lang:Fbe,default:re.boolean().optional()})});var iCr,reo=h(()=>{"use strict";Fr();o2t();teo();iCr=re.undiscriminatedUnion([Fbe,nCr])});var KXa,JXa=h(()=>{"use strict";Fr();ZXi();nZi();iZi();pZi();t2t();wZi();RZi();NZi();QZi();_Zi();KZi();$Zi();e$i();t$i();r$i();a$i();p$i();y$i();gxr();b$i();v$i();S$i();c2t();z$i();Pje();U$i();_$i();q$i();lvr();u2t();Dje();eeo();reo();Mxr();KXa=re.object({instances:re.list(Qvr),title:re.string().optional(),libraries:re.record(aYe,hxr).optional(),analytics:ivr.optional(),announcement:kbe.optional(),roles:re.list(Oje).optional(),tabs:re.record(EU,Qbe).optional(),versions:re.list(cYe).optional(),products:re.list(_xr).optional(),landingPage:re.property("landing-page",bU.optional()),navigation:jbe.optional(),navbarLinks:re.property("navbar-links",re.list(wxr).optional()),footerLinks:re.property("footer-links",Xvr.optional()),pageActions:re.property("page-actions",Qxr.optional()),globalTheme:re.property("global-theme",re.string().optional()),experimental:Yvr.optional(),defaultLanguage:re.property("default-language",Gxr.optional()),languages:re.list(re.string()).optional(),translations:re.list(iCr).optional(),aiChat:re.property("ai-chat",e2t.optional()),aiSearch:re.property("ai-search",e2t.optional()),aiExamples:re.property("ai-examples",XIr.optional()),agents:WIr.optional(),metadata:Exr.optional(),redirects:Wxr.optional(),check:Tvr.optional(),logo:Axr.optional(),favicon:re.string().optional(),backgroundImage:re.property("background-image",Ivr.optional()),colors:Bvr.optional(),typography:Jvr.optional(),layout:cxr.optional(),settings:_vr.optional(),theme:rCr.optional(),integrations:Zvr.optional(),css:Dvr.optional(),js:nxr.optional(),header:re.string().optional(),footer:re.string().optional()})});var oCr,neo=h(()=>{"use strict";Fr();yX();XJe();Vvr();a1();c1();oCr=re.object({folder:re.string(),title:re.string().optional(),titleSource:re.property("title-source",tYe.optional()),slug:re.string().optional(),icon:re.string().optional(),hidden:re.boolean().optional(),skipSlug:re.property("skip-slug",re.boolean().optional()),collapsed:bX.optional(),collapsible:re.boolean().optional(),collapsedByDefault:re.property("collapsed-by-default",re.boolean().optional()),availability:s1.optional()}).extend(Rd).extend(Dd)});var sCr,ieo=h(()=>{"use strict";Fr();gxr();a1();c1();sCr=re.object({library:aYe,title:re.string().optional(),slug:re.string().optional()}).extend(Rd).extend(Dd)});var xX,YXa=h(()=>{"use strict";Fr();SL();EZi();SZi();OZi();neo();ieo();gvr();Pje();xX=re.undiscriminatedUnion([bU,re.lazyObject(()=>aCr),fvr,sCr,eYe,Cvr,vvr,oCr])});var XXa,ZXa=h(()=>{"use strict";Fr();c2t();Pje();u2t();Dje();XXa=re.object({tabs:re.record(EU,Qbe).optional(),landingPage:re.property("landing-page",bU.optional()),navigation:jbe})});var cCr,oeo=h(()=>{"use strict";Fr();a1();c1();cCr=re.object({displayName:re.property("display-name",re.string()),path:re.string(),slug:re.string().optional()}).extend(Rd).extend(Dd)});var $Xa,eZa=h(()=>{"use strict";Fr();YXi();oeo();$Xa=re.undiscriminatedUnion([cCr,GIr])});var aCr,tZa=h(()=>{"use strict";Fr();SL();yX();XJe();a1();c1();aCr=re.object({section:re.string(),path:re.string().optional(),contents:re.list(re.lazy(()=>xX)),collapsed:bX.optional(),collapsible:re.boolean().optional(),collapsedByDefault:re.property("collapsed-by-default",re.boolean().optional()),slug:re.string().optional(),icon:re.string().optional(),hidden:re.boolean().optional(),skipSlug:re.property("skip-slug",re.boolean().optional()),availability:s1.optional()}).extend(Rd).extend(Dd)});var rZa,nZa=h(()=>{"use strict";Fr();c2t();Pje();u2t();Dje();rZa=re.object({tabs:re.record(EU,Qbe).optional(),landingPage:re.property("landing-page",bU.optional()),navigation:jbe})});var seo=h(()=>{"use strict";YXi();ZXi();nZi();eZi();tZi();rZi();$Xi();iZi();pZi();t2t();EZi();IZi();vZi();GXa();xZi();qXa();WXa();HXa();YJe();fZi();yX();wZi();CZi();SZi();TZi();OZi();i2t();BZi();RZi();PZi();DZi();dZi();XJe();FZi();NZi();kZi();jZi();QZi();zZi();MZi();JXa();_Zi();KZi();$Zi();UZi();LZi();e$i();L$i();yZi();bZi();neo();ZZi();YZi();JZi();XZi();Gvr();qvr();t$i();W$i();oZi();VZi();d$i();sZi();aZi();c$i();GZi();qZi();r$i();cZi();V$i();a$i();s$i();i$i();n$i();o$i();$vr();o2t();H$i();p$i();f$i();y$i();h$i();g$i();gxr();A$i();ieo();gvr();b$i();v$i();x$i();w$i();C$i();S$i();Ixr();c2t();YXa();E$i();k$i();Q$i();z$i();K$i();Pje();XXi();m$i();mZi();ZJe();uZi();U$i();Lxr();ZXa();eZa();J$i();_$i();G$i();q$i();oeo();pvr();lvr();u$i();WZi();tZa();lZi();Y$i();F$i();N$i();j$i();gZi();AZi();l$i();D$i();P$i();T$i();B$i();u2t();Dje();X$i();axr();$$i();Z$i();$xr();O$i();Bje();eeo();Vvr();reo();teo();I$i();R$i();M$i();Mxr();hZi();nZa();HZi();a1();c1();a2t()});var aeo={};Z(aeo,{AbsoluteProductPath:()=>GIr,AgentsConfig:()=>WIr,AiChatConfig:()=>e2t,AiChatDatasource:()=>KIr,AiChatLocation:()=>JIr,AiChatModel:()=>YIr,AiChatWebsiteDatasource:()=>HIr,AiExamplesConfig:()=>XIr,AnalyticsConfig:()=>ivr,AnnouncementConfig:()=>kbe,ApiReferenceConfiguration:()=>fvr,ApiReferenceEndpointConfiguration:()=>dvr,ApiReferenceLayout:()=>mvr,ApiReferenceLayoutItem:()=>IX,ApiReferenceOperationConfiguration:()=>hvr,ApiReferencePackageConfiguration:()=>Avr,ApiReferencePackageConfigurationWithOptions:()=>bvr,ApiReferenceSectionConfiguration:()=>yvr,Audience:()=>AX,AudienceId:()=>r2t,Availability:()=>s1,BackgroundImageConfiguration:()=>Ivr,BackgroundImageThemedConfig:()=>Evr,BlogConfiguration:()=>vvr,BodyThemeConfig:()=>xvr,ChangelogConfiguration:()=>Cvr,ChangelogFolderRelativePath:()=>ale,ChangelogLayout:()=>wvr,CheckConfig:()=>Tvr,CheckRuleSeverity:()=>Z7,CheckRulesConfig:()=>Svr,CollapsedStringValue:()=>ovr,CollapsedValue:()=>bX,ColorConfig:()=>NI,ColorThemedConfig:()=>Ovr,ColorsConfiguration:()=>Bvr,ContentAlignment:()=>Pvr,CssConfig:()=>Dvr,CustomDomain:()=>Rvr,CustomPageAction:()=>kvr,DocsConfiguration:()=>KXa,DocsInstance:()=>Qvr,DocsSettingsConfig:()=>_vr,DocsTypographyConfig:()=>Jvr,EditThisPageConfig:()=>jvr,EditThisPageLaunch:()=>Fvr,ExperimentalConfig:()=>Yvr,ExternalProduct:()=>Vxr,FeatureFlag:()=>n2t,FeatureFlagConfiguration:()=>uvr,FolderConfiguration:()=>oCr,FontConfig:()=>iYe,FontConfigPath:()=>Hvr,FontConfigVariant:()=>Wvr,FontDisplay:()=>Kvr,FontStyle:()=>rYe,FontWeight:()=>nYe,FooterLinksConfig:()=>Xvr,FooterNavThemeConfig:()=>Hxr,FullStoryAnalyticsConfig:()=>ZIr,GitLibraryInputSchema:()=>lxr,GithubEditThisPageConfig:()=>Nvr,GoogleAnalytics4Config:()=>$Ir,GtmConfig:()=>evr,HeaderPosition:()=>ixr,HttpSnippetLanguage:()=>zvr,HttpSnippetsConfig:()=>Mvr,IntegrationsConfig:()=>Zvr,IntercomConfig:()=>tvr,InternalProduct:()=>Uxr,JsConfig:()=>nxr,JsConfigOptions:()=>s2t,JsFileConfig:()=>txr,JsFileConfigSettings:()=>exr,JsRemoteConfig:()=>rxr,JsScriptStrategy:()=>oYe,Language:()=>Fbe,LanguageSwitcherThemeConfig:()=>Kxr,LayoutConfig:()=>cxr,LibraryConfig:()=>uxr,LibraryConfiguration:()=>hxr,LibraryInputConfiguration:()=>fxr,LibraryLanguage:()=>dxr,LibraryName:()=>aYe,LibraryOutputConfiguration:()=>mxr,LibraryReferenceConfiguration:()=>sCr,LinkConfiguration:()=>eYe,LogoConfiguration:()=>Axr,MetadataConfig:()=>Exr,NavbarDropdownConfig:()=>vxr,NavbarGithubConfig:()=>Cxr,NavbarGithubConfigWithOptions:()=>xxr,NavbarLink:()=>wxr,NavbarLinkConfig:()=>vX,NavigationConfig:()=>jbe,NavigationItem:()=>xX,OgDynamicLogoColor:()=>yxr,PageActionOption:()=>Rxr,PageActionOptions:()=>jxr,PageActionsConfig:()=>Qxr,PageActionsThemeConfig:()=>Jxr,PageConfiguration:()=>bU,PageDescriptionSource:()=>qIr,PathLibraryInputSchema:()=>pxr,PlaygroundButtonSettings:()=>svr,PlaygroundSettings:()=>EX,PostHogConfig:()=>rvr,ProductConfig:()=>_xr,ProductConfigBase:()=>uYe,ProductFileConfig:()=>XXa,ProductPath:()=>$Xa,ProductSwitcherThemeConfig:()=>Yxr,ProgrammingLanguage:()=>Gxr,RedirectConfig:()=>qxr,RedirectsConfiguration:()=>Wxr,RelativeProductPath:()=>cCr,Role:()=>$Je,RoleId:()=>Oje,SearchSettingsConfig:()=>Lvr,SearchbarPlacement:()=>oxr,SectionConfiguration:()=>aCr,SegmentConfig:()=>nvr,SidebarThemeConfig:()=>Xxr,SkillEntry:()=>kxr,SkillsInstallCommand:()=>Fxr,SkillsPageActionConfig:()=>Nxr,SnippetLanguageConfiguration:()=>AU,SnippetsConfiguration:()=>cvr,SwitcherPlacement:()=>sxr,TabConfig:()=>Qbe,TabId:()=>EU,TabVariant:()=>Txr,TabbedNavigationConfig:()=>Pxr,TabbedNavigationItem:()=>Bxr,TabbedNavigationItemWithLayout:()=>Sxr,TabbedNavigationItemWithVariants:()=>Oxr,TabsAlignment:()=>Zxr,TabsPlacement:()=>sYe,TabsThemeConfig:()=>tCr,TabsThemeObjectConfig:()=>eCr,TabsThemeStyle:()=>lYe,Target:()=>yU,ThemeConfig:()=>rCr,TitleSource:()=>tYe,TranslationConfig:()=>iCr,TranslationConfigObject:()=>nCr,TwitterCardSetting:()=>bxr,UntabbedNavigationConfig:()=>Dxr,VersionAvailability:()=>zxr,VersionConfig:()=>cYe,VersionFileConfig:()=>rZa,VersionedSnippetLanguageConfiguration:()=>avr,WebSocketOneofDisplay:()=>Uvr,WithFeatureFlags:()=>Dd,WithPermissions:()=>Rd,WithViewers:()=>Nbe});var iZa=h(()=>{"use strict";seo()});var oZa=h(()=>{"use strict";iZa();seo()});var iQ={};Z(iQ,{AbsoluteProductPath:()=>GIr,AgentsConfig:()=>WIr,AiChatConfig:()=>e2t,AiChatDatasource:()=>KIr,AiChatLocation:()=>JIr,AiChatModel:()=>YIr,AiChatWebsiteDatasource:()=>HIr,AiExamplesConfig:()=>XIr,AnalyticsConfig:()=>ivr,AnnouncementConfig:()=>kbe,ApiReferenceConfiguration:()=>fvr,ApiReferenceEndpointConfiguration:()=>dvr,ApiReferenceLayout:()=>mvr,ApiReferenceLayoutItem:()=>IX,ApiReferenceOperationConfiguration:()=>hvr,ApiReferencePackageConfiguration:()=>Avr,ApiReferencePackageConfigurationWithOptions:()=>bvr,ApiReferenceSectionConfiguration:()=>yvr,Audience:()=>AX,AudienceId:()=>r2t,Availability:()=>s1,BackgroundImageConfiguration:()=>Ivr,BackgroundImageThemedConfig:()=>Evr,BlogConfiguration:()=>vvr,BodyThemeConfig:()=>xvr,ChangelogConfiguration:()=>Cvr,ChangelogFolderRelativePath:()=>ale,ChangelogLayout:()=>wvr,CheckConfig:()=>Tvr,CheckRuleSeverity:()=>Z7,CheckRulesConfig:()=>Svr,CollapsedStringValue:()=>ovr,CollapsedValue:()=>bX,ColorConfig:()=>NI,ColorThemedConfig:()=>Ovr,ColorsConfiguration:()=>Bvr,ContentAlignment:()=>Pvr,CssConfig:()=>Dvr,CustomDomain:()=>Rvr,CustomPageAction:()=>kvr,DocsConfiguration:()=>KXa,DocsInstance:()=>Qvr,DocsSettingsConfig:()=>_vr,DocsTypographyConfig:()=>Jvr,EditThisPageConfig:()=>jvr,EditThisPageLaunch:()=>Fvr,ExperimentalConfig:()=>Yvr,ExternalProduct:()=>Vxr,FeatureFlag:()=>n2t,FeatureFlagConfiguration:()=>uvr,FolderConfiguration:()=>oCr,FontConfig:()=>iYe,FontConfigPath:()=>Hvr,FontConfigVariant:()=>Wvr,FontDisplay:()=>Kvr,FontStyle:()=>rYe,FontWeight:()=>nYe,FooterLinksConfig:()=>Xvr,FooterNavThemeConfig:()=>Hxr,FullStoryAnalyticsConfig:()=>ZIr,GitLibraryInputSchema:()=>lxr,GithubEditThisPageConfig:()=>Nvr,GoogleAnalytics4Config:()=>$Ir,GtmConfig:()=>evr,HeaderPosition:()=>ixr,HttpSnippetLanguage:()=>zvr,HttpSnippetsConfig:()=>Mvr,IntegrationsConfig:()=>Zvr,IntercomConfig:()=>tvr,InternalProduct:()=>Uxr,JsConfig:()=>nxr,JsConfigOptions:()=>s2t,JsFileConfig:()=>txr,JsFileConfigSettings:()=>exr,JsRemoteConfig:()=>rxr,JsScriptStrategy:()=>oYe,Language:()=>Fbe,LanguageSwitcherThemeConfig:()=>Kxr,LayoutConfig:()=>cxr,LibraryConfig:()=>uxr,LibraryConfiguration:()=>hxr,LibraryInputConfiguration:()=>fxr,LibraryLanguage:()=>dxr,LibraryName:()=>aYe,LibraryOutputConfiguration:()=>mxr,LibraryReferenceConfiguration:()=>sCr,LinkConfiguration:()=>eYe,LogoConfiguration:()=>Axr,MetadataConfig:()=>Exr,NavbarDropdownConfig:()=>vxr,NavbarGithubConfig:()=>Cxr,NavbarGithubConfigWithOptions:()=>xxr,NavbarLink:()=>wxr,NavbarLinkConfig:()=>vX,NavigationConfig:()=>jbe,NavigationItem:()=>xX,OgDynamicLogoColor:()=>yxr,PageActionOption:()=>Rxr,PageActionOptions:()=>jxr,PageActionsConfig:()=>Qxr,PageActionsThemeConfig:()=>Jxr,PageConfiguration:()=>bU,PageDescriptionSource:()=>qIr,PathLibraryInputSchema:()=>pxr,PlaygroundButtonSettings:()=>svr,PlaygroundSettings:()=>EX,PostHogConfig:()=>rvr,ProductConfig:()=>_xr,ProductConfigBase:()=>uYe,ProductFileConfig:()=>XXa,ProductPath:()=>$Xa,ProductSwitcherThemeConfig:()=>Yxr,ProgrammingLanguage:()=>Gxr,RedirectConfig:()=>qxr,RedirectsConfiguration:()=>Wxr,RelativeProductPath:()=>cCr,Role:()=>$Je,RoleId:()=>Oje,SearchSettingsConfig:()=>Lvr,SearchbarPlacement:()=>oxr,SectionConfiguration:()=>aCr,SegmentConfig:()=>nvr,SidebarThemeConfig:()=>Xxr,SkillEntry:()=>kxr,SkillsInstallCommand:()=>Fxr,SkillsPageActionConfig:()=>Nxr,SnippetLanguageConfiguration:()=>AU,SnippetsConfiguration:()=>cvr,SwitcherPlacement:()=>sxr,TabConfig:()=>Qbe,TabId:()=>EU,TabVariant:()=>Txr,TabbedNavigationConfig:()=>Pxr,TabbedNavigationItem:()=>Bxr,TabbedNavigationItemWithLayout:()=>Sxr,TabbedNavigationItemWithVariants:()=>Oxr,TabsAlignment:()=>Zxr,TabsPlacement:()=>sYe,TabsThemeConfig:()=>tCr,TabsThemeObjectConfig:()=>eCr,TabsThemeStyle:()=>lYe,Target:()=>yU,ThemeConfig:()=>rCr,TitleSource:()=>tYe,TranslationConfig:()=>iCr,TranslationConfigObject:()=>nCr,TwitterCardSetting:()=>bxr,UntabbedNavigationConfig:()=>Dxr,VersionAvailability:()=>zxr,VersionConfig:()=>cYe,VersionFileConfig:()=>rZa,VersionedSnippetLanguageConfiguration:()=>avr,WebSocketOneofDisplay:()=>Uvr,WithFeatureFlags:()=>Dd,WithPermissions:()=>Rd,WithViewers:()=>Nbe,docs:()=>aeo});var SL=h(()=>{"use strict";oZa()});var sZa=h(()=>{"use strict";PXi();OYa();RYa();SL()});var ceo={};Z(ceo,{AiChatLocation:()=>HYi,AiChatModel:()=>KYi,ApiReferenceLayout:()=>JYi,Availability:()=>YYi,BodyThemeConfig:()=>XYi,ChangelogLayout:()=>ZYi,CheckRuleSeverity:()=>$Yi,CollapsedStringValue:()=>eXi,ContentAlignment:()=>tXi,EditThisPageLaunch:()=>rXi,FernDocsConfig:()=>BXi,FernDocsConfigError:()=>HFt,FernDocsConfigTimeoutError:()=>KFt,FontDisplay:()=>nXi,FontStyle:()=>iXi,FooterNavThemeConfig:()=>oXi,HeaderPosition:()=>sXi,HttpSnippetLanguage:()=>aXi,JsScriptStrategy:()=>cXi,LanguageSwitcherThemeConfig:()=>uXi,LibraryLanguage:()=>lXi,OgDynamicLogoColor:()=>pXi,PageActionOption:()=>fXi,PageActionsThemeConfig:()=>dXi,PageDescriptionSource:()=>mXi,ProductSwitcherThemeConfig:()=>hXi,ProgrammingLanguage:()=>gXi,SearchbarPlacement:()=>AXi,Serializer:()=>iQ,SidebarThemeConfig:()=>yXi,SwitcherPlacement:()=>bXi,TabsAlignment:()=>EXi,TabsPlacement:()=>IXi,TabsThemeStyle:()=>vXi,Target:()=>xXi,TitleSource:()=>CXi,TwitterCardSetting:()=>wXi,VersionAvailability:()=>SXi,WebSocketOneofDisplay:()=>TXi,docs:()=>zIr,logging:()=>kXi,serialization:()=>iQ});var aZa=h(()=>{"use strict";sZa();PXi();SL()});function LRf(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}var cZa,uZa,VRf,lZa=h(()=>{"use strict";cZa={logo:"global",favicon:"global",backgroundImage:"global",colors:"global",typography:"global",layout:"global",settings:"global",theme:"global",integrations:"global",css:"global",js:"global",header:"global",footer:"global",navbarLinks:"global",footerLinks:"global",aiSearch:"global",announcement:"global",metadata:"global"},uZa=Object.keys(cZa);VRf=new Set(uZa.map(LRf))});var Hc={};Z(Hc,{DEFAULT_BLOG_TITLE:()=>xRf,DEFAULT_CHANGELOG_TITLE:()=>vRf,DocsYmlSchemas:()=>WYi,RawSchemas:()=>ceo,THEME_ELIGIBLE_FIELDS:()=>uZa,THEME_ELIGIBLE_YAML_KEYS:()=>VRf,THEME_FIELD_POLICIES:()=>cZa,getChangelogFolderFromNavigationItem:()=>CRf,getChangelogFolderFromTabConfig:()=>wRf});var pZa=h(()=>{"use strict";wHa();SHa();THa();aZa();lZa()});var fZa=h(()=>{"use strict"});async function CX({absolutePathToFernignore:e}){let t=(await(0,dZa.readFile)(e)).toString();return mZa(t)}function mZa(e){return[i1,...e.trim().split(_Rf).map(t=>{let r=t.indexOf("#");return r!==-1?t.slice(0,r).trim():t.trim()}).filter(t=>t.length>0)]}var dZa,_Rf,hZa=h(()=>{"use strict";dZa=require("fs/promises");V0r();_Rf=/\r?\n/});function AZa({generatorInvocation:e}){return e.language==="go"?GRf(e):e.outputMode._visit({downloadFiles:()=>{},github:t=>t.publishInfo?._visit({maven:r=>r.coordinate,npm:r=>r.packageName,pypi:r=>r.packageName,postman:()=>{},rubygems:r=>r.packageName,nuget:r=>r.packageName,crates:r=>r.packageName,_other:()=>{}}),githubV2:t=>t.publishInfo?._visit({maven:r=>r.coordinate,npm:r=>r.packageName,pypi:r=>r.packageName,postman:()=>{},rubygems:r=>r.packageName,nuget:r=>r.packageName,crates:r=>r.packageName,_other:()=>{}}),publish:()=>{},publishV2:()=>{},_other:()=>{}})}function GRf(e){return e.outputMode._visit({downloadFiles:()=>{},github:t=>`github.com/${t.owner}/${t.repo}`,githubV2:t=>`github.com/${t.owner}/${t.repo}`,publish:()=>{},publishV2:()=>{},_other:()=>{}})}var gZa,yZa=h(()=>{"use strict";gZa={TYPESCRIPT:"typescript",JAVA:"java",PYTHON:"python",GO:"go",RUBY:"ruby",CSHARP:"csharp",SWIFT:"swift",PHP:"php",RUST:"rust"}});function bZa(e){return typeof e!="string"&&"proto"in e}var EZa=h(()=>{"use strict"});function IZa({rootAutomation:e,groupAutomation:t,generatorAutomation:r}){return{generate:r?.generate??t?.generate??e?.generate??uCr.generate,upgrade:r?.upgrade??t?.upgrade??e?.upgrade??uCr.upgrade,preview:r?.preview??t?.preview??e?.preview??uCr.preview,verify:r?.verify??t?.verify??e?.verify??uCr.verify}}var uCr,vZa=h(()=>{"use strict";uCr={generate:!0,upgrade:!0,preview:!0,verify:!0}});var xZa=h(()=>{"use strict"});var CZa=h(()=>{"use strict"});var wZa,SZa=h(()=>{"use strict";wZa={Openai:"openai",Anthropic:"anthropic",AwsBedrock:"aws-bedrock"}});var ueo=h(()=>{"use strict";xZa();CZa();SZa()});var leo={};Z(leo,{ModelProvider:()=>wZa});var TZa=h(()=>{"use strict";ueo()});var OZa=h(()=>{"use strict"});var peo=h(()=>{"use strict";OZa()});var BZa={};var PZa=h(()=>{"use strict";peo()});var DZa=h(()=>{"use strict"});var RZa=h(()=>{"use strict"});var kZa=h(()=>{"use strict"});var FZa=h(()=>{"use strict"});var NZa=h(()=>{"use strict"});var jZa=h(()=>{"use strict"});var QZa=h(()=>{"use strict"});var zZa=h(()=>{"use strict"});var MZa=h(()=>{"use strict"});var LZa=h(()=>{"use strict"});var VZa=h(()=>{"use strict"});var UZa=h(()=>{"use strict"});var _Za=h(()=>{"use strict"});var GZa=h(()=>{"use strict"});var qZa=h(()=>{"use strict"});var WZa=h(()=>{"use strict"});var HZa=h(()=>{"use strict"});var KZa=h(()=>{"use strict"});var JZa,YZa=h(()=>{"use strict";JZa={ClientCredentials:"client-credentials",AuthorizationCode:"authorization-code",DeviceCode:"device-code"}});var XZa=h(()=>{"use strict"});var ZZa=h(()=>{"use strict"});var $Za=h(()=>{"use strict"});var e$a=h(()=>{"use strict"});var t$a=h(()=>{"use strict"});var r$a=h(()=>{"use strict"});var n$a=h(()=>{"use strict"});var i$a=h(()=>{"use strict"});var o$a=h(()=>{"use strict"});var s$a=h(()=>{"use strict"});var feo=h(()=>{"use strict";DZa();RZa();kZa();FZa();NZa();jZa();QZa();zZa();MZa();LZa();VZa();UZa();_Za();GZa();qZa();WZa();HZa();KZa();YZa();XZa();ZZa();$Za();e$a();t$a();r$a();n$a();i$a();o$a();s$a()});var deo={};Z(deo,{OAuthFlowTypeSchema:()=>JZa});var a$a=h(()=>{"use strict";feo()});var c$a=h(()=>{"use strict"});var u$a,l$a=h(()=>{"use strict";u$a={InDevelopment:"in-development",PreRelease:"pre-release",Deprecated:"deprecated",GenerallyAvailable:"generally-available"}});var p$a=h(()=>{"use strict"});var meo=h(()=>{"use strict";c$a();l$a();p$a()});var heo={};Z(heo,{AvailabilityStatusSchema:()=>u$a});var f$a=h(()=>{"use strict";meo()});var d$a=h(()=>{"use strict"});var m$a=h(()=>{"use strict"});var h$a=h(()=>{"use strict"});var g$a=h(()=>{"use strict"});var geo=h(()=>{"use strict";d$a();m$a();h$a();g$a()});var A$a={};var y$a=h(()=>{"use strict";geo()});var b$a=h(()=>{"use strict"});var E$a=h(()=>{"use strict"});var Aeo=h(()=>{"use strict";b$a();E$a()});var I$a={};var v$a=h(()=>{"use strict";Aeo()});var x$a=h(()=>{"use strict"});var C$a=h(()=>{"use strict"});var w$a=h(()=>{"use strict"});var S$a=h(()=>{"use strict"});var T$a=h(()=>{"use strict"});var yeo=h(()=>{"use strict";x$a();C$a();w$a();S$a();T$a()});var O$a={};var B$a=h(()=>{"use strict";yeo()});var P$a=h(()=>{"use strict"});var beo=h(()=>{"use strict";P$a()});var D$a={};var R$a=h(()=>{"use strict";beo()});var k$a=h(()=>{"use strict"});var F$a=h(()=>{"use strict"});var N$a=h(()=>{"use strict"});var Eeo=h(()=>{"use strict";k$a();F$a();N$a()});var j$a={};var Q$a=h(()=>{"use strict";Eeo()});var z$a=h(()=>{"use strict"});var M$a=h(()=>{"use strict"});var Ieo=h(()=>{"use strict";z$a();M$a()});var L$a={};var V$a=h(()=>{"use strict";Ieo()});var U$a=h(()=>{"use strict"});var _$a=h(()=>{"use strict"});var G$a=h(()=>{"use strict"});var q$a=h(()=>{"use strict"});var W$a=h(()=>{"use strict"});var veo=h(()=>{"use strict";U$a();_$a();G$a();q$a();W$a()});var H$a={};var K$a=h(()=>{"use strict";veo()});var J$a=h(()=>{"use strict";a$a();feo();f$a();meo();y$a();geo();v$a();Aeo();B$a();yeo();R$a();beo();Q$a();Eeo();V$a();Ieo();K$a();veo()});var xeo={};Z(xeo,{AvailabilityStatusSchema:()=>u$a,OAuthFlowTypeSchema:()=>JZa,auth:()=>deo,availability:()=>heo,commons:()=>A$a,encoding:()=>I$a,environments:()=>O$a,file:()=>D$a,service:()=>j$a,types:()=>L$a,validation:()=>H$a});var Y$a=h(()=>{"use strict";J$a()});var X$a=h(()=>{"use strict"});var Z$a=h(()=>{"use strict"});var $$a=h(()=>{"use strict"});var eec=h(()=>{"use strict"});var tec=h(()=>{"use strict"});var rec=h(()=>{"use strict"});var nec=h(()=>{"use strict"});var iec=h(()=>{"use strict"});var oec=h(()=>{"use strict"});var sec=h(()=>{"use strict"});var aec=h(()=>{"use strict"});var cec=h(()=>{"use strict"});var uec=h(()=>{"use strict"});var lec,pec=h(()=>{"use strict";lec={Literals:"literals",Enums:"enums",EnumsCoerceableToLiterals:"enums-coerceable-to-literals"}});var fec=h(()=>{"use strict"});var dec,mec=h(()=>{"use strict";dec={Int32:"int32",Int64:"int64",Uint32:"uint32",Uint64:"uint64"}});var hec,gec=h(()=>{"use strict";hec={Minimal:"minimal",Comprehensive:"comprehensive"}});var Aec,yec=h(()=>{"use strict";Aec={Form:"form",Json:"json"}});var bec=h(()=>{"use strict"});var Eec=h(()=>{"use strict"});var Iec=h(()=>{"use strict"});var vec=h(()=>{"use strict"});var xec=h(()=>{"use strict"});var Cec=h(()=>{"use strict"});var wec,Sec=h(()=>{"use strict";wec={Java:"java",Python:"python",Go:"go",Ruby:"ruby",Csharp:"csharp",Typescript:"typescript",Php:"php",Rust:"rust",Swift:"swift"}});var Tec,Oec=h(()=>{"use strict";Tec={V1:"v1",V2:"v2"}});var Bec,Pec=h(()=>{"use strict";Bec={EnvironmentPerServer:"environment-per-server",UrlsPerEnvironment:"urls-per-environment"}});var Dec=h(()=>{"use strict"});var Rec=h(()=>{"use strict"});var kec=h(()=>{"use strict"});var Fec=h(()=>{"use strict"});var Nec=h(()=>{"use strict"});var jec=h(()=>{"use strict"});var Qec=h(()=>{"use strict"});var zec=h(()=>{"use strict"});var Mec=h(()=>{"use strict"});var Lec,Vec=h(()=>{"use strict";Lec={UrlOrder:"url-order",SpecOrder:"spec-order"}});var Uec=h(()=>{"use strict"});var _ec=h(()=>{"use strict"});var Gec=h(()=>{"use strict"});var qec=h(()=>{"use strict"});var Wec=h(()=>{"use strict"});var Hec=h(()=>{"use strict"});var Kec=h(()=>{"use strict"});var Jec,Yec=h(()=>{"use strict";Jec={Always:"always",Never:"never"}});var Xec=h(()=>{"use strict"});var Zec=h(()=>{"use strict"});var $ec=h(()=>{"use strict"});var etc=h(()=>{"use strict"});var ttc=h(()=>{"use strict"});var rtc=h(()=>{"use strict"});var ntc,itc=h(()=>{"use strict";ntc={V1:"v1"}});var otc=h(()=>{"use strict"});var stc=h(()=>{"use strict"});var Ceo=h(()=>{"use strict";X$a();Z$a();$$a();eec();tec();rec();nec();iec();oec();sec();aec();cec();uec();pec();fec();mec();gec();yec();bec();Eec();Iec();vec();xec();Cec();Sec();Oec();Pec();Dec();Rec();kec();Fec();Nec();jec();Qec();zec();Mec();Vec();Uec();_ec();Gec();qec();Wec();Hec();Kec();Yec();Xec();Zec();$ec();etc();ttc();rtc();itc();otc();stc()});var weo={};Z(weo,{CoerceConstsTo:()=>lec,DefaultIntegerFormat:()=>dec,ExampleStyle:()=>hec,FormParameterEncoding:()=>Aec,Language:()=>wec,MessageNamingSettingsSchema:()=>Tec,MultiServerStrategy:()=>Bec,PathParameterOrder:()=>Lec,RemoveDiscriminantsFromSchemas:()=>Jec,UnionSettingsSchema:()=>ntc});var atc=h(()=>{"use strict";Ceo()});var ctc=h(()=>{"use strict"});var utc=h(()=>{"use strict"});var ltc=h(()=>{"use strict"});var ptc=h(()=>{"use strict"});var ftc=h(()=>{"use strict"});var dtc=h(()=>{"use strict"});var mtc=h(()=>{"use strict"});var htc=h(()=>{"use strict"});var gtc=h(()=>{"use strict"});var Atc=h(()=>{"use strict"});var ytc,btc=h(()=>{"use strict";ytc={Commit:"commit",Release:"release"}});var Etc=h(()=>{"use strict"});var Itc=h(()=>{"use strict"});var vtc=h(()=>{"use strict"});var xtc=h(()=>{"use strict"});var Ctc,wtc=h(()=>{"use strict";Ctc={PullRequest:"pull-request",Push:"push",CommitAndRelease:"commit-and-release"}});var Stc=h(()=>{"use strict"});var Ttc=h(()=>{"use strict"});var Otc=h(()=>{"use strict"});var Btc=h(()=>{"use strict"});var Ptc=h(()=>{"use strict"});var Dtc=h(()=>{"use strict"});var Rtc=h(()=>{"use strict"});var ktc=h(()=>{"use strict"});var Ftc=h(()=>{"use strict"});var Ntc=h(()=>{"use strict"});var Seo=h(()=>{"use strict";ctc();utc();ltc();ptc();ftc();dtc();mtc();htc();gtc();Atc();btc();Etc();Itc();vtc();xtc();wtc();Stc();Ttc();Otc();Btc();Ptc();Dtc();Rtc();ktc();Ftc();Ntc()});var Teo={};Z(Teo,{GithubCommitAndReleaseMode:()=>ytc,GithubSelfhostedMode:()=>Ctc});var jtc=h(()=>{"use strict";Seo()});var Qtc=h(()=>{"use strict"});var ztc=h(()=>{"use strict"});var Mtc,Ltc=h(()=>{"use strict";Mtc={Mit:"MIT",Apache:"Apache-2.0"}});var Oeo=h(()=>{"use strict";Qtc();ztc();Ltc()});var Beo={};Z(Beo,{GithubLicenseType:()=>Mtc});var Vtc=h(()=>{"use strict";Oeo()});var Utc=h(()=>{"use strict"});var Peo=h(()=>{"use strict";Utc()});var _tc={};var Gtc=h(()=>{"use strict";Peo()});var qtc=h(()=>{"use strict"});var Wtc=h(()=>{"use strict"});var Deo=h(()=>{"use strict";qtc();Wtc()});var Htc={};var Ktc=h(()=>{"use strict";Deo()});var Jtc=h(()=>{"use strict";TZa();ueo();PZa();peo();Y$a();atc();Ceo();jtc();Seo();Vtc();Oeo();Gtc();Peo();Ktc();Deo()});var Ytc=h(()=>{"use strict";Jtc()});var cle,Xtc,Reo,keo,Gqb,Ztc=h(()=>{"use strict";cle={Debug:"debug",Info:"info",Warn:"warn",Error:"error"},Xtc={[cle.Debug]:1,[cle.Info]:2,[cle.Warn]:3,[cle.Error]:4},Reo=class{debug(t,...r){console.debug(t,...r)}info(t,...r){console.info(t,...r)}warn(t,...r){console.warn(t,...r)}error(t,...r){console.error(t,...r)}},keo=class{level;logger;silent;constructor(t){this.level=Xtc[t.level],this.logger=t.logger,this.silent=t.silent}shouldLog(t){return!this.silent&&this.level<=Xtc[t]}isDebug(){return this.shouldLog(cle.Debug)}debug(t,...r){this.isDebug()&&this.logger.debug(t,...r)}isInfo(){return this.shouldLog(cle.Info)}info(t,...r){this.isInfo()&&this.logger.info(t,...r)}isWarn(){return this.shouldLog(cle.Warn)}warn(t,...r){this.isWarn()&&this.logger.warn(t,...r)}isError(){return this.shouldLog(cle.Error)}error(t,...r){this.isError()&&this.logger.error(t,...r)}},Gqb=new keo({level:cle.Info,logger:new Reo,silent:!0})});var $tc=h(()=>{"use strict"});var erc=h(()=>{"use strict";Ztc()});var trc=h(()=>{"use strict"});var qu,Fw=h(()=>{"use strict";qu={BIGINT:"bigint",DATE:"date",ENUM:"enum",LIST:"list",STRING_LITERAL:"stringLiteral",BOOLEAN_LITERAL:"booleanLiteral",OBJECT:"object",ANY:"any",BOOLEAN:"boolean",NUMBER:"number",STRING:"string",UNKNOWN:"unknown",NEVER:"never",RECORD:"record",SET:"set",UNION:"union",UNDISCRIMINATED_UNION:"undiscriminatedUnion",NULLABLE:"nullable",OPTIONAL:"optional",OPTIONAL_NULLABLE:"optionalNullable"}});function um(e,t){return`Expected ${t}. Received ${WRf(e)}.`}function WRf(e){if(Array.isArray(e))return"list";if(e===null)return"null";if(e instanceof BigInt)return"BigInt";switch(typeof e){case"string":return`"${e}"`;case"bigint":case"number":case"boolean":case"undefined":return`${e}`}return typeof e}var vF=h(()=>{"use strict"});function u1(e){return{...e,json:rrc(e.json),parse:rrc(e.parse)}}function rrc(e){return(t,r)=>{let n=e(t,r),{skipValidation:i=!1}=r??{};return!n.ok&&i?(console.warn(["Failed to validate.",...n.errors.map(o=>" - "+(o.path.length>0?`${o.path.join(".")}: ${o.message}`:o.message))].join(`
174
174
  `)),{ok:!0,value:t}):n}}var wX=h(()=>{"use strict"});function lCr(e){return e.path.length===0?e.message:`${e.path.join(" -> ")}: ${e.message}`}var Feo=h(()=>{"use strict"});var pYe,Neo=h(()=>{"use strict";Feo();pYe=class extends Error{errors;constructor(t){super(t.map(lCr).join("; ")),this.errors=t,Object.setPrototypeOf(this,new.target.prototype),this.name=this.constructor.name}}});var fYe,jeo=h(()=>{"use strict";Feo();fYe=class extends Error{errors;constructor(t){super(t.map(lCr).join("; ")),this.errors=t,Object.setPrototypeOf(this,new.target.prototype),this.name=this.constructor.name}}});function Jm(e){return{nullable:()=>HRf(e),optional:()=>Qeo(e),optionalNullable:()=>KRf(e),transform:t=>zeo(e,t),parseOrThrow:(t,r)=>{let n=e.parse(t,r);if(n.ok)return n.value;throw new fYe(n.errors)},jsonOrThrow:(t,r)=>{let n=e.json(t,r);if(n.ok)return n.value;throw new pYe(n.errors)}}}function HRf(e){let t={parse:(r,n)=>r==null?{ok:!0,value:null}:e.parse(r,n),json:(r,n)=>r==null?{ok:!0,value:null}:e.json(r,n),getType:()=>qu.NULLABLE};return{...t,...Jm(t)}}function Qeo(e){let t={parse:(r,n)=>r==null?{ok:!0,value:void 0}:e.parse(r,n),json:(r,n)=>n?.omitUndefined&&r===void 0?{ok:!0,value:void 0}:r==null?{ok:!0,value:null}:e.json(r,n),getType:()=>qu.OPTIONAL};return{...t,...Jm(t)}}function KRf(e){let t={parse:(r,n)=>r===void 0?{ok:!0,value:void 0}:r===null?{ok:!0,value:null}:e.parse(r,n),json:(r,n)=>r===void 0?{ok:!0,value:void 0}:r===null?{ok:!0,value:null}:e.json(r,n),getType:()=>qu.OPTIONAL_NULLABLE};return{...t,...Jm(t)}}function zeo(e,t){let r={parse:(n,i)=>{let o=e.parse(n,i);return o.ok?{ok:!0,value:t.transform(o.value)}:o},json:(n,i)=>{let o=t.untransform(n);return e.json(o,i)},getType:()=>e.getType()};return{...r,...Jm(r)}}var nrc=h(()=>{"use strict";Fw();Neo();jeo()});var oQ=h(()=>{"use strict";nrc();Neo();jeo()});function irc(){let e={parse:(t,{breadcrumbsPrefix:r=[]}={})=>typeof t=="bigint"?{ok:!0,value:t}:typeof t=="number"?{ok:!0,value:BigInt(t)}:{ok:!1,errors:[{path:r,message:um(t,"bigint | number")}]},json:(t,{breadcrumbsPrefix:r=[]}={})=>typeof t!="bigint"?{ok:!1,errors:[{path:r,message:um(t,"bigint")}]}:{ok:!0,value:t},getType:()=>qu.BIGINT};return{...u1(e),...Jm(e)}}var orc=h(()=>{"use strict";Fw();vF();wX();oQ()});var src=h(()=>{"use strict";orc()});function arc(){let e={parse:(t,{breadcrumbsPrefix:r=[]}={})=>typeof t!="string"?{ok:!1,errors:[{path:r,message:um(t,"string")}]}:JRf.test(t)?{ok:!0,value:new Date(t)}:{ok:!1,errors:[{path:r,message:um(t,"ISO 8601 date string")}]},json:(t,{breadcrumbsPrefix:r=[]}={})=>t instanceof Date?{ok:!0,value:t.toISOString()}:{ok:!1,errors:[{path:r,message:um(t,"Date object")}]},getType:()=>qu.DATE};return{...u1(e),...Jm(e)}}var JRf,crc=h(()=>{"use strict";Fw();vF();wX();oQ();JRf=/^([+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([.,]\d+(?!:))?)?(\17[0-5]\d([.,]\d+)?)?([zZ]|([+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/});var urc=h(()=>{"use strict";crc()});function l1(e,t){return()=>{let r={parse:t,json:t,getType:()=>e};return{...u1(r),...Jm(r)}}}var SX=h(()=>{"use strict";oQ();wX()});function pCr(e){let t=new Set(e);return l1(qu.ENUM,(n,{allowUnrecognizedEnumValues:i,breadcrumbsPrefix:o=[]}={})=>typeof n!="string"?{ok:!1,errors:[{path:o,message:um(n,"string")}]}:!t.has(n)&&!i?{ok:!1,errors:[{path:o,message:um(n,"enum")}]}:{ok:!0,value:n})()}var lrc=h(()=>{"use strict";Fw();SX();vF()});var Meo=h(()=>{"use strict";lrc()});function prc(e){let t=Leo(e);return{...t,...Jm(t)}}function Leo(e){return{parse:(t,r)=>dYe(e).parse(t,r),json:(t,r)=>dYe(e).json(t,r),getType:()=>dYe(e).getType()}}function dYe(e){let t=e;return t.__zurg_memoized==null&&(t.__zurg_memoized=e()),t.__zurg_memoized}var Veo=h(()=>{"use strict";oQ()});function Ueo(e){return Object.entries(e)}var frc=h(()=>{"use strict"});function l2t(e,t){let r=new Set(t);return Object.entries(e).reduce((n,[i,o])=>(r.has(i)&&(n[i]=o),n),{})}var _eo=h(()=>{"use strict"});function ule(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return t===null?!0:Object.getPrototypeOf(t)===null}var p2t=h(()=>{"use strict"});function f2t(e){return Object.keys(e)}var Geo=h(()=>{"use strict"});function drc(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}var mrc=h(()=>{"use strict"});function $7(e){return{withParsedProperties:t=>qeo(e,t)}}function qeo(e,t){let r={parse:(n,i)=>{let o=e.parse(n,i);if(!o.ok)return o;let s={};for(let a in t)if(YRf.call(t,a)){let c=t[a];s[a]=typeof c=="function"?c(o.value):c}return{ok:!0,value:{...o.value,...s}}},json:(n,i)=>{if(!ule(n))return{ok:!1,errors:[{path:i?.breadcrumbsPrefix??[],message:um(n,"object")}]};let o=new Set(Object.keys(t)),s=l2t(n,Object.keys(n).filter(a=>!o.has(a)));return e.json(s,i)},getType:()=>e.getType()};return{...r,...Jm(r),...$7(r)}}var YRf,hrc=h(()=>{"use strict";_eo();vF();p2t();oQ();YRf=Object.prototype.hasOwnProperty});var d2t=h(()=>{"use strict";hrc()});function grc(e,t){return{rawKey:e,valueSchema:t,isProperty:!0}}function lle(e){return e.isProperty}var Weo=h(()=>{"use strict"});function fCr(e){let t;function r(){if(t==null){t={};for(let[d,f]of Ueo(e)){let m=lle(f)?f.rawKey:d,g=lle(f)?f.valueSchema:f;t[m]={rawKey:m,parsedKey:d,valueSchema:g}}}return t}let n,i,o,s;function a(){if(n==null){n=[],i=[];for(let[d,f]of Ueo(e)){let m=lle(f)?f.rawKey:d,g=lle(f)?f.valueSchema:f;ZRf(g)&&(n.push(m),i.push(d))}o=new Set(n),s=new Set(i)}return n}function c(){return i==null&&a(),i}function u(){return o==null&&a(),o}function l(){return s==null&&a(),s}let p={_getRawProperties:()=>Object.entries(e).map(([d,f])=>lle(f)?f.rawKey:d),_getParsedProperties:()=>f2t(e),parse:(d,f)=>{let m=f?.breadcrumbsPrefix??[];return Arc({value:d,requiredKeys:a(),requiredKeysSet:u(),getProperty:g=>{let A=r()[g];if(A!=null)return{transformedKey:A.parsedKey,transform:y=>{let E=[...m,g];return A.valueSchema.parse(y,{...f,breadcrumbsPrefix:E})}}},unrecognizedObjectKeys:f?.unrecognizedObjectKeys,skipValidation:f?.skipValidation,breadcrumbsPrefix:m,omitUndefined:f?.omitUndefined})},json:(d,f)=>{let m=f?.breadcrumbsPrefix??[];return Arc({value:d,requiredKeys:c(),requiredKeysSet:l(),getProperty:g=>{let A=e[g];if(A!=null)return lle(A)?{transformedKey:A.rawKey,transform:y=>{let E=[...m,g];return A.valueSchema.json(y,{...f,breadcrumbsPrefix:E})}}:{transformedKey:g,transform:y=>{let E=[...m,g];return A.json(y,{...f,breadcrumbsPrefix:E})}}},unrecognizedObjectKeys:f?.unrecognizedObjectKeys,skipValidation:f?.skipValidation,breadcrumbsPrefix:m,omitUndefined:f?.omitUndefined})},getType:()=>qu.OBJECT};return{...u1(p),...Jm(p),...$7(p),...Rje(p)}}function Arc({value:e,requiredKeys:t,requiredKeysSet:r,getProperty:n,unrecognizedObjectKeys:i="fail",skipValidation:o=!1,breadcrumbsPrefix:s=[]}){if(!ule(e))return{ok:!1,errors:[{path:s,message:um(e,"object")}]};let a=t.length,c=[],u={};for(let l in e){if(!XRf.call(e,l))continue;let p=e[l],d=n(l);if(d!=null){a>0&&r.has(l)&&a--;let f=d.transform(p);f.ok?u[d.transformedKey]=f.value:(u[l]=p,c.push(...f.errors))}else switch(i){case"fail":c.push({path:[...s,l],message:`Unexpected key "${l}"`});break;case"strip":break;case"passthrough":u[l]=p;break}}if(a>0)for(let l of t)l in e||c.push({path:s,message:`Missing required key "${l}"`});return c.length===0||o?{ok:!0,value:u}:{ok:!1,errors:c}}function Rje(e){return{extend:t=>{let r={_getParsedProperties:()=>[...e._getParsedProperties(),...t._getParsedProperties()],_getRawProperties:()=>[...e._getRawProperties(),...t._getRawProperties()],parse:(n,i)=>yrc({extensionKeys:t._getRawProperties(),value:n,transformBase:o=>e.parse(o,i),transformExtension:o=>t.parse(o,i),breadcrumbsPrefix:i?.breadcrumbsPrefix}),json:(n,i)=>yrc({extensionKeys:t._getParsedProperties(),value:n,transformBase:o=>e.json(o,i),transformExtension:o=>t.json(o,i),breadcrumbsPrefix:i?.breadcrumbsPrefix}),getType:()=>qu.OBJECT};return{...r,...Jm(r),...$7(r),...Rje(r)}},passthrough:()=>{let t=new Set(e._getRawProperties()),r=new Set(e._getParsedProperties()),n={_getParsedProperties:()=>e._getParsedProperties(),_getRawProperties:()=>e._getRawProperties(),parse:(i,o)=>{let s=e.parse(i,{...o,unrecognizedObjectKeys:"passthrough"});if(!s.ok)return s;let a={};if(typeof i=="object"&&i!=null)for(let[c,u]of Object.entries(i))t.has(c)||(a[c]=u);return{ok:!0,value:{...a,...s.value}}},json:(i,o)=>{let s=e.json(i,{...o,unrecognizedObjectKeys:"passthrough"});if(!s.ok)return s;let a={};if(typeof i=="object"&&i!=null)for(let[c,u]of Object.entries(i))r.has(c)||(a[c]=u);return{ok:!0,value:{...a,...s.value}}},getType:()=>qu.OBJECT};return{...n,...Jm(n),...$7(n),...Rje(n)}}}}function yrc({extensionKeys:e,value:t,transformBase:r,transformExtension:n,breadcrumbsPrefix:i=[]}){if(!ule(t))return{ok:!1,errors:[{path:i,message:um(t,"object")}]};let o=new Set(e),[s,a]=drc(f2t(t),l=>o.has(l)),c=r(l2t(t,a)),u=n(l2t(t,s));return c.ok&&u.ok?{ok:!0,value:{...c.value,...u.value}}:{ok:!1,errors:[...c.ok?[]:c.errors,...u.ok?[]:u.errors]}}function ZRf(e){return!$Rf(e)}function $Rf(e){switch(e.getType()){case qu.ANY:case qu.UNKNOWN:case qu.OPTIONAL:case qu.OPTIONAL_NULLABLE:return!0;default:return!1}}var XRf,Heo=h(()=>{"use strict";Fw();frc();_eo();vF();p2t();Geo();wX();mrc();d2t();oQ();Weo();XRf=Object.prototype.hasOwnProperty});function brc(e){return fCr(e)}var Erc=h(()=>{"use strict";Heo()});var Keo=h(()=>{"use strict";Heo();Erc();Weo()});function Irc(e){let t={...Leo(e),_getRawProperties:()=>dYe(e)._getRawProperties(),_getParsedProperties:()=>dYe(e)._getParsedProperties()};return{...t,...Jm(t),...$7(t),...Rje(t)}}var vrc=h(()=>{"use strict";Keo();d2t();oQ();Veo()});var xrc=h(()=>{"use strict";Veo();vrc()});function dCr(e){let t={parse:(r,n)=>Crc(r,(i,o)=>e.parse(i,{...n,breadcrumbsPrefix:[...n?.breadcrumbsPrefix??[],`[${o}]`]})),json:(r,n)=>Crc(r,(i,o)=>e.json(i,{...n,breadcrumbsPrefix:[...n?.breadcrumbsPrefix??[],`[${o}]`]})),getType:()=>qu.LIST};return{...u1(t),...Jm(t)}}function Crc(e,t){if(!Array.isArray(e))return{ok:!1,errors:[{message:um(e,"list"),path:[]}]};let r=[],n=[];for(let i=0;i<e.length;i++){let o=t(e[i],i);o.ok?r.push(o.value):n.push(...o.errors)}return n.length===0?{ok:!0,value:r}:{ok:!1,errors:n}}var wrc=h(()=>{"use strict";Fw();vF();wX();oQ()});var Jeo=h(()=>{"use strict";wrc()});function Src(e){return l1(qu.BOOLEAN_LITERAL,(r,{breadcrumbsPrefix:n=[]}={})=>r===e?{ok:!0,value:e}:{ok:!1,errors:[{path:n,message:um(r,`${e.toString()}`)}]})()}var Trc=h(()=>{"use strict";Fw();SX();vF()});function Orc(e){return l1(qu.STRING_LITERAL,(r,{breadcrumbsPrefix:n=[]}={})=>r===e?{ok:!0,value:e}:{ok:!1,errors:[{path:n,message:um(r,`"${e}"`)}]})()}var Brc=h(()=>{"use strict";Fw();SX();vF()});var Prc=h(()=>{"use strict";Trc();Brc()});var Drc,Rrc=h(()=>{"use strict";Fw();SX();Drc=l1(qu.ANY,e=>({ok:!0,value:e}))});var krc,Frc=h(()=>{"use strict";Fw();SX();vF();krc=l1(qu.BOOLEAN,(e,{breadcrumbsPrefix:t=[]}={})=>typeof e=="boolean"?{ok:!0,value:e}:{ok:!1,errors:[{path:t,message:um(e,"boolean")}]})});var Nrc,jrc=h(()=>{"use strict";Fw();SX();Nrc=l1(qu.NEVER,(e,{breadcrumbsPrefix:t=[]}={})=>({ok:!1,errors:[{path:t,message:"Expected never"}]}))});var Qrc,zrc=h(()=>{"use strict";Fw();SX();vF();Qrc=l1(qu.NUMBER,(e,{breadcrumbsPrefix:t=[]}={})=>typeof e=="number"?{ok:!0,value:e}:{ok:!1,errors:[{path:t,message:um(e,"number")}]})});var Mrc,Lrc=h(()=>{"use strict";Fw();SX();vF();Mrc=l1(qu.STRING,(e,{breadcrumbsPrefix:t=[]}={})=>typeof e=="string"?{ok:!0,value:e}:{ok:!1,errors:[{path:t,message:um(e,"string")}]})});var Vrc,Urc=h(()=>{"use strict";Fw();SX();Vrc=l1(qu.UNKNOWN,e=>({ok:!0,value:e}))});var _rc=h(()=>{"use strict";Rrc();Frc();jrc();zrc();Lrc();Urc()});function qrc(e,t){let r={parse:(n,i)=>Grc({value:n,isKeyNumeric:e.getType()===qu.NUMBER,transformKey:o=>e.parse(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${o} (key)`]}),transformValue:(o,s)=>t.parse(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${s}`]}),breadcrumbsPrefix:i?.breadcrumbsPrefix}),json:(n,i)=>Grc({value:n,isKeyNumeric:e.getType()===qu.NUMBER,transformKey:o=>e.json(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${o} (key)`]}),transformValue:(o,s)=>t.json(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${s}`]}),breadcrumbsPrefix:i?.breadcrumbsPrefix}),getType:()=>qu.RECORD};return{...u1(r),...Jm(r)}}function Grc({value:e,isKeyNumeric:t,transformKey:r,transformValue:n,breadcrumbsPrefix:i=[]}){if(!ule(e))return{ok:!1,errors:[{path:i,message:um(e,"object")}]};let o={},s=[];for(let a in e){if(!ekf.call(e,a))continue;let c=e[a];if(c===void 0)continue;let u=a;if(t){let d=a.length>0?Number(a):NaN;Number.isNaN(d)||(u=d)}let l=r(u),p=n(c,u);l.ok&&p.ok?o[l.value]=p.value:(l.ok||s.push(...l.errors),p.ok||s.push(...p.errors))}return s.length===0?{ok:!0,value:o}:{ok:!1,errors:s}}var ekf,Wrc=h(()=>{"use strict";Fw();vF();p2t();wX();oQ();ekf=Object.prototype.hasOwnProperty});var Hrc=h(()=>{"use strict";Wrc()});function Krc(e){let t=dCr(e),r={parse:(n,i)=>{let o=t.parse(n,i);return o.ok?{ok:!0,value:new Set(o.value)}:o},json:(n,i)=>n instanceof Set?t.json([...n],i):{ok:!1,errors:[{path:i?.breadcrumbsPrefix??[],message:um(n,"Set")}]},getType:()=>qu.SET};return{...u1(r),...Jm(r)}}var Jrc=h(()=>{"use strict";Fw();vF();wX();Jeo();oQ()});var Yrc=h(()=>{"use strict";Jrc()});function Zrc(e){let t={parse:(r,n)=>Xrc((i,o)=>i.parse(r,o),e,n),json:(r,n)=>Xrc((i,o)=>i.json(r,o),e,n),getType:()=>qu.UNDISCRIMINATED_UNION};return{...u1(t),...Jm(t)}}function Xrc(e,t,r){let n=[];for(let[i,o]of t.entries()){let s=e(o,{...r,skipValidation:!1});if(s.ok)return s;for(let a of s.errors)n.push({path:a.path,message:`[Variant ${i}] ${a.message}`})}return{ok:!1,errors:n}}var $rc=h(()=>{"use strict";Fw();wX();oQ()});var enc=h(()=>{"use strict";$rc()});function tnc(e,t){return{parsedDiscriminant:e,rawDiscriminant:t}}var rnc=h(()=>{"use strict"});function inc(e,t){let r=typeof e=="string"?e:e.rawDiscriminant,n=typeof e=="string"?e:e.parsedDiscriminant,i=pCr(f2t(t)),o={parse:(s,a)=>nnc({value:s,discriminant:r,transformedDiscriminant:n,transformDiscriminantValue:c=>i.parse(c,{allowUnrecognizedEnumValues:a?.allowUnrecognizedUnionMembers,breadcrumbsPrefix:[...a?.breadcrumbsPrefix??[],r]}),getAdditionalPropertiesSchema:c=>t[c],allowUnrecognizedUnionMembers:a?.allowUnrecognizedUnionMembers,transformAdditionalProperties:(c,u)=>u.parse(c,a),breadcrumbsPrefix:a?.breadcrumbsPrefix}),json:(s,a)=>nnc({value:s,discriminant:n,transformedDiscriminant:r,transformDiscriminantValue:c=>i.json(c,{allowUnrecognizedEnumValues:a?.allowUnrecognizedUnionMembers,breadcrumbsPrefix:[...a?.breadcrumbsPrefix??[],n]}),getAdditionalPropertiesSchema:c=>t[c],allowUnrecognizedUnionMembers:a?.allowUnrecognizedUnionMembers,transformAdditionalProperties:(c,u)=>u.json(c,a),breadcrumbsPrefix:a?.breadcrumbsPrefix}),getType:()=>qu.UNION};return{...u1(o),...Jm(o),...$7(o)}}function nnc({value:e,discriminant:t,transformedDiscriminant:r,transformDiscriminantValue:n,getAdditionalPropertiesSchema:i,allowUnrecognizedUnionMembers:o=!1,transformAdditionalProperties:s,breadcrumbsPrefix:a=[]}){if(!ule(e))return{ok:!1,errors:[{path:a,message:um(e,"object")}]};let c=e[t],u={};for(let f in e)tkf.call(e,f)&&f!==t&&(u[f]=e[f]);if(c==null)return{ok:!1,errors:[{path:a,message:`Missing discriminant ("${t}")`}]};let l=n(c);if(!l.ok)return{ok:!1,errors:l.errors};let p=i(l.value);if(p==null)return o?{ok:!0,value:{[r]:l.value,...u}}:{ok:!1,errors:[{path:[...a,t],message:"Unexpected discriminant value"}]};let d=s(u,p);return d.ok?{ok:!0,value:{[r]:c,...d.value}}:d}var tkf,onc=h(()=>{"use strict";Fw();vF();p2t();Geo();wX();Meo();d2t();oQ();tkf=Object.prototype.hasOwnProperty});var snc=h(()=>{"use strict";rnc();onc()});var anc=h(()=>{"use strict";src();urc();Meo();xrc();Jeo();Prc();Keo();d2t();_rc();Hrc();oQ();Yrc();enc();snc()});var Ie={};Z(Ie,{JsonError:()=>pYe,ParseError:()=>fYe,any:()=>Drc,bigint:()=>irc,boolean:()=>krc,booleanLiteral:()=>Src,date:()=>arc,discriminant:()=>tnc,enum_:()=>pCr,getObjectLikeUtils:()=>$7,getObjectUtils:()=>Rje,getSchemaUtils:()=>Jm,isProperty:()=>lle,lazy:()=>prc,lazyObject:()=>Irc,list:()=>dCr,never:()=>Nrc,number:()=>Qrc,object:()=>fCr,objectWithoutOptionalProperties:()=>brc,optional:()=>Qeo,property:()=>grc,record:()=>qrc,set:()=>Krc,string:()=>Mrc,stringLiteral:()=>Orc,transform:()=>zeo,undiscriminatedUnion:()=>Zrc,union:()=>inc,unknown:()=>Vrc,withParsedProperties:()=>qeo});var cnc=h(()=>{"use strict";anc()});var unc=h(()=>{"use strict"});var Xr=h(()=>{"use strict";$tc();erc();trc();cnc();unc()});var mCr,Yeo=h(()=>{"use strict";Xr();mCr=Ie.string()});var hCr,Xeo=h(()=>{"use strict";Xr();hCr=Ie.enum_(["openai","anthropic","aws-bedrock"])});var gCr,Zeo=h(()=>{"use strict";Xr();Yeo();Xeo();gCr=Ie.object({provider:hCr,model:mCr})});var $eo=h(()=>{"use strict";Zeo();Yeo();Xeo()});var eto={};Z(eto,{AiServicesSchema:()=>gCr,ModelName:()=>mCr,ModelProvider:()=>hCr});var lnc=h(()=>{"use strict";$eo()});var zbe,m2t=h(()=>{"use strict";Xr();zbe=Ie.object({generate:Ie.boolean().optional(),upgrade:Ie.boolean().optional(),preview:Ie.boolean().optional(),verify:Ie.boolean().optional()})});var tto=h(()=>{"use strict";m2t()});var rto={};Z(rto,{AutomationSchema:()=>zbe});var pnc=h(()=>{"use strict";tto()});var I0,TL=h(()=>{"use strict";Xr();I0=Ie.object({docs:Ie.string().optional()})});var mYe,ACr=h(()=>{"use strict";Xr();TL();mYe=Ie.object({scheme:Ie.string()}).extend(I0)});var yCr,nto=h(()=>{"use strict";Xr();ACr();yCr=Ie.undiscriminatedUnion([Ie.string(),mYe])});var bCr,ito=h(()=>{"use strict";Xr();TL();nto();bCr=Ie.object({any:Ie.list(yCr)}).extend(I0)});var ECr,oto=h(()=>{"use strict";Xr();ECr=Ie.object({})});var ICr,sto=h(()=>{"use strict";Xr();TL();oto();ICr=Ie.object({"endpoint-security":ECr}).extend(I0)});var hYe,vCr=h(()=>{"use strict";Xr();ito();ACr();sto();hYe=Ie.undiscriminatedUnion([Ie.string(),mYe,bCr,ICr])});var Mbe,h2t=h(()=>{"use strict";Xr();Mbe=Ie.object({name:Ie.string().optional()})});var gYe,xCr=h(()=>{"use strict";Xr();gYe=Ie.object({env:Ie.string().optional()})});var kje,CCr=h(()=>{"use strict";Xr();h2t();xCr();kje=Ie.object({omit:Ie.boolean().optional()}).extend(gYe).extend(Mbe)});var wCr,ato=h(()=>{"use strict";Xr();TL();CCr();wCr=Ie.object({scheme:Ie.stringLiteral("basic"),username:kje.optional(),password:kje.optional()}).extend(I0)});var SCr,cto=h(()=>{"use strict";Xr();SCr=Ie.object({"response-property":Ie.string(),"header-name":Ie.string(),"value-prefix":Ie.string().optional()})});var TCr,uto=h(()=>{"use strict";Xr();cto();TCr=Ie.object({endpoint:Ie.string(),"expiry-response-property":Ie.string().optional(),"authenticated-request-headers":Ie.list(SCr).optional()})});var OCr,lto=h(()=>{"use strict";Xr();uto();OCr=Ie.undiscriminatedUnion([Ie.string(),TCr])});var BCr,pto=h(()=>{"use strict";Xr();TL();lto();BCr=Ie.object({scheme:Ie.stringLiteral("bearer"),"get-token":OCr}).extend(I0)});var PCr,fto=h(()=>{"use strict";Xr();TL();CCr();PCr=Ie.object({scheme:Ie.stringLiteral("bearer"),token:kje.optional()}).extend(I0)});var DCr,dto=h(()=>{"use strict";Xr();pto();fto();DCr=Ie.undiscriminatedUnion([PCr,BCr])});var RCr,mto=h(()=>{"use strict";Xr();TL();h2t();xCr();RCr=Ie.object({header:Ie.string(),type:Ie.string().optional(),prefix:Ie.string().optional()}).extend(gYe).extend(Mbe).extend(I0)});var kCr,hto=h(()=>{"use strict";Xr();kCr=Ie.string()});var FCr,gto=h(()=>{"use strict";Xr();FCr=Ie.enum_(["client-credentials","authorization-code","device-code"])});var NCr,Ato=h(()=>{"use strict";Xr();NCr=Ie.object({"client-id":Ie.string().optional(),"client-secret":Ie.string().optional(),scopes:Ie.string().optional()})});var jCr,yto=h(()=>{"use strict";Xr();jCr=Ie.object({"access-token":Ie.string().optional(),"expires-in":Ie.string().optional(),"refresh-token":Ie.string().optional()})});var QCr,bto=h(()=>{"use strict";Xr();Ato();yto();QCr=Ie.object({endpoint:Ie.string(),"request-properties":NCr.optional(),"response-properties":jCr.optional()})});var zCr,Eto=h(()=>{"use strict";Xr();zCr=Ie.object({method:Ie.string().optional()})});var MCr,Ito=h(()=>{"use strict";Xr();MCr=Ie.object({"refresh-token":Ie.string()})});var LCr,vto=h(()=>{"use strict";Xr();LCr=Ie.object({"access-token":Ie.string().optional(),"expires-in":Ie.string().optional(),"refresh-token":Ie.string().optional()})});var VCr,xto=h(()=>{"use strict";Xr();Ito();vto();VCr=Ie.object({endpoint:Ie.string(),"request-properties":MCr.optional(),"response-properties":LCr.optional()})});var UCr,Cto=h(()=>{"use strict";Xr();UCr=Ie.object({url:Ie.string(),ports:Ie.list(Ie.number()).optional()})});var _Cr,wto=h(()=>{"use strict";Xr();Cto();_Cr=Ie.undiscriminatedUnion([Ie.string(),UCr])});var GCr,Sto=h(()=>{"use strict";Xr();TL();hto();gto();bto();Eto();xto();wto();GCr=Ie.object({scheme:Ie.stringLiteral("oauth"),type:FCr,scopes:Ie.list(kCr).optional(),"token-prefix":Ie.string().optional(),"token-header":Ie.string().optional(),"client-id-env":Ie.string().optional(),"client-secret-env":Ie.string().optional(),"get-token":QCr.optional(),"refresh-token":VCr.optional(),"client-id":Ie.string().optional(),"authorization-url":Ie.string().optional(),"device-authorization-url":Ie.string().optional(),"token-url":Ie.string().optional(),"refresh-url":Ie.string().optional(),"redirect-uri":_Cr.optional(),"success-redirect-url":Ie.string().optional(),"error-redirect-url":Ie.string().optional(),pkce:zCr.optional(),"authorization-parameters":Ie.record(Ie.string(),Ie.string()).optional(),"device-authorization-parameters":Ie.record(Ie.string(),Ie.string()).optional(),"token-parameters":Ie.record(Ie.string(),Ie.string()).optional(),"refresh-parameters":Ie.record(Ie.string(),Ie.string()).optional()}).extend(I0)});var Lbe,g2t=h(()=>{"use strict";Xr();ato();dto();mto();Sto();Lbe=Ie.undiscriminatedUnion([GCr,RCr,wCr,DCr])});var Tto=h(()=>{"use strict";nto();ito();vCr();g2t();ACr();hto();CCr();ato();dto();sto();oto();mto();cto();pto();lto();uto();Ato();yto();gto();bto();Eto();xto();Ito();vto();Sto();wto();Cto();fto();xCr()});var Oto={};Z(Oto,{AnyAuthItem:()=>yCr,AnyAuthSchemesSchema:()=>bCr,ApiAuthSchema:()=>hYe,AuthSchemeDeclarationSchema:()=>Lbe,AuthSchemeReferenceSchema:()=>mYe,AuthScope:()=>kCr,AuthVariable:()=>kje,BasicAuthSchemeSchema:()=>wCr,BearerAuthSchemeSchema:()=>DCr,EndpointSecuritySchema:()=>ICr,EndpointSecuritySchemaDetails:()=>ECr,HeaderAuthSchemeSchema:()=>RCr,InferredAuthenticatedRequestHeader:()=>SCr,InferredBearerAuthSchema:()=>BCr,InferredGetTokenEndpointSchema:()=>OCr,InferredGetTokenEndpointSchemaObject:()=>TCr,OAuthAccessTokenRequestPropertiesSchema:()=>NCr,OAuthAccessTokenResponsePropertiesSchema:()=>jCr,OAuthFlowTypeSchema:()=>FCr,OAuthGetTokenEndpointSchema:()=>QCr,OAuthPkceSchema:()=>zCr,OAuthRefreshTokenEndpointSchema:()=>VCr,OAuthRefreshTokenRequestPropertiesSchema:()=>MCr,OAuthRefreshTokenResponsePropertiesSchema:()=>LCr,OAuthSchemeSchema:()=>GCr,RedirectUriSchema:()=>_Cr,RedirectUriWithBackupPortsSchema:()=>UCr,TokenBearerAuthSchema:()=>PCr,WithEnvironmentVariable:()=>gYe});var fnc=h(()=>{"use strict";Tto()});var AYe,qCr=h(()=>{"use strict";Xr();AYe=Ie.enum_(["in-development","pre-release","deprecated","generally-available"])});var WCr,Bto=h(()=>{"use strict";Xr();qCr();WCr=Ie.object({status:AYe,message:Ie.string().optional()})});var HCr,Pto=h(()=>{"use strict";Xr();Bto();qCr();HCr=Ie.undiscriminatedUnion([AYe,WCr])});var Dto=h(()=>{"use strict";Bto();qCr();Pto()});var Rto={};Z(Rto,{AvailabilitySchema:()=>WCr,AvailabilityStatusSchema:()=>AYe,AvailabilityUnionSchema:()=>HCr});var dnc=h(()=>{"use strict";Dto()});var Vbe,A2t=h(()=>{"use strict";Xr();Vbe=Ie.object({audiences:Ie.list(Ie.string()).optional()})});var KCr,kto=h(()=>{"use strict";Xr();Pto();KCr=Ie.object({availability:HCr.optional()})});var Fto=h(()=>{"use strict";A2t();kto();TL();h2t()});var Nto={};Z(Nto,{WithAudiences:()=>Vbe,WithAvailability:()=>KCr,WithDocsSchema:()=>I0,WithName:()=>Mbe});var mnc=h(()=>{"use strict";Fto()});var JCr,jto=h(()=>{"use strict";Xr();JCr=Ie.object({type:Ie.string()})});var YCr,Qto=h(()=>{"use strict";Xr();jto();YCr=Ie.object({proto:JCr.optional()})});var zto=h(()=>{"use strict";Qto();jto()});var Mto={};Z(Mto,{EncodingSchema:()=>YCr,ProtobufTypeSchema:()=>JCr});var hnc=h(()=>{"use strict";zto()});var yYe,XCr=h(()=>{"use strict";Xr();yYe=Ie.object({id:Ie.string(),default:Ie.string().optional(),values:Ie.list(Ie.string()).optional()})});var ZCr,Lto=h(()=>{"use strict";Xr();A2t();TL();XCr();ZCr=Ie.object({urls:Ie.record(Ie.string(),Ie.string()),"url-templates":Ie.record(Ie.string(),Ie.string()).optional(),"default-urls":Ie.record(Ie.string(),Ie.string()).optional(),variables:Ie.record(Ie.string(),Ie.list(yYe)).optional()}).extend(Vbe).extend(I0)});var $Cr,Vto=h(()=>{"use strict";Xr();A2t();TL();XCr();$Cr=Ie.object({url:Ie.string(),"default-url":Ie.string().optional(),"url-template":Ie.string().optional(),variables:Ie.list(yYe).optional()}).extend(Vbe).extend(I0)});var ewr,Uto=h(()=>{"use strict";Xr();Lto();Vto();ewr=Ie.undiscriminatedUnion([Ie.string(),$Cr,ZCr])});var twr,_to=h(()=>{"use strict";Xr();Uto();twr=Ie.object({"default-url":Ie.string().optional(),"default-environment":Ie.string().optional(),environments:Ie.record(Ie.string(),ewr).optional()})});var Gto=h(()=>{"use strict";Uto();Lto();XCr();Vto();_to()});var qto={};Z(qto,{EnvironmentSchema:()=>ewr,MultipleBaseUrlsEnvironmentSchema:()=>ZCr,ServerVariableSchema:()=>yYe,SingleBaseUrlEnvironmentSchema:()=>$Cr,WithEnvironmentsSchema:()=>twr});var gnc=h(()=>{"use strict";Gto()});var rwr,Wto=h(()=>{"use strict";Xr();rwr=Ie.object({minItems:Ie.number().optional(),maxItems:Ie.number().optional()})});var nwr,Hto=h(()=>{"use strict";Xr();nwr=Ie.object({minProperties:Ie.number().optional(),maxProperties:Ie.number().optional()})});var iwr,Kto=h(()=>{"use strict";Xr();iwr=Ie.object({min:Ie.number().optional(),max:Ie.number().optional(),exclusiveMin:Ie.boolean().optional(),exclusiveMax:Ie.boolean().optional(),multipleOf:Ie.number().optional()})});var owr,Jto=h(()=>{"use strict";Xr();owr=Ie.object({minLength:Ie.number().optional(),maxLength:Ie.number().optional(),pattern:Ie.string().optional(),format:Ie.string().optional()})});var swr,Yto=h(()=>{"use strict";Xr();Wto();Hto();Kto();Jto();swr=Ie.undiscriminatedUnion([owr,iwr,rwr,nwr])});var awr,Xto=h(()=>{"use strict";Xr();kto();TL();Qto();Yto();awr=Ie.object({default:Ie.unknown().optional(),"client-default":Ie.unknown().optional(),encoding:YCr.optional(),validation:swr.optional()}).extend(I0).extend(KCr)});var cwr,Zto=h(()=>{"use strict";Xr();A2t();h2t();Xto();cwr=Ie.object({type:Ie.string()}).extend(awr).extend(Mbe).extend(Vbe)});var uwr,$to=h(()=>{"use strict";Xr();Zto();uwr=Ie.object({env:Ie.string().optional()}).extend(cwr)});var lwr,ero=h(()=>{"use strict";Xr();$to();lwr=Ie.undiscriminatedUnion([Ie.string(),uwr])});var bYe,pwr=h(()=>{"use strict";ero();bYe=lwr});var fwr,tro=h(()=>{"use strict";Xr();pwr();fwr=Ie.object({headers:Ie.record(Ie.string(),bYe).optional()})});var rro=h(()=>{"use strict";tro()});var nro={};Z(nro,{WithHeadersSchema:()=>fwr});var Anc=h(()=>{"use strict";rro()});var iro=h(()=>{"use strict";pwr();ero();$to()});var oro={};Z(oro,{HttpHeaderSchema:()=>bYe,TypeReferenceDeclarationWithEnvOverride:()=>lwr,TypeReferenceDeclarationWithEnvOverrideSchema:()=>uwr});var ync=h(()=>{"use strict";iro()});var sro=h(()=>{"use strict";Xto();Zto()});var aro={};Z(aro,{BaseTypeReferenceSchema:()=>awr,TypeReferenceDeclarationWithName:()=>cwr});var bnc=h(()=>{"use strict";sro()});var cro=h(()=>{"use strict";Wto();Hto();Kto();Jto();Yto()});var uro={};Z(uro,{ListValidationSchema:()=>rwr,MapValidationSchema:()=>nwr,NumberValidationSchema:()=>iwr,StringValidationSchema:()=>owr,ValidationSchema:()=>swr});var Enc=h(()=>{"use strict";cro()});var Inc=h(()=>{"use strict";fnc();Tto();dnc();Dto();mnc();Fto();hnc();zto();gnc();Gto();Anc();rro();ync();iro();bnc();sro();Enc();cro()});var lro={};Z(lro,{AnyAuthItem:()=>yCr,AnyAuthSchemesSchema:()=>bCr,ApiAuthSchema:()=>hYe,AuthSchemeDeclarationSchema:()=>Lbe,AuthSchemeReferenceSchema:()=>mYe,AuthScope:()=>kCr,AuthVariable:()=>kje,AvailabilitySchema:()=>WCr,AvailabilityStatusSchema:()=>AYe,AvailabilityUnionSchema:()=>HCr,BaseTypeReferenceSchema:()=>awr,BasicAuthSchemeSchema:()=>wCr,BearerAuthSchemeSchema:()=>DCr,EncodingSchema:()=>YCr,EndpointSecuritySchema:()=>ICr,EndpointSecuritySchemaDetails:()=>ECr,EnvironmentSchema:()=>ewr,HeaderAuthSchemeSchema:()=>RCr,HttpHeaderSchema:()=>bYe,InferredAuthenticatedRequestHeader:()=>SCr,InferredBearerAuthSchema:()=>BCr,InferredGetTokenEndpointSchema:()=>OCr,InferredGetTokenEndpointSchemaObject:()=>TCr,ListValidationSchema:()=>rwr,MapValidationSchema:()=>nwr,MultipleBaseUrlsEnvironmentSchema:()=>ZCr,NumberValidationSchema:()=>iwr,OAuthAccessTokenRequestPropertiesSchema:()=>NCr,OAuthAccessTokenResponsePropertiesSchema:()=>jCr,OAuthFlowTypeSchema:()=>FCr,OAuthGetTokenEndpointSchema:()=>QCr,OAuthPkceSchema:()=>zCr,OAuthRefreshTokenEndpointSchema:()=>VCr,OAuthRefreshTokenRequestPropertiesSchema:()=>MCr,OAuthRefreshTokenResponsePropertiesSchema:()=>LCr,OAuthSchemeSchema:()=>GCr,ProtobufTypeSchema:()=>JCr,RedirectUriSchema:()=>_Cr,RedirectUriWithBackupPortsSchema:()=>UCr,ServerVariableSchema:()=>yYe,SingleBaseUrlEnvironmentSchema:()=>$Cr,StringValidationSchema:()=>owr,TokenBearerAuthSchema:()=>PCr,TypeReferenceDeclarationWithEnvOverride:()=>lwr,TypeReferenceDeclarationWithEnvOverrideSchema:()=>uwr,TypeReferenceDeclarationWithName:()=>cwr,ValidationSchema:()=>swr,WithAudiences:()=>Vbe,WithAvailability:()=>KCr,WithDocsSchema:()=>I0,WithEnvironmentVariable:()=>gYe,WithEnvironmentsSchema:()=>twr,WithHeadersSchema:()=>fwr,WithName:()=>Mbe,auth:()=>Oto,availability:()=>Rto,commons:()=>Nto,encoding:()=>Mto,environments:()=>qto,file:()=>nro,service:()=>oro,types:()=>aro,validation:()=>uro});var vnc=h(()=>{"use strict";Inc()});var Ube,y2t=h(()=>{"use strict";Xr();Ube=Ie.string()});var EYe,dwr=h(()=>{"use strict";Xr();EYe=Ie.enum_(["v1","v2"])});var IYe,mwr=h(()=>{"use strict";Xr();IYe=Ie.enum_(["environment-per-server","urls-per-environment"])});var vYe,hwr=h(()=>{"use strict";Xr();vYe=Ie.enum_(["url-order","spec-order"])});var xYe,gwr=h(()=>{"use strict";Xr();xYe=Ie.enum_(["always","never"])});var Awr,pro=h(()=>{"use strict";Xr();Awr=Ie.enum_(["v1"])});var CYe,ywr=h(()=>{"use strict";Xr();dwr();mwr();hwr();gwr();pro();CYe=Ie.object({"use-title":Ie.boolean().optional(),unions:Awr.optional(),"message-naming":EYe.optional(),"respect-nullable-schemas":Ie.boolean().optional(),"only-include-referenced-schemas":Ie.boolean().optional(),"inline-path-parameters":Ie.boolean().optional(),"idiomatic-request-names":Ie.boolean().optional(),"wrap-references-to-nullable-in-optional":Ie.boolean().optional(),"coerce-optional-schemas-to-nullable":Ie.boolean().optional(),"group-environments-by-host":Ie.boolean().optional(),"multi-server-strategy":IYe.optional(),"remove-discriminants-from-schemas":xYe.optional(),"path-parameter-order":vYe.optional()})});var IU,Fje=h(()=>{"use strict";Xr();IU=Ie.undiscriminatedUnion([Ie.string(),Ie.list(Ie.string())])});var wYe,bwr=h(()=>{"use strict";Xr();y2t();ywr();Fje();wYe=Ie.object({path:Ube,origin:Ie.string().optional(),overrides:IU.optional(),audiences:Ie.list(Ie.string()).optional(),settings:CYe.optional()})});var Ewr,fro=h(()=>{"use strict";Xr();Ewr=Ie.object({repo:Ie.string(),ref:Ie.string().optional(),path:Ie.string()})});var Iwr,dro=h(()=>{"use strict";Xr();fro();Iwr=Ie.object({git:Ewr})});var _be,b2t=h(()=>{"use strict";Xr();dro();_be=Ie.undiscriminatedUnion([Ie.string(),Iwr])});var SYe,vwr=h(()=>{"use strict";Xr();Fje();b2t();SYe=Ie.object({target:Ie.string().optional(),root:_be,overrides:IU.optional(),"local-generation":Ie.boolean().optional(),"from-openapi":Ie.boolean().optional(),dependencies:Ie.list(Ie.string()).optional()})});var TYe,xwr=h(()=>{"use strict";Xr();vwr();TYe=Ie.object({proto:SYe})});var Cwr,mro=h(()=>{"use strict";Xr();y2t();bwr();xwr();Cwr=Ie.undiscriminatedUnion([Ube,wYe,TYe])});var wwr,hro=h(()=>{"use strict";Xr();mro();wwr=Ie.list(Cwr)});var OYe,Swr=h(()=>{"use strict";Xr();hro();y2t();bwr();xwr();OYe=Ie.undiscriminatedUnion([Ube,wYe,wwr,TYe])});var Twr,gro=h(()=>{"use strict";Xr();Twr=Ie.enum_(["literals","enums","enums-coerceable-to-literals"])});var BYe,Owr=h(()=>{"use strict";Xr();gro();mwr();hwr();gwr();BYe=Ie.object({"respect-nullable-schemas":Ie.boolean().optional(),"title-as-schema-name":Ie.boolean().optional(),"optional-additional-properties":Ie.boolean().optional(),"coerce-enums-to-literals":Ie.boolean().optional(),"idiomatic-request-names":Ie.boolean().optional(),"wrap-references-to-nullable-in-optional":Ie.boolean().optional(),"coerce-optional-schemas-to-nullable":Ie.boolean().optional(),"group-environments-by-host":Ie.boolean().optional(),"multi-server-strategy":IYe.optional(),"remove-discriminants-from-schemas":xYe.optional(),"path-parameter-order":vYe.optional(),"resolve-schema-collisions":Ie.boolean().optional(),"infer-forward-compatible":Ie.boolean().optional(),"infer-default-environment":Ie.boolean().optional(),"coerce-consts-to":Twr.optional()})});var PYe,Bwr=h(()=>{"use strict";Xr();Owr();dwr();PYe=Ie.object({"message-naming":EYe.optional()}).extend(BYe)});var Pwr,Aro=h(()=>{"use strict";Xr();Pwr=Ie.enum_(["int32","int64","uint32","uint64"])});var Dwr,yro=h(()=>{"use strict";Xr();Dwr=Ie.enum_(["form","json"])});var E2t,bro=h(()=>{"use strict";Xr();E2t=Ie.object({"max-depth":Ie.number().optional()})});var Rwr,Ero=h(()=>{"use strict";Xr();bro();Rwr=Ie.object({request:E2t.optional(),response:E2t.optional()})});var kwr,Iro=h(()=>{"use strict";Xr();kwr=Ie.object({endpoints:Ie.list(Ie.string()).optional()})});var Fwr,vro=h(()=>{"use strict";Xr();Fwr=Ie.object({except:Ie.list(Ie.string()).optional()})});var Nwr,xro=h(()=>{"use strict";Xr();vro();Nwr=Ie.undiscriminatedUnion([Ie.boolean(),Fwr])});var Gbe,I2t=h(()=>{"use strict";Xr();Owr();Aro();yro();Ero();Iro();xro();Gbe=Ie.object({"only-include-referenced-schemas":Ie.boolean().optional(),"inline-path-parameters":Ie.boolean().optional(),"prefer-undiscriminated-unions-with-literals":Ie.boolean().optional(),"object-query-parameters":Ie.boolean().optional(),"respect-readonly-schemas":Ie.boolean().optional(),"use-read-variant-for-responses":Ie.boolean().optional(),"respect-forward-compatible-enums":Ie.boolean().optional(),"respect-optional-request-body":Ie.boolean().optional(),"use-bytes-for-binary-response":Ie.boolean().optional(),"default-form-parameter-encoding":Dwr.optional(),filter:kwr.optional(),"example-generation":Rwr.optional(),"additional-properties-defaults-to":Ie.boolean().optional(),"type-dates-as-strings":Ie.boolean().optional(),"preserve-single-schema-oneof":Ie.boolean().optional(),"preserve-one-of-in-all-of":Ie.boolean().optional(),"any-of-sibling-properties-as-object":Ie.boolean().optional(),"inline-all-of-schemas":Ie.boolean().optional(),"resolve-aliases":Nwr.optional(),"group-multi-api-environments":Ie.boolean().optional(),"default-integer-format":Pwr.optional(),"infer-discriminated-union-base-properties":Ie.boolean().optional(),"disambiguate-request-names":Ie.boolean().optional(),"ignore-tags":Ie.boolean().optional(),"respect-parameter-content":Ie.boolean().optional(),"respect-per-spec-base-path":Ie.boolean().optional(),"namespaced-errors":Ie.boolean().optional()}).extend(BYe)});var DYe,jwr=h(()=>{"use strict";Xr();Bwr();I2t();DYe=Ie.object({"auto-generate-idempotency-key":Ie.unknown().optional()}).extend(Gbe).extend(PYe)});var Qwr,Cro=h(()=>{"use strict";Xr();Qwr=Ie.object({conjure:Ie.string()})});var zwr,wro=h(()=>{"use strict";Xr();Bwr();Fje();b2t();zwr=Ie.object({asyncapi:_be,origin:Ie.string().optional(),overrides:IU.optional(),namespace:Ie.string().optional(),settings:PYe.optional()})});var Mwr,Sro=h(()=>{"use strict";Xr();Mwr=Ie.object({graphql:Ie.string(),origin:Ie.string().optional(),overrides:Ie.string().optional(),examples:Ie.string().optional(),name:Ie.string().optional()})});var Lwr,Tro=h(()=>{"use strict";Xr();I2t();Fje();b2t();Lwr=Ie.object({openapi:_be,origin:Ie.string().optional(),overrides:IU.optional(),overlays:Ie.string().optional(),namespace:Ie.string().optional(),settings:Gbe.optional()})});var Vwr,Oro=h(()=>{"use strict";Xr();Fje();Vwr=Ie.object({openrpc:Ie.string(),overrides:IU.optional(),namespace:Ie.string().optional()})});var Uwr,Bro=h(()=>{"use strict";Xr();vwr();Uwr=Ie.object({proto:SYe})});var _wr,Pro=h(()=>{"use strict";Xr();wro();Sro();Tro();Oro();Bro();_wr=Ie.undiscriminatedUnion([Lwr,zwr,Uwr,Vwr,Mwr])});var RYe,Gwr=h(()=>{"use strict";Xr();Cro();Pro();RYe=Ie.undiscriminatedUnion([Ie.list(_wr),Qwr])});var qwr,Dro=h(()=>{"use strict";Xr();vCr();g2t();_to();tro();jwr();Gwr();qwr=Ie.object({auth:hYe.optional(),"auth-schemes":Ie.record(Ie.string(),Lbe).optional(),specs:RYe,settings:DYe.optional()}).extend(fwr).extend(twr)});var Wwr,Rro=h(()=>{"use strict";Xr();Swr();Wwr=Ie.object({namespaces:Ie.record(Ie.string(),OYe)})});var Hwr,kro=h(()=>{"use strict";Xr();Swr();Dro();Rro();Hwr=Ie.undiscriminatedUnion([OYe,Wwr,qwr])});var Kwr,Fro=h(()=>{"use strict";Xr();Kwr=Ie.enum_(["minimal","comprehensive"])});var Jwr,Nro=h(()=>{"use strict";Xr();Jwr=Ie.object({name:Ie.string(),registry:Ie.string()})});var Ywr,jro=h(()=>{"use strict";Xr();Ywr=Ie.object({name:Ie.string(),email:Ie.string()})});var qbe,v2t=h(()=>{"use strict";Xr();jro();qbe=Ie.object({description:Ie.string().optional(),authors:Ie.list(Ywr).optional()})});var x2t,Qro=h(()=>{"use strict";Xr();x2t=Ie.object({name:Ie.string()})});var Wbe,C2t=h(()=>{"use strict";Xr();Qro();Wbe=Ie.object({teams:Ie.list(x2t).optional(),users:Ie.list(x2t).optional()})});var Xwr,zro=h(()=>{"use strict";Xr();vCr();g2t();pwr();jwr();Gwr();Xwr=Ie.object({auth:hYe.optional(),"auth-schemes":Ie.record(Ie.string(),Lbe).optional(),headers:Ie.record(Ie.string(),bYe).optional(),settings:DYe.optional(),specs:RYe.optional()})});var Zwr,Mro=h(()=>{"use strict";Xr();Zwr=Ie.object({url:Ie.string().optional(),"package-name":Ie.string(),token:Ie.string().optional()})});var $wr,Lro=h(()=>{"use strict";Xr();$wr=Ie.object({path:Ie.string()})});var eSr,Vro=h(()=>{"use strict";Xr();eSr=Ie.object({keyId:Ie.string(),password:Ie.string(),secretKey:Ie.string()})});var tSr,Uro=h(()=>{"use strict";Xr();Vro();tSr=Ie.object({url:Ie.string().optional(),coordinate:Ie.string(),username:Ie.string().optional(),password:Ie.string().optional(),signature:eSr.optional()})});var rSr,_ro=h(()=>{"use strict";Xr();rSr=Ie.object({url:Ie.string().optional(),"package-name":Ie.string(),token:Ie.string().optional()})});var nSr,Gro=h(()=>{"use strict";Xr();nSr=Ie.object({url:Ie.string().optional(),"package-name":Ie.string(),"api-key":Ie.string().optional()})});var iSr,qro=h(()=>{"use strict";Xr();iSr=Ie.object({"api-key":Ie.string(),"workspace-id":Ie.string(),"collection-id":Ie.string().optional()})});var oSr,Wro=h(()=>{"use strict";Xr();v2t();oSr=Ie.object({keywords:Ie.list(Ie.string()).optional(),"documentation-link":Ie.string().optional(),"homepage-link":Ie.string().optional()}).extend(qbe)});var sSr,Hro=h(()=>{"use strict";Xr();Wro();sSr=Ie.object({url:Ie.string().optional(),"package-name":Ie.string(),token:Ie.string().optional(),username:Ie.string().optional(),password:Ie.string().optional(),metadata:oSr.optional()})});var aSr,Kro=h(()=>{"use strict";Xr();aSr=Ie.object({url:Ie.string().optional(),"package-name":Ie.string(),"api-key":Ie.string().optional()})});var cSr,Jro=h(()=>{"use strict";Xr();Mro();Lro();Uro();_ro();Gro();qro();Hro();Kro();cSr=Ie.union("location",{npm:rSr,maven:tSr,pypi:sSr,postman:iSr,"local-file-system":$wr,nuget:nSr,rubygems:aSr,crates:Zwr}).transform({transform:e=>e,untransform:e=>e})});var uSr,Yro=h(()=>{"use strict";Xr();uSr=Ie.object({custom:Ie.string()})});var lSr,Xro=h(()=>{"use strict";Xr();lSr=Ie.enum_(["MIT","Apache-2.0"])});var vU,Nje=h(()=>{"use strict";Xr();Yro();Xro();vU=Ie.undiscriminatedUnion([lSr,uSr])});var w2t,Zro=h(()=>{"use strict";Xr();Nje();w2t=Ie.object({"package-description":Ie.string().optional(),email:Ie.string().optional(),"reference-url":Ie.string().optional(),author:Ie.string().optional(),license:vU.optional()})});var pSr,$ro=h(()=>{"use strict";Xr();pSr=Ie.object({path:Ie.string()})});var fSr,eno=h(()=>{"use strict";Xr();fSr=Ie.enum_(["commit","release"])});var dSr,tno=h(()=>{"use strict";Xr();Nje();eno();dSr=Ie.object({repository:Ie.string(),branch:Ie.string().optional(),license:vU.optional(),mode:fSr.optional(),workflows:Ie.boolean().optional()})});var mSr,rno=h(()=>{"use strict";Xr();Nje();C2t();mSr=Ie.object({repository:Ie.string(),branch:Ie.string().optional(),license:vU.optional(),mode:Ie.stringLiteral("pull-request"),reviewers:Wbe.optional(),workflows:Ie.boolean().optional()})});var hSr,nno=h(()=>{"use strict";Xr();Nje();hSr=Ie.object({repository:Ie.string(),license:vU.optional(),mode:Ie.stringLiteral("push"),branch:Ie.string().optional(),workflows:Ie.boolean().optional()})});var gSr,ino=h(()=>{"use strict";Xr();gSr=Ie.enum_(["pull-request","push","commit-and-release"])});var ASr,ono=h(()=>{"use strict";Xr();Nje();ino();ASr=Ie.object({uri:Ie.string(),token:Ie.string(),mode:gSr.optional(),branch:Ie.string().optional(),license:vU.optional(),workflows:Ie.boolean().optional()})});var ySr,sno=h(()=>{"use strict";Xr();tno();rno();nno();ono();ySr=Ie.undiscriminatedUnion([ASr,dSr,mSr,hSr])});var kYe,bSr=h(()=>{"use strict";Xr();m2t();zro();Jro();Zro();$ro();sno();kYe=Ie.object({version:Ie.string(),output:cSr.optional(),github:ySr.optional(),config:Ie.unknown().optional(),metadata:w2t.optional(),keywords:Ie.list(Ie.string()).optional(),snippets:pSr.optional(),"ir-version":Ie.string().optional(),"smart-casing":Ie.boolean().optional(),"smart-casing-digit-word-boundary":Ie.boolean().optional(),api:Xwr.optional(),"disable-examples":Ie.boolean().optional(),"publish-metadata":w2t.optional(),autorelease:Ie.boolean().optional(),automation:zbe.optional()})});var ESr,ano=h(()=>{"use strict";Xr();Nro();bSr();ESr=Ie.object({image:Jwr}).extend(kYe)});var ISr,cno=h(()=>{"use strict";Xr();bSr();ISr=Ie.object({name:Ie.string()}).extend(kYe)});var vSr,uno=h(()=>{"use strict";Xr();ano();cno();vSr=Ie.undiscriminatedUnion([ISr,ESr])});var xSr,lno=h(()=>{"use strict";Xr();m2t();v2t();C2t();uno();xSr=Ie.object({audiences:Ie.list(Ie.string()).optional(),generators:Ie.list(vSr),metadata:qbe.optional(),reviewers:Wbe.optional(),automation:zbe.optional()})});var CSr,pno=h(()=>{"use strict";Xr();CSr=Ie.object({enabled:Ie.boolean()})});var wSr,fno=h(()=>{"use strict";Xr();I2t();wSr=Ie.object({path:Ie.string(),origin:Ie.string().optional(),overrides:Ie.string().optional(),"disable-examples":Ie.boolean().optional(),settings:Gbe})});var SSr,dno=h(()=>{"use strict";Xr();fno();SSr=Ie.undiscriminatedUnion([wSr,Ie.string()])});var TSr,mno=h(()=>{"use strict";Xr();TSr=Ie.enum_(["java","python","go","ruby","csharp","typescript","php","rust","swift"])});var OSr,hno=h(()=>{"use strict";Xr();mno();OSr=Ie.object({title:Ie.string(),language:TSr,content:Ie.string()})});var BSr,gno=h(()=>{"use strict";Xr();BSr=Ie.object({method:Ie.string(),path:Ie.string(),stream:Ie.boolean().optional()})});var S2t,Ano=h(()=>{"use strict";Xr();gno();S2t=Ie.undiscriminatedUnion([Ie.string(),BSr])});var PSr,yno=h(()=>{"use strict";Xr();Fro();hno();Ano();PSr=Ie.object({bannerLink:Ie.string().optional(),introduction:Ie.string().optional(),apiReferenceLink:Ie.string().optional(),apiName:Ie.string().optional(),disabledSections:Ie.list(Ie.string()).optional(),defaultEndpoint:S2t.optional(),features:Ie.record(Ie.string(),Ie.list(S2t)).optional(),customSections:Ie.list(OSr).optional(),exampleStyle:Kwr.optional()})});var DSr,bno=h(()=>{"use strict";Xr();DSr=Ie.object({username:Ie.string(),email:Ie.string(),token:Ie.string()})});var RSr,Eno=h(()=>{"use strict";Xr();bno();RSr=Ie.object({github:DSr.optional()})});var xnc,Cnc=h(()=>{"use strict";Xr();Zeo();m2t();g2t();lno();pno();C2t();kro();ywr();dno();v2t();yno();Eno();xnc=Ie.object({"auth-schemes":Ie.record(Ie.string(),Lbe).optional(),api:Hwr.optional(),whitelabel:RSr.optional(),metadata:qbe.optional(),readme:PSr.optional(),"default-group":Ie.string().optional(),aliases:Ie.record(Ie.string(),Ie.list(Ie.string())).optional(),groups:Ie.record(Ie.string(),xSr).optional(),reviewers:Wbe.optional(),replay:CSr.optional(),ai:gCr.optional(),autorelease:Ie.boolean().optional(),automation:zbe.optional(),openapi:SSr.optional(),"openapi-overrides":Ie.string().optional(),"spec-origin":Ie.string().optional(),"async-api":Ie.string().optional(),"api-settings":CYe.optional()})});var Ino=h(()=>{"use strict";kro();Swr();Dro();jwr();Gwr();hro();y2t();mro();ywr();bwr();Bwr();wro();Owr();gro();Cro();Aro();Fro();yro();Nro();Cnc();fro();fno();dno();Sro();mno();dwr();mwr();Rro();Ero();Iro();I2t();Tro();Oro();jro();v2t();Fje();hwr();xwr();vwr();Bro();hno();gno();Ano();yno();gwr();bro();xro();vro();Pro();dro();b2t();pro();Eno();bno()});var vno={};Z(vno,{ApiConfigurationSchema:()=>Hwr,ApiConfigurationSchemaInternal:()=>OYe,ApiConfigurationV2Schema:()=>qwr,ApiConfigurationV2SettingsSchema:()=>DYe,ApiConfigurationV2SpecsSchema:()=>RYe,ApiDefinitionList:()=>wwr,ApiDefinitionPathSchema:()=>Ube,ApiDefinitionSchema:()=>Cwr,ApiDefinitionSettingsSchema:()=>CYe,ApiDefinitionWithOverridesSchema:()=>wYe,AsyncApiSettingsSchema:()=>PYe,AsyncApiSpecSchema:()=>zwr,BaseApiSettingsSchema:()=>BYe,CoerceConstsTo:()=>Twr,ConjureSchema:()=>Qwr,DefaultIntegerFormat:()=>Pwr,ExampleStyle:()=>Kwr,FormParameterEncoding:()=>Dwr,GeneratorImageObjectSchema:()=>Jwr,GeneratorsConfigurationSchema:()=>xnc,GeneratorsOpenApiObjectSchema:()=>wSr,GeneratorsOpenApiSchema:()=>SSr,GitRemoteSchema:()=>Ewr,GraphQlSpecSchema:()=>Mwr,Language:()=>TSr,MessageNamingSettingsSchema:()=>EYe,MultiServerStrategy:()=>IYe,NamespacedApiConfigurationSchema:()=>Wwr,OpenApiExampleGenerationSchema:()=>Rwr,OpenApiFilterSchema:()=>kwr,OpenApiSettingsSchema:()=>Gbe,OpenApiSpecSchema:()=>Lwr,OpenRpcSpecSchema:()=>Vwr,OutputMetadataAuthor:()=>Ywr,OutputMetadataSchema:()=>qbe,OverridesSchema:()=>IU,PathParameterOrder:()=>vYe,ProtobufApiDefinitionSchema:()=>TYe,ProtobufDefinitionSchema:()=>SYe,ProtobufSpecSchema:()=>Uwr,ReadmeCustomSectionSchema:()=>OSr,ReadmeEndpointObjectSchema:()=>BSr,ReadmeEndpointSchema:()=>S2t,ReadmeSchema:()=>PSr,RemoveDiscriminantsFromSchemas:()=>xYe,RequestOrResponseExampleGenerationSchema:()=>E2t,ResolveAliases:()=>Nwr,ResolveAliasesSchema:()=>Fwr,SpecGitSourceSchema:()=>Iwr,SpecSchema:()=>_wr,SpecSourceSchema:()=>_be,UnionSettingsSchema:()=>Awr,WhitelabelConfigurationSchema:()=>RSr,WhitelabelGithubConfigurationSchema:()=>DSr});var wnc=h(()=>{"use strict";Ino()});var xno=h(()=>{"use strict";bSr();Mro();ano();cno();zro();lno();uno();Jro();Zro();$ro();eno();tno();sno();rno();nno();ino();ono();Lro();Uro();Vro();_ro();Gro();qro();Hro();Wro();Kro()});var Cno={};Z(Cno,{BaseGeneratorInvocationSchema:()=>kYe,CratesOutputLocationSchema:()=>Zwr,CustomGeneratorInvocationSchema:()=>ESr,DefaultGeneratorInvocationSchema:()=>ISr,GeneratorApiSettingsSchema:()=>Xwr,GeneratorGroupSchema:()=>xSr,GeneratorInvocationSchema:()=>vSr,GeneratorOutputSchema:()=>cSr,GeneratorPublishMetadataSchema:()=>w2t,GeneratorSnippetsSchema:()=>pSr,GithubCommitAndReleaseMode:()=>fSr,GithubCommitAndReleaseSchema:()=>dSr,GithubConfigurationSchema:()=>ySr,GithubPullRequestSchema:()=>mSr,GithubPushSchema:()=>hSr,GithubSelfhostedMode:()=>gSr,GithubSelfhostedSchema:()=>ASr,LocalFileSystemOutputLocationSchema:()=>$wr,MavenOutputLocationSchema:()=>tSr,MavenOutputSignatureSchema:()=>eSr,NpmOutputLocationSchema:()=>rSr,NugetOutputLocationSchema:()=>nSr,PostmanOutputLocationSchema:()=>iSr,PypiOutputLocationSchema:()=>sSr,PypiOutputMetadataSchema:()=>oSr,RubyGemsOutputLocationSchema:()=>aSr});var Snc=h(()=>{"use strict";xno()});var wno=h(()=>{"use strict";Yro();Nje();Xro()});var Sno={};Z(Sno,{GithubLicenseCustomSchema:()=>uSr,GithubLicenseSchema:()=>vU,GithubLicenseType:()=>lSr});var Tnc=h(()=>{"use strict";wno()});var Tno=h(()=>{"use strict";pno()});var Ono={};Z(Ono,{ReplayConfigSchema:()=>CSr});var Onc=h(()=>{"use strict";Tno()});var Bno=h(()=>{"use strict";Qro();C2t()});var Pno={};Z(Pno,{ReviewerSchema:()=>x2t,ReviewersSchema:()=>Wbe});var Bnc=h(()=>{"use strict";Bno()});var Pnc=h(()=>{"use strict";lnc();$eo();pnc();tto();vnc();wnc();Ino();Snc();xno();Tnc();wno();Onc();Tno();Bnc();Bno()});var Dno={};Z(Dno,{AiServicesSchema:()=>gCr,ApiConfigurationSchema:()=>Hwr,ApiConfigurationSchemaInternal:()=>OYe,ApiConfigurationV2Schema:()=>qwr,ApiConfigurationV2SettingsSchema:()=>DYe,ApiConfigurationV2SpecsSchema:()=>RYe,ApiDefinitionList:()=>wwr,ApiDefinitionPathSchema:()=>Ube,ApiDefinitionSchema:()=>Cwr,ApiDefinitionSettingsSchema:()=>CYe,ApiDefinitionWithOverridesSchema:()=>wYe,AsyncApiSettingsSchema:()=>PYe,AsyncApiSpecSchema:()=>zwr,AutomationSchema:()=>zbe,BaseApiSettingsSchema:()=>BYe,BaseGeneratorInvocationSchema:()=>kYe,CoerceConstsTo:()=>Twr,ConjureSchema:()=>Qwr,CratesOutputLocationSchema:()=>Zwr,CustomGeneratorInvocationSchema:()=>ESr,DefaultGeneratorInvocationSchema:()=>ISr,DefaultIntegerFormat:()=>Pwr,ExampleStyle:()=>Kwr,FormParameterEncoding:()=>Dwr,GeneratorApiSettingsSchema:()=>Xwr,GeneratorGroupSchema:()=>xSr,GeneratorImageObjectSchema:()=>Jwr,GeneratorInvocationSchema:()=>vSr,GeneratorOutputSchema:()=>cSr,GeneratorPublishMetadataSchema:()=>w2t,GeneratorSnippetsSchema:()=>pSr,GeneratorsConfigurationSchema:()=>xnc,GeneratorsOpenApiObjectSchema:()=>wSr,GeneratorsOpenApiSchema:()=>SSr,GitRemoteSchema:()=>Ewr,GithubCommitAndReleaseMode:()=>fSr,GithubCommitAndReleaseSchema:()=>dSr,GithubConfigurationSchema:()=>ySr,GithubLicenseCustomSchema:()=>uSr,GithubLicenseSchema:()=>vU,GithubLicenseType:()=>lSr,GithubPullRequestSchema:()=>mSr,GithubPushSchema:()=>hSr,GithubSelfhostedMode:()=>gSr,GithubSelfhostedSchema:()=>ASr,GraphQlSpecSchema:()=>Mwr,Language:()=>TSr,LocalFileSystemOutputLocationSchema:()=>$wr,MavenOutputLocationSchema:()=>tSr,MavenOutputSignatureSchema:()=>eSr,MessageNamingSettingsSchema:()=>EYe,ModelName:()=>mCr,ModelProvider:()=>hCr,MultiServerStrategy:()=>IYe,NamespacedApiConfigurationSchema:()=>Wwr,NpmOutputLocationSchema:()=>rSr,NugetOutputLocationSchema:()=>nSr,OpenApiExampleGenerationSchema:()=>Rwr,OpenApiFilterSchema:()=>kwr,OpenApiSettingsSchema:()=>Gbe,OpenApiSpecSchema:()=>Lwr,OpenRpcSpecSchema:()=>Vwr,OutputMetadataAuthor:()=>Ywr,OutputMetadataSchema:()=>qbe,OverridesSchema:()=>IU,PathParameterOrder:()=>vYe,PostmanOutputLocationSchema:()=>iSr,ProtobufApiDefinitionSchema:()=>TYe,ProtobufDefinitionSchema:()=>SYe,ProtobufSpecSchema:()=>Uwr,PypiOutputLocationSchema:()=>sSr,PypiOutputMetadataSchema:()=>oSr,ReadmeCustomSectionSchema:()=>OSr,ReadmeEndpointObjectSchema:()=>BSr,ReadmeEndpointSchema:()=>S2t,ReadmeSchema:()=>PSr,RemoveDiscriminantsFromSchemas:()=>xYe,ReplayConfigSchema:()=>CSr,RequestOrResponseExampleGenerationSchema:()=>E2t,ResolveAliases:()=>Nwr,ResolveAliasesSchema:()=>Fwr,ReviewerSchema:()=>x2t,ReviewersSchema:()=>Wbe,RubyGemsOutputLocationSchema:()=>aSr,SpecGitSourceSchema:()=>Iwr,SpecSchema:()=>_wr,SpecSourceSchema:()=>_be,UnionSettingsSchema:()=>Awr,WhitelabelConfigurationSchema:()=>RSr,WhitelabelGithubConfigurationSchema:()=>DSr,ai:()=>eto,automation:()=>rto,fernDefinition:()=>lro,generators:()=>vno,group:()=>Cno,license:()=>Sno,replay:()=>Ono,reviewers:()=>Pno});var Dnc=h(()=>{"use strict";Pnc()});var Rnc=h(()=>{"use strict";Ytc();Dnc()});function knc(e){return e?.specs!=null}var Fnc=h(()=>{"use strict"});function Nnc(e){return e?.asyncapi!=null}var jnc=h(()=>{"use strict"});function Qnc(e){return e?.conjure!=null}var znc=h(()=>{"use strict"});function Mnc(e){return e?.graphql!=null}var Lnc=h(()=>{"use strict"});function Vnc(e){return e?.namespaces!=null}var Unc=h(()=>{"use strict"});function _nc(e){return e?.openapi!=null}var Gnc=h(()=>{"use strict"});function qnc(e){return e?.openrpc!=null}var Wnc=h(()=>{"use strict"});function Hnc(e){return e?.proto!=null}var Knc=h(()=>{"use strict"});var Jnc=h(()=>{"use strict";Fnc();jnc();znc();Lnc();Unc();Gnc();Wnc();Knc()});var Dn={};Z(Dn,{API_ORIGIN_LOCATION_KEY:()=>k8a,API_SETTINGS_KEY:()=>Q8a,ASYNC_API_LOCATION_KEY:()=>F8a,CoerceConstsTo:()=>lec,DEFAULT_GROUP_GENERATORS_CONFIG_KEY:()=>vbe,DEFAULT_GROUP_NAME:()=>nFt,DefaultIntegerFormat:()=>dec,ExampleStyle:()=>hec,FormParameterEncoding:()=>Aec,GenerationLanguage:()=>gZa,GithubCommitAndReleaseMode:()=>ytc,GithubLicenseType:()=>Mtc,GithubSelfhostedMode:()=>Ctc,Language:()=>wec,MessageNamingSettingsSchema:()=>Tec,ModelProvider:()=>wZa,MultiServerStrategy:()=>Bec,OPENAPI_LOCATION_KEY:()=>N8a,OPENAPI_OVERRIDES_LOCATION_KEY:()=>j8a,PathParameterOrder:()=>Lec,RemoveDiscriminantsFromSchemas:()=>Jec,UnionSettingsSchema:()=>ntc,ai:()=>leo,automation:()=>BZa,fernDefinition:()=>xeo,generators:()=>weo,getPackageName:()=>AZa,group:()=>Teo,isApiConfigurationV2Schema:()=>knc,isAsyncApiSpecSchema:()=>Nnc,isConjureSchema:()=>Qnc,isGraphQLSpecSchema:()=>Mnc,isNamespacedApiConfiguration:()=>Vnc,isOpenApiSpecSchema:()=>_nc,isOpenRpcSpecSchema:()=>qnc,isProtoSpecSchema:()=>Hnc,isRawProtobufAPIDefinitionSchema:()=>bZa,license:()=>Beo,replay:()=>_tc,resolveAutomationConfig:()=>IZa,reviewers:()=>Htc,serialization:()=>Dno});var Ync=h(()=>{"use strict";V0r();yZa();EZa();vZa();Rnc();Jnc()});var Ea=h(()=>{"use strict";B8a();V0r();w7a();pZa();fZa();hZa();Ync()});function ikf(e){let{defaults:t,options:r,overrides:n,overrideOnly:i=new Set,undefinedIfAbsent:o=new Set}=e,s={};for(let a of Object.keys(t))i.has(a)?s[a]=n?.[a]!==void 0?n[a]:t[a]:o.has(a)?s[a]=n?.[a]!==void 0?n[a]:r?.[a]!==void 0?r[a]:void 0:s[a]=n?.[a]??r?.[a]??t[a];return s}function jje({options:e,overrides:t}){return ikf({defaults:nkf,options:e,overrides:t})}var nkf,Rno=h(()=>{"use strict";Ea();nkf={enableUniqueErrorsPerEndpoint:!1,detectGlobalHeaders:!0,objectQueryParameters:!0,respectReadonlySchemas:!1,useReadVariantForResponses:!1,respectNullableSchemas:!0,onlyIncludeReferencedSchemas:!1,inlinePathParameters:!0,respectOptionalRequestBody:!1,useBytesForBinaryResponse:!1,respectForwardCompatibleEnums:!1,wrapReferencesToNullableInOptional:!1,coerceOptionalSchemasToNullable:!1,groupEnvironmentsByHost:!1,multiServerStrategy:Dn.MultiServerStrategy.EnvironmentPerServer,removeDiscriminantsFromSchemas:Dn.RemoveDiscriminantsFromSchemas.Always,inferDefaultEnvironment:!0}});var Xnc=h(()=>{"use strict"});var Znc=h(()=>{"use strict"});var FYe,$nc=h(()=>{"use strict";ic();FYe={protobuf:e=>({...e,type:"protobuf",_visit:function(t){return FYe._visit(this,t)}}),_visit:(e,t)=>e.type==="protobuf"?t.protobuf(e):t._other(e)}});var eic=h(()=>{"use strict"});var tic=h(()=>{"use strict"});var ric=h(()=>{"use strict"});var nic=h(()=>{"use strict"});var iic=h(()=>{"use strict"});var oic=h(()=>{"use strict"});var sic=h(()=>{"use strict"});var aic=h(()=>{"use strict"});var cic=h(()=>{"use strict"});var uic=h(()=>{"use strict"});var lic=h(()=>{"use strict"});var p1,pic=h(()=>{"use strict";ic();p1={basic:e=>({...e,type:"basic",_visit:function(t){return p1._visit(this,t)}}),bearer:e=>({...e,type:"bearer",_visit:function(t){return p1._visit(this,t)}}),header:e=>({...e,type:"header",_visit:function(t){return p1._visit(this,t)}}),query:e=>({...e,type:"query",_visit:function(t){return p1._visit(this,t)}}),oauth:e=>({...e,type:"oauth",_visit:function(t){return p1._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"basic":return t.basic(e);case"bearer":return t.bearer(e);case"header":return t.header(e);case"query":return t.query(e);case"oauth":return t.oauth(e);default:return t._other(e)}}}});var fic=h(()=>{"use strict"});var dic=h(()=>{"use strict"});var mic=h(()=>{"use strict"});var fD,hic=h(()=>{"use strict";ic();fD={openapi:e=>({...e,type:"openapi",_visit:function(t){return fD._visit(this,t)}}),protobuf:e=>({...e,type:"protobuf",_visit:function(t){return fD._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"openapi":return t.openapi(e);case"protobuf":return t.protobuf(e);default:return t._other(e)}}}});var gic=h(()=>{"use strict"});var Aic=h(()=>{"use strict"});var yic=h(()=>{"use strict"});var bic=h(()=>{"use strict"});var Eic=h(()=>{"use strict"});var Iic=h(()=>{"use strict"});var vic=h(()=>{"use strict"});var xic=h(()=>{"use strict"});var Cic=h(()=>{"use strict"});var wic=h(()=>{"use strict"});var Sic=h(()=>{"use strict"});var Tic=h(()=>{"use strict"});var Oic=h(()=>{"use strict"});var Bic=h(()=>{"use strict"});var kno=h(()=>{"use strict";Xnc();Znc();$nc();eic();tic();ric();nic();iic();oic();sic();aic();cic();uic();lic();pic();fic();dic();mic();hic();gic();Aic();yic();bic();Eic();Iic();vic();xic();Cic();wic();Sic();Tic();Oic();Bic()});var Pic=h(()=>{"use strict";kno()});var fc,Dic=h(()=>{"use strict";ic();fc={primitive:e=>({value:e,type:"primitive",_visit:function(t){return fc._visit(this,t)}}),object:e=>({...e,type:"object",_visit:function(t){return fc._visit(this,t)}}),array:e=>({value:e,type:"array",_visit:function(t){return fc._visit(this,t)}}),map:e=>({value:e,type:"map",_visit:function(t){return fc._visit(this,t)}}),enum:e=>({value:e,type:"enum",_visit:function(t){return fc._visit(this,t)}}),literal:e=>({value:e,type:"literal",_visit:function(t){return fc._visit(this,t)}}),oneOf:e=>({value:e,type:"oneOf",_visit:function(t){return fc._visit(this,t)}}),null:e=>({...e,type:"null",_visit:function(t){return fc._visit(this,t)}}),unknown:e=>({value:e,type:"unknown",_visit:function(t){return fc._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"primitive":return t.primitive(e.value);case"object":return t.object(e);case"array":return t.array(e.value);case"map":return t.map(e.value);case"enum":return t.enum(e.value);case"literal":return t.literal(e.value);case"oneOf":return t.oneOf(e.value);case"null":return t.null(e);case"unknown":return t.unknown(e.value);default:return t._other(e)}}}});var Ric=h(()=>{"use strict"});var Hbe,kic=h(()=>{"use strict";ic();Hbe={discriminated:e=>({value:e,type:"discriminated",_visit:function(t){return Hbe._visit(this,t)}}),undiscriminated:e=>({value:e,type:"undiscriminated",_visit:function(t){return Hbe._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"discriminated":return t.discriminated(e.value);case"undiscriminated":return t.undiscriminated(e.value);default:return t._other(e)}}}});var Fic=h(()=>{"use strict"});var Kbe,Nic=h(()=>{"use strict";ic();Kbe={boolean:e=>({value:e,type:"boolean",_visit:function(t){return Kbe._visit(this,t)}}),string:e=>({value:e,type:"string",_visit:function(t){return Kbe._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"boolean":return t.boolean(e.value);case"string":return t.string(e.value);default:return t._other(e)}}}});var jic=h(()=>{"use strict"});var Oo,Qic=h(()=>{"use strict";ic();Oo={int:e=>({value:e,type:"int",_visit:function(t){return Oo._visit(this,t)}}),int64:e=>({value:e,type:"int64",_visit:function(t){return Oo._visit(this,t)}}),uint:e=>({value:e,type:"uint",_visit:function(t){return Oo._visit(this,t)}}),uint64:e=>({value:e,type:"uint64",_visit:function(t){return Oo._visit(this,t)}}),float:e=>({value:e,type:"float",_visit:function(t){return Oo._visit(this,t)}}),double:e=>({value:e,type:"double",_visit:function(t){return Oo._visit(this,t)}}),string:e=>({value:e,type:"string",_visit:function(t){return Oo._visit(this,t)}}),datetime:e=>({value:e,type:"datetime",_visit:function(t){return Oo._visit(this,t)}}),datetimeRfc2822:e=>({value:e,type:"datetimeRfc2822",_visit:function(t){return Oo._visit(this,t)}}),date:e=>({value:e,type:"date",_visit:function(t){return Oo._visit(this,t)}}),base64:e=>({value:e,type:"base64",_visit:function(t){return Oo._visit(this,t)}}),boolean:e=>({value:e,type:"boolean",_visit:function(t){return Oo._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"int":return t.int(e.value);case"int64":return t.int64(e.value);case"uint":return t.uint(e.value);case"uint64":return t.uint64(e.value);case"float":return t.float(e.value);case"double":return t.double(e.value);case"string":return t.string(e.value);case"datetime":return t.datetime(e.value);case"datetimeRfc2822":return t.datetimeRfc2822(e.value);case"date":return t.date(e.value);case"base64":return t.base64(e.value);case"boolean":return t.boolean(e.value);default:return t._other(e)}}}});var zic=h(()=>{"use strict"});var Fno=h(()=>{"use strict";Dic();Ric();kic();Fic();Nic();jic();Qic();zic()});var Mic=h(()=>{"use strict";Fno()});var Lic=h(()=>{"use strict"});var Vic=h(()=>{"use strict"});var akf,Jbe,Uic=h(()=>{"use strict";akf={RsaSha256:"rsa-sha256",RsaSha384:"rsa-sha384",RsaSha512:"rsa-sha512",EcdsaSha256:"ecdsa-sha256",EcdsaSha384:"ecdsa-sha384",EcdsaSha512:"ecdsa-sha512",Ed25519:"ed25519"},Jbe={...akf,_visit:(e,t)=>{switch(e){case Jbe.RsaSha256:return t.rsaSha256();case Jbe.RsaSha384:return t.rsaSha384();case Jbe.RsaSha512:return t.rsaSha512();case Jbe.EcdsaSha256:return t.ecdsaSha256();case Jbe.EcdsaSha384:return t.ecdsaSha384();case Jbe.EcdsaSha512:return t.ecdsaSha512();case Jbe.Ed25519:return t.ed25519();default:return t._other()}}}});var _ic=h(()=>{"use strict"});var ckf,Kh,Gic=h(()=>{"use strict";ckf={GenerallyAvailable:"GenerallyAvailable",Beta:"Beta",Deprecated:"Deprecated",Alpha:"Alpha",Preview:"Preview",Legacy:"Legacy"},Kh={...ckf,_visit:(e,t)=>{switch(e){case Kh.GenerallyAvailable:return t.generallyAvailable();case Kh.Beta:return t.beta();case Kh.Deprecated:return t.deprecated();case Kh.Alpha:return t.alpha();case Kh.Preview:return t.preview();case Kh.Legacy:return t.legacy();default:return t._other()}}}});var qic=h(()=>{"use strict"});var Wic=h(()=>{"use strict"});var Hic=h(()=>{"use strict"});var Kic=h(()=>{"use strict"});var Jic=h(()=>{"use strict"});var TX,Yic=h(()=>{"use strict";ic();TX={language:e=>({...e,type:"language",_visit:function(t){return TX._visit(this,t)}}),sdk:e=>({...e,type:"sdk",_visit:function(t){return TX._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"language":return t.language(e);case"sdk":return t.sdk(e);default:return t._other(e)}}}});var Xic=h(()=>{"use strict"});var Zic=h(()=>{"use strict"});var $ic=h(()=>{"use strict"});var eoc=h(()=>{"use strict"});var ukf,Nno,toc=h(()=>{"use strict";ukf={Data:"data",Protocol:"protocol"},Nno={...ukf,_visit:(e,t)=>{switch(e){case Nno.Data:return t.data();case Nno.Protocol:return t.protocol();default:return t._other()}}}});var roc=h(()=>{"use strict"});var noc=h(()=>{"use strict"});var xU,ioc=h(()=>{"use strict";ic();xU={unknown:e=>({value:e,type:"unknown",_visit:function(t){return xU._visit(this,t)}}),full:e=>({...e,type:"full",_visit:function(t){return xU._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"unknown":return t.unknown(e.value);case"full":return t.full(e);default:return t._other(e)}}}});var CU,ooc=h(()=>{"use strict";ic();CU={withStreaming:e=>({...e,type:"withStreaming",_visit:function(t){return CU._visit(this,t)}}),withoutStreaming:e=>({value:e,type:"withoutStreaming",_visit:function(t){return CU._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"withStreaming":return t.withStreaming(e);case"withoutStreaming":return t.withoutStreaming(e.value);default:return t._other(e)}}}});var soc=h(()=>{"use strict"});var aoc=h(()=>{"use strict"});var coc=h(()=>{"use strict"});var uoc=h(()=>{"use strict"});var loc=h(()=>{"use strict"});var poc=h(()=>{"use strict"});var foc=h(()=>{"use strict"});var doc=h(()=>{"use strict"});var moc=h(()=>{"use strict"});var hoc=h(()=>{"use strict"});var goc=h(()=>{"use strict"});var Aoc=h(()=>{"use strict"});var yoc=h(()=>{"use strict"});var boc=h(()=>{"use strict"});var Eoc=h(()=>{"use strict"});var Ioc=h(()=>{"use strict"});var voc=h(()=>{"use strict"});var xoc=h(()=>{"use strict"});var lkf,f1,Coc=h(()=>{"use strict";lkf={Get:"GET",Post:"POST",Put:"PUT",Patch:"PATCH",Delete:"DELETE",Head:"HEAD",Options:"OPTIONS",Trace:"TRACE"},f1={...lkf,_visit:(e,t)=>{switch(e){case f1.Get:return t.get();case f1.Post:return t.post();case f1.Put:return t.put();case f1.Patch:return t.patch();case f1.Delete:return t.delete();case f1.Head:return t.head();case f1.Options:return t.options();case f1.Trace:return t.trace();default:return t._other()}}}});var woc=h(()=>{"use strict"});var Soc=h(()=>{"use strict"});var Toc=h(()=>{"use strict"});var Ooc=h(()=>{"use strict"});var Boc=h(()=>{"use strict"});var by,Poc=h(()=>{"use strict";ic();by={boolean:e=>({value:e,type:"boolean",_visit:function(t){return by._visit(this,t)}}),string:e=>({value:e,type:"string",_visit:function(t){return by._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"boolean":return t.boolean(e.value);case"string":return t.string(e.value);default:return t._other(e)}}}});var Doc=h(()=>{"use strict"});var Roc=h(()=>{"use strict"});var koc=h(()=>{"use strict"});var Foc=h(()=>{"use strict"});var Noc=h(()=>{"use strict"});var pkf,jno,joc=h(()=>{"use strict";pkf={Json:"json",Form:"form"},jno={...pkf,_visit:(e,t)=>{switch(e){case jno.Json:return t.json();case jno.Form:return t.form();default:return t._other()}}}});var OX,Qoc=h(()=>{"use strict";ic();OX={file:e=>({...e,type:"file",_visit:function(t){return OX._visit(this,t)}}),json:e=>({value:e,type:"json",_visit:function(t){return OX._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"file":return t.file(e);case"json":return t.json(e.value);default:return t._other(e)}}}});var zoc=h(()=>{"use strict"});var Moc=h(()=>{"use strict"});var Loc=h(()=>{"use strict"});var Voc=h(()=>{"use strict"});var Uoc=h(()=>{"use strict"});var _oc=h(()=>{"use strict"});var BX,Goc=h(()=>{"use strict";ic();BX={discriminated:e=>({...e,type:"discriminated",_visit:function(t){return BX._visit(this,t)}}),undiscriminated:e=>({...e,type:"undiscriminated",_visit:function(t){return BX._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"discriminated":return t.discriminated(e);case"undiscriminated":return t.undiscriminated(e);default:return t._other(e)}}}});var qoc=h(()=>{"use strict"});var Woc=h(()=>{"use strict"});var Nw,Hoc=h(()=>{"use strict";ic();Nw={cursor:e=>({...e,type:"cursor",_visit:function(t){return Nw._visit(this,t)}}),offset:e=>({...e,type:"offset",_visit:function(t){return Nw._visit(this,t)}}),custom:e=>({...e,type:"custom",_visit:function(t){return Nw._visit(this,t)}}),uri:e=>({...e,type:"uri",_visit:function(t){return Nw._visit(this,t)}}),path:e=>({...e,type:"path",_visit:function(t){return Nw._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"cursor":return t.cursor(e);case"offset":return t.offset(e);case"custom":return t.custom(e);case"uri":return t.uri(e);case"path":return t.path(e);default:return t._other(e)}}}});var Koc=h(()=>{"use strict"});var Joc=h(()=>{"use strict"});var Yoc=h(()=>{"use strict"});var Xoc=h(()=>{"use strict"});var Wu,Zoc=h(()=>{"use strict";ic();Wu={int:e=>({...e,type:"int",_visit:function(t){return Wu._visit(this,t)}}),int64:e=>({...e,type:"int64",_visit:function(t){return Wu._visit(this,t)}}),uint:()=>({type:"uint",_visit:function(e){return Wu._visit(this,e)}}),uint64:()=>({type:"uint64",_visit:function(e){return Wu._visit(this,e)}}),float:()=>({type:"float",_visit:function(e){return Wu._visit(this,e)}}),double:e=>({...e,type:"double",_visit:function(t){return Wu._visit(this,t)}}),string:e=>({...e,type:"string",_visit:function(t){return Wu._visit(this,t)}}),datetime:()=>({type:"datetime",_visit:function(e){return Wu._visit(this,e)}}),datetimeRfc2822:()=>({type:"datetimeRfc2822",_visit:function(e){return Wu._visit(this,e)}}),date:()=>({type:"date",_visit:function(e){return Wu._visit(this,e)}}),base64:()=>({type:"base64",_visit:function(e){return Wu._visit(this,e)}}),boolean:e=>({...e,type:"boolean",_visit:function(t){return Wu._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"int":return t.int(e);case"int64":return t.int64(e);case"uint":return t.uint();case"uint64":return t.uint64();case"float":return t.float();case"double":return t.double(e);case"string":return t.string(e);case"datetime":return t.datetime();case"datetimeRfc2822":return t.datetimeRfc2822();case"date":return t.date();case"base64":return t.base64();case"boolean":return t.boolean(e);default:return t._other(e)}}}});var $oc=h(()=>{"use strict"});var esc=h(()=>{"use strict"});var tsc=h(()=>{"use strict"});var eW,rsc=h(()=>{"use strict";ic();eW={octetStream:e=>({...e,type:"octetStream",_visit:function(t){return eW._visit(this,t)}}),multipart:e=>({...e,type:"multipart",_visit:function(t){return eW._visit(this,t)}}),json:e=>({...e,type:"json",_visit:function(t){return eW._visit(this,t)}}),formUrlEncoded:e=>({...e,type:"formUrlEncoded",_visit:function(t){return eW._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"octetStream":return t.octetStream(e);case"multipart":return t.multipart(e);case"json":return t.json(e);case"formUrlEncoded":return t.formUrlEncoded(e);default:return t._other(e)}}}});var cB,nsc=h(()=>{"use strict";ic();cB={file:e=>({...e,type:"file",_visit:function(t){return cB._visit(this,t)}}),json:e=>({...e,type:"json",_visit:function(t){return cB._visit(this,t)}}),text:e=>({...e,type:"text",_visit:function(t){return cB._visit(this,t)}}),bytes:e=>({...e,type:"bytes",_visit:function(t){return cB._visit(this,t)}}),streamingSse:e=>({...e,type:"streamingSse",_visit:function(t){return cB._visit(this,t)}}),streamingText:e=>({...e,type:"streamingText",_visit:function(t){return cB._visit(this,t)}}),streamingJson:e=>({...e,type:"streamingJson",_visit:function(t){return cB._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"file":return t.file(e);case"json":return t.json(e);case"text":return t.text(e);case"bytes":return t.bytes(e);case"streamingSse":return t.streamingSse(e);case"streamingText":return t.streamingText(e);case"streamingJson":return t.streamingJson(e);default:return t._other(e)}}}});var T2t,isc=h(()=>{"use strict";ic();T2t={disabled:e=>({value:e,type:"disabled",_visit:function(t){return T2t._visit(this,t)}}),_visit:(e,t)=>e.type==="disabled"?t.disabled(e.value):t._other(e)}});var ha,osc=h(()=>{"use strict";ic();ha={primitive:e=>({...e,type:"primitive",_visit:function(t){return ha._visit(this,t)}}),object:e=>({...e,type:"object",_visit:function(t){return ha._visit(this,t)}}),array:e=>({...e,type:"array",_visit:function(t){return ha._visit(this,t)}}),map:e=>({...e,type:"map",_visit:function(t){return ha._visit(this,t)}}),optional:e=>({...e,type:"optional",_visit:function(t){return ha._visit(this,t)}}),enum:e=>({...e,type:"enum",_visit:function(t){return ha._visit(this,t)}}),reference:e=>({...e,type:"reference",_visit:function(t){return ha._visit(this,t)}}),literal:e=>({...e,type:"literal",_visit:function(t){return ha._visit(this,t)}}),oneOf:e=>({value:e,type:"oneOf",_visit:function(t){return ha._visit(this,t)}}),nullable:e=>({...e,type:"nullable",_visit:function(t){return ha._visit(this,t)}}),unknown:e=>({...e,type:"unknown",_visit:function(t){return ha._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"primitive":return t.primitive(e);case"object":return t.object(e);case"array":return t.array(e);case"map":return t.map(e);case"optional":return t.optional(e);case"enum":return t.enum(e);case"reference":return t.reference(e);case"literal":return t.literal(e);case"oneOf":return t.oneOf(e.value);case"nullable":return t.nullable(e);case"unknown":return t.unknown(e);default:return t._other(e)}}}});var ssc=h(()=>{"use strict"});var asc=h(()=>{"use strict"});var csc=h(()=>{"use strict"});var usc=h(()=>{"use strict"});var fkf,d1,lsc=h(()=>{"use strict";fkf={Curl:"curl",Python:"python",Javascript:"javascript",Typescript:"typescript",Go:"go",Ruby:"ruby",Csharp:"csharp",Java:"java",Js:"js",Node:"node",Ts:"ts",Nodets:"nodets",Golang:"golang",Dotnet:"dotnet",Jvm:"jvm"},d1={...fkf,_visit:(e,t)=>{switch(e){case d1.Curl:return t.curl();case d1.Python:return t.python();case d1.Javascript:return t.javascript();case d1.Typescript:return t.typescript();case d1.Go:return t.go();case d1.Ruby:return t.ruby();case d1.Csharp:return t.csharp();case d1.Java:return t.java();case d1.Js:return t.js();case d1.Node:return t.node();case d1.Ts:return t.ts();case d1.Nodets:return t.nodets();case d1.Golang:return t.golang();case d1.Dotnet:return t.dotnet();case d1.Jvm:return t.jvm();default:return t._other()}}}});var psc=h(()=>{"use strict"});var fsc=h(()=>{"use strict"});var dsc=h(()=>{"use strict"});var msc=h(()=>{"use strict"});var hsc=h(()=>{"use strict"});var gsc=h(()=>{"use strict"});var dkf,O2t,Asc=h(()=>{"use strict";dkf={Sha256:"sha256",Sha1:"sha1",Sha384:"sha384",Sha512:"sha512"},O2t={...dkf,_visit:(e,t)=>{switch(e){case O2t.Sha256:return t.sha256();case O2t.Sha1:return t.sha1();case O2t.Sha384:return t.sha384();case O2t.Sha512:return t.sha512();default:return t._other()}}}});var ysc=h(()=>{"use strict"});var B2t,bsc=h(()=>{"use strict";ic();B2t={queryParameter:e=>({...e,type:"queryParameter",_visit:function(t){return B2t._visit(this,t)}}),_visit:(e,t)=>e.type==="queryParameter"?t.queryParameter(e):t._other(e)}});var Esc=h(()=>{"use strict"});var Isc=h(()=>{"use strict"});var mkf,Qno,vsc=h(()=>{"use strict";mkf={Get:"GET",Post:"POST"},Qno={...mkf,_visit:(e,t)=>{switch(e){case Qno.Get:return t.get();case Qno.Post:return t.post();default:return t._other()}}}});var xsc=h(()=>{"use strict"});var hkf,Csc,wsc=h(()=>{"use strict";hkf={Alphabetical:"alphabetical"},Csc={...hkf,_visit:(e,t)=>e===Csc.Alphabetical?t.alphabetical():t._other()}});var gkf,P2t,Ssc=h(()=>{"use strict";gkf={Body:"body",Timestamp:"timestamp",NotificationUrl:"notification-url",MessageId:"message-id"},P2t={...gkf,_visit:(e,t)=>{switch(e){case P2t.Body:return t.body();case P2t.Timestamp:return t.timestamp();case P2t.NotificationUrl:return t.notificationUrl();case P2t.MessageId:return t.messageId();default:return t._other()}}}});var Tsc=h(()=>{"use strict"});var Akf,D2t,Osc=h(()=>{"use strict";Akf={Sha256:"sha256",Sha1:"sha1",Sha384:"sha384",Sha512:"sha512"},D2t={...Akf,_visit:(e,t)=>{switch(e){case D2t.Sha256:return t.sha256();case D2t.Sha1:return t.sha1();case D2t.Sha384:return t.sha384();case D2t.Sha512:return t.sha512();default:return t._other()}}}});var ykf,zno,Bsc=h(()=>{"use strict";ykf={Base64:"base64",Hex:"hex"},zno={...ykf,_visit:(e,t)=>{switch(e){case zno.Base64:return t.base64();case zno.Hex:return t.hex();default:return t._other()}}}});var Qje,Psc=h(()=>{"use strict";ic();Qje={hmac:e=>({...e,type:"hmac",_visit:function(t){return Qje._visit(this,t)}}),asymmetric:e=>({...e,type:"asymmetric",_visit:function(t){return Qje._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"hmac":return t.hmac(e);case"asymmetric":return t.asymmetric(e);default:return t._other(e)}}}});var Dsc=h(()=>{"use strict"});var bkf,kSr,Rsc=h(()=>{"use strict";bkf={UnixSeconds:"unix-seconds",UnixMillis:"unix-millis",Iso8601:"iso8601"},kSr={...bkf,_visit:(e,t)=>{switch(e){case kSr.UnixSeconds:return t.unixSeconds();case kSr.UnixMillis:return t.unixMillis();case kSr.Iso8601:return t.iso8601();default:return t._other()}}}});var ksc=h(()=>{"use strict"});var Fsc=h(()=>{"use strict"});var Nsc=h(()=>{"use strict"});var Ekf,Mno,jsc=h(()=>{"use strict";Ekf={Client:"client",Server:"server"},Mno={...Ekf,_visit:(e,t)=>{switch(e){case Mno.Client:return t.client();case Mno.Server:return t.server();default:return t._other()}}}});var Qsc=h(()=>{"use strict"});var zsc=h(()=>{"use strict"});var Msc=h(()=>{"use strict"});var Lno=h(()=>{"use strict";Lic();Vic();Uic();_ic();Gic();qic();Wic();Hic();Kic();Jic();Yic();Xic();Zic();$ic();eoc();toc();roc();noc();ioc();ooc();soc();aoc();coc();uoc();loc();poc();foc();doc();moc();hoc();goc();Aoc();yoc();boc();Eoc();Ioc();voc();xoc();Coc();woc();Soc();Toc();Ooc();Boc();Poc();Doc();Roc();koc();Foc();Noc();joc();Qoc();zoc();Moc();Loc();Voc();Uoc();_oc();Goc();qoc();Woc();Hoc();Koc();Joc();Yoc();Xoc();Zoc();$oc();esc();tsc();rsc();nsc();isc();osc();ssc();asc();csc();usc();lsc();psc();fsc();dsc();msc();hsc();gsc();Asc();ysc();bsc();Esc();Isc();vsc();xsc();wsc();Ssc();Tsc();Osc();Bsc();Psc();Dsc();Rsc();ksc();Fsc();Nsc();jsc();Qsc();zsc();Msc()});var lm={};Z(lm,{AsymmetricAlgorithm:()=>Jbe,Availability:()=>Kh,CustomCodeSample:()=>TX,DiscriminatorContext:()=>Nno,EndpointExample:()=>xU,EndpointResponseExample:()=>CU,HttpMethod:()=>f1,LiteralSchemaValue:()=>by,MultipartRequestPropertyEncoding:()=>jno,MultipartSchema:()=>OX,OneOfSchema:()=>BX,Pagination:()=>Nw,PrimitiveSchemaValue:()=>Wu,Request:()=>eW,Response:()=>cB,RetriesConfiguration:()=>T2t,Schema:()=>ha,SupportedSdkLanguage:()=>d1,WebhookBodyHashAlgorithm:()=>O2t,WebhookBodyHashLocation:()=>B2t,WebhookHttpMethod:()=>Qno,WebhookPayloadBodySort:()=>Csc,WebhookPayloadComponent:()=>P2t,WebhookSignatureAlgorithm:()=>D2t,WebhookSignatureEncoding:()=>zno,WebhookSignatureVerification:()=>Qje,WebhookTimestampFormat:()=>kSr,WebsocketMessageOrigin:()=>Mno});var Lsc=h(()=>{"use strict";Lno()});var Vsc=h(()=>{"use strict"});var Usc=h(()=>{"use strict"});var _sc=h(()=>{"use strict"});var Gsc=h(()=>{"use strict"});var qsc=h(()=>{"use strict"});var Wsc=h(()=>{"use strict"});var Hsc=h(()=>{"use strict"});var Ksc=h(()=>{"use strict"});var Jsc=h(()=>{"use strict"});var Ysc=h(()=>{"use strict"});var Xsc=h(()=>{"use strict"});var Zsc=h(()=>{"use strict"});var $sc=h(()=>{"use strict"});var eac=h(()=>{"use strict"});var tac=h(()=>{"use strict"});var rac=h(()=>{"use strict"});var nac=h(()=>{"use strict"});var iac=h(()=>{"use strict"});var oac=h(()=>{"use strict"});var sac=h(()=>{"use strict"});var aac=h(()=>{"use strict"});var cac=h(()=>{"use strict"});var uac=h(()=>{"use strict"});var OL,lac=h(()=>{"use strict";ic();OL={discriminated:e=>({...e,type:"discriminated",_visit:function(t){return OL._visit(this,t)}}),undiscriminated:e=>({...e,type:"undiscriminated",_visit:function(t){return OL._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"discriminated":return t.discriminated(e);case"undiscriminated":return t.undiscriminated(e);default:return t._other(e)}}}});var pac=h(()=>{"use strict"});var fac=h(()=>{"use strict"});var dac=h(()=>{"use strict"});var mac=h(()=>{"use strict"});var hac=h(()=>{"use strict"});var Mi,gac=h(()=>{"use strict";ic();Mi={int:e=>({...e,type:"int",_visit:function(t){return Mi._visit(this,t)}}),int64:e=>({...e,type:"int64",_visit:function(t){return Mi._visit(this,t)}}),uint:e=>({...e,type:"uint",_visit:function(t){return Mi._visit(this,t)}}),uint64:e=>({...e,type:"uint64",_visit:function(t){return Mi._visit(this,t)}}),float:e=>({...e,type:"float",_visit:function(t){return Mi._visit(this,t)}}),double:e=>({...e,type:"double",_visit:function(t){return Mi._visit(this,t)}}),string:e=>({...e,type:"string",_visit:function(t){return Mi._visit(this,t)}}),datetime:e=>({...e,type:"datetime",_visit:function(t){return Mi._visit(this,t)}}),datetimeRfc2822:e=>({...e,type:"datetimeRfc2822",_visit:function(t){return Mi._visit(this,t)}}),date:e=>({...e,type:"date",_visit:function(t){return Mi._visit(this,t)}}),base64:e=>({...e,type:"base64",_visit:function(t){return Mi._visit(this,t)}}),boolean:e=>({...e,type:"boolean",_visit:function(t){return Mi._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"int":return t.int(e);case"int64":return t.int64(e);case"uint":return t.uint(e);case"uint64":return t.uint64(e);case"float":return t.float(e);case"double":return t.double(e);case"string":return t.string(e);case"datetime":return t.datetime(e);case"datetimeRfc2822":return t.datetimeRfc2822(e);case"date":return t.date(e);case"base64":return t.base64(e);case"boolean":return t.boolean(e);default:return t._other(e)}}}});var Aac=h(()=>{"use strict"});var yac=h(()=>{"use strict"});var xF,bac=h(()=>{"use strict";ic();xF={octetStream:e=>({...e,type:"octetStream",_visit:function(t){return xF._visit(this,t)}}),multipart:e=>({...e,type:"multipart",_visit:function(t){return xF._visit(this,t)}}),json:e=>({...e,type:"json",_visit:function(t){return xF._visit(this,t)}}),formUrlEncoded:e=>({...e,type:"formUrlEncoded",_visit:function(t){return xF._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"octetStream":return t.octetStream(e);case"multipart":return t.multipart(e);case"json":return t.json(e);case"formUrlEncoded":return t.formUrlEncoded(e);default:return t._other(e)}}}});var jg,Eac=h(()=>{"use strict";ic();jg={file:e=>({...e,type:"file",_visit:function(t){return jg._visit(this,t)}}),json:e=>({...e,type:"json",_visit:function(t){return jg._visit(this,t)}}),text:e=>({...e,type:"text",_visit:function(t){return jg._visit(this,t)}}),bytes:e=>({...e,type:"bytes",_visit:function(t){return jg._visit(this,t)}}),streamingSse:e=>({...e,type:"streamingSse",_visit:function(t){return jg._visit(this,t)}}),streamingText:e=>({...e,type:"streamingText",_visit:function(t){return jg._visit(this,t)}}),streamingJson:e=>({...e,type:"streamingJson",_visit:function(t){return jg._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"file":return t.file(e);case"json":return t.json(e);case"text":return t.text(e);case"bytes":return t.bytes(e);case"streamingSse":return t.streamingSse(e);case"streamingText":return t.streamingText(e);case"streamingJson":return t.streamingJson(e);default:return t._other(e)}}}});var Vr,Iac=h(()=>{"use strict";ic();Vr={primitive:e=>({...e,type:"primitive",_visit:function(t){return Vr._visit(this,t)}}),object:e=>({...e,type:"object",_visit:function(t){return Vr._visit(this,t)}}),array:e=>({...e,type:"array",_visit:function(t){return Vr._visit(this,t)}}),map:e=>({...e,type:"map",_visit:function(t){return Vr._visit(this,t)}}),optional:e=>({...e,type:"optional",_visit:function(t){return Vr._visit(this,t)}}),enum:e=>({...e,type:"enum",_visit:function(t){return Vr._visit(this,t)}}),reference:e=>({...e,type:"reference",_visit:function(t){return Vr._visit(this,t)}}),literal:e=>({...e,type:"literal",_visit:function(t){return Vr._visit(this,t)}}),oneOf:e=>({value:e,type:"oneOf",_visit:function(t){return Vr._visit(this,t)}}),nullable:e=>({...e,type:"nullable",_visit:function(t){return Vr._visit(this,t)}}),unknown:e=>({...e,type:"unknown",_visit:function(t){return Vr._visit(this,t)}}),_visit:(e,t)=>{switch(e.type){case"primitive":return t.primitive(e);case"object":return t.object(e);case"array":return t.array(e);case"map":return t.map(e);case"optional":return t.optional(e);case"enum":return t.enum(e);case"reference":return t.reference(e);case"literal":return t.literal(e);case"oneOf":return t.oneOf(e.value);case"nullable":return t.nullable(e);case"unknown":return t.unknown(e);default:return t._other(e)}}}});var vac=h(()=>{"use strict"});var xac=h(()=>{"use strict"});var Cac=h(()=>{"use strict"});var wac=h(()=>{"use strict"});var Sac=h(()=>{"use strict"});var Tac=h(()=>{"use strict"});var Oac=h(()=>{"use strict"});var Vno=h(()=>{"use strict";Vsc();Usc();_sc();Gsc();qsc();Wsc();Hsc();Ksc();Jsc();Ysc();Xsc();Zsc();$sc();eac();tac();rac();nac();iac();oac();sac();aac();cac();uac();lac();pac();fac();dac();mac();hac();gac();Aac();yac();bac();Eac();Iac();vac();xac();Cac();wac();Sac();Tac();Oac()});var Bac=h(()=>{"use strict";Vno()});var Pac=h(()=>{"use strict";Pic();kno();Mic();Fno();Lsc();Lno();Bac();Vno()});var ic=h(()=>{"use strict";Pac()});var tW,Dac,R2t,Uno,Au0,_no=h(()=>{"use strict";tW={Debug:"debug",Info:"info",Warn:"warn",Error:"error"},Dac={[tW.Debug]:1,[tW.Info]:2,[tW.Warn]:3,[tW.Error]:4},R2t=class{debug(t,...r){console.debug(t,...r)}info(t,...r){console.info(t,...r)}warn(t,...r){console.warn(t,...r)}error(t,...r){console.error(t,...r)}},Uno=class{level;logger;silent;constructor(t){this.level=Dac[t.level],this.logger=t.logger,this.silent=t.silent}shouldLog(t){return!this.silent&&this.level<=Dac[t]}isDebug(){return this.shouldLog(tW.Debug)}debug(t,...r){this.isDebug()&&this.logger.debug(t,...r)}isInfo(){return this.shouldLog(tW.Info)}info(t,...r){this.isInfo()&&this.logger.info(t,...r)}isWarn(){return this.shouldLog(tW.Warn)}warn(t,...r){this.isWarn()&&this.logger.warn(t,...r)}isError(){return this.shouldLog(tW.Error)}error(t,...r){this.isError()&&this.logger.error(t,...r)}},Au0=new Uno({level:tW.Info,logger:new R2t,silent:!0})});var Rac,kac=h(()=>{"use strict";_no();(function(e){e.LogLevel=tW,e.ConsoleLogger=R2t})(Rac||(Rac={}))});var Fac=h(()=>{"use strict";kac()});var Nac=h(()=>{"use strict";Fac()});var jac=h(()=>{"use strict"});var Qac=h(()=>{"use strict";_no()});var zac=h(()=>{"use strict"});var Hu,jw=h(()=>{"use strict";Hu={BIGINT:"bigint",DATE:"date",ENUM:"enum",LIST:"list",STRING_LITERAL:"stringLiteral",BOOLEAN_LITERAL:"booleanLiteral",OBJECT:"object",ANY:"any",BOOLEAN:"boolean",NUMBER:"number",STRING:"string",UNKNOWN:"unknown",NEVER:"never",RECORD:"record",SET:"set",UNION:"union",UNDISCRIMINATED_UNION:"undiscriminatedUnion",NULLABLE:"nullable",OPTIONAL:"optional",OPTIONAL_NULLABLE:"optionalNullable"}});function pm(e,t){return`Expected ${t}. Received ${Ckf(e)}.`}function Ckf(e){if(Array.isArray(e))return"list";if(e===null)return"null";if(e instanceof BigInt)return"BigInt";switch(typeof e){case"string":return`"${e}"`;case"bigint":case"number":case"boolean":case"undefined":return`${e}`}return typeof e}var CF=h(()=>{"use strict"});function m1(e){return{...e,json:Mac(e.json),parse:Mac(e.parse)}}function Mac(e){return(t,r)=>{let n=e(t,r),{skipValidation:i=!1}=r??{};return!n.ok&&i?(console.warn(["Failed to validate.",...n.errors.map(o=>" - "+(o.path.length>0?`${o.path.join(".")}: ${o.message}`:o.message))].join(`
175
175
  `)),{ok:!0,value:t}):n}}var PX=h(()=>{"use strict"});function FSr(e){return e.path.length===0?e.message:`${e.path.join(" -> ")}: ${e.message}`}var Gno=h(()=>{"use strict"});var NYe,qno=h(()=>{"use strict";Gno();NYe=class e extends Error{errors;constructor(t){super(t.map(FSr).join("; ")),this.errors=t,Object.setPrototypeOf(this,e.prototype)}}});var jYe,Wno=h(()=>{"use strict";Gno();jYe=class e extends Error{errors;constructor(t){super(t.map(FSr).join("; ")),this.errors=t,Object.setPrototypeOf(this,e.prototype)}}});function Ym(e){return{nullable:()=>wkf(e),optional:()=>Hno(e),optionalNullable:()=>Skf(e),transform:t=>Kno(e,t),parseOrThrow:(t,r)=>{let n=e.parse(t,r);if(n.ok)return n.value;throw new jYe(n.errors)},jsonOrThrow:(t,r)=>{let n=e.json(t,r);if(n.ok)return n.value;throw new NYe(n.errors)}}}function wkf(e){let t={parse:(r,n)=>r==null?{ok:!0,value:null}:e.parse(r,n),json:(r,n)=>r==null?{ok:!0,value:null}:e.json(r,n),getType:()=>Hu.NULLABLE};return{...t,...Ym(t)}}function Hno(e){let t={parse:(r,n)=>r==null?{ok:!0,value:void 0}:e.parse(r,n),json:(r,n)=>n?.omitUndefined&&r===void 0?{ok:!0,value:void 0}:r==null?{ok:!0,value:null}:e.json(r,n),getType:()=>Hu.OPTIONAL};return{...t,...Ym(t)}}function Skf(e){let t={parse:(r,n)=>r===void 0?{ok:!0,value:void 0}:r===null?{ok:!0,value:null}:e.parse(r,n),json:(r,n)=>r===void 0?{ok:!0,value:void 0}:r===null?{ok:!0,value:null}:e.json(r,n),getType:()=>Hu.OPTIONAL_NULLABLE};return{...t,...Ym(t)}}function Kno(e,t){let r={parse:(n,i)=>{let o=e.parse(n,i);return o.ok?{ok:!0,value:t.transform(o.value)}:o},json:(n,i)=>{let o=t.untransform(n);return e.json(o,i)},getType:()=>e.getType()};return{...r,...Ym(r)}}var Lac=h(()=>{"use strict";jw();qno();Wno()});var sQ=h(()=>{"use strict";Lac();qno();Wno()});function Vac(){let e={parse:(t,{breadcrumbsPrefix:r=[]}={})=>typeof t=="bigint"?{ok:!0,value:t}:typeof t=="number"?{ok:!0,value:BigInt(t)}:{ok:!1,errors:[{path:r,message:pm(t,"bigint | number")}]},json:(t,{breadcrumbsPrefix:r=[]}={})=>typeof t!="bigint"?{ok:!1,errors:[{path:r,message:pm(t,"bigint")}]}:{ok:!0,value:t},getType:()=>Hu.BIGINT};return{...m1(e),...Ym(e)}}var Uac=h(()=>{"use strict";jw();CF();PX();sQ()});var _ac=h(()=>{"use strict";Uac()});function Gac(){let e={parse:(t,{breadcrumbsPrefix:r=[]}={})=>typeof t!="string"?{ok:!1,errors:[{path:r,message:pm(t,"string")}]}:Tkf.test(t)?{ok:!0,value:new Date(t)}:{ok:!1,errors:[{path:r,message:pm(t,"ISO 8601 date string")}]},json:(t,{breadcrumbsPrefix:r=[]}={})=>t instanceof Date?{ok:!0,value:t.toISOString()}:{ok:!1,errors:[{path:r,message:pm(t,"Date object")}]},getType:()=>Hu.DATE};return{...m1(e),...Ym(e)}}var Tkf,qac=h(()=>{"use strict";jw();CF();PX();sQ();Tkf=/^([+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([.,]\d+(?!:))?)?(\17[0-5]\d([.,]\d+)?)?([zZ]|([+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/});var Wac=h(()=>{"use strict";qac()});function h1(e,t){return()=>{let r={parse:t,json:t,getType:()=>e};return{...m1(r),...Ym(r)}}}var DX=h(()=>{"use strict";sQ();PX()});function NSr(e){let t=new Set(e);return h1(Hu.ENUM,(n,{allowUnrecognizedEnumValues:i,breadcrumbsPrefix:o=[]}={})=>typeof n!="string"?{ok:!1,errors:[{path:o,message:pm(n,"string")}]}:!t.has(n)&&!i?{ok:!1,errors:[{path:o,message:pm(n,"enum")}]}:{ok:!0,value:n})()}var Hac=h(()=>{"use strict";jw();DX();CF()});var Jno=h(()=>{"use strict";Hac()});function Kac(e){let t=Yno(e);return{...t,...Ym(t)}}function Yno(e){return{parse:(t,r)=>QYe(e).parse(t,r),json:(t,r)=>QYe(e).json(t,r),getType:()=>QYe(e).getType()}}function QYe(e){let t=e;return t.__zurg_memoized==null&&(t.__zurg_memoized=e()),t.__zurg_memoized}var Xno=h(()=>{"use strict";sQ()});function Zno(e){return Object.entries(e)}var Jac=h(()=>{"use strict"});function k2t(e,t){let r=new Set(t);return Object.entries(e).reduce((n,[i,o])=>(r.has(i)&&(n[i]=o),n),{})}var $no=h(()=>{"use strict"});function ple(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return t===null?!0:Object.getPrototypeOf(t)===null}var F2t=h(()=>{"use strict"});function N2t(e){return Object.keys(e)}var eio=h(()=>{"use strict"});function Yac(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}var Xac=h(()=>{"use strict"});function rW(e){return{withParsedProperties:t=>tio(e,t)}}function tio(e,t){let r={parse:(n,i)=>{let o=e.parse(n,i);if(!o.ok)return o;let s={};for(let a in t)if(Okf.call(t,a)){let c=t[a];s[a]=typeof c=="function"?c(o.value):c}return{ok:!0,value:{...o.value,...s}}},json:(n,i)=>{if(!ple(n))return{ok:!1,errors:[{path:i?.breadcrumbsPrefix??[],message:pm(n,"object")}]};let o=new Set(Object.keys(t)),s=k2t(n,Object.keys(n).filter(a=>!o.has(a)));return e.json(s,i)},getType:()=>e.getType()};return{...r,...Ym(r),...rW(r)}}var Okf,Zac=h(()=>{"use strict";$no();CF();F2t();sQ();Okf=Object.prototype.hasOwnProperty});var j2t=h(()=>{"use strict";Zac()});function $ac(e,t){return{rawKey:e,valueSchema:t,isProperty:!0}}function fle(e){return e.isProperty}var rio=h(()=>{"use strict"});function jSr(e){let t;function r(){if(t==null){t={};for(let[d,f]of Zno(e)){let m=fle(f)?f.rawKey:d,g=fle(f)?f.valueSchema:f;t[m]={rawKey:m,parsedKey:d,valueSchema:g}}}return t}let n,i,o,s;function a(){if(n==null){n=[],i=[];for(let[d,f]of Zno(e)){let m=fle(f)?f.rawKey:d,g=fle(f)?f.valueSchema:f;Pkf(g)&&(n.push(m),i.push(d))}o=new Set(n),s=new Set(i)}return n}function c(){return i==null&&a(),i}function u(){return o==null&&a(),o}function l(){return s==null&&a(),s}let p={_getRawProperties:()=>Object.entries(e).map(([d,f])=>fle(f)?f.rawKey:d),_getParsedProperties:()=>N2t(e),parse:(d,f)=>{let m=f?.breadcrumbsPrefix??[];return ecc({value:d,requiredKeys:a(),requiredKeysSet:u(),getProperty:g=>{let A=r()[g];if(A!=null)return{transformedKey:A.parsedKey,transform:y=>{let E=[...m,g];return A.valueSchema.parse(y,{...f,breadcrumbsPrefix:E})}}},unrecognizedObjectKeys:f?.unrecognizedObjectKeys,skipValidation:f?.skipValidation,breadcrumbsPrefix:m,omitUndefined:f?.omitUndefined})},json:(d,f)=>{let m=f?.breadcrumbsPrefix??[];return ecc({value:d,requiredKeys:c(),requiredKeysSet:l(),getProperty:g=>{let A=e[g];if(A!=null)return fle(A)?{transformedKey:A.rawKey,transform:y=>{let E=[...m,g];return A.valueSchema.json(y,{...f,breadcrumbsPrefix:E})}}:{transformedKey:g,transform:y=>{let E=[...m,g];return A.json(y,{...f,breadcrumbsPrefix:E})}}},unrecognizedObjectKeys:f?.unrecognizedObjectKeys,skipValidation:f?.skipValidation,breadcrumbsPrefix:m,omitUndefined:f?.omitUndefined})},getType:()=>Hu.OBJECT};return{...m1(p),...Ym(p),...rW(p),...zje(p)}}function ecc({value:e,requiredKeys:t,requiredKeysSet:r,getProperty:n,unrecognizedObjectKeys:i="fail",skipValidation:o=!1,breadcrumbsPrefix:s=[]}){if(!ple(e))return{ok:!1,errors:[{path:s,message:pm(e,"object")}]};let a=t.length,c=[],u={};for(let l in e){if(!Bkf.call(e,l))continue;let p=e[l],d=n(l);if(d!=null){a>0&&r.has(l)&&a--;let f=d.transform(p);f.ok?u[d.transformedKey]=f.value:(u[l]=p,c.push(...f.errors))}else switch(i){case"fail":c.push({path:[...s,l],message:`Unexpected key "${l}"`});break;case"strip":break;case"passthrough":u[l]=p;break}}if(a>0)for(let l of t)l in e||c.push({path:s,message:`Missing required key "${l}"`});return c.length===0||o?{ok:!0,value:u}:{ok:!1,errors:c}}function zje(e){return{extend:t=>{let r={_getParsedProperties:()=>[...e._getParsedProperties(),...t._getParsedProperties()],_getRawProperties:()=>[...e._getRawProperties(),...t._getRawProperties()],parse:(n,i)=>tcc({extensionKeys:t._getRawProperties(),value:n,transformBase:o=>e.parse(o,i),transformExtension:o=>t.parse(o,i),breadcrumbsPrefix:i?.breadcrumbsPrefix}),json:(n,i)=>tcc({extensionKeys:t._getParsedProperties(),value:n,transformBase:o=>e.json(o,i),transformExtension:o=>t.json(o,i),breadcrumbsPrefix:i?.breadcrumbsPrefix}),getType:()=>Hu.OBJECT};return{...r,...Ym(r),...rW(r),...zje(r)}},passthrough:()=>{let t=new Set(e._getRawProperties()),r=new Set(e._getParsedProperties()),n={_getParsedProperties:()=>e._getParsedProperties(),_getRawProperties:()=>e._getRawProperties(),parse:(i,o)=>{let s=e.parse(i,{...o,unrecognizedObjectKeys:"passthrough"});if(!s.ok)return s;let a={};if(typeof i=="object"&&i!=null)for(let[c,u]of Object.entries(i))t.has(c)||(a[c]=u);return{ok:!0,value:{...a,...s.value}}},json:(i,o)=>{let s=e.json(i,{...o,unrecognizedObjectKeys:"passthrough"});if(!s.ok)return s;let a={};if(typeof i=="object"&&i!=null)for(let[c,u]of Object.entries(i))r.has(c)||(a[c]=u);return{ok:!0,value:{...a,...s.value}}},getType:()=>Hu.OBJECT};return{...n,...Ym(n),...rW(n),...zje(n)}}}}function tcc({extensionKeys:e,value:t,transformBase:r,transformExtension:n,breadcrumbsPrefix:i=[]}){if(!ple(t))return{ok:!1,errors:[{path:i,message:pm(t,"object")}]};let o=new Set(e),[s,a]=Yac(N2t(t),l=>o.has(l)),c=r(k2t(t,a)),u=n(k2t(t,s));return c.ok&&u.ok?{ok:!0,value:{...c.value,...u.value}}:{ok:!1,errors:[...c.ok?[]:c.errors,...u.ok?[]:u.errors]}}function Pkf(e){return!Dkf(e)}function Dkf(e){switch(e.getType()){case Hu.ANY:case Hu.UNKNOWN:case Hu.OPTIONAL:case Hu.OPTIONAL_NULLABLE:return!0;default:return!1}}var Bkf,nio=h(()=>{"use strict";jw();Jac();$no();CF();F2t();eio();PX();Xac();j2t();sQ();rio();Bkf=Object.prototype.hasOwnProperty});function rcc(e){return jSr(e)}var ncc=h(()=>{"use strict";nio()});var iio=h(()=>{"use strict";nio();ncc();rio()});function icc(e){let t={...Yno(e),_getRawProperties:()=>QYe(e)._getRawProperties(),_getParsedProperties:()=>QYe(e)._getParsedProperties()};return{...t,...Ym(t),...rW(t),...zje(t)}}var occ=h(()=>{"use strict";iio();j2t();sQ();Xno()});var scc=h(()=>{"use strict";Xno();occ()});function QSr(e){let t={parse:(r,n)=>acc(r,(i,o)=>e.parse(i,{...n,breadcrumbsPrefix:[...n?.breadcrumbsPrefix??[],`[${o}]`]})),json:(r,n)=>acc(r,(i,o)=>e.json(i,{...n,breadcrumbsPrefix:[...n?.breadcrumbsPrefix??[],`[${o}]`]})),getType:()=>Hu.LIST};return{...m1(t),...Ym(t)}}function acc(e,t){if(!Array.isArray(e))return{ok:!1,errors:[{message:pm(e,"list"),path:[]}]};let r=[],n=[];for(let i=0;i<e.length;i++){let o=t(e[i],i);o.ok?r.push(o.value):n.push(...o.errors)}return n.length===0?{ok:!0,value:r}:{ok:!1,errors:n}}var ccc=h(()=>{"use strict";jw();CF();PX();sQ()});var oio=h(()=>{"use strict";ccc()});function ucc(e){return h1(Hu.BOOLEAN_LITERAL,(r,{breadcrumbsPrefix:n=[]}={})=>r===e?{ok:!0,value:e}:{ok:!1,errors:[{path:n,message:pm(r,`${e.toString()}`)}]})()}var lcc=h(()=>{"use strict";jw();DX();CF()});function pcc(e){return h1(Hu.STRING_LITERAL,(r,{breadcrumbsPrefix:n=[]}={})=>r===e?{ok:!0,value:e}:{ok:!1,errors:[{path:n,message:pm(r,`"${e}"`)}]})()}var fcc=h(()=>{"use strict";jw();DX();CF()});var dcc=h(()=>{"use strict";lcc();fcc()});var mcc,hcc=h(()=>{"use strict";jw();DX();mcc=h1(Hu.ANY,e=>({ok:!0,value:e}))});var gcc,Acc=h(()=>{"use strict";jw();DX();CF();gcc=h1(Hu.BOOLEAN,(e,{breadcrumbsPrefix:t=[]}={})=>typeof e=="boolean"?{ok:!0,value:e}:{ok:!1,errors:[{path:t,message:pm(e,"boolean")}]})});var ycc,bcc=h(()=>{"use strict";jw();DX();ycc=h1(Hu.NEVER,(e,{breadcrumbsPrefix:t=[]}={})=>({ok:!1,errors:[{path:t,message:"Expected never"}]}))});var Ecc,Icc=h(()=>{"use strict";jw();DX();CF();Ecc=h1(Hu.NUMBER,(e,{breadcrumbsPrefix:t=[]}={})=>typeof e=="number"?{ok:!0,value:e}:{ok:!1,errors:[{path:t,message:pm(e,"number")}]})});var vcc,xcc=h(()=>{"use strict";jw();DX();CF();vcc=h1(Hu.STRING,(e,{breadcrumbsPrefix:t=[]}={})=>typeof e=="string"?{ok:!0,value:e}:{ok:!1,errors:[{path:t,message:pm(e,"string")}]})});var Ccc,wcc=h(()=>{"use strict";jw();DX();Ccc=h1(Hu.UNKNOWN,e=>({ok:!0,value:e}))});var Scc=h(()=>{"use strict";hcc();Acc();bcc();Icc();xcc();wcc()});function Occ(e,t){let r={parse:(n,i)=>Tcc({value:n,isKeyNumeric:e.getType()===Hu.NUMBER,transformKey:o=>e.parse(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${o} (key)`]}),transformValue:(o,s)=>t.parse(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${s}`]}),breadcrumbsPrefix:i?.breadcrumbsPrefix}),json:(n,i)=>Tcc({value:n,isKeyNumeric:e.getType()===Hu.NUMBER,transformKey:o=>e.json(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${o} (key)`]}),transformValue:(o,s)=>t.json(o,{...i,breadcrumbsPrefix:[...i?.breadcrumbsPrefix??[],`${s}`]}),breadcrumbsPrefix:i?.breadcrumbsPrefix}),getType:()=>Hu.RECORD};return{...m1(r),...Ym(r)}}function Tcc({value:e,isKeyNumeric:t,transformKey:r,transformValue:n,breadcrumbsPrefix:i=[]}){if(!ple(e))return{ok:!1,errors:[{path:i,message:pm(e,"object")}]};let o={},s=[];for(let a in e){if(!Rkf.call(e,a))continue;let c=e[a];if(c===void 0)continue;let u=a;if(t){let d=a.length>0?Number(a):NaN;Number.isNaN(d)||(u=d)}let l=r(u),p=n(c,u);l.ok&&p.ok?o[l.value]=p.value:(l.ok||s.push(...l.errors),p.ok||s.push(...p.errors))}return s.length===0?{ok:!0,value:o}:{ok:!1,errors:s}}var Rkf,Bcc=h(()=>{"use strict";jw();CF();F2t();PX();sQ();Rkf=Object.prototype.hasOwnProperty});var Pcc=h(()=>{"use strict";Bcc()});function Dcc(e){let t=QSr(e),r={parse:(n,i)=>{let o=t.parse(n,i);return o.ok?{ok:!0,value:new Set(o.value)}:o},json:(n,i)=>n instanceof Set?t.json([...n],i):{ok:!1,errors:[{path:i?.breadcrumbsPrefix??[],message:pm(n,"Set")}]},getType:()=>Hu.SET};return{...m1(r),...Ym(r)}}var Rcc=h(()=>{"use strict";jw();CF();PX();oio();sQ()});var kcc=h(()=>{"use strict";Rcc()});function Ncc(e){let t={parse:(r,n)=>Fcc((i,o)=>i.parse(r,o),e,n),json:(r,n)=>Fcc((i,o)=>i.json(r,o),e,n),getType:()=>Hu.UNDISCRIMINATED_UNION};return{...m1(t),...Ym(t)}}function Fcc(e,t,r){let n=[];for(let[i,o]of t.entries()){let s=e(o,{...r,skipValidation:!1});if(s.ok)return s;for(let a of s.errors)n.push({path:a.path,message:`[Variant ${i}] ${a.message}`})}return{ok:!1,errors:n}}var jcc=h(()=>{"use strict";jw();PX();sQ()});var Qcc=h(()=>{"use strict";jcc()});function zcc(e,t){return{parsedDiscriminant:e,rawDiscriminant:t}}var Mcc=h(()=>{"use strict"});function Vcc(e,t){let r=typeof e=="string"?e:e.rawDiscriminant,n=typeof e=="string"?e:e.parsedDiscriminant,i=NSr(N2t(t)),o={parse:(s,a)=>Lcc({value:s,discriminant:r,transformedDiscriminant:n,transformDiscriminantValue:c=>i.parse(c,{allowUnrecognizedEnumValues:a?.allowUnrecognizedUnionMembers,breadcrumbsPrefix:[...a?.breadcrumbsPrefix??[],r]}),getAdditionalPropertiesSchema:c=>t[c],allowUnrecognizedUnionMembers:a?.allowUnrecognizedUnionMembers,transformAdditionalProperties:(c,u)=>u.parse(c,a),breadcrumbsPrefix:a?.breadcrumbsPrefix}),json:(s,a)=>Lcc({value:s,discriminant:n,transformedDiscriminant:r,transformDiscriminantValue:c=>i.json(c,{allowUnrecognizedEnumValues:a?.allowUnrecognizedUnionMembers,breadcrumbsPrefix:[...a?.breadcrumbsPrefix??[],n]}),getAdditionalPropertiesSchema:c=>t[c],allowUnrecognizedUnionMembers:a?.allowUnrecognizedUnionMembers,transformAdditionalProperties:(c,u)=>u.json(c,a),breadcrumbsPrefix:a?.breadcrumbsPrefix}),getType:()=>Hu.UNION};return{...m1(o),...Ym(o),...rW(o)}}function Lcc({value:e,discriminant:t,transformedDiscriminant:r,transformDiscriminantValue:n,getAdditionalPropertiesSchema:i,allowUnrecognizedUnionMembers:o=!1,transformAdditionalProperties:s,breadcrumbsPrefix:a=[]}){if(!ple(e))return{ok:!1,errors:[{path:a,message:pm(e,"object")}]};let c=e[t],u={};for(let f in e)kkf.call(e,f)&&f!==t&&(u[f]=e[f]);if(c==null)return{ok:!1,errors:[{path:a,message:`Missing discriminant ("${t}")`}]};let l=n(c);if(!l.ok)return{ok:!1,errors:l.errors};let p=i(l.value);if(p==null)return o?{ok:!0,value:{[r]:l.value,...u}}:{ok:!1,errors:[{path:[...a,t],message:"Unexpected discriminant value"}]};let d=s(u,p);return d.ok?{ok:!0,value:{[r]:c,...d.value}}:d}var kkf,Ucc=h(()=>{"use strict";jw();CF();F2t();eio();PX();Jno();j2t();sQ();kkf=Object.prototype.hasOwnProperty});var _cc=h(()=>{"use strict";Mcc();Ucc()});var Gcc=h(()=>{"use strict";_ac();Wac();Jno();scc();oio();dcc();iio();j2t();Scc();Pcc();sQ();kcc();Qcc();_cc()});var $={};Z($,{JsonError:()=>NYe,ParseError:()=>jYe,any:()=>mcc,bigint:()=>Vac,boolean:()=>gcc,booleanLiteral:()=>ucc,date:()=>Gac,discriminant:()=>zcc,enum_:()=>NSr,getObjectLikeUtils:()=>rW,getObjectUtils:()=>zje,getSchemaUtils:()=>Ym,isProperty:()=>fle,lazy:()=>Kac,lazyObject:()=>icc,list:()=>QSr,never:()=>ycc,number:()=>Ecc,object:()=>jSr,objectWithoutOptionalProperties:()=>rcc,optional:()=>Hno,property:()=>$ac,record:()=>Occ,set:()=>Dcc,string:()=>vcc,stringLiteral:()=>pcc,transform:()=>Kno,undiscriminatedUnion:()=>Ncc,union:()=>Vcc,unknown:()=>Ccc,withParsedProperties:()=>tio});var qcc=h(()=>{"use strict";Gcc()});var Wcc=h(()=>{"use strict"});var yr=h(()=>{"use strict";jac();Qac();zac();qcc();Wcc()});var zSr,sio=h(()=>{"use strict";yr();zSr=$.objectWithoutOptionalProperties({usernameVariableName:$.string().optional(),usernameEnvVar:$.string().optional(),usernamePlaceholder:$.string().optional(),passwordVariableName:$.string().optional(),passwordEnvVar:$.string().optional(),passwordPlaceholder:$.string().optional()})});var MSr,aio=h(()=>{"use strict";yr();MSr=$.objectWithoutOptionalProperties({tokenVariableName:$.string().optional(),tokenEnvVar:$.string().optional(),tokenPlaceholder:$.string().optional()})});var LSr,cio=h(()=>{"use strict";yr();LSr=$.objectWithoutOptionalProperties({typeName:$.string()})});var VSr,uio=h(()=>{"use strict";ic();yr();cio();VSr=$.union("type",{protobuf:LSr}).transform({transform:e=>e.type==="protobuf"?FYe.protobuf(e):e,untransform:({_visit:e,...t})=>t})});var USr,lio=h(()=>{"use strict";yr();USr=$.objectWithoutOptionalProperties({headerName:$.string(),prefix:$.string().optional(),headerVariableName:$.string().optional(),headerEnvVar:$.string().optional(),headerPlaceholder:$.string().optional()})});var _Sr,pio=h(()=>{"use strict";yr();_Sr=$.objectWithoutOptionalProperties({type:$.stringLiteral("namespace"),name:$.string()})});var GSr,fio=h(()=>{"use strict";yr();GSr=$.string()});var qSr,dio=h(()=>{"use strict";yr();qSr=$.enum_(["GenerallyAvailable","Beta","Deprecated","Alpha","Preview","Legacy"])});var ls,od=h(()=>{"use strict";yr();dio();ls=$.objectWithoutOptionalProperties({availability:qSr.optional()})});var Rn,ga=h(()=>{"use strict";yr();Rn=$.objectWithoutOptionalProperties({description:$.string().optional()})});var kd,g1=h(()=>{"use strict";yr();kd=$.objectWithoutOptionalProperties({inline:$.boolean().optional()})});var Kc,Ey=h(()=>{"use strict";yr();Kc=$.objectWithoutOptionalProperties({nameOverride:$.string().optional(),generatedName:$.string()})});var dc,hA=h(()=>{"use strict";yr();dc=$.objectWithoutOptionalProperties({namespace:$.string().optional()})});var WSr,mio=h(()=>{"use strict";yr();pio();WSr=$.undiscriminatedUnion([$.string(),_Sr])});var Ybe,Q2t=h(()=>{"use strict";yr();mio();Ybe=$.list(WSr)});var Ku,v0=h(()=>{"use strict";yr();Q2t();Ku=$.objectWithoutOptionalProperties({groupName:Ybe.optional()})});var HSr,hio=h(()=>{"use strict";yr();HSr=$.objectWithoutOptionalProperties({file:$.string()})});var KSr,gio=h(()=>{"use strict";yr();KSr=$.objectWithoutOptionalProperties({file:$.string()})});var JSr,Aio=h(()=>{"use strict";ic();yr();hio();gio();JSr=$.union("type",{openapi:HSr,protobuf:KSr}).transform({transform:e=>{switch(e.type){case"openapi":return fD.openapi(e);case"protobuf":return fD.protobuf(e);default:return e}},untransform:({_visit:e,...t})=>t})});var Ho,wf=h(()=>{"use strict";yr();Aio();Ho=$.objectWithoutOptionalProperties({source:JSr.optional()})});var Ju,x0=h(()=>{"use strict";yr();Ju=$.objectWithoutOptionalProperties({title:$.string().optional()})});var YSr,yio=h(()=>{"use strict";yr();YSr=$.objectWithoutOptionalProperties({snake:$.string().optional(),camel:$.string().optional(),screamingSnake:$.string().optional(),pascal:$.string().optional()})});var Xbe,XSr=h(()=>{"use strict";yr();od();ga();yio();Xbe=$.objectWithoutOptionalProperties({nameOverride:$.string().optional(),generatedName:$.string(),value:$.string(),casing:YSr.optional()}).extend(Rn).extend(ls)});var zYe,ZSr=h(()=>{"use strict";yr();od();ga();g1();Ey();hA();v0();wf();x0();XSr();zYe=$.objectWithoutOptionalProperties({default:Xbe.optional(),values:$.list(Xbe)}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(Ho).extend(Ju).extend(kd)});var $Sr,bio=h(()=>{"use strict";yr();ZSr();$Sr=$.objectWithoutOptionalProperties({scopesEnum:zYe.optional()})});var e1r,Eio=h(()=>{"use strict";yr();e1r=$.objectWithoutOptionalProperties({queryParameterName:$.string()})});var wF,Zbe=h(()=>{"use strict";yr();wF=$.string()});var t1r,Iio=h(()=>{"use strict";ic();yr();sio();aio();lio();bio();Eio();t1r=$.union("type",{basic:zSr,bearer:MSr,header:USr,query:e1r,oauth:$Sr}).transform({transform:e=>{switch(e.type){case"basic":return p1.basic(e);case"bearer":return p1.bearer(e);case"header":return p1.header(e);case"query":return p1.query(e);case"oauth":return p1.oauth(e);default:return e}},untransform:({_visit:e,...t})=>t})});var $be,z2t=h(()=>{"use strict";yr();$be=$.string()});var r1r,vio=h(()=>{"use strict";yr();r1r=$.objectWithoutOptionalProperties({id:$.string(),default:$.string().optional(),values:$.list($.string()).optional()})});var M2t,xio=h(()=>{"use strict";yr();vio();ga();M2t=$.objectWithoutOptionalProperties({name:$.string().optional(),url:$.string(),audiences:$.list($.string()).optional(),defaultUrl:$.string().optional(),urlTemplate:$.string().optional(),variables:$.list(r1r).optional()}).extend(Rn)});var RX,MYe=h(()=>{"use strict";yr();RX=$.number()});var SF,e0e=h(()=>{"use strict";yr();SF=$.string()});var n1r,Cio=h(()=>{"use strict";yr();e0e();ga();n1r=$.objectWithoutOptionalProperties({id:SF}).extend(Rn)});var A1,kX=h(()=>{"use strict";yr();uio();A1=$.objectWithoutOptionalProperties({encoding:VSr.optional()})});var FX,LYe=h(()=>{"use strict";yr();FX=$.objectWithoutOptionalProperties({sdkMethodName:$.string().optional()})});var wU,Mje=h(()=>{"use strict";yr();MYe();wU=$.objectWithoutOptionalProperties({statusCode:RX.optional()})});var wio=h(()=>{"use strict";sio();aio();uio();lio();pio();fio();bio();hio();cio();gio();Eio();Zbe();mio();Q2t();Iio();z2t();xio();vio();Aio();MYe();Cio();e0e();od();ga();kX();g1();Ey();hA();v0();LYe();wf();Mje();x0()});var Sio={};Z(Sio,{BasicSecurityScheme:()=>zSr,BearerSecurityScheme:()=>MSr,Encoding:()=>VSr,HeaderSecurityScheme:()=>USr,Namespace:()=>_Sr,NamespaceId:()=>GSr,OauthSecurityScheme:()=>$Sr,OpenApiSource:()=>HSr,ProtobufEncoding:()=>LSr,ProtobufSource:()=>KSr,QuerySecurityScheme:()=>e1r,SchemaId:()=>wF,SdkGroup:()=>WSr,SdkGroupName:()=>Ybe,SecurityScheme:()=>t1r,SecuritySchemeId:()=>$be,Server:()=>M2t,ServerVariable:()=>r1r,Source:()=>JSr,StatusCode:()=>RX,Tag:()=>n1r,TagId:()=>SF,WithAvailability:()=>ls,WithDescription:()=>Rn,WithEncoding:()=>A1,WithInline:()=>kd,WithName:()=>Kc,WithNamespace:()=>dc,WithSdkGroupName:()=>Ku,WithSdkMethodName:()=>FX,WithSource:()=>Ho,WithStatusCode:()=>wU,WithTitle:()=>Ju});var Hcc=h(()=>{"use strict";wio()});var i1r,Tio=h(()=>{"use strict";ic();yr();i1r=$.union("type",{boolean:$.object({value:$.boolean()}),string:$.object({value:$.string()})}).transform({transform:e=>{switch(e.type){case"boolean":return Kbe.boolean(e.value);case"string":return Kbe.string(e.value);default:return e}},untransform:({_visit:e,...t})=>t})});var o1r,Oio=h(()=>{"use strict";yr();o1r=$.objectWithoutOptionalProperties({})});var VYe,s1r=h(()=>{"use strict";ic();yr();VYe=$.union("type",{int:$.object({value:$.number()}),int64:$.object({value:$.number()}),uint:$.object({value:$.number()}),uint64:$.object({value:$.number()}),float:$.object({value:$.number()}),double:$.object({value:$.number()}),string:$.object({value:$.string()}),datetime:$.object({value:$.string()}),datetimeRfc2822:$.object({value:$.string()}),date:$.object({value:$.string()}),base64:$.object({value:$.string()}),boolean:$.object({value:$.boolean()})}).transform({transform:e=>{switch(e.type){case"int":return Oo.int(e.value);case"int64":return Oo.int64(e.value);case"uint":return Oo.uint(e.value);case"uint64":return Oo.uint64(e.value);case"float":return Oo.float(e.value);case"double":return Oo.double(e.value);case"string":return Oo.string(e.value);case"datetime":return Oo.datetime(e.value);case"datetimeRfc2822":return Oo.datetimeRfc2822(e.value);case"date":return Oo.date(e.value);case"base64":return Oo.base64(e.value);case"boolean":return Oo.boolean(e.value);default:return e}},untransform:({_visit:e,...t})=>t})});var Jh,Kcc=h(()=>{"use strict";ic();yr();Fa();Tio();Oio();s1r();Jh=$.union("type",{primitive:$.object({value:VYe}),object:$.lazyObject(()=>a1r),array:$.object({value:$.list($.lazy(()=>Jh))}),map:$.object({value:$.list($.lazyObject(()=>u1r))}),enum:$.object({value:$.string()}),literal:$.object({value:i1r}),oneOf:$.object({value:$.lazy(()=>c1r)}),null:o1r,unknown:$.object({value:$.lazy(()=>Jh)})}).transform({transform:e=>{switch(e.type){case"primitive":return fc.primitive(e.value);case"object":return fc.object(e);case"array":return fc.array(e.value);case"map":return fc.map(e.value);case"enum":return fc.enum(e.value);case"literal":return fc.literal(e.value);case"oneOf":return fc.oneOf(e.value);case"null":return fc.null(e);case"unknown":return fc.unknown(e.value);default:return e}},untransform:({_visit:e,...t})=>t})});var UYe,l1r=h(()=>{"use strict";yr();UYe=$.string()});var a1r,Jcc=h(()=>{"use strict";yr();Fa();l1r();a1r=$.objectWithoutOptionalProperties({properties:$.record(UYe,$.lazy(()=>Jh))})});var c1r,Ycc=h(()=>{"use strict";ic();yr();Fa();l1r();c1r=$.union("type",{discriminated:$.object({value:$.record(UYe,$.lazy(()=>Jh))}),undiscriminated:$.object({value:$.lazy(()=>Jh)})}).transform({transform:e=>{switch(e.type){case"discriminated":return Hbe.discriminated(e.value);case"undiscriminated":return Hbe.undiscriminated(e.value);default:return e}},untransform:({_visit:e,...t})=>t})});var u1r,Xcc=h(()=>{"use strict";yr();Fa();s1r();u1r=$.objectWithoutOptionalProperties({key:VYe,value:$.lazy(()=>Jh)})});var Bio=h(()=>{"use strict";Kcc();Jcc();Ycc();Xcc();Tio();Oio();s1r();l1r()});var Pio={};Z(Pio,{FullExample:()=>Jh,FullObjectExample:()=>a1r,FullOneOfExample:()=>c1r,KeyValuePair:()=>u1r,LiteralExample:()=>i1r,NullExample:()=>o1r,PrimitiveExample:()=>VYe,PropertyKey:()=>UYe});var Zcc=h(()=>{"use strict";Bio()});var _Ye,p1r=h(()=>{"use strict";yr();Zbe();_Ye=$.objectWithoutOptionalProperties({propertyKey:$.string(),allOfSchemaIds:$.list(wF),conflictingTypeSignatures:$.boolean()})});var f1r,$cc=h(()=>{"use strict";yr();Fa();od();ga();g1();Ey();hA();v0();x0();f1r=$.objectWithoutOptionalProperties({value:$.lazy(()=>Cl),minItems:$.number().optional(),maxItems:$.number().optional(),default:$.unknown().optional()}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(Ju).extend(kd)});var d1r,Dio=h(()=>{"use strict";yr();d1r=$.enum_(["rsa-sha256","rsa-sha384","rsa-sha512","ecdsa-sha256","ecdsa-sha384","ecdsa-sha512","ed25519"])});var m1r,Rio=h(()=>{"use strict";yr();m1r=$.enum_(["alphabetical"])});var h1r,kio=h(()=>{"use strict";yr();h1r=$.enum_(["body","timestamp","notification-url","message-id"])});var GYe,g1r=h(()=>{"use strict";yr();Rio();kio();GYe=$.objectWithoutOptionalProperties({components:$.list(h1r),delimiter:$.string().optional(),bodySort:m1r.optional()})});var t0e,L2t=h(()=>{"use strict";yr();t0e=$.enum_(["base64","hex"])});var A1r,Fio=h(()=>{"use strict";yr();A1r=$.enum_(["unix-seconds","unix-millis","iso8601"])});var qYe,y1r=h(()=>{"use strict";yr();Fio();qYe=$.objectWithoutOptionalProperties({header:$.string(),format:A1r.optional(),tolerance:$.number().optional()})});var b1r,Nio=h(()=>{"use strict";yr();Dio();g1r();L2t();y1r();b1r=$.objectWithoutOptionalProperties({header:$.string(),asymmetricAlgorithm:d1r,encoding:t0e.optional(),signaturePrefix:$.string().optional(),jwksUrl:$.string().optional(),keyIdHeader:$.string().optional(),payloadFormat:GYe.optional(),timestamp:qYe.optional()})});var E1r,jio=h(()=>{"use strict";yr();E1r=$.objectWithoutOptionalProperties({default:$.boolean().optional()})});var WYe,I1r=h(()=>{"use strict";yr();ga();wf();Mje();WYe=$.objectWithoutOptionalProperties({}).extend(Rn).extend(Ho).extend(wU)});var HYe,euc=h(()=>{"use strict";yr();Fa();HYe=$.objectWithoutOptionalProperties({key:$.string(),schema:$.lazy(()=>Cl)})});var v1r,Qio=h(()=>{"use strict";yr();v1r=$.objectWithoutOptionalProperties({cursor:$.string(),nextCursor:$.property("next_cursor",$.string()),results:$.string()})});var x1r,zio=h(()=>{"use strict";yr();ga();x1r=$.objectWithoutOptionalProperties({name:$.string().optional(),language:$.string(),code:$.string(),install:$.string().optional()}).extend(Rn)});var C1r,Mio=h(()=>{"use strict";yr();C1r=$.enum_(["curl","python","javascript","typescript","go","ruby","csharp","java","js","node","ts","nodets","golang","dotnet","jvm"])});var w1r,Lio=h(()=>{"use strict";yr();ga();Mio();w1r=$.objectWithoutOptionalProperties({name:$.string().optional(),sdk:C1r,code:$.string()}).extend(Rn)});var S1r,Vio=h(()=>{"use strict";ic();yr();zio();Lio();S1r=$.union("type",{language:x1r,sdk:w1r}).transform({transform:e=>{switch(e.type){case"language":return TX.language(e);case"sdk":return TX.sdk(e);default:return e}},untransform:({_visit:e,...t})=>t})});var T1r,Uio=h(()=>{"use strict";yr();T1r=$.objectWithoutOptionalProperties({results:$.string()})});var KYe,O1r=h(()=>{"use strict";yr();KYe=$.enum_(["data","protocol"])});var B1r,tuc=h(()=>{"use strict";yr();Fa();od();ga();kX();g1();Ey();hA();v0();wf();x0();O1r();B1r=$.objectWithoutOptionalProperties({discriminantProperty:$.string(),discriminantPropertyNameOverride:$.string().optional(),discriminatorContext:KYe.optional(),defaultDiscriminantValue:$.string().optional(),commonProperties:$.list($.lazyObject(()=>HYe)),schemas:$.record($.string(),$.lazy(()=>Cl))}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(A1).extend(Ho).extend(Ju).extend(kd)});var P1r,_io=h(()=>{"use strict";yr();P1r=$.objectWithoutOptionalProperties({default:$.number().optional(),minimum:$.number().optional(),maximum:$.number().optional(),exclusiveMinimum:$.boolean().optional(),exclusiveMaximum:$.boolean().optional(),multipleOf:$.number().optional()})});var D1r,Gio=h(()=>{"use strict";yr();D1r=$.unknown()});var R1r,qio=h(()=>{"use strict";yr();Fa();R1r=$.objectWithoutOptionalProperties({sse:$.boolean(),events:$.list($.lazy(()=>Jh))})});var k1r,Wio=h(()=>{"use strict";ic();yr();Fa();qio();k1r=$.union("type",{withStreaming:R1r,withoutStreaming:$.object({value:$.lazy(()=>Jh)})}).transform({transform:e=>{switch(e.type){case"withStreaming":return CU.withStreaming(e);case"withoutStreaming":return CU.withoutStreaming(e.value);default:return e}},untransform:({_visit:e,...t})=>t})});var JYe,F1r=h(()=>{"use strict";yr();Fa();JYe=$.objectWithoutOptionalProperties({name:$.string(),value:$.lazy(()=>Jh)})});var N1r,Hio=h(()=>{"use strict";yr();Fa();N1r=$.objectWithoutOptionalProperties({name:$.string(),parameterNameOverride:$.string().optional(),value:$.lazy(()=>Jh)})});var YYe,j1r=h(()=>{"use strict";yr();Fa();YYe=$.objectWithoutOptionalProperties({name:$.string(),value:$.lazy(()=>Jh)})});var Q1r,Kio=h(()=>{"use strict";yr();Fa();ga();Vio();Wio();F1r();Hio();j1r();Q1r=$.objectWithoutOptionalProperties({name:$.string().optional(),pathParameters:$.list(N1r).optional(),queryParameters:$.list(YYe).optional(),headers:$.list(JYe).optional(),request:$.lazy(()=>Jh).optional(),response:k1r.optional(),codeSamples:$.list(S1r)}).extend(Rn)});var XYe,z1r=h(()=>{"use strict";ic();yr();Gio();Kio();XYe=$.union("type",{unknown:$.object({value:D1r}),full:Q1r}).transform({transform:e=>{switch(e.type){case"unknown":return xU.unknown(e.value);case"full":return xU.full(e);default:return e}},untransform:({_visit:e,...t})=>t})});var NX,ZYe=h(()=>{"use strict";yr();Q2t();NX=$.objectWithoutOptionalProperties({groupName:Ybe,methodName:$.string()})});var $Ye,M1r=h(()=>{"use strict";yr();z2t();$Ye=$.list($.record($be,$.list($.string())))});var r0e,V2t=h(()=>{"use strict";yr();Fa();od();ga();wf();r0e=$.objectWithoutOptionalProperties({name:$.string(),schema:$.lazy(()=>Cl),env:$.string().optional(),parameterNameOverride:$.string().optional(),clientDefault:$.unknown().optional()}).extend(Rn).extend(ls).extend(Ho)});var eXe,L1r=h(()=>{"use strict";yr();eXe=$.objectWithoutOptionalProperties({name:$.string().optional(),url:$.string().optional(),audiences:$.list($.string()).optional()})});var V1r,Jio=h(()=>{"use strict";yr();Fa();V1r=$.objectWithoutOptionalProperties({name:$.string().optional(),description:$.string().optional(),example:$.lazy(()=>Jh)})});var U1r,Yio=h(()=>{"use strict";yr();Fa();ga();Ey();wf();Jio();U1r=$.objectWithoutOptionalProperties({schema:$.lazy(()=>Cl).optional(),examples:$.list(V1r).optional(),namespace:$.string().optional()}).extend(Rn).extend(Kc).extend(Ho)});var tXe,_1r=h(()=>{"use strict";yr();tXe=$.enum_(["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","TRACE"])});var G1r,Xio=h(()=>{"use strict";yr();G1r=$.objectWithoutOptionalProperties({offset:$.string(),results:$.string(),step:$.string().optional(),hasNextPage:$.string().optional()})});var q1r,Zio=h(()=>{"use strict";yr();q1r=$.objectWithoutOptionalProperties({nextPath:$.string(),results:$.string()})});var W1r,$io=h(()=>{"use strict";yr();W1r=$.objectWithoutOptionalProperties({nextUri:$.string(),results:$.string()})});var rXe,H1r=h(()=>{"use strict";ic();yr();Qio();Uio();Xio();Zio();$io();rXe=$.union("type",{cursor:v1r,offset:G1r,custom:T1r,uri:W1r,path:q1r}).transform({transform:e=>{switch(e.type){case"cursor":return Nw.cursor(e);case"offset":return Nw.offset(e);case"custom":return Nw.custom(e);case"uri":return Nw.uri(e);case"path":return Nw.path(e);default:return e}},untransform:({_visit:e,...t})=>t})});var n0e,U2t=h(()=>{"use strict";yr();Fa();od();ga();wf();n0e=$.objectWithoutOptionalProperties({name:$.string(),schema:$.lazy(()=>Cl),variableReference:$.string().optional(),parameterNameOverride:$.string().optional(),clientDefault:$.unknown().optional()}).extend(Rn).extend(ls).extend(Ho)});var nXe,K1r=h(()=>{"use strict";yr();Fa();od();ga();wf();nXe=$.objectWithoutOptionalProperties({name:$.string(),schema:$.lazy(()=>Cl),parameterNameOverride:$.string().optional(),explode:$.boolean().optional(),clientDefault:$.unknown().optional()}).extend(Rn).extend(ls).extend(Ho)});var J1r,eoo=h(()=>{"use strict";yr();Fa();ga();wf();J1r=$.objectWithoutOptionalProperties({schema:$.lazy(()=>Cl),contentType:$.string().optional(),additionalProperties:$.boolean()}).extend(Rn).extend(Ho)});var Y1r,too=h(()=>{"use strict";yr();Fa();ga();wf();Y1r=$.objectWithoutOptionalProperties({schema:$.lazy(()=>Cl),contentType:$.string().optional(),required:$.boolean().optional(),additionalProperties:$.boolean()}).extend(Rn).extend(Ho)});var X1r,roo=h(()=>{"use strict";yr();X1r=$.enum_(["json","form"])});var Z1r,noo=h(()=>{"use strict";yr();ga();Z1r=$.objectWithoutOptionalProperties({isOptional:$.boolean(),isArray:$.boolean()}).extend(Rn)});var $1r,ioo=h(()=>{"use strict";ic();yr();Fa();noo();$1r=$.union("type",{file:Z1r,json:$.object({value:$.lazy(()=>Cl)})}).transform({transform:e=>{switch(e.type){case"file":return OX.file(e);case"json":return OX.json(e.value);default:return e}},untransform:({_visit:e,...t})=>t})});var i0e,_2t=h(()=>{"use strict";yr();ga();roo();ioo();i0e=$.objectWithoutOptionalProperties({key:$.string(),schema:$1r,contentType:$.string().optional(),exploded:$.boolean().optional(),encoding:X1r.optional()}).extend(Rn)});var iXe,eTr=h(()=>{"use strict";yr();ga();wf();_2t();iXe=$.objectWithoutOptionalProperties({name:$.string().optional(),properties:$.list(i0e)}).extend(Rn).extend(Ho)});var oXe,tTr=h(()=>{"use strict";yr();ga();wf();oXe=$.objectWithoutOptionalProperties({contentType:$.string().optional()}).extend(Rn).extend(Ho)});var rTr,ooo=h(()=>{"use strict";ic();yr();eoo();too();eTr();tTr();rTr=$.union("type",{octetStream:oXe,multipart:iXe,json:Y1r,formUrlEncoded:J1r}).transform({transform:e=>{switch(e.type){case"octetStream":return eW.octetStream(e);case"multipart":return eW.multipart(e);case"json":return eW.json(e);case"formUrlEncoded":return eW.formUrlEncoded(e);default:return e}},untransform:({_visit:e,...t})=>t})});var sXe,nTr=h(()=>{"use strict";yr();ga();wf();Mje();sXe=$.objectWithoutOptionalProperties({}).extend(Rn).extend(Ho).extend(wU)});var aXe,soo=h(()=>{"use strict";yr();Fa();ga();wf();Mje();aXe=$.objectWithoutOptionalProperties({schema:$.lazy(()=>Cl),responseProperty:$.string().optional(),terminator:$.string().optional(),resumable:$.boolean().optional()}).extend(Rn).extend(Ho).extend(wU)});var o0e,iTr=h(()=>{"use strict";yr();ga();wf();Mje();o0e=$.objectWithoutOptionalProperties({contentType:$.string().optional()}).extend(Rn).extend(Ho).extend(wU)});var cXe,oTr=h(()=>{"use strict";ic();yr();I1r();nTr();soo();iTr();cXe=$.union("type",{file:sXe,json:aXe,text:o0e,bytes:WYe,streamingSse:aXe,streamingText:o0e,streamingJson:aXe}).transform({transform:e=>{switch(e.type){case"file":return cB.file(e);case"json":return cB.json(e);case"text":return cB.text(e);case"bytes":return cB.bytes(e);case"streamingSse":return cB.streamingSse(e);case"streamingText":return cB.streamingText(e);case"streamingJson":return cB.streamingJson(e);default:return e}},untransform:({_visit:e,...t})=>t})});var uXe,sTr=h(()=>{"use strict";ic();yr();uXe=$.union("type",{disabled:$.object({value:$.boolean().optional()})}).transform({transform:e=>e.type==="disabled"?T2t.disabled(e.value):e,untransform:({_visit:e,...t})=>t})});var aTr,aoo=h(()=>{"use strict";yr();MYe();e0e();od();ga();hA();wf();z1r();ZYe();M1r();V2t();L1r();Yio();_1r();H1r();U2t();K1r();ooo();oTr();sTr();aTr=$.objectWithoutOptionalProperties({authed:$.boolean(),security:$Ye.optional(),internal:$.boolean().optional(),idempotent:$.boolean().optional(),method:tXe,audiences:$.list($.string()),path:$.string(),summary:$.string().optional(),subtitle:$.string().optional(),operationId:$.string().optional(),tags:$.list(SF),pathParameters:$.list(n0e),queryParameters:$.list(nXe),headers:$.list(r0e),sdkName:NX.optional(),generatedRequestName:$.string(),requestNameOverride:$.string().optional(),request:rTr.optional(),response:cXe.optional(),errors:$.record(RX,U1r),servers:$.list(eXe),examples:$.list(XYe),pagination:rXe.optional(),retries:uXe.optional(),globalParameterIds:$.list($.string()).optional()}).extend(Rn).extend(ls).extend(Ho).extend(dc)});var cTr,coo=h(()=>{"use strict";yr();Fa();cTr=$.objectWithoutOptionalProperties({header:$.string(),name:$.string().optional(),optional:$.boolean().optional(),env:$.string().optional(),schema:$.lazy(()=>Cl).optional(),clientDefault:$.unknown().optional()})});var uTr,uoo=h(()=>{"use strict";yr();uTr=$.objectWithoutOptionalProperties({name:$.string(),parameterName:$.string().optional(),in:$.string().optional(),target:$.string().optional(),type:$.string().optional(),env:$.string().optional(),default:$.unknown().optional(),optional:$.boolean().optional(),apply:$.string().optional(),docs:$.string().optional()})});var lTr,loo=h(()=>{"use strict";yr();z2t();lTr=$.list($.record($be,$.list($.string())))});var pTr,poo=h(()=>{"use strict";yr();pTr=$.enum_(["sha256","sha1","sha384","sha512"])});var fTr,foo=h(()=>{"use strict";yr();fTr=$.objectWithoutOptionalProperties({name:$.string()})});var dTr,doo=h(()=>{"use strict";ic();yr();foo();dTr=$.union("type",{queryParameter:fTr}).transform({transform:e=>e.type==="queryParameter"?B2t.queryParameter(e):e,untransform:({_visit:e,...t})=>t})});var mTr,moo=h(()=>{"use strict";yr();poo();doo();L2t();mTr=$.objectWithoutOptionalProperties({algorithm:pTr,encoding:t0e.optional(),location:dTr})});var hTr,hoo=h(()=>{"use strict";yr();hTr=$.objectWithoutOptionalProperties({portVariants:$.boolean(),legacyQueryEncoding:$.boolean()})});var gTr,goo=h(()=>{"use strict";yr();gTr=$.enum_(["sha256","sha1","sha384","sha512"])});var ATr,Aoo=h(()=>{"use strict";yr();moo();hoo();g1r();goo();L2t();y1r();ATr=$.objectWithoutOptionalProperties({header:$.string(),algorithm:gTr.optional(),encoding:t0e.optional(),signaturePrefix:$.string().optional(),payloadFormat:GYe.optional(),timestamp:qYe.optional(),bodyHashBinding:mTr.optional(),notificationUrlNormalization:hTr.optional()})});var yTr,yoo=h(()=>{"use strict";yr();Fa();yTr=$.objectWithoutOptionalProperties({header:$.string(),name:$.string().optional(),env:$.string().optional(),schema:$.lazy(()=>Cl).optional()})});var bTr,boo=h(()=>{"use strict";yr();bTr=$.objectWithoutOptionalProperties({default:$.number().optional(),minimum:$.number().optional(),maximum:$.number().optional(),exclusiveMinimum:$.boolean().optional(),exclusiveMaximum:$.boolean().optional(),multipleOf:$.number().optional()})});var ETr,Eoo=h(()=>{"use strict";ic();yr();ETr=$.union("type",{boolean:$.object({value:$.boolean()}),string:$.object({value:$.string()})}).transform({transform:e=>{switch(e.type){case"boolean":return by.boolean(e.value);case"string":return by.string(e.value);default:return e}},untransform:({_visit:e,...t})=>t})});var lXe,ITr=h(()=>{"use strict";yr();od();ga();Ey();hA();v0();x0();Eoo();lXe=$.objectWithoutOptionalProperties({value:ETr}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(Ju)});var vTr,Ioo=h(()=>{"use strict";yr();vTr=$.objectWithoutOptionalProperties({default:$.number().optional()})});var xTr,voo=h(()=>{"use strict";yr();xTr=$.objectWithoutOptionalProperties({default:$.string().optional(),pattern:$.string().optional(),format:$.string().optional(),minLength:$.number().optional(),maxLength:$.number().optional()})});var CTr,xoo=h(()=>{"use strict";ic();yr();jio();_io();boo();Ioo();voo();CTr=$.union("type",{int:bTr,int64:vTr,uint:$.object({}),uint64:$.object({}),float:$.object({}),double:P1r,string:xTr,datetime:$.object({}),datetimeRfc2822:$.object({}),date:$.object({}),base64:$.object({}),boolean:E1r}).transform({transform:e=>{switch(e.type){case"int":return Wu.int(e);case"int64":return Wu.int64(e);case"uint":return Wu.uint();case"uint64":return Wu.uint64();case"float":return Wu.float();case"double":return Wu.double(e);case"string":return Wu.string(e);case"datetime":return Wu.datetime();case"datetimeRfc2822":return Wu.datetimeRfc2822();case"date":return Wu.date();case"base64":return Wu.base64();case"boolean":return Wu.boolean(e);default:return e}},untransform:({_visit:e,...t})=>t})});var s0e,G2t=h(()=>{"use strict";yr();od();ga();Ey();hA();v0();x0();xoo();s0e=$.objectWithoutOptionalProperties({schema:CTr}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(Ju)});var wTr,ruc=h(()=>{"use strict";yr();Fa();od();ga();kX();g1();Ey();hA();v0();x0();G2t();wTr=$.objectWithoutOptionalProperties({key:s0e,value:$.lazy(()=>Cl),minProperties:$.number().optional(),maxProperties:$.number().optional()}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(A1).extend(Ju).extend(kd)});var STr,Coo=h(()=>{"use strict";yr();ga();wf();_2t();STr=$.objectWithoutOptionalProperties({name:$.string().optional(),properties:$.list(i0e)}).extend(Rn).extend(Ho)});var TTr,nuc=h(()=>{"use strict";yr();Fa();od();ga();g1();Ey();hA();v0();x0();TTr=$.objectWithoutOptionalProperties({value:$.lazy(()=>Cl)}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(Ju).extend(kd)});var pXe,OTr=h(()=>{"use strict";yr();pXe=$.objectWithoutOptionalProperties({differentSchema:$.boolean()})});var BTr,iuc=h(()=>{"use strict";yr();Fa();Zbe();od();OTr();BTr=$.objectWithoutOptionalProperties({key:$.string(),schema:$.lazy(()=>Cl),readonly:$.boolean().optional(),writeonly:$.boolean().optional(),conflict:$.record(wF,pXe),generatedName:$.string(),nameOverride:$.string().optional(),audiences:$.list($.string())}).extend(ls)});var jX,fXe=h(()=>{"use strict";yr();Zbe();od();ga();Ey();hA();v0();wf();x0();jX=$.objectWithoutOptionalProperties({schema:wF}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(Ho).extend(Ju)});var PTr,ouc=h(()=>{"use strict";yr();Fa();od();ga();kX();g1();Ey();hA();v0();wf();x0();p1r();fXe();PTr=$.objectWithoutOptionalProperties({allOf:$.list(jX),properties:$.list($.lazyObject(()=>BTr)),allOfPropertyConflicts:$.list(_Ye),additionalProperties:$.boolean(),minProperties:$.number().optional(),maxProperties:$.number().optional()}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(A1).extend(Ho).extend(Ju).extend(kd)});var DTr,suc=h(()=>{"use strict";ic();yr();Fa();DTr=$.union("type",{discriminated:$.lazyObject(()=>B1r),undiscriminated:$.lazyObject(()=>RTr)}).transform({transform:e=>{switch(e.type){case"discriminated":return BX.discriminated(e);case"undiscriminated":return BX.undiscriminated(e);default:return e}},untransform:({_visit:e,...t})=>t})});var kTr,woo=h(()=>{"use strict";yr();Fa();fio();Zbe();kTr=$.objectWithoutOptionalProperties({rootSchemas:$.record(wF,$.lazy(()=>Cl)),namespacedSchemas:$.record(GSr,$.record(wF,$.lazy(()=>Cl)))})});var FTr,Soo=h(()=>{"use strict";yr();FTr=$.objectWithoutOptionalProperties({summary:$.string().optional(),description:$.string().optional()})});var NTr,Too=h(()=>{"use strict";yr();Cio();e0e();NTr=$.objectWithoutOptionalProperties({tagsById:$.record(SF,n1r),orderedTagIds:$.list(SF).optional()})});var dXe,jTr=h(()=>{"use strict";yr();Fa();ga();dXe=$.objectWithoutOptionalProperties({name:$.string().optional(),payload:$.lazy(()=>Jh)}).extend(Rn)});var mXe,QTr=h(()=>{"use strict";yr();mXe=$.enum_(["GET","POST"])});var hXe,zTr=h(()=>{"use strict";ic();yr();Nio();Aoo();hXe=$.union("type",{hmac:ATr,asymmetric:b1r}).transform({transform:e=>{switch(e.type){case"hmac":return Qje.hmac(e);case"asymmetric":return Qje.asymmetric(e);default:return e}},untransform:({_visit:e,...t})=>t})});var MTr,Ooo=h(()=>{"use strict";yr();Fa();e0e();ga();hA();wf();ZYe();V2t();Coo();oTr();jTr();QTr();zTr();MTr=$.objectWithoutOptionalProperties({audiences:$.list($.string()),sdkName:NX.optional(),method:mXe,summary:$.string().optional(),operationId:$.string(),tags:$.list(SF),headers:$.list(r0e),generatedPayloadName:$.string(),payload:$.lazy(()=>Cl),multipartFormData:STr.optional(),response:cXe.optional(),signatureVerification:hXe.optional(),examples:$.list(dXe)}).extend(Rn).extend(Ho).extend(dc)});var LTr,Boo=h(()=>{"use strict";yr();V2t();U2t();K1r();LTr=$.objectWithoutOptionalProperties({queryParameters:$.list(nXe),headers:$.list(r0e),pathParameters:$.list(n0e)})});var VTr,Poo=h(()=>{"use strict";yr();VTr=$.enum_(["client","server"])});var UTr,Doo=h(()=>{"use strict";yr();Fa();Poo();UTr=$.objectWithoutOptionalProperties({name:$.string(),displayName:$.string().optional(),origin:VTr,body:$.lazy(()=>Cl),methodName:$.string().optional()})});var _Tr,Roo=h(()=>{"use strict";yr();_Tr=$.objectWithoutOptionalProperties({name:$.string(),url:$.string()})});var GTr,koo=h(()=>{"use strict";yr();Fa();ga();GTr=$.objectWithoutOptionalProperties({messageType:$.string(),payload:$.lazy(()=>Jh)}).extend(Rn)});var qTr,Foo=h(()=>{"use strict";yr();ga();F1r();j1r();koo();qTr=$.objectWithoutOptionalProperties({name:$.string().optional(),queryParameters:$.list(YYe).optional(),headers:$.list(JYe).optional(),messages:$.list(GTr)}).extend(Rn)});var WTr,Noo=h(()=>{"use strict";yr();Q2t();ga();wf();Boo();Doo();Roo();Foo();WTr=$.objectWithoutOptionalProperties({audiences:$.list($.string()),path:$.string(),groupName:Ybe,summary:$.string().optional(),connectMethodName:$.string().optional(),handshake:LTr,messages:$.list(UTr),servers:$.list(_Tr),examples:$.list(qTr)}).extend(Rn).extend(Ho)});var auc,cuc=h(()=>{"use strict";yr();Zbe();Iio();z2t();xio();aoo();coo();uoo();loo();yoo();U2t();G2t();woo();Soo();Too();Ooo();Noo();auc=$.objectWithoutOptionalProperties({apiVersion:$.unknown().optional(),specVersion:$.string().optional(),title:$.string().optional(),description:$.string().optional(),basePath:$.string().optional(),basePathParameters:$.list(n0e).optional(),servers:$.list(M2t),websocketServers:$.list(M2t),groups:$.record($.string(),FTr),tags:NTr,hasEndpointsMarkedInternal:$.boolean(),endpoints:$.list(aTr),webhooks:$.list(MTr),channels:$.record($.string(),WTr),groupedSchemas:kTr,variables:$.record($.string(),s0e),nonRequestReferencedSchemas:$.set(wF),securitySchemes:$.record($be,t1r),security:lTr.optional(),globalHeaders:$.list(cTr).optional(),globalParameters:$.list(uTr).optional(),idempotencyHeaders:$.list(yTr).optional()})});var HTr,uuc=h(()=>{"use strict";yr();Fa();od();ga();g1();Ey();hA();v0();x0();HTr=$.objectWithoutOptionalProperties({value:$.lazy(()=>Cl)}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(Ju).extend(kd)});var KTr,joo=h(()=>{"use strict";yr();od();ga();Ey();hA();v0();x0();KTr=$.objectWithoutOptionalProperties({}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(Ju)});var Cl,luc=h(()=>{"use strict";ic();yr();Fa();ZSr();ITr();G2t();fXe();joo();Cl=$.union("type",{primitive:s0e,object:$.lazyObject(()=>PTr),array:$.lazyObject(()=>f1r),map:$.lazyObject(()=>wTr),optional:$.lazyObject(()=>HTr),enum:zYe,reference:jX,literal:lXe,oneOf:$.object({value:$.lazy(()=>DTr)}),nullable:$.lazyObject(()=>TTr),unknown:KTr}).transform({transform:e=>{switch(e.type){case"primitive":return ha.primitive(e);case"object":return ha.object(e);case"array":return ha.array(e);case"map":return ha.map(e);case"optional":return ha.optional(e);case"enum":return ha.enum(e);case"reference":return ha.reference(e);case"literal":return ha.literal(e);case"oneOf":return ha.oneOf(e.value);case"nullable":return ha.nullable(e);case"unknown":return ha.unknown(e);default:return e}},untransform:({_visit:e,...t})=>t})});var RTr,puc=h(()=>{"use strict";yr();Fa();od();ga();kX();g1();Ey();hA();v0();wf();x0();RTr=$.objectWithoutOptionalProperties({commonProperties:$.list($.lazyObject(()=>HYe)).optional(),schemas:$.list($.lazy(()=>Cl))}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(A1).extend(Ho).extend(Ju).extend(kd)});var Qoo=h(()=>{"use strict";p1r();$cc();Dio();Nio();dio();jio();I1r();yio();euc();Qio();Vio();zio();Lio();Uio();tuc();O1r();_io();aoo();z1r();Wio();ZYe();M1r();ZSr();XSr();Jio();Gio();nTr();noo();eoo();Kio();coo();uoo();loo();V2t();F1r();Aoo();L1r();Yio();_1r();yoo();boo();too();soo();ITr();Eoo();Ioo();ruc();Coo();eTr();_2t();roo();ioo();nuc();iuc();OTr();ouc();tTr();Xio();suc();cuc();uuc();H1r();Zio();U2t();Hio();G2t();xoo();K1r();j1r();fXe();ooo();oTr();sTr();luc();woo();Soo();qio();voo();Mio();Too();iTr();puc();joo();$io();Ooo();poo();moo();doo();foo();jTr();QTr();hoo();Rio();kio();g1r();goo();L2t();zTr();y1r();Fio();Noo();Boo();koo();Poo();Doo();Roo();Foo()});var zoo={};Z(zoo,{AllOfPropertyConflict:()=>_Ye,ArraySchema:()=>f1r,AsymmetricAlgorithm:()=>d1r,AsymmetricWebhookSignatureVerification:()=>b1r,Availability:()=>qSr,BooleanSchema:()=>E1r,BytesResponse:()=>WYe,CasingOverrides:()=>YSr,CommonProperty:()=>HYe,CursorPagination:()=>v1r,CustomCodeSample:()=>S1r,CustomCodeSampleLanguage:()=>x1r,CustomCodeSampleSdk:()=>w1r,CustomPagination:()=>T1r,DiscriminatedOneOfSchema:()=>B1r,DiscriminatorContext:()=>KYe,DoubleSchema:()=>P1r,Endpoint:()=>aTr,EndpointExample:()=>XYe,EndpointResponseExample:()=>k1r,EndpointSdkName:()=>NX,EndpointSecurity:()=>$Ye,EnumSchema:()=>zYe,EnumValue:()=>Xbe,ErrorExample:()=>V1r,FernExample:()=>D1r,FileResponse:()=>sXe,FileSchema:()=>Z1r,FormUrlEncodedRequest:()=>J1r,FullEndpointExample:()=>Q1r,GlobalHeader:()=>cTr,GlobalParameter:()=>uTr,GlobalSecurity:()=>lTr,Header:()=>r0e,HeaderExample:()=>JYe,HmacWebhookSignatureVerification:()=>ATr,HttpEndpointServer:()=>eXe,HttpError:()=>U1r,HttpMethod:()=>tXe,IdempotencyHeader:()=>yTr,IntSchema:()=>bTr,JsonRequest:()=>Y1r,JsonResponse:()=>aXe,LiteralSchema:()=>lXe,LiteralSchemaValue:()=>ETr,LongSchema:()=>vTr,MapSchema:()=>wTr,MultipartFormDataWebhookPayload:()=>STr,MultipartRequest:()=>iXe,MultipartRequestProperty:()=>i0e,MultipartRequestPropertyEncoding:()=>X1r,MultipartSchema:()=>$1r,NullableSchema:()=>TTr,ObjectProperty:()=>BTr,ObjectPropertyConflictInfo:()=>pXe,ObjectSchema:()=>PTr,OctetStreamRequest:()=>oXe,OffsetPagination:()=>G1r,OneOfSchema:()=>DTr,OpenApiIntermediateRepresentation:()=>auc,OptionalSchema:()=>HTr,Pagination:()=>rXe,PathPagination:()=>q1r,PathParameter:()=>n0e,PathParameterExample:()=>N1r,PrimitiveSchema:()=>s0e,PrimitiveSchemaValue:()=>CTr,QueryParameter:()=>nXe,QueryParameterExample:()=>YYe,ReferencedSchema:()=>jX,Request:()=>rTr,Response:()=>cXe,RetriesConfiguration:()=>uXe,Schema:()=>Cl,Schemas:()=>kTr,SdkGroupInfo:()=>FTr,StreamingResponseExample:()=>R1r,StringSchema:()=>xTr,SupportedSdkLanguage:()=>C1r,Tags:()=>NTr,TextResponse:()=>o0e,UnDiscriminatedOneOfSchema:()=>RTr,UnknownSchema:()=>KTr,UriPagination:()=>W1r,Webhook:()=>MTr,WebhookBodyHashAlgorithm:()=>pTr,WebhookBodyHashBinding:()=>mTr,WebhookBodyHashLocation:()=>dTr,WebhookBodyHashQueryParameterLocation:()=>fTr,WebhookExampleCall:()=>dXe,WebhookHttpMethod:()=>mXe,WebhookNotificationUrlNormalization:()=>hTr,WebhookPayloadBodySort:()=>m1r,WebhookPayloadComponent:()=>h1r,WebhookPayloadFormat:()=>GYe,WebhookSignatureAlgorithm:()=>gTr,WebhookSignatureEncoding:()=>t0e,WebhookSignatureVerification:()=>hXe,WebhookTimestamp:()=>qYe,WebhookTimestampFormat:()=>A1r,WebsocketChannel:()=>WTr,WebsocketHandshake:()=>LTr,WebsocketMessageExample:()=>GTr,WebsocketMessageOrigin:()=>VTr,WebsocketMessageSchema:()=>UTr,WebsocketServer:()=>_Tr,WebsocketSessionExample:()=>qTr});var fuc=h(()=>{"use strict";Qoo()});var JTr,duc=h(()=>{"use strict";yr();Fa();od();ga();g1();Ey();hA();v0();x0();JTr=$.objectWithoutOptionalProperties({value:$.lazy(()=>Fd),minItems:$.number().optional(),maxItems:$.number().optional(),example:$.list($.unknown()).optional(),default:$.unknown().optional()}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(Ju).extend(kd)});var YTr,Moo=h(()=>{"use strict";yr();YTr=$.objectWithoutOptionalProperties({example:$.string().optional()})});var XTr,Loo=h(()=>{"use strict";yr();XTr=$.objectWithoutOptionalProperties({default:$.boolean().optional(),example:$.boolean().optional()})});var gXe,muc=h(()=>{"use strict";yr();Fa();gXe=$.objectWithoutOptionalProperties({key:$.string(),schema:$.lazy(()=>Fd)})});var q2t,Voo=h(()=>{"use strict";yr();q2t=$.objectWithoutOptionalProperties({example:$.string().optional()})});var ZTr,Uoo=h(()=>{"use strict";yr();ZTr=$.objectWithoutOptionalProperties({example:$.string().optional()})});var $Tr,huc=h(()=>{"use strict";yr();Fa();od();ga();kX();g1();Ey();hA();v0();wf();x0();O1r();$Tr=$.objectWithoutOptionalProperties({discriminantProperty:$.string(),discriminantPropertyNameOverride:$.string().optional(),discriminatorContext:KYe.optional(),defaultDiscriminantValue:$.string().optional(),commonProperties:$.list($.lazyObject(()=>gXe)),schemas:$.record($.string(),$.lazy(()=>Fd))}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(A1).extend(Ho).extend(Ju).extend(kd)});var eOr,_oo=h(()=>{"use strict";yr();eOr=$.objectWithoutOptionalProperties({default:$.number().optional(),minimum:$.number().optional(),maximum:$.number().optional(),exclusiveMinimum:$.boolean().optional(),exclusiveMaximum:$.boolean().optional(),multipleOf:$.number().optional(),example:$.number().optional()})});var a0e,W2t=h(()=>{"use strict";yr();Fa();od();ga();wf();a0e=$.objectWithoutOptionalProperties({name:$.string(),schema:$.lazy(()=>Fd),env:$.string().optional(),parameterNameOverride:$.string().optional(),clientDefault:$.unknown().optional()}).extend(Rn).extend(ls).extend(Ho)});var aQ,c0e=h(()=>{"use strict";yr();ga();aQ=$.objectWithoutOptionalProperties({name:$.string().optional(),value:$.unknown()}).extend(Rn)});var tOr,Goo=h(()=>{"use strict";yr();Fa();MYe();ga();Ey();wf();c0e();tOr=$.objectWithoutOptionalProperties({statusCode:RX,schema:$.lazy(()=>Fd),fullExamples:$.list(aQ).optional(),namespace:$.string().optional()}).extend(Rn).extend(Kc).extend(Ho)});var rOr,qoo=h(()=>{"use strict";yr();Fa();od();ga();wf();rOr=$.objectWithoutOptionalProperties({name:$.string(),schema:$.lazy(()=>Fd),variableReference:$.string().optional(),parameterNameOverride:$.string().optional(),explode:$.boolean().optional(),clientDefault:$.unknown().optional()}).extend(Rn).extend(ls).extend(Ho)});var AXe,nOr=h(()=>{"use strict";yr();Fa();od();ga();wf();AXe=$.objectWithoutOptionalProperties({name:$.string(),schema:$.lazy(()=>Fd),parameterNameOverride:$.string().optional(),explode:$.boolean().optional(),clientDefault:$.unknown().optional()}).extend(Rn).extend(ls).extend(Ho)});var iOr,Woo=h(()=>{"use strict";yr();Fa();ga();LYe();wf();c0e();iOr=$.objectWithoutOptionalProperties({schema:$.lazy(()=>Fd),contentType:$.string().optional(),required:$.boolean().optional(),fullExamples:$.list(aQ).optional(),additionalProperties:$.boolean()}).extend(Rn).extend(Ho).extend(FX)});var oOr,Hoo=h(()=>{"use strict";yr();Fa();ga();LYe();wf();c0e();oOr=$.objectWithoutOptionalProperties({schema:$.lazy(()=>Fd),contentType:$.string().optional(),fullExamples:$.list(aQ).optional(),additionalProperties:$.boolean()}).extend(Rn).extend(Ho).extend(FX)});var sOr,Koo=h(()=>{"use strict";yr();LYe();eTr();c0e();sOr=$.objectWithoutOptionalProperties({fullExamples:$.list(aQ).optional()}).extend(iXe).extend(FX)});var aOr,Joo=h(()=>{"use strict";yr();LYe();tTr();aOr=$.objectWithoutOptionalProperties({}).extend(oXe).extend(FX)});var cOr,Yoo=h(()=>{"use strict";ic();yr();Woo();Hoo();Koo();Joo();cOr=$.union("type",{octetStream:aOr,multipart:sOr,json:iOr,formUrlEncoded:oOr}).transform({transform:e=>{switch(e.type){case"octetStream":return xF.octetStream(e);case"multipart":return xF.multipart(e);case"json":return xF.json(e);case"formUrlEncoded":return xF.formUrlEncoded(e);default:return e}},untransform:({_visit:e,...t})=>t})});var yXe,Xoo=h(()=>{"use strict";yr();Fa();ga();wf();Mje();c0e();yXe=$.objectWithoutOptionalProperties({schema:$.lazy(()=>Fd),responseProperty:$.string().optional(),terminator:$.string().optional(),fullExamples:$.list(aQ).optional(),resumable:$.boolean().optional()}).extend(Rn).extend(Ho).extend(wU)});var bXe,uOr=h(()=>{"use strict";ic();yr();I1r();nTr();iTr();Xoo();bXe=$.union("type",{file:sXe,json:yXe,text:o0e,bytes:WYe,streamingSse:yXe,streamingText:o0e,streamingJson:yXe}).transform({transform:e=>{switch(e.type){case"file":return jg.file(e);case"json":return jg.json(e);case"text":return jg.text(e);case"bytes":return jg.bytes(e);case"streamingSse":return jg.streamingSse(e);case"streamingText":return jg.streamingText(e);case"streamingJson":return jg.streamingJson(e);default:return e}},untransform:({_visit:e,...t})=>t})});var guc,Auc=h(()=>{"use strict";yr();MYe();e0e();od();ga();hA();wf();z1r();ZYe();M1r();L1r();_1r();H1r();sTr();W2t();Goo();qoo();nOr();Yoo();uOr();guc=$.objectWithoutOptionalProperties({authed:$.boolean(),security:$Ye.optional(),internal:$.boolean().optional(),idempotent:$.boolean().optional(),method:tXe,audiences:$.list($.string()),path:$.string(),summary:$.string().optional(),subtitle:$.string().optional(),operationId:$.string().optional(),tags:$.list(SF),pathParameters:$.list(rOr),queryParameters:$.list(AXe),headers:$.list(a0e),sdkName:NX.optional(),generatedRequestName:$.string(),requestNameOverride:$.string().optional(),request:cOr.optional(),response:bXe.optional(),errors:$.record(RX,tOr),servers:$.list(eXe),examples:$.list(XYe),pagination:rXe.optional(),retries:uXe.optional(),globalParameterIds:$.list($.string()).optional()}).extend(Rn).extend(ls).extend(Ho).extend(dc)});var lOr,Zoo=h(()=>{"use strict";yr();od();ga();g1();Ey();hA();v0();wf();x0();XSr();lOr=$.objectWithoutOptionalProperties({default:Xbe.optional(),values:$.list(Xbe),example:$.string().optional()}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(Ho).extend(Ju).extend(kd)});var pOr,$oo=h(()=>{"use strict";yr();pOr=$.objectWithoutOptionalProperties({example:$.number().optional()})});var fOr,eso=h(()=>{"use strict";yr();fOr=$.objectWithoutOptionalProperties({default:$.number().optional(),example:$.number().optional()})});var dOr,tso=h(()=>{"use strict";yr();dOr=$.objectWithoutOptionalProperties({default:$.number().optional(),minimum:$.number().optional(),maximum:$.number().optional(),exclusiveMinimum:$.boolean().optional(),exclusiveMaximum:$.boolean().optional(),multipleOf:$.number().optional(),example:$.number().optional()})});var mOr,rso=h(()=>{"use strict";yr();mOr=$.objectWithoutOptionalProperties({default:$.string().optional(),pattern:$.string().optional(),format:$.string().optional(),minLength:$.number().optional(),maxLength:$.number().optional(),example:$.string().optional()})});var hOr,nso=h(()=>{"use strict";yr();hOr=$.objectWithoutOptionalProperties({default:$.number().optional(),example:$.number().optional()})});var gOr,iso=h(()=>{"use strict";yr();gOr=$.objectWithoutOptionalProperties({default:$.number().optional(),example:$.number().optional()})});var AOr,oso=h(()=>{"use strict";ic();yr();Moo();Loo();Voo();Uoo();_oo();$oo();eso();tso();rso();nso();iso();AOr=$.union("type",{int:dOr,int64:fOr,uint:gOr,uint64:hOr,float:pOr,double:eOr,string:mOr,datetime:q2t,datetimeRfc2822:q2t,date:ZTr,base64:YTr,boolean:XTr}).transform({transform:e=>{switch(e.type){case"int":return Mi.int(e);case"int64":return Mi.int64(e);case"uint":return Mi.uint(e);case"uint64":return Mi.uint64(e);case"float":return Mi.float(e);case"double":return Mi.double(e);case"string":return Mi.string(e);case"datetime":return Mi.datetime(e);case"datetimeRfc2822":return Mi.datetimeRfc2822(e);case"date":return Mi.date(e);case"base64":return Mi.base64(e);case"boolean":return Mi.boolean(e);default:return e}},untransform:({_visit:e,...t})=>t})});var EXe,yOr=h(()=>{"use strict";yr();od();ga();Ey();hA();v0();x0();oso();EXe=$.objectWithoutOptionalProperties({schema:AOr}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(Ju)});var bOr,yuc=h(()=>{"use strict";yr();Fa();od();ga();kX();g1();Ey();hA();v0();x0();yOr();bOr=$.objectWithoutOptionalProperties({key:EXe,value:$.lazy(()=>Fd),minProperties:$.number().optional(),maxProperties:$.number().optional(),example:$.unknown().optional()}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(A1).extend(Ju).extend(kd)});var EOr,sso=h(()=>{"use strict";yr();ga();wf();_2t();EOr=$.objectWithoutOptionalProperties({name:$.string().optional(),properties:$.list(i0e)}).extend(Rn).extend(Ho)});var IOr,buc=h(()=>{"use strict";yr();Fa();od();ga();g1();Ey();hA();v0();x0();IOr=$.objectWithoutOptionalProperties({value:$.lazy(()=>Fd)}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(Ju).extend(kd)});var vOr,Euc=h(()=>{"use strict";yr();Fa();Zbe();od();OTr();vOr=$.objectWithoutOptionalProperties({key:$.string(),schema:$.lazy(()=>Fd),readonly:$.boolean().optional(),writeonly:$.boolean().optional(),audiences:$.list($.string()),conflict:$.record(wF,pXe),nameOverride:$.string().optional(),generatedName:$.string()}).extend(ls)});var xOr,Iuc=h(()=>{"use strict";yr();Fa();od();ga();kX();g1();Ey();hA();v0();wf();x0();p1r();fXe();c0e();xOr=$.objectWithoutOptionalProperties({allOf:$.list(jX),properties:$.list($.lazyObject(()=>vOr)),allOfPropertyConflicts:$.list(_Ye),fullExamples:$.list(aQ).optional(),additionalProperties:$.boolean(),minProperties:$.number().optional(),maxProperties:$.number().optional()}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(A1).extend(Ho).extend(Ju).extend(kd)});var COr,vuc=h(()=>{"use strict";ic();yr();Fa();COr=$.union("type",{discriminated:$.lazyObject(()=>$Tr),undiscriminated:$.lazyObject(()=>wOr)}).transform({transform:e=>{switch(e.type){case"discriminated":return OL.discriminated(e);case"undiscriminated":return OL.undiscriminated(e);default:return e}},untransform:({_visit:e,...t})=>t})});var SOr,xuc=h(()=>{"use strict";yr();Fa();od();ga();g1();Ey();hA();v0();x0();SOr=$.objectWithoutOptionalProperties({value:$.lazy(()=>Fd)}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(Ju).extend(kd)});var TOr,aso=h(()=>{"use strict";yr();od();ga();Ey();hA();v0();x0();TOr=$.objectWithoutOptionalProperties({example:$.unknown()}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(Ju)});var Fd,Cuc=h(()=>{"use strict";ic();yr();Fa();ITr();fXe();Zoo();yOr();aso();Fd=$.union("type",{primitive:EXe,object:$.lazyObject(()=>xOr),array:$.lazyObject(()=>JTr),map:$.lazyObject(()=>bOr),optional:$.lazyObject(()=>SOr),enum:lOr,reference:jX,literal:lXe,oneOf:$.object({value:$.lazy(()=>COr)}),nullable:$.lazyObject(()=>IOr),unknown:TOr}).transform({transform:e=>{switch(e.type){case"primitive":return Vr.primitive(e);case"object":return Vr.object(e);case"array":return Vr.array(e);case"map":return Vr.map(e);case"optional":return Vr.optional(e);case"enum":return Vr.enum(e);case"reference":return Vr.reference(e);case"literal":return Vr.literal(e);case"oneOf":return Vr.oneOf(e.value);case"nullable":return Vr.nullable(e);case"unknown":return Vr.unknown(e);default:return e}},untransform:({_visit:e,...t})=>t})});var wOr,wuc=h(()=>{"use strict";yr();Fa();od();ga();kX();g1();Ey();hA();v0();wf();x0();wOr=$.objectWithoutOptionalProperties({commonProperties:$.list($.lazyObject(()=>gXe)).optional(),schemas:$.list($.lazy(()=>Fd))}).extend(Ku).extend(dc).extend(Kc).extend(Rn).extend(ls).extend(A1).extend(Ho).extend(Ju).extend(kd)});var Suc,Tuc=h(()=>{"use strict";yr();Fa();e0e();ga();hA();wf();ZYe();jTr();QTr();zTr();W2t();sso();uOr();Suc=$.objectWithoutOptionalProperties({audiences:$.list($.string()),sdkName:NX.optional(),method:mXe,summary:$.string().optional(),operationId:$.string(),tags:$.list(SF),headers:$.list(a0e),generatedPayloadName:$.string(),payload:$.lazy(()=>Fd),multipartFormData:EOr.optional(),response:bXe.optional(),signatureVerification:hXe.optional(),examples:$.list(dXe)}).extend(Rn).extend(Ho).extend(dc)});var Ouc,Buc=h(()=>{"use strict";yr();W2t();nOr();Ouc=$.objectWithoutOptionalProperties({queryParameters:$.list(AXe),headers:$.list(a0e)})});var cso=h(()=>{"use strict";duc();Moo();Loo();muc();Voo();Uoo();huc();_oo();Auc();Zoo();$oo();W2t();Goo();eso();tso();Woo();Xoo();yuc();sso();c0e();buc();Euc();Iuc();vuc();xuc();Hoo();Koo();Joo();qoo();oso();yOr();nOr();Yoo();uOr();Cuc();rso();nso();iso();wuc();aso();Tuc();Buc()});var uso={};Z(uso,{ArraySchemaWithExample:()=>JTr,Base64WithExample:()=>YTr,BooleanWithExample:()=>XTr,CommonPropertyWithExample:()=>gXe,DateWithExample:()=>ZTr,DatetimeWithExample:()=>q2t,DiscriminatedOneOfSchemaWithExample:()=>$Tr,DoubleWithExample:()=>eOr,EndpointWithExample:()=>guc,EnumSchemaWithExample:()=>lOr,FloatWithExample:()=>pOr,HeaderWithExample:()=>a0e,HttpErrorWithExample:()=>tOr,Int64WithExample:()=>fOr,IntWithExample:()=>dOr,JsonRequestWithExample:()=>iOr,JsonResponseWithExample:()=>yXe,MapSchemaWithExample:()=>bOr,MultipartFormDataWebhookPayloadWithExample:()=>EOr,NamedFullExample:()=>aQ,NullableSchemaWithExample:()=>IOr,ObjectPropertyWithExample:()=>vOr,ObjectSchemaWithExample:()=>xOr,OneOfSchemaWithExample:()=>COr,OptionalSchemaWithExample:()=>SOr,ParseFormUrlEncodedRequest:()=>oOr,ParseMultipartRequest:()=>sOr,ParseOctetStreamRequest:()=>aOr,PathParameterWithExample:()=>rOr,PrimitiveSchemaValueWithExample:()=>AOr,PrimitiveSchemaWithExample:()=>EXe,QueryParameterWithExample:()=>AXe,RequestWithExample:()=>cOr,ResponseWithExample:()=>bXe,SchemaWithExample:()=>Fd,StringSchemaWithExample:()=>mOr,Uint64WithExample:()=>hOr,UintWithExample:()=>gOr,UnDiscriminatedOneOfSchemaWithExample:()=>wOr,UnknownSchemaWithExample:()=>TOr,WebhookWithExample:()=>Suc,WebsocketHandshakeWithExample:()=>Ouc});var Puc=h(()=>{"use strict";cso()});var Duc=h(()=>{"use strict";Hcc();wio();Zcc();Bio();fuc();Qoo();Puc();cso()});var Ia={};Z(Ia,{AllOfPropertyConflict:()=>_Ye,ArraySchema:()=>f1r,ArraySchemaWithExample:()=>JTr,AsymmetricAlgorithm:()=>d1r,AsymmetricWebhookSignatureVerification:()=>b1r,Availability:()=>qSr,Base64WithExample:()=>YTr,BasicSecurityScheme:()=>zSr,BearerSecurityScheme:()=>MSr,BooleanSchema:()=>E1r,BooleanWithExample:()=>XTr,BytesResponse:()=>WYe,CasingOverrides:()=>YSr,CommonProperty:()=>HYe,CommonPropertyWithExample:()=>gXe,CursorPagination:()=>v1r,CustomCodeSample:()=>S1r,CustomCodeSampleLanguage:()=>x1r,CustomCodeSampleSdk:()=>w1r,CustomPagination:()=>T1r,DateWithExample:()=>ZTr,DatetimeWithExample:()=>q2t,DiscriminatedOneOfSchema:()=>B1r,DiscriminatedOneOfSchemaWithExample:()=>$Tr,DiscriminatorContext:()=>KYe,DoubleSchema:()=>P1r,DoubleWithExample:()=>eOr,Encoding:()=>VSr,Endpoint:()=>aTr,EndpointExample:()=>XYe,EndpointResponseExample:()=>k1r,EndpointSdkName:()=>NX,EndpointSecurity:()=>$Ye,EndpointWithExample:()=>guc,EnumSchema:()=>zYe,EnumSchemaWithExample:()=>lOr,EnumValue:()=>Xbe,ErrorExample:()=>V1r,FernExample:()=>D1r,FileResponse:()=>sXe,FileSchema:()=>Z1r,FloatWithExample:()=>pOr,FormUrlEncodedRequest:()=>J1r,FullEndpointExample:()=>Q1r,FullExample:()=>Jh,FullObjectExample:()=>a1r,FullOneOfExample:()=>c1r,GlobalHeader:()=>cTr,GlobalParameter:()=>uTr,GlobalSecurity:()=>lTr,Header:()=>r0e,HeaderExample:()=>JYe,HeaderSecurityScheme:()=>USr,HeaderWithExample:()=>a0e,HmacWebhookSignatureVerification:()=>ATr,HttpEndpointServer:()=>eXe,HttpError:()=>U1r,HttpErrorWithExample:()=>tOr,HttpMethod:()=>tXe,IdempotencyHeader:()=>yTr,Int64WithExample:()=>fOr,IntSchema:()=>bTr,IntWithExample:()=>dOr,JsonRequest:()=>Y1r,JsonRequestWithExample:()=>iOr,JsonResponse:()=>aXe,JsonResponseWithExample:()=>yXe,KeyValuePair:()=>u1r,LiteralExample:()=>i1r,LiteralSchema:()=>lXe,LiteralSchemaValue:()=>ETr,LongSchema:()=>vTr,MapSchema:()=>wTr,MapSchemaWithExample:()=>bOr,MultipartFormDataWebhookPayload:()=>STr,MultipartFormDataWebhookPayloadWithExample:()=>EOr,MultipartRequest:()=>iXe,MultipartRequestProperty:()=>i0e,MultipartRequestPropertyEncoding:()=>X1r,MultipartSchema:()=>$1r,NamedFullExample:()=>aQ,Namespace:()=>_Sr,NamespaceId:()=>GSr,NullExample:()=>o1r,NullableSchema:()=>TTr,NullableSchemaWithExample:()=>IOr,OauthSecurityScheme:()=>$Sr,ObjectProperty:()=>BTr,ObjectPropertyConflictInfo:()=>pXe,ObjectPropertyWithExample:()=>vOr,ObjectSchema:()=>PTr,ObjectSchemaWithExample:()=>xOr,OctetStreamRequest:()=>oXe,OffsetPagination:()=>G1r,OneOfSchema:()=>DTr,OneOfSchemaWithExample:()=>COr,OpenApiIntermediateRepresentation:()=>auc,OpenApiSource:()=>HSr,OptionalSchema:()=>HTr,OptionalSchemaWithExample:()=>SOr,Pagination:()=>rXe,ParseFormUrlEncodedRequest:()=>oOr,ParseMultipartRequest:()=>sOr,ParseOctetStreamRequest:()=>aOr,PathPagination:()=>q1r,PathParameter:()=>n0e,PathParameterExample:()=>N1r,PathParameterWithExample:()=>rOr,PrimitiveExample:()=>VYe,PrimitiveSchema:()=>s0e,PrimitiveSchemaValue:()=>CTr,PrimitiveSchemaValueWithExample:()=>AOr,PrimitiveSchemaWithExample:()=>EXe,PropertyKey:()=>UYe,ProtobufEncoding:()=>LSr,ProtobufSource:()=>KSr,QueryParameter:()=>nXe,QueryParameterExample:()=>YYe,QueryParameterWithExample:()=>AXe,QuerySecurityScheme:()=>e1r,ReferencedSchema:()=>jX,Request:()=>rTr,RequestWithExample:()=>cOr,Response:()=>cXe,ResponseWithExample:()=>bXe,RetriesConfiguration:()=>uXe,Schema:()=>Cl,SchemaId:()=>wF,SchemaWithExample:()=>Fd,Schemas:()=>kTr,SdkGroup:()=>WSr,SdkGroupInfo:()=>FTr,SdkGroupName:()=>Ybe,SecurityScheme:()=>t1r,SecuritySchemeId:()=>$be,Server:()=>M2t,ServerVariable:()=>r1r,Source:()=>JSr,StatusCode:()=>RX,StreamingResponseExample:()=>R1r,StringSchema:()=>xTr,StringSchemaWithExample:()=>mOr,SupportedSdkLanguage:()=>C1r,Tag:()=>n1r,TagId:()=>SF,Tags:()=>NTr,TextResponse:()=>o0e,Uint64WithExample:()=>hOr,UintWithExample:()=>gOr,UnDiscriminatedOneOfSchema:()=>RTr,UnDiscriminatedOneOfSchemaWithExample:()=>wOr,UnknownSchema:()=>KTr,UnknownSchemaWithExample:()=>TOr,UriPagination:()=>W1r,Webhook:()=>MTr,WebhookBodyHashAlgorithm:()=>pTr,WebhookBodyHashBinding:()=>mTr,WebhookBodyHashLocation:()=>dTr,WebhookBodyHashQueryParameterLocation:()=>fTr,WebhookExampleCall:()=>dXe,WebhookHttpMethod:()=>mXe,WebhookNotificationUrlNormalization:()=>hTr,WebhookPayloadBodySort:()=>m1r,WebhookPayloadComponent:()=>h1r,WebhookPayloadFormat:()=>GYe,WebhookSignatureAlgorithm:()=>gTr,WebhookSignatureEncoding:()=>t0e,WebhookSignatureVerification:()=>hXe,WebhookTimestamp:()=>qYe,WebhookTimestampFormat:()=>A1r,WebhookWithExample:()=>Suc,WebsocketChannel:()=>WTr,WebsocketHandshake:()=>LTr,WebsocketHandshakeWithExample:()=>Ouc,WebsocketMessageExample:()=>GTr,WebsocketMessageOrigin:()=>VTr,WebsocketMessageSchema:()=>UTr,WebsocketServer:()=>_Tr,WebsocketSessionExample:()=>qTr,WithAvailability:()=>ls,WithDescription:()=>Rn,WithEncoding:()=>A1,WithInline:()=>kd,WithName:()=>Kc,WithNamespace:()=>dc,WithSdkGroupName:()=>Ku,WithSdkMethodName:()=>FX,WithSource:()=>Ho,WithStatusCode:()=>wU,WithTitle:()=>Ju,commons:()=>Sio,example:()=>Pio,finalIr:()=>zoo,parseIr:()=>uso});var Fa=h(()=>{"use strict";Duc()});var Ruc=h(()=>{"use strict";ic();Nac();Fa()});var kuc,IXe,Fuc,OOr=h(()=>{"use strict";kuc=/^(\d+)/,IXe=/^[a-zA-Z][a-zA-Z0-9_]*$/,Fuc={"<":"LESS_THAN",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL_TO","<=":"LESS_THAN_OR_EQUAL_TO","!=":"NOT_EQUALS","=":"EQUAL_TO","==":"EQUAL_TO","*":"ALL","":"EMPTY",'""':"EMPTY_STRING","-":"HYPHEN","|":"PIPE",".":"DOT","/":"SLASH"}});function Lje(e){let t=["zero","one","two","three","four","five","six","seven","eight","nine"],r=["ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],n=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"];if(e<0||e>9999)return;if(e<10)return t[e];if(e<20)return r[e-10];if(e<100){let s=Math.floor(e/10),a=e%10;return a===0?n[s]:`${n[s]}_${t[a]}`}if(e<1e3){let s=Math.floor(e/100),a=e%100;return a===0?`${t[s]}_hundred`:`${t[s]}_hundred_${Lje(a)}`}let i=Math.floor(e/1e3),o=e%1e3;return o===0?`${t[i]}_thousand`:`${t[i]}_thousand_${Lje(o)}`}var lso=h(()=>{"use strict"});function H2t(e){let t=e.match(kuc);if(t&&t[0]!=null){let r=t[0],n=e.substring(r.length),i=parseFloat(r);if(!isNaN(i)&&isFinite(i)){let o=Lje(i);return n.length>0?`${o}_${n}`:o}}}var pso=h(()=>{"use strict";lso();OOr()});function vXe(e){let t=H2t(e),r=Fuc[e];return t!=null?Lu(ri(t)):r??(e.toLowerCase()==="n/a"?"NOT_APPLICABLE":Lu(ri(e)))}var Nuc=h(()=>{"use strict";Hi();pso();OOr()});function TF(e,t){return e.type==="primitive"&&t.type==="primitive"?juc(e.schema,t.schema):e.type==="enum"&&t.type==="enum"?Nkf(e.values,t.values):e.type==="array"&&t.type==="array"?TF(e.value,t.value):e.type==="unknown"&&t.type==="unknown"?!0:e.type==="reference"&&t.type==="reference"?e.schema===t.schema:e.type==="optional"&&t.type==="optional"||e.type==="nullable"&&t.type==="nullable"?TF(e.value,t.value):e.type==="oneOf"&&t.type==="oneOf"?jkf(e.value,t.value):e.type==="object"&&t.type==="object"?Qkf(e,t):e.type==="map"&&t.type==="map"?juc(e.key.schema,t.key.schema)&&TF(e.value,t.value):e.type==="literal"&&t.type==="literal"?e.value===t.value:!1}function juc(e,t){return e.type===t.type}function Nkf(e,t){let r=new Set(e.map(i=>i.value)),n=new Set(t.map(i=>i.value));return OI(r,n)}function jkf(e,t){return e.type==="discriminated"&&t.type==="discriminated"?e.discriminantProperty===t.discriminantProperty&&Object.keys(e.schemas).length===Object.keys(t.schemas).length&&Object.entries(e.schemas).every(([r,n])=>{let i=t.schemas[r];return i==null?!1:TF(n,i)}):e.type==="undiscriminated"&&t.type==="undiscriminated"?e.schemas.length===t.schemas.length&&e.schemas.every((r,n)=>{let i=t.schemas[n];return i==null?!1:TF(r,i)}):!1}function Qkf(e,t){if(e.properties.length!==t.properties.length)return!1;let r=new Map(e.properties.map(n=>[n.key,n.schema]));return t.properties.every(n=>{let i=r.get(n.key);return i==null?!1:TF(i,n.schema)})}var Quc=h(()=>{"use strict";Hi()});var zuc=h(()=>{"use strict";OOr();lso();Nuc();Quc();pso()});var Ic=h(()=>{"use strict";Ruc();ic();Fa();zuc()});function C0(e){switch(e){case Kh.Deprecated:return"deprecated";case Kh.Beta:return"beta";case Kh.GenerallyAvailable:return"generally-available";case Kh.Alpha:return"alpha";case Kh.Preview:return"preview";case Kh.Legacy:return"legacy";default:return}}var Vje=h(()=>{"use strict";Ic()});function K2t(e){if(e.type==="protobuf")return{proto:{type:e.typeName}};Ee(e.type)}var fso=h(()=>{"use strict";Bt()});function Muc(e){let t=e.match(/^(_+)/),r=e.match(/(_+)$/),n=t?.[1]??"",i=r?.[1]??"";if(n===""&&i==="")return ri(e);if(n.length+i.length>=e.length)return e;let o=e.slice(n.length,e.length-i.length||void 0);return`${n}${ri(o)}${i}`}function zkf(e){let t=e.find(n=>typeof n=="object"&&n.type==="namespace"),r=e.filter(n=>typeof n=="string"||n.type!=="namespace");return t?[t,...r]:r}function Luc(e){let t=e?zkf(e):void 0;if(t==null||t.length===0)return Aje;let r=[];for(let[n,i]of t.entries())typeof i=="string"?r.push(Muc(i)):typeof i=="object"?i.type==="namespace"?n<t.length-1?r.push(Muc(i.name)):r.push(i.name,Aje):Ee(i.type):Ee(i);return r.join("/")}function dle(e){return Vs.of(`${Luc(e)}.yml`)}function dso({sdkName:e,namespaceOverride:t}){let r;return e==null||e.groupName.length===0&&t==null?Aje:(t!=null?r=[{type:"namespace",name:t},...e.groupName.filter(n=>typeof n=="string"||n.type!=="namespace")]:r=e.groupName,Luc(r))}function Vuc({sdkName:e,namespaceOverride:t}){return Vs.of(`${dso({sdkName:e,namespaceOverride:t})}.yml`)}function Uuc({location:e,namespaceOverride:t}){return t!=null?BI(Vs.of(t),e):e}var xXe=h(()=>{"use strict";Ea();Bt();fy();Hi()});function _uc(e){switch(e.type){case"object":case"primitive":case"enum":case"array":case"map":case"reference":case"literal":case"optional":case"nullable":case"unknown":return BOr({namespace:e.namespace,groupName:e.groupName});case"oneOf":return BOr({namespace:e.value.namespace,groupName:e.value.groupName});default:Ee(e)}}function BOr({namespace:e,groupName:t}){return e!=null&&t!=null?dle([{type:"namespace",name:e},...t]):e!=null?dle([{type:"namespace",name:e}]):dle(t)}var mso=h(()=>{"use strict";Bt();xXe()});function mle(e){switch(e.type){case"object":case"enum":case"array":case"map":case"reference":case"literal":case"optional":case"nullable":case"primitive":case"unknown":return e.groupName??void 0;case"oneOf":return e.value.groupName??void 0;default:Ee(e)}}var J2t=h(()=>{"use strict";Bt()});function Zp(e){return typeof e=="string"?e:e.type}function CXe(e){if(typeof e!="string")return e.docs}function Uje(e){if(typeof e!="string")return e.default}function hso(e){if(typeof e!="string")return e.validation}function wXe(e){let t=e.match(/^optional<\s*nullable<\s*(.+)\s*>\s*>$/);if(t!=null&&t[1]!=null)return t[1].trim();let r=e.match(/^nullable<\s*(.+)\s*>$/);return r!=null&&r[1]!=null?r[1].trim():e}var BL=h(()=>{"use strict"});function quc(e){let t=Zp(e);return t.startsWith("nullable<")||t.startsWith("optional<nullable<")?e:typeof e=="string"?Guc(e):{...e,type:Guc(e.type)}}function Guc(e){return e.startsWith("nullable<")||e.startsWith("optional<nullable<")?e:e.startsWith("optional<")?e.replace("optional<","optional<nullable<")+">":`nullable<${e}>`}var Wuc=h(()=>{"use strict";BL()});function _je(e){return Zp(e).startsWith("optional<")?e:typeof e=="string"?Huc(e):{...e,type:Huc(e.type)}}function Huc(e){return e.startsWith("optional<")?e:`optional<${e}>`}var POr=h(()=>{"use strict";BL()});function mc({schema:e,fileContainingReference:t,declarationFile:r=t,context:n,namespace:i,declarationDepth:o,variant:s}){switch(n.shouldMarkSchemaAsReferenced()&&n.markSchemaAsReferenced(e,i),e.type){case"primitive":return DOr(e);case"array":return yso({schema:e,fileContainingReference:t,context:n,declarationFile:r,namespace:i,declarationDepth:o,variant:s});case"map":return bso({schema:e,fileContainingReference:t,context:n,declarationFile:r,namespace:i,declarationDepth:o,variant:s});case"reference":return Aso({schema:e,fileContainingReference:t,context:n,namespace:i,variant:s});case"unknown":return Iso();case"optional":return ROr({schema:e,fileContainingReference:t,context:n,declarationFile:r,namespace:i,declarationDepth:o,variant:s});case"nullable":return Eso({schema:e,fileContainingReference:t,context:n,declarationFile:r,namespace:i,declarationDepth:o,variant:s});case"enum":return Xkf({schema:e,fileContainingReference:t,context:n,declarationFile:r,declarationDepth:o});case"literal":return e.value,vso(e);case"object":return Zkf({schema:e,fileContainingReference:t,context:n,declarationFile:r,namespace:i,declarationDepth:o,variant:s});case"oneOf":return $kf({schema:e.value,fileContainingReference:t,context:n,declarationFile:r,namespace:i,declarationDepth:o,variant:s});default:Ee(e)}}function DOr(e){switch(e.schema.type){case"string":return qkf({description:e.description,schema:e.schema});case"int":return Wkf({description:e.description,schema:e.schema});case"float":return Hkf({description:e.description,schema:e.schema});case"double":return Kkf({description:e.description,schema:e.schema});case"boolean":return _kf({description:e.description,schema:e.schema});case"int64":return Gkf({description:e.description,schema:e.schema})}let t=e.schema._visit({int:()=>"integer",int64:()=>"long",uint:()=>"uint",uint64:()=>"uint64",float:()=>"double",double:()=>"double",string:()=>"string",datetime:()=>"datetime",datetimeRfc2822:()=>"datetime-rfc-2822",date:()=>"date",base64:()=>"base64",boolean:()=>"boolean",_other:()=>"unknown"});return e.description==null&&e.title==null?t:{type:t,...e.description!=null?{docs:e.description}:{},...e.availability!=null?{availability:C0(e.availability)}:{}}}function _kf({description:e,schema:t}){let r="boolean";if(e==null&&t.default==null)return r;let n={type:r};return e!=null&&(n.docs=e),t.default!=null&&(n.default=t.default),n}function Gkf({description:e,schema:t}){let r="long";if(e==null&&t.default==null)return r;let n={type:r};return e!=null&&(n.docs=e),t.default!=null&&(n.default=t.default),n}function qkf({description:e,schema:t}){let r="string",n=Jkf(t);if(e==null&&t.default==null&&n==null)return r;let i={type:r};return e!=null&&(i.docs=e),t.default!=null&&(i.default=t.default),n!=null&&(i.validation=n),i}function Wkf({description:e,schema:t}){let r="integer",n=Kuc(t,r);if(e==null&&t.default==null&&n==null)return r;let i={type:r};return e!=null&&(i.docs=e),t.default!=null&&(i.default=t.default),n!=null&&(i.validation=n),i}function Hkf({description:e,schema:t}){let r="float";if(e==null)return r;let n={type:r};return e!=null&&(n.docs=e),n}function Kkf({description:e,schema:t}){let r="double",n=Kuc(t,r);if(e==null&&t.default==null&&n==null)return r;let i={type:r};return e!=null&&(i.docs=e),t.default!=null&&(i.default=t.default),n!=null&&(i.validation=n),i}function Jkf(e){if(e==null)return;let{format:t,pattern:r,minLength:n,maxLength:i}=e,o=Ykf(t);if(!(o==null&&r==null&&n==null&&i==null))return{format:o,pattern:r,minLength:n,maxLength:i}}function Ykf(e){switch(e){case"date":case"date-time":case"password":case"byte":case"bytes":case"binary":case"email":case"uuid":case"uri":case"hostname":case"ipv4":case"ipv6":return e;default:return}}function Kuc(e,t){if(e==null)return;let{minimum:r,maximum:n,multipleOf:i}=e,{exclusiveMinimum:o,exclusiveMaximum:s}=e;if(r=gso(r,t),n=gso(n,t),i=gso(i,t),!(r==null&&n==null&&o==null&&s==null&&i==null))return{min:r,max:n,exclusiveMin:o,exclusiveMax:s,multipleOf:i}}function gso(e,t){if(e===void 0)return;let[r,n]=t==="integer"?[Mkf,Lkf]:[Vkf,Ukf];return e<r||e>n?void 0:e}function Aso({schema:e,fileContainingReference:t,context:r,variant:n}){let i=r.getSchema(e.schema,e.namespace);if(i==null)return"unknown";let o=eFf(i)??e.schema,s=r.options.respectReadonlySchemas&&n!=null?r.getSchemaFinalName(o,n):o,a=mle(i),c=tFf(i),l=kOr({context:r,fileContainingReference:t,declarationFile:BOr({namespace:e.namespace,groupName:a}),type:s});return i.type==="nullable"&&(l=r.options.wrapReferencesToNullableInOptional?`optional<${l}>`:`nullable<${l}>`),i.type==="optional"&&!l.startsWith("optional<")&&(l=`optional<${l}>`),e.description==null&&c==null?l:{type:l,...e.description!=null?{docs:e.description}:{},...e.availability!=null?{availability:C0(e.availability)}:{}}}function yso({schema:e,fileContainingReference:t,declarationFile:r,context:n,namespace:i,declarationDepth:o,variant:s}){let a=mc({schema:e.value,fileContainingReference:t,declarationFile:r,context:n,namespace:i,declarationDepth:o,variant:s}),c=`list<${Zp(a)}>`;return e.description==null&&e.title==null&&e.default==null?c:{...e.description!=null?{docs:e.description}:{},...e.availability!=null?{availability:C0(e.availability)}:{},...e.default!=null?{default:e.default}:{},type:c}}function bso({schema:e,fileContainingReference:t,declarationFile:r,context:n,namespace:i,declarationDepth:o,variant:s}){let a=DOr(e.key),c=mc({schema:e.value,fileContainingReference:t,declarationFile:r,context:n,namespace:i,declarationDepth:o,variant:s}),u=e.encoding!=null?K2t(e.encoding):void 0,l=`map<${Zp(a)}, ${Zp(c)}>`;if(e.description==null&&u==null&&e.title==null)return l;let p={type:l};return e.description!=null&&(p.docs=e.description),e.encoding!=null&&(p.encoding=u),e.availability!=null&&(p.availability=C0(e.availability)),p}function Eso({schema:e,fileContainingReference:t,declarationFile:r,context:n,namespace:i,declarationDepth:o,variant:s}){if(!n.options.respectNullableSchemas)return ROr({schema:e,fileContainingReference:t,context:n,declarationFile:r,namespace:i,declarationDepth:o,variant:s});let a=mc({schema:e.value,fileContainingReference:t,declarationFile:r,context:n,namespace:i,declarationDepth:o,variant:s}),c=Zp(a),u=CXe(a),l=Uje(a),p=hso(a),d=quc(c);if(n.options.wrapReferencesToNullableInOptional&&(d=_je(d)),e.availability==null&&e.description==null&&u==null&&l==null&&p==null&&e.title==null)return d;let f=typeof d=="string"?{type:d}:d;return(e.description!=null||u!=null)&&(f.docs=e.description??u),l!=null&&(f.default=l),p!=null&&(f.validation=p),e.availability!=null&&(f.availability=C0(e.availability)),f}function ROr({schema:e,fileContainingReference:t,declarationFile:r,context:n,namespace:i,declarationDepth:o,variant:s}){let a=mc({schema:e.value,fileContainingReference:t,declarationFile:r,context:n,namespace:i,declarationDepth:o,variant:s}),c=Zp(a),u=CXe(a),l=Uje(a),p=hso(a),d=_je(c);if(e.availability==null&&e.description==null&&u==null&&l==null&&p==null&&e.title==null)return d;let f=typeof d=="string"?{type:d}:d;return(e.description!=null||u!=null)&&(f.docs=e.description??u),l!=null&&(f.default=l),p!=null&&(f.validation=p),e.availability!=null&&(f.availability=C0(e.availability)),f}function Iso(){return"unknown"}function vso(e){let t;switch(e.value.type){case"boolean":{t=`literal<${e.value.value}>`;break}case"string":{t=`literal<"${e.value.value}">`;break}default:Ee(e.value)}return e.description==null&&e.title==null?t:{type:t,...e.description!=null?{docs:e.description}:{},...e.availability!=null?{availability:C0(e.availability)}:{}}}function Xkf({schema:e,fileContainingReference:t,declarationFile:r,context:n,declarationDepth:i}){let o=Y2t(e,i),s=e.nameOverride??e.generatedName;n.builder.addType(r,{name:s,schema:o.schema});let a=kOr({type:s,fileContainingReference:t,declarationFile:r,context:n});if(e.description==null&&e.default==null&&e.title==null)return a;let c={type:a};return e.description!=null&&(c.docs=e.description),e.default!=null&&(c.default=e.default.value),e.availability!=null&&(c.availability=C0(e.availability)),c}function Zkf({schema:e,fileContainingReference:t,declarationFile:r,context:n,namespace:i,declarationDepth:o,variant:s}){let a=Gje({schema:e,declarationFile:r,context:n,namespace:i,declarationDepth:o,variant:s}),c=e.nameOverride??e.generatedName;n.builder.addType(r,{name:c,schema:a.schema});let u=kOr({type:c,fileContainingReference:t,declarationFile:r,context:n});return e.description==null&&e.title==null?u:{type:u,...e.description!=null?{docs:e.description}:{},...e.availability!=null?{availability:C0(e.availability)}:{}}}function $kf({schema:e,fileContainingReference:t,declarationFile:r,context:n,namespace:i,declarationDepth:o,variant:s}){let a=xso({schema:e,declarationFile:r,context:n,namespace:i,declarationDepth:o,variant:s}),c=e.nameOverride??e.generatedName;n.builder.addType(r,{name:c,schema:a.schema});let u=kOr({type:c,fileContainingReference:t,declarationFile:r,context:n});return e.description==null&&e.title==null?u:{...e.title!=null?{"display-name":e.title}:{},type:u,...e.description!=null?{docs:e.description}:{},...e.availability!=null?{availability:C0(e.availability)}:{}}}function kOr({type:e,fileContainingReference:t,declarationFile:r,context:n}){if(r===t)return e;let i=n.builder.addImport({file:t,fileToImport:r});return i!=null?`${i}.${e}`:e}function eFf(e){return ha._visit(e,{primitive:t=>t.nameOverride??t.generatedName,object:t=>t.nameOverride??t.generatedName,array:t=>t.nameOverride??t.generatedName,map:t=>t.nameOverride??t.generatedName,enum:t=>t.nameOverride??t.generatedName,reference:t=>t.nameOverride??t.generatedName,literal:t=>t.nameOverride??t.generatedName,oneOf:t=>t.nameOverride??t.generatedName,optional:t=>t.nameOverride??t.generatedName,nullable:t=>t.nameOverride??t.generatedName,unknown:t=>t.nameOverride??t.generatedName,_other:()=>{}})}function tFf(e){return ha._visit(e,{primitive:t=>t.title,object:t=>t.title,array:t=>t.title,map:t=>t.title,enum:t=>t.title,reference:t=>t.title,literal:t=>t.title,oneOf:t=>t.title,optional:t=>t.title,nullable:t=>t.title,unknown:t=>{},_other:()=>{}})}var Mkf,Lkf,Vkf,Ukf,QX=h(()=>{"use strict";Bt();Ic();X2t();Vje();fso();mso();J2t();BL();Wuc();POr();Mkf=-2147483648,Lkf=2147483647,Vkf=-17976931348623157e292,Ukf=17976931348623157e292});function hle(e){switch(e.type){case"openapi":return{openapi:e.file};case"protobuf":return{proto:e.file};default:Ee(e)}}var FOr=h(()=>{"use strict";Bt()});function Yuc({schema:e,context:t,declarationFile:r,namespace:n,declarationDepth:i,variant:o}){let s;switch(e.type){case"primitive":s=iFf(e);break;case"array":s=rFf({schema:e,context:t,declarationFile:r,namespace:n,declarationDepth:i});break;case"map":s=nFf({schema:e,context:t,declarationFile:r,namespace:n,declarationDepth:i});break;case"reference":s=oFf({schema:e,context:t,declarationFile:r,namespace:n,variant:o});break;case"unknown":s=aFf(e.nameOverride,e.generatedName,e.description);break;case"optional":s=Zuc({schema:e,context:t,declarationFile:r,namespace:n,declarationDepth:i});break;case"nullable":s=sFf({schema:e,context:t,declarationFile:r,namespace:n,declarationDepth:i});break;case"enum":s=Y2t(e,i);break;case"literal":s=cFf(e,e.nameOverride,e.generatedName);break;case"object":s=Gje({schema:e,context:t,declarationFile:r,namespace:n,declarationDepth:i,variant:o});break;case"oneOf":s=xso({schema:e.value,context:t,declarationFile:r,namespace:n,declarationDepth:i,variant:o});break;default:Ee(e)}return s}function Gje({schema:e,context:t,declarationFile:r,namespace:n,declarationDepth:i,skipReadonlyProperties:o,variant:s}){let a=o===!0||s==="write",c=!1,u={},l=new Set;for(let A of e.properties){if(A.readonly&&(c=!0),a&&A.readonly)continue;if(Object.keys(A.conflict).length>0){if(Object.entries(A.conflict).every(([P,D])=>!D.differentSchema))continue;Object.entries(A.conflict).forEach(([P])=>{Cso({property:A.key,schemaId:P,context:t,namespace:n}).forEach(O=>{l.add(O)})})}let y=mc({schema:A.schema,context:t,fileContainingReference:r,namespace:n,declarationDepth:i+1,variant:s}),E=A.audiences,x=A.nameOverride,I=C0(A.availability),C=fFf(A);u[A.key]=pFf({typeReference:y,audiences:E,name:x,availability:I,propertyAccess:C})}let p=new Set;for(let A of e.allOfPropertyConflicts)A.allOfSchemaIds.forEach(y=>l.add(y)),A.conflictingTypeSignatures&&p.add(A.propertyKey);let d=[];for(let A of e.allOf){let y=NOr({schema:A.schema,context:t,namespace:n});if(y==null||l.has(A.schema)||l.has(y))continue;let E=mc({schema:ha.reference(A),context:t,fileContainingReference:r,namespace:n,declarationDepth:i+1,variant:s});d.push(wXe(Zp(E)))}for(let A of l){let y=qje(t,A,n);for(let E of y.properties)u[E.key]==null&&(p.has(E.key)&&(u[E.key]="unknown"),u[E.key]=mc({schema:E.schema,context:t,fileContainingReference:r,namespace:n,declarationDepth:i+1,variant:s}));for(let E of y.allOf){if(l.has(E.schema))continue;let x=mc({schema:ha.reference(E),context:t,fileContainingReference:r,namespace:n,declarationDepth:i+1,variant:s});d.push(wXe(Zp(x)))}}let f={docs:e.description??void 0,properties:Object.fromEntries(Object.entries(u).map(([A,y])=>lFf(A)?[A,typeof y=="string"?{type:y,name:`_${A}`}:{...y,name:`_${A}`}]:[A,y]))};d.length>0&&(f.extends=d),e.additionalProperties&&(f["extra-properties"]=!0),e.availability!=null&&(f.availability=C0(e.availability)),e.source!=null&&(f.source=hle(e.source)),e.encoding!=null&&(f.encoding=K2t(e.encoding)),f.inline=wso(e,i);let m=e.nameOverride??e.generatedName;return{name:s==="read"&&c&&t.options.respectReadonlySchemas&&t.hasReadVariant(m)?`${m}Read`:m,schema:f}}function Cso({property:e,schemaId:t,context:r,namespace:n}){let i=r.getSchema(t,n);if(i==null)return[];if(i.type==="reference")return Cso({property:e,schemaId:i.schema,context:r,namespace:n});if(i.type==="object"){let{properties:o,allOf:s}=qje(r,t,n),a=o.some(u=>u.key===e),c=[...s.flatMap(u=>Cso({property:e,context:r,schemaId:u.schema,namespace:n}))];if(a||c.length>0)return[t,...c]}return[]}function Xuc(e,t,r){return t.type==="object"?{properties:t.properties,allOf:t.allOf}:t.type==="reference"?qje(e,t.schema,r):t.type==="nullable"?Xuc(e,t.value,r):{properties:[],allOf:[]}}function qje(e,t,r){let n=e.getSchema(t,r);return n==null?{properties:[],allOf:[]}:Xuc(e,n,r)}function rFf({schema:e,context:t,declarationFile:r,namespace:n,declarationDepth:i}){return{name:e.nameOverride??e.generatedName,schema:yso({schema:e,fileContainingReference:r,declarationFile:r,context:t,namespace:n,declarationDepth:i})}}function nFf({schema:e,context:t,declarationFile:r,namespace:n,declarationDepth:i}){return{name:e.nameOverride??e.generatedName,schema:bso({schema:e,fileContainingReference:r,declarationFile:r,context:t,namespace:n,declarationDepth:i})}}function iFf(e){let t=DOr(e);if(typeof t=="string")return{name:e.nameOverride??e.generatedName,schema:t};let{default:r,...n}=t;return{name:e.nameOverride??e.generatedName,schema:{...n}}}function Juc(e){return e.camel==null&&e.pascal==null&&e.screamingSnake==null&&e.snake==null}function Y2t(e,t){let r={enum:e.values.map(o=>{let s=o.nameOverride??o.generatedName,a=o.value;if(s===a&&o.description==null&&(o.casing==null||Juc(o.casing)))return s;let c={value:o.value};if(s!==a&&(c.name=s),o.description!=null&&(c.docs=o.description),o.casing!=null&&!Juc(o.casing)){let u={},l=!1;o.casing.camel!=null&&(u.camel=o.casing.camel,l=!0),o.casing.screamingSnake!=null&&(u["screaming-snake"]=o.casing.screamingSnake,l=!0),o.casing.snake!=null&&(u.snake=o.casing.snake,l=!0),o.casing.pascal!=null&&(u.pascal=o.casing.pascal,l=!0),l&&(c.casing=u)}return c})};e.description!=null&&(r.docs=e.description),e.default!=null&&(r.default=e.default.value),r.inline=wso(e,t);let n=new Set,i={...r,enum:[],source:e.source!=null?hle(e.source):void 0};for(let o of r.enum){let s=typeof o=="string"?o:o.name??o.value;n.has(s.toLowerCase())||(i.enum.push(o),n.add(s.toLowerCase()))}return{name:e.nameOverride??e.generatedName,schema:i}}function oFf({schema:e,context:t,declarationFile:r,namespace:n,variant:i}){return{name:e.nameOverride??e.generatedName,schema:Aso({schema:e,context:t,fileContainingReference:r,namespace:n,variant:i})}}function sFf({schema:e,context:t,declarationFile:r,namespace:n,declarationDepth:i}){return t.options.respectNullableSchemas?{name:e.nameOverride??e.generatedName,schema:Eso({schema:e,context:t,fileContainingReference:r,declarationFile:r,namespace:n,declarationDepth:i})}:Zuc({schema:e,context:t,declarationFile:r,namespace:n,declarationDepth:i})}function Zuc({schema:e,context:t,declarationFile:r,namespace:n,declarationDepth:i}){return{name:e.nameOverride??e.generatedName,schema:ROr({schema:e,context:t,fileContainingReference:r,declarationFile:r,namespace:n,declarationDepth:i})}}function aFf(e,t,r){return r!=null?{name:e??t,schema:{type:"unknown",docs:r}}:{name:e??t,schema:Iso()}}function cFf(e,t,r){return{name:t??r,schema:vso(e)}}function xso({schema:e,context:t,declarationFile:r,namespace:n,declarationDepth:i,variant:o}){let s=e.encoding!=null?K2t(e.encoding):void 0;if(e.type==="discriminated"){let u={};for(let p of e.commonProperties)u[p.key]=mc({schema:p.schema,fileContainingReference:r,context:t,namespace:n,declarationDepth:i+1,variant:o});let l={};for(let[p,d]of Object.entries(e.schemas))l[p]=mc({schema:d,context:t,fileContainingReference:r,namespace:n,declarationDepth:i+1,variant:o});return{name:e.nameOverride??e.generatedName,schema:{discriminant:e.discriminantPropertyNameOverride!=null||e.discriminatorContext!=null?{...e.discriminantPropertyNameOverride!=null&&{name:e.discriminantPropertyNameOverride},value:e.discriminantProperty,...e.discriminatorContext!=null&&{context:e.discriminatorContext}}:e.discriminantProperty,"base-properties":u,docs:e.description??void 0,availability:e.availability!=null?C0(e.availability):void 0,union:l,"default-variant":e.defaultDiscriminantValue??void 0,encoding:s,source:e.source!=null?hle(e.source):void 0}}}let a=[];for(let u of e.schemas)a.push(mc({schema:u,fileContainingReference:r,context:t,namespace:n,declarationDepth:i+1,variant:o}));let c=e.commonProperties!=null&&e.commonProperties.length>0?Object.fromEntries(e.commonProperties.map(u=>[u.key,mc({schema:u.schema,fileContainingReference:r,context:t,namespace:n,declarationDepth:i+1,variant:o})])):void 0;return{name:e.nameOverride??e.generatedName,schema:{discriminated:!1,"base-properties":c,docs:e.description??void 0,union:a,encoding:s,source:e.source!=null?hle(e.source):void 0,inline:wso(e,i)}}}function lFf(e){return uFf.test(e)}function NOr({schema:e,context:t,namespace:r}){let n=t.getSchema(e,r);if(n!=null)return n.type==="reference"?NOr({context:t,schema:n.schema,namespace:r}):e}function pFf({typeReference:e,audiences:t,name:r,availability:n,propertyAccess:i}){return t.length===0&&r==null&&n==null&&i==null?e:{...typeof e=="string"?{type:e}:{...e},...t.length>0?{audiences:t}:{},...r!=null?{name:r}:{},...n!=null?{availability:n}:{},...i!=null?{access:i}:{}}}function wso(e,t){return e.inline===!0||t>0?!0:void 0}function fFf(e){if(!(e.readonly&&e.writeonly)){if(e.readonly)return Hm.ObjectPropertyAccess.ReadOnly;if(e.writeonly)return Hm.ObjectPropertyAccess.WriteOnly}}var uFf,X2t=h(()=>{"use strict";Bt();xo();Ic();QX();Vje();fso();FOr();BL();uFf=/^[0-9]/});function $uc(e){let t=e.replace(/^x-|^X-/,"");return ri(t)}var elc=h(()=>{"use strict";Hi()});function tlc(e){if(e.authOverrides!=null){for(let[r,n]of Object.entries(e.authOverrides["auth-schemes"]??{}))e.builder.addAuthScheme({name:r,schema:n});e.authOverrides.auth!=null&&e.builder.setAuth(e.authOverrides.auth);return}let t=!1;for(let[r,n]of Object.entries(e.ir.securitySchemes))if(n.type==="basic"){let i={scheme:"basic"};n.usernameVariableName!=null&&(i.username===void 0?i.username={name:n.usernameVariableName}:i.username.name=n.usernameVariableName),n.usernameEnvVar!=null&&(i.username===void 0?i.username={env:n.usernameEnvVar}:i.username.env=n.usernameEnvVar),n.usernamePlaceholder!=null&&(i.username===void 0?i.username={placeholder:n.usernamePlaceholder}:i.username.placeholder=n.usernamePlaceholder),n.passwordVariableName!=null&&(i.password===void 0?i.password={name:n.passwordVariableName}:i.password.name=n.passwordVariableName),n.passwordEnvVar!=null&&(i.password===void 0?i.password={env:n.passwordEnvVar}:i.password.env=n.passwordEnvVar),n.passwordPlaceholder!=null&&(i.password===void 0?i.password={placeholder:n.passwordPlaceholder}:i.password.placeholder=n.passwordPlaceholder),e.builder.addAuthScheme({name:r,schema:i}),t||(e.builder.setAuth(r),t=!0)}else if(n.type==="bearer"){let i={scheme:"bearer"};n.tokenVariableName!=null&&(i.token===void 0?i.token={name:n.tokenVariableName}:i.token.name=n.tokenVariableName),n.tokenEnvVar!=null&&(i.token===void 0?i.token={env:n.tokenEnvVar}:i.token.env=n.tokenEnvVar),n.tokenPlaceholder!=null&&(i.token===void 0?i.token={placeholder:n.tokenPlaceholder}:i.token.placeholder=n.tokenPlaceholder),e.builder.addAuthScheme({name:r,schema:i}),t||(e.builder.setAuth(r),t=!0)}else if(n.type==="header")if(t)e.builder.addGlobalHeader({name:n.headerName,schema:{type:"string",name:n.headerVariableName??$uc(n.headerName),env:n.headerEnvVar}});else{let i={header:n.headerName,name:n.headerVariableName??"apiKey",type:"string"};n.headerEnvVar!=null&&(i.env=n.headerEnvVar),n.prefix!=null&&(i.prefix=n.prefix),n.headerPlaceholder!=null&&(i.placeholder=n.headerPlaceholder),e.builder.addAuthScheme({name:r,schema:i}),e.builder.setAuth(r),t=!0}else if(n.type==="oauth"){let i={scheme:"bearer"};e.builder.addAuthScheme({name:r,schema:i}),t||(e.builder.setAuth(r),t=!0),n.scopesEnum!=null&&n.scopesEnum.values.length>0&&e.builder.addType(Vs.of("__package__.yml"),{name:"OauthScope",schema:Y2t(n.scopesEnum,0).schema})}}var rlc=h(()=>{"use strict";fy();X2t();elc()});function zX({header:e,context:t,fileContainingReference:r,namespace:n}){let i=mc({schema:e.schema,context:t,fileContainingReference:r,namespace:n,declarationDepth:0}),o=Zp(i),s=Uje(i),a=e.name.replace(/^x-|^X-/,""),c=e.parameterNameOverride!=null?e.parameterNameOverride:ri(a);if(e.description==null&&e.name===c&&e.env==null&&e.availability==null&&e.clientDefault==null&&s==null)return o;let u={type:o};return c!==e.name&&(u.name=c),e.description!=null&&(u.docs=e.description),e.env!=null&&(u.env=e.env),e.availability!=null&&(u.availability=C0(e.availability)),e.clientDefault!=null&&(u["client-default"]=e.clientDefault),s!=null&&(u.default=s),u}var SXe=h(()=>{"use strict";Hi();QX();Vje();BL()});function jOr({pathParameter:e,context:t,fileContainingReference:r,namespace:n}){let i=mc({schema:e.schema,context:t,fileContainingReference:r,namespace:n,declarationDepth:0});if(e.variableReference==null&&e.description==null&&e.availability==null&&e.clientDefault==null)return Zp(i);let o=e.variableReference!=null?{variable:`$${e.variableReference}`}:{type:Zp(i)};return e.description!=null&&(o.docs=e.description),e.availability!=null&&(o.availability=C0(e.availability)),e.clientDefault!=null&&"type"in o&&(o["client-default"]=e.clientDefault),o}var Sso=h(()=>{"use strict";QX();Vje();BL()});function zOr({queryParameter:e,context:t,fileContainingReference:r,namespace:n}){let i=Tso({schema:e.schema,context:t,fileContainingReference:r,namespace:n});if(i==null)return;let o=Zp(i.value),s=Oso(e.schema,t,n)??Uje(i.value);o==="unknown"?o="string":o==="optional<unknown>"&&(o="optional<string>");let a={type:o};return e.clientDefault!=null&&(a["client-default"]=e.clientDefault),s!=null&&(a.default=s),i.allowMultiple&&(a["allow-multiple"]=!0),e.explode!=null&&(a.explode=e.explode),e.description!=null&&(a.docs=e.description),e.parameterNameOverride!=null&&(a.name=e.parameterNameOverride),e.availability!=null&&(a.availability=C0(e.availability)),dFf(i.value)&&i.value.validation!==void 0&&(a.validation=i.value.validation),a.default==null&&a["client-default"]==null&&a["allow-multiple"]==null&&a.docs==null&&a.name==null&&a.availability==null&&a.validation==null&&a.explode==null?o:a}function Tso({schema:e,context:t,fileContainingReference:r,namespace:n}){if(e.type==="reference"){let i=t.getSchema(e.schema,n);if(i==null)return;if(i.type==="array")return{value:mc({schema:ha.optional({nameOverride:e.nameOverride,generatedName:e.generatedName,title:e.title,value:i.value,description:e.description??i.description,availability:e.availability,namespace:void 0,groupName:void 0,inline:void 0}),context:t,declarationFile:Vs.of(Uf),fileContainingReference:r,namespace:n,declarationDepth:0}),allowMultiple:!0};if(i.type==="oneOf"&&i.value.type==="undiscriminated"){let o=[],s=!1;for(let[a,c]of Object.entries(i.value.schemas))c.type==="primitive"&&c.schema.type==="string"&&(s=!0),c.type==="literal"&&c.value.type==="string"&&(IXe.test(c.value.value)?o.push(c.value.value):o.push({value:c.value.value,name:vXe(c.value.value)}));if(o.length>0)return t.builder.addType(r,{name:e.generatedName,schema:{enum:o}}),s&&t.options.respectForwardCompatibleEnums?(t.builder.addType(r,{name:`${e.generatedName}OrString`,schema:{discriminated:!1,union:[{type:"string"},{type:e.generatedName}]}}),{value:`${e.generatedName}OrString`,allowMultiple:!1}):{value:e.generatedName,allowMultiple:!1};if(i.value.schemas.length===2){let[a,c]=i.value.schemas;if(a!=null&&c!=null&&QOr({array:a,primitive:c}))return{value:mc({schema:ha.optional({nameOverride:e.nameOverride,generatedName:e.generatedName,title:e.title,value:c,description:e.description,availability:e.availability,namespace:void 0,groupName:void 0,inline:void 0}),context:t,fileContainingReference:r,namespace:n,declarationDepth:0}),allowMultiple:!0};if(a!=null&&c!=null&&QOr({array:c,primitive:a}))return{value:mc({schema:ha.optional({nameOverride:e.nameOverride,generatedName:e.generatedName,title:e.title,value:a,description:e.description,availability:e.availability,namespace:void 0,groupName:void 0,inline:void 0}),context:t,fileContainingReference:r,namespace:n,declarationDepth:0}),allowMultiple:!0}}for(let[a,c]of Object.entries(i.value.schemas))return Tso({schema:c,context:t,fileContainingReference:r,namespace:n})}else if(t.options.objectQueryParameters)return{value:mc({schema:e,context:t,fileContainingReference:r,declarationFile:Vs.of(Uf),namespace:n,declarationDepth:0}),allowMultiple:!1}}if(e.type==="optional"||e.type==="nullable"){let i=e.type==="optional"?ha.optional:ha.nullable;if(e.value.type==="reference"){let o=t.getSchema(e.value.schema,n);if(o==null)return;if(o.type==="array")return{value:mc({schema:i({nameOverride:e.nameOverride,generatedName:e.generatedName,title:e.title,value:o.value,description:e.description??o.description,availability:e.availability,namespace:void 0,groupName:void 0,inline:e.inline}),context:t,fileContainingReference:r,declarationFile:Vs.of(Uf),namespace:n,declarationDepth:0}),allowMultiple:!0};if(t.options.objectQueryParameters)return{value:mc({schema:e,context:t,fileContainingReference:r,declarationFile:Vs.of(Uf),namespace:n,declarationDepth:0}),allowMultiple:!1}}if(e.value.type==="array")return{value:mc({schema:i({nameOverride:e.nameOverride,generatedName:e.generatedName,title:e.title,value:e.value.value,description:e.description,availability:e.availability,namespace:void 0,groupName:void 0,inline:e.inline}),context:t,fileContainingReference:r,namespace:n,declarationDepth:0}),allowMultiple:!0};if(e.value.type==="oneOf"&&e.value.value.type==="undiscriminated"){let o=[],s=!1;for(let[a,c]of Object.entries(e.value.value.schemas))c.type==="primitive"&&c.schema.type==="string"&&(s=!0),c.type==="literal"&&c.value.type==="string"&&(IXe.test(c.value.value)?o.push(c.value.value):o.push({value:c.value.value,name:vXe(c.value.value)}));if(o.length>0)return t.builder.addType(r,{name:e.generatedName,schema:{enum:o}}),s&&t.options.respectForwardCompatibleEnums?(t.builder.addType(r,{name:`${e.generatedName}OrString`,schema:{discriminated:!1,union:[{type:"string"},{type:`optional<${e.value.value.generatedName}>`}]}}),{value:`optional<${e.value.value.generatedName}OrString>`,allowMultiple:!1}):{value:`optional<${e.value.value.generatedName}>`,allowMultiple:!1};if(e.value.value.schemas.length===2){let[a,c]=e.value.value.schemas;if(a!=null&&c!=null&&QOr({array:a,primitive:c}))return{value:mc({schema:i({nameOverride:e.nameOverride,generatedName:e.generatedName,title:e.title,value:c,description:e.description,availability:e.availability,namespace:void 0,groupName:void 0,inline:e.inline}),context:t,fileContainingReference:r,namespace:n,declarationDepth:0}),allowMultiple:!0};if(a!=null&&c!=null&&QOr({array:c,primitive:a}))return{value:mc({schema:i({nameOverride:e.nameOverride,generatedName:e.generatedName,title:e.title,value:a,description:e.description,availability:e.availability,namespace:void 0,groupName:void 0,inline:e.inline}),context:t,fileContainingReference:r,namespace:n,declarationDepth:0}),allowMultiple:!0}}if(t.options.objectQueryParameters)return{value:mc({schema:e,context:t,fileContainingReference:r,declarationFile:Vs.of(Uf),namespace:n,declarationDepth:0}),allowMultiple:!1};for(let[a,c]of Object.entries(e.value.value.schemas))return Tso({schema:i({nameOverride:e.nameOverride,generatedName:e.generatedName,title:e.title,value:c,description:void 0,availability:e.availability,namespace:void 0,groupName:void 0,inline:e.inline}),context:t,fileContainingReference:r,namespace:n})}else if(e.value.type==="object")return t.options.objectQueryParameters?{value:mc({schema:e,context:t,fileContainingReference:r,declarationFile:Vs.of(Uf),namespace:n,declarationDepth:0}),allowMultiple:!1}:void 0;return{value:mc({schema:e,context:t,fileContainingReference:r,namespace:n,declarationDepth:0}),allowMultiple:!1}}return e.type==="array"?{value:mc({schema:ha.optional({nameOverride:e.nameOverride,generatedName:e.generatedName,title:e.title,value:e.value,description:e.description,availability:e.availability,namespace:void 0,groupName:void 0,inline:e.inline}),context:t,fileContainingReference:r,namespace:n,declarationDepth:0}),allowMultiple:!0}:{value:mc({schema:e,context:t,fileContainingReference:r,namespace:n,declarationDepth:0}),allowMultiple:!1}}function Oso(e,t,r){if(e.type==="array")return e.default??void 0;if(e.type==="optional"||e.type==="nullable")return Oso(e.value,t,r);if(e.type==="reference"){let n=t.getSchema(e.schema,r);if(n!=null)return Oso(n,t,r)}}function QOr({array:e,primitive:t}){return e?.type==="array"&&e.value.type==="primitive"&&t?.type==="primitive"&&e.value.schema.type===t.schema.type}function dFf(e){return typeof e=="object"&&e!==null&&"type"in e}var Bso=h(()=>{"use strict";Ea();Ic();fy();QX();Vje();BL()});function nlc({websocketExample:e,context:t}){let r={messages:[]};e.name!=null&&(r.name=e.name),e.description!=null&&(r.docs=e.description),e.queryParameters!=null&&e.queryParameters.length>0&&(r["query-parameters"]=mFf(e.queryParameters)),e.headers!=null&&e.headers.length>0&&(r.headers=hFf({context:t,namedFullExamples:e.headers}));for(let n of e.messages){let i=u0e(n.payload);i!=null&&r.messages.push({type:n.messageType,body:i})}return r}function mFf(e){let t={};return e.forEach(r=>{let n=u0e(r.value);Array.isArray(n)?t[r.name]=n[0]:n!=null&&(t[r.name]=n)}),t}function hFf({context:e,namedFullExamples:t}){let r=e.builder.getGlobalHeaderNames(),n={};return t.forEach(i=>{let o=u0e(i.value);r.has(i.name)||o!=null&&(n[i.name]=o)}),n}function u0e(e){switch(e.type){case"primitive":return ilc(e.value);case"object":return olc(e.properties);case"array":return gFf(e.value);case"map":return AFf(e.value);case"oneOf":return yFf(e.value);case"enum":return e.value;case"literal":return bFf(e.value);case"unknown":return u0e(e.value);case"null":return null;default:Ee(e)}}function ilc(e){switch(e.type){case"int":return e.value;case"int64":return e.value;case"uint":return e.value;case"uint64":return e.value;case"float":return e.value;case"double":return e.value;case"string":return e.value.startsWith("$")?`${e.value.slice(1)}`:e.value;case"datetime":try{return new Date(e.value).toISOString().replace(/\.\d{3}Z$/,"Z")}catch{return"2024-01-15T09:30:00Z"}case"datetimeRfc2822":return e.value;case"date":return e.value;case"base64":case"boolean":return e.value;default:Ee(e)}}function olc(e){return Object.fromEntries(Object.entries(e).map(([t,r])=>[t,u0e(r)]))}function gFf(e){return e.map(t=>u0e(t))}function AFf(e){return Object.fromEntries(e.map(t=>[ilc(t.key),u0e(t.value)]))}function yFf(e){return e.type==="discriminated"?olc(e.value):u0e(e.value)}function bFf(e){switch(e.type){case"string":return e.value;case"boolean":return e.value;default:Ee(e)}}var slc=h(()=>{"use strict";Bt()});function Z2t(e){try{let r=new URL(e).pathname.split("/").filter(n=>n.length>0);if(r.length>0)return r[r.length-1]}catch{}}function $2t(e){try{return new URL(e).protocol.replace(":","")}catch{return}}function MOr(e,t,r=!1){let n=Z2t(t);return r&&n!=null?n:e!=null&&n!=null?`${e}_${n}`:n??e??"websocket"}var Pso=h(()=>{"use strict"});function gle(e){return e.find(t=>typeof t!="string"&&t.type==="namespace")?.name}function LOr(e,t){return t??(e?.groupName!=null?gle(e.groupName):void 0)}function alc({endpointNamespace:e,error:t}){return t.namespace??e}var Wje=h(()=>{"use strict"});function clc({channel:e,context:t,declarationFile:r}){let n=e.servers[0],i=t.ir.servers.length===0&&t.ir.websocketServers.length<=1,o=n!=null?t.getUrlId(n.url):void 0,s=n!=null&&!i?o??(t.options.groupEnvironmentsByHost?MOr(n.name,n.url,!0):n.name):void 0;t.logger.debug(`[buildChannel] Channel path="${e.path}", server name="${n?.name}", server url="${n?.url}", resolved urlId="${s}" (from collision map: ${t.getUrlId(n?.url??"")!=null})`);let a=e.path;for(let m of e.handshake.pathParameters)m.parameterNameOverride!=null&&(a=a.replace(`{${m.name}}`,`{${m.parameterNameOverride}}`));let c=t.authOverrides?.auth!=null,u={path:a,url:s,auth:c};e.audiences!=null&&e.audiences.length>0&&(u.audiences=e.audiences),e.summary!=null&&(u["display-name"]=e.summary),e.connectMethodName!=null&&(u["connect-method-name"]=e.connectMethodName),e.description!=null&&(u.docs=e.description);let l=gle(e.groupName),p={};if(e.handshake.pathParameters.length>0)for(let m of e.handshake.pathParameters){let g=m.parameterNameOverride??m.name;p[g]=jOr({pathParameter:m,context:t,fileContainingReference:r,namespace:l})}Object.keys(p).length>0&&(u["path-parameters"]=p);let d={};if(e.handshake.queryParameters.length>0)for(let m of e.handshake.queryParameters){let g=zOr({queryParameter:m,context:t,fileContainingReference:r,namespace:l});g!=null&&(d[m.name]=g)}Object.keys(d).length>0&&(u["query-parameters"]=d);let f={};if(e.handshake.headers.length>0)for(let m of e.handshake.headers){let g=zX({header:m,context:t,fileContainingReference:r,namespace:l});f[m.name]=g}Object.keys(f).length>0&&(u.headers=f),t.builder.addChannel(r,{channel:u});for(let m of e.messages){let g={origin:m.origin,body:mc({schema:m.body,context:t,fileContainingReference:r,namespace:l,declarationDepth:0})};m.displayName!=null&&(g["display-name"]=m.displayName),m.methodName!=null&&(g["method-name"]=m.methodName),t.builder.addChannelMessage(r,{messageId:m.name,message:g})}for(let m of e.examples){let g=nlc({context:t,websocketExample:m});t.builder.addChannelExample(r,{example:g})}}var ulc=h(()=>{"use strict";SXe();Sso();Bso();QX();slc();Pso();Wje()});function Dso(e){return typeof e=="object"&&e!==null&&"type"in e&&e.type==="grouped"}function llc(e){try{return new URL(e).hostname}catch{return}}function plc(e){return e??flc}function EFf(e,t){let r=new Map;for(let n of e){if(Dso(n)||!("url"in n)||!n.url)continue;let i=llc(n.url)??n.url;r.has(i)||r.set(i,{environmentName:plc(n.name),httpServers:[],websocketServers:[]}),r.get(i)?.httpServers.push({name:n.name,url:n.url,audiences:n.audiences})}for(let n of t){let i=llc(n.url)??n.url;r.has(i)||r.set(i,{environmentName:plc(n.name),httpServers:[],websocketServers:[]}),r.get(i)?.websocketServers.push(n)}return r}function l0e(e){return Object.entries(e).reduce((t,[r,n])=>(aD(n)?Object.entries(n.urls).forEach(([i,o])=>{t[i]=o}):t[r]=typeof n=="string"?n:n.url,t),{})}function IFf(e,t,r){for(let[n,i]of Object.entries(t))if(i!=null)if(e[n]!=null&&e[n]!==i){let o=$2t(i),s=o!=null?`${n}_${o}`:`${n}_ws`;e[s]=i,r.setUrlId(i,s)}else e[n]=i,r.setUrlId(i,n)}function dlc(e){if(e.environmentOverrides!=null){for(let[I,C]of Object.entries(e.environmentOverrides.environments??{}))e.builder.addEnvironment({name:I,schema:C});e.environmentOverrides["default-environment"]!=null&&e.builder.setDefaultEnvironment(e.environmentOverrides["default-environment"]),e.environmentOverrides["default-url"]!=null&&e.builder.setDefaultUrl(e.environmentOverrides["default-url"]);return}let t={},r=[],n=e.ir.servers.some(I=>Dso(I)),i=e.ir.servers;for(let I of i)if(Dso(I)){let C={urls:{}},T={},P={},D={};for(let[z,J]of Object.entries(I.urls))C.urls[z]=J.defaultUrl??J.url,J.urlTemplate&&(T[z]=J.urlTemplate),J.defaultUrl&&(P[z]=J.defaultUrl),J.variables&&J.variables.length>0&&(D[z]=J.variables);(Object.keys(T).length>0||Object.keys(D).length>0)&&(C["url-templates"]=T,C["default-urls"]=P,C.variables=D),I.name&&(t[I.name]=C)}else if("url"in I&&I.url){let T=I.urlTemplate!=null&&I.variables!=null&&I.variables.length>0?{url:I.url,audiences:I.audiences,"default-url":I.defaultUrl,"url-template":I.urlTemplate,variables:I.variables?.map(P=>({id:P.id,default:P.default,values:P.values}))}:I.audiences?{url:I.url,audiences:I.audiences}:I.url;if(I.name==null){r.push(T);continue}t[I.name]=T}let o={},s={},a=[],c={},u={},l={};for(let I of e.ir.endpoints)for(let C of I.servers){if(C.url==null&&C.name!=null){o[C.name]||(o[C.name]=[]);continue}if(C.url==null)continue;let T=C,P="defaultUrl"in C&&typeof T.defaultUrl=="string"?T.defaultUrl:void 0,D="urlTemplate"in C&&typeof T.urlTemplate=="string"?T.urlTemplate:void 0,O="variables"in C&&Array.isArray(T.variables)?T.variables:void 0,z=P??C.url,J=C.audiences?{url:z,audiences:C.audiences}:z;if(C.name==null){a.push(J);continue}o[C.name]||(o[C.name]=[]),o[C.name]?.push({url:z,audiences:C.audiences}),s[C.name]=J,D&&C.name&&(c[C.name]=D),P&&C.name&&(u[C.name]=P),O&&O.length>0&&C.name&&(l[C.name]=O)}let p={},d=[];for(let I of e.ir.websocketServers){e.logger.debug(`[buildEnvironments] Processing WebSocket server: name="${I.name}", url="${I.url}"`);let C=I.audiences?{url:I.url,audiences:I.audiences}:I.url;if(I.name==null){d.push(C);continue}p[I.name]=C}let f=Object.keys(t).length,m=f>0,g=Object.keys(s).length>0,A=Object.keys(o).some(I=>o[I]?.length===0),y=Object.keys(p).length>0;if(e.options.groupEnvironmentsByHost&&y&&(m||e.ir.servers.length>0)){let I=Object.entries(p).map(([T,P])=>({name:T,url:typeof P=="string"?P:P.url,audiences:typeof P=="string"?void 0:P.audiences})),C=EFf(i,I);if(C.size>0){let T=!0;for(let[P,D]of C.entries()){let O={},z=[...D.httpServers.map(Y=>({...Y,isHttp:!0})),...D.websocketServers.map(Y=>({...Y,isHttp:!1}))],J=new Map;for(let Y of z){let ee=Z2t(Y.url),oe=$2t(Y.url);ee&&oe&&(J.has(ee)||J.set(ee,new Set),J.get(ee)?.add(oe))}if(D.httpServers.length>0){let Y=D.httpServers[0];Y!=null&&(O[TE]=Y.url,e.setUrlId(Y.url,TE));for(let ee=1;ee<D.httpServers.length;ee++){let oe=D.httpServers[ee];if(oe!=null){let le=Z2t(oe.url),ne=$2t(oe.url),pe=le?J.get(le):void 0,Be=pe&&pe.size>1,ae=Be&&ne!=="https"?`${le}_${ne}`:le||`Http${ee+1}`;e.logger.debug(`[buildEnvironments] HTTP server: url="${oe.url}", pathSegment="${le}", protocol="${ne}", hasCollision=${Be}, urlId="${ae}"`),O[ae]=oe.url,e.setUrlId(oe.url,ae)}}}for(let Y of D.websocketServers){let ee=Z2t(Y.url),oe=$2t(Y.url),le=ee?J.get(ee):void 0,ne=le&&le.size>1,pe=ne?`${ee}_${oe}`:MOr(Y.name,Y.url,!0);e.logger.debug(`[buildEnvironments] WebSocket server: name="${Y.name}", url="${Y.url}", pathSegment="${ee}", protocol="${oe}", hasCollision=${ne}, urlId="${pe}"`),O[pe]=Y.url,e.setUrlId(Y.url,pe)}if(Object.keys(O).length>1)e.builder.addEnvironment({name:D.environmentName,schema:{urls:O}});else if(Object.keys(O).length===1){let Y=Object.values(O)[0];Y!=null&&e.builder.addEnvironment({name:D.environmentName,schema:Y})}T&&(e.options.inferDefaultEnvironment!==!1&&e.builder.setDefaultEnvironment(D.environmentName),Object.keys(O).length>1&&e.builder.setDefaultUrl(TE),T=!1)}return}}if(!m&&!g&&y&&e.ir.servers.length===0){for(let[I,C]of Object.entries(p))e.builder.addEnvironment({name:I,schema:C});e.options.inferDefaultEnvironment!==!1&&e.builder.setDefaultEnvironment(Object.keys(p)[0]),e.builder.setDefaultUrl(TE);return}if(a.length>0&&e.logger.debug(`Skipping endpoint level servers ${a.map(I=>typeof I=="string"?I:I.url).join(", ")} because x-fern-server-name was not provided.`),!m){let I=e.ir.servers[0],C=I?.url,T=I?.audiences,P=I?.defaultUrl,D=I?.urlTemplate,O=I?.variables;if(C!=null){let J=D!=null&&O!=null&&O.length>0?{url:C,audiences:T,"default-url":P,"url-template":D,variables:O?.map(Y=>({id:Y.id,default:Y.default,values:Y.values}))}:T?{url:C,audiences:T}:C;t[flc]=J}}let E=Object.values(t).map(I=>typeof I=="string"?I:aD(I)?Object.values(I.urls)[0]:I.url),x=r.filter(I=>{let C=typeof I=="string"?I:I.url;return!E.includes(C)});if(x.length>0&&e.logger.debug(`Skipping top level servers ${x.map(I=>typeof I=="string"?I:I.url).join(", ")} because x-fern-server-name was not provided.`),n){let I=!0;for(let[C,T]of Object.entries(t))if(e.builder.addEnvironment({name:C,schema:T}),I){if(e.options.inferDefaultEnvironment!==!1&&e.builder.setDefaultEnvironment(C),aD(T)){let P=Object.keys(T.urls)[0];P&&e.builder.setDefaultUrl(P)}I=!1}return}if(!g&&!A){let I=!0;for(let[C,T]of Object.entries(t))if(I){if(y){let P=typeof T=="string"?T:aD(T)?Object.values(T.urls)[0]:T["default-url"]??T.url;P!=null&&e.setUrlId(P,TE),e.builder.addEnvironment({name:C,schema:{urls:{[TE]:P??"",...l0e(p)}}})}else e.builder.addEnvironment({name:C,schema:T});e.options.inferDefaultEnvironment!==!1&&e.builder.setDefaultEnvironment(C),I=!1}else if(y){let P=typeof T=="string"?T:aD(T)?Object.values(T.urls)[0]:T["default-url"]??T.url;P!=null&&e.setUrlId(P,TE),e.builder.addEnvironment({name:C,schema:{urls:{[TE]:P??"",...l0e(p)}}})}else e.builder.addEnvironment({name:C,schema:T});y&&e.builder.setDefaultUrl(TE)}else if(f===1){let I=Object.keys(t)[0],C=Object.values(t)[0],T=typeof C=="string"?C:aD(C)?Object.values(C.urls)[0]:C["default-url"]??C.url,P={},D={},O={};typeof C!="string"&&!aD(C)&&(C["url-template"]&&(P[TE]=C["url-template"]),C["default-url"]&&(D[TE]=C["default-url"]),C.variables&&C.variables.length>0&&(O[TE]=C.variables)),Object.assign(P,c),Object.assign(D,u),Object.assign(O,l);let z=Object.keys(P).length>0||Object.keys(O).length>0;T!=null&&e.setUrlId(T,TE);let J={urls:{[TE]:T??"",...l0e(s),...l0e(p)},...z?{"url-templates":P,"default-urls":D,variables:O}:{}};e.builder.addEnvironment({name:I,schema:J}),e.options.inferDefaultEnvironment!==!1&&e.builder.setDefaultEnvironment(I),e.builder.setDefaultUrl(TE)}else{let I=new Map;for(let D of e.ir.endpoints)for(let O of D.servers)if(O.url!=null&&O.name!=null){I.has(O.name)||I.set(O.name,new Map);let z=O.url.match(/[-]([a-z0-9]+)\./i)?.[1]?.toLowerCase()||"production",J=I.get(O.name);J&&J.set(z,O.url)}let C=new Set(I.keys()),T=new Set(Object.keys(t)),P=C.size>0&&[...C].every(D=>T.has(D));if(e.options.multiServerStrategy==="urls-per-environment"&&I.size>0&&P){let D=Object.entries(t),O=D[0];if(O){let[z,J]=O,Y=typeof J=="string"?J:aD(J)?Object.values(J.urls)[0]:J["default-url"]??J.url,ee={};Y!=null&&(ee[TE]=Y,e.setUrlId(Y,TE));for(let oe=1;oe<D.length;oe++){let le=D[oe];if(le==null)continue;let[ne,pe]=le,Be=typeof pe=="string"?pe:aD(pe)?Object.values(pe.urls)[0]:pe["default-url"]??pe.url;Be!=null&&(ee[ne]=Be,e.setUrlId(Be,ne))}y&&IFf(ee,l0e(p),e),e.builder.addEnvironment({name:z,schema:{urls:ee}}),e.options.inferDefaultEnvironment!==!1&&e.builder.setDefaultEnvironment(z),e.builder.setDefaultUrl(TE)}}else if(I.size>0){let D=!0;for(let[O,z]of Object.entries(t)){let J=typeof z=="string"?z:aD(z)?Object.values(z.urls)[0]:z["default-url"]??z.url;if(!J)continue;e.setUrlId(J,TE);let Y=J.match(/[-]([a-z0-9]+)\./i)?.[1]?.toLowerCase()||"production",ee={[TE]:J};for(let[oe,le]of I.entries()){let ne=le.get(Y)||le.get("production")||le.values().next().value;ne&&(ee[oe]=ne)}y&&Object.assign(ee,l0e(p)),Object.keys(ee).length>1?e.builder.addEnvironment({name:O,schema:{urls:ee}}):e.builder.addEnvironment({name:O,schema:J}),D&&(e.options.inferDefaultEnvironment!==!1&&e.builder.setDefaultEnvironment(O),D=!1)}I.size>0&&e.builder.setDefaultUrl(TE)}else{let D=!0;for(let[O,z]of Object.entries(t)){if(y||Object.keys(s).length>0){let J=typeof z=="string"?z:aD(z)?Object.values(z.urls)[0]:z["default-url"]??z.url;J!=null&&e.setUrlId(J,TE),e.builder.addEnvironment({name:O,schema:{urls:{[TE]:J??"",...l0e(s),...l0e(p)}}})}else e.builder.addEnvironment({name:O,schema:z});D&&(e.options.inferDefaultEnvironment!==!1&&e.builder.setDefaultEnvironment(O),D=!1)}}}}var TE,flc,mlc=h(()=>{"use strict";xo();Pso();TE="Base",flc="Default"});function hlc(e){if(e.globalHeaderOverrides!=null){for(let[r,n]of Object.entries(e.globalHeaderOverrides.headers??{}))e.builder.addGlobalHeader({name:r,schema:n});return}let t=Object.fromEntries((e.ir.globalHeaders??[]).map(r=>[r.header,r]));for(let[r,n]of Object.entries(t)){let o=n.optional===!0?"optional<string>":"string",s=o;if(n.name==null&&n.env==null&&n.clientDefault==null&&typeof n.schema=="string")s=n.schema;else if(n!=null){let a=n.schema?mle(n.schema):void 0,c=a!=null?gle(a):void 0,u=Vs.of("api.yml");s={name:n.name,env:n.env,type:n.schema!=null?Zp(mc({schema:n.schema,context:e,fileContainingReference:c?BI(Vs.of(ri(c)),u):u,namespace:c,declarationDepth:0}))??o:o},(typeof n.clientDefault=="string"||typeof n.clientDefault=="boolean")&&(s["client-default"]=n.clientDefault)}e.builder.addGlobalHeader({name:r,schema:s})}if(e.options.detectGlobalHeaders){let r={};for(let i of e.ir.endpoints)for(let o of i.headers){if(xFf.has(o.name.toLowerCase()))continue;let s=r[o.name];if(s==null){let a=t[o.name],c=zX({header:{...o,schema:a?.schema??o.schema,name:a?.name??o.name},fileContainingReference:Vs.of(kI),context:e,namespace:void 0});s=new Rso(c),r[o.name]=s}s.increment()}let n=e.ir.endpoints.length*vFf;for(let[i,o]of Object.entries(r)){let s=t[i],a=o.count===e.ir.endpoints.length,c=o.count>=n;s==null&&(a?e.builder.addGlobalHeader({name:i,schema:o.schema}):c&&e.builder.addGlobalHeader({name:i,schema:_je(o.schema)}))}}}var Rso,vFf,xFf,glc=h(()=>{"use strict";Ea();fy();Hi();SXe();QX();J2t();Wje();BL();POr();Rso=class{schema;count=0;constructor(t){this.schema=t}increment(){this.count+=1}},vFf=.75,xFf=new Set(["authorization"])});function Alc(e){let t=e.ir.globalParameters;if(!(t==null||t.length===0))for(let r of t){let n=CFf(r);e.builder.addGlobalParameter({name:r.name,schema:n})}}function CFf(e){let t={};return e.in!=null&&(t.in=e.in),e.target!=null&&(t.target=e.target),e.type!=null&&(t.type=e.type),e.env!=null&&(t.env=e.env),e.default!=null&&(t.default=e.default),e.optional!=null&&(t.optional=e.optional),e.apply!=null&&(t.apply=e.apply),e.parameterName!=null&&(t["parameter-name"]=e.parameterName),e.docs!=null&&(t.docs=e.docs),t}var ylc=h(()=>{"use strict"});function blc(e){for(let t of e.ir.idempotencyHeaders??[]){let r=t.schema?mle(t.schema):void 0,n=r!=null?gle(r):void 0,i=zX({header:{...t,schema:t.schema??ha.primitive({description:void 0,availability:void 0,generatedName:"",title:void 0,namespace:void 0,groupName:void 0,nameOverride:void 0,schema:Wu.string({default:void 0,pattern:void 0,format:void 0,minLength:void 0,maxLength:void 0})}),name:t.name??t.header,parameterNameOverride:void 0,description:void 0,availability:void 0,source:void 0,clientDefault:void 0},fileContainingReference:Vs.of(kI),context:e,namespace:n});e.builder.addIdempotencyHeader({name:t.header,schema:_je(i)})}}var Elc=h(()=>{"use strict";Ea();Ic();fy();SXe();J2t();Wje();POr()});function dD(e){switch(e.type){case"primitive":return vlc(e.value);case"object":return xlc(e.properties);case"array":return Clc(e.value);case"map":return SFf(e.value);case"oneOf":return TFf(e.value);case"enum":return typeof e.value=="string"&&e.value.startsWith("$")?`\\${e.value}`:e.value;case"literal":return OFf(e.value);case"unknown":return dD(e.value);case"null":return null;default:Ee(e)}}function Ilc(e){switch(e.type){case"withStreaming":return e.sse?{stream:wFf(e.events)}:{stream:Clc(e.events)};case"withoutStreaming":return{body:dD(e.value)};default:Ee(e)}}function vlc(e){switch(e.type){case"int":return e.value;case"int64":return e.value;case"uint":return e.value;case"uint64":return e.value;case"float":return e.value;case"double":return e.value;case"string":return e.value.startsWith("$")?`\\${e.value}`:e.value;case"datetime":try{return!e.value.endsWith("Z")&&!e.value.includes("+")&&(e.value+="Z"),new Date(e.value).toISOString().replace(/\.\d{3}Z$/,"Z")}catch{return"2024-01-15T09:30:00Z"}case"datetimeRfc2822":return e.value;case"date":return e.value;case"base64":case"boolean":return e.value;default:Ee(e)}}function xlc(e){return Object.fromEntries(Object.entries(e).map(([t,r])=>[t,dD(r)]))}function wFf(e){return e.map(t=>({event:"",data:dD(t)}))}function Clc(e){return e.map(t=>dD(t))}function SFf(e){return Object.fromEntries(e.map(t=>[vlc(t.key),dD(t.value)]))}function TFf(e){return e.type==="discriminated"?xlc(e.value):dD(e.value)}function OFf(e){switch(e.type){case"string":return e.value.startsWith("$")?`\\${e.value}`:e.value;case"boolean":return e.value;default:Ee(e)}}var VOr=h(()=>{"use strict";Bt()});function wlc({endpointExample:e,context:t,pathParameterRenames:r}){let n={};if(e.type!=="full")return e.value;e.name!=null&&(n.name=e.name),e.description!=null&&(n.docs=e.description);let i={};if(t.ir.basePathParameters!=null)for(let u of t.ir.basePathParameters){let l=u.clientDefault??u.name;(typeof l=="string"||typeof l=="number"||typeof l=="boolean")&&(i[u.name]=l)}e.pathParameters!=null&&e.pathParameters.length>0&&Object.assign(i,BFf(e.pathParameters,r)),Object.keys(i).length>0&&(n["path-parameters"]=i),e.queryParameters!=null&&e.queryParameters.length>0&&(n["query-parameters"]=PFf(e.queryParameters));let o=e.headers!=null&&e.headers.length>0,s=t.builder.getGlobalHeaders(),a=Object.keys(s).length>0,c=new Set(e.headers?.map(u=>u.name)??[]);if(o||a){let u=[];if(e.headers!=null)for(let l of e.headers)l.name!==t.builder.getAuthHeaderName()&&u.push(l);for(let[l,p]of Object.entries(s)){if(p!=null&&typeof p=="object"&&p.type!=null){let f=Fv({type:p.type,_default:void 0,validation:void 0,visitor:{primitive:mt,map:mt,list:mt,optional:m=>m,nullable:m=>m,set:mt,named:mt,literal:m=>{if(m.type==="string")return m.string;if(m.type==="boolean")return m.boolean.toString()},unknown:mt}});if(f!=null){let m=u.findIndex(A=>A.name===l),g={name:l,value:fc.literal(Kbe.string(f))};m>=0?u[m]=g:u.push(g);continue}}if(c.has(l))continue;let d=p!=null&&typeof p=="object"?p.type:typeof p=="string"?p:void 0;u.push({name:l,value:fc.primitive(DFf(Slc(d),l))})}n.headers=RFf({context:t,namedFullExamples:u})}return e.request!=null&&(n.request=dD(e.request)),e.response!=null&&(n.response=Ilc(e.response)),e.codeSamples!=null&&e.codeSamples.length>0&&(n["code-samples"]=e.codeSamples.map(u=>u.type==="language"?{name:u.name??void 0,docs:u.description??void 0,language:u.language,code:u.code,install:u.install??void 0}:{name:u.name??void 0,docs:u.description??void 0,sdk:u.sdk,code:u.code}).filter(oa)),n}function BFf(e,t){let r={};return e.forEach(n=>{let i=dD(n.value);if(i!=null){let o=n.parameterNameOverride??t?.[n.name]??n.name;r[o]=i}}),r}function PFf(e){let t={};return e.forEach(r=>{let n=dD(r.value);n!=null&&(t[r.name]=n)}),t}function Slc(e){if(e==null)return;let t=e.match(/^(?:optional|nullable)<(.+)>$/);return t!=null?Slc(t[1]):e}function DFf(e,t){switch(e){case"integer":case"int":return Oo.int(0);case"int64":case"long":return Oo.int64(0);case"uint":return Oo.uint(0);case"uint64":return Oo.uint64(0);case"float":return Oo.float(0);case"double":return Oo.double(0);case"boolean":return Oo.boolean(!0);case"date":return Oo.date("2024-01-01");case"date-time":case"datetime":return Oo.datetime("2024-01-01T00:00:00Z");case"base64":return Oo.base64("SGVsbG8=");default:return Oo.string(t)}}function RFf({context:e,namedFullExamples:t}){let r={};return t.forEach(n=>{let i=dD(n.value);i!=null&&(r[n.name]=i)}),r}var Tlc=h(()=>{"use strict";Bt();xo();Ic();VOr()});var uB,eNt=h(()=>{"use strict";(function(e){e[e.Channel=0]="Channel",e[e.Endpoint=1]="Endpoint",e[e.Request=2]="Request",e[e.Webhook=3]="Webhook"})(uB||(uB={}))});function Olc(e){return f1._visit(e,{get:()=>Hm.HttpMethodSchema.Get,post:()=>Hm.HttpMethodSchema.Post,put:()=>Hm.HttpMethodSchema.Put,patch:()=>Hm.HttpMethodSchema.Patch,delete:()=>Hm.HttpMethodSchema.Delete,head:()=>Hm.HttpMethodSchema.Head,options:()=>{throw new S({message:"OPTIONS is unsupported",code:S.Code.ConfigError})},trace:()=>{throw new S({message:"TRACE is unsupported",code:S.Code.ConfigError})},_other:()=>{throw new S({message:"Unknown http method is unsupported",code:S.Code.ConfigError})}})}var Blc=h(()=>{"use strict";xo();Ic();jt()});function kso(e){return e==="POST"||e==="PUT"||e==="PATCH"}var Plc=h(()=>{"use strict"});function kFf({endpoint:e,context:t,namespace:r}){let n=new Set;for(let o of e.queryParameters)n.add(o.name);for(let o of e.headers)n.add(o.parameterNameOverride??o.name);let i=e.request;if(i==null)return n;switch(i.type){case"multipart":for(let o of i.properties)n.add(o.key);break;case"json":case"formUrlEncoded":{let o=i.schema.type==="reference"?i.schema.schema:void 0,s=i.schema.type==="reference"?t.getSchema(i.schema.schema,r):i.schema;if(s?.type!=="object"||o!=null&&t.isResponseReachable(o)){n.add("body");break}for(let a of s.properties)n.add(a.nameOverride??a.key);for(let a of s.allOf){let{properties:c}=qje(t,a.schema,r);for(let u of c)n.add(u.nameOverride??u.key)}break}case"octetStream":break;default:Ee(i)}return n}function FFf({pathParameterName:e,reservedNames:t,pathParameters:r}){let n=new Set;for(let s of r){let a=s.parameterNameOverride??s.name;a!==e&&n.add(a)}let i=`${e}${Dlc}`,o=2;for(;t.has(i)||n.has(i);)i=`${e}${Dlc}${o}`,o++;return i}function klc({endpoint:e,declarationFile:t,context:r}){let n=[],i=new Set,o=e.path,s=LOr(e.sdkName,e.namespace),a=kFf({endpoint:e,context:r,namespace:s}),c={},u={};for(let y of e.pathParameters){let E=y.parameterNameOverride;E==null&&a.has(y.name)&&(E=FFf({pathParameterName:y.name,reservedNames:a,pathParameters:e.pathParameters}),c[y.name]=E),E&&(o=o.replace(`{${y.name}}`,`{${E}}`)),u[E??y.name]=jOr({pathParameter:y,context:r,fileContainingReference:t,namespace:s})}let l={};for(let y of e.queryParameters){let E=zOr({queryParameter:y,context:r,fileContainingReference:t,namespace:s});E!=null&&(l[y.name]=E,i.add(y.name))}let p;if(e.pagination!=null)switch(e.pagination.type){case"cursor":p={cursor:e.pagination.cursor,next_cursor:e.pagination.nextCursor,results:e.pagination.results};break;case"offset":p={offset:e.pagination.offset,step:e.pagination.step,results:e.pagination.results,"has-next-page":e.pagination.hasNextPage};break;case"custom":p={type:"custom",results:e.pagination.results};break;case"uri":p={next_uri:e.pagination.nextUri,results:e.pagination.results};break;case"path":p={next_path:e.pagination.nextPath,results:e.pagination.results};break;default:Ee(e.pagination)}let d={path:o,method:Olc(e.method),auth:NFf({endpoint:e,context:r}),docs:e.description??void 0,pagination:p,source:e.source!=null?hle(e.source):void 0};!MFf({context:r,request:e.request})&&Object.keys(u).length>0&&(d["path-parameters"]=u),e.summary!=null&&(d["display-name"]=e.summary),e.subtitle!=null&&(d.subtitle=e.subtitle);let f={},m=r.builder.getGlobalHeaderNames(),g=r.builder.getAuthHeaderName();g!=null&&m.add(g);let A=e.headers.filter(y=>!m.has(y.name));for(let y of A){let E=zX({header:y,context:r,fileContainingReference:t,namespace:s});f[y.name]=E,i.add(typeof E=="string"?y.name:E.name??y.name)}if(e.request!=null){r.setInState(uB.Request);let y=zFf({endpoint:e,context:r,declarationFile:t,request:e.request,generatedRequestName:e.generatedRequestName,requestNameOverride:e.requestNameOverride??void 0,pathParameters:r.options.inlinePathParameters&&Object.keys(u).length>0?u:void 0,queryParameters:Object.keys(l).length>0?l:void 0,headers:Object.keys(f).length>0?f:void 0,usedNames:i,namespace:s});d.request=y.value,n=[...n,...y.schemaIdsToExclude??[]],r.unsetInState(uB.Request)}else{let y=r.options.inlinePathParameters&&Object.keys(u).length>0,E=Object.keys(l).length>0,x=Object.keys(f).length>0,I={};(y||E||x)&&(I.name=e.requestNameOverride??e.generatedRequestName),y&&(I["path-parameters"]=u),E&&(I["query-parameters"]=l),x&&(I.headers=f),Object.keys(I).length>0&&(d.request=I)}if(e.response!=null&&e.response._visit({json:y=>{let E=mc({schema:y.schema,context:r,fileContainingReference:t,namespace:s,declarationDepth:0,variant:r.options.respectReadonlySchemas&&r.options.useReadVariantForResponses?"read":void 0});d.response={docs:y.description??void 0,type:Zp(E)},y.statusCode!=null&&(d.response["status-code"]=y.statusCode),y.responseProperty!=null&&(d.response.property=y.responseProperty)},streamingJson:y=>{let E=mc({schema:y.schema,context:r,fileContainingReference:t,namespace:s,declarationDepth:0,variant:r.options.respectReadonlySchemas&&r.options.useReadVariantForResponses?"read":void 0});d["response-stream"]={docs:y.description??void 0,type:Zp(E),format:"json",terminator:y.terminator??void 0}},streamingSse:y=>{let E=mc({schema:y.schema,context:r,fileContainingReference:t,namespace:s,declarationDepth:0,variant:r.options.respectReadonlySchemas&&r.options.useReadVariantForResponses?"read":void 0});d["response-stream"]={docs:y.description??void 0,type:Zp(E),format:"sse",terminator:y.terminator??void 0,resumable:y.resumable??void 0}},file:y=>{d.response={docs:y.description??void 0,type:"file","status-code":y.statusCode}},bytes:y=>{d.response={docs:y.description??void 0,type:"bytes","status-code":y.statusCode}},streamingText:y=>{d["response-stream"]={docs:y.description??void 0,type:"text"}},text:y=>{d.response={docs:y.description??void 0,type:"text","status-code":y.statusCode,"content-type":y.contentType??void 0}},_other:()=>{throw new S({message:"Unrecognized Response type: "+e.response?.type,code:S.Code.InternalError})}}),r.builder.getEnvironmentType()==="multi"){let y=r.getDefaultServerName(),E=e.servers[0];if(E==null)y!=null&&(d.url=y);else{let x=E.url!=null?r.getUrlId(E.url):void 0;d.url=x??E.name??void 0}}return e.idempotent&&(d.idempotent=!0),e.availability!=null&&(d.availability=C0(e.availability)),Object.entries(e.errors).forEach(([y,E])=>{let x=E.generatedName,I=Vs.of(Uf);r.builder.enableUniqueErrorsPerEndpoint&&(x=`${e.generatedRequestName}${E.generatedName}`,E.schema!=null&&(E.schema.type!=="reference"&&E.schema.type!=="oneOf"?E.schema.generatedName=`${e.generatedRequestName}${E.schema.generatedName}`:E.schema.type==="oneOf"&&(E.schema.value.generatedName=`${e.generatedRequestName}${E.schema.value.generatedName}`)));let C={"status-code":parseInt(y)},T=alc({endpointNamespace:s,error:E}),P=Uuc({location:Nlc,namespaceOverride:T});if(E.schema!=null){let z=mc({schema:E.schema,context:r,fileContainingReference:P,declarationFile:P,namespace:T,declarationDepth:0});C.type=Zp(z),C.docs=E.description}r.builder.addError(P,{name:x,schema:r.isErrorUnknownSchema({statusCode:parseInt(y),namespace:E.namespace})?{...C,type:"unknown"}:C}),d.errors==null&&(d.errors=[]);let D=r.builder.addImport({file:t,fileToImport:P});d.errors.push(D!=null?`${D}.${x}`:x),C.type!=null&&E.examples?.forEach(z=>{let J={value:dD(z.example),name:z.name,docs:z.description};r.builder.addErrorExample(P,{name:x,example:J})})}),e.examples.length>0&&(d.examples=jFf({endpointExamples:e.examples,context:r,pathParameterRenames:c})),e.retries!=null&&(d.retries=QFf({retries:e.retries})),e.globalParameterIds!=null&&e.globalParameterIds.length>0&&(d["global-parameters"]=e.globalParameterIds),r.ir.hasEndpointsMarkedInternal&&(e.internal==null||!e.internal)?d.audiences=[Fso,...e.audiences]:e.audiences.length>0&&(d.audiences=e.audiences),{value:d,schemaIdsToExclude:n}}function NFf({endpoint:e,context:t}){return e.security==null?t.authOverrides?.auth!=null?!0:t.ir.security==null?void 0:t.ir.security.length>0?!0:void 0:e.security.length===0?!1:JSON.stringify(e.security)===JSON.stringify(t.ir.security)?!0:e.security}function jFf({endpointExamples:e,context:t,pathParameterRenames:r}){return e.map(n=>{try{return wlc({endpointExample:n,context:t,pathParameterRenames:r})}catch(i){throw console.error(`Error building endpoint example: ${i}`),i}})}function QFf({retries:e}){if(e!=null){if(e.type==="disabled")return{disabled:e.value??void 0};Ee(e)}}function zFf({endpoint:e,declarationFile:t,context:r,request:n,requestNameOverride:i,generatedRequestName:o,pathParameters:s,queryParameters:a,headers:c,usedNames:u,namespace:l}){if(n.type==="json"||n.type==="formUrlEncoded"){let p=n.schema.type==="reference"?n.schema.schema:void 0,d=n.schema.type==="reference"?r.getSchema(n.schema.schema,l):n.schema;if(d?.type!=="object"||p!=null&&r.isResponseReachable(p)){let C=r.options.respectReadonlySchemas&&kso(e.method)?"write":void 0,T=mc({schema:n.schema,fileContainingReference:t,context:r,namespace:l,declarationDepth:0,variant:C}),P={body:T},D=Object.keys(s??{}).length>0,O=Object.keys(a??{}).length>0,z=Object.keys(c??{}).length>0;D&&(P["path-parameters"]=s),O&&(P["query-parameters"]=a),z&&(P.headers=c),(D||O||z)&&(P.name=i??o),n.contentType!=null&&(P["content-type"]=n.contentType),n.description!=null&&(P.docs=n.description);let J=typeof P.body=="string"&&P["path-parameters"]==null&&P["query-parameters"]==null&&P.headers==null&&P.name==null&&P.docs==null&&(P["content-type"]==null||P["content-type"]==="application/json"),Y=Rlc(n);return Y&&(J&&delete P["content-type"],P.body=typeof T=="string"?{type:T,optional:!0}:{...T,optional:!0}),{schemaIdsToExclude:[],value:J&&!Y?P.body:P}}let f=new Map;for(let I of d.allOf){let C=r.getSchema(I.schema,l);if(C==null)continue;let T=mle(C),P=dle(T),{properties:D}=qje(r,I.schema,l);for(let O of D)f.set(O.key,P)}let m=Object.fromEntries(d.properties.filter(I=>I.readonly==null?!0:!(kso(e.method)&&I.readonly)).map(I=>{let C=f.get(I.key)??t,T=mc({schema:I.schema,fileContainingReference:t,declarationFile:C,context:r,namespace:l,declarationDepth:1}),P=I.nameOverride??I.key,D=C0(I.availability);if(!u.has(P)&&I.audiences.length<=0)return u.add(P),I.nameOverride!=null?[I.key,{type:Zp(T),docs:CXe(T),name:I.nameOverride,availability:D}]:[I.key,D?{...typeof T=="string"?{type:T}:T,availability:D}:T];let O={type:Zp(T),docs:CXe(T)};return u.has(P)&&(O.name=I.generatedName),I.audiences.length>0&&(O.audiences=I.audiences),D!=null&&(O.availability=D),u.add(P),[I.key,O]})),g=new Set,A=new Set;for(let I of d.allOfPropertyConflicts)I.allOfSchemaIds.forEach(C=>g.add(C)),I.conflictingTypeSignatures&&A.add(I.propertyKey);let y=[];for(let I of d.allOf){let C=NOr({schema:I.schema,context:r,namespace:l});if(C==null||g.has(I.schema)||g.has(C))continue;let T=mc({schema:ha.reference(I),fileContainingReference:t,context:r,namespace:l,declarationDepth:0}),P=wXe(Zp(T));P!=="unknown"&&y.push(P)}for(let I of g){let C=qje(r,I,l),T=r.getSchema(I,l),P=T!=null?dle(mle(T)):t;for(let D of C.properties)m[D.key]==null&&(A.has(D.key)?m[D.key]="unknown":m[D.key]=mc({schema:D.schema,fileContainingReference:t,declarationFile:P,context:r,namespace:l,declarationDepth:1}));for(let D of C.allOf){if(g.has(D.schema))continue;let O=mc({schema:ha.reference(D),fileContainingReference:t,context:r,namespace:l,declarationDepth:0}),z=wXe(Zp(O));z!=="unknown"&&!y.includes(z)&&y.push(z)}}let E={properties:m};y.length>0&&(E.extends=y),n.additionalProperties&&(E["extra-properties"]=!0),Rlc(n)&&(E.optional=!0);let x={name:i??d.nameOverride??d.generatedName,"path-parameters":s,"query-parameters":a,headers:c,body:E};return n.contentType!=null&&(x["content-type"]=n.contentType),n.description!=null&&(x.docs=n.description),{schemaIdsToExclude:p!=null?[p]:[],value:x}}else if(n.type==="octetStream"){let p={body:"bytes","content-type":n.contentType??sf.APPLICATION_OCTET_STREAM,"query-parameters":a};return a!=null&&(p.name=i??o),n.description!=null&&(p.docs=n.description),{schemaIdsToExclude:[],value:p}}else if(n.type==="multipart"){let p=Object.fromEntries(n.properties.map(d=>{if(d.schema.type==="file"){let f=d.schema.isArray?"list<file>":"file";if(f=d.schema.isOptional?`optional<${f}>`:f,d.description!=null||d.contentType!=null){let m={type:f};if(d.description!=null&&(m.docs=d.description),d.contentType!=null){let g=d.contentType.split(",")[0];m["content-type"]=g}return[d.key,m]}return[d.key,f]}else{let f=mc({schema:d.schema.value,fileContainingReference:t,context:r,namespace:l,declarationDepth:1});if(d.contentType||d.exploded||d.encoding){let m=typeof f=="string"?{type:f}:f;d.contentType!=null&&(m["content-type"]=d.contentType),d.encoding==="form"?m.style="form":d.encoding==="json"?m.style="json":d.exploded&&(m.style="exploded"),f=m}return[d.key,f]}}));return{schemaIdsToExclude:n.name==null?[]:[n.name],value:{name:i??n.name??o,"path-parameters":s,"query-parameters":a,headers:c,body:{properties:p},"content-type":sf.MULTIPART_FORM_DATA,...n.description?{docs:n.description}:{}}}}else Ee(n)}function Rlc(e){return e.type==="json"&&e.required!==!0}function MFf({context:e,request:t}){if(!e.options.inlinePathParameters)return!1;if(t==null)return!0;switch(t.type){case"octetStream":return!1;case"multipart":return!0;case"json":return!0;case"formUrlEncoded":return!0;default:Ee(t)}}var Dlc,Flc=h(()=>{"use strict";Ea();Bt();Ic();fy();jt();Tlc();Nso();SXe();Sso();Bso();X2t();QX();eNt();Vje();VOr();xXe();Blc();FOr();J2t();Wje();BL();Plc();Dlc="PathParam"});function LFf({location:e,namespaceOverride:t}){return t!=null?{...e,file:BI(Vs.of(t),e.file)}:e}function jlc(e){return e.includes(".")?ri(e):e}function VFf(e){let t=e.namespace,r=e.tags.filter(c=>c!==t)[0],n=e.operationId;if(n==null)return r!=null?{file:Vs.of(`${ri(r)}.yml`),endpointId:e.summary!=null?ri(e.summary):ri(`${e.method}_${e.path.split("/").join("_")}`)}:e.summary!=null?{file:Vs.of(Uf),endpointId:ri(e.summary)}:{file:Vs.of(Uf),endpointId:ri(`${e.method}_${e.path.split("/").join("_")}`)};if(r==null)return{file:Vs.of(Uf),endpointId:jlc(n)};let i=tNt(r),o=tNt(n);if(OI(i,o))return{file:Vs.of("__package__.yml"),endpointId:r};let s=GFf({operationId:n,tag:r,path:e.path,method:e.method});if(s!=null)return s;let a=[];for(let c=0;c<i.length;++c){let u=i[c];if(u!=null&&u===o[c])a.push(u);else{let l=ri(r);return{file:Vs.of(`${l}.yml`),endpointId:jlc(n),tag:r}}}if(a.length>=o.length)throw new S({message:`Cannot get file for endpoint ${JSON.stringify(e)}`,code:S.Code.InternalError});return{file:Vs.of(ri(a.join("_"))+".yml"),endpointId:ri(o.slice(a.length).join("_")),tag:r}}function rNt(e){let t=e.tags[0];if(e.sdkName!=null){let r=dso({sdkName:e.sdkName,namespaceOverride:e.namespace}),n=`${r}.yml`,i=r.toLowerCase()===t?.toLowerCase().replaceAll(" ","");return{file:Vs.of(n),endpointId:e.sdkName.methodName,tag:i?t:void 0}}return LFf({namespaceOverride:e.namespace,location:VFf(e)})}function tNt(e){let t;return/^[a-z]+(?:[A-Z][a-z]+)*$/.test(e)?t=e.split(/(?=[A-Z])/):t=e.split(/[^a-zA-Z0-9]+/),t=t.map(r=>r.toLowerCase()),t=SV(t),t}function GFf({operationId:e,tag:t,path:r,method:n}){let o=`${r.split(UFf).join("_").replaceAll(_Ff,"_")}_${n.toLowerCase()}`;if(e.endsWith(o))return{file:Vs.of(ri(t)+".yml"),endpointId:ri(e.slice(0,-1*o.length)),tag:t}}var UFf,_Ff,UOr=h(()=>{"use strict";Ea();fy();jt();Hi();xXe();UFf=new RegExp("[^a-zA-Z0-9{}]+"),_Ff=new RegExp("[{}]","g")});function Qlc(e){let t=new Set,{endpoints:r,tags:n}=e.ir,i=[];for(let o of r){let{endpointId:s,file:a,tag:c}=rNt(o),u=a.split(".")[0];u!=null&&t.add(u);let l;if(o.sdkName!=null){let f=e.ir.groups;for(let m of o.sdkName.groupName){let g=typeof m=="string"?m:m.name,A=f[g];if(A==null)break;if(A.summary!=null||A.description!=null){l=f[g];break}}}let p=c==null?void 0:n.tagsById[c];e.setInState(uB.Endpoint),e.setEndpointMethod(o.method);let d=klc({context:e,endpoint:o,declarationFile:a});e.unsetEndpointMethod(),e.unsetInState(uB.Endpoint),i=[...i,...d.schemaIdsToExclude],e.builder.addEndpoint(a,{name:s,schema:d.value,source:o.source!=null?hle(o.source):void 0}),(p?.id!=null||p?.description!=null)&&e.builder.setServiceInfo(a,{"display-name":l?.summary??p?.id,docs:l?.description??p?.description??void 0})}return{schemaIdsToExclude:i,sdkGroups:t}}var zlc=h(()=>{"use strict";Flc();eNt();FOr();UOr()});function Mlc(e){for(let[t,r]of Object.entries(e.ir.variables)){let n=r.groupName!=null?gle(r.groupName):void 0,i=mc({schema:ha.primitive(r),context:e,fileContainingReference:Vs.of(Uf),namespace:n,declarationDepth:0});e.builder.addVariable({name:t,schema:{type:Zp(i),docs:r.description??void 0}})}}var Llc=h(()=>{"use strict";Ea();Ic();fy();QX();Wje();BL()});function _lc(e){for(let t of e.ir.webhooks){let r=HFf({webhook:t,context:e});if(r==null)continue;let n=LOr(t.sdkName,t.namespace),i={};for(let s of t.headers)i[s.name]=zX({header:s,context:e,fileContainingReference:r.file,namespace:n});let o={audiences:t.audiences,method:t.method,"display-name":t.summary??void 0,headers:i,payload:mc({schema:t.payload,context:e,fileContainingReference:r.file,namespace:n,declarationDepth:0}),signature:KFf(t.signatureVerification),examples:t.examples!=null?t.examples.map(s=>({docs:s.description,name:s.name,payload:dD(s.payload)})):void 0};t.response!=null&&t.response._visit({json:s=>{let a=mc({schema:s.schema,context:e,fileContainingReference:r.file,namespace:n,declarationDepth:0});o.response={docs:s.description??void 0,type:Zp(a)},s.statusCode!=null&&(o.response["status-code"]=s.statusCode)},file:s=>{o.response={docs:s.description??void 0,type:"file","status-code":s.statusCode}},bytes:s=>{o.response={docs:s.description??void 0,type:"bytes","status-code":s.statusCode}},text:s=>{o.response={docs:s.description??void 0,type:"text","status-code":s.statusCode,"content-type":s.contentType??void 0}},streamingJson:s=>{let a=mc({schema:s.schema,context:e,fileContainingReference:r.file,namespace:n,declarationDepth:0});o["response-stream"]={docs:s.description??void 0,type:Zp(a),format:"json"}},streamingSse:s=>{let a=mc({schema:s.schema,context:e,fileContainingReference:r.file,namespace:n,declarationDepth:0});o["response-stream"]={docs:s.description??void 0,type:Zp(a),format:"sse"}},streamingText:s=>{o["response-stream"]={docs:s.description??void 0,type:"text"}},_other:()=>{throw new S({message:"Unrecognized Response type: "+t.response?.type,code:S.Code.InternalError})}}),e.builder.addWebhook(r.file,{name:r.endpointId,schema:o}),t.description!=null&&(o.docs=t.description)}}function qFf({location:e,namespaceOverride:t}){if(e!=null)return t!=null?{...e,file:BI(Vs.of(t),e.file)}:e}function WFf({webhook:e,context:t}){let r=e.tags[0],n=e.operationId;if(r==null)return{file:Vs.of(Uf),endpointId:n};let i=tNt(r),o=tNt(n);if(OI(i,o))return{file:Vs.of("__package__.yml"),endpointId:r};let s=[];for(let a=0;a<i.length;++a){let c=i[a];if(c!=null&&c===o[a])s.push(c);else{let u=ri(r);return{file:Vs.of(`${u}.yml`),endpointId:n,tag:r}}}if(s.length>=o.length){t.logger.warn(`Skipping webhook ${e.operationId} because couldn't compute file location`);return}return{file:Vs.of(ri(s.join("_"))+".yml"),endpointId:ri(o.slice(s.length).join("_")),tag:r}}function HFf({webhook:e,context:t}){return e.sdkName!=null?{file:Vuc({sdkName:e.sdkName,namespaceOverride:e.namespace}),endpointId:e.sdkName.methodName}:qFf({namespaceOverride:e.namespace,location:WFf({webhook:e,context:t})})}function KFf(e){if(e!=null)switch(e.type){case"hmac":return{type:"hmac",header:e.header,algorithm:JFf(e.algorithm),encoding:jso(e.encoding),"signature-prefix":e.signaturePrefix,"payload-format":Vlc(e.payloadFormat),timestamp:Ulc(e.timestamp),"body-hash-binding":XFf(e.bodyHashBinding),"url-normalization":ZFf(e.notificationUrlNormalization)};case"asymmetric":return{type:"asymmetric",header:e.header,"asymmetric-algorithm":YFf(e.asymmetricAlgorithm),encoding:jso(e.encoding),"signature-prefix":e.signaturePrefix,"jwks-url":e.jwksUrl,"key-id-header":e.keyIdHeader,"payload-format":Vlc(e.payloadFormat),timestamp:Ulc(e.timestamp)};default:return}}function JFf(e){if(e!=null)switch(e){case"sha256":return"sha256";case"sha1":return"sha1";case"sha384":return"sha384";case"sha512":return"sha512";default:return}}function jso(e){if(e!=null)switch(e){case"base64":return"base64";case"hex":return"hex";default:return}}function YFf(e){switch(e){case"rsa-sha256":return"rsa-sha256";case"rsa-sha384":return"rsa-sha384";case"rsa-sha512":return"rsa-sha512";case"ecdsa-sha256":return"ecdsa-sha256";case"ecdsa-sha384":return"ecdsa-sha384";case"ecdsa-sha512":return"ecdsa-sha512";case"ed25519":return"ed25519";default:return"rsa-sha256"}}function Vlc(e){if(e!=null)return{components:e.components.map(r2f),delimiter:e.delimiter,"body-sort":t2f(e.bodySort)}}function XFf(e){if(e!=null)return{algorithm:$Ff(e.algorithm),encoding:e.encoding!=null?jso(e.encoding):void 0,location:e2f(e.location)}}function ZFf(e){if(e!=null)return{"port-variants":e.portVariants,"legacy-query-encoding":e.legacyQueryEncoding}}function $Ff(e){switch(e){case"sha256":return"sha256";case"sha1":return"sha1";case"sha384":return"sha384";case"sha512":return"sha512";default:Ee(e)}}function e2f(e){if(e.type==="queryParameter")return{type:"query-parameter",name:e.name};Ee(e.type)}function t2f(e){if(e!=null&&e==="alphabetical")return"alphabetical"}function r2f(e){switch(e){case"body":return"body";case"timestamp":return"timestamp";case"notification-url":return"notification-url";case"message-id":return"message-id";default:return"body"}}function n2f(e){switch(e){case"unix-seconds":return"unix-seconds";case"unix-millis":return"unix-millis";case"iso8601":return"iso8601";default:return}}function Ulc(e){if(e!=null)return{header:e.header,format:e.format!=null?n2f(e.format):void 0,tolerance:e.tolerance}}var Glc=h(()=>{"use strict";Ea();Bt();fy();jt();Hi();SXe();QX();VOr();xXe();UOr();Wje();BL()});function p0e(e,t,r){switch(e.type){case"primitive":case"enum":case"literal":case"unknown":return;case"reference":{let n=e.schema;if(r.has(n))return;r.add(n);let i=qlc(n,e.namespace,t);i!=null&&p0e(i,t,r);return}case"object":for(let n of e.allOf)if(!r.has(n.schema)){r.add(n.schema);let i=qlc(n.schema,n.namespace,t);i!=null&&p0e(i,t,r)}for(let n of e.properties)p0e(n.schema,t,r);return;case"array":case"map":case"optional":case"nullable":p0e(e.value,t,r);return;case"oneOf":i2f(e.value,t,r);return;default:Ee(e)}}function i2f(e,t,r){switch(e.type){case"discriminated":for(let n of Object.values(e.schemas))p0e(n,t,r);for(let n of e.commonProperties)p0e(n.schema,t,r);return;case"undiscriminated":for(let n of e.schemas)p0e(n,t,r);return;default:Ee(e)}}function qlc(e,t,r){return t==null?r.rootSchemas[e]:r.namespacedSchemas[t]?.[e]}function SU(e,t,r){p0e(e,t,r)}function Qso(e){let t=new Set,r=new Set,{groupedSchemas:n}=e;for(let i of e.endpoints){if(i.request!=null)switch(i.request.type){case"json":case"formUrlEncoded":SU(i.request.schema,n,t);break;case"multipart":for(let o of i.request.properties)o.schema.type==="json"&&SU(o.schema.value,n,t);break;case"octetStream":break;default:Ee(i.request)}if(i.response!=null)switch(i.response.type){case"json":case"streamingJson":case"streamingSse":SU(i.response.schema,n,r);break;case"file":case"text":case"bytes":case"streamingText":break;default:Ee(i.response)}for(let o of Object.values(i.errors))o.schema!=null&&SU(o.schema,n,r);for(let o of i.pathParameters)SU(o.schema,n,r);for(let o of i.queryParameters)SU(o.schema,n,r);for(let o of i.headers)SU(o.schema,n,r)}for(let i of e.webhooks)SU(i.payload,n,r);for(let i of Object.values(e.channels)){for(let o of i.messages)SU(o.body,n,r);for(let o of i.handshake.queryParameters)SU(o.schema,n,r);for(let o of i.handshake.headers)SU(o.schema,n,r);for(let o of i.handshake.pathParameters)SU(o.schema,n,r)}return{requestReachable:t,responseReachable:r}}function o2f(e){return e.type!=="object"?!1:e.properties.some(t=>t.readonly===!0)}function zso(e,t){let r=new Set,n=new Set,i=new Set;function o(s){for(let[a,c]of Object.entries(s)){if(!o2f(c))continue;let u=t.requestReachable.has(a),l=t.responseReachable.has(a);u&&l?r.add(a):u&&!l?n.add(a):!u&&l&&i.add(a)}}o(e.groupedSchemas.rootSchemas);for(let s of Object.values(e.groupedSchemas.namespacedSchemas))o(s);return{needsBothVariants:r,requestOnlyWithReadonly:n,responseOnlyWithReadonly:i}}var Wlc=h(()=>{"use strict";Bt()});function Hlc({schemas:e,schemaIdsToExclude:t,namespace:r,context:n}){for(let[i,o]of Object.entries(e)){if(t.has(i))continue;let s=_uc(o);if(n.options.respectReadonlySchemas&&n.needsBothVariants(i)&&o.type==="object"){let u=Gje({schema:o,context:n,declarationFile:s,namespace:r,declarationDepth:0,variant:"read"});n.builder.addType(s,{name:u.name??i,schema:u.schema});let l=Gje({schema:o,context:n,declarationFile:s,namespace:r,declarationDepth:0,skipReadonlyProperties:!0,variant:"write"});n.builder.addType(s,{name:l.name??i,schema:l.schema});continue}if(n.options.respectReadonlySchemas&&n.isRequestOnlyWithReadonly(i)&&o.type==="object"){let u=Gje({schema:o,context:n,declarationFile:s,namespace:r,declarationDepth:0,skipReadonlyProperties:!0,variant:"write"});n.builder.addType(s,{name:u.name??i,schema:u.schema});continue}let a;n.options.respectReadonlySchemas&&(a=n.isRequestOnly(i)?"write":"read");let c=Yuc({schema:o,context:n,declarationFile:s,namespace:r,declarationDepth:0,variant:a});if(lbe(c.schema)){let u=Zp(c.schema);if(u===(c.name??i)||u===`optional<${c.name??i}>`||u===`nullable<${c.name??i}>`||u===`optional<nullable<${c.name??i}>>`)continue}n.builder.addType(s,{name:c.name??i,schema:c.schema})}}function Klc(e){if(e.ir.apiVersion!=null&&e.builder.setApiVersion(e.ir.apiVersion),dlc(e),hlc(e),Alc(e),blc(e),tlc(e),Mlc(e),e.ir.basePath!=null&&e.builder.setBasePath(e.ir.basePath),e.ir.basePathParameters!=null&&e.ir.basePathParameters.length>0){let i={};for(let o of e.ir.basePathParameters){let s={type:"string"};o.description!=null&&(s.docs=o.description),o.clientDefault!=null&&(s["client-default"]=o.clientDefault),i[o.name]=s}e.builder.setRootPathParameters(i)}if(e.ir.hasEndpointsMarkedInternal&&e.builder.addAudience(Fso),e.options.respectReadonlySchemas&&e.options.useReadVariantForResponses){let i=Qso(e.ir),o=zso(e.ir,i);e.setVariantPlan(o,i)}let t=Qlc(e),r=t.sdkGroups;if(e.options.respectReadonlySchemas&&!e.options.useReadVariantForResponses){let i=Qso(e.ir),o=zso(e.ir,i);e.setVariantPlan(o,i)}e.setInState(uB.Webhook),_lc(e),e.unsetInState(uB.Webhook),e.setInState(uB.Channel);for(let i of Object.values(e.ir.channels)){let o=dle(i.groupName);clc({channel:i,context:e,declarationFile:o})}e.unsetInState(uB.Channel);let n=s2f({context:e,schemaIdsToExcludeFromServices:t.schemaIdsToExclude});Hlc({schemas:e.ir.groupedSchemas.rootSchemas,schemaIdsToExclude:n,namespace:void 0,context:e});for(let[i,o]of Object.entries(e.ir.groupedSchemas.namespacedSchemas))Hlc({schemas:o,schemaIdsToExclude:n,namespace:i,context:e});return e.ir.tags.orderedTagIds!=null&&e.ir.tags.orderedTagIds.length>0&&e.ir.tags.orderedTagIds.every(o=>r.has(o))&&e.builder.addNavigation({navigation:e.ir.tags.orderedTagIds}),e.builder.optimizeServiceAuth(),e.builder.build()}function s2f({context:e,schemaIdsToExcludeFromServices:t}){let r=e.getReferencedSchemaIds();if(r==null)return new Set(t);let n=new Set([...Object.keys(e.ir.groupedSchemas.rootSchemas),...Object.values(e.ir.groupedSchemas.namespacedSchemas).flatMap(o=>Object.keys(o))]),i=new Set(t);for(let o of n)r.includes(o)||i.add(o);return i}var Fso,Nlc,Nso=h(()=>{"use strict";Ea();xo();fy();rlc();ulc();mlc();glc();ylc();Elc();zlc();X2t();Llc();Glc();Wlc();eNt();xXe();mso();BL();Fso="external",Nlc=Vs.of(Uf)});var nNt,Jlc=h(()=>{"use strict";nNt=class{context;constructor(t){this.context=t}}});var _Or,Ylc=h(()=>{"use strict";fy();jt();_Or=class e{files={};directories={};getAllFiles(){let t={},r=(n,i)=>{for(let[s,a]of Object.entries(n.files)){let c=i!=null?Vs.of(`${i}${"/"}${s}`):Vs.of(s);t[c]=a}let o=Object.keys(n.directories).sort();for(let s of o){let a=i!=null?`${i}${"/"}${s}`:s,c=n.directories[s];r(c,a)}};return r(this),t}getOrCreateFile(t){return this.getOrCreateFileRecursive(t.split("/"))}getOrCreateFileRecursive(t){if(t.length===1)return this.files[Vs.of(t[0])]??={};let[r,...n]=t;if(r==null)throw new S({message:`Internal error; cannot add file with path: ${t}`,code:S.Code.InternalError});return this.directories[r]||(this.directories[r]=new e),this.directories[r].getOrCreateFileRecursive(n)}}});function Xlc(e){return e?.header!=null}var Hje,Zlc=h(()=>{"use strict";Ea();xo();fy();Hi();Ylc();Hje=class{enableUniqueErrorsPerEndpoint;root;rootApiFile;packageMarkerFile={};basePath=void 0;rootPathParameters=void 0;constructor(t){this.enableUniqueErrorsPerEndpoint=t,this.root=new _Or,this.rootApiFile={name:"api","error-discrimination":{strategy:"status-code"}}}setDisplayName({displayName:t}){this.rootApiFile["display-name"]=t}addNavigation({navigation:t}){this.packageMarkerFile.navigation=t}setServiceInfo(t,{auth:r,"base-path":n,"display-name":i,docs:o}){let s=this.getOrCreateFile(t);s.service==null&&(s.service={auth:!1,"base-path":"",endpoints:{}}),r!=null&&(s.service.auth=r),n!=null&&(s.service["base-path"]=n),i!=null&&(s.service["display-name"]=i),o!=null&&(s.docs=o)}addAudience(t){this.rootApiFile.audiences==null&&(this.rootApiFile.audiences=[]),this.rootApiFile.audiences.push(t)}setAuth(t){this.rootApiFile.auth=t}addAuthScheme({name:t,schema:r}){this.rootApiFile["auth-schemes"]==null&&(this.rootApiFile["auth-schemes"]={}),this.rootApiFile["auth-schemes"][t]==null&&(this.rootApiFile["auth-schemes"][t]=r)}setDefaultEnvironment(t){this.rootApiFile["default-environment"]=t}setDefaultUrl(t){this.rootApiFile["default-url"]=t}setBasePath(t){this.basePath=t}setRootPathParameters(t){Object.keys(t).length!==0&&(this.rootPathParameters=t)}setApiVersion(t){this.rootApiFile.version=t}getEnvironmentType(){let t=Object.entries(this.rootApiFile.environments??{})[0];if(t!=null)return rX(t[1],{singleBaseUrl:()=>"single",multipleBaseUrls:()=>"multi"})}addEnvironment({name:t,schema:r}){this.rootApiFile.environments==null&&(this.rootApiFile.environments={}),this.rootApiFile.environments[t]=r}getGlobalHeaderNames(){let t=Object.keys(this.rootApiFile.headers??{});if(this.rootApiFile["auth-schemes"]!=null)for(let n of Object.values(this.rootApiFile["auth-schemes"]))Xlc(n)&&t.push(n.header);let r=this.getVersionHeader();return r!=null&&t.push(r),new Set(t)}getAuthHeaderName(){if(this.rootApiFile["auth-schemes"]!=null){for(let t of Object.values(this.rootApiFile["auth-schemes"]))if(Xlc(t))return t.header;return"Authorization"}}addGlobalHeader({name:t,schema:r}){let n=this.getVersionHeader();n!=null&&n===t||(this.rootApiFile.headers==null&&(this.rootApiFile.headers={}),this.rootApiFile.headers[t]=r)}getGlobalHeaders(){return this.rootApiFile.headers??{}}addIdempotencyHeader({name:t,schema:r}){this.rootApiFile["idempotency-headers"]==null&&(this.rootApiFile["idempotency-headers"]={}),this.rootApiFile["idempotency-headers"][t]=r}addVariable({name:t,schema:r}){this.rootApiFile.variables==null&&(this.rootApiFile.variables={}),this.rootApiFile.variables[t]=r}addGlobalParameter({name:t,schema:r}){this.rootApiFile["global-parameters"]==null&&(this.rootApiFile["global-parameters"]={}),this.rootApiFile["global-parameters"][t]=r}addImport({file:t,fileToImport:r,alias:n}){if(t===r)return;let i=n??ri((MV(r)+"/"+VS(r,{stripExtension:!0})).replaceAll("__package__","root"));if(t===Vs.of(kI))return this.rootApiFile.imports==null&&(this.rootApiFile.imports={}),this.rootApiFile.imports[i]=jWe(MV(NWe.of(`/${t}`)),NWe.of(`/${r}`)),i;let o=this.getOrCreateFile(t);return o.imports==null&&(o.imports={}),o.imports[i]=jWe(MV(NWe.of(`/${t}`)),NWe.of(`/${r}`)),i}addType(t,{name:r,schema:n}){if(t===Vs.of(kI))return;let i=this.getOrCreateFile(t);i.types==null&&(i.types={}),i.types[r]=n}addTypeExample(t,r,n){let i=this.getOrCreateFile(t);i.types==null&&(i.types={});let o=i.types[r];o!=null&&(typeof o=="string"?i.types[r]={type:o,examples:[n]}:(o.examples==null&&(o.examples=[]),o.examples.push(n)))}addError(t,{name:r,schema:n}){let i=this.getOrCreateFile(t);i.errors==null&&(i.errors={}),i.errors[r]==null?i.errors[r]=n:i.errors[r]?.type!==n.type&&(i.errors[r]={"status-code":n["status-code"],type:"unknown"})}addErrorExample(t,{name:r,example:n}){let i=this.getOrCreateFile(t);if(i.errors==null)return;let o=i.errors[r];if(o==null)return;o.examples==null&&(o.examples=[]),(o.examples.some(a=>OI(a,n))??!1)||o.examples?.push(n)}addEndpoint(t,{name:r,schema:n,source:i}){let o=this.getOrCreateFile(t);o.service==null&&(o.service={auth:!1,"base-path":"",endpoints:{}}),i!=null&&(o.service.source=i),o.service.endpoints[r]=n}addWebhook(t,{name:r,schema:n}){let i=this.getOrCreateFile(t);i.webhooks==null&&(i.webhooks={}),i.webhooks[r]=n}addChannel(t,{channel:r}){let n=this.getOrCreateFile(t);n.channel=r;let i=this.basePath;i!=null&&(n.channel.path=BI(i,r.path))}addChannelExample(t,{example:r}){let n=this.getOrCreateFile(t);n.channel==null&&(n.channel={path:"",auth:!1}),n.channel.messages==null&&(n.channel.messages={}),n.channel.examples==null&&(n.channel.examples=[]),n.channel.examples.push(r)}addChannelMessage(t,{messageId:r,message:n}){let i=this.getOrCreateFile(t);i.channel==null&&(i.channel={path:"",auth:!1}),i.channel.messages==null&&(i.channel.messages={}),i.channel.messages[r]=n}optimizeServiceAuth(){let t=[this.packageMarkerFile,...Object.values(this.root.getAllFiles())];for(let r of t){if(r.service==null)continue;let n=Object.values(r.service.endpoints);if(n.length===0)continue;if(n.every(o=>o.auth===!0)){r.service.auth=!0;for(let o of Object.values(r.service.endpoints))delete o.auth}}}build(){let t=this.root.getAllFiles(),r=this.basePath,n=this.rootPathParameters,i=r!=null&&n==null&&!r.includes("{");if(r!=null&&i){this.packageMarkerFile.service!=null&&(this.packageMarkerFile.service={...this.packageMarkerFile.service,endpoints:Object.fromEntries(Object.entries(this.packageMarkerFile.service.endpoints).map(([s,a])=>[s,{...a,path:BI(r,a.path)}]))});for(let s of Object.values(t))s.service!=null&&(s.service={...s.service,endpoints:Object.fromEntries(Object.entries(s.service.endpoints).map(([a,c])=>[a,{...c,path:BI(r,c.path)}]))})}else r!=null&&(this.rootApiFile["base-path"]=r,n!=null&&(this.rootApiFile["path-parameters"]=n));return{rootApiFile:this.rootApiFile,packageMarkerFile:this.packageMarkerFile,definitionFiles:t}}getOrCreateFile(t){return t===Uf?this.packageMarkerFile:this.root.getOrCreateFile(t)}getVersionHeader(){if(this.rootApiFile.version!=null)return typeof this.rootApiFile.version.header=="string"?this.rootApiFile.version.header:this.rootApiFile.version.header.value}}});var Mso=h(()=>{"use strict";Jlc();Zlc()});function $lc({statusCode:e,namespace:t}){return t!=null?`${t}:${e}`:`${e}`}var GOr,epc=h(()=>{"use strict";Bt();Mso();Ic();Rno();eNt();GOr=class{logger;taskContext;ir;builder;environmentOverrides;authOverrides;globalHeaderOverrides;options;enableUniqueErrorsPerEndpoint;defaultServerName=void 0;unknownSchema=new Set;referencedSchemaIds;urlIdMap=new Map;endpointMethod;state=new Set;schemaNameMapping=new Map;variantPlan;reachability;constructor({taskContext:t,ir:r,options:n,environmentOverrides:i,globalHeaderOverrides:o,authOverrides:s}){this.logger=t.logger,this.taskContext=t,this.ir=r,this.environmentOverrides=i,this.authOverrides=s,this.globalHeaderOverrides=o,this.options=jje({options:n}),this.enableUniqueErrorsPerEndpoint=this.options.enableUniqueErrorsPerEndpoint,this.referencedSchemaIds=this.options.onlyIncludeReferencedSchemas?new Set:void 0,this.builder=new Hje(this.enableUniqueErrorsPerEndpoint),r.title!=null&&this.builder.setDisplayName({displayName:r.title});let a={};if(!this.enableUniqueErrorsPerEndpoint)for(let c of r.endpoints)for(let[u,l]of Object.entries(c.errors)){let p=parseInt(u),d=$lc({statusCode:p,namespace:l.namespace}),f=a[d];f==null&&l.schema!=null?a[d]=l.schema:f!=null&&l.schema!=null&&TF(f,l.schema)||this.unknownSchema.add(d)}}getReferencedSchemaIds(){if(this.referencedSchemaIds!=null)return Array.from(this.referencedSchemaIds)}getSchema(t,r){return r==null?this.ir.groupedSchemas.rootSchemas[t]:this.ir.groupedSchemas.namespacedSchemas[r]?.[t]}getDefaultServerName(){return this.defaultServerName}setDefaultServerName(t){this.defaultServerName=t}setUrlId(t,r){this.urlIdMap.set(t,r)}getUrlId(t){return this.urlIdMap.get(t)}isErrorUnknownSchema({statusCode:t,namespace:r}){return this.unknownSchema.has($lc({statusCode:t,namespace:r}))}getEndpointMethod(){return this.endpointMethod}setEndpointMethod(t){this.endpointMethod=t}unsetEndpointMethod(){this.endpointMethod=void 0}isInState(t){return this.state.has(t)}setInState(t){this.state.add(t)}unsetInState(t){this.state.delete(t)}shouldMarkSchemaAsReferenced(){return this.options.onlyIncludeReferencedSchemas&&this.isInAnyState(uB.Channel,uB.Endpoint,uB.Webhook)}markSchemaAsReferenced(t,r){switch(t.type){case"primitive":return;case"object":this.markObjectSchemaAsReferenced(t,r);return;case"array":this.markSchemaAsReferenced(t.value,r);return;case"map":this.markSchemaAsReferenced(t.value,r);return;case"optional":this.markSchemaAsReferenced(t.value,r);return;case"reference":this.markSchemaIdAsReferenced(t.schema,r);return;case"oneOf":this.markOneofSchemaAsReferenced(t.value,r);return;case"nullable":this.markSchemaAsReferenced(t.value,r);return;case"enum":return;case"literal":return;case"unknown":return;default:Ee(t)}}markObjectSchemaAsReferenced(t,r){for(let n of t.allOf)this.markSchemaIdAsReferenced(n.schema,r);for(let n of t.properties)this.markSchemaAsReferenced(n.schema,r)}markOneofSchemaAsReferenced(t,r){switch(t.type){case"discriminated":for(let n of Object.values(t.schemas))this.markSchemaAsReferenced(n,r);return;case"undiscriminated":for(let n of t.schemas)this.markSchemaAsReferenced(n,r);return;default:Ee(t)}}markSchemaIdAsReferenced(t,r){if(this.referencedSchemaIds!=null&&!this.referencedSchemaIds.has(t)){this.referencedSchemaIds.add(t);let n=this.getSchema(t,r);n!=null&&this.markSchemaAsReferenced(n,r)}}isInAnyState(...t){return t.some(r=>this.isInState(r))}setSchemaFinalName(t,r){this.schemaNameMapping.set(t,r)}hasReadVariant(t){return this.schemaNameMapping.has(t)}setVariantPlan(t,r){this.variantPlan=t,this.reachability=r;let n=[this.ir.groupedSchemas.rootSchemas,...Object.values(this.ir.groupedSchemas.namespacedSchemas)];for(let i of n)for(let[o,s]of Object.entries(i))if(t.needsBothVariants.has(o)&&s.type==="object"){let a=s.nameOverride??s.generatedName;this.schemaNameMapping.set(a,`${a}Read`)}}needsBothVariants(t){return this.variantPlan?.needsBothVariants.has(t)??!1}isRequestOnlyWithReadonly(t){return this.variantPlan?.requestOnlyWithReadonly.has(t)??!1}isResponseReachable(t){return this.reachability==null?this.ir.nonRequestReferencedSchemas.has(t):this.reachability.responseReachable.has(t)}isRequestOnly(t){return this.reachability==null?!this.ir.nonRequestReferencedSchemas.has(t):this.reachability.requestReachable.has(t)&&!this.reachability.responseReachable.has(t)}getSchemaFinalName(t,r){return!this.options.respectReadonlySchemas||r==="write"?t:this.schemaNameMapping.get(t)??t}}});function Lso(e){let t=new GOr(e);return t.options.respectOptionalRequestBody&&t.logger.warn("The `respect-optional-request-body` setting is deprecated and no longer has any effect. A request body that OpenAPI does not mark as required is now always described as omittable in the IR, and each SDK generator opts in to that behaviour through its own configuration."),Klc(t)}var tpc=h(()=>{"use strict";Nso();epc()});var qOr=h(()=>{"use strict";Rno();tpc();UOr()});var a2f,rpc,c2f,u2f,l2f,p2f,Db,f2f,d2f,iNt,oNt,m2f,OF,npc,ipc,opc,spc,apc,cpc,upc,lpc,ppc,fpc,dpc,mpc,hpc,gpc,Apc,ypc,bpc,Vso,h2f,g2f,Epc,fD0,dD0,mD0,hD0,gD0,AD0,TXe,yD0,sNt,WOr,bD0,ED0,ID0,vD0,Er,is=h(()=>{"use strict";a2f=Object.create,rpc=Object.defineProperty,c2f=Object.getOwnPropertyDescriptor,u2f=Object.getOwnPropertyNames,l2f=Object.getPrototypeOf,p2f=Object.prototype.hasOwnProperty,Db=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),f2f=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=u2f(t),o=0,s=i.length,a;o<s;o++)a=i[o],!p2f.call(e,a)&&a!==r&&rpc(e,a,{get:(c=>t[c]).bind(null,a),enumerable:!(n=c2f(t,a))||n.enumerable});return e},d2f=(e,t,r)=>(r=e!=null?a2f(l2f(e)):{},f2f(t||!e||!e.__esModule?rpc(r,"default",{value:e,enumerable:!0}):r,e)),iNt=Db(((e,t)=>{function r(c){return typeof c>"u"||c===null}function n(c){return typeof c=="object"&&c!==null}function i(c){return Array.isArray(c)?c:r(c)?[]:[c]}function o(c,u){if(u){let l=Object.keys(u);for(let p=0,d=l.length;p<d;p+=1){let f=l[p];c[f]=u[f]}}return c}function s(c,u){let l="";for(let p=0;p<u;p+=1)l+=c;return l}function a(c){return c===0&&Number.NEGATIVE_INFINITY===1/c}t.exports.isNothing=r,t.exports.isObject=n,t.exports.toArray=i,t.exports.repeat=s,t.exports.isNegativeZero=a,t.exports.extend=o})),oNt=Db(((e,t)=>{function r(i,o){let s="",a=i.reason||"(unknown reason)";return i.mark?(i.mark.name&&(s+='in "'+i.mark.name+'" '),s+="("+(i.mark.line+1)+":"+(i.mark.column+1)+")",!o&&i.mark.snippet&&(s+=`
176
176
 
@@ -474,7 +474,7 @@ return `+str.trim()+`;
474
474
  `&&(e.content=e.content.slice(1))),f6c(e,r),(r.sections===!0||typeof r.section=="function")&&fbd(e,r.section),e}WF.engines=mbd;WF.stringify=function(e,t,r){return typeof e=="string"&&(e=WF(e,r)),dbd(e,t,r)};WF.read=function(e,t){let r=pbd.readFileSync(e,"utf8"),n=WF(r,t);return n.path=e,n};WF.test=function(e,t){return d6c.startsWith(e,dyo(t).delimiters[0])};WF.language=function(e,t){let n=dyo(t).delimiters[0];WF.test(e)&&(e=e.slice(n.length));let i=e.slice(0,e.search(/\r?\n/));return{raw:i,name:i?i.trim():""}};WF.cache={};WF.clearCache=function(){WF.cache={}};m6c.exports=WF});function iQr({name:e}){return e.replace(/\.(md|mdx)$/i,"").toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}function hyo({name:e}){return e.replace(/\.(md|mdx)$/i,"").replace(/[-_]/g," ").replace(/\b\w/g,t=>t.toUpperCase())}async function oQr({absolutePath:e,readFileFn:t=(r,n)=>(0,myo.readFile)(r,n)}){try{let r=await t(e,"utf-8"),{data:n}=(0,g6c.default)(r),i;if(n.position!=null){let c=typeof n.position=="string"?parseFloat(n.position):n.position;typeof c=="number"&&Number.isFinite(c)&&(i=c)}let o=typeof n.title=="string"&&n.title.trim().length>0?n.title.trim():void 0,s=n.hidden===!0?!0:void 0,a=n.noindex===!0?!0:void 0;return{position:i,title:o,hidden:s,noindex:a}}catch{return{position:void 0,title:void 0,hidden:void 0,noindex:void 0}}}function h6c({frontmatterTitle:e,useFrontmatterTitles:t,fallbackName:r}){return t&&e!=null?e:hyo({name:r})}async function gyo({directoryPath:e,titleSource:t,getDir:r=dy,readFileFn:n=(i,o)=>(0,myo.readFile)(i,o)}){let i=await r(e),o=t==="frontmatter",s=i.filter(d=>d.type==="file"&&!d.name.startsWith("_")&&(d.name.toLowerCase().endsWith(".md")||d.name.toLowerCase().endsWith(".mdx"))),a=i.filter(d=>d.type==="directory"&&!d.name.startsWith("_")),c=await Promise.all(s.map(d=>oQr({absolutePath:d.absolutePath,readFileFn:n}))),u=s.map((d,f)=>{let m=c[f];return{type:"page",title:h6c({frontmatterTitle:m?.title,useFrontmatterTitles:o,fallbackName:d.name}),absolutePath:d.absolutePath,slug:iQr({name:d.name}),icon:void 0,hidden:m?.hidden,noindex:m?.noindex,viewers:void 0,orphaned:void 0,featureFlags:void 0,availability:void 0}}),l=await Promise.all(a.map(async d=>{let f=await gyo({directoryPath:d.absolutePath,titleSource:t,getDir:r,readFileFn:n}),m=f.find(E=>E.type==="page"&&(E.slug==="index"||E.absolutePath.toLowerCase().endsWith("/index.mdx")||E.absolutePath.toLowerCase().endsWith("/index.md"))),g=m?f.filter(E=>E!==m):f,A=m?.type==="page"?await oQr({absolutePath:m.absolutePath,readFileFn:n}):void 0;return{section:{type:"section",title:h6c({frontmatterTitle:A?.title,useFrontmatterTitles:o,fallbackName:d.name}),slug:iQr({name:d.name}),icon:void 0,contents:g,collapsed:void 0,collapsible:void 0,collapsedByDefault:void 0,hidden:A?.hidden,skipUrlSlug:!1,overviewAbsolutePath:m?.type==="page"?m.absolutePath:void 0,viewers:void 0,orphaned:void 0,featureFlags:void 0,availability:void 0},position:A?.position}})),p=[...u.map((d,f)=>({item:d,title:d.type==="page"?d.title:"",position:c[f]?.position})),...l.map(d=>({item:d.section,title:d.section.type==="section"?d.section.title:"",position:d.position}))];return p.sort((d,f)=>{let m=typeof d.position=="number",g=typeof f.position=="number";if(m&&!g)return-1;if(!m&&g)return 1;if(typeof d.position=="number"&&typeof f.position=="number"){let A=d.position-f.position;return A!==0?A:d.title.localeCompare(f.title,void 0,{sensitivity:"base"})}return d.title.localeCompare(f.title,void 0,{sensitivity:"base"})}),p.map(d=>d.item)}var myo,g6c,A6c=h(()=>{"use strict";Jt();myo=require("fs/promises"),g6c=ye(wQ(),1)});async function NMt({redirects:e,absoluteFilepathToDocsConfig:t}){let{redirects:r,errors:n}=await aQr({redirects:e,absoluteFilepathToDocsConfig:t}),[i]=n;if(i!=null)throw new S({message:n.length===1?i:n.map(o=>`- ${o}`).join(`
475
475
  `),code:S.Code.ParseError});return r}async function aQr({redirects:e,absoluteFilepathToDocsConfig:t}){if(e==null)return{redirects:void 0,errors:[]};let r=typeof e=="string"?[e]:e;if(bbd(r))return{redirects:r,errors:[]};if(!y6c(r))return{redirects:[],errors:["Failed to load redirects: `redirects` must be either a list of redirects or a list of filepaths, not a mix of both"]};let n=await Promise.allSettled(r.map(s=>Ibd({filepath:s,absoluteFilepathToDocsConfig:t}))),i=[],o=[];for(let s of n)if(s.status==="fulfilled")o.push(...s.value);else if(s.reason instanceof S)i.push(s.reason.message);else throw s.reason;return{redirects:o,errors:i}}function Ayo({redirects:e,absoluteFilepathToDocsConfig:t}){if(e==null)return[];let r=typeof e=="string"?[e]:e;return y6c(r)?r.filter(n=>n.trim().length>0).map(n=>Jn(An(t),n)):[]}function bbd(e){return e.every(t=>typeof t!="string")}function y6c(e){return e.every(t=>typeof t=="string")}function Ebd(e){return e instanceof Error&&"code"in e&&e.code==="ENOENT"}async function Ibd({filepath:e,absoluteFilepathToDocsConfig:t}){if(e.trim().length===0)throw new S({message:"Failed to load redirects: `redirects` contains an empty filepath",code:S.Code.ParseError});let r=Jn(An(t),e),n;try{n=await(0,sQr.stat)(r)}catch(a){throw new S({message:Ebd(a)?`Failed to load redirects: ${r} does not exist`:`Failed to load redirects from ${r}: ${Fn(a)}`,code:S.Code.ParseError})}if(!n.isFile())throw new S({message:`Failed to load redirects: ${r} is not a file`,code:S.Code.ParseError});let i;try{i=(await(0,sQr.readFile)(r)).toString()}catch(a){throw new S({message:`Failed to read ${r}: ${Fn(a)}`,code:S.Code.ParseError})}let o;try{o=Er.load(i)}catch(a){throw a instanceof Er.YAMLException?new S({message:`Failed to parse ${r}: ${a.message}`,code:S.Code.ParseError}):a}if(o==null)throw new S({message:`Failed to parse ${r}: the file is empty and must contain a \`redirects\` list`,code:S.Code.ParseError});if(Array.isArray(o))throw new S({message:`Failed to parse ${r}: the file must nest the list under a top-level \`redirects\` key`,code:S.Code.ParseError});let s=ybd.safeParse(LO(o));if(!s.success)throw new S({message:`Failed to parse ${r}. The file must contain only a \`redirects\` list:
476
476
  ${s.error.issues.map(a=>` - ${a.path.join(".")}: ${a.message}`).join(`
477
- `)}`,code:S.Code.ParseError});return s.data.redirects}var sQr,ybd,yyo=h(()=>{"use strict";Ea();Bt();Jt();jt();sQr=require("fs/promises");is();ybd=Hc.DocsYmlSchemas.RedirectsFile});function vbd(e){return!e||e.startsWith("<")?!1:e.startsWith(".")||e.includes("/")||e.includes("\\")||e.includes(":")}function O0(e,t){if(e)return vbd(e)?Qb(e,t):e}async function TMe({rawDocsConfiguration:e,absolutePathToFernFolder:t,absoluteFilepathToDocsConfig:r,context:n,buildRefVersions:i=!0}){let{instances:o,title:s,tabs:a,products:c,versions:u,navigation:l,navbarLinks:p,footerLinks:d,defaultLanguage:f,metadata:m,redirects:g,logo:A,favicon:y,backgroundImage:E,colors:x,typography:I,layout:C,integrations:T,css:P,js:D,aiChat:O,aiSearch:z,agents:J,pageActions:Y,experimental:ee}=e,oe=Bet(e.landingPage,r),le=e.settings?.folderTitleSource,ne=Mbd({tabs:a,products:c,versions:u,navigation:l,absolutePathToFernFolder:t,absolutePathToConfig:r,context:n,folderTitleSource:le,buildRefVersions:i}),pe=ne.then(_=>UCc({files:Gle({navigation:_,landingPage:oe}),absolutePathToFernFolder:t})),Be=xbd(A,r),Se=Qb(y,r),ae=Cbd(E,r),de=I!=null?Lbd({rawTypography:I,absoluteFilepathToDocsConfig:r}):void 0,Oe=NMt({redirects:g,absoluteFilepathToDocsConfig:r}),Ce=wbd(P,r),Ne=Obd(D,r),Xe=u0d(m,r,n),ut=Nbd({rawPath:e.integrations?.context7,absoluteFilepathToDocsConfig:r,context:n}),At=byo({rawPath:J?.llmsTxt,absoluteFilepathToDocsConfig:r}),st=byo({rawPath:J?.llmsFullTxt,absoluteFilepathToDocsConfig:r}),Ht=byo({rawPath:J?.robotsTxt,absoluteFilepathToDocsConfig:r}),cr=e.translations?.map(_=>Hc.DocsYmlSchemas.normalizeTranslationConfig(_)).find(_=>_.default===!0)?.lang??(e.translations?.[0]!=null?Hc.DocsYmlSchemas.normalizeTranslationConfig(e.translations[0]).lang:void 0),Ae=pe.then(_=>p0d({translations:e.translations,defaultLocale:cr,pages:_,absolutePathToFernFolder:t,context:n})),me=f0d({translations:e.translations,defaultLocale:cr,absolutePathToFernFolder:t,context:n}),[Ue,tt,be,Re,vt,ot,Ke,er,Kt,ar,Kn,pn,_n]=await Promise.all([ne,pe,de,Ce,Ne,Xe,Oe,ut,At,st,Ht,Ae,me]),Qt=kbd(e.theme),sr=Qt?.tabs!=null&&typeof Qt.tabs=="object"?Qt.tabs:void 0,Ge=sr?.placement??C?.tabsPlacement??"sidebar",Le=sr?.alignment??"left";return Ge==="sidebar"&&Le==="center"&&n.logger.warn("Tabs alignment 'center' is not supported when tabs placement is 'sidebar'. The alignment will be ignored."),{title:s,instances:o,roles:e.roles,libraries:C6c(e.libraries),pages:tt,translationPages:pn,translationNavigationOverlays:_n,landingPage:oe,navigation:Ue,navbarLinks:w6c(p,r),footerLinks:c0d(d),defaultLanguage:f,languages:e.languages,translations:e.translations,announcement:e.announcement,metadata:ot,redirects:Ke,logo:Be,favicon:Se,backgroundImage:ae,colors:MCc(x,n),typography:be,layout:jbd(C,sr?.alignment,sr?.placement),settings:Fbd(e.settings),context7File:er,llmsTxtFile:Kt,llmsFullTxtFile:ar,robotsTxtFile:Kn,theme:Qt,globalTheme:e.globalTheme,analyticsConfig:{...e.analytics,intercom:e.analytics?.intercom?{...e.analytics.intercom,appId:e.analytics.intercom.appId,apiBase:e.analytics.intercom.apiBase}:void 0,fullstory:e.analytics?.fullstory,posthog:e.analytics?.posthog?{...e.analytics.posthog,apiKey:e.analytics.posthog.apiKey,endpoint:e.analytics.posthog.endpoint}:void 0,segment:e.analytics?.segment,gtm:e.analytics?.gtm,ga4:e.analytics?.ga4,amplitude:void 0,mixpanel:void 0,hotjar:void 0,koala:void 0,logrocket:void 0,pirsch:void 0,plausible:void 0,fathom:void 0,clearbit:void 0,heap:void 0},integrations:T!=null?{intercom:T.intercom??void 0}:void 0,css:Re,js:vt,aiChatConfig:z??O,agents:J,pageActions:Bbd(Y,r),header:Qb(e.header,r),footer:Qb(e.footer,r),experimental:ee}}function xbd(e,t){return e!=null?{dark:Qb(e.dark,t),light:Qb(e.light,t),height:e.height,href:e.href!=null?ln.Url(e.href):void 0,rightText:e.rightText}:void 0}function Cbd(e,t){if(e!=null)if(typeof e=="string"){let r=Qb(e,t);return{dark:r,light:r}}else{let r=Qb(e.dark,t),n=Qb(e.light,t);return{dark:r,light:n}}}async function wbd(e,t){if(e==null)return;let r=typeof e=="string"?[e]:e;return{inline:await Promise.all(r.map(async n=>(await(0,Mpe.readFile)(Qb(n,t))).toString()))}}function Sbd(e){return Object.hasOwn(e,"url")}function Tbd(e){return Object.hasOwn(e,"path")}async function Obd(e,t){let r=[],n=[];if(e==null)return{files:[]};let i=Array.isArray(e)?e:[e];for(let o of i)typeof o=="string"?n.push({absolutePath:Qb(o,t)}):Sbd(o)?r.push({strategy:o.strategy,url:ln.Url(o.url),disableSri:o.disableSri}):Tbd(o)&&n.push({absolutePath:Qb(o.path,t),strategy:o.strategy});return{remote:r,files:n}}function Bbd(e,t){return e==null?void 0:{default:e.default!=null?Dbd(e.default):void 0,options:{askAi:e.options?.askAi??!0,copyPage:e.options?.copyPage??!0,viewAsMarkdown:e.options?.viewAsMarkdown??!0,openAi:e.options?.chatgpt??!0,claude:e.options?.claude??!0,cursor:e.options?.cursor??!0,claudeCode:e.options?.claudeCode??!0,mcp:e.options?.mcp??!0,vscode:e.options?.vscode??!1,custom:(e.options?.custom??[]).map(n=>Rbd(n,t)),skills:Pbd(e.options?.skills)}}}function Pbd(e){if(e!=null)return{title:e.title,description:e.description,learnMoreUrl:e.learnMoreUrl,repository:e.repository,installCommand:e.installCommand,skills:e.skills?.map(t=>({name:t.name,description:t.description,url:t.url}))}}function Dbd(e){switch(e){case"copy-page":return"copyPage";case"view-as-markdown":return"viewAsMarkdown";case"ask-ai":return"askAi";case"chatgpt":return"openAi";case"claude":return"claude";case"cursor":return"cursor";case"claude-code":return"claudeCode";case"vscode":return"vscode";default:Ee(e)}}function Rbd(e,t){return{title:e.title,subtitle:e.subtitle,url:e.url,icon:O0(e.icon,t),default:e.default}}function kbd(e){if(e==null)return;let t;if(e.tabs!=null&&typeof e.tabs=="object"){let r=e.tabs;t={style:r.style??"default",alignment:r.alignment,placement:r.placement}}else t=e.tabs??"default";return{sidebar:e.sidebar??"default",tabs:t,body:e.body??"default",pageActions:e.pageActions??"default",footerNav:e.footerNav??"default",languageSwitcher:e.languageSwitcher??"default",productSwitcher:e.productSwitcher??"default"}}function Fbd(e){if(e==null)return;let t=(e.search?.defaultFilterByCurrentProduct??!1)||(e.defaultSearchFilters??!1),r=e.search?.prioritizeCurrentProduct??!1;return{darkModeCode:e.darkModeCode??!1,defaultSearchFilters:t,search:{prioritizeCurrentProduct:r,defaultFilterByCurrentProduct:t,externalSitemaps:void 0},language:e.language??"en",disableSearch:e.disableSearch??!1,hide404Page:e.hide404Page??!1,httpSnippets:e.httpSnippets??!0,searchText:e.searchText??void 0,useJavascriptAsTypescript:e.useJavascriptAsTypescript??!1,disableExplorerProxy:e.disableExplorerProxy??!1,disableEnvironmentEditing:e.disableEnvironmentEditing??!1,disableAnalytics:e.disableAnalytics??!1,websocketOneofDisplay:e.websocketOneofDisplay??void 0}}async function byo({rawPath:e,absoluteFilepathToDocsConfig:t}){if(e==null)return;let r=Qb(e,t);return await(0,Mpe.readFile)(r,"utf8"),r}async function Nbd({rawPath:e,absoluteFilepathToDocsConfig:t,context:r}){if(e==null)return;let n=Qb(e,t),i=await(0,Mpe.readFile)(n,"utf8");try{JSON.parse(i)}catch(o){r.failAndThrow(`Invalid JSON in Context7 config file: ${e}`,o instanceof Error?o.message:String(o),{code:S.Code.ConfigError})}return n}function jbd(e,t,r){if(e==null&&t==null&&r==null)return;let n=t==="center"?"CENTER":"LEFT",i=r==="header"?"HEADER":r==="sidebar"?"SIDEBAR":void 0;return e==null?{...i!=null?{tabsPlacement:i}:{},tabsAlignment:n}:{pageWidth:e.pageWidth?.trim().toLowerCase()==="full"?{type:"full"}:cQr(e.pageWidth),contentWidth:cQr(e.contentWidth),sidebarWidth:cQr(e.sidebarWidth),headerHeight:cQr(e.headerHeight),searchbarPlacement:e.searchbarPlacement==="header"?"HEADER":e.searchbarPlacement==="header-tabs"?"HEADER_TABS":"SIDEBAR",switcherPlacement:!e.switcherPlacement||e.switcherPlacement==="header"?"HEADER":"SIDEBAR",tabsPlacement:i??(e.tabsPlacement==="header"?"HEADER":"SIDEBAR"),contentAlignment:e.contentAlignment==="left"?"LEFT":"CENTER",headerPosition:e.headerPosition==="static"?"ABSOLUTE":"FIXED",disableHeader:e.disableHeader??!1,hideNavLinks:e.hideNavLinks??!1,hideFeedback:e.hideFeedback??!1,mobileToc:e.mobileToc??!1,changelogLayout:e.changelogLayout,apiReferenceLayout:e.apiReferenceLayout,showNavAvailabilityBadges:e.showNavAvailabilityBadges,tabsAlignment:n}}function cQr(e){if(e==null)return;let t=e.trim().toLowerCase(),r=t.match(/^(\d+)px$/);if(r!=null&&r[1]!=null)return{type:"px",value:parseFloat(r[1])};let n=t.match(/^(\d+)rem$/);if(n!=null&&n[1]!=null)return{type:"rem",value:parseFloat(n[1])}}async function Qbd({version:e,absolutePathToFernFolder:t,context:r,folderTitleSource:n}){if(e.path==null)throw new S({message:`Version '${e.displayName}' must specify a 'path' or 'ref'.`,code:S.Code.ConfigError});let i=Jn(t,ve.of(e.path)),o;try{o=Er.load((await(0,Mpe.readFile)(i)).toString())}catch(l){throw l instanceof Er.YAMLException?new S({message:`Failed to parse version file ${e.path}: ${l.message}`,code:S.Code.ParseError}):l}let s=[],a=LO(o,[],s);s.length>0&&r.logger.warn(`Version file ${e.path} contained null/undefined sections that were ignored: ${s.map(l=>l.join(".")).join(", ")}`);let c=Hc.RawSchemas.Serializer.VersionFileConfig.parseOrThrow(a),u=await pQr({tabs:c.tabs,rawNavigationConfig:c.navigation,absolutePathToFernFolder:t,absolutePathToConfig:i,context:r,folderTitleSource:n});return{landingPage:Bet(c.landingPage,i),version:e.displayName,navigation:u,availability:e.availability,slug:e.slug,hidden:e.hidden,viewers:_w(e.viewers),orphaned:e.orphaned,featureFlags:Uw(e.featureFlag),announcement:e.announcement,contentSource:void 0}}async function zbd({version:e,ref:t,absolutePathToFernFolder:r,context:n,folderTitleSource:i}){let o=await jMc({ref:t,absolutePathToFernFolder:r,context:n}),s=await LMc({materialized:o,context:n}),a=await pQr({tabs:s.tabs,rawNavigationConfig:s.navigation,absolutePathToFernFolder:o.absolutePathToFernFolder,absolutePathToConfig:s.absoluteFilepathToConfig,context:n,folderTitleSource:i});return{landingPage:Bet(s.landingPage,s.absoluteFilepathToConfig),version:e.displayName,navigation:a,availability:e.availability,slug:e.slug,hidden:e.hidden,viewers:_w(e.viewers),orphaned:e.orphaned,featureFlags:Uw(e.featureFlag),announcement:e.announcement,contentSource:{displayVersion:e.displayName,ref:o.ref,sha:o.sha,absolutePathToFernFolder:o.absolutePathToFernFolder,libraries:C6c(s.rawLibraries)}}}async function b6c({versions:e,absolutePathToFernFolder:t,context:r,folderTitleSource:n,buildRefVersions:i=!0}){let o=[];for(let s of e){let a=Ujt(s);if(a==null){o.push(await Qbd({version:s,absolutePathToFernFolder:t,context:r,folderTitleSource:n}));continue}if(s.path!=null)throw new S({message:`Version '${s.displayName}' declares both 'ref' and 'path'. A git-ref-backed version builds its content from the ref, so 'path' is not used. Remove 'path' to build from the ref, or remove 'ref' to build from the working tree.`,code:S.Code.ConfigError});if(!i){r.logger.debug(`Skipping git-ref-backed version '${s.displayName}' (ref '${a}').`);continue}o.push(await zbd({version:s,ref:a,absolutePathToFernFolder:t,context:r,folderTitleSource:n}))}return{type:"versioned",versions:o}}async function Mbd({tabs:e,products:t,versions:r,navigation:n,absolutePathToFernFolder:i,absolutePathToConfig:o,context:s,folderTitleSource:a,buildRefVersions:c=!0}){if(n!=null)return await pQr({tabs:e,rawNavigationConfig:n,absolutePathToFernFolder:i,absolutePathToConfig:o,context:s,folderTitleSource:a});if(t!=null){let u=[];for(let l of t){let p=l.image!=null?Jn(i,l.image):void 0;if("path"in l){let d,f=Jn(i,l.path),m;try{m=Er.load((await(0,Mpe.readFile)(f)).toString())}catch(E){throw E instanceof Er.YAMLException?new S({message:`Failed to parse product file ${l.path}: ${E.message}`,code:S.Code.ParseError}):E}let g=[],A=LO(m,[],g);g.length>0&&s.logger.warn(`Product file ${l.path} contained null/undefined sections that were ignored: ${g.map(E=>E.join(".")).join(", ")}`);let y=Hc.RawSchemas.Serializer.ProductFileConfig.parseOrThrow(A);l.versions!=null&&l.versions.length>0?d=await b6c({versions:l.versions,absolutePathToFernFolder:i,context:s,folderTitleSource:a,buildRefVersions:c}):d=await pQr({tabs:y.tabs,rawNavigationConfig:y.navigation,absolutePathToFernFolder:i,absolutePathToConfig:f,context:s,folderTitleSource:a}),u.push({type:"internal",landingPage:Bet(y.landingPage,f),product:l.displayName,navigation:d,slug:l.slug,subtitle:l.subtitle,icon:O0(l.icon,o)||"fa-solid fa-code",image:p,viewers:_w(l.viewers),orphaned:l.orphaned,featureFlags:Uw(l.featureFlag),announcement:l.announcement})}else if("href"in l&&l.href!=null)u.push({type:"external",product:l.displayName,href:l.href,target:l.target,subtitle:l.subtitle,icon:O0(l.icon,o)||"fa-solid fa-code",image:p,viewers:_w(l.viewers),orphaned:l.orphaned,featureFlags:Uw(l.featureFlag)});else throw new S({message:"Invalid product configuration: product must have either 'path' or valid 'href' property",code:S.Code.ConfigError})}return{type:"productgroup",products:u}}else if(r!=null)return await b6c({versions:r,absolutePathToFernFolder:i,context:s,folderTitleSource:a,buildRefVersions:c});throw new S({message:"Unexpected. Docs have neither navigation or versions defined.",code:S.Code.ConfigError})}function Uw(e){if(e!=null)return typeof e=="string"?[{flag:e,match:!0,fallbackValue:void 0}]:Array.isArray(e)?e.map(t=>({flag:t.flag,match:t.match,fallbackValue:t.fallbackValue})):[{flag:e.flag,match:e.match??!0,fallbackValue:e.fallbackValue}]}async function Lbd({rawTypography:e,absoluteFilepathToDocsConfig:t}){return{headingsFont:e.headingsFont!=null?await Eyo({rawFontConfig:e.headingsFont,absoluteFilepathToDocsConfig:t}):void 0,bodyFont:e.bodyFont!=null?await Eyo({rawFontConfig:e.bodyFont,absoluteFilepathToDocsConfig:t}):void 0,codeFont:e.codeFont!=null?await Eyo({rawFontConfig:e.codeFont,absoluteFilepathToDocsConfig:t}):void 0}}async function Eyo({rawFontConfig:e,absoluteFilepathToDocsConfig:t}){return{name:e.name,variants:await Vbd(e,t),display:e.display,fallback:e.fallback,fontVariationSettings:e.fontVariationSettings}}function Vbd(e,t){let r=[];return e.path!=null&&r.push({path:e.path,weight:e.weight,style:e.style}),e.paths?.forEach(n=>{typeof n=="string"?r.push({path:n,weight:e.weight,style:e.style}):r.push({path:n.path,weight:n.weight??e.weight,style:n.style??e.style})}),Promise.all(r.map(async n=>({absolutePath:Qb(n.path,t),weight:Ubd(n.weight),style:n.style})))}function Ubd(e){return e==null?void 0:typeof e=="number"?[e.toString()]:e.split(/\D+/).filter(r=>r!==""&&["100","200","300","400","500","600","700","800","900"].includes(r))}async function _bd({tabs:e,item:t,absolutePathToFernFolder:r,absolutePathToConfig:n,context:i,folderTitleSource:o}){let s=e[t.tab];if(s==null)throw new S({message:`Tab ${t.tab} is not defined in the tabs config.`,code:S.Code.ConfigError});if(a0d(t)){let c=await Promise.all(t.variants.map(async u=>{let l=await Promise.all(u.layout.map(p=>fQr({rawConfig:p,absolutePathToFernFolder:r,absolutePathToConfig:n,context:i,folderTitleSource:o})));return{title:u.title,subtitle:u.subtitle,icon:O0(u.icon,n),layout:l,slug:u.slug,skipUrlSlug:u.skipSlug,hidden:u.hidden,default:u.default,viewers:_w(u.viewers),orphaned:u.orphaned,featureFlags:Uw(u.featureFlag)}}));return{title:s.displayName,icon:O0(s.icon,n),slug:s.slug,skipUrlSlug:s.skipSlug,hidden:s.hidden,child:{type:"variants",variants:c},viewers:_w(s.viewers),orphaned:s.orphaned,featureFlags:Uw(s.featureFlag)}}if(s0d(t)){let c=await Promise.all(t.layout.map(u=>fQr({rawConfig:u,absolutePathToFernFolder:r,absolutePathToConfig:n,context:i,folderTitleSource:o})));return{title:s.displayName,icon:O0(s.icon,n),slug:s.slug,skipUrlSlug:s.skipSlug,hidden:s.hidden,child:{type:"layout",layout:c},viewers:_w(s.viewers),orphaned:s.orphaned,featureFlags:Uw(s.featureFlag)}}if(s.href!=null)return{title:s.displayName,icon:O0(s.icon,n),slug:s.slug,skipUrlSlug:s.skipSlug,hidden:s.hidden,child:{type:"link",href:s.href,target:s.target},viewers:_w(s.viewers),orphaned:s.orphaned,featureFlags:Uw(s.featureFlag)};let a=Hc.getChangelogFolderFromTabConfig(s);if(a!=null)return{title:s.displayName,icon:O0(s.icon,n),slug:s.slug,skipUrlSlug:s.skipSlug,hidden:s.hidden,child:{type:"changelog",changelog:await qS(Qb(a,n),"{md,mdx}")},viewers:_w(s.viewers),orphaned:s.orphaned,featureFlags:Uw(s.featureFlag)};Ee(s)}async function pQr({tabs:e={},rawNavigationConfig:t,absolutePathToFernFolder:r,absolutePathToConfig:n,context:i,folderTitleSource:o}){return o0d(t)?{type:"tabbed",items:await Promise.all(t.map(a=>_bd({tabs:e,item:a,absolutePathToFernFolder:r,absolutePathToConfig:n,context:i,folderTitleSource:o})))}:{type:"untabbed",items:await Promise.all(t.map(s=>fQr({rawConfig:s,absolutePathToFernFolder:r,absolutePathToConfig:n,context:i,folderTitleSource:o})))}}async function qbd({rawConfig:e,absolutePathToFernFolder:t,absolutePathToConfig:r,context:n,folderTitleSource:i}){let o=Qb(e.folder,r);await Xt(o)||n.failAndThrow(`Folder not found: ${e.folder}`,void 0,{code:S.Code.ConfigError}),vyo({context:n,sectionTitle:e.folder,collapsed:e.collapsed??void 0,collapsible:e.collapsible??void 0,collapsedByDefault:e.collapsedByDefault??void 0});let s=e.titleSource??i,a=await gyo({directoryPath:o,titleSource:s}),c=a.find(m=>m.type==="page"&&(m.slug==="index"||m.absolutePath.toLowerCase().endsWith("/index.mdx")||m.absolutePath.toLowerCase().endsWith("/index.md"))),u=c?a.filter(m=>m!==c):a,l=BW.default.basename(o),p=s==="frontmatter"&&c?.type==="page"?(await oQr({absolutePath:c.absolutePath})).title:void 0,d=e.title??p??hyo({name:l}),f=e.slug??iQr({name:l});return{type:"section",title:d,icon:O0(e.icon,r),contents:u,slug:f,collapsed:e.collapsed??void 0,collapsible:e.collapsible??void 0,collapsedByDefault:e.collapsedByDefault??void 0,hidden:e.hidden??void 0,skipUrlSlug:e.skipSlug??!1,overviewAbsolutePath:c?.type==="page"?c.absolutePath:void 0,viewers:_w(e.viewers),orphaned:e.orphaned,featureFlags:Uw(e.featureFlag),availability:e.availability}}async function fQr({rawConfig:e,absolutePathToFernFolder:t,absolutePathToConfig:r,context:n,folderTitleSource:i}){let o=Xbd(e);if(v6c(o))return Bet(o,r);if(Hbd(o))return vyo({context:n,sectionTitle:o.section,collapsed:o.collapsed??void 0,collapsible:o.collapsible??void 0,collapsedByDefault:o.collapsedByDefault??void 0}),{type:"section",title:o.section,icon:O0(o.icon,r),contents:await Promise.all(o.contents.map(s=>fQr({rawConfig:s,absolutePathToFernFolder:t,absolutePathToConfig:r,context:n,folderTitleSource:i}))),slug:o.slug??void 0,collapsed:o.collapsed??void 0,collapsible:o.collapsible??void 0,collapsedByDefault:o.collapsedByDefault??void 0,hidden:o.hidden??void 0,skipUrlSlug:o.skipSlug??!1,overviewAbsolutePath:Qb(o.path,r),viewers:_w(o.viewers),orphaned:o.orphaned,featureFlags:Uw(o.featureFlag),availability:o.availability};if(Kbd(o))return{type:"apiSection",openrpc:o.openrpc,title:o.api,icon:O0(o.icon,r),apiName:o.apiName??void 0,audiences:o.audiences!=null?{type:"select",audiences:jMt(o.audiences)??[]}:{type:"all"},availability:o.availability,showErrors:o.displayErrors??!0,tagDescriptionPages:o.tagDescriptionPages??!1,snippetsConfiguration:o.snippets!=null?Wbd({rawConfig:o.snippets}):void 0,postman:o.postman,navigation:o.layout?.flatMap(s=>lQr(s,r,n))??[],overviewAbsolutePath:Qb(o.summary,r),collapsed:o.collapsed??void 0,hidden:o.hidden??void 0,slug:o.slug,skipUrlSlug:o.skipSlug??!1,flattened:o.flattened??!1,alphabetized:o.alphabetized??!1,paginated:o.paginated??!1,playground:o.playground,viewers:_w(o.viewers),orphaned:o.orphaned,featureFlags:Uw(o.featureFlag)};if(x6c(o))return{type:"link",text:o.link,url:o.href,icon:O0(o.icon,r),target:o.target};if(Jbd(o))return{type:"changelog",changelog:await qS(Qb(o.changelog,r),"{md,mdx}"),hidden:o.hidden??!1,icon:O0(o.icon,r),title:o.title??Gbd,slug:o.slug,viewers:_w(o.viewers),orphaned:o.orphaned,featureFlags:Uw(o.featureFlag)};if(Zbd(o))return await qbd({rawConfig:o,absolutePathToFernFolder:t,absolutePathToConfig:r,context:n,folderTitleSource:i});if($bd(o))return{type:"librarySection",libraryName:o.library,title:o.title??void 0,slug:o.slug??void 0,viewers:_w(o.viewers),orphaned:o.orphaned,featureFlags:Uw(o.featureFlag)};Ee(o)}function Bet(e,t){if(e!=null)return{type:"page",title:e.page,absolutePath:Qb(e.path,t),slug:e.slug,icon:O0(e.icon,t),hidden:e.hidden,noindex:e.noindex,viewers:_w(e.viewers),orphaned:e.orphaned,featureFlags:Uw(e.featureFlag),availability:e.availability}}function lQr(e,t,r){return typeof e=="string"?[{type:"item",value:e}]:v6c(e)?[Bet(e,t)]:x6c(e)?[{type:"link",text:e.link,url:e.href,icon:O0(e.icon,t),target:e.target}]:t0d(e)?(r!=null&&vyo({context:r,sectionTitle:e.section,collapsed:e.collapsed??void 0,collapsible:e.collapsible??void 0,collapsedByDefault:e.collapsedByDefault??void 0}),[{type:"section",title:e.section,referencedSubpackages:e.referencedPackages??[],overviewAbsolutePath:Qb(e.summary,t),contents:e.contents?.flatMap(n=>lQr(n,t,r))??[],slug:e.slug,hidden:e.hidden,skipUrlSlug:e.skipSlug,collapsed:e.collapsed??void 0,collapsible:e.collapsible??void 0,collapsedByDefault:e.collapsedByDefault??void 0,availability:e.availability,icon:O0(e.icon,t),playground:e.playground,viewers:_w(e.viewers),orphaned:e.orphaned,featureFlags:Uw(e.featureFlag)}]):r0d(e)?[{type:"endpoint",endpoint:e.endpoint,title:e.title,icon:O0(e.icon,t),slug:e.slug,hidden:e.hidden,availability:e.availability,playground:e.playground,viewers:_w(e.viewers),orphaned:e.orphaned,featureFlags:Uw(e.featureFlag)}]:n0d(e)?[{type:"operation",operation:e.operation,title:e.title,slug:e.slug,hidden:e.hidden,availability:e.availability,viewers:_w(e.viewers),orphaned:e.orphaned,featureFlags:Uw(e.featureFlag)}]:Object.entries(e).map(([n,i])=>i0d(i)?{type:"package",title:i.title,package:n,overviewAbsolutePath:Qb(i.summary,t),contents:i.contents?.flatMap(o=>lQr(o,t,r))??[],slug:i.slug,hidden:i.hidden,skipUrlSlug:i.skipSlug,icon:O0(i.icon,t),playground:i.playground,availability:i.availability,viewers:_w(i.viewers),orphaned:i.orphaned,featureFlags:Uw(i.featureFlag)}:{type:"package",title:void 0,package:n,overviewAbsolutePath:void 0,contents:i.flatMap(o=>lQr(o,t,r)),hidden:!1,slug:void 0,skipUrlSlug:!1,icon:void 0,playground:void 0,availability:void 0,viewers:void 0,orphaned:void 0,featureFlags:void 0})}function Wbd({rawConfig:e}){return{python:e.python,typescript:e.typescript,go:e.go,java:e.java,ruby:e.ruby,csharp:e.csharp,php:e.php,swift:e.swift}}function v6c(e){return ro(e)&&typeof e.page=="string"&&typeof e.path=="string"}function Hbd(e){return e.section!=null}function Kbd(e){return e.api!=null}function x6c(e){return Hc.RawSchemas,ro(e)&&typeof e.link=="string"&&typeof e.href=="string"}function Jbd(e){return ro(e)&&typeof e.changelog=="string"}function Ybd(e){return ro(e)&&typeof e.blog=="string"}function Xbd(e){if(!Ybd(e))return e;let{blog:t,...r}=e;return{...r,changelog:t,title:e.title??Hc.DEFAULT_BLOG_TITLE}}function Zbd(e){return ro(e)&&typeof e.folder=="string"}function $bd(e){return ro(e)&&typeof e.library=="string"}function e0d(e){return"git"in e}function C6c(e){if(e==null)return;let t={};for(let[r,n]of Object.entries(e)){let i=e0d(n.input)?{type:"git",git:n.input.git,subpath:n.input.subpath,ref:n.input.ref}:{type:"path",path:n.input.path};t[r]={input:i,output:{path:n.output.path},lang:n.lang}}return t}function t0d(e){return ro(e)&&typeof e.section=="string"&&Array.isArray(e.contents)}function r0d(e){return ro(e)&&typeof e.endpoint=="string"}function n0d(e){return ro(e)&&typeof e.operation=="string"}function i0d(e){return!Array.isArray(e)}function Qb(e,t){if(e!=null)return Jn(An(t),e)}function o0d(e){return Array.isArray(e)&&e.length>0&&e[0].tab!=null}function s0d(e){return"layout"in e&&Array.isArray(e.layout)}function a0d(e){return"variants"in e&&Array.isArray(e.variants)}function w6c(e,t){return e?.map(r=>{if(r.type==="github"){let i=r.value;return typeof i=="string"?{type:"github",url:ln.Url(i),viewers:void 0,target:void 0}:{type:"github",url:ln.Url(i.url),viewers:Iyo(i.viewers),target:i.target}}let n=Iyo(r.viewers);return r.type==="dropdown"?{type:"dropdown",text:r.text,icon:O0(r.icon,t),rightIcon:O0(r.rightIcon,t),rounded:r.rounded,viewers:n,links:r.links?.map(i=>({href:i.href,target:i.target,url:ln.Url(i.url??i.href??"/"),text:i.text,icon:O0(i.icon,t),rightIcon:O0(i.rightIcon,t),rounded:i.rounded,viewers:Iyo(i.viewers)}))??[]}:{type:r.type,text:r.text,url:ln.Url(r.href??r.url??"/"),target:r.target,icon:O0(r.icon,t),rightIcon:O0(r.rightIcon,t),rounded:r.rounded,viewers:n}})}function Iyo(e){if(e!=null)return Array.isArray(e)?e.map(t=>ln.docs.v1.commons.RoleId(t)):[ln.docs.v1.commons.RoleId(e)]}function c0d(e){if(e==null)return;let t=[];if(Object.keys(e).forEach(r=>{let n=e[r];n!=null&&t.push({type:r,value:ln.Url(n)})}),t.length!==0)return t}async function u0d(e,t,r){if(e!=null)return l0d(e,r),{"og:site_name":e.ogSiteName,"og:title":e.ogTitle,"og:description":e.ogDescription,"og:url":e.ogUrl,"og:image":await uQr(e.ogImage,t),"og:image:width":e.ogImageWidth,"og:image:height":e.ogImageHeight,"og:locale":e.ogLocale,"og:logo":await uQr(e.ogLogo,t),"twitter:title":e.twitterTitle,"twitter:description":e.twitterDescription,"twitter:image":await uQr(e.twitterImage,t),"twitter:handle":e.twitterHandle,"twitter:site":e.twitterSite,"twitter:url":e.twitterUrl,"twitter:card":e.twitterCard,"og:dynamic":e.ogDynamic,"og:dynamic:background-image":await uQr(e.ogDynamicBackgroundImage,t),"og:dynamic:text-color":e.ogDynamicTextColor,"og:dynamic:background-color":e.ogDynamicBackgroundColor,"og:dynamic:logo-color":e.ogDynamicLogoColor,"og:dynamic:show-logo":e.ogDynamicShowLogo,"og:dynamic:show-section":e.ogDynamicShowSection,"og:dynamic:show-description":e.ogDynamicShowDescription,"og:dynamic:show-url":e.ogDynamicShowUrl,"og:dynamic:show-gradient":e.ogDynamicShowGradient,nofollow:void 0,noindex:void 0,canonicalHost:e.canonicalHost}}function l0d(e,t){let r=e.ogDynamic===!0,n=[["og:dynamic:background-image",e.ogDynamicBackgroundImage],["og:dynamic:text-color",e.ogDynamicTextColor],["og:dynamic:background-color",e.ogDynamicBackgroundColor],["og:dynamic:logo-color",e.ogDynamicLogoColor],["og:dynamic:show-logo",e.ogDynamicShowLogo],["og:dynamic:show-section",e.ogDynamicShowSection],["og:dynamic:show-description",e.ogDynamicShowDescription],["og:dynamic:show-url",e.ogDynamicShowUrl],["og:dynamic:show-gradient",e.ogDynamicShowGradient]];if(r&&e.ogImage!=null&&t.logger.warn("[metadata] `og:image` is only applied to the homepage when `og:dynamic: true`. All other pages show the dynamically generated image. Remove `og:image` to rely entirely on dynamic generation, or set `og:dynamic: false` to use `og:image` site-wide."),r&&e.twitterImage!=null&&t.logger.warn("[metadata] `twitter:image` is only applied to the homepage when `og:dynamic: true`. All other pages show the dynamically generated image."),!r){let i=n.filter(([,o])=>o!=null).map(([o])=>o);i.length>0&&t.logger.warn(`[metadata] The following settings require \`og:dynamic: true\` and will be ignored: ${i.map(o=>`\`${o}\``).join(", ")}.`)}r&&e.ogDynamicShowLogo===!1&&e.ogDynamicLogoColor!=null&&t.logger.warn("[metadata] `og:dynamic:logo-color` has no effect because `og:dynamic:show-logo: false`. Remove one or the other."),e.ogImage==null&&(e.ogImageWidth!=null||e.ogImageHeight!=null)&&t.logger.warn("[metadata] `og:image:width` / `og:image:height` have no effect without `og:image`."),r&&typeof e.ogDynamicTextColor=="string"&&typeof e.ogDynamicBackgroundColor=="string"&&e.ogDynamicTextColor.trim().toLowerCase()===e.ogDynamicBackgroundColor.trim().toLowerCase()&&t.logger.warn(`[metadata] \`og:dynamic:text-color\` and \`og:dynamic:background-color\` are both set to \`${e.ogDynamicTextColor}\`, which will make text invisible in generated OG images.`)}async function uQr(e,t){if(e==null)return;if(e.startsWith("http"))return{type:"url",value:e};let r=Qb(e,t);return await Xt(r)?{type:"filepath",value:r}:{type:"url",value:e}}function _w(e){if(e!=null){if(typeof e=="string")return[ln.docs.v1.commons.RoleId(e)];if(e.length!==0)return e.map(ln.docs.v1.commons.RoleId)}}function jMt(e){if(e!=null){if(typeof e=="string")return[e];if(e.length!==0)return e}}function vyo({context:e,sectionTitle:t,collapsed:r,collapsible:n,collapsedByDefault:i}){n!=null&&r!=null&&e.failAndThrow(`Section "${t}": cannot use both "collapsible" and the deprecated "collapsed" property. Please use "collapsible" and "collapsed-by-default" instead.`,void 0,{code:S.Code.ConfigError}),i!=null&&n!==!0&&e.failAndThrow(`Section "${t}": "collapsed-by-default" requires "collapsible: true". "collapsed-by-default" has no effect on a non-collapsible section.`,void 0,{code:S.Code.ConfigError})}async function p0d({translations:e,defaultLocale:t,pages:r,absolutePathToFernFolder:n,context:i}){if(e==null||e.length===0)return;let o=BW.default.join(n,"translations"),s={},a=e.map(c=>Hc.DocsYmlSchemas.normalizeTranslationConfig(c));return await Promise.all(a.map(async({lang:c})=>{if(c===t)return;let u=BW.default.join(o,c);if(!await Xt(u)){i.failAndThrow(`Translation directory for locale "${c}" not found.
477
+ `)}`,code:S.Code.ParseError});return s.data.redirects}var sQr,ybd,yyo=h(()=>{"use strict";Ea();Bt();Jt();jt();sQr=require("fs/promises");is();ybd=Hc.DocsYmlSchemas.RedirectsFile});function vbd(e){return!e||e.startsWith("<")?!1:e.startsWith(".")||e.includes("/")||e.includes("\\")||e.includes(":")}function O0(e,t){if(e)return vbd(e)?Qb(e,t):e}async function TMe({rawDocsConfiguration:e,absolutePathToFernFolder:t,absoluteFilepathToDocsConfig:r,context:n,buildRefVersions:i=!0}){let{instances:o,title:s,tabs:a,products:c,versions:u,navigation:l,navbarLinks:p,footerLinks:d,defaultLanguage:f,metadata:m,redirects:g,logo:A,favicon:y,backgroundImage:E,colors:x,typography:I,layout:C,integrations:T,css:P,js:D,aiChat:O,aiSearch:z,agents:J,pageActions:Y,experimental:ee}=e,oe=Bet(e.landingPage,r),le=e.settings?.folderTitleSource,ne=Mbd({tabs:a,products:c,versions:u,navigation:l,absolutePathToFernFolder:t,absolutePathToConfig:r,context:n,folderTitleSource:le,buildRefVersions:i}),pe=ne.then(_=>UCc({files:Gle({navigation:_,landingPage:oe}),absolutePathToFernFolder:t})),Be=xbd(A,r),Se=Qb(y,r),ae=Cbd(E,r),de=I!=null?Lbd({rawTypography:I,absoluteFilepathToDocsConfig:r}):void 0,Oe=NMt({redirects:g,absoluteFilepathToDocsConfig:r}),Ce=wbd(P,r),Ne=Obd(D,r),Xe=u0d(m,r,n),ut=Nbd({rawPath:e.integrations?.context7,absoluteFilepathToDocsConfig:r,context:n}),At=byo({rawPath:J?.llmsTxt,absoluteFilepathToDocsConfig:r}),st=byo({rawPath:J?.llmsFullTxt,absoluteFilepathToDocsConfig:r}),Ht=byo({rawPath:J?.robotsTxt,absoluteFilepathToDocsConfig:r}),cr=e.translations?.map(_=>Hc.DocsYmlSchemas.normalizeTranslationConfig(_)).find(_=>_.default===!0)?.lang??(e.translations?.[0]!=null?Hc.DocsYmlSchemas.normalizeTranslationConfig(e.translations[0]).lang:void 0),Ae=pe.then(_=>p0d({translations:e.translations,defaultLocale:cr,pages:_,absolutePathToFernFolder:t,context:n})),me=f0d({translations:e.translations,defaultLocale:cr,absolutePathToFernFolder:t,context:n}),[Ue,tt,be,Re,vt,ot,Ke,er,Kt,ar,Kn,pn,_n]=await Promise.all([ne,pe,de,Ce,Ne,Xe,Oe,ut,At,st,Ht,Ae,me]),Qt=kbd(e.theme),sr=Qt?.tabs!=null&&typeof Qt.tabs=="object"?Qt.tabs:void 0,Ge=sr?.placement??C?.tabsPlacement??"sidebar",Le=sr?.alignment??"left";return Ge==="sidebar"&&Le==="center"&&n.logger.warn("Tabs alignment 'center' is not supported when tabs placement is 'sidebar'. The alignment will be ignored."),{title:s,instances:o,roles:e.roles,libraries:C6c(e.libraries),pages:tt,translationPages:pn,translationNavigationOverlays:_n,landingPage:oe,navigation:Ue,navbarLinks:w6c(p,r),footerLinks:c0d(d),defaultLanguage:f,languages:e.languages,translations:e.translations,announcement:e.announcement,metadata:ot,redirects:Ke,logo:Be,favicon:Se,backgroundImage:ae,colors:MCc(x,n),typography:be,layout:jbd(C,sr?.alignment,sr?.placement),settings:Fbd(e.settings),context7File:er,llmsTxtFile:Kt,llmsFullTxtFile:ar,robotsTxtFile:Kn,theme:Qt,globalTheme:e.globalTheme,analyticsConfig:{...e.analytics,intercom:e.analytics?.intercom?{...e.analytics.intercom,appId:e.analytics.intercom.appId,apiBase:e.analytics.intercom.apiBase}:void 0,fullstory:e.analytics?.fullstory,posthog:e.analytics?.posthog?{...e.analytics.posthog,apiKey:e.analytics.posthog.apiKey,endpoint:e.analytics.posthog.endpoint}:void 0,segment:e.analytics?.segment,gtm:e.analytics?.gtm,ga4:e.analytics?.ga4,amplitude:void 0,mixpanel:void 0,hotjar:void 0,koala:void 0,logrocket:void 0,pirsch:void 0,plausible:void 0,fathom:void 0,clearbit:void 0,heap:void 0},integrations:T!=null?{intercom:T.intercom??void 0}:void 0,css:Re,js:vt,aiChatConfig:z??O,agents:J,pageActions:Bbd(Y,r),header:Qb(e.header,r),footer:Qb(e.footer,r),experimental:ee}}function xbd(e,t){return e!=null?{dark:Qb(e.dark,t),light:Qb(e.light,t),height:e.height,href:e.href!=null?ln.Url(e.href):void 0,rightText:e.rightText}:void 0}function Cbd(e,t){if(e!=null)if(typeof e=="string"){let r=Qb(e,t);return{dark:r,light:r}}else{let r=Qb(e.dark,t),n=Qb(e.light,t);return{dark:r,light:n}}}async function wbd(e,t){if(e==null)return;let r=typeof e=="string"?[e]:e;return{inline:await Promise.all(r.map(async n=>(await(0,Mpe.readFile)(Qb(n,t))).toString()))}}function Sbd(e){return Object.hasOwn(e,"url")}function Tbd(e){return Object.hasOwn(e,"path")}async function Obd(e,t){let r=[],n=[];if(e==null)return{files:[]};let i=Array.isArray(e)?e:[e];for(let o of i)typeof o=="string"?n.push({absolutePath:Qb(o,t)}):Sbd(o)?r.push({strategy:o.strategy,url:ln.Url(o.url),disableSri:o.disableSri}):Tbd(o)&&n.push({absolutePath:Qb(o.path,t),strategy:o.strategy});return{remote:r,files:n}}function Bbd(e,t){return e==null?void 0:{default:e.default!=null?Dbd(e.default):void 0,options:{askAi:e.options?.askAi??!0,copyPage:e.options?.copyPage??!0,viewAsMarkdown:e.options?.viewAsMarkdown??!0,openAi:e.options?.chatgpt??!0,claude:e.options?.claude??!0,cursor:e.options?.cursor??!0,claudeCode:e.options?.claudeCode??!0,mcp:e.options?.mcp??!0,vscode:e.options?.vscode??!1,custom:(e.options?.custom??[]).map(n=>Rbd(n,t)),skills:Pbd(e.options?.skills)}}}function Pbd(e){if(e!=null)return{title:e.title,description:e.description,learnMoreUrl:e.learnMoreUrl,repository:e.repository,installCommand:e.installCommand,skills:e.skills?.map(t=>({name:t.name,description:t.description,url:t.url}))}}function Dbd(e){switch(e){case"copy-page":return"copyPage";case"view-as-markdown":return"viewAsMarkdown";case"ask-ai":return"askAi";case"chatgpt":return"openAi";case"claude":return"claude";case"cursor":return"cursor";case"claude-code":return"claudeCode";case"vscode":return"vscode";default:Ee(e)}}function Rbd(e,t){return{title:e.title,subtitle:e.subtitle,url:e.url,icon:O0(e.icon,t),default:e.default}}function kbd(e){if(e==null)return;let t;if(e.tabs!=null&&typeof e.tabs=="object"){let r=e.tabs;t={style:r.style??"default",alignment:r.alignment,placement:r.placement}}else t=e.tabs??"default";return{sidebar:e.sidebar??"default",tabs:t,body:e.body??"default",pageActions:e.pageActions??"default",footerNav:e.footerNav??"default",languageSwitcher:e.languageSwitcher??"default",productSwitcher:e.productSwitcher??"default"}}function Fbd(e){if(e==null)return;let t=(e.search?.defaultFilterByCurrentProduct??!1)||(e.defaultSearchFilters??!1),r=e.search?.prioritizeCurrentProduct??!1;return{darkModeCode:e.darkModeCode??!1,defaultSearchFilters:t,search:{prioritizeCurrentProduct:r,defaultFilterByCurrentProduct:t,externalSitemaps:void 0},language:e.language??"en",disableSearch:e.disableSearch??!1,hide404Page:e.hide404Page??!1,httpSnippets:e.httpSnippets??!0,searchText:e.searchText??void 0,useJavascriptAsTypescript:e.useJavascriptAsTypescript??!1,disableExplorerProxy:e.disableExplorerProxy??!1,disableEnvironmentEditing:e.disableEnvironmentEditing??!1,disableAnalytics:e.disableAnalytics??!1,websocketOneofDisplay:e.websocketOneofDisplay??void 0}}async function byo({rawPath:e,absoluteFilepathToDocsConfig:t}){if(e==null)return;let r=Qb(e,t);return await(0,Mpe.readFile)(r,"utf8"),r}async function Nbd({rawPath:e,absoluteFilepathToDocsConfig:t,context:r}){if(e==null)return;let n=Qb(e,t),i=await(0,Mpe.readFile)(n,"utf8");try{JSON.parse(i)}catch(o){r.failAndThrow(`Invalid JSON in Context7 config file: ${e}`,o instanceof Error?o.message:String(o),{code:S.Code.ConfigError})}return n}function jbd(e,t,r){if(e==null&&t==null&&r==null)return;let n=t==="center"?"CENTER":"LEFT",i=r==="header"?"HEADER":r==="sidebar"?"SIDEBAR":void 0;return e==null?{...i!=null?{tabsPlacement:i}:{},tabsAlignment:n}:{pageWidth:e.pageWidth?.trim().toLowerCase()==="full"?{type:"full"}:cQr(e.pageWidth),contentWidth:cQr(e.contentWidth),sidebarWidth:cQr(e.sidebarWidth),headerHeight:cQr(e.headerHeight),searchbarPlacement:e.searchbarPlacement==="header"?"HEADER":e.searchbarPlacement==="header-tabs"?"HEADER_TABS":"SIDEBAR",switcherPlacement:!e.switcherPlacement||e.switcherPlacement==="header"?"HEADER":"SIDEBAR",tabsPlacement:i??(e.tabsPlacement==="header"?"HEADER":"SIDEBAR"),contentAlignment:e.contentAlignment==="left"?"LEFT":"CENTER",headerPosition:e.headerPosition==="static"?"ABSOLUTE":"FIXED",disableHeader:e.disableHeader??!1,hideNavLinks:e.hideNavLinks??!1,hideFeedback:e.hideFeedback??!1,mobileToc:e.mobileToc??!1,changelogLayout:e.changelogLayout,apiReferenceLayout:e.apiReferenceLayout,apiReferenceExpandProperties:e.apiReferenceExpandProperties,showNavAvailabilityBadges:e.showNavAvailabilityBadges,tabsAlignment:n}}function cQr(e){if(e==null)return;let t=e.trim().toLowerCase(),r=t.match(/^(\d+)px$/);if(r!=null&&r[1]!=null)return{type:"px",value:parseFloat(r[1])};let n=t.match(/^(\d+)rem$/);if(n!=null&&n[1]!=null)return{type:"rem",value:parseFloat(n[1])}}async function Qbd({version:e,absolutePathToFernFolder:t,context:r,folderTitleSource:n}){if(e.path==null)throw new S({message:`Version '${e.displayName}' must specify a 'path' or 'ref'.`,code:S.Code.ConfigError});let i=Jn(t,ve.of(e.path)),o;try{o=Er.load((await(0,Mpe.readFile)(i)).toString())}catch(l){throw l instanceof Er.YAMLException?new S({message:`Failed to parse version file ${e.path}: ${l.message}`,code:S.Code.ParseError}):l}let s=[],a=LO(o,[],s);s.length>0&&r.logger.warn(`Version file ${e.path} contained null/undefined sections that were ignored: ${s.map(l=>l.join(".")).join(", ")}`);let c=Hc.RawSchemas.Serializer.VersionFileConfig.parseOrThrow(a),u=await pQr({tabs:c.tabs,rawNavigationConfig:c.navigation,absolutePathToFernFolder:t,absolutePathToConfig:i,context:r,folderTitleSource:n});return{landingPage:Bet(c.landingPage,i),version:e.displayName,navigation:u,availability:e.availability,slug:e.slug,hidden:e.hidden,viewers:_w(e.viewers),orphaned:e.orphaned,featureFlags:Uw(e.featureFlag),announcement:e.announcement,contentSource:void 0}}async function zbd({version:e,ref:t,absolutePathToFernFolder:r,context:n,folderTitleSource:i}){let o=await jMc({ref:t,absolutePathToFernFolder:r,context:n}),s=await LMc({materialized:o,context:n}),a=await pQr({tabs:s.tabs,rawNavigationConfig:s.navigation,absolutePathToFernFolder:o.absolutePathToFernFolder,absolutePathToConfig:s.absoluteFilepathToConfig,context:n,folderTitleSource:i});return{landingPage:Bet(s.landingPage,s.absoluteFilepathToConfig),version:e.displayName,navigation:a,availability:e.availability,slug:e.slug,hidden:e.hidden,viewers:_w(e.viewers),orphaned:e.orphaned,featureFlags:Uw(e.featureFlag),announcement:e.announcement,contentSource:{displayVersion:e.displayName,ref:o.ref,sha:o.sha,absolutePathToFernFolder:o.absolutePathToFernFolder,libraries:C6c(s.rawLibraries)}}}async function b6c({versions:e,absolutePathToFernFolder:t,context:r,folderTitleSource:n,buildRefVersions:i=!0}){let o=[];for(let s of e){let a=Ujt(s);if(a==null){o.push(await Qbd({version:s,absolutePathToFernFolder:t,context:r,folderTitleSource:n}));continue}if(s.path!=null)throw new S({message:`Version '${s.displayName}' declares both 'ref' and 'path'. A git-ref-backed version builds its content from the ref, so 'path' is not used. Remove 'path' to build from the ref, or remove 'ref' to build from the working tree.`,code:S.Code.ConfigError});if(!i){r.logger.debug(`Skipping git-ref-backed version '${s.displayName}' (ref '${a}').`);continue}o.push(await zbd({version:s,ref:a,absolutePathToFernFolder:t,context:r,folderTitleSource:n}))}return{type:"versioned",versions:o}}async function Mbd({tabs:e,products:t,versions:r,navigation:n,absolutePathToFernFolder:i,absolutePathToConfig:o,context:s,folderTitleSource:a,buildRefVersions:c=!0}){if(n!=null)return await pQr({tabs:e,rawNavigationConfig:n,absolutePathToFernFolder:i,absolutePathToConfig:o,context:s,folderTitleSource:a});if(t!=null){let u=[];for(let l of t){let p=l.image!=null?Jn(i,l.image):void 0;if("path"in l){let d,f=Jn(i,l.path),m;try{m=Er.load((await(0,Mpe.readFile)(f)).toString())}catch(E){throw E instanceof Er.YAMLException?new S({message:`Failed to parse product file ${l.path}: ${E.message}`,code:S.Code.ParseError}):E}let g=[],A=LO(m,[],g);g.length>0&&s.logger.warn(`Product file ${l.path} contained null/undefined sections that were ignored: ${g.map(E=>E.join(".")).join(", ")}`);let y=Hc.RawSchemas.Serializer.ProductFileConfig.parseOrThrow(A);l.versions!=null&&l.versions.length>0?d=await b6c({versions:l.versions,absolutePathToFernFolder:i,context:s,folderTitleSource:a,buildRefVersions:c}):d=await pQr({tabs:y.tabs,rawNavigationConfig:y.navigation,absolutePathToFernFolder:i,absolutePathToConfig:f,context:s,folderTitleSource:a}),u.push({type:"internal",landingPage:Bet(y.landingPage,f),product:l.displayName,navigation:d,slug:l.slug,subtitle:l.subtitle,icon:O0(l.icon,o)||"fa-solid fa-code",image:p,viewers:_w(l.viewers),orphaned:l.orphaned,featureFlags:Uw(l.featureFlag),announcement:l.announcement})}else if("href"in l&&l.href!=null)u.push({type:"external",product:l.displayName,href:l.href,target:l.target,subtitle:l.subtitle,icon:O0(l.icon,o)||"fa-solid fa-code",image:p,viewers:_w(l.viewers),orphaned:l.orphaned,featureFlags:Uw(l.featureFlag)});else throw new S({message:"Invalid product configuration: product must have either 'path' or valid 'href' property",code:S.Code.ConfigError})}return{type:"productgroup",products:u}}else if(r!=null)return await b6c({versions:r,absolutePathToFernFolder:i,context:s,folderTitleSource:a,buildRefVersions:c});throw new S({message:"Unexpected. Docs have neither navigation or versions defined.",code:S.Code.ConfigError})}function Uw(e){if(e!=null)return typeof e=="string"?[{flag:e,match:!0,fallbackValue:void 0}]:Array.isArray(e)?e.map(t=>({flag:t.flag,match:t.match,fallbackValue:t.fallbackValue})):[{flag:e.flag,match:e.match??!0,fallbackValue:e.fallbackValue}]}async function Lbd({rawTypography:e,absoluteFilepathToDocsConfig:t}){return{headingsFont:e.headingsFont!=null?await Eyo({rawFontConfig:e.headingsFont,absoluteFilepathToDocsConfig:t}):void 0,bodyFont:e.bodyFont!=null?await Eyo({rawFontConfig:e.bodyFont,absoluteFilepathToDocsConfig:t}):void 0,codeFont:e.codeFont!=null?await Eyo({rawFontConfig:e.codeFont,absoluteFilepathToDocsConfig:t}):void 0}}async function Eyo({rawFontConfig:e,absoluteFilepathToDocsConfig:t}){return{name:e.name,variants:await Vbd(e,t),display:e.display,fallback:e.fallback,fontVariationSettings:e.fontVariationSettings}}function Vbd(e,t){let r=[];return e.path!=null&&r.push({path:e.path,weight:e.weight,style:e.style}),e.paths?.forEach(n=>{typeof n=="string"?r.push({path:n,weight:e.weight,style:e.style}):r.push({path:n.path,weight:n.weight??e.weight,style:n.style??e.style})}),Promise.all(r.map(async n=>({absolutePath:Qb(n.path,t),weight:Ubd(n.weight),style:n.style})))}function Ubd(e){return e==null?void 0:typeof e=="number"?[e.toString()]:e.split(/\D+/).filter(r=>r!==""&&["100","200","300","400","500","600","700","800","900"].includes(r))}async function _bd({tabs:e,item:t,absolutePathToFernFolder:r,absolutePathToConfig:n,context:i,folderTitleSource:o}){let s=e[t.tab];if(s==null)throw new S({message:`Tab ${t.tab} is not defined in the tabs config.`,code:S.Code.ConfigError});if(a0d(t)){let c=await Promise.all(t.variants.map(async u=>{let l=await Promise.all(u.layout.map(p=>fQr({rawConfig:p,absolutePathToFernFolder:r,absolutePathToConfig:n,context:i,folderTitleSource:o})));return{title:u.title,subtitle:u.subtitle,icon:O0(u.icon,n),layout:l,slug:u.slug,skipUrlSlug:u.skipSlug,hidden:u.hidden,default:u.default,viewers:_w(u.viewers),orphaned:u.orphaned,featureFlags:Uw(u.featureFlag)}}));return{title:s.displayName,icon:O0(s.icon,n),slug:s.slug,skipUrlSlug:s.skipSlug,hidden:s.hidden,child:{type:"variants",variants:c},viewers:_w(s.viewers),orphaned:s.orphaned,featureFlags:Uw(s.featureFlag)}}if(s0d(t)){let c=await Promise.all(t.layout.map(u=>fQr({rawConfig:u,absolutePathToFernFolder:r,absolutePathToConfig:n,context:i,folderTitleSource:o})));return{title:s.displayName,icon:O0(s.icon,n),slug:s.slug,skipUrlSlug:s.skipSlug,hidden:s.hidden,child:{type:"layout",layout:c},viewers:_w(s.viewers),orphaned:s.orphaned,featureFlags:Uw(s.featureFlag)}}if(s.href!=null)return{title:s.displayName,icon:O0(s.icon,n),slug:s.slug,skipUrlSlug:s.skipSlug,hidden:s.hidden,child:{type:"link",href:s.href,target:s.target},viewers:_w(s.viewers),orphaned:s.orphaned,featureFlags:Uw(s.featureFlag)};let a=Hc.getChangelogFolderFromTabConfig(s);if(a!=null)return{title:s.displayName,icon:O0(s.icon,n),slug:s.slug,skipUrlSlug:s.skipSlug,hidden:s.hidden,child:{type:"changelog",changelog:await qS(Qb(a,n),"{md,mdx}")},viewers:_w(s.viewers),orphaned:s.orphaned,featureFlags:Uw(s.featureFlag)};Ee(s)}async function pQr({tabs:e={},rawNavigationConfig:t,absolutePathToFernFolder:r,absolutePathToConfig:n,context:i,folderTitleSource:o}){return o0d(t)?{type:"tabbed",items:await Promise.all(t.map(a=>_bd({tabs:e,item:a,absolutePathToFernFolder:r,absolutePathToConfig:n,context:i,folderTitleSource:o})))}:{type:"untabbed",items:await Promise.all(t.map(s=>fQr({rawConfig:s,absolutePathToFernFolder:r,absolutePathToConfig:n,context:i,folderTitleSource:o})))}}async function qbd({rawConfig:e,absolutePathToFernFolder:t,absolutePathToConfig:r,context:n,folderTitleSource:i}){let o=Qb(e.folder,r);await Xt(o)||n.failAndThrow(`Folder not found: ${e.folder}`,void 0,{code:S.Code.ConfigError}),vyo({context:n,sectionTitle:e.folder,collapsed:e.collapsed??void 0,collapsible:e.collapsible??void 0,collapsedByDefault:e.collapsedByDefault??void 0});let s=e.titleSource??i,a=await gyo({directoryPath:o,titleSource:s}),c=a.find(m=>m.type==="page"&&(m.slug==="index"||m.absolutePath.toLowerCase().endsWith("/index.mdx")||m.absolutePath.toLowerCase().endsWith("/index.md"))),u=c?a.filter(m=>m!==c):a,l=BW.default.basename(o),p=s==="frontmatter"&&c?.type==="page"?(await oQr({absolutePath:c.absolutePath})).title:void 0,d=e.title??p??hyo({name:l}),f=e.slug??iQr({name:l});return{type:"section",title:d,icon:O0(e.icon,r),contents:u,slug:f,collapsed:e.collapsed??void 0,collapsible:e.collapsible??void 0,collapsedByDefault:e.collapsedByDefault??void 0,hidden:e.hidden??void 0,skipUrlSlug:e.skipSlug??!1,overviewAbsolutePath:c?.type==="page"?c.absolutePath:void 0,viewers:_w(e.viewers),orphaned:e.orphaned,featureFlags:Uw(e.featureFlag),availability:e.availability}}async function fQr({rawConfig:e,absolutePathToFernFolder:t,absolutePathToConfig:r,context:n,folderTitleSource:i}){let o=Xbd(e);if(v6c(o))return Bet(o,r);if(Hbd(o))return vyo({context:n,sectionTitle:o.section,collapsed:o.collapsed??void 0,collapsible:o.collapsible??void 0,collapsedByDefault:o.collapsedByDefault??void 0}),{type:"section",title:o.section,icon:O0(o.icon,r),contents:await Promise.all(o.contents.map(s=>fQr({rawConfig:s,absolutePathToFernFolder:t,absolutePathToConfig:r,context:n,folderTitleSource:i}))),slug:o.slug??void 0,collapsed:o.collapsed??void 0,collapsible:o.collapsible??void 0,collapsedByDefault:o.collapsedByDefault??void 0,hidden:o.hidden??void 0,skipUrlSlug:o.skipSlug??!1,overviewAbsolutePath:Qb(o.path,r),viewers:_w(o.viewers),orphaned:o.orphaned,featureFlags:Uw(o.featureFlag),availability:o.availability};if(Kbd(o))return{type:"apiSection",openrpc:o.openrpc,title:o.api,icon:O0(o.icon,r),apiName:o.apiName??void 0,audiences:o.audiences!=null?{type:"select",audiences:jMt(o.audiences)??[]}:{type:"all"},availability:o.availability,showErrors:o.displayErrors??!0,tagDescriptionPages:o.tagDescriptionPages??!1,snippetsConfiguration:o.snippets!=null?Wbd({rawConfig:o.snippets}):void 0,postman:o.postman,navigation:o.layout?.flatMap(s=>lQr(s,r,n))??[],overviewAbsolutePath:Qb(o.summary,r),collapsed:o.collapsed??void 0,hidden:o.hidden??void 0,slug:o.slug,skipUrlSlug:o.skipSlug??!1,flattened:o.flattened??!1,alphabetized:o.alphabetized??!1,paginated:o.paginated??!1,playground:o.playground,viewers:_w(o.viewers),orphaned:o.orphaned,featureFlags:Uw(o.featureFlag)};if(x6c(o))return{type:"link",text:o.link,url:o.href,icon:O0(o.icon,r),target:o.target};if(Jbd(o))return{type:"changelog",changelog:await qS(Qb(o.changelog,r),"{md,mdx}"),hidden:o.hidden??!1,icon:O0(o.icon,r),title:o.title??Gbd,slug:o.slug,viewers:_w(o.viewers),orphaned:o.orphaned,featureFlags:Uw(o.featureFlag)};if(Zbd(o))return await qbd({rawConfig:o,absolutePathToFernFolder:t,absolutePathToConfig:r,context:n,folderTitleSource:i});if($bd(o))return{type:"librarySection",libraryName:o.library,title:o.title??void 0,slug:o.slug??void 0,viewers:_w(o.viewers),orphaned:o.orphaned,featureFlags:Uw(o.featureFlag)};Ee(o)}function Bet(e,t){if(e!=null)return{type:"page",title:e.page,absolutePath:Qb(e.path,t),slug:e.slug,icon:O0(e.icon,t),hidden:e.hidden,noindex:e.noindex,viewers:_w(e.viewers),orphaned:e.orphaned,featureFlags:Uw(e.featureFlag),availability:e.availability}}function lQr(e,t,r){return typeof e=="string"?[{type:"item",value:e}]:v6c(e)?[Bet(e,t)]:x6c(e)?[{type:"link",text:e.link,url:e.href,icon:O0(e.icon,t),target:e.target}]:t0d(e)?(r!=null&&vyo({context:r,sectionTitle:e.section,collapsed:e.collapsed??void 0,collapsible:e.collapsible??void 0,collapsedByDefault:e.collapsedByDefault??void 0}),[{type:"section",title:e.section,referencedSubpackages:e.referencedPackages??[],overviewAbsolutePath:Qb(e.summary,t),contents:e.contents?.flatMap(n=>lQr(n,t,r))??[],slug:e.slug,hidden:e.hidden,skipUrlSlug:e.skipSlug,collapsed:e.collapsed??void 0,collapsible:e.collapsible??void 0,collapsedByDefault:e.collapsedByDefault??void 0,availability:e.availability,icon:O0(e.icon,t),playground:e.playground,viewers:_w(e.viewers),orphaned:e.orphaned,featureFlags:Uw(e.featureFlag)}]):r0d(e)?[{type:"endpoint",endpoint:e.endpoint,title:e.title,icon:O0(e.icon,t),slug:e.slug,hidden:e.hidden,availability:e.availability,playground:e.playground,viewers:_w(e.viewers),orphaned:e.orphaned,featureFlags:Uw(e.featureFlag)}]:n0d(e)?[{type:"operation",operation:e.operation,title:e.title,slug:e.slug,hidden:e.hidden,availability:e.availability,viewers:_w(e.viewers),orphaned:e.orphaned,featureFlags:Uw(e.featureFlag)}]:Object.entries(e).map(([n,i])=>i0d(i)?{type:"package",title:i.title,package:n,overviewAbsolutePath:Qb(i.summary,t),contents:i.contents?.flatMap(o=>lQr(o,t,r))??[],slug:i.slug,hidden:i.hidden,skipUrlSlug:i.skipSlug,icon:O0(i.icon,t),playground:i.playground,availability:i.availability,viewers:_w(i.viewers),orphaned:i.orphaned,featureFlags:Uw(i.featureFlag)}:{type:"package",title:void 0,package:n,overviewAbsolutePath:void 0,contents:i.flatMap(o=>lQr(o,t,r)),hidden:!1,slug:void 0,skipUrlSlug:!1,icon:void 0,playground:void 0,availability:void 0,viewers:void 0,orphaned:void 0,featureFlags:void 0})}function Wbd({rawConfig:e}){return{python:e.python,typescript:e.typescript,go:e.go,java:e.java,ruby:e.ruby,csharp:e.csharp,php:e.php,swift:e.swift}}function v6c(e){return ro(e)&&typeof e.page=="string"&&typeof e.path=="string"}function Hbd(e){return e.section!=null}function Kbd(e){return e.api!=null}function x6c(e){return Hc.RawSchemas,ro(e)&&typeof e.link=="string"&&typeof e.href=="string"}function Jbd(e){return ro(e)&&typeof e.changelog=="string"}function Ybd(e){return ro(e)&&typeof e.blog=="string"}function Xbd(e){if(!Ybd(e))return e;let{blog:t,...r}=e;return{...r,changelog:t,title:e.title??Hc.DEFAULT_BLOG_TITLE}}function Zbd(e){return ro(e)&&typeof e.folder=="string"}function $bd(e){return ro(e)&&typeof e.library=="string"}function e0d(e){return"git"in e}function C6c(e){if(e==null)return;let t={};for(let[r,n]of Object.entries(e)){let i=e0d(n.input)?{type:"git",git:n.input.git,subpath:n.input.subpath,ref:n.input.ref}:{type:"path",path:n.input.path};t[r]={input:i,output:{path:n.output.path},lang:n.lang}}return t}function t0d(e){return ro(e)&&typeof e.section=="string"&&Array.isArray(e.contents)}function r0d(e){return ro(e)&&typeof e.endpoint=="string"}function n0d(e){return ro(e)&&typeof e.operation=="string"}function i0d(e){return!Array.isArray(e)}function Qb(e,t){if(e!=null)return Jn(An(t),e)}function o0d(e){return Array.isArray(e)&&e.length>0&&e[0].tab!=null}function s0d(e){return"layout"in e&&Array.isArray(e.layout)}function a0d(e){return"variants"in e&&Array.isArray(e.variants)}function w6c(e,t){return e?.map(r=>{if(r.type==="github"){let i=r.value;return typeof i=="string"?{type:"github",url:ln.Url(i),viewers:void 0,target:void 0}:{type:"github",url:ln.Url(i.url),viewers:Iyo(i.viewers),target:i.target}}let n=Iyo(r.viewers);return r.type==="dropdown"?{type:"dropdown",text:r.text,icon:O0(r.icon,t),rightIcon:O0(r.rightIcon,t),rounded:r.rounded,viewers:n,links:r.links?.map(i=>({href:i.href,target:i.target,url:ln.Url(i.url??i.href??"/"),text:i.text,icon:O0(i.icon,t),rightIcon:O0(i.rightIcon,t),rounded:i.rounded,viewers:Iyo(i.viewers)}))??[]}:{type:r.type,text:r.text,url:ln.Url(r.href??r.url??"/"),target:r.target,icon:O0(r.icon,t),rightIcon:O0(r.rightIcon,t),rounded:r.rounded,viewers:n}})}function Iyo(e){if(e!=null)return Array.isArray(e)?e.map(t=>ln.docs.v1.commons.RoleId(t)):[ln.docs.v1.commons.RoleId(e)]}function c0d(e){if(e==null)return;let t=[];if(Object.keys(e).forEach(r=>{let n=e[r];n!=null&&t.push({type:r,value:ln.Url(n)})}),t.length!==0)return t}async function u0d(e,t,r){if(e!=null)return l0d(e,r),{"og:site_name":e.ogSiteName,"og:title":e.ogTitle,"og:description":e.ogDescription,"og:url":e.ogUrl,"og:image":await uQr(e.ogImage,t),"og:image:width":e.ogImageWidth,"og:image:height":e.ogImageHeight,"og:locale":e.ogLocale,"og:logo":await uQr(e.ogLogo,t),"twitter:title":e.twitterTitle,"twitter:description":e.twitterDescription,"twitter:image":await uQr(e.twitterImage,t),"twitter:handle":e.twitterHandle,"twitter:site":e.twitterSite,"twitter:url":e.twitterUrl,"twitter:card":e.twitterCard,"og:dynamic":e.ogDynamic,"og:dynamic:background-image":await uQr(e.ogDynamicBackgroundImage,t),"og:dynamic:text-color":e.ogDynamicTextColor,"og:dynamic:background-color":e.ogDynamicBackgroundColor,"og:dynamic:logo-color":e.ogDynamicLogoColor,"og:dynamic:show-logo":e.ogDynamicShowLogo,"og:dynamic:show-section":e.ogDynamicShowSection,"og:dynamic:show-description":e.ogDynamicShowDescription,"og:dynamic:show-url":e.ogDynamicShowUrl,"og:dynamic:show-gradient":e.ogDynamicShowGradient,nofollow:void 0,noindex:void 0,canonicalHost:e.canonicalHost}}function l0d(e,t){let r=e.ogDynamic===!0,n=[["og:dynamic:background-image",e.ogDynamicBackgroundImage],["og:dynamic:text-color",e.ogDynamicTextColor],["og:dynamic:background-color",e.ogDynamicBackgroundColor],["og:dynamic:logo-color",e.ogDynamicLogoColor],["og:dynamic:show-logo",e.ogDynamicShowLogo],["og:dynamic:show-section",e.ogDynamicShowSection],["og:dynamic:show-description",e.ogDynamicShowDescription],["og:dynamic:show-url",e.ogDynamicShowUrl],["og:dynamic:show-gradient",e.ogDynamicShowGradient]];if(r&&e.ogImage!=null&&t.logger.warn("[metadata] `og:image` is only applied to the homepage when `og:dynamic: true`. All other pages show the dynamically generated image. Remove `og:image` to rely entirely on dynamic generation, or set `og:dynamic: false` to use `og:image` site-wide."),r&&e.twitterImage!=null&&t.logger.warn("[metadata] `twitter:image` is only applied to the homepage when `og:dynamic: true`. All other pages show the dynamically generated image."),!r){let i=n.filter(([,o])=>o!=null).map(([o])=>o);i.length>0&&t.logger.warn(`[metadata] The following settings require \`og:dynamic: true\` and will be ignored: ${i.map(o=>`\`${o}\``).join(", ")}.`)}r&&e.ogDynamicShowLogo===!1&&e.ogDynamicLogoColor!=null&&t.logger.warn("[metadata] `og:dynamic:logo-color` has no effect because `og:dynamic:show-logo: false`. Remove one or the other."),e.ogImage==null&&(e.ogImageWidth!=null||e.ogImageHeight!=null)&&t.logger.warn("[metadata] `og:image:width` / `og:image:height` have no effect without `og:image`."),r&&typeof e.ogDynamicTextColor=="string"&&typeof e.ogDynamicBackgroundColor=="string"&&e.ogDynamicTextColor.trim().toLowerCase()===e.ogDynamicBackgroundColor.trim().toLowerCase()&&t.logger.warn(`[metadata] \`og:dynamic:text-color\` and \`og:dynamic:background-color\` are both set to \`${e.ogDynamicTextColor}\`, which will make text invisible in generated OG images.`)}async function uQr(e,t){if(e==null)return;if(e.startsWith("http"))return{type:"url",value:e};let r=Qb(e,t);return await Xt(r)?{type:"filepath",value:r}:{type:"url",value:e}}function _w(e){if(e!=null){if(typeof e=="string")return[ln.docs.v1.commons.RoleId(e)];if(e.length!==0)return e.map(ln.docs.v1.commons.RoleId)}}function jMt(e){if(e!=null){if(typeof e=="string")return[e];if(e.length!==0)return e}}function vyo({context:e,sectionTitle:t,collapsed:r,collapsible:n,collapsedByDefault:i}){n!=null&&r!=null&&e.failAndThrow(`Section "${t}": cannot use both "collapsible" and the deprecated "collapsed" property. Please use "collapsible" and "collapsed-by-default" instead.`,void 0,{code:S.Code.ConfigError}),i!=null&&n!==!0&&e.failAndThrow(`Section "${t}": "collapsed-by-default" requires "collapsible: true". "collapsed-by-default" has no effect on a non-collapsible section.`,void 0,{code:S.Code.ConfigError})}async function p0d({translations:e,defaultLocale:t,pages:r,absolutePathToFernFolder:n,context:i}){if(e==null||e.length===0)return;let o=BW.default.join(n,"translations"),s={},a=e.map(c=>Hc.DocsYmlSchemas.normalizeTranslationConfig(c));return await Promise.all(a.map(async({lang:c})=>{if(c===t)return;let u=BW.default.join(o,c);if(!await Xt(u)){i.failAndThrow(`Translation directory for locale "${c}" not found.
478
478
  Expected a directory at: ${u}
479
479
  Create the directory and add translated versions of your documentation pages.
480
480
  The directory should mirror the same relative paths referenced in your docs.yml navigation.
@@ -1669,7 +1669,7 @@ Valid options are:
1669
1669
 
1670
1670
  Valid options are:
1671
1671
  - \`{number}rem\`
1672
- - \`{number}px\``},"searchbar-placement":{oneOf:[{$ref:"#/definitions/docs.SearchbarPlacement"},{type:"null"}],description:"Sets the placement of the searchbar\n\n@default: `sidebar`\n\nNote: this setting is ignored when `disable-header` is set to true."},"tabs-placement":{oneOf:[{$ref:"#/definitions/docs.TabsPlacement"},{type:"null"}],description:"Set the placement of the tabs\n\n@default: `sidebar`\n\nNote: this setting is ignored when `disable-header` is set to true."},"switcher-placement":{oneOf:[{$ref:"#/definitions/docs.SwitcherPlacement"},{type:"null"}],description:"Set the placement of the version and language switcher\n\n@default: `header`\n\nNote: this setting is ignored when `disable-header` is set to true."},"content-alignment":{oneOf:[{$ref:"#/definitions/docs.ContentAlignment"},{type:"null"}],description:'Set the alignment of the mardown content.\n\n@default: `center`\n\nSide effects:\n- When the alignment is set to `center`, the "On this page" (ToC) will be aligned to the right of the page.\n- When the alignment is set to `left`, the content will be aligned next to the right of the markdown content.'},"header-position":{oneOf:[{$ref:"#/definitions/docs.HeaderPosition"},{type:"null"}],description:"If `header-position` is set to `fixed`, the header will be fixed to the top of the viewport.\nIf `header-position` is set to `absolute`, the header will be absolute and will scroll with the content.\n\n@default: `fixed`"},"disable-header":{oneOf:[{type:"boolean"},{type:"null"}],description:"If `disable-header` is set to true, the header will not be rendered. Instead, the logo will be rendered as part of the sidebar,\nand a 1px border will separate the sidebar from the content."},"hide-nav-links":{oneOf:[{type:"boolean"},{type:"null"}],description:"If `hide-nav-links` is set to true, the navbar links will not be rendered. This can be overridden for a specific page using the frontmatter."},"hide-feedback":{oneOf:[{type:"boolean"},{type:"null"}],description:"If `hide-feedback` is set to true, the feedback button will not be rendered. This can be overridden for a specific page using the frontmatter."},"mobile-toc":{oneOf:[{type:"boolean"},{type:"null"}],description:"If `mobile-toc` is set to true, a sticky collapsible table of contents bar will be shown on mobile viewports for guide and overview layout pages."},"changelog-layout":{oneOf:[{$ref:"#/definitions/docs.ChangelogLayout"},{type:"null"}],description:"Sets which layout to use for changelog pages.\n\n@default: `timeline`\n\n- `timeline` renders the searchable timeline-of-cards layout.\n- `classic` renders the legacy stacked-entries layout with a per-page table of contents."},"api-reference-layout":{oneOf:[{$ref:"#/definitions/docs.ApiReferenceLayout"},{type:"null"}],description:"Sets how nested object fields are rendered in the API reference.\n\n@default: `indented`\n\n- `indented` renders each nested level as an indented branch with a connector line and a color-coded path breadcrumb.\n- `cards` renders each nested level as a bordered card."},"show-nav-availability-badges":{oneOf:[{type:"boolean"},{type:"null"}],description:"If `show-nav-availability-badges` is set to true, availability badges (Beta, Deprecated, etc.)\nare rendered inline next to navigation items in the sidebar. Defaults to false. The page-header\navailability badge is unaffected by this setting."}},additionalProperties:!1},"docs.SearchSettingsConfig":{type:"object",properties:{"prioritize-current-product":{oneOf:[{type:"boolean"},{type:"null"}],description:`If set to true, search results from the current product/version are
1672
+ - \`{number}px\``},"searchbar-placement":{oneOf:[{$ref:"#/definitions/docs.SearchbarPlacement"},{type:"null"}],description:"Sets the placement of the searchbar\n\n@default: `sidebar`\n\nNote: this setting is ignored when `disable-header` is set to true."},"tabs-placement":{oneOf:[{$ref:"#/definitions/docs.TabsPlacement"},{type:"null"}],description:"Set the placement of the tabs\n\n@default: `sidebar`\n\nNote: this setting is ignored when `disable-header` is set to true."},"switcher-placement":{oneOf:[{$ref:"#/definitions/docs.SwitcherPlacement"},{type:"null"}],description:"Set the placement of the version and language switcher\n\n@default: `header`\n\nNote: this setting is ignored when `disable-header` is set to true."},"content-alignment":{oneOf:[{$ref:"#/definitions/docs.ContentAlignment"},{type:"null"}],description:'Set the alignment of the mardown content.\n\n@default: `center`\n\nSide effects:\n- When the alignment is set to `center`, the "On this page" (ToC) will be aligned to the right of the page.\n- When the alignment is set to `left`, the content will be aligned next to the right of the markdown content.'},"header-position":{oneOf:[{$ref:"#/definitions/docs.HeaderPosition"},{type:"null"}],description:"If `header-position` is set to `fixed`, the header will be fixed to the top of the viewport.\nIf `header-position` is set to `absolute`, the header will be absolute and will scroll with the content.\n\n@default: `fixed`"},"disable-header":{oneOf:[{type:"boolean"},{type:"null"}],description:"If `disable-header` is set to true, the header will not be rendered. Instead, the logo will be rendered as part of the sidebar,\nand a 1px border will separate the sidebar from the content."},"hide-nav-links":{oneOf:[{type:"boolean"},{type:"null"}],description:"If `hide-nav-links` is set to true, the navbar links will not be rendered. This can be overridden for a specific page using the frontmatter."},"hide-feedback":{oneOf:[{type:"boolean"},{type:"null"}],description:"If `hide-feedback` is set to true, the feedback button will not be rendered. This can be overridden for a specific page using the frontmatter."},"mobile-toc":{oneOf:[{type:"boolean"},{type:"null"}],description:"If `mobile-toc` is set to true, a sticky collapsible table of contents bar will be shown on mobile viewports for guide and overview layout pages."},"changelog-layout":{oneOf:[{$ref:"#/definitions/docs.ChangelogLayout"},{type:"null"}],description:"Sets which layout to use for changelog pages.\n\n@default: `timeline`\n\n- `timeline` renders the searchable timeline-of-cards layout.\n- `classic` renders the legacy stacked-entries layout with a per-page table of contents."},"api-reference-layout":{oneOf:[{$ref:"#/definitions/docs.ApiReferenceLayout"},{type:"null"}],description:"Sets how nested object fields are rendered in the API reference.\n\n@default: `indented`\n\n- `indented` renders each nested level as an indented branch with a connector line and a color-coded path breadcrumb.\n- `cards` renders each nested level as a bordered card."},"api-reference-expand-properties":{oneOf:[{type:"boolean"},{type:"null"}],description:'If `api-reference-expand-properties` is set to true, the first level of nested object\nand union fields in the API reference is expanded on page load instead of hidden behind\na "Show N properties" button. Deeper levels stay collapsed. Defaults to false.'},"show-nav-availability-badges":{oneOf:[{type:"boolean"},{type:"null"}],description:"If `show-nav-availability-badges` is set to true, availability badges (Beta, Deprecated, etc.)\nare rendered inline next to navigation items in the sidebar. Defaults to false. The page-header\navailability badge is unaffected by this setting."}},additionalProperties:!1},"docs.SearchSettingsConfig":{type:"object",properties:{"prioritize-current-product":{oneOf:[{type:"boolean"},{type:"null"}],description:`If set to true, search results from the current product/version are
1673
1673
  boosted in Algolia's ranking (via \`optionalFilters\`) without excluding
1674
1674
  results from other products/versions.
1675
1675
 
@@ -3366,7 +3366,7 @@ ${Aju.default.cursorShow}`)}releaseCursor(){this.extraLinesUnderPrompt>0&&vzo(th
3366
3366
  `+h3e.default.red(">> ")+t),this.screen.render(r,n)}getMaskedValue(t){return this.status==="answered"?this.opt.mask?h3e.default.cyan(Sju(t,this.opt.mask)):h3e.default.italic(h3e.default.dim("[hidden]")):this.opt.mask?Sju(t,this.opt.mask):h3e.default.italic(h3e.default.dim("[input is hidden] "))}getSpinningValue(t){return this.getMaskedValue(t)}filterInput(t){return t||(this.opt.default==null?"":this.opt.default)}onEnd(t){this.status="answered",this.answer=t.value,this.render(),this.screen.done(),this.done(t.value)}onError(t){this.render(t.isValid)}onKeypress(){this.opt.default&&=void 0,this.render()}};var B7r=ye($w(),1);var wQu=ye(nMo(),1),T7r=require("child_process"),xot=require("fs"),S7r=ye(require("path"),1),SQu=ye(require("os"),1),TQu=require("crypto"),VMo=ye(xQu(),1);var x7r=class extends Error{originalError;constructor(t){super(`Failed to create temporary file. ${t.message}`),this.originalError=t}};var f_t=class extends Error{originalError;constructor(t){super(`Failed to launch editor. ${t.message}`),this.originalError=t}};var C7r=class extends Error{originalError;constructor(t){super(`Failed to read temporary file. ${t.message}`),this.originalError=t}};var w7r=class extends Error{originalError;constructor(t){super(`Failed to remove temporary file. ${t.message}`),this.originalError=t}};function O7r(e="",t,r){let n=new UMo(e,r);n.runAsync((i,o)=>{if(i)setImmediate(t,i,void 0);else try{n.cleanup(),setImmediate(t,void 0,o)}catch(s){setImmediate(t,s,void 0)}})}function CQu(e){return e?e.replace(/[^a-zA-Z0-9_.-]/g,"_"):""}function rSm(e){let t=[],r="";for(let n=0;n<e.length;n++){let i=e.charAt(n);n>0&&i===" "&&e[n-1]!=="\\"&&r.length>0?(t.push(r),r=""):r=`${r}${i}`}return r.length>0&&t.push(r),t}var UMo=class{text="";tempFile;editor;lastExitStatus=0;fileOptions={};get temp_file(){return console.log("DEPRECATED: temp_file. Use tempFile moving forward."),this.tempFile}get last_exit_status(){return console.log("DEPRECATED: last_exit_status. Use lastExitStatus moving forward."),this.lastExitStatus}constructor(t="",r){this.text=t,r&&(this.fileOptions=r),this.determineEditor(),this.createTemporaryFile()}run(){return this.launchEditor(),this.readTemporaryFile(),this.text}runAsync(t){try{this.launchEditorAsync(()=>{try{this.readTemporaryFile(),setImmediate(t,void 0,this.text)}catch(r){setImmediate(t,r,void 0)}})}catch(r){setImmediate(t,r,void 0)}}cleanup(){this.removeTemporaryFile()}determineEditor(){let t=process.env.VISUAL?process.env.VISUAL:process.env.EDITOR?process.env.EDITOR:process.platform.startsWith("win")?"notepad":"vim",r=rSm(t).map(i=>i.replace("\\ "," ")),n=r.shift();this.editor={args:r,bin:n}}createTemporaryFile(){try{let t=this.fileOptions.dir??SQu.default.tmpdir(),r=(0,TQu.randomUUID)(),n=CQu(this.fileOptions.prefix),i=CQu(this.fileOptions.postfix),o=`${n}${r}${i}`,s=S7r.default.resolve(t,o),a=S7r.default.resolve(t)+S7r.default.sep;if(!s.startsWith(a))throw new Error("Resolved temporary file escaped the base directory");this.tempFile=s;let c={encoding:"utf8",flag:"wx"};Object.prototype.hasOwnProperty.call(this.fileOptions,"mode")&&(c.mode=this.fileOptions.mode),(0,xot.writeFileSync)(this.tempFile,this.text,c)}catch(t){throw new x7r(t)}}readTemporaryFile(){try{let t=(0,xot.readFileSync)(this.tempFile);if(t.length===0)this.text="";else{let r=(0,wQu.detect)(t)??"utf8";VMo.default.encodingExists(r)||(r="utf8"),this.text=VMo.default.decode(t,r)}}catch(t){throw new C7r(t)}}removeTemporaryFile(){try{(0,xot.unlinkSync)(this.tempFile)}catch(t){throw new w7r(t)}}launchEditor(){try{let t=(0,T7r.spawnSync)(this.editor.bin,this.editor.args.concat([this.tempFile]),{stdio:"inherit"});this.lastExitStatus=t.status??0}catch(t){throw new f_t(t)}}launchEditorAsync(t){try{(0,T7r.spawn)(this.editor.bin,this.editor.args.concat([this.tempFile]),{stdio:"inherit"}).on("exit",n=>{this.lastExitStatus=n,setImmediate(t)})}catch(r){throw new f_t(r)}}};var OQu=ye(E3(),1);var d_t=class extends eS{_run(t){this.done=t,this.editorResult=new OQu.Subject;let r=_B(this.rl);this.lineSubscription=r.line.subscribe(this.startExternalEditor.bind(this));let n=this.opt.waitUserInput===void 0?!0:this.opt.waitUserInput,i=this.handleSubmitEvents(this.editorResult);return i.success.forEach(this.onEnd.bind(this)),i.error.forEach(this.onError.bind(this)),this.currentText=this.opt.default,this.opt.default=null,n?this.render():this.startExternalEditor(),this}render(t){let r="",n=this.getQuestion();n+=this.status==="answered"?B7r.default.dim("Received"):B7r.default.dim("Press <enter> to launch your preferred editor."),t&&(r=B7r.default.red(">> ")+t),this.screen.render(n,r)}startExternalEditor(){this.rl.pause(),O7r(this.currentText,this.endExternalEditor.bind(this),{postfix:this.opt.postfix??".txt"})}endExternalEditor(t,r){this.rl.resume(),t?this.editorResult.error(t):this.editorResult.next(r)}onEnd(t){this.editorResult.unsubscribe(),this.lineSubscription.unsubscribe(),this.answer=t.value,this.status="answered",this.render(),this.screen.done(),this.done(this.answer)}onError(t){this.render(t.isValid)}};var kQu=require("stream");var DQu=ye(require("readline"),1),RQu=ye(PQu(),1),b3e=class{constructor(t){this.rl||=DQu.default.createInterface(iSm(t)),this.rl.resume(),this.onForceClose=this.onForceClose.bind(this),process.on("exit",this.onForceClose),this.rl.on("SIGINT",this.onForceClose)}onForceClose(){this.close(),process.kill(process.pid,"SIGINT"),console.log("")}close(){this.rl.removeListener("SIGINT",this.onForceClose),process.removeListener("exit",this.onForceClose),this.rl.output.unmute(),this.activePrompt&&typeof this.activePrompt.close=="function"&&this.activePrompt.close(),this.rl.output.end(),this.rl.pause(),this.rl.close()}};function iSm(e={}){e.skipTTYChecks=e.skipTTYChecks===void 0?!0:e.skipTTYChecks;let t=e.input||process.stdin;if(!e.skipTTYChecks&&!t.isTTY){let i=new Error("Prompts can not be meaningfully rendered in non-TTY environments");throw i.isTtyError=!0,i}let r=new RQu.default;return r.pipe(e.output||process.stdout),{terminal:!0,...e,input:t,output:r}}var m_t=class extends b3e{constructor(t={}){super(t),this.log=new kQu.Writable({write:(r,n,i)=>{this.writeLog(r),i()}}),this.bottomBar=t.bottomBar||"",this.render()}render(){return this.write(this.bottomBar),this}clean(){return XUt(this.rl,this.bottomBar.split(`
3367
3367
  `).length),this}updateBottomBar(t){return XUt(this.rl,1),this.rl.output.unmute(),this.clean(),this.bottomBar=t,this.render(),this.rl.output.mute(),this}writeLog(t){return this.rl.output.unmute(),this.clean(),this.rl.output.write(this.enforceLF(t.toString())),this.render(),this.rl.output.mute(),this}enforceLF(t){return/[\n\r]$/.test(t)?t:t+`
3368
3368
  `}write(t){let r=t.split(/\n/);this.height=r.length,this.rl.setPrompt(r.at(-1)),this.rl.output.rows===0&&this.rl.output.columns===0&&Xqr(this.rl,t.length+this.rl.line.length),this.rl.output.write(t)}};var Ud=ye(E3(),1),jQu=ye(OUt(),1);var P7r=ye(E3(),1),FQu=ye(OUt(),1),D7r=function(e,t,r){return typeof e[t]!="function"?(0,P7r.of)(e):(0,P7r.from)((0,FQu.default)(e[t])(r).then(n=>(e[t]=n,e)))};var NQu={set:(e,t="",r)=>{let n=e;t.split(".").forEach((i,o,s)=>{i==="__proto__"||i==="constructor"||(o===s.length-1?n[i]=r:(!(i in n)||typeof n[i]!="object")&&(n[i]={}),n=n[i])})},get:(e,t="",r)=>{let n=o=>String.prototype.split.call(t,o).filter(Boolean).reduce((s,a)=>s!=null?s[a]:s,e),i=n(/[,[\]]+?/)||n(/[,.[\]]+?/);return i===void 0||i===e?r:i}},Cot=class extends b3e{constructor(t,r){super(r),this.prompts=t}run(t,r){this.answers=typeof r=="object"?{...r}:{};let n;return Array.isArray(t)?n=(0,Ud.from)(t):(0,Ud.isObservable)(t)?n=t:Object.values(t).every(i=>typeof i=="object"&&!Array.isArray(i)&&i!=null)?n=(0,Ud.from)(Object.entries(t).map(([i,o])=>({name:i,...o}))):n=(0,Ud.from)([t]),this.process=n.pipe((0,Ud.concatMap)(this.processQuestion.bind(this)),(0,Ud.publish)()),this.process.connect(),this.process.pipe((0,Ud.reduce)((i,o)=>(NQu.set(i,o.name,o.answer),i),this.answers)).toPromise(Promise).then(this.onCompletion.bind(this),this.onError.bind(this))}onCompletion(){return this.close(),this.answers}onError(t){return this.close(),Promise.reject(t)}processQuestion(t){return t={...t},(0,Ud.defer)(()=>(0,Ud.of)(t).pipe((0,Ud.concatMap)(this.setDefaultType.bind(this)),(0,Ud.concatMap)(this.filterIfRunnable.bind(this)),(0,Ud.concatMap)(()=>D7r(t,"message",this.answers)),(0,Ud.concatMap)(()=>D7r(t,"default",this.answers)),(0,Ud.concatMap)(()=>D7r(t,"choices",this.answers)),(0,Ud.concatMap)(this.fetchAnswer.bind(this))))}fetchAnswer(t){let r=this.prompts[t.type];return this.activePrompt=new r(t,this.rl,this.answers),(0,Ud.defer)(()=>(0,Ud.from)(this.activePrompt.run().then(n=>({name:t.name,answer:n}))))}setDefaultType(t){return this.prompts[t.type]||(t.type="input"),(0,Ud.defer)(()=>(0,Ud.of)(t))}filterIfRunnable(t){if(t.askAnswered!==!0&&NQu.get(this.answers,t.name)!==void 0)return Ud.EMPTY;if(t.when===!1)return Ud.EMPTY;if(typeof t.when!="function")return(0,Ud.of)(t);let{answers:r}=this;return(0,Ud.defer)(()=>(0,Ud.from)((0,jQu.default)(t.when)(r).then(n=>{if(n)return t})).pipe((0,Ud.filter)(n=>n!=null)))}};function QQu(e){let t=function(r,n){let i;try{i=new Cot(t.prompts,e)}catch(s){return Promise.reject(s)}let o=i.run(r,n);return o.ui=i,o};return t.prompts={},t.registerPrompt=function(r,n){return t.prompts[r]=n,this},t.restoreDefaultPrompts=function(){this.registerPrompt("list",$Ut),this.registerPrompt("input",m3e),this.registerPrompt("number",e_t),this.registerPrompt("confirm",t_t),this.registerPrompt("rawlist",r_t),this.registerPrompt("expand",n_t),this.registerPrompt("checkbox",i_t),this.registerPrompt("password",o_t),this.registerPrompt("editor",d_t)},t.restoreDefaultPrompts(),t}var GMo=QQu();function sSm(e,t){GMo.registerPrompt(e,t)}function aSm(){GMo.restoreDefaultPrompts()}var cSm={prompt:GMo,ui:{BottomBar:m_t,Prompt:Cot},createPromptModule:QQu,registerPrompt:sSm,restoreDefaultPrompts:aSm,Separator:pz},pu=cSm;var wot=require("path");function MQu(){let e=uSm();return async t=>{for(let r of t)r.module=e(r.filename);return t}}function uSm(e=process.argv[1]?(0,wot.dirname)(process.argv[1]):process.cwd(),t=wot.sep==="\\"){let r=t?zQu(e):e;return n=>{if(!n)return;let i=t?zQu(n):n,{dir:o,base:s,ext:a}=wot.posix.parse(i);(a===".js"||a===".mjs"||a===".cjs")&&(s=s.slice(0,-1*a.length));let c=decodeURIComponent(s);o||(o=".");let u=o.lastIndexOf("/node_modules");if(u>-1)return`${o.slice(u+14).replace(/\//g,".")}:${c}`;if(o.startsWith(r)){let l=o.slice(r.length+1).replace(/\//g,".");return l?`${l}:${c}`:c}return c}}function zQu(e){return e.replace(/^[A-Z]:/,"").replace(/\\/g,"/")}var qMo=e=>{if("flags"in e){let t=LQu(e.flags),r=VQu(e.flags);return{...e,featureFlags:t,featureFlagPayloads:r}}{let t=e.featureFlags??{},r=Object.fromEntries(Object.entries(e.featureFlagPayloads||{}).map(([i,o])=>[i,WMo(o)])),n=Object.fromEntries(Object.entries(t).map(([i,o])=>[i,lSm(i,o,r[i])]));return{...e,featureFlags:t,featureFlagPayloads:r,flags:n}}};function lSm(e,t,r){return{key:e,enabled:typeof t=="string"?!0:t,variant:typeof t=="string"?t:void 0,reason:void 0,metadata:{id:void 0,version:void 0,payload:r?JSON.stringify(r):void 0,description:void 0}}}var LQu=e=>Object.fromEntries(Object.entries(e??{}).map(([t,r])=>[t,h_t(r)]).filter(([,t])=>t!==void 0)),VQu=e=>{let t=e??{};return Object.fromEntries(Object.keys(t).filter(r=>{let n=t[r];return n.enabled&&n.metadata&&n.metadata.payload!==void 0}).map(r=>{let n=t[r].metadata?.payload;return[r,n?WMo(n):void 0]}))};var h_t=e=>e===void 0?void 0:e.variant??e.enabled,WMo=e=>{if(typeof e!="string")return e;try{return JSON.parse(e)}catch{return e}};var b2=(function(e){return e.AnonymousId="anonymous_id",e.DistinctId="distinct_id",e.Props="props",e.EnablePersonProcessing="enable_person_processing",e.PersonMode="person_mode",e.FeatureFlagDetails="feature_flag_details",e.FeatureFlags="feature_flags",e.FeatureFlagPayloads="feature_flag_payloads",e.BootstrapFeatureFlagDetails="bootstrap_feature_flag_details",e.BootstrapFeatureFlags="bootstrap_feature_flags",e.BootstrapFeatureFlagPayloads="bootstrap_feature_flag_payloads",e.OverrideFeatureFlags="override_feature_flags",e.Queue="queue",e.LogsQueue="logs_queue",e.OptedOut="opted_out",e.SessionId="session_id",e.SessionStartTimestamp="session_start_timestamp",e.SessionLastTimestamp="session_timestamp",e.PersonProperties="person_properties",e.GroupProperties="group_properties",e.InstalledAppBuild="installed_app_build",e.InstalledAppVersion="installed_app_version",e.SessionReplay="session_replay",e.SurveyLastSeenDate="survey_last_seen_date",e.SurveysSeen="surveys_seen",e.Surveys="surveys",e.RemoteConfig="remote_config",e.FlagsEndpointWasHit="flags_endpoint_was_hit",e.DeviceId="device_id",e})({});function HMo(){return"CompressionStream"in globalThis&&"TextEncoder"in globalThis&&"Response"in globalThis&&typeof Response.prototype.blob=="function"}var fSm="NativeGzipValidationError",dSm=31,mSm=139,hSm=8,gSm=e=>e.length>=2&&e[0]===dSm&&e[1]===mSm;var g_t,ASm=()=>{if(g_t)return g_t;g_t=[];for(let e=0;e<256;e++){let t=e;for(let r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;g_t[e]=t>>>0}return g_t},ySm=e=>{let t=ASm(),r=4294967295;for(let n=0;n<e.length;n++)r=t[(r^e[n])&255]^r>>>8;return(4294967295^r)>>>0},R7r=e=>{let t=new Error(`Native gzip produced invalid output: ${e}`);throw t.name=fSm,t},bSm=async(e,t)=>{e.size<18&&R7r("too-short");let r=new Uint8Array(await e.slice(0,10).arrayBuffer());(!gSm(r)||r[2]!==hSm)&&R7r("invalid-header");let n=new DataView(await e.slice(e.size-8).arrayBuffer());n.getUint32(0,!0)!==ySm(t)&&R7r("invalid-crc");let i=t.length>>>0;n.getUint32(4,!0)!==i&&R7r("invalid-size")};async function A_t(e,t=!0,r){try{let n=new TextEncoder().encode(e),i=new CompressionStream("gzip"),o=i.writable.getWriter(),s=o.write(n).then(()=>o.close()).catch(async u=>{try{await o.abort(u)}catch{}throw u}),a=new Response(i.readable).blob(),[c]=await Promise.all([a,s]);return await bSm(c,n),c}catch(n){if(r?.rethrow)throw n;return t&&console.error("Failed to gzip compress data",n),null}}var ESm=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],UQu=function(e,t=[]){if(!e)return!1;let r=e.toLowerCase();return ESm.concat(t).some(n=>{let i=n.toLowerCase();return r.indexOf(i)!==-1})};var vSm=Array.isArray,_Qu=Object.prototype,BMI=_Qu.hasOwnProperty,KMo=_Qu.toString,Sot=vSm||function(e){return KMo.call(e)==="[object Array]"};var y_t=e=>e===Object(e)&&!Sot(e);var Tot=e=>e===void 0,Oxe=e=>KMo.call(e)=="[object String]",GQu=e=>Oxe(e)&&e.trim().length===0;var b_t=e=>KMo.call(e)=="[object Number]"&&e===e;var JMo=e=>e instanceof Error;function k7r(e){return e===null||typeof e!="object"}function E3e(e,t){return Object.prototype.toString.call(e)===`[object ${t}]`}function qQu(e){return E3e(e,"ErrorEvent")}function Oot(e){return typeof Event<"u"&&xSm(e,Event)}function WQu(e){return E3e(e,"Object")}function xSm(e,t){try{return e instanceof t}catch{return!1}}function E_t(e,t,r,n,i){return t>r&&(n.warn("min cannot be greater than max."),t=r),b_t(e)?e>r?(n.warn(" cannot be greater than max: "+r+". Using max value instead."),r):e<t?(n.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(n.warn(" must be a number. using max or fallback. max: "+r+", fallback: "+i),E_t(i||r,t,r,n))}var CSm=864e5,F7r=class{constructor(t){this._buckets={},this._onBucketRateLimited=t._onBucketRateLimited,this._bucketSize=E_t(t.bucketSize,0,100,t._logger),this._refillRate=E_t(t.refillRate,0,this._bucketSize,t._logger),this._refillInterval=E_t(t.refillInterval,0,CSm,t._logger)}_applyRefill(t,r){let n=r-t.lastAccess,i=Math.floor(n/this._refillInterval);if(i>0){let o=i*this._refillRate;t.tokens=Math.min(t.tokens+o,this._bucketSize),t.lastAccess=t.lastAccess+i*this._refillInterval}}consumeRateLimit(t){let r=Date.now(),n=String(t),i=this._buckets[n];return i?this._applyRefill(i,r):(i={tokens:this._bucketSize,lastAccess:r},this._buckets[n]=i),i.tokens===0?!0:(i.tokens--,i.tokens===0&&this._onBucketRateLimited?.(t),i.tokens===0)}stop(){this._buckets={}}};var N7r="0123456789abcdef",j7r=class e{constructor(t){this.bytes=t}static ofInner(t){if(t.length===16)return new e(t);throw new TypeError("not 128-bit length")}static fromFieldsV7(t,r,n,i){if(!Number.isInteger(t)||!Number.isInteger(r)||!Number.isInteger(n)||!Number.isInteger(i)||t<0||r<0||n<0||i<0||t>0xffffffffffff||r>4095||n>1073741823||i>4294967295)throw new RangeError("invalid field value");let o=new Uint8Array(16);return o[0]=t/2**40,o[1]=t/2**32,o[2]=t/2**24,o[3]=t/2**16,o[4]=t/256,o[5]=t,o[6]=112|r>>>8,o[7]=r,o[8]=128|n>>>24,o[9]=n>>>16,o[10]=n>>>8,o[11]=n,o[12]=i>>>24,o[13]=i>>>16,o[14]=i>>>8,o[15]=i,new e(o)}static parse(t){let r;switch(t.length){case 32:r=/^[0-9a-f]{32}$/i.exec(t)?.[0];break;case 36:r=/^([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i.exec(t)?.slice(1,6).join("");break;case 38:r=/^\{([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})\}$/i.exec(t)?.slice(1,6).join("");break;case 45:r=/^urn:uuid:([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i.exec(t)?.slice(1,6).join("");break;default:break}if(r){let n=new Uint8Array(16);for(let i=0;i<16;i+=4){let o=parseInt(r.substring(2*i,2*i+8),16);n[i+0]=o>>>24,n[i+1]=o>>>16,n[i+2]=o>>>8,n[i+3]=o}return new e(n)}throw new SyntaxError("could not parse UUID string")}toString(){let t="";for(let r=0;r<this.bytes.length;r++)t+=N7r.charAt(this.bytes[r]>>>4),t+=N7r.charAt(15&this.bytes[r]),(r===3||r===5||r===7||r===9)&&(t+="-");return t}toHex(){let t="";for(let r=0;r<this.bytes.length;r++)t+=N7r.charAt(this.bytes[r]>>>4),t+=N7r.charAt(15&this.bytes[r]);return t}toJSON(){return this.toString()}getVariant(){let t=this.bytes[8]>>>4;if(t<0)throw new Error("unreachable");if(t<=7)return this.bytes.every(r=>r===0)?"NIL":"VAR_0";if(t<=11)return"VAR_10";if(t<=13)return"VAR_110";if(t<=15)return this.bytes.every(r=>r===255)?"MAX":"VAR_RESERVED";throw new Error("unreachable")}getVersion(){return this.getVariant()==="VAR_10"?this.bytes[6]>>>4:void 0}clone(){return new e(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(let r=0;r<16;r++){let n=this.bytes[r]-t.bytes[r];if(n!==0)return Math.sign(n)}return 0}},YMo=class{constructor(t){this.timestamp=0,this.counter=0,this.random=t??wSm()}generate(){return this.generateOrResetCore(Date.now(),1e4)}generateOrAbort(){return this.generateOrAbortCore(Date.now(),1e4)}generateOrResetCore(t,r){let n=this.generateOrAbortCore(t,r);return n===void 0&&(this.timestamp=0,n=this.generateOrAbortCore(t,r)),n}generateOrAbortCore(t,r){if(!Number.isInteger(t)||t<1||t>0xffffffffffff)throw new RangeError("`unixTsMs` must be a 48-bit positive integer");if(r<0||r>0xffffffffffff)throw new RangeError("`rollbackAllowance` out of reasonable range");if(t>this.timestamp)this.timestamp=t,this.resetCounter();else{if(!(t+r>=this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return j7r.fromFieldsV7(this.timestamp,Math.trunc(this.counter/2**30),this.counter&2**30-1,this.random.nextUint32())}resetCounter(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}generateV4(){let t=new Uint8Array(Uint32Array.of(this.random.nextUint32(),this.random.nextUint32(),this.random.nextUint32(),this.random.nextUint32()).buffer);return t[6]=64|t[6]>>>4,t[8]=128|t[8]>>>2,j7r.ofInner(t)}},wSm=()=>({nextUint32:()=>65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random())}),HQu,Hee=()=>SSm().toString(),SSm=()=>(HQu||(HQu=new YMo)).generate();var Q7r=class{add(t){let r=Hee();return this.promiseByIds[r]=t,t.catch(()=>{}).finally(()=>{delete this.promiseByIds[r]}),t}async join(){let t=Object.values(this.promiseByIds),r=t.length;for(;r>0;)await Promise.all(t),t=Object.values(this.promiseByIds),r=t.length}get length(){return Object.keys(this.promiseByIds).length}constructor(){this.promiseByIds={}}};function TSm(e=console){return{log:e.log.bind(e),warn:e.warn.bind(e),error:e.error.bind(e),debug:e.debug.bind(e)}}var KQu=(e,t,r)=>{function n(o,...s){t(()=>{let a=r[o];a(e,...s)})}return{debug:(...o)=>{n("debug",...o)},info:(...o)=>{n("log",...o)},warn:(...o)=>{n("warn",...o)},error:(...o)=>{n("error",...o)},critical:(...o)=>{r.error(e,...o)},createLogger:o=>KQu(`${e} ${o}`,t,r)}},OSm=e=>e();function JQu(e,t=OSm){return KQu(e,t,TSm())}var Pot="Mobile",M7r="iOS",Bot="Android",YQu="Tablet",VMI=Bot+" "+YQu;var PSm="Apple",UMI=PSm+" Watch",XQu="Safari",L7r="BlackBerry",ZQu="Samsung",DSm=ZQu+"Browser",RSm=ZQu+" Internet",V7r="Chrome",kSm=V7r+" OS",FSm=V7r+" "+M7r,$Qu="Internet Explorer",NSm=$Qu+" "+Pot,ZMo="Opera",_MI=ZMo+" Mini",ezu="Edge",jSm="Microsoft "+ezu,$Mo="Firefox",QSm=$Mo+" "+M7r,e6o="Nintendo",t6o="PlayStation",z7r="Xbox",zSm=Bot+" "+Pot,MSm=Pot+" "+XQu,I_t="Windows",LSm=I_t+" Phone";var tzu="Generic",GMI=tzu+" "+Pot.toLowerCase(),qMI=tzu+" "+YQu.toLowerCase(),VSm="Konqueror",USm="Oculus Browser",HD="(\\d+(\\.\\d+)?)",XMo=new RegExp("Version/"+HD),WMI=new RegExp(z7r,"i"),HMI=new RegExp(t6o+" \\w+","i"),KMI=new RegExp(e6o+" \\w+","i"),_Sm=new RegExp(L7r+"|PlayBook|BB10","i"),GSm={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000","5.1":"XP","5.2":"XP","6.0":"Vista","6.1":"7","6.2":"8","6.3":"8.1","6.4":"10","10.0":"10"};var JMI={[NSm]:[new RegExp("rv:"+HD)],[jSm]:[new RegExp(ezu+"?\\/"+HD)],[V7r]:[new RegExp("("+V7r+"|CrMo)\\/"+HD)],[FSm]:[new RegExp("CriOS\\/"+HD)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+HD)],[XQu]:[XMo],[MSm]:[XMo],[ZMo]:[new RegExp("("+ZMo+"|OPR)\\/"+HD)],[$Mo]:[new RegExp($Mo+"\\/"+HD)],[QSm]:[new RegExp("FxiOS\\/"+HD)],[VSm]:[new RegExp("Konqueror[:/]?"+HD,"i")],[L7r]:[new RegExp(L7r+" "+HD),XMo],[zSm]:[new RegExp("android\\s"+HD,"i")],[RSm]:[new RegExp(DSm+"\\/"+HD)],[USm]:[new RegExp("OculusBrowser\\/"+HD)],[$Qu]:[new RegExp("(rv:|MSIE )"+HD)],Mozilla:[new RegExp("rv:"+HD)]};var YMI=[[new RegExp(z7r+"; "+z7r+" (.*?)[);]","i"),e=>[z7r,e&&e[1]||""]],[new RegExp(e6o,"i"),[e6o,""]],[new RegExp(t6o,"i"),[t6o,""]],[_Sm,[L7r,""]],[new RegExp(I_t,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[LSm,""];if(new RegExp(Pot).test(t)&&!/IEMobile\b/.test(t))return[I_t+" "+Pot,""];let r=/Windows NT ([0-9.]+)/i.exec(t);if(r&&r[1]){let n=r[1],i=GSm[n]||"";return/arm/i.test(t)&&(i="RT"),[I_t,i]}return[I_t,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>{if(e&&e[3]){let t=[e[3],e[4],e[5]||"0"];return[M7r,t.join(".")]}return[M7r,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{let t="";return e&&e.length>=3&&(t=Tot(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+Bot+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Bot+")","i"),e=>{if(e&&e[2]){let t=[e[2],e[3],e[4]||"0"];return[Bot,t.join(".")]}return[Bot,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{let t=["Mac OS X",""];if(e&&e[1]){let r=[e[1],e[2],e[3]||"0"];t[1]=r.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[kSm,""]],[/Linux|debian/i,["Linux",""]]];var rzu="utf8";function nzu(e){return e?.replace(/\/+$/,"")}async function izu(e,t){let r=null;for(let n=0;n<t.retryCount+1;n++){n>0&&await new Promise(i=>setTimeout(i,t.retryDelay));try{return await e()}catch(i){if(r=i,!t.retryCheck(i))throw i}}throw r}function U7r(){return new Date().toISOString()}function Kee(e,t){let r=setTimeout(e,t);return r?.unref&&r?.unref(),r}var ozu=e=>e instanceof Error;function r6o(e){return Promise.all(e.map(t=>(t??Promise.resolve()).then(r=>({status:"fulfilled",value:r}),r=>({status:"rejected",reason:r}))))}var qSm={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},l6I=qSm.info;var _7r=class{constructor(){this.events={},this.events={}}on(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),()=>{this.events[t]=this.events[t].filter(n=>n!==r)}}emit(t,r){for(let n of this.events[t]||[])n(r);for(let n of this.events["*"]||[])n(t,r)}};var v3e=class extends Error{constructor(t,r){super("HTTP error while fetching PostHog: status="+t.status+", reqByteLength="+r),this.response=t,this.reqByteLength=r,this.name="PostHogFetchHttpError"}get status(){return this.response.status}get text(){return this.response.text()}get json(){return this.response.json()}},I3e=class extends Error{constructor(t){super("Network error while fetching PostHog",t instanceof Error?{cause:t}:{}),this.error=t,this.name="PostHogFetchNetworkError"}};async function szu(e){if(e instanceof v3e){let t="";try{t=await e.text}catch{}console.error(`Error while flushing PostHog: message=${e.message}, response body=${t}`,e)}else console.error("Error while flushing PostHog",e);return Promise.resolve()}function G7r(e){return typeof e=="object"&&(e instanceof v3e||e instanceof I3e)}function q7r(e){return typeof e=="object"&&e instanceof v3e&&e.status===413}var v_t=class{constructor(t,r={}){this.flushPromise=null,this.shutdownPromise=null,this.promiseQueue=new Q7r,this._events=new _7r,this._isInitialized=!1;let n=typeof t=="string"?t.trim():"",i=typeof r.host=="string"?r.host.trim():"",o=!n;this._logger=JQu("[PostHog]",this.logMsgIfDebug.bind(this)),o&&this._logger.error("You must pass your PostHog project's api key. The client will be disabled."),this.apiKey=n,this.host=nzu(i||"https://us.i.posthog.com"),this.flushAt=r.flushAt?Math.max(r.flushAt,1):20,this.maxBatchSize=Math.max(this.flushAt,r.maxBatchSize??100),this.maxQueueSize=Math.max(this.flushAt,r.maxQueueSize??1e3),this.flushInterval=r.flushInterval??1e4,this.preloadFeatureFlags=r.preloadFeatureFlags??!0,this.defaultOptIn=r.defaultOptIn??!0,this.disableSurveys=r.disableSurveys??!1,this._retryOptions={retryCount:r.fetchRetryCount??3,retryDelay:r.fetchRetryDelay??3e3,retryCheck:G7r},this.requestTimeout=r.requestTimeout??1e4,this.featureFlagsRequestTimeoutMs=r.featureFlagsRequestTimeoutMs??3e3,this.remoteConfigRequestTimeoutMs=r.remoteConfigRequestTimeoutMs??3e3,this.disableGeoip=r.disableGeoip??!0,this.disabled=(r.disabled??!1)||o,this.historicalMigration=r?.historicalMigration??!1,this._initPromise=Promise.resolve(),this._isInitialized=!0,this.evaluationContexts=r?.evaluationContexts??r?.evaluationEnvironments,r?.evaluationEnvironments&&!r?.evaluationContexts&&this._logger.warn("evaluationEnvironments is deprecated. Use evaluationContexts instead. This property will be removed in a future version."),this.disableCompression=!HMo()||(r?.disableCompression??!1)}logMsgIfDebug(t){this.isDebug&&t()}wrap(t){if(this.disabled)return void this._logger.warn("The client is disabled");if(this._isInitialized)return t();this._initPromise.then(()=>t())}getCommonEventProperties(){return{$lib:this.getLibraryId(),$lib_version:this.getLibraryVersion()}}get optedOut(){return this.getPersistedProperty(b2.OptedOut)??!this.defaultOptIn}async optIn(){this.wrap(()=>{this.setPersistedProperty(b2.OptedOut,!1)})}async optOut(){this.wrap(()=>{this.setPersistedProperty(b2.OptedOut,!0)})}on(t,r){return this._events.on(t,r)}debug(t=!0){if(this.removeDebugCallback?.(),t){let r=this.on("*",(n,i)=>this._logger.info(n,i));this.removeDebugCallback=()=>{r(),this.removeDebugCallback=void 0}}}get isDebug(){return!!this.removeDebugCallback}get isDisabled(){return this.disabled}buildPayload(t){return{distinct_id:t.distinct_id,event:t.event,properties:{...t.properties||{},...this.getCommonEventProperties()}}}addPendingPromise(t){return this.promiseQueue.add(t)}identifyStateless(t,r,n){this.wrap(()=>{let i={...this.buildPayload({distinct_id:t,event:"$identify",properties:r})};this.enqueue("identify",i,n)})}async identifyStatelessImmediate(t,r,n){let i={...this.buildPayload({distinct_id:t,event:"$identify",properties:r})};await this.sendImmediate("identify",i,n)}captureStateless(t,r,n,i){this.wrap(()=>{let o=this.buildPayload({distinct_id:t,event:r,properties:n});this.enqueue("capture",o,i)})}async captureStatelessImmediate(t,r,n,i){let o=this.buildPayload({distinct_id:t,event:r,properties:n});await this.sendImmediate("capture",o,i)}aliasStateless(t,r,n,i){this.wrap(()=>{let o=this.buildPayload({event:"$create_alias",distinct_id:r,properties:{...n||{},distinct_id:r,alias:t}});this.enqueue("alias",o,i)})}async aliasStatelessImmediate(t,r,n,i){let o=this.buildPayload({event:"$create_alias",distinct_id:r,properties:{...n||{},distinct_id:r,alias:t}});await this.sendImmediate("alias",o,i)}groupIdentifyStateless(t,r,n,i,o,s){this.wrap(()=>{let a=this.buildPayload({distinct_id:o||`$${t}_${r}`,event:"$groupidentify",properties:{$group_type:t,$group_key:r,$group_set:n||{},...s||{}}});this.enqueue("capture",a,i)})}async getRemoteConfig(){await this._initPromise;let t=this.host;t==="https://us.i.posthog.com"?t="https://us-assets.i.posthog.com":t==="https://eu.i.posthog.com"&&(t="https://eu-assets.i.posthog.com");let r=`${t}/array/${this.apiKey}/config`,n={method:"GET",headers:{...this.getCustomHeaders(),"Content-Type":"application/json"}};return this.fetchWithRetry(r,n,{retryCount:0},this.remoteConfigRequestTimeoutMs).then(i=>i.json()).catch(i=>{this._logger.error("Remote config could not be loaded",i),this._events.emit("error",i)})}async getFlags(t,r={},n={},i={},o={},s=!1){await this._initPromise;let a=s?"&config=true":"",c=`${this.host}/flags/?v=2${a}`,u={token:this.apiKey,distinct_id:t,groups:r,person_properties:n,group_properties:i,...o};n.$device_id&&(u.$device_id=n.$device_id),this.evaluationContexts&&this.evaluationContexts.length>0&&(u.evaluation_contexts=this.evaluationContexts);let l={method:"POST",headers:{...this.getCustomHeaders(),"Content-Type":"application/json"},body:JSON.stringify(u)};return this._logger.info("Flags URL",c),this.fetchWithRetry(c,l,{retryCount:0},this.featureFlagsRequestTimeoutMs).then(p=>p.json()).then(p=>({success:!0,response:qMo(p)})).catch(p=>(this._events.emit("error",p),{success:!1,error:this.categorizeRequestError(p)}))}categorizeRequestError(t){if(t instanceof v3e)return{type:"api_error",statusCode:t.status};if(t instanceof I3e){let r=t.error;return r instanceof Error&&(r.name==="AbortError"||r.name==="TimeoutError")?{type:"timeout"}:{type:"connection_error"}}return{type:"unknown_error"}}async getFeatureFlagStateless(t,r,n={},i={},o={},s){await this._initPromise;let a=await this.getFeatureFlagDetailStateless(t,r,n,i,o,s);if(a===void 0)return{response:void 0,requestId:void 0};let c=h_t(a.response);return c===void 0&&(c=!1),{response:c,requestId:a.requestId}}async getFeatureFlagDetailStateless(t,r,n={},i={},o={},s){await this._initPromise;let a=await this.getFeatureFlagDetailsStateless(r,n,i,o,s,[t]);return a===void 0?void 0:{response:a.flags[t],requestId:a.requestId,evaluatedAt:a.evaluatedAt}}async getFeatureFlagPayloadStateless(t,r,n={},i={},o={},s){await this._initPromise;let a=await this.getFeatureFlagPayloadsStateless(r,n,i,o,s,[t]);if(!a)return;let c=a[t];return c===void 0?null:c}async getFeatureFlagPayloadsStateless(t,r={},n={},i={},o,s){return await this._initPromise,(await this.getFeatureFlagsAndPayloadsStateless(t,r,n,i,o,s)).payloads}async getFeatureFlagsStateless(t,r={},n={},i={},o,s){return await this._initPromise,await this.getFeatureFlagsAndPayloadsStateless(t,r,n,i,o,s)}async getFeatureFlagsAndPayloadsStateless(t,r={},n={},i={},o,s){await this._initPromise;let a=await this.getFeatureFlagDetailsStateless(t,r,n,i,o,s);return a?{flags:a.featureFlags,payloads:a.featureFlagPayloads,requestId:a.requestId}:{flags:void 0,payloads:void 0,requestId:void 0}}async getFeatureFlagDetailsStateless(t,r={},n={},i={},o,s){await this._initPromise;let a={};(o??this.disableGeoip)&&(a.geoip_disable=!0),s&&(a.flag_keys_to_evaluate=s);let c=await this.getFlags(t,r,n,i,a);if(!c.success)return;let u=c.response;return u.errorsWhileComputingFlags&&console.error("[FEATURE FLAGS] Error while computing feature flags, some flags may be missing or incorrect. Learn more at https://posthog.com/docs/feature-flags/best-practices"),u.quotaLimited?.includes("feature_flags")?(console.warn("[FEATURE FLAGS] Feature flags quota limit exceeded - feature flags unavailable. Learn more about billing limits at https://posthog.com/docs/billing/limits-alerts"),{flags:{},featureFlags:{},featureFlagPayloads:{},requestId:u?.requestId,quotaLimited:u.quotaLimited}):u}async getSurveysStateless(){if(await this._initPromise,this.disabled)return[];if(this.disableSurveys===!0)return this._logger.info("Loading surveys is disabled."),[];let t=`${this.host}/api/surveys/?token=${this.apiKey}`,r={method:"GET",headers:{...this.getCustomHeaders(),"Content-Type":"application/json"}},i=(await this.fetchWithRetry(t,r).then(o=>{if(o.status!==200||!o.json){let s=`Surveys API could not be loaded: ${o.status}`,a=new Error(s);this._logger.error(a),this._events.emit("error",new Error(s));return}return o.json()}).catch(o=>{this._logger.error("Surveys API could not be loaded",o),this._events.emit("error",o)}))?.surveys;return i&&this._logger.info("Surveys fetched from API: ",JSON.stringify(i)),i??[]}get props(){return this._props||(this._props=this.getPersistedProperty(b2.Props)),this._props||{}}set props(t){this._props=t}async register(t){this.wrap(()=>{this.props={...this.props,...t},this.setPersistedProperty(b2.Props,this.props)})}async unregister(t){this.wrap(()=>{delete this.props[t],this.setPersistedProperty(b2.Props,this.props)})}processBeforeEnqueue(t){return t}async flushStorage(){}enqueue(t,r,n){this.wrap(()=>{if(this.optedOut)return void this._events.emit(t,"Library is disabled. Not sending event. To re-enable, call posthog.optIn()");let i=this.prepareMessage(t,r,n);if(i=this.processBeforeEnqueue(i),i===null)return;let o=this.getPersistedProperty(b2.Queue)||[];o.length>=this.maxQueueSize&&(o.shift(),this._logger.info("Queue is full, the oldest event is dropped.")),o.push({message:i}),this.setPersistedProperty(b2.Queue,o),this._events.emit(t,i),o.length>=this.flushAt&&this.flushBackground(),this.flushInterval&&!this._flushTimer&&(this._flushTimer=Kee(()=>this.flushBackground(),this.flushInterval))})}async sendImmediate(t,r,n){if(this.disabled)return void this._logger.warn("The client is disabled");if(this._isInitialized||await this._initPromise,this.optedOut)return void this._events.emit(t,"Library is disabled. Not sending event. To re-enable, call posthog.optIn()");let i=this.prepareMessage(t,r,n);if(i=this.processBeforeEnqueue(i),i===null)return;let o={api_key:this.apiKey,batch:[i],sent_at:U7r()};this.historicalMigration&&(o.historical_migration=!0);let s=JSON.stringify(o),a=`${this.host}/batch/`,c=this.disableCompression?null:await A_t(s,this.isDebug),u={method:"POST",headers:{...this.getCustomHeaders(),"Content-Type":"application/json",...c!==null&&{"Content-Encoding":"gzip"}},body:c||s};try{await(await this.fetchWithRetry(a,u)).body?.cancel()?.catch(()=>{})}catch(l){this._events.emit("error",l)}}prepareMessage(t,r,n){let i={...r,type:t,library:this.getLibraryId(),library_version:this.getLibraryVersion(),timestamp:n?.timestamp?n?.timestamp:U7r(),uuid:n?.uuid?n.uuid:Hee()};return(n?.disableGeoip??this.disableGeoip)&&(i.properties||(i.properties={}),i.properties.$geoip_disable=!0),i.distinctId&&(i.distinct_id=i.distinctId,delete i.distinctId),i}clearFlushTimer(){this._flushTimer&&(clearTimeout(this._flushTimer),this._flushTimer=void 0)}flushBackground(){this.flush().catch(async t=>{await szu(t)})}async flush(){if(this.disabled)return;let t=r6o([this.flushPromise]).then(()=>this._flush());return this.flushPromise=t,this.addPendingPromise(t),r6o([t]).then(()=>{this.flushPromise===t&&(this.flushPromise=null)}),t}getCustomHeaders(){let t=this.getCustomUserAgent(),r={};return t&&t!==""&&(r["User-Agent"]=t),r}async _flush(){this.clearFlushTimer(),await this._initPromise;let t=this.getPersistedProperty(b2.Queue)||[];if(!t.length)return;let r=[],n=t.length;for(;t.length>0&&r.length<n;){let i=t.slice(0,this.maxBatchSize),o=i.map(f=>f.message),s=async()=>{let m=(this.getPersistedProperty(b2.Queue)||[]).slice(i.length);this.setPersistedProperty(b2.Queue,m),t=m,await this.flushStorage()},a={api_key:this.apiKey,batch:o,sent_at:U7r()};this.historicalMigration&&(a.historical_migration=!0);let c=JSON.stringify(a),u=`${this.host}/batch/`,l=this.disableCompression?null:await A_t(c,this.isDebug),p={method:"POST",headers:{...this.getCustomHeaders(),"Content-Type":"application/json",...l!==null&&{"Content-Encoding":"gzip"}},body:l||c},d={retryCheck:f=>q7r(f)?!1:G7r(f)};try{await(await this.fetchWithRetry(u,p,d)).body?.cancel()?.catch(()=>{})}catch(f){if(q7r(f)&&o.length>1){this.maxBatchSize=Math.max(1,Math.floor(o.length/2)),this._logger.warn(`Received 413 when sending batch of size ${o.length}, reducing batch size to ${this.maxBatchSize}`);continue}throw f instanceof I3e||await s(),this._events.emit("error",f),f}await s(),r.push(...o)}this._events.emit("flush",r)}async _sendLogsBatch(t){if(this.disabled)return{kind:"fatal",error:new Error("The client is disabled")};let r=JSON.stringify(t),n=`${this.host}/i/v1/logs?token=${encodeURIComponent(this.apiKey)}`,i=this.disableCompression?null:await A_t(r,this.isDebug),o={method:"POST",headers:{...this.getCustomHeaders(),"Content-Type":"application/json",...i!==null&&{"Content-Encoding":"gzip"}},body:i||r};try{return await this.fetchWithRetry(n,o,{retryCheck:s=>q7r(s)?!1:G7r(s)}),{kind:"ok"}}catch(s){return q7r(s)?{kind:"too-large"}:s instanceof I3e?{kind:"retry-later",error:s}:{kind:"fatal",error:s}}}async fetchWithRetry(t,r,n,i){let o=r.body?r.body:"",s=-1;try{s=o instanceof Blob?o.size:Buffer.byteLength(o,rzu)}catch{o instanceof Blob?s=o.size:s=new TextEncoder().encode(o).length}return await izu(async()=>{let a=new AbortController,c=i??this.requestTimeout,u=Kee(()=>a.abort(),c),l=null;try{l=await this.fetch(t,{signal:a.signal,...r})}catch(d){throw new I3e(d)}finally{clearTimeout(u)}if(!(r.mode==="no-cors")&&(l.status<200||l.status>=400))throw new v3e(l,s);return l},{...this._retryOptions,...n})}async _shutdown(t=3e4){await this._initPromise;let r=!1;if(this.clearFlushTimer(),this.disabled)return;let n=async()=>{try{for(await this.promiseQueue.join();!((this.getPersistedProperty(b2.Queue)||[]).length===0||(await this.flush(),r)););}catch(o){if(!G7r(o))throw o;await szu(o)}},i;try{return await Promise.race([new Promise((o,s)=>{i=Kee(()=>{this._logger.error("Timed out while shutting down PostHog"),r=!0,s("Timeout while shutting down PostHog. Some events may not have been sent.")},t)}),n()])}finally{clearTimeout(i)}}async shutdown(t=3e4){return this.shutdownPromise?this._logger.warn("shutdown() called while already shutting down. shutdown() is meant to be called once before process exit - use flush() for per-request cleanup"):this.shutdownPromise=this._shutdown(t).finally(()=>{this.shutdownPromise=null}),this.shutdownPromise}};var dz={};Z(dz,{DEFAULT_EXCEPTION_STEPS_CONFIG:()=>Y7r,DOMExceptionCoercer:()=>s6o,EXCEPTION_STEP_INTERNAL_FIELDS:()=>x_t,ErrorCoercer:()=>a6o,ErrorEventCoercer:()=>c6o,ErrorPropertiesBuilder:()=>n6o,EventCoercer:()=>p6o,ExceptionStepsBuffer:()=>g6o,ObjectCoercer:()=>l6o,PrimitiveCoercer:()=>f6o,PromiseRejectionEventCoercer:()=>d6o,ReduceableCache:()=>m6o,StringCoercer:()=>u6o,chromeStackLineParser:()=>i6o,createDefaultStackParser:()=>c1m,createStackParser:()=>Azu,geckoStackLineParser:()=>o6o,getUtf8ByteLength:()=>bzu,nodeStackLineParser:()=>dzu,opera10StackLineParser:()=>lzu,opera11StackLineParser:()=>pzu,resolveExceptionStepsConfig:()=>h6o,reverseAndStripFrames:()=>gzu,stripReservedExceptionStepFields:()=>p1m,winjsStackLineParser:()=>uzu});var W7r,azu,H7r;function czu(e){let t=globalThis._posthogChunkIds;if(!t)return;let r=Object.keys(t);return H7r&&r.length===azu||(azu=r.length,H7r=r.reduce((n,i)=>{W7r||(W7r={});let o=W7r[i];if(o)n[o[0]]=o[1];else{let s=e(i);for(let a=s.length-1;a>=0;a--){let u=s[a]?.filename,l=t[i];if(u&&l){n[u]=l,W7r[i]=[u,l];break}}}return n},{})),H7r}var JSm=4,n6o=class{constructor(t,r,n=[]){this.coercers=t,this.stackParser=r,this.modifiers=n}buildFromUnknown(t,r={}){let i=r&&r.mechanism||{handled:!0,type:"generic"},s=this.buildCoercingContext(i,r,0).apply(t),a=this.buildParsingContext(r),c=this.parseStacktrace(s,a);return{$exception_list:this.convertToExceptionList(c,i),$exception_level:"error"}}async modifyFrames(t){for(let r of t)r.stacktrace&&r.stacktrace.frames&&Sot(r.stacktrace.frames)&&(r.stacktrace.frames=await this.applyModifiers(r.stacktrace.frames));return t}coerceFallback(t){return{type:"Error",value:"Unknown error",stack:t.syntheticException?.stack,synthetic:!0}}parseStacktrace(t,r){let n;t.cause!=null&&(n=this.parseStacktrace(t.cause,r));let i;return t.stack!=""&&t.stack!=null&&(i=this.applyChunkIds(this.stackParser(t.stack,t.synthetic?r.skipFirstLines:0),r.chunkIdMap)),{...t,cause:n,stack:i}}applyChunkIds(t,r){return t.map(n=>(n.filename&&r&&(n.chunk_id=r[n.filename]),n))}applyCoercers(t,r){for(let n of this.coercers)if(n.match(t))return n.coerce(t,r);return this.coerceFallback(r)}async applyModifiers(t){let r=t;for(let n of this.modifiers)r=await n(r);return r}convertToExceptionList(t,r){let n={type:t.type,value:t.value,mechanism:{type:r.type??"generic",handled:r.handled??!0,synthetic:t.synthetic??!1}};t.stack&&(n.stacktrace={type:"raw",frames:t.stack});let i=[n];return t.cause!=null&&i.push(...this.convertToExceptionList(t.cause,{...r,handled:!0})),i}buildParsingContext(t){return{chunkIdMap:czu(this.stackParser),skipFirstLines:t.skipFirstLines??1}}buildCoercingContext(t,r,n=0){let i=(s,a)=>{if(a<=JSm){let c=this.buildCoercingContext(t,r,a);return this.applyCoercers(s,c)}};return{...r,syntheticException:n==0?r.syntheticException:void 0,mechanism:t,apply:s=>i(s,n),next:s=>i(s,n+1)}}};var qB="?";function Jee(e,t,r,n,i){let o={platform:e,filename:t,function:r==="<anonymous>"?qB:r,in_app:!0};return Tot(n)||(o.lineno=n),Tot(i)||(o.colno=i),o}var K7r=(e,t)=>{let r=e.indexOf("safari-extension")!==-1,n=e.indexOf("safari-web-extension")!==-1;return r||n?[e.indexOf("@")!==-1?e.split("@")[0]:qB,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var YSm=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,XSm=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ZSm=/\((\S*)(?::(\d+))(?::(\d+))\)/,i6o=(e,t)=>{let r=YSm.exec(e);if(r){let[,i,o,s]=r;return Jee(t,i,qB,+o,+s)}let n=XSm.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){let a=ZSm.exec(n[2]);a&&(n[2]=a[1],n[3]=a[2],n[4]=a[3])}let[o,s]=K7r(n[1]||qB,n[2]);return Jee(t,s,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}};var $Sm=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,e1m=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,o6o=(e,t)=>{let r=$Sm.exec(e);if(r){if(r[3]&&r[3].indexOf(" > eval")>-1){let s=e1m.exec(r[3]);s&&(r[1]=r[1]||"eval",r[3]=s[1],r[4]=s[2],r[5]="")}let i=r[3],o=r[1]||qB;return[o,i]=K7r(o,i),Jee(t,i,o,r[4]?+r[4]:void 0,r[5]?+r[5]:void 0)}};var t1m=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,uzu=(e,t)=>{let r=t1m.exec(e);return r?Jee(t,r[2],r[1]||qB,+r[3],r[4]?+r[4]:void 0):void 0};var r1m=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,lzu=(e,t)=>{let r=r1m.exec(e);return r?Jee(t,r[2],r[3]||qB,+r[1]):void 0},n1m=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,pzu=(e,t)=>{let r=n1m.exec(e);return r?Jee(t,r[5],r[3]||r[4]||qB,+r[1],+r[2]):void 0};var i1m=/^\s*[-]{4,}$/,o1m=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/,dzu=(e,t)=>{let r=e.match(o1m);if(r){let n,i,o,s,a;if(r[1]){o=r[1];let l=o.lastIndexOf(".");if(o[l-1]==="."&&l--,l>0){n=o.slice(0,l),i=o.slice(l+1);let p=n.indexOf(".Module");p>0&&(o=o.slice(p+1),n=n.slice(0,p))}s=void 0}i&&(s=n,a=i),i==="<anonymous>"&&(a=void 0,o=void 0),o===void 0&&(a=a||qB,o=s?`${s}.${a}`:a);let c=r[2]?.startsWith("file://")?r[2].slice(7):r[2],u=r[5]==="native";return c?.match(/\/[A-Z]:/)&&(c=c.slice(1)),!c&&r[5]&&!u&&(c=r[5]),{filename:c?decodeURI(c):void 0,module:void 0,function:o,lineno:fzu(r[3]),colno:fzu(r[4]),in_app:s1m(c||"",u),platform:t}}if(e.match(i1m))return{filename:e,platform:t}};function s1m(e,t=!1){return!(t||e&&!e.startsWith("/")&&!e.match(/^[A-Z]:/)&&!e.startsWith(".")&&!e.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&e!==void 0&&!e.includes("node_modules/")}function fzu(e){return parseInt(e||"",10)||void 0}var mzu=/\(error: (.*)\)/,hzu=50;function gzu(e){if(!e.length)return[];let t=Array.from(e);return t.reverse(),t.slice(0,hzu).map(r=>({...r,filename:r.filename||a1m(t).filename,function:r.function||qB}))}function a1m(e){return e[e.length-1]||{}}function c1m(){return Azu("web:javascript",i6o,o6o)}function Azu(e,...t){return(r,n=0)=>{let i=[],o=r.split(`
3369
- `);for(let s=n;s<o.length;s++){let a=o[s];if(a.length>1024)continue;let c=mzu.test(a)?a.replace(mzu,"$1"):a;if(!c.match(/\S*Error: /)){for(let u of t){let l=u(c,e);if(l){i.push(l);break}}if(i.length>=hzu)break}}return gzu(i)}}var s6o=class{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,r){let n=Oxe(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:n?t.stack:void 0,cause:t.cause?r.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){let r=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?`${r}: ${t.message}`:r}isDOMException(t){return E3e(t,"DOMException")}isDOMError(t){return E3e(t,"DOMError")}};var a6o=class{match(t){return JMo(t)}coerce(t,r){return{type:this.getType(t),value:this.getMessage(t,r),stack:this.getStack(t),cause:t.cause?r.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,r){let n=t.message;return n.error&&typeof n.error.message=="string"?String(n.error.message):String(n)}getStack(t){return t.stacktrace||t.stack||void 0}};var c6o=class{constructor(){}match(t){return qQu(t)&&t.error!=null}coerce(t,r){let n=r.apply(t.error);return n||{type:"ErrorEvent",value:t.message,stack:r.syntheticException?.stack,synthetic:!0}}};var u1m=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,u6o=class{match(t){return typeof t=="string"}coerce(t,r){let[n,i]=this.getInfos(t);return{type:n??"Error",value:i??t,stack:r.syntheticException?.stack,synthetic:!0}}getInfos(t){let r="Error",n=t,i=t.match(u1m);return i&&(r=i[1],n=i[2]),[r,n]}};var yzu=["fatal","error","warning","log","info","debug"];function J7r(e,t=40){let r=Object.keys(e);if(r.sort(),!r.length)return"[object has no keys]";for(let n=r.length;n>0;n--){let i=r.slice(0,n).join(", ");if(!(i.length>t))return n===r.length||i.length<=t?i:`${i.slice(0,t)}...`}return""}var l6o=class{match(t){return typeof t=="object"&&t!==null}coerce(t,r){let n=this.getErrorPropertyFromObject(t);return n?r.apply(n):{type:this.getType(t),value:this.getValue(t),stack:r.syntheticException?.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return Oot(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){let i=`'${t.name}' captured as exception`;return"message"in t&&typeof t.message=="string"&&(i+=` with message: '${t.message}'`),i}if("message"in t&&typeof t.message=="string")return t.message;let r=this.getObjectClassName(t),n=J7r(t);return`${r&&r!=="Object"?`'${r}'`:"Object"} captured as exception with keys: ${n}`}isSeverityLevel(t){return Oxe(t)&&!GQu(t)&&yzu.indexOf(t)>=0}getErrorPropertyFromObject(t){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=t[r];if(ozu(n))return n}}getObjectClassName(t){try{let r=Object.getPrototypeOf(t);return r?r.constructor.name:void 0}catch{return}}};var p6o=class{match(t){return Oot(t)}coerce(t,r){let n=t.constructor.name;return{type:n,value:`${n} captured as exception with keys: ${J7r(t)}`,stack:r.syntheticException?.stack,synthetic:!0}}};var f6o=class{match(t){return k7r(t)}coerce(t,r){return{type:"Error",value:`Primitive value captured as exception: ${String(t)}`,stack:r.syntheticException?.stack,synthetic:!0}}};var d6o=class{match(t){return E3e(t,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(t)}isCustomEventWrappingRejection(t){if(!Oot(t))return!1;try{let r=t.detail;return r!=null&&typeof r=="object"&&"reason"in r}catch{return!1}}coerce(t,r){let n=this.getUnhandledRejectionReason(t);return k7r(n)?{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(n)}`,stack:r.syntheticException?.stack,synthetic:!0}:r.apply(n)}getUnhandledRejectionReason(t){try{if("reason"in t)return t.reason;if("detail"in t&&t.detail!=null&&typeof t.detail=="object"&&"reason"in t.detail)return t.detail.reason}catch{}return t}};var m6o=class{constructor(t){this._maxSize=t,this._cache=new Map}get(t){let r=this._cache.get(t);if(r!==void 0)return this._cache.delete(t),this._cache.set(t,r),r}set(t,r){this._cache.set(t,r)}reduce(){for(;this._cache.size>=this._maxSize;){let t=this._cache.keys().next().value;t&&this._cache.delete(t)}}};var x_t={MESSAGE:"$message",TIMESTAMP:"$timestamp"},l1m=new Set([x_t.MESSAGE,x_t.TIMESTAMP]),Y7r={enabled:!0,max_bytes:32768};function h6o(e){return e?{enabled:e.enabled??Y7r.enabled,max_bytes:f1m(e.max_bytes,Y7r.max_bytes)}:{...Y7r}}function p1m(e){if(!e)return{sanitizedProperties:{},droppedKeys:[]};let t=[];return{sanitizedProperties:Object.keys(e).reduce((n,i)=>l1m.has(i)?(t.push(i),n):(n[i]=e[i],n),{}),droppedKeys:t}}var g6o=class{constructor(t){this._entries=[],this._totalBytes=0,this._config=h6o(t)}setConfig(t){this._config=h6o(t),this._trimToMaxBytes()}add(t){let r=d1m(t);if(!r)return;let n=bzu(r.json);n>this._config.max_bytes||(this._entries.push({step:r.step,bytes:n}),this._totalBytes+=n,this._trimToMaxBytes())}getAttachable(){return this._entries.map(t=>t.step)}clear(){this._entries=[],this._totalBytes=0}size(){return this._entries.length}_trimToMaxBytes(){for(;this._totalBytes>this._config.max_bytes&&this._entries.length>0;){let t=this._entries.shift();t&&(this._totalBytes-=t.bytes)}}};function f1m(e,t){if(!b_t(e)||e===1/0||e===-1/0)return t;let r=Math.floor(e);return r<0?t:r}function d1m(e){let t=m1m(e);if(t)try{let r=JSON.parse(t);if(!y_t(r))return;let n=r,i=n[x_t.MESSAGE],o=n[x_t.TIMESTAMP];return!Oxe(i)||i.trim().length===0||!Oxe(o)&&!b_t(o)?void 0:{step:n,json:t}}catch{return}}function m1m(e){let t=new WeakSet;try{return JSON.stringify(e,(r,n)=>{if(typeof n=="bigint")return n.toString();if(!(typeof n=="function"||typeof n=="symbol")){if(n instanceof Date)return n.toISOString();if(n instanceof Error)return{name:n.name,message:n.message,stack:n.stack};if(n&&typeof n=="object"){if(t.has(n))return"[Circular]";t.add(n)}return n}})}catch{return}}function bzu(e){if(typeof TextEncoder<"u")return new TextEncoder().encode(e).length;let t=encodeURIComponent(e),r=0;for(let n=0;n<t.length;n++)t[n]==="%"?(r+=1,n+=2):r+=1;return r}var vzu=require("fs"),xzu=require("readline"),X7r=new dz.ReduceableCache(25),Czu=new dz.ReduceableCache(20),A6o=7,h1m=1e3,g1m=1e4;async function wzu(e){let t={};for(let i=e.length-1;i>=0;i--){let o=e[i],s=o?.filename;if(!o||typeof s!="string"||typeof o.lineno!="number"||E1m(s)||I1m(o))continue;t[s]||(t[s]=[]),t[s].push(o.lineno)}let r=Object.keys(t);if(r.length==0)return e;let n=[];for(let i of r){if(Czu.get(i))continue;let o=t[i];if(!o)continue;o.sort((c,u)=>c-u);let s=x1m(o);if(s.every(c=>v1m(i,c)))continue;let a=C1m(X7r,i,{});n.push(A1m(i,s,a))}return await Promise.all(n).catch(()=>{}),e&&e.length>0&&y1m(e,X7r),X7r.reduce(),e}function A1m(e,t,r){return new Promise(n=>{let i=(0,vzu.createReadStream)(e),o=(0,xzu.createInterface)({input:i});function s(){i.destroy(),n()}let a=0,c=0,u=t[c];if(u===void 0)return void s();let l=u[0],p=u[1];function d(){Czu.set(e,1),o.close(),o.removeAllListeners(),s()}i.on("error",d),o.on("error",d),o.on("close",s),o.on("line",f=>{if(a++,!(a<l)&&(r[a]=w1m(f,0),a>=p)){if(c===t.length-1){o.close(),o.removeAllListeners();return}c++;let m=t[c];if(m===void 0){o.close(),o.removeAllListeners();return}l=m[0],p=m[1]}})})}function y1m(e,t){for(let r of e)if(r.filename&&r.context_line===void 0&&typeof r.lineno=="number"){let n=t.get(r.filename);if(n===void 0)continue;b1m(r.lineno,r,n)}}function b1m(e,t,r){if(t.lineno===void 0||r===void 0)return;t.pre_context=[];for(let i=Szu(e);i<e;i++){let o=r[i];if(o===void 0)return void Ezu(t);t.pre_context.push(o)}if(r[e]===void 0)return void Ezu(t);t.context_line=r[e];let n=Tzu(e);t.post_context=[];for(let i=e+1;i<=n;i++){let o=r[i];if(o===void 0)break;t.post_context.push(o)}}function Ezu(e){delete e.pre_context,delete e.context_line,delete e.post_context}function E1m(e){return e.startsWith("node:")||e.endsWith(".min.js")||e.endsWith(".min.cjs")||e.endsWith(".min.mjs")||e.startsWith("data:")}function I1m(e){return e.lineno!==void 0&&e.lineno>g1m||e.colno!==void 0&&e.colno>h1m}function v1m(e,t){let r=X7r.get(e);if(r===void 0)return!1;for(let n=t[0];n<=t[1];n++)if(r[n]===void 0)return!1;return!0}function x1m(e){if(!e.length)return[];let t=0,r=e[0];if(typeof r!="number")return[];let n=Izu(r),i=[];for(;;){if(t===e.length-1){i.push(n);break}let o=e[t+1];if(typeof o!="number")break;o<=n[1]?n[1]=o+A6o:(i.push(n),n=Izu(o)),t++}return i}function Izu(e){return[Szu(e),Tzu(e)]}function Szu(e){return Math.max(1,e-A6o)}function Tzu(e){return e+A6o}function C1m(e,t,r){let n=e.get(t);return n===void 0?(e.set(t,r),r):n}function w1m(e,t){let r=e,n=r.length;if(n<=150)return r;t>n&&(t=n);let i=Math.max(t-60,0);i<5&&(i=0);let o=Math.min(i+140,n);return o>n-5&&(o=n),o===n&&(i=Math.max(o-140,0)),r=r.slice(i,o),i>0&&(r=`...${r}`),o<n&&(r+="..."),r}var Dot=require("path");function Ozu(e=process.cwd()){let t=Dot.sep==="\\",r=i=>t?i.replace(/\\/g,"/"):i,n=r(e);return async i=>{for(let o of i)!o.filename||o.filename.startsWith("node:")||o.filename.startsWith("data:")||(0,Dot.isAbsolute)(o.filename)&&(o.filename=r((0,Dot.relative)(n,r(o.filename))));return i}}function S1m(e,t){let r=!1;return Object.assign(n=>{let o=global.process.listeners("uncaughtException").filter(s=>s.name!=="domainUncaughtExceptionClear"&&s._posthogErrorHandler!==!0).length===0;e(n,{mechanism:{type:"onuncaughtexception",handled:!1}}),!r&&o&&(r=!0,t(n))},{_posthogErrorHandler:!0})}function Bzu(e,t){globalThis.process?.on("uncaughtException",S1m(e,t))}function Pzu(e){globalThis.process?.on("unhandledRejection",t=>e(t,{mechanism:{type:"onunhandledrejection",handled:!1}}))}var T1m=2e3,RH=class e{constructor(t,r,n){this.client=t,this._exceptionAutocaptureEnabled=r.enableExceptionAutocapture||!1,this._logger=n,this._rateLimiter=new F7r({refillRate:1,bucketSize:10,refillInterval:1e4,_logger:this._logger}),this.startAutocaptureIfEnabled()}static isPreviouslyCapturedError(t){return y_t(t)&&"__posthog_previously_captured_error"in t&&t.__posthog_previously_captured_error===!0}static async buildEventMessage(t,r,n,i){let o={...i},s=this.errorPropertiesBuilder.buildFromUnknown(t,r);return s.$exception_list=await this.errorPropertiesBuilder.modifyFrames(s.$exception_list),{event:"$exception",distinctId:n,properties:{...s,...o},_originatedFromCaptureException:!0}}startAutocaptureIfEnabled(){this.isEnabled()&&(Bzu(this.onException.bind(this),this.onFatalError.bind(this)),Pzu(this.onException.bind(this)))}onException(t,r){this.client.addPendingPromise((async()=>{if(!e.isPreviouslyCapturedError(t)){let n=await e.buildEventMessage(t,r),o=n.properties?.$exception_list[0]?.type??"Exception";return this._rateLimiter.consumeRateLimit(o)?void this._logger.info("Skipping exception capture because of client rate limiting.",{exception:o}):this.client.capture(n)}})())}async onFatalError(t){console.error(t),await this.client.shutdown(T1m),process.exit(1)}isEnabled(){return!this.client.isDisabled&&this._exceptionAutocaptureEnabled}shutdown(){this._rateLimiter.stop()}};var Dzu="5.35.1";var nde={ERRORS_WHILE_COMPUTING:"errors_while_computing_flags",FLAG_MISSING:"flag_missing",QUOTA_LIMITED:"quota_limited",UNKNOWN_ERROR:"unknown_error"};var Rot=class e{constructor(t){this._host=t.host,this._distinctId=t.distinctId,this._groups=t.groups,this._disableGeoip=t.disableGeoip,this._flags=t.flags,this._requestId=t.requestId,this._evaluatedAt=t.evaluatedAt,this._flagDefinitionsLoadedAt=t.flagDefinitionsLoadedAt,this._errorsWhileComputing=t.errorsWhileComputing??!1,this._quotaLimited=t.quotaLimited??!1,this._accessed=t.accessed??new Set,this._isSlice=t.isSlice??!1}isEnabled(t){let r=this._flags[t];return this._recordAccess(t),r?.enabled??!1}getFlag(t){let r=this._flags[t];if(this._recordAccess(t),!!r)return r.enabled?r.variant??!0:!1}getFlagPayload(t){return this._flags[t]?.payload}onlyAccessed(){let t={};for(let r of this._accessed){let n=this._flags[r];n&&(t[r]=n)}return this._cloneWith(t)}only(t){let r={},n=[];for(let i of t){let o=this._flags[i];o?r[i]=o:n.push(i)}return n.length>0&&this._host.logWarning(`FeatureFlagEvaluations.only() was called with flag keys that are not in the evaluation set and will be dropped: ${n.join(", ")}`),this._cloneWith(r)}get keys(){return Object.keys(this._flags)}_getEventProperties(){let t={},r=[];for(let[n,i]of Object.entries(this._flags)){let o=i.enabled===!1?!1:i.variant??!0;t[`$feature/${n}`]=o,i.enabled&&r.push(n)}return r.length>0&&(r.sort(),t.$active_feature_flags=r),t}_cloneWith(t){return new e({host:this._host,distinctId:this._distinctId,groups:this._groups,disableGeoip:this._disableGeoip,flags:t,requestId:this._requestId,evaluatedAt:this._evaluatedAt,flagDefinitionsLoadedAt:this._flagDefinitionsLoadedAt,errorsWhileComputing:this._errorsWhileComputing,quotaLimited:this._quotaLimited,accessed:new Set(this._accessed),isSlice:!0})}_recordAccess(t){if(this._accessed.add(t),this._distinctId===""||this._isSlice&&!(t in this._flags))return;let r=this._flags[t],n=r===void 0?void 0:r.enabled===!1?!1:r.variant??!0,i={$feature_flag:t,$feature_flag_response:n,$feature_flag_id:r?.id,$feature_flag_version:r?.version,$feature_flag_reason:r?.reason,locally_evaluated:r?.locallyEvaluated??!1,[`$feature/${t}`]:n,$feature_flag_request_id:this._requestId,$feature_flag_evaluated_at:r?.locallyEvaluated?Date.now():this._evaluatedAt};r?.locallyEvaluated&&this._flagDefinitionsLoadedAt!==void 0&&(i.$feature_flag_definitions_loaded_at=this._flagDefinitionsLoadedAt);let o=[];this._errorsWhileComputing&&o.push(nde.ERRORS_WHILE_COMPUTING),this._quotaLimited&&o.push(nde.QUOTA_LIMITED),r===void 0&&o.push(nde.FLAG_MISSING),o.length>0&&(i.$feature_flag_error=o.join(",")),this._host.captureFlagCalledEventIfNeeded({distinctId:this._distinctId,key:t,response:n,groups:this._groups,disableGeoip:this._disableGeoip,properties:i})}};async function Rzu(e){let t=globalThis.crypto?.subtle;if(!t)throw new Error("SubtleCrypto API not available");let r=await t.digest("SHA-1",new TextEncoder().encode(e));return Array.from(new Uint8Array(r)).map(i=>i.toString(16).padStart(2,"0")).join("")}var O1m=6e4,B1m=1152921504606847e3,P1m=["is_not","is_set"],kot=class e extends Error{constructor(t){super(),Error.captureStackTrace(this,this.constructor),this.name="ClientError",this.message=t,Object.setPrototypeOf(this,e.prototype)}},_d=class e extends Error{constructor(t){super(t),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor),Object.setPrototypeOf(this,e.prototype)}},Yee=class e extends Error{constructor(t){super(t),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor),Object.setPrototypeOf(this,e.prototype)}},Z7r=class{constructor({pollingInterval:t,personalApiKey:r,projectApiKey:n,timeout:i,host:o,customHeaders:s,...a}){this.debugMode=!1,this.shouldBeginExponentialBackoff=!1,this.backOffCount=0,this.pollingInterval=t,this.personalApiKey=r,this.featureFlags=[],this.featureFlagsByKey={},this.groupTypeMapping={},this.cohorts={},this.loadedSuccessfullyOnce=!1,this.timeout=i,this.projectApiKey=n,this.host=o,this.poller=void 0,this.fetch=a.fetch||fetch,this.onError=a.onError,this.customHeaders=s,this.onLoad=a.onLoad,this.cacheProvider=a.cacheProvider,this.strictLocalEvaluation=a.strictLocalEvaluation??!1,this.loadFeatureFlags()}debug(t=!0){this.debugMode=t}logMsgIfDebug(t){this.debugMode&&t()}createEvaluationContext(t,r={},n={},i={},o={}){return{distinctId:t,groups:r,personProperties:n,groupProperties:i,evaluationCache:o}}async getFeatureFlag(t,r,n={},i={},o={}){await this.loadFeatureFlags();let s,a;if(!this.loadedSuccessfullyOnce)return s;if(a=this.featureFlagsByKey[t],a!==void 0){let c=this.createEvaluationContext(r,n,i,o);try{s=(await this.computeFlagAndPayloadLocally(a,c)).value,this.logMsgIfDebug(()=>console.debug(`Successfully computed flag locally: ${t} -> ${s}`))}catch(u){u instanceof Yee||u instanceof _d?this.logMsgIfDebug(()=>console.debug(`${u.name} when computing flag locally: ${t}: ${u.message}`)):u instanceof Error&&this.onError?.(new Error(`Error computing flag locally: ${t}: ${u}`))}}return s}async getAllFlagsAndPayloads(t,r){await this.loadFeatureFlags();let n={},i={},o=this.featureFlags.length==0,s=r?r.map(c=>this.featureFlagsByKey[c]).filter(Boolean):this.featureFlags,a={...t,evaluationCache:t.evaluationCache??{}};return await Promise.all(s.map(async c=>{try{let{value:u,payload:l}=await this.computeFlagAndPayloadLocally(c,a);n[c.key]=u,l&&(i[c.key]=l)}catch(u){u instanceof Yee||u instanceof _d?this.logMsgIfDebug(()=>console.debug(`${u.name} when computing flag locally: ${c.key}: ${u.message}`)):u instanceof Error&&this.onError?.(new Error(`Error computing flag locally: ${c.key}: ${u}`)),o=!0}})),{response:n,payloads:i,fallbackToFlags:o}}async computeFlagAndPayloadLocally(t,r,n={}){let{matchValue:i,skipLoadCheck:o=!1}=n;if(o||await this.loadFeatureFlags(),!this.loadedSuccessfullyOnce)return{value:!1,payload:null};let s;s=i!==void 0?i:await this.computeFlagValueLocally(t,r);let a=this.getFeatureFlagPayload(t.key,s);return{value:s,payload:a}}async computeFlagValueLocally(t,r){let{distinctId:n,groups:i,personProperties:o,groupProperties:s}=r;if(!t.active)return!1;if(t.ensure_experience_continuity)throw new _d("Flag has experience continuity enabled");let c=(t.filters||{}).aggregation_group_type_index;if(c!=null){let u=this.groupTypeMapping[String(c)];if(!u)throw this.logMsgIfDebug(()=>console.warn(`[FEATURE FLAGS] Unknown group type index ${c} for feature flag ${t.key}`)),new _d("Flag has unknown group type index");if(!(u in i))return this.logMsgIfDebug(()=>console.warn(`[FEATURE FLAGS] Can't compute group feature flag: ${t.key} without group names passed in`)),!1;t.bucketing_identifier==="device_id"&&(o?.$device_id===void 0||o?.$device_id===null||o?.$device_id==="")&&this.logMsgIfDebug(()=>console.warn(`[FEATURE FLAGS] Ignoring bucketing_identifier for group flag: ${t.key}`));let l=s[u];return await this.matchFeatureFlagProperties(t,i[u],l,r)}{let u=this.getBucketingValueForFlag(t,n,o);if(u===void 0)throw this.logMsgIfDebug(()=>console.warn(`[FEATURE FLAGS] Can't compute feature flag: ${t.key} without $device_id, falling back to server evaluation`)),new _d(`Can't compute feature flag: ${t.key} without $device_id`);return await this.matchFeatureFlagProperties(t,u,o,r)}}getBucketingValueForFlag(t,r,n){if(t.filters?.aggregation_group_type_index!=null)return r;if(t.bucketing_identifier==="device_id"){let i=n?.$device_id;return i==null||i===""?void 0:i}return r}getFeatureFlagPayload(t,r){let n=null;if(r!==!1&&r!=null&&(typeof r=="boolean"?n=this.featureFlagsByKey?.[t]?.filters?.payloads?.[r.toString()]||null:typeof r=="string"&&(n=this.featureFlagsByKey?.[t]?.filters?.payloads?.[r]||null),n!=null)){if(typeof n=="object")return n;if(typeof n=="string")try{return JSON.parse(n)}catch{}return n}return null}async evaluateFlagDependency(t,r,n){let{evaluationCache:i}=n,o=t.key;if(!this.featureFlagsByKey)throw new _d("Feature flags not available for dependency evaluation");if(!("dependency_chain"in t))throw new _d(`Flag dependency property for '${o}' is missing required 'dependency_chain' field`);let s=t.dependency_chain;if(!Array.isArray(s))throw new _d(`Flag dependency property for '${o}' has an invalid 'dependency_chain' (expected array, got ${typeof s})`);if(s.length===0)throw new _d(`Circular dependency detected for flag '${o}' (empty dependency chain)`);for(let c of s){if(!(c in i)){let l=this.featureFlagsByKey[c];if(l)if(l.active)try{let p=await this.computeFlagValueLocally(l,n);i[c]=p}catch(p){throw new _d(`Error evaluating flag dependency '${c}' for flag '${o}': ${p}`)}else i[c]=!1;else throw new _d(`Missing flag dependency '${c}' for flag '${o}'`)}if(i[c]==null)throw new _d(`Dependency '${c}' could not be evaluated`)}let a=i[o];return this.flagEvaluatesToExpectedValue(t.value,a)}flagEvaluatesToExpectedValue(t,r){return typeof t=="boolean"?t===r||typeof r=="string"&&r!==""&&t===!0:typeof t=="string"?r===t:!1}async matchFeatureFlagProperties(t,r,n,i){let o=t.filters||{},s=o.groups||[],a=o.aggregation_group_type_index,{groups:c,groupProperties:u}=i,l=!1,p;for(let d of s)try{let f=d.aggregation_group_type_index!==void 0?d.aggregation_group_type_index:a,m=n,g=r;if(f!==a&&f!=null){let A=this.groupTypeMapping[String(f)];if(!A||!(A in c)){this.logMsgIfDebug(()=>console.debug(`[FEATURE FLAGS] Skipping group condition for flag '${t.key}': group type index ${f} not available`));continue}if(!(A in u)){l=!0;continue}m=u[A],g=c[A]}if(await this.isConditionMatch(t,g,d,m,i)){let A=d.variant,y=o.multivariate?.variants||[];p=A&&y.some(E=>E.key===A)?A:await this.getMatchingVariant(t,g)||!0;break}}catch(f){if(f instanceof Yee)throw f;if(f instanceof _d)l=!0;else throw f}if(p!==void 0)return p;if(l)throw new _d("Can't determine if feature flag is enabled or not with given properties");return!1}async isConditionMatch(t,r,n,i,o){let s=n.rollout_percentage,a=c=>{this.logMsgIfDebug(()=>console.warn(c))};if((n.properties||[]).length>0){for(let c of n.properties){let u=c.type,l=!1;if(l=u==="cohort"?await Qzu(c,i,this.cohorts,this.debugMode,p=>this.evaluateFlagDependency(p,i,o)):u==="flag"?await this.evaluateFlagDependency(c,i,o):jzu(c,i,a),!l)return!1}if(s==null)return!0}return!(s!=null&&await kzu(t.key,r)>s/100)}async getMatchingVariant(t,r){let n=await kzu(t.key,r,"variant"),i=this.variantLookupTable(t).find(o=>n>=o.valueMin&&n<o.valueMax);if(i)return i.key}variantLookupTable(t){let r=[],n=0,i=0;return((t.filters||{}).multivariate?.variants||[]).forEach(a=>{i=n+a.rollout_percentage/100,r.push({valueMin:n,valueMax:i,key:a.key}),n=i}),r}updateFlagState(t){this.featureFlags=t.flags,this.featureFlagsByKey=t.flags.reduce((r,n)=>(r[n.key]=n,r),{}),this.groupTypeMapping=t.groupTypeMapping,this.cohorts=t.cohorts,this.loadedSuccessfullyOnce=!0}warnAboutExperienceContinuityFlags(t){if(this.strictLocalEvaluation)return;let r=t.filter(n=>n.ensure_experience_continuity);r.length>0&&console.warn(`[PostHog] You are using local evaluation but ${r.length} flag(s) have experience continuity enabled: ${r.map(n=>n.key).join(", ")}. Experience continuity is incompatible with local evaluation and will cause a server request on every flag evaluation, negating local evaluation cost savings. To avoid server requests and unexpected costs, either disable experience continuity on these flags in PostHog, use strictLocalEvaluation: true in client init, or pass onlyEvaluateLocally: true per flag call (flags that cannot be evaluated locally will return undefined).`)}async loadFromCache(t){if(!this.cacheProvider)return!1;try{let r=await this.cacheProvider.getFlagDefinitions();return r?(this.updateFlagState(r),this.logMsgIfDebug(()=>console.debug(`[FEATURE FLAGS] ${t} (${r.flags.length} flags)`)),this.onLoad?.(this.featureFlags.length),this.warnAboutExperienceContinuityFlags(r.flags),!0):!1}catch(r){return this.onError?.(new Error(`Failed to load from cache: ${r}`)),!1}}async loadFeatureFlags(t=!1){if(!(this.loadedSuccessfullyOnce&&!t))return!t&&this.nextFetchAllowedAt&&Date.now()<this.nextFetchAllowedAt?void this.logMsgIfDebug(()=>console.debug("[FEATURE FLAGS] Skipping fetch, in backoff period")):(this.loadingPromise||(this.loadingPromise=this._loadFeatureFlags().catch(r=>this.logMsgIfDebug(()=>console.debug(`[FEATURE FLAGS] Failed to load feature flags: ${r}`))).finally(()=>{this.loadingPromise=void 0})),this.loadingPromise)}isLocalEvaluationReady(){return(this.loadedSuccessfullyOnce??!1)&&(this.featureFlags?.length??0)>0}getFlagDefinitionsLoadedAt(){return this.flagDefinitionsLoadedAt}getPollingInterval(){return this.shouldBeginExponentialBackoff?Math.min(O1m,this.pollingInterval*2**this.backOffCount):this.pollingInterval}beginBackoff(){this.shouldBeginExponentialBackoff=!0,this.backOffCount+=1,this.nextFetchAllowedAt=Date.now()+this.getPollingInterval()}clearBackoff(){this.shouldBeginExponentialBackoff=!1,this.backOffCount=0,this.nextFetchAllowedAt=void 0}async _loadFeatureFlags(){this.poller&&(clearTimeout(this.poller),this.poller=void 0),this.poller=setTimeout(()=>this.loadFeatureFlags(!0),this.getPollingInterval());try{let t=!0;if(this.cacheProvider)try{t=await this.cacheProvider.shouldFetchFlagDefinitions()}catch(n){this.onError?.(new Error(`Error in shouldFetchFlagDefinitions: ${n}`))}if(!t&&(await this.loadFromCache("Loaded flags from cache (skipped fetch)")||this.loadedSuccessfullyOnce))return;let r=await this._requestFeatureFlagDefinitions();if(!r)return;switch(r.status){case 304:this.logMsgIfDebug(()=>console.debug("[FEATURE FLAGS] Flags not modified (304), using cached data")),this.flagsEtag=r.headers?.get("ETag")??this.flagsEtag,this.loadedSuccessfullyOnce=!0,this.clearBackoff();return;case 401:throw this.beginBackoff(),new kot(`Your project key or personal API key is invalid. Setting next polling interval to ${this.getPollingInterval()}ms. More information: https://posthog.com/docs/api#rate-limiting`);case 402:console.warn("[FEATURE FLAGS] Feature flags quota limit exceeded - unsetting all local flags. Learn more about billing limits at https://posthog.com/docs/billing/limits-alerts"),this.featureFlags=[],this.featureFlagsByKey={},this.groupTypeMapping={},this.cohorts={};return;case 403:throw this.beginBackoff(),new kot(`Your personal API key does not have permission to fetch feature flag definitions for local evaluation. Setting next polling interval to ${this.getPollingInterval()}ms. Are you sure you're using the correct personal and Project API key pair? More information: https://posthog.com/docs/api/overview`);case 429:throw this.beginBackoff(),new kot(`You are being rate limited. Setting next polling interval to ${this.getPollingInterval()}ms. More information: https://posthog.com/docs/api#rate-limiting`);case 200:{let n=await r.json()??{};if(!("flags"in n))return void this.onError?.(new Error(`Invalid response when getting feature flags: ${JSON.stringify(n)}`));this.flagsEtag=r.headers?.get("ETag")??void 0;let i={flags:n.flags??[],groupTypeMapping:n.group_type_mapping||{},cohorts:n.cohorts||{}};if(this.updateFlagState(i),this.flagDefinitionsLoadedAt=Date.now(),this.clearBackoff(),this.cacheProvider&&t)try{await this.cacheProvider.onFlagDefinitionsReceived(i)}catch(o){this.onError?.(new Error(`Failed to store in cache: ${o}`))}this.onLoad?.(this.featureFlags.length),this.warnAboutExperienceContinuityFlags(i.flags);break}default:return}}catch(t){t instanceof kot&&this.onError?.(t)}}getPersonalApiKeyRequestOptions(t="GET",r){let n={...this.customHeaders,"Content-Type":"application/json",Authorization:`Bearer ${this.personalApiKey}`};return r&&(n["If-None-Match"]=r),{method:t,headers:n}}_requestFeatureFlagDefinitions(){let t=`${this.host}/flags/definitions?token=${this.projectApiKey}&send_cohorts`,r=this.getPersonalApiKeyRequestOptions("GET",this.flagsEtag),n=null;if(this.timeout&&typeof this.timeout=="number"){let i=new AbortController;n=Kee(()=>{i.abort()},this.timeout),r.signal=i.signal}try{let i=this.fetch;return i(t,r)}finally{clearTimeout(n)}}async stopPoller(t=3e4){if(clearTimeout(this.poller),this.cacheProvider)try{let r=this.cacheProvider.shutdown();r instanceof Promise&&await Promise.race([r,new Promise((n,i)=>setTimeout(()=>i(new Error(`Cache shutdown timeout after ${t}ms`)),t))])}catch(r){this.onError?.(new Error(`Error during cache shutdown: ${r}`))}}};async function kzu(e,t,r=""){let n=await Rzu(`${e}.${t}${r}`);return parseInt(n.slice(0,15),16)/B1m}function jzu(e,t,r){let n=e.key,i=e.value,o=e.operator||"exact";if(n in t){if(o==="is_not_set")return!1}else{if(o==="is_not_set")return!0;throw new _d(`Property ${n} not found in propertyValues`)}let s=t[n];if(s==null&&!P1m.includes(o))return r&&r(`Property ${n} cannot have a value of null/undefined with the ${o} operator`),!1;function a(u,l){return Array.isArray(u)?u.map(p=>String(p).toLowerCase()).includes(String(l).toLowerCase()):String(u).toLowerCase()===String(l).toLowerCase()}function c(u,l,p){if(p==="gt")return u>l;if(p==="gte")return u>=l;if(p==="lt")return u<l;if(p==="lte")return u<=l;throw new Error(`Invalid operator: ${p}`)}switch(o){case"exact":return a(i,s);case"is_not":return!a(i,s);case"is_set":return n in t;case"icontains":return String(s).toLowerCase().includes(String(i).toLowerCase());case"not_icontains":return!String(s).toLowerCase().includes(String(i).toLowerCase());case"regex":return Fzu(String(i))&&String(s).match(String(i))!==null;case"not_regex":return Fzu(String(i))&&String(s).match(String(i))===null;case"gt":case"gte":case"lt":case"lte":{let u=typeof i=="number"?i:parseFloat(String(i)),l;return l=typeof s=="number"?s:s!=null?parseFloat(String(s)):NaN,Number.isFinite(u)&&Number.isFinite(l)?c(l,u,o):c(String(s),String(i),o)}case"is_date_after":case"is_date_before":{if(typeof i=="boolean")throw new _d("Date operations cannot be performed on boolean values");let u=N1m(String(i));if(u==null&&(u=Nzu(i)),u==null)throw new _d(`Invalid date: ${i}`);let l=Nzu(s);return["is_date_before"].includes(o)?l<u:l>u}case"semver_eq":return t5(WB(String(s)),WB(String(i)))===0;case"semver_neq":return t5(WB(String(s)),WB(String(i)))!==0;case"semver_gt":return t5(WB(String(s)),WB(String(i)))>0;case"semver_gte":return t5(WB(String(s)),WB(String(i)))>=0;case"semver_lt":return t5(WB(String(s)),WB(String(i)))<0;case"semver_lte":return t5(WB(String(s)),WB(String(i)))<=0;case"semver_tilde":{let u=WB(String(s)),{lower:l,upper:p}=R1m(String(i));return t5(u,l)>=0&&t5(u,p)<0}case"semver_caret":{let u=WB(String(s)),{lower:l,upper:p}=k1m(String(i));return t5(u,l)>=0&&t5(u,p)<0}case"semver_wildcard":{let u=WB(String(s)),{lower:l,upper:p}=F1m(String(i));return t5(u,l)>=0&&t5(u,p)<0}default:throw new _d(`Unknown operator: ${o}`)}}function D1m(e,t){if(!(e in t))throw new Yee(`cohort ${e} not found in local cohorts - likely a static cohort that requires server evaluation`)}async function Qzu(e,t,r,n=!1,i){let o=String(e.value);D1m(o,r);let s=r[o];return zzu(s,t,r,n,i)}async function zzu(e,t,r,n=!1,i){if(!e)return!0;let o=e.type,s=e.values;if(!s||s.length===0)return!0;let a=!1;if("values"in s[0]){for(let c of s)try{let u=await zzu(c,t,r,n,i);if(o==="AND"){if(!u)return!1}else if(u)return!0}catch(u){if(u instanceof Yee)throw u;if(u instanceof _d)n&&console.debug(`Failed to compute property ${c} locally: ${u}`),a=!0;else throw u}if(a)throw new _d("Can't match cohort without a given cohort property value");return o==="AND"}for(let c of s)try{let u;if(c.type==="cohort")u=await Qzu(c,t,r,n,i);else if(c.type==="flag"){if(!i)throw new _d(`Flag dependency '${c.key||"unknown"}' cannot be evaluated without a flag dependency evaluator`);u=await i(c)}else u=jzu(c,t);let l=c.negation||!1;if(o==="AND"){if(!u&&!l||u&&l)return!1}else if(u&&!l||!u&&l)return!0}catch(u){if(u instanceof Yee)throw u;if(u instanceof _d)n&&console.debug(`Failed to compute property ${c} locally: ${u}`),a=!0;else throw u}if(a)throw new _d("can't match cohort without a given cohort property value");return o==="AND"}function Fzu(e){try{return new RegExp(e),!0}catch{return!1}}function Mzu(e,t){if(!/^\d+$/.test(e))throw new _d(`Invalid semver: ${t}`);if(e.length>1&&e[0]==="0")throw new _d(`Invalid semver: ${t}`);return parseInt(e,10)}function WB(e){let r=String(e).trim().replace(/^[vV]/,"").split("-")[0].split("+")[0];if(!r||r.startsWith("."))throw new _d(`Invalid semver: ${e}`);let n=r.split("."),i=c=>c===void 0||c===""?0:Mzu(c,e),o=i(n[0]),s=i(n[1]),a=i(n[2]);return[o,s,a]}function t5(e,t){for(let r=0;r<3;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0}function R1m(e){let t=WB(e),r=[t[0],t[1],t[2]],n=[t[0],t[1]+1,0];return{lower:r,upper:n}}function k1m(e){let t=WB(e),[r,n,i]=t,o=[r,n,i],s;return s=r>0?[r+1,0,0]:n>0?[0,n+1,0]:[0,0,i+1],{lower:o,upper:s}}function F1m(e){let r=String(e).trim().replace(/^[vV]/,"").replace(/\.\*$/,"").replace(/\*$/,"");if(!r)throw new _d(`Invalid wildcard semver: ${e}`);let n=r.split("."),i=c=>{try{return Mzu(c,e)}catch{throw new _d(`Invalid wildcard semver: ${e}`)}},o=i(n[0]),s,a;if(n.length===1)s=[o,0,0],a=[o+1,0,0];else{let c=i(n[1]);s=[o,c,0],a=[o,c+1,0]}return{lower:s,upper:a}}function Nzu(e){if(e instanceof Date)return e;if(typeof e=="string"||typeof e=="number"){let t=new Date(e);if(!isNaN(t.valueOf()))return t;throw new _d(`${e} is in an invalid date format`)}throw new _d(`The date provided ${e} must be a string, number, or date object`)}function N1m(e){let t=/^-?(?<number>[0-9]+)(?<interval>[a-z])$/,r=e.match(t),n=new Date(new Date().toISOString());if(!r)return null;{if(!r.groups)return null;let i=parseInt(r.groups.number);if(i>=1e4)return null;let o=r.groups.interval;if(o=="h")n.setUTCHours(n.getUTCHours()-i);else if(o=="d")n.setUTCDate(n.getUTCDate()-i);else if(o=="w")n.setUTCDate(n.getUTCDate()-7*i);else if(o=="m")n.setUTCMonth(n.getUTCMonth()-i);else{if(o!="y")return null;n.setUTCFullYear(n.getUTCFullYear()-i)}return n}}var $7r=class{getProperty(t){return this._memoryStorage[t]}setProperty(t,r){this._memoryStorage[t]=r!==null?r:void 0}constructor(){this._memoryStorage={}}};var j1m=100,Lzu=3e4,Q1m=5e4,z1m=50,M1m=500,L1m="https://us.i.posthog.com",Vzu=new Set;function eWr(e,t){Vzu.has(e)||(Vzu.add(e),console.warn(`[PostHog] ${t}`))}function V1m(e){return typeof e=="string"?e.trim():""}function U1m(e){return(typeof e=="string"?e.trim():"")||void 0}function _1m(e){return(typeof e=="string"?e.trim():"")||L1m}function G1m(e){if(!e)return{};let t={};for(let[n,i]of Object.entries(e))t[`$feature/${n}`]=i;let r=Object.keys(e).filter(n=>e[n]!==!1).sort();return r.length>0&&(t.$active_feature_flags=r),t}var tWr=class extends v_t{constructor(t,r={}){let n=V1m(t),i={...r,host:_1m(r.host),personalApiKey:U1m(r.personalApiKey)};if(super(n,i),this._memoryStorage=new $7r,this.options=i,this.context=this.initializeContext(),this.options.featureFlagsPollingInterval=typeof i.featureFlagsPollingInterval=="number"?Math.max(i.featureFlagsPollingInterval,j1m):Lzu,typeof i.waitUntilDebounceMs=="number"&&(this.options.waitUntilDebounceMs=Math.max(i.waitUntilDebounceMs,0)),typeof i.waitUntilMaxWaitMs=="number"&&(this.options.waitUntilMaxWaitMs=Math.max(i.waitUntilMaxWaitMs,0)),i.personalApiKey){if(i.personalApiKey.includes("phc_"))throw new Error('Your Personal API key is invalid. These keys are prefixed with "phx_" and can be created in PostHog project settings.');i.enableLocalEvaluation!==!1&&(this.featureFlagsPoller=new Z7r({pollingInterval:this.options.featureFlagsPollingInterval,personalApiKey:i.personalApiKey,projectApiKey:n,timeout:i.requestTimeout??1e4,host:this.host,fetch:i.fetch,onError:s=>{this._events.emit("error",s)},onLoad:s=>{this._events.emit("localEvaluationFlagsLoaded",s)},customHeaders:this.getCustomHeaders(),cacheProvider:i.flagDefinitionCacheProvider,strictLocalEvaluation:i.strictLocalEvaluation}))}this.errorTracking=new RH(this,i,this._logger),this.distinctIdHasSentFlagCalls={},this.maxCacheSize=i.maxCacheSize||Q1m}enqueue(t,r,n){super.enqueue(t,r,n),this.scheduleDebouncedFlush()}async flush(){let t=super.flush(),r=this.options.waitUntil;if(r&&!this._waitUntilCycle)try{r(t.catch(()=>{}))}catch{}return t}scheduleDebouncedFlush(){let t=this.options.waitUntil;if(!t||this.disabled||this.optedOut)return;if(!this._waitUntilCycle){let s,a=new Promise(c=>{s=c});try{t(a)}catch{return}this._waitUntilCycle={resolve:s,startedAt:Date.now(),timer:void 0}}let r=Date.now()-this._waitUntilCycle.startedAt,n=this.options.waitUntilMaxWaitMs??M1m,i=r>=n;if(this._waitUntilCycle.timer!==void 0&&clearTimeout(this._waitUntilCycle.timer),i)return void this.resolveWaitUntilFlush();let o=this.options.waitUntilDebounceMs??z1m;this._waitUntilCycle.timer=Kee(()=>{this.resolveWaitUntilFlush()},o)}_consumeWaitUntilCycle(){let t=this._waitUntilCycle;return t&&(clearTimeout(t.timer),this._waitUntilCycle=void 0),t?.resolve}async resolveWaitUntilFlush(){let t=this._consumeWaitUntilCycle();try{await super.flush()}catch{}finally{t?.()}}getPersistedProperty(t){return this._memoryStorage.getProperty(t)}setPersistedProperty(t,r){return this._memoryStorage.setProperty(t,r)}fetch(t,r){return this.options.fetch?this.options.fetch(t,r):fetch(t,r)}getLibraryVersion(){return Dzu}getCustomUserAgent(){return`${this.getLibraryId()}/${this.getLibraryVersion()}`}enable(){return super.optIn()}disable(){return super.optOut()}debug(t=!0){super.debug(t),this.featureFlagsPoller?.debug(t)}capture(t){typeof t=="string"&&this._logger.warn("Called capture() with a string as the first argument when an object was expected."),t.event==="$exception"&&!t._originatedFromCaptureException&&this._logger.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.addPendingPromise(this.prepareEventMessage(t).then(({distinctId:r,event:n,properties:i,options:o})=>super.captureStateless(r,n,i,{timestamp:o.timestamp,disableGeoip:o.disableGeoip,uuid:o.uuid})).catch(r=>{r&&console.error(r)}))}async captureImmediate(t){return typeof t=="string"&&this._logger.warn("Called captureImmediate() with a string as the first argument when an object was expected."),t.event==="$exception"&&!t._originatedFromCaptureException&&this._logger.warn("Capturing a `$exception` event via `posthog.captureImmediate('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureExceptionImmediate(error)` instead, which attaches this metadata by default."),this.addPendingPromise(this.prepareEventMessage(t).then(({distinctId:r,event:n,properties:i,options:o})=>super.captureStatelessImmediate(r,n,i,{timestamp:o.timestamp,disableGeoip:o.disableGeoip,uuid:o.uuid})).catch(r=>{r&&console.error(r)}))}identify({distinctId:t,properties:r={},disableGeoip:n}){let{$set:i,$set_once:o,$anon_distinct_id:s,...a}=r,l={$set:i||a,$set_once:o||{},$anon_distinct_id:s??void 0};super.identifyStateless(t,l,{disableGeoip:n})}async identifyImmediate({distinctId:t,properties:r={},disableGeoip:n}){let{$set:i,$set_once:o,$anon_distinct_id:s,...a}=r,l={$set:i||a,$set_once:o||{},$anon_distinct_id:s??void 0};await super.identifyStatelessImmediate(t,l,{disableGeoip:n})}alias(t){super.aliasStateless(t.alias,t.distinctId,void 0,{disableGeoip:t.disableGeoip})}async aliasImmediate(t){await super.aliasStatelessImmediate(t.alias,t.distinctId,void 0,{disableGeoip:t.disableGeoip})}isLocalEvaluationReady(){return this.featureFlagsPoller?.isLocalEvaluationReady()??!1}async waitForLocalEvaluationReady(t=Lzu){return this.isLocalEvaluationReady()?!0:this.featureFlagsPoller===void 0?!1:new Promise(r=>{let n=setTimeout(()=>{i(),r(!1)},t),i=this._events.on("localEvaluationFlagsLoaded",o=>{clearTimeout(n),i(),r(o>0)})})}_resolveDistinctId(t,r){return typeof t=="string"?{distinctId:t,options:r}:{distinctId:this.context?.get()?.distinctId,options:t}}async _getFeatureFlagResult(t,r,n={},i){let o=n.sendFeatureFlagEvents??!0;if(this._flagOverrides!==void 0&&t in this._flagOverrides){let T=this._flagOverrides[t];if(T===void 0)return;let P=this._payloadOverrides?.[t];return{key:t,enabled:T!==!1,variant:typeof T=="string"?T:void 0,payload:P}}let{groups:s,disableGeoip:a}=n,{onlyEvaluateLocally:c,personProperties:u,groupProperties:l}=n,p=this.addLocalPersonAndGroupProperties(r,s,u,l);u=p.allPersonProperties,l=p.allGroupProperties;let d=this.createFeatureFlagEvaluationContext(r,s,u,l);c==null&&(c=this.options.strictLocalEvaluation??!1);let f,m=!1,g,A,y,E,x,I;if(this.featureFlagsPoller!==void 0){await this.featureFlagsPoller?.loadFeatureFlags();let T=this.featureFlagsPoller?.featureFlagsByKey[t];if(T)try{let P=await this.featureFlagsPoller?.computeFlagAndPayloadLocally(T,d,{matchValue:i});if(P){m=!0;let D=P.value;E=T.id,I="Evaluated locally",f={key:t,enabled:D!==!1,variant:typeof D=="string"?D:void 0,payload:P.payload??void 0}}}catch(P){if(P instanceof Yee||P instanceof _d)this._logger?.info(`${P.name} when computing flag locally: ${t}: ${P.message}`);else throw P}}if(!m&&!c){let T=await super.getFeatureFlagDetailsStateless(d.distinctId,d.groups,d.personProperties,d.groupProperties,a,[t]);if(T===void 0)y=nde.UNKNOWN_ERROR;else{g=T.requestId,A=T.evaluatedAt;let P=[];T.errorsWhileComputingFlags&&P.push(nde.ERRORS_WHILE_COMPUTING),T.quotaLimited?.includes("feature_flags")&&P.push(nde.QUOTA_LIMITED);let D=T.flags[t];if(D===void 0)P.push(nde.FLAG_MISSING);else{E=D.metadata?.id,x=D.metadata?.version,I=D.reason?.description??D.reason?.code;let O;if(D.metadata?.payload!==void 0)try{O=JSON.parse(D.metadata.payload)}catch{O=D.metadata.payload}f={key:t,enabled:D.enabled,variant:D.variant,payload:O}}P.length>0&&(y=P.join(","))}}if(o){let T=f===void 0?void 0:f.enabled===!1?!1:f.variant??!0,P={$feature_flag:t,$feature_flag_response:T,$feature_flag_id:E,$feature_flag_version:x,$feature_flag_reason:I,locally_evaluated:m,[`$feature/${t}`]:T,$feature_flag_request_id:g,$feature_flag_evaluated_at:m?Date.now():A};if(m&&this.featureFlagsPoller){let D=this.featureFlagsPoller.getFlagDefinitionsLoadedAt();D!==void 0&&(P.$feature_flag_definitions_loaded_at=D)}y&&(P.$feature_flag_error=y),this._captureFlagCalledEventIfNeeded({distinctId:r,key:t,response:T,groups:s,disableGeoip:a,properties:P})}return f!==void 0&&this._payloadOverrides!==void 0&&t in this._payloadOverrides&&(f={...f,payload:this._payloadOverrides[t]}),f}async getFeatureFlag(t,r,n){eWr("getFeatureFlag","`getFeatureFlag` is deprecated and will be removed in a future major version. Use `posthog.evaluateFlags(distinctId, ...)` and call `flags.getFlag(key)` instead \u2014 this consolidates flag evaluation into a single `/flags` request per incoming request.");let i=await this._getFeatureFlagResult(t,r,{...n,sendFeatureFlagEvents:n?.sendFeatureFlagEvents??this.options.sendFeatureFlagEvent??!0});if(i!==void 0)return i.enabled===!1?!1:i.variant??!0}async getFeatureFlagPayload(t,r,n,i){if(eWr("getFeatureFlagPayload","`getFeatureFlagPayload` is deprecated and will be removed in a future major version. Use `posthog.evaluateFlags(distinctId, ...)` and call `flags.getFlagPayload(key)` instead \u2014 this consolidates flag evaluation into a single `/flags` request per incoming request."),this._payloadOverrides!==void 0&&t in this._payloadOverrides)return this._payloadOverrides[t];let o=await this._getFeatureFlagResult(t,r,{...i,sendFeatureFlagEvents:!1},n);if(o!==void 0)return o.payload??null}async getFeatureFlagResult(t,r,n){let{distinctId:i,options:o}=this._resolveDistinctId(r,n);return i?this._getFeatureFlagResult(t,i,{...o,sendFeatureFlagEvents:o?.sendFeatureFlagEvents??this.options.sendFeatureFlagEvent??!0}):void this._logger.warn("[PostHog] distinctId is required \u2014 pass it explicitly or use withContext()")}async getRemoteConfigPayload(t){if(!this.options.personalApiKey)throw new Error("Personal API key is required for remote config payload decryption");let r=await this._requestRemoteConfigPayload(t);if(!r)return;let n=await r.json();if(typeof n=="string")try{return JSON.parse(n)}catch{}return n}async isFeatureEnabled(t,r,n){eWr("isFeatureEnabled","`isFeatureEnabled` is deprecated and will be removed in a future major version. Use `posthog.evaluateFlags(distinctId, ...)` and call `flags.isEnabled(key)` instead \u2014 this consolidates flag evaluation into a single `/flags` request per incoming request.");let i=await this._getFeatureFlagResult(t,r,{...n,sendFeatureFlagEvents:n?.sendFeatureFlagEvents??this.options.sendFeatureFlagEvent??!0});return i===void 0?void 0:i.enabled===!1?!1:!!(i.variant??!0)||!1}async getAllFlags(t,r){let{distinctId:n,options:i}=this._resolveDistinctId(t,r);return n?(await this.getAllFlagsAndPayloads(n,i)).featureFlags||{}:(this._logger.warn("[PostHog] distinctId is required to get feature flags \u2014 pass it explicitly or use withContext()"),{})}async getAllFlagsAndPayloads(t,r){let{distinctId:n,options:i}=this._resolveDistinctId(t,r);if(!n)return this._logger.warn("[PostHog] distinctId is required to get feature flags and payloads \u2014 pass it explicitly or use withContext()"),{featureFlags:{},featureFlagPayloads:{}};let{groups:o,disableGeoip:s,flagKeys:a}=i||{},{onlyEvaluateLocally:c,personProperties:u,groupProperties:l}=i||{},p=this.addLocalPersonAndGroupProperties(n,o,u,l);u=p.allPersonProperties,l=p.allGroupProperties;let d=this.createFeatureFlagEvaluationContext(n,o,u,l);c==null&&(c=this.options.strictLocalEvaluation??!1);let f=await this.featureFlagsPoller?.getAllFlagsAndPayloads(d,a),m={},g={},A=!0;if(f&&(m=f.response,g=f.payloads,A=f.fallbackToFlags),A&&!c){let y=await super.getFeatureFlagsAndPayloadsStateless(d.distinctId,d.groups,d.personProperties,d.groupProperties,s,a);m={...m,...y.flags||{}},g={...g,...y.payloads||{}}}return this._flagOverrides!==void 0&&(m={...m,...this._flagOverrides}),this._payloadOverrides!==void 0&&(g={...g,...this._payloadOverrides}),{featureFlags:m,featureFlagPayloads:g}}async evaluateFlags(t,r){let{distinctId:n,options:i}=this._resolveDistinctId(t,r);if(!n)return this._logger.warn("[PostHog] distinctId is required to evaluate feature flags \u2014 pass it explicitly or use withContext()"),new Rot({host:this._getFeatureFlagEvaluationsHost(),distinctId:"",flags:{}});let{groups:o,disableGeoip:s,flagKeys:a}=i||{},{onlyEvaluateLocally:c,personProperties:u,groupProperties:l}=i||{},p=this.addLocalPersonAndGroupProperties(n,o,u,l);u=p.allPersonProperties,l=p.allGroupProperties;let d=this.createFeatureFlagEvaluationContext(n,o,u,l);c==null&&(c=this.options.strictLocalEvaluation??!1);let f={},m,g,A=!1,y=!1,E=await this.featureFlagsPoller?.getAllFlagsAndPayloads(d,a),x=new Set;if(E)for(let[C,T]of Object.entries(E.response)){let P=this.featureFlagsPoller?.featureFlagsByKey[C];f[C]={key:C,enabled:T!==!1,variant:typeof T=="string"?T:void 0,payload:E.payloads[C],id:P?.id,version:void 0,reason:"Evaluated locally",locallyEvaluated:!0},x.add(C)}if((E?E.fallbackToFlags:!0)&&!c){let C=await super.getFeatureFlagDetailsStateless(d.distinctId,d.groups,d.personProperties,d.groupProperties,s,a);if(C){m=C.requestId,g=C.evaluatedAt,A=!!C.errorsWhileComputingFlags,y=Array.isArray(C.quotaLimited)&&C.quotaLimited.includes("feature_flags");for(let[T,P]of Object.entries(C.flags)){if(x.has(T))continue;let D;if(P.metadata?.payload!==void 0)try{D=JSON.parse(P.metadata.payload)}catch{D=P.metadata.payload}f[T]={key:T,enabled:P.enabled,variant:P.variant,payload:D,id:P.metadata?.id,version:P.metadata?.version,reason:P.reason?.description??P.reason?.code,locallyEvaluated:!1}}}}if(this._flagOverrides!==void 0)for(let[C,T]of Object.entries(this._flagOverrides)){if(T===void 0){delete f[C];continue}let P=f[C];f[C]={key:C,enabled:T!==!1,variant:typeof T=="string"?T:void 0,payload:P?.payload,id:P?.id,version:P?.version,reason:P?.reason,locallyEvaluated:P?.locallyEvaluated??!1}}if(this._payloadOverrides!==void 0)for(let[C,T]of Object.entries(this._payloadOverrides)){let P=f[C];P&&(f[C]={...P,payload:T})}return new Rot({host:this._getFeatureFlagEvaluationsHost(),distinctId:n,groups:o,disableGeoip:s,flags:f,requestId:m,evaluatedAt:g,flagDefinitionsLoadedAt:this.featureFlagsPoller?.getFlagDefinitionsLoadedAt(),errorsWhileComputing:A,quotaLimited:y})}_captureFlagCalledEventIfNeeded(t){let{distinctId:r,key:n,response:i,groups:o,disableGeoip:s,properties:a}=t,c=`${n}_${i}`;r in this.distinctIdHasSentFlagCalls&&this.distinctIdHasSentFlagCalls[r].includes(c)||(Object.keys(this.distinctIdHasSentFlagCalls).length>=this.maxCacheSize&&(this.distinctIdHasSentFlagCalls={}),Array.isArray(this.distinctIdHasSentFlagCalls[r])?this.distinctIdHasSentFlagCalls[r].push(c):this.distinctIdHasSentFlagCalls[r]=[c],this.capture({distinctId:r,event:"$feature_flag_called",properties:a,groups:o,disableGeoip:s}))}_getFeatureFlagEvaluationsHost(){return this._featureFlagEvaluationsHost||(this._featureFlagEvaluationsHost={captureFlagCalledEventIfNeeded:t=>this._captureFlagCalledEventIfNeeded(t),logWarning:t=>{this.options.featureFlagsLogWarnings!==!1&&console.warn(`[PostHog] ${t}`)}}),this._featureFlagEvaluationsHost}groupIdentify({groupType:t,groupKey:r,properties:n,distinctId:i,disableGeoip:o}){super.groupIdentifyStateless(t,r,n,{disableGeoip:o},i)}async reloadFeatureFlags(){await this.featureFlagsPoller?.loadFeatureFlags(!0)}overrideFeatureFlags(t){let r=n=>Object.fromEntries(n.map(i=>[i,!0]));if(t===!1){this._flagOverrides=void 0,this._payloadOverrides=void 0;return}if(Array.isArray(t)){this._flagOverrides=r(t);return}if(this._isFeatureFlagOverrideOptions(t)){"flags"in t&&(t.flags===!1?this._flagOverrides=void 0:Array.isArray(t.flags)?this._flagOverrides=r(t.flags):t.flags!==void 0&&(this._flagOverrides={...t.flags})),"payloads"in t&&(t.payloads===!1?this._payloadOverrides=void 0:t.payloads!==void 0&&(this._payloadOverrides={...t.payloads}));return}this._flagOverrides={...t}}_isFeatureFlagOverrideOptions(t){if(typeof t!="object"||t===null||Array.isArray(t))return!1;let r=t;if("flags"in r){let n=r.flags;if(n===!1||Array.isArray(n)||typeof n=="object"&&n!==null)return!0}if("payloads"in r){let n=r.payloads;if(n===!1||typeof n=="object"&&n!==null)return!0}return!1}withContext(t,r,n){return this.context?this.context.run(t,r,n):r()}getContext(){return this.context?.get()}enterContext(t,r){this.context?.enter(t,r)}async _shutdown(t){let r=this._consumeWaitUntilCycle();await this.featureFlagsPoller?.stopPoller(t),this.errorTracking.shutdown();try{return await super._shutdown(t)}finally{r?.()}}async _requestRemoteConfigPayload(t){if(!this.options.personalApiKey)return;let r=`${this.host}/api/projects/@current/feature_flags/${t}/remote_config?token=${encodeURIComponent(this.apiKey)}`,n={method:"GET",headers:{...this.getCustomHeaders(),"Content-Type":"application/json",Authorization:`Bearer ${this.options.personalApiKey}`}},i=null;if(this.options.requestTimeout&&typeof this.options.requestTimeout=="number"){let o=new AbortController;i=Kee(()=>{o.abort()},this.options.requestTimeout),n.signal=o.signal}try{return await this.fetch(r,n)}catch(o){this._events.emit("error",o);return}finally{i&&clearTimeout(i)}}extractPropertiesFromEvent(t,r){if(!t)return{personProperties:{},groupProperties:{}};let n={},i={};for(let[o,s]of Object.entries(t))if(WQu(s)&&r&&o in r){let a={};for(let[c,u]of Object.entries(s))a[String(c)]=String(u);i[String(o)]=a}else n[String(o)]=String(s);return{personProperties:n,groupProperties:i}}async getFeatureFlagsForEvent(t,r,n,i){let o=i?.personProperties||{},s=i?.groupProperties||{},a=i?.flagKeys;if(i?.onlyEvaluateLocally??this.options.strictLocalEvaluation??!1)if((this.featureFlagsPoller?.featureFlags?.length||0)>0){let u={};for(let[l,p]of Object.entries(r||{}))u[l]=String(p);return await this.getAllFlags(t,{groups:u,personProperties:o,groupProperties:s,disableGeoip:n,onlyEvaluateLocally:!0,flagKeys:a})}else return{};if((this.featureFlagsPoller?.featureFlags?.length||0)>0){let u={};for(let[l,p]of Object.entries(r||{}))u[l]=String(p);return await this.getAllFlags(t,{groups:u,personProperties:o,groupProperties:s,disableGeoip:n,onlyEvaluateLocally:!0,flagKeys:a})}return(await super.getFeatureFlagsStateless(t,r,o,s,n)).flags}addLocalPersonAndGroupProperties(t,r,n,i){let o={distinct_id:t,...n||{}},s={};if(r)for(let a of Object.keys(r))s[a]={$group_key:r[a],...i?.[a]||{}};return{allPersonProperties:o,allGroupProperties:s}}createFeatureFlagEvaluationContext(t,r,n,i){return{distinctId:t,groups:r||{},personProperties:n||{},groupProperties:i||{},evaluationCache:{}}}captureException(t,r,n,i,o){if(!RH.isPreviouslyCapturedError(t)){let s=new Error("PostHog syntheticException");this.addPendingPromise(RH.buildEventMessage(t,{syntheticException:s},r,n).then(a=>this.capture({...a,uuid:i,flags:o})))}}async captureExceptionImmediate(t,r,n,i){if(!RH.isPreviouslyCapturedError(t)){let o=new Error("PostHog syntheticException");return this.addPendingPromise(RH.buildEventMessage(t,{syntheticException:o},r,n).then(s=>this.captureImmediate({...s,flags:i})))}}async prepareEventMessage(t){let{distinctId:r,event:n,properties:i,groups:o,flags:s,sendFeatureFlags:a,timestamp:c,disableGeoip:u,uuid:l}=t,p=this.context?.get(),d=r||p?.distinctId,f={...this.props,...p?.properties||{},...i||{}};d||(d=Hee(),f.$process_person_profile=!1),p?.sessionId&&!f.$session_id&&(f.$session_id=p.sessionId);let m=this._runBeforeSend({distinctId:d,event:n,properties:f,groups:o,flags:s,sendFeatureFlags:a,timestamp:c,disableGeoip:u,uuid:l});if(!m)return Promise.reject(null);let g=await Promise.resolve().then(async()=>{if(s)return a&&console.warn("[PostHog] Both `flags` and `sendFeatureFlags` were passed to capture(); using `flags` and ignoring `sendFeatureFlags`."),s._getEventProperties();if(a){eWr("sendFeatureFlags","`sendFeatureFlags` is deprecated and will be removed in a future major version. Pass a `flags` snapshot from `posthog.evaluateFlags(...)` instead \u2014 it avoids a second `/flags` request per capture and guarantees the event carries the exact flag values your code branched on.");let A=typeof a=="object"?a:void 0,y=await this.getFeatureFlagsForEvent(m.distinctId,o,u,A);return G1m(y)}return{}}).catch(()=>({})).then(A=>({...A,...m.properties||{},$groups:m.groups||o}));return m.event==="$pageview"&&this.options.__preview_capture_bot_pageviews&&typeof g.$raw_user_agent=="string"&&UQu(g.$raw_user_agent,this.options.custom_blocked_useragents||[])&&(m.event="$bot_pageview",g.$browser_type="bot"),{distinctId:m.distinctId,event:m.event,properties:g,options:{timestamp:m.timestamp,disableGeoip:m.disableGeoip,uuid:m.uuid}}}_runBeforeSend(t){let r=this.options.before_send;if(!r)return t;let n=Array.isArray(r)?r:[r],i=t;for(let o of n){if(i=o(i),!i)return this._logger.info(`Event '${t.event}' was rejected in beforeSend function`),null;if(!i.properties||Object.keys(i.properties).length===0){let s=`Event '${i.event}' has no properties after beforeSend function, this is likely an error.`;this._logger.warn(s)}}return i}};var Uzu=require("async_hooks"),rWr=class{constructor(){this.storage=new Uzu.AsyncLocalStorage}get(){return this.storage.getStore()}run(t,r,n){return this.storage.run(this.resolve(t,n),r)}enter(t,r){this.storage.enterWith(this.resolve(t,r))}resolve(t,r){if(r?.fresh===!0)return t;let n=this.get()||{};return{distinctId:t.distinctId??n.distinctId,sessionId:t.sessionId??n.sessionId,properties:{...n.properties||{},...t.properties||{}}}}};var _zu="posthog-node";function q1m(e,{organization:t,projectId:r,prefix:n,severityAllowList:i=["error"],sendExceptionsToPostHog:o=!0}={}){return s=>{if(!(i==="*"||i.includes(s.level)))return s;s.tags||(s.tags={});let c=s.tags[y6o.POSTHOG_ID_TAG];if(c===void 0)return s;let u=e.options.host??"https://us.i.posthog.com",l=new URL(`/project/${e.apiKey}/person/${c}`,u).toString();s.tags["PostHog Person URL"]=l;let p=s.exception?.values||[],d=p.map(m=>({...m,stacktrace:m.stacktrace?{...m.stacktrace,type:"raw",frames:(m.stacktrace.frames||[]).map(g=>({...g,platform:"node:javascript"}))}:void 0})),f={$exception_message:p[0]?.value||s.message,$exception_type:p[0]?.type,$exception_level:s.level,$exception_list:d,$sentry_event_id:s.event_id,$sentry_exception:s.exception,$sentry_exception_message:p[0]?.value||s.message,$sentry_exception_type:p[0]?.type,$sentry_tags:s.tags};return t&&r&&(f.$sentry_url=(n||"https://sentry.io/organizations/")+t+"/issues/?project="+r+"&query="+s.event_id),o&&e.capture({event:"$exception",distinctId:c,properties:f}),s}}var y6o=class{static#e=this.POSTHOG_ID_TAG="posthog_distinct_id";constructor(t,r,n,i,o){this.name=_zu,this.name=_zu,this.setupOnce=function(s,a){let c=a()?.getClient()?.getDsn()?.projectId;s(q1m(t,{organization:r,projectId:c,prefix:n,severityAllowList:i,sendExceptionsToPostHog:o??!0}))}}};RH.errorPropertiesBuilder=new dz.ErrorPropertiesBuilder([new dz.EventCoercer,new dz.ErrorCoercer,new dz.ObjectCoercer,new dz.StringCoercer,new dz.PrimitiveCoercer],dz.createStackParser("node:javascript",dz.nodeStackLineParser),[MQu(),wzu,Ozu()]);var Bxe=class extends tWr{getLibraryId(){return"posthog-node"}initializeContext(){return new rWr}};var nWr=class{posthog;constructor({posthogApiKey:t}){this.posthog=new Bxe(t)}async identify(){}async sendEvent(t){t.orgId!=null&&this.posthog.capture({distinctId:t.orgId,event:"CLI",properties:{...t,...t.properties,version:"5.118.0",usingAccessToken:!0,...Qce()}})}sendAutomationEvent(t){this.posthog.capture({distinctId:t.distinctId,event:t.event,properties:t.properties})}async flush(){try{await Promise.race([this.posthog.flush(),new Promise(t=>setTimeout(t,3e3))])}catch{}}};var C_t=class{async sendEvent(){}async sendAutomationEvent(){}async identify(){}async flush(){}};Md();Jt();var Fot=require("fs/promises"),Gzu=require("os"),qzu=require("path");ynt();var W1m="id",H1m=".fern",w_t=class{posthog;userId;token;constructor({token:t,posthogApiKey:r}){this.posthog=new Bxe(r),this.userId=t==null?void 0:VFo(t),this.token=t}async identify(){this.userId!=null&&this.posthog.alias({distinctId:this.userId,alias:await this.getPersistedDistinctId()})}async sendEvent(t){let r=await this.getUserEmail();this.posthog.capture({distinctId:this.userId??await this.getPersistedDistinctId(),event:"CLI",properties:{version:"5.118.0",...t,...t.properties,usingAccessToken:!1,...r!=null?{userEmail:r}:{},...Qce()}})}sendAutomationEvent(t){this.posthog.capture({distinctId:t.distinctId,event:t.event,properties:t.properties})}async flush(){try{await Promise.race([this.posthog.flush(),new Promise(t=>setTimeout(t,3e3))])}catch{}}userEmail;async getUserEmail(){if(this.userEmail!==null){if(this.userEmail!=null)return this.userEmail;if(this.token==null){this.userEmail=null;return}try{let t=await Rf({token:this.token.value}).user.getMyself();if(t.ok&&t.body.email!=null)return this.userEmail=t.body.email,this.userEmail}catch{}this.userEmail=null}}persistedDistinctId;async getPersistedDistinctId(){if(this.persistedDistinctId==null){let t=UD(),r=Me(Ut.of((0,Gzu.homedir)()),ve.of(H1m),ve.of(W1m));try{await Xt(r)?this.persistedDistinctId=(await(0,Fot.readFile)(r)).toString():(await(0,Fot.mkdir)((0,qzu.dirname)(r),{recursive:!0}),await(0,Fot.writeFile)(r,t),this.persistedDistinctId=t)}catch{this.persistedDistinctId=t}}return this.persistedDistinctId}};var b6o;async function S_t(){return b6o==null&&(b6o=await K1m()),b6o}async function K1m(){try{let e="phc_yQgAEdJJkVpI24NdSRID2mor1x1leRpDoC9yZ9mfXal",t=process.env.FERN_DISABLE_TELEMETRY==="true";if(e==null||t)return new C_t;let r=await Jnt();return r!=null?new w_t({token:r,posthogApiKey:e}):await oz()!=null?new nWr({posthogApiKey:e}):new w_t({token:void 0,posthogApiKey:e})}catch{return new C_t}}En();Bt();jt();P_();var T_t=ye(require("process"),1);B7e();var Kzu=ye(SSo(),1),Jzu=ye(Hzu(),1);function oT(e,t={}){if(typeof e!="string"||e.length===0||(t={ambiguousIsNarrow:!0,...t},e=d7(e),e.length===0))return 0;e=e.replace((0,Jzu.default)()," ");let r=t.ambiguousIsNarrow?1:2,n=0;for(let i of e){let o=i.codePointAt(0);if(o<=31||o>=127&&o<=159||o>=768&&o<=879)continue;switch(Kzu.default.eastAsianWidth(i)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}En();function iWr(e){let t=0;for(let r of e.split(`
3369
+ `);for(let s=n;s<o.length;s++){let a=o[s];if(a.length>1024)continue;let c=mzu.test(a)?a.replace(mzu,"$1"):a;if(!c.match(/\S*Error: /)){for(let u of t){let l=u(c,e);if(l){i.push(l);break}}if(i.length>=hzu)break}}return gzu(i)}}var s6o=class{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,r){let n=Oxe(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:n?t.stack:void 0,cause:t.cause?r.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){let r=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?`${r}: ${t.message}`:r}isDOMException(t){return E3e(t,"DOMException")}isDOMError(t){return E3e(t,"DOMError")}};var a6o=class{match(t){return JMo(t)}coerce(t,r){return{type:this.getType(t),value:this.getMessage(t,r),stack:this.getStack(t),cause:t.cause?r.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,r){let n=t.message;return n.error&&typeof n.error.message=="string"?String(n.error.message):String(n)}getStack(t){return t.stacktrace||t.stack||void 0}};var c6o=class{constructor(){}match(t){return qQu(t)&&t.error!=null}coerce(t,r){let n=r.apply(t.error);return n||{type:"ErrorEvent",value:t.message,stack:r.syntheticException?.stack,synthetic:!0}}};var u1m=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,u6o=class{match(t){return typeof t=="string"}coerce(t,r){let[n,i]=this.getInfos(t);return{type:n??"Error",value:i??t,stack:r.syntheticException?.stack,synthetic:!0}}getInfos(t){let r="Error",n=t,i=t.match(u1m);return i&&(r=i[1],n=i[2]),[r,n]}};var yzu=["fatal","error","warning","log","info","debug"];function J7r(e,t=40){let r=Object.keys(e);if(r.sort(),!r.length)return"[object has no keys]";for(let n=r.length;n>0;n--){let i=r.slice(0,n).join(", ");if(!(i.length>t))return n===r.length||i.length<=t?i:`${i.slice(0,t)}...`}return""}var l6o=class{match(t){return typeof t=="object"&&t!==null}coerce(t,r){let n=this.getErrorPropertyFromObject(t);return n?r.apply(n):{type:this.getType(t),value:this.getValue(t),stack:r.syntheticException?.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return Oot(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){let i=`'${t.name}' captured as exception`;return"message"in t&&typeof t.message=="string"&&(i+=` with message: '${t.message}'`),i}if("message"in t&&typeof t.message=="string")return t.message;let r=this.getObjectClassName(t),n=J7r(t);return`${r&&r!=="Object"?`'${r}'`:"Object"} captured as exception with keys: ${n}`}isSeverityLevel(t){return Oxe(t)&&!GQu(t)&&yzu.indexOf(t)>=0}getErrorPropertyFromObject(t){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=t[r];if(ozu(n))return n}}getObjectClassName(t){try{let r=Object.getPrototypeOf(t);return r?r.constructor.name:void 0}catch{return}}};var p6o=class{match(t){return Oot(t)}coerce(t,r){let n=t.constructor.name;return{type:n,value:`${n} captured as exception with keys: ${J7r(t)}`,stack:r.syntheticException?.stack,synthetic:!0}}};var f6o=class{match(t){return k7r(t)}coerce(t,r){return{type:"Error",value:`Primitive value captured as exception: ${String(t)}`,stack:r.syntheticException?.stack,synthetic:!0}}};var d6o=class{match(t){return E3e(t,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(t)}isCustomEventWrappingRejection(t){if(!Oot(t))return!1;try{let r=t.detail;return r!=null&&typeof r=="object"&&"reason"in r}catch{return!1}}coerce(t,r){let n=this.getUnhandledRejectionReason(t);return k7r(n)?{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(n)}`,stack:r.syntheticException?.stack,synthetic:!0}:r.apply(n)}getUnhandledRejectionReason(t){try{if("reason"in t)return t.reason;if("detail"in t&&t.detail!=null&&typeof t.detail=="object"&&"reason"in t.detail)return t.detail.reason}catch{}return t}};var m6o=class{constructor(t){this._maxSize=t,this._cache=new Map}get(t){let r=this._cache.get(t);if(r!==void 0)return this._cache.delete(t),this._cache.set(t,r),r}set(t,r){this._cache.set(t,r)}reduce(){for(;this._cache.size>=this._maxSize;){let t=this._cache.keys().next().value;t&&this._cache.delete(t)}}};var x_t={MESSAGE:"$message",TIMESTAMP:"$timestamp"},l1m=new Set([x_t.MESSAGE,x_t.TIMESTAMP]),Y7r={enabled:!0,max_bytes:32768};function h6o(e){return e?{enabled:e.enabled??Y7r.enabled,max_bytes:f1m(e.max_bytes,Y7r.max_bytes)}:{...Y7r}}function p1m(e){if(!e)return{sanitizedProperties:{},droppedKeys:[]};let t=[];return{sanitizedProperties:Object.keys(e).reduce((n,i)=>l1m.has(i)?(t.push(i),n):(n[i]=e[i],n),{}),droppedKeys:t}}var g6o=class{constructor(t){this._entries=[],this._totalBytes=0,this._config=h6o(t)}setConfig(t){this._config=h6o(t),this._trimToMaxBytes()}add(t){let r=d1m(t);if(!r)return;let n=bzu(r.json);n>this._config.max_bytes||(this._entries.push({step:r.step,bytes:n}),this._totalBytes+=n,this._trimToMaxBytes())}getAttachable(){return this._entries.map(t=>t.step)}clear(){this._entries=[],this._totalBytes=0}size(){return this._entries.length}_trimToMaxBytes(){for(;this._totalBytes>this._config.max_bytes&&this._entries.length>0;){let t=this._entries.shift();t&&(this._totalBytes-=t.bytes)}}};function f1m(e,t){if(!b_t(e)||e===1/0||e===-1/0)return t;let r=Math.floor(e);return r<0?t:r}function d1m(e){let t=m1m(e);if(t)try{let r=JSON.parse(t);if(!y_t(r))return;let n=r,i=n[x_t.MESSAGE],o=n[x_t.TIMESTAMP];return!Oxe(i)||i.trim().length===0||!Oxe(o)&&!b_t(o)?void 0:{step:n,json:t}}catch{return}}function m1m(e){let t=new WeakSet;try{return JSON.stringify(e,(r,n)=>{if(typeof n=="bigint")return n.toString();if(!(typeof n=="function"||typeof n=="symbol")){if(n instanceof Date)return n.toISOString();if(n instanceof Error)return{name:n.name,message:n.message,stack:n.stack};if(n&&typeof n=="object"){if(t.has(n))return"[Circular]";t.add(n)}return n}})}catch{return}}function bzu(e){if(typeof TextEncoder<"u")return new TextEncoder().encode(e).length;let t=encodeURIComponent(e),r=0;for(let n=0;n<t.length;n++)t[n]==="%"?(r+=1,n+=2):r+=1;return r}var vzu=require("fs"),xzu=require("readline"),X7r=new dz.ReduceableCache(25),Czu=new dz.ReduceableCache(20),A6o=7,h1m=1e3,g1m=1e4;async function wzu(e){let t={};for(let i=e.length-1;i>=0;i--){let o=e[i],s=o?.filename;if(!o||typeof s!="string"||typeof o.lineno!="number"||E1m(s)||I1m(o))continue;t[s]||(t[s]=[]),t[s].push(o.lineno)}let r=Object.keys(t);if(r.length==0)return e;let n=[];for(let i of r){if(Czu.get(i))continue;let o=t[i];if(!o)continue;o.sort((c,u)=>c-u);let s=x1m(o);if(s.every(c=>v1m(i,c)))continue;let a=C1m(X7r,i,{});n.push(A1m(i,s,a))}return await Promise.all(n).catch(()=>{}),e&&e.length>0&&y1m(e,X7r),X7r.reduce(),e}function A1m(e,t,r){return new Promise(n=>{let i=(0,vzu.createReadStream)(e),o=(0,xzu.createInterface)({input:i});function s(){i.destroy(),n()}let a=0,c=0,u=t[c];if(u===void 0)return void s();let l=u[0],p=u[1];function d(){Czu.set(e,1),o.close(),o.removeAllListeners(),s()}i.on("error",d),o.on("error",d),o.on("close",s),o.on("line",f=>{if(a++,!(a<l)&&(r[a]=w1m(f,0),a>=p)){if(c===t.length-1){o.close(),o.removeAllListeners();return}c++;let m=t[c];if(m===void 0){o.close(),o.removeAllListeners();return}l=m[0],p=m[1]}})})}function y1m(e,t){for(let r of e)if(r.filename&&r.context_line===void 0&&typeof r.lineno=="number"){let n=t.get(r.filename);if(n===void 0)continue;b1m(r.lineno,r,n)}}function b1m(e,t,r){if(t.lineno===void 0||r===void 0)return;t.pre_context=[];for(let i=Szu(e);i<e;i++){let o=r[i];if(o===void 0)return void Ezu(t);t.pre_context.push(o)}if(r[e]===void 0)return void Ezu(t);t.context_line=r[e];let n=Tzu(e);t.post_context=[];for(let i=e+1;i<=n;i++){let o=r[i];if(o===void 0)break;t.post_context.push(o)}}function Ezu(e){delete e.pre_context,delete e.context_line,delete e.post_context}function E1m(e){return e.startsWith("node:")||e.endsWith(".min.js")||e.endsWith(".min.cjs")||e.endsWith(".min.mjs")||e.startsWith("data:")}function I1m(e){return e.lineno!==void 0&&e.lineno>g1m||e.colno!==void 0&&e.colno>h1m}function v1m(e,t){let r=X7r.get(e);if(r===void 0)return!1;for(let n=t[0];n<=t[1];n++)if(r[n]===void 0)return!1;return!0}function x1m(e){if(!e.length)return[];let t=0,r=e[0];if(typeof r!="number")return[];let n=Izu(r),i=[];for(;;){if(t===e.length-1){i.push(n);break}let o=e[t+1];if(typeof o!="number")break;o<=n[1]?n[1]=o+A6o:(i.push(n),n=Izu(o)),t++}return i}function Izu(e){return[Szu(e),Tzu(e)]}function Szu(e){return Math.max(1,e-A6o)}function Tzu(e){return e+A6o}function C1m(e,t,r){let n=e.get(t);return n===void 0?(e.set(t,r),r):n}function w1m(e,t){let r=e,n=r.length;if(n<=150)return r;t>n&&(t=n);let i=Math.max(t-60,0);i<5&&(i=0);let o=Math.min(i+140,n);return o>n-5&&(o=n),o===n&&(i=Math.max(o-140,0)),r=r.slice(i,o),i>0&&(r=`...${r}`),o<n&&(r+="..."),r}var Dot=require("path");function Ozu(e=process.cwd()){let t=Dot.sep==="\\",r=i=>t?i.replace(/\\/g,"/"):i,n=r(e);return async i=>{for(let o of i)!o.filename||o.filename.startsWith("node:")||o.filename.startsWith("data:")||(0,Dot.isAbsolute)(o.filename)&&(o.filename=r((0,Dot.relative)(n,r(o.filename))));return i}}function S1m(e,t){let r=!1;return Object.assign(n=>{let o=global.process.listeners("uncaughtException").filter(s=>s.name!=="domainUncaughtExceptionClear"&&s._posthogErrorHandler!==!0).length===0;e(n,{mechanism:{type:"onuncaughtexception",handled:!1}}),!r&&o&&(r=!0,t(n))},{_posthogErrorHandler:!0})}function Bzu(e,t){globalThis.process?.on("uncaughtException",S1m(e,t))}function Pzu(e){globalThis.process?.on("unhandledRejection",t=>e(t,{mechanism:{type:"onunhandledrejection",handled:!1}}))}var T1m=2e3,RH=class e{constructor(t,r,n){this.client=t,this._exceptionAutocaptureEnabled=r.enableExceptionAutocapture||!1,this._logger=n,this._rateLimiter=new F7r({refillRate:1,bucketSize:10,refillInterval:1e4,_logger:this._logger}),this.startAutocaptureIfEnabled()}static isPreviouslyCapturedError(t){return y_t(t)&&"__posthog_previously_captured_error"in t&&t.__posthog_previously_captured_error===!0}static async buildEventMessage(t,r,n,i){let o={...i},s=this.errorPropertiesBuilder.buildFromUnknown(t,r);return s.$exception_list=await this.errorPropertiesBuilder.modifyFrames(s.$exception_list),{event:"$exception",distinctId:n,properties:{...s,...o},_originatedFromCaptureException:!0}}startAutocaptureIfEnabled(){this.isEnabled()&&(Bzu(this.onException.bind(this),this.onFatalError.bind(this)),Pzu(this.onException.bind(this)))}onException(t,r){this.client.addPendingPromise((async()=>{if(!e.isPreviouslyCapturedError(t)){let n=await e.buildEventMessage(t,r),o=n.properties?.$exception_list[0]?.type??"Exception";return this._rateLimiter.consumeRateLimit(o)?void this._logger.info("Skipping exception capture because of client rate limiting.",{exception:o}):this.client.capture(n)}})())}async onFatalError(t){console.error(t),await this.client.shutdown(T1m),process.exit(1)}isEnabled(){return!this.client.isDisabled&&this._exceptionAutocaptureEnabled}shutdown(){this._rateLimiter.stop()}};var Dzu="5.35.1";var nde={ERRORS_WHILE_COMPUTING:"errors_while_computing_flags",FLAG_MISSING:"flag_missing",QUOTA_LIMITED:"quota_limited",UNKNOWN_ERROR:"unknown_error"};var Rot=class e{constructor(t){this._host=t.host,this._distinctId=t.distinctId,this._groups=t.groups,this._disableGeoip=t.disableGeoip,this._flags=t.flags,this._requestId=t.requestId,this._evaluatedAt=t.evaluatedAt,this._flagDefinitionsLoadedAt=t.flagDefinitionsLoadedAt,this._errorsWhileComputing=t.errorsWhileComputing??!1,this._quotaLimited=t.quotaLimited??!1,this._accessed=t.accessed??new Set,this._isSlice=t.isSlice??!1}isEnabled(t){let r=this._flags[t];return this._recordAccess(t),r?.enabled??!1}getFlag(t){let r=this._flags[t];if(this._recordAccess(t),!!r)return r.enabled?r.variant??!0:!1}getFlagPayload(t){return this._flags[t]?.payload}onlyAccessed(){let t={};for(let r of this._accessed){let n=this._flags[r];n&&(t[r]=n)}return this._cloneWith(t)}only(t){let r={},n=[];for(let i of t){let o=this._flags[i];o?r[i]=o:n.push(i)}return n.length>0&&this._host.logWarning(`FeatureFlagEvaluations.only() was called with flag keys that are not in the evaluation set and will be dropped: ${n.join(", ")}`),this._cloneWith(r)}get keys(){return Object.keys(this._flags)}_getEventProperties(){let t={},r=[];for(let[n,i]of Object.entries(this._flags)){let o=i.enabled===!1?!1:i.variant??!0;t[`$feature/${n}`]=o,i.enabled&&r.push(n)}return r.length>0&&(r.sort(),t.$active_feature_flags=r),t}_cloneWith(t){return new e({host:this._host,distinctId:this._distinctId,groups:this._groups,disableGeoip:this._disableGeoip,flags:t,requestId:this._requestId,evaluatedAt:this._evaluatedAt,flagDefinitionsLoadedAt:this._flagDefinitionsLoadedAt,errorsWhileComputing:this._errorsWhileComputing,quotaLimited:this._quotaLimited,accessed:new Set(this._accessed),isSlice:!0})}_recordAccess(t){if(this._accessed.add(t),this._distinctId===""||this._isSlice&&!(t in this._flags))return;let r=this._flags[t],n=r===void 0?void 0:r.enabled===!1?!1:r.variant??!0,i={$feature_flag:t,$feature_flag_response:n,$feature_flag_id:r?.id,$feature_flag_version:r?.version,$feature_flag_reason:r?.reason,locally_evaluated:r?.locallyEvaluated??!1,[`$feature/${t}`]:n,$feature_flag_request_id:this._requestId,$feature_flag_evaluated_at:r?.locallyEvaluated?Date.now():this._evaluatedAt};r?.locallyEvaluated&&this._flagDefinitionsLoadedAt!==void 0&&(i.$feature_flag_definitions_loaded_at=this._flagDefinitionsLoadedAt);let o=[];this._errorsWhileComputing&&o.push(nde.ERRORS_WHILE_COMPUTING),this._quotaLimited&&o.push(nde.QUOTA_LIMITED),r===void 0&&o.push(nde.FLAG_MISSING),o.length>0&&(i.$feature_flag_error=o.join(",")),this._host.captureFlagCalledEventIfNeeded({distinctId:this._distinctId,key:t,response:n,groups:this._groups,disableGeoip:this._disableGeoip,properties:i})}};async function Rzu(e){let t=globalThis.crypto?.subtle;if(!t)throw new Error("SubtleCrypto API not available");let r=await t.digest("SHA-1",new TextEncoder().encode(e));return Array.from(new Uint8Array(r)).map(i=>i.toString(16).padStart(2,"0")).join("")}var O1m=6e4,B1m=1152921504606847e3,P1m=["is_not","is_set"],kot=class e extends Error{constructor(t){super(),Error.captureStackTrace(this,this.constructor),this.name="ClientError",this.message=t,Object.setPrototypeOf(this,e.prototype)}},_d=class e extends Error{constructor(t){super(t),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor),Object.setPrototypeOf(this,e.prototype)}},Yee=class e extends Error{constructor(t){super(t),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor),Object.setPrototypeOf(this,e.prototype)}},Z7r=class{constructor({pollingInterval:t,personalApiKey:r,projectApiKey:n,timeout:i,host:o,customHeaders:s,...a}){this.debugMode=!1,this.shouldBeginExponentialBackoff=!1,this.backOffCount=0,this.pollingInterval=t,this.personalApiKey=r,this.featureFlags=[],this.featureFlagsByKey={},this.groupTypeMapping={},this.cohorts={},this.loadedSuccessfullyOnce=!1,this.timeout=i,this.projectApiKey=n,this.host=o,this.poller=void 0,this.fetch=a.fetch||fetch,this.onError=a.onError,this.customHeaders=s,this.onLoad=a.onLoad,this.cacheProvider=a.cacheProvider,this.strictLocalEvaluation=a.strictLocalEvaluation??!1,this.loadFeatureFlags()}debug(t=!0){this.debugMode=t}logMsgIfDebug(t){this.debugMode&&t()}createEvaluationContext(t,r={},n={},i={},o={}){return{distinctId:t,groups:r,personProperties:n,groupProperties:i,evaluationCache:o}}async getFeatureFlag(t,r,n={},i={},o={}){await this.loadFeatureFlags();let s,a;if(!this.loadedSuccessfullyOnce)return s;if(a=this.featureFlagsByKey[t],a!==void 0){let c=this.createEvaluationContext(r,n,i,o);try{s=(await this.computeFlagAndPayloadLocally(a,c)).value,this.logMsgIfDebug(()=>console.debug(`Successfully computed flag locally: ${t} -> ${s}`))}catch(u){u instanceof Yee||u instanceof _d?this.logMsgIfDebug(()=>console.debug(`${u.name} when computing flag locally: ${t}: ${u.message}`)):u instanceof Error&&this.onError?.(new Error(`Error computing flag locally: ${t}: ${u}`))}}return s}async getAllFlagsAndPayloads(t,r){await this.loadFeatureFlags();let n={},i={},o=this.featureFlags.length==0,s=r?r.map(c=>this.featureFlagsByKey[c]).filter(Boolean):this.featureFlags,a={...t,evaluationCache:t.evaluationCache??{}};return await Promise.all(s.map(async c=>{try{let{value:u,payload:l}=await this.computeFlagAndPayloadLocally(c,a);n[c.key]=u,l&&(i[c.key]=l)}catch(u){u instanceof Yee||u instanceof _d?this.logMsgIfDebug(()=>console.debug(`${u.name} when computing flag locally: ${c.key}: ${u.message}`)):u instanceof Error&&this.onError?.(new Error(`Error computing flag locally: ${c.key}: ${u}`)),o=!0}})),{response:n,payloads:i,fallbackToFlags:o}}async computeFlagAndPayloadLocally(t,r,n={}){let{matchValue:i,skipLoadCheck:o=!1}=n;if(o||await this.loadFeatureFlags(),!this.loadedSuccessfullyOnce)return{value:!1,payload:null};let s;s=i!==void 0?i:await this.computeFlagValueLocally(t,r);let a=this.getFeatureFlagPayload(t.key,s);return{value:s,payload:a}}async computeFlagValueLocally(t,r){let{distinctId:n,groups:i,personProperties:o,groupProperties:s}=r;if(!t.active)return!1;if(t.ensure_experience_continuity)throw new _d("Flag has experience continuity enabled");let c=(t.filters||{}).aggregation_group_type_index;if(c!=null){let u=this.groupTypeMapping[String(c)];if(!u)throw this.logMsgIfDebug(()=>console.warn(`[FEATURE FLAGS] Unknown group type index ${c} for feature flag ${t.key}`)),new _d("Flag has unknown group type index");if(!(u in i))return this.logMsgIfDebug(()=>console.warn(`[FEATURE FLAGS] Can't compute group feature flag: ${t.key} without group names passed in`)),!1;t.bucketing_identifier==="device_id"&&(o?.$device_id===void 0||o?.$device_id===null||o?.$device_id==="")&&this.logMsgIfDebug(()=>console.warn(`[FEATURE FLAGS] Ignoring bucketing_identifier for group flag: ${t.key}`));let l=s[u];return await this.matchFeatureFlagProperties(t,i[u],l,r)}{let u=this.getBucketingValueForFlag(t,n,o);if(u===void 0)throw this.logMsgIfDebug(()=>console.warn(`[FEATURE FLAGS] Can't compute feature flag: ${t.key} without $device_id, falling back to server evaluation`)),new _d(`Can't compute feature flag: ${t.key} without $device_id`);return await this.matchFeatureFlagProperties(t,u,o,r)}}getBucketingValueForFlag(t,r,n){if(t.filters?.aggregation_group_type_index!=null)return r;if(t.bucketing_identifier==="device_id"){let i=n?.$device_id;return i==null||i===""?void 0:i}return r}getFeatureFlagPayload(t,r){let n=null;if(r!==!1&&r!=null&&(typeof r=="boolean"?n=this.featureFlagsByKey?.[t]?.filters?.payloads?.[r.toString()]||null:typeof r=="string"&&(n=this.featureFlagsByKey?.[t]?.filters?.payloads?.[r]||null),n!=null)){if(typeof n=="object")return n;if(typeof n=="string")try{return JSON.parse(n)}catch{}return n}return null}async evaluateFlagDependency(t,r,n){let{evaluationCache:i}=n,o=t.key;if(!this.featureFlagsByKey)throw new _d("Feature flags not available for dependency evaluation");if(!("dependency_chain"in t))throw new _d(`Flag dependency property for '${o}' is missing required 'dependency_chain' field`);let s=t.dependency_chain;if(!Array.isArray(s))throw new _d(`Flag dependency property for '${o}' has an invalid 'dependency_chain' (expected array, got ${typeof s})`);if(s.length===0)throw new _d(`Circular dependency detected for flag '${o}' (empty dependency chain)`);for(let c of s){if(!(c in i)){let l=this.featureFlagsByKey[c];if(l)if(l.active)try{let p=await this.computeFlagValueLocally(l,n);i[c]=p}catch(p){throw new _d(`Error evaluating flag dependency '${c}' for flag '${o}': ${p}`)}else i[c]=!1;else throw new _d(`Missing flag dependency '${c}' for flag '${o}'`)}if(i[c]==null)throw new _d(`Dependency '${c}' could not be evaluated`)}let a=i[o];return this.flagEvaluatesToExpectedValue(t.value,a)}flagEvaluatesToExpectedValue(t,r){return typeof t=="boolean"?t===r||typeof r=="string"&&r!==""&&t===!0:typeof t=="string"?r===t:!1}async matchFeatureFlagProperties(t,r,n,i){let o=t.filters||{},s=o.groups||[],a=o.aggregation_group_type_index,{groups:c,groupProperties:u}=i,l=!1,p;for(let d of s)try{let f=d.aggregation_group_type_index!==void 0?d.aggregation_group_type_index:a,m=n,g=r;if(f!==a&&f!=null){let A=this.groupTypeMapping[String(f)];if(!A||!(A in c)){this.logMsgIfDebug(()=>console.debug(`[FEATURE FLAGS] Skipping group condition for flag '${t.key}': group type index ${f} not available`));continue}if(!(A in u)){l=!0;continue}m=u[A],g=c[A]}if(await this.isConditionMatch(t,g,d,m,i)){let A=d.variant,y=o.multivariate?.variants||[];p=A&&y.some(E=>E.key===A)?A:await this.getMatchingVariant(t,g)||!0;break}}catch(f){if(f instanceof Yee)throw f;if(f instanceof _d)l=!0;else throw f}if(p!==void 0)return p;if(l)throw new _d("Can't determine if feature flag is enabled or not with given properties");return!1}async isConditionMatch(t,r,n,i,o){let s=n.rollout_percentage,a=c=>{this.logMsgIfDebug(()=>console.warn(c))};if((n.properties||[]).length>0){for(let c of n.properties){let u=c.type,l=!1;if(l=u==="cohort"?await Qzu(c,i,this.cohorts,this.debugMode,p=>this.evaluateFlagDependency(p,i,o)):u==="flag"?await this.evaluateFlagDependency(c,i,o):jzu(c,i,a),!l)return!1}if(s==null)return!0}return!(s!=null&&await kzu(t.key,r)>s/100)}async getMatchingVariant(t,r){let n=await kzu(t.key,r,"variant"),i=this.variantLookupTable(t).find(o=>n>=o.valueMin&&n<o.valueMax);if(i)return i.key}variantLookupTable(t){let r=[],n=0,i=0;return((t.filters||{}).multivariate?.variants||[]).forEach(a=>{i=n+a.rollout_percentage/100,r.push({valueMin:n,valueMax:i,key:a.key}),n=i}),r}updateFlagState(t){this.featureFlags=t.flags,this.featureFlagsByKey=t.flags.reduce((r,n)=>(r[n.key]=n,r),{}),this.groupTypeMapping=t.groupTypeMapping,this.cohorts=t.cohorts,this.loadedSuccessfullyOnce=!0}warnAboutExperienceContinuityFlags(t){if(this.strictLocalEvaluation)return;let r=t.filter(n=>n.ensure_experience_continuity);r.length>0&&console.warn(`[PostHog] You are using local evaluation but ${r.length} flag(s) have experience continuity enabled: ${r.map(n=>n.key).join(", ")}. Experience continuity is incompatible with local evaluation and will cause a server request on every flag evaluation, negating local evaluation cost savings. To avoid server requests and unexpected costs, either disable experience continuity on these flags in PostHog, use strictLocalEvaluation: true in client init, or pass onlyEvaluateLocally: true per flag call (flags that cannot be evaluated locally will return undefined).`)}async loadFromCache(t){if(!this.cacheProvider)return!1;try{let r=await this.cacheProvider.getFlagDefinitions();return r?(this.updateFlagState(r),this.logMsgIfDebug(()=>console.debug(`[FEATURE FLAGS] ${t} (${r.flags.length} flags)`)),this.onLoad?.(this.featureFlags.length),this.warnAboutExperienceContinuityFlags(r.flags),!0):!1}catch(r){return this.onError?.(new Error(`Failed to load from cache: ${r}`)),!1}}async loadFeatureFlags(t=!1){if(!(this.loadedSuccessfullyOnce&&!t))return!t&&this.nextFetchAllowedAt&&Date.now()<this.nextFetchAllowedAt?void this.logMsgIfDebug(()=>console.debug("[FEATURE FLAGS] Skipping fetch, in backoff period")):(this.loadingPromise||(this.loadingPromise=this._loadFeatureFlags().catch(r=>this.logMsgIfDebug(()=>console.debug(`[FEATURE FLAGS] Failed to load feature flags: ${r}`))).finally(()=>{this.loadingPromise=void 0})),this.loadingPromise)}isLocalEvaluationReady(){return(this.loadedSuccessfullyOnce??!1)&&(this.featureFlags?.length??0)>0}getFlagDefinitionsLoadedAt(){return this.flagDefinitionsLoadedAt}getPollingInterval(){return this.shouldBeginExponentialBackoff?Math.min(O1m,this.pollingInterval*2**this.backOffCount):this.pollingInterval}beginBackoff(){this.shouldBeginExponentialBackoff=!0,this.backOffCount+=1,this.nextFetchAllowedAt=Date.now()+this.getPollingInterval()}clearBackoff(){this.shouldBeginExponentialBackoff=!1,this.backOffCount=0,this.nextFetchAllowedAt=void 0}async _loadFeatureFlags(){this.poller&&(clearTimeout(this.poller),this.poller=void 0),this.poller=setTimeout(()=>this.loadFeatureFlags(!0),this.getPollingInterval());try{let t=!0;if(this.cacheProvider)try{t=await this.cacheProvider.shouldFetchFlagDefinitions()}catch(n){this.onError?.(new Error(`Error in shouldFetchFlagDefinitions: ${n}`))}if(!t&&(await this.loadFromCache("Loaded flags from cache (skipped fetch)")||this.loadedSuccessfullyOnce))return;let r=await this._requestFeatureFlagDefinitions();if(!r)return;switch(r.status){case 304:this.logMsgIfDebug(()=>console.debug("[FEATURE FLAGS] Flags not modified (304), using cached data")),this.flagsEtag=r.headers?.get("ETag")??this.flagsEtag,this.loadedSuccessfullyOnce=!0,this.clearBackoff();return;case 401:throw this.beginBackoff(),new kot(`Your project key or personal API key is invalid. Setting next polling interval to ${this.getPollingInterval()}ms. More information: https://posthog.com/docs/api#rate-limiting`);case 402:console.warn("[FEATURE FLAGS] Feature flags quota limit exceeded - unsetting all local flags. Learn more about billing limits at https://posthog.com/docs/billing/limits-alerts"),this.featureFlags=[],this.featureFlagsByKey={},this.groupTypeMapping={},this.cohorts={};return;case 403:throw this.beginBackoff(),new kot(`Your personal API key does not have permission to fetch feature flag definitions for local evaluation. Setting next polling interval to ${this.getPollingInterval()}ms. Are you sure you're using the correct personal and Project API key pair? More information: https://posthog.com/docs/api/overview`);case 429:throw this.beginBackoff(),new kot(`You are being rate limited. Setting next polling interval to ${this.getPollingInterval()}ms. More information: https://posthog.com/docs/api#rate-limiting`);case 200:{let n=await r.json()??{};if(!("flags"in n))return void this.onError?.(new Error(`Invalid response when getting feature flags: ${JSON.stringify(n)}`));this.flagsEtag=r.headers?.get("ETag")??void 0;let i={flags:n.flags??[],groupTypeMapping:n.group_type_mapping||{},cohorts:n.cohorts||{}};if(this.updateFlagState(i),this.flagDefinitionsLoadedAt=Date.now(),this.clearBackoff(),this.cacheProvider&&t)try{await this.cacheProvider.onFlagDefinitionsReceived(i)}catch(o){this.onError?.(new Error(`Failed to store in cache: ${o}`))}this.onLoad?.(this.featureFlags.length),this.warnAboutExperienceContinuityFlags(i.flags);break}default:return}}catch(t){t instanceof kot&&this.onError?.(t)}}getPersonalApiKeyRequestOptions(t="GET",r){let n={...this.customHeaders,"Content-Type":"application/json",Authorization:`Bearer ${this.personalApiKey}`};return r&&(n["If-None-Match"]=r),{method:t,headers:n}}_requestFeatureFlagDefinitions(){let t=`${this.host}/flags/definitions?token=${this.projectApiKey}&send_cohorts`,r=this.getPersonalApiKeyRequestOptions("GET",this.flagsEtag),n=null;if(this.timeout&&typeof this.timeout=="number"){let i=new AbortController;n=Kee(()=>{i.abort()},this.timeout),r.signal=i.signal}try{let i=this.fetch;return i(t,r)}finally{clearTimeout(n)}}async stopPoller(t=3e4){if(clearTimeout(this.poller),this.cacheProvider)try{let r=this.cacheProvider.shutdown();r instanceof Promise&&await Promise.race([r,new Promise((n,i)=>setTimeout(()=>i(new Error(`Cache shutdown timeout after ${t}ms`)),t))])}catch(r){this.onError?.(new Error(`Error during cache shutdown: ${r}`))}}};async function kzu(e,t,r=""){let n=await Rzu(`${e}.${t}${r}`);return parseInt(n.slice(0,15),16)/B1m}function jzu(e,t,r){let n=e.key,i=e.value,o=e.operator||"exact";if(n in t){if(o==="is_not_set")return!1}else{if(o==="is_not_set")return!0;throw new _d(`Property ${n} not found in propertyValues`)}let s=t[n];if(s==null&&!P1m.includes(o))return r&&r(`Property ${n} cannot have a value of null/undefined with the ${o} operator`),!1;function a(u,l){return Array.isArray(u)?u.map(p=>String(p).toLowerCase()).includes(String(l).toLowerCase()):String(u).toLowerCase()===String(l).toLowerCase()}function c(u,l,p){if(p==="gt")return u>l;if(p==="gte")return u>=l;if(p==="lt")return u<l;if(p==="lte")return u<=l;throw new Error(`Invalid operator: ${p}`)}switch(o){case"exact":return a(i,s);case"is_not":return!a(i,s);case"is_set":return n in t;case"icontains":return String(s).toLowerCase().includes(String(i).toLowerCase());case"not_icontains":return!String(s).toLowerCase().includes(String(i).toLowerCase());case"regex":return Fzu(String(i))&&String(s).match(String(i))!==null;case"not_regex":return Fzu(String(i))&&String(s).match(String(i))===null;case"gt":case"gte":case"lt":case"lte":{let u=typeof i=="number"?i:parseFloat(String(i)),l;return l=typeof s=="number"?s:s!=null?parseFloat(String(s)):NaN,Number.isFinite(u)&&Number.isFinite(l)?c(l,u,o):c(String(s),String(i),o)}case"is_date_after":case"is_date_before":{if(typeof i=="boolean")throw new _d("Date operations cannot be performed on boolean values");let u=N1m(String(i));if(u==null&&(u=Nzu(i)),u==null)throw new _d(`Invalid date: ${i}`);let l=Nzu(s);return["is_date_before"].includes(o)?l<u:l>u}case"semver_eq":return t5(WB(String(s)),WB(String(i)))===0;case"semver_neq":return t5(WB(String(s)),WB(String(i)))!==0;case"semver_gt":return t5(WB(String(s)),WB(String(i)))>0;case"semver_gte":return t5(WB(String(s)),WB(String(i)))>=0;case"semver_lt":return t5(WB(String(s)),WB(String(i)))<0;case"semver_lte":return t5(WB(String(s)),WB(String(i)))<=0;case"semver_tilde":{let u=WB(String(s)),{lower:l,upper:p}=R1m(String(i));return t5(u,l)>=0&&t5(u,p)<0}case"semver_caret":{let u=WB(String(s)),{lower:l,upper:p}=k1m(String(i));return t5(u,l)>=0&&t5(u,p)<0}case"semver_wildcard":{let u=WB(String(s)),{lower:l,upper:p}=F1m(String(i));return t5(u,l)>=0&&t5(u,p)<0}default:throw new _d(`Unknown operator: ${o}`)}}function D1m(e,t){if(!(e in t))throw new Yee(`cohort ${e} not found in local cohorts - likely a static cohort that requires server evaluation`)}async function Qzu(e,t,r,n=!1,i){let o=String(e.value);D1m(o,r);let s=r[o];return zzu(s,t,r,n,i)}async function zzu(e,t,r,n=!1,i){if(!e)return!0;let o=e.type,s=e.values;if(!s||s.length===0)return!0;let a=!1;if("values"in s[0]){for(let c of s)try{let u=await zzu(c,t,r,n,i);if(o==="AND"){if(!u)return!1}else if(u)return!0}catch(u){if(u instanceof Yee)throw u;if(u instanceof _d)n&&console.debug(`Failed to compute property ${c} locally: ${u}`),a=!0;else throw u}if(a)throw new _d("Can't match cohort without a given cohort property value");return o==="AND"}for(let c of s)try{let u;if(c.type==="cohort")u=await Qzu(c,t,r,n,i);else if(c.type==="flag"){if(!i)throw new _d(`Flag dependency '${c.key||"unknown"}' cannot be evaluated without a flag dependency evaluator`);u=await i(c)}else u=jzu(c,t);let l=c.negation||!1;if(o==="AND"){if(!u&&!l||u&&l)return!1}else if(u&&!l||!u&&l)return!0}catch(u){if(u instanceof Yee)throw u;if(u instanceof _d)n&&console.debug(`Failed to compute property ${c} locally: ${u}`),a=!0;else throw u}if(a)throw new _d("can't match cohort without a given cohort property value");return o==="AND"}function Fzu(e){try{return new RegExp(e),!0}catch{return!1}}function Mzu(e,t){if(!/^\d+$/.test(e))throw new _d(`Invalid semver: ${t}`);if(e.length>1&&e[0]==="0")throw new _d(`Invalid semver: ${t}`);return parseInt(e,10)}function WB(e){let r=String(e).trim().replace(/^[vV]/,"").split("-")[0].split("+")[0];if(!r||r.startsWith("."))throw new _d(`Invalid semver: ${e}`);let n=r.split("."),i=c=>c===void 0||c===""?0:Mzu(c,e),o=i(n[0]),s=i(n[1]),a=i(n[2]);return[o,s,a]}function t5(e,t){for(let r=0;r<3;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0}function R1m(e){let t=WB(e),r=[t[0],t[1],t[2]],n=[t[0],t[1]+1,0];return{lower:r,upper:n}}function k1m(e){let t=WB(e),[r,n,i]=t,o=[r,n,i],s;return s=r>0?[r+1,0,0]:n>0?[0,n+1,0]:[0,0,i+1],{lower:o,upper:s}}function F1m(e){let r=String(e).trim().replace(/^[vV]/,"").replace(/\.\*$/,"").replace(/\*$/,"");if(!r)throw new _d(`Invalid wildcard semver: ${e}`);let n=r.split("."),i=c=>{try{return Mzu(c,e)}catch{throw new _d(`Invalid wildcard semver: ${e}`)}},o=i(n[0]),s,a;if(n.length===1)s=[o,0,0],a=[o+1,0,0];else{let c=i(n[1]);s=[o,c,0],a=[o,c+1,0]}return{lower:s,upper:a}}function Nzu(e){if(e instanceof Date)return e;if(typeof e=="string"||typeof e=="number"){let t=new Date(e);if(!isNaN(t.valueOf()))return t;throw new _d(`${e} is in an invalid date format`)}throw new _d(`The date provided ${e} must be a string, number, or date object`)}function N1m(e){let t=/^-?(?<number>[0-9]+)(?<interval>[a-z])$/,r=e.match(t),n=new Date(new Date().toISOString());if(!r)return null;{if(!r.groups)return null;let i=parseInt(r.groups.number);if(i>=1e4)return null;let o=r.groups.interval;if(o=="h")n.setUTCHours(n.getUTCHours()-i);else if(o=="d")n.setUTCDate(n.getUTCDate()-i);else if(o=="w")n.setUTCDate(n.getUTCDate()-7*i);else if(o=="m")n.setUTCMonth(n.getUTCMonth()-i);else{if(o!="y")return null;n.setUTCFullYear(n.getUTCFullYear()-i)}return n}}var $7r=class{getProperty(t){return this._memoryStorage[t]}setProperty(t,r){this._memoryStorage[t]=r!==null?r:void 0}constructor(){this._memoryStorage={}}};var j1m=100,Lzu=3e4,Q1m=5e4,z1m=50,M1m=500,L1m="https://us.i.posthog.com",Vzu=new Set;function eWr(e,t){Vzu.has(e)||(Vzu.add(e),console.warn(`[PostHog] ${t}`))}function V1m(e){return typeof e=="string"?e.trim():""}function U1m(e){return(typeof e=="string"?e.trim():"")||void 0}function _1m(e){return(typeof e=="string"?e.trim():"")||L1m}function G1m(e){if(!e)return{};let t={};for(let[n,i]of Object.entries(e))t[`$feature/${n}`]=i;let r=Object.keys(e).filter(n=>e[n]!==!1).sort();return r.length>0&&(t.$active_feature_flags=r),t}var tWr=class extends v_t{constructor(t,r={}){let n=V1m(t),i={...r,host:_1m(r.host),personalApiKey:U1m(r.personalApiKey)};if(super(n,i),this._memoryStorage=new $7r,this.options=i,this.context=this.initializeContext(),this.options.featureFlagsPollingInterval=typeof i.featureFlagsPollingInterval=="number"?Math.max(i.featureFlagsPollingInterval,j1m):Lzu,typeof i.waitUntilDebounceMs=="number"&&(this.options.waitUntilDebounceMs=Math.max(i.waitUntilDebounceMs,0)),typeof i.waitUntilMaxWaitMs=="number"&&(this.options.waitUntilMaxWaitMs=Math.max(i.waitUntilMaxWaitMs,0)),i.personalApiKey){if(i.personalApiKey.includes("phc_"))throw new Error('Your Personal API key is invalid. These keys are prefixed with "phx_" and can be created in PostHog project settings.');i.enableLocalEvaluation!==!1&&(this.featureFlagsPoller=new Z7r({pollingInterval:this.options.featureFlagsPollingInterval,personalApiKey:i.personalApiKey,projectApiKey:n,timeout:i.requestTimeout??1e4,host:this.host,fetch:i.fetch,onError:s=>{this._events.emit("error",s)},onLoad:s=>{this._events.emit("localEvaluationFlagsLoaded",s)},customHeaders:this.getCustomHeaders(),cacheProvider:i.flagDefinitionCacheProvider,strictLocalEvaluation:i.strictLocalEvaluation}))}this.errorTracking=new RH(this,i,this._logger),this.distinctIdHasSentFlagCalls={},this.maxCacheSize=i.maxCacheSize||Q1m}enqueue(t,r,n){super.enqueue(t,r,n),this.scheduleDebouncedFlush()}async flush(){let t=super.flush(),r=this.options.waitUntil;if(r&&!this._waitUntilCycle)try{r(t.catch(()=>{}))}catch{}return t}scheduleDebouncedFlush(){let t=this.options.waitUntil;if(!t||this.disabled||this.optedOut)return;if(!this._waitUntilCycle){let s,a=new Promise(c=>{s=c});try{t(a)}catch{return}this._waitUntilCycle={resolve:s,startedAt:Date.now(),timer:void 0}}let r=Date.now()-this._waitUntilCycle.startedAt,n=this.options.waitUntilMaxWaitMs??M1m,i=r>=n;if(this._waitUntilCycle.timer!==void 0&&clearTimeout(this._waitUntilCycle.timer),i)return void this.resolveWaitUntilFlush();let o=this.options.waitUntilDebounceMs??z1m;this._waitUntilCycle.timer=Kee(()=>{this.resolveWaitUntilFlush()},o)}_consumeWaitUntilCycle(){let t=this._waitUntilCycle;return t&&(clearTimeout(t.timer),this._waitUntilCycle=void 0),t?.resolve}async resolveWaitUntilFlush(){let t=this._consumeWaitUntilCycle();try{await super.flush()}catch{}finally{t?.()}}getPersistedProperty(t){return this._memoryStorage.getProperty(t)}setPersistedProperty(t,r){return this._memoryStorage.setProperty(t,r)}fetch(t,r){return this.options.fetch?this.options.fetch(t,r):fetch(t,r)}getLibraryVersion(){return Dzu}getCustomUserAgent(){return`${this.getLibraryId()}/${this.getLibraryVersion()}`}enable(){return super.optIn()}disable(){return super.optOut()}debug(t=!0){super.debug(t),this.featureFlagsPoller?.debug(t)}capture(t){typeof t=="string"&&this._logger.warn("Called capture() with a string as the first argument when an object was expected."),t.event==="$exception"&&!t._originatedFromCaptureException&&this._logger.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.addPendingPromise(this.prepareEventMessage(t).then(({distinctId:r,event:n,properties:i,options:o})=>super.captureStateless(r,n,i,{timestamp:o.timestamp,disableGeoip:o.disableGeoip,uuid:o.uuid})).catch(r=>{r&&console.error(r)}))}async captureImmediate(t){return typeof t=="string"&&this._logger.warn("Called captureImmediate() with a string as the first argument when an object was expected."),t.event==="$exception"&&!t._originatedFromCaptureException&&this._logger.warn("Capturing a `$exception` event via `posthog.captureImmediate('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureExceptionImmediate(error)` instead, which attaches this metadata by default."),this.addPendingPromise(this.prepareEventMessage(t).then(({distinctId:r,event:n,properties:i,options:o})=>super.captureStatelessImmediate(r,n,i,{timestamp:o.timestamp,disableGeoip:o.disableGeoip,uuid:o.uuid})).catch(r=>{r&&console.error(r)}))}identify({distinctId:t,properties:r={},disableGeoip:n}){let{$set:i,$set_once:o,$anon_distinct_id:s,...a}=r,l={$set:i||a,$set_once:o||{},$anon_distinct_id:s??void 0};super.identifyStateless(t,l,{disableGeoip:n})}async identifyImmediate({distinctId:t,properties:r={},disableGeoip:n}){let{$set:i,$set_once:o,$anon_distinct_id:s,...a}=r,l={$set:i||a,$set_once:o||{},$anon_distinct_id:s??void 0};await super.identifyStatelessImmediate(t,l,{disableGeoip:n})}alias(t){super.aliasStateless(t.alias,t.distinctId,void 0,{disableGeoip:t.disableGeoip})}async aliasImmediate(t){await super.aliasStatelessImmediate(t.alias,t.distinctId,void 0,{disableGeoip:t.disableGeoip})}isLocalEvaluationReady(){return this.featureFlagsPoller?.isLocalEvaluationReady()??!1}async waitForLocalEvaluationReady(t=Lzu){return this.isLocalEvaluationReady()?!0:this.featureFlagsPoller===void 0?!1:new Promise(r=>{let n=setTimeout(()=>{i(),r(!1)},t),i=this._events.on("localEvaluationFlagsLoaded",o=>{clearTimeout(n),i(),r(o>0)})})}_resolveDistinctId(t,r){return typeof t=="string"?{distinctId:t,options:r}:{distinctId:this.context?.get()?.distinctId,options:t}}async _getFeatureFlagResult(t,r,n={},i){let o=n.sendFeatureFlagEvents??!0;if(this._flagOverrides!==void 0&&t in this._flagOverrides){let T=this._flagOverrides[t];if(T===void 0)return;let P=this._payloadOverrides?.[t];return{key:t,enabled:T!==!1,variant:typeof T=="string"?T:void 0,payload:P}}let{groups:s,disableGeoip:a}=n,{onlyEvaluateLocally:c,personProperties:u,groupProperties:l}=n,p=this.addLocalPersonAndGroupProperties(r,s,u,l);u=p.allPersonProperties,l=p.allGroupProperties;let d=this.createFeatureFlagEvaluationContext(r,s,u,l);c==null&&(c=this.options.strictLocalEvaluation??!1);let f,m=!1,g,A,y,E,x,I;if(this.featureFlagsPoller!==void 0){await this.featureFlagsPoller?.loadFeatureFlags();let T=this.featureFlagsPoller?.featureFlagsByKey[t];if(T)try{let P=await this.featureFlagsPoller?.computeFlagAndPayloadLocally(T,d,{matchValue:i});if(P){m=!0;let D=P.value;E=T.id,I="Evaluated locally",f={key:t,enabled:D!==!1,variant:typeof D=="string"?D:void 0,payload:P.payload??void 0}}}catch(P){if(P instanceof Yee||P instanceof _d)this._logger?.info(`${P.name} when computing flag locally: ${t}: ${P.message}`);else throw P}}if(!m&&!c){let T=await super.getFeatureFlagDetailsStateless(d.distinctId,d.groups,d.personProperties,d.groupProperties,a,[t]);if(T===void 0)y=nde.UNKNOWN_ERROR;else{g=T.requestId,A=T.evaluatedAt;let P=[];T.errorsWhileComputingFlags&&P.push(nde.ERRORS_WHILE_COMPUTING),T.quotaLimited?.includes("feature_flags")&&P.push(nde.QUOTA_LIMITED);let D=T.flags[t];if(D===void 0)P.push(nde.FLAG_MISSING);else{E=D.metadata?.id,x=D.metadata?.version,I=D.reason?.description??D.reason?.code;let O;if(D.metadata?.payload!==void 0)try{O=JSON.parse(D.metadata.payload)}catch{O=D.metadata.payload}f={key:t,enabled:D.enabled,variant:D.variant,payload:O}}P.length>0&&(y=P.join(","))}}if(o){let T=f===void 0?void 0:f.enabled===!1?!1:f.variant??!0,P={$feature_flag:t,$feature_flag_response:T,$feature_flag_id:E,$feature_flag_version:x,$feature_flag_reason:I,locally_evaluated:m,[`$feature/${t}`]:T,$feature_flag_request_id:g,$feature_flag_evaluated_at:m?Date.now():A};if(m&&this.featureFlagsPoller){let D=this.featureFlagsPoller.getFlagDefinitionsLoadedAt();D!==void 0&&(P.$feature_flag_definitions_loaded_at=D)}y&&(P.$feature_flag_error=y),this._captureFlagCalledEventIfNeeded({distinctId:r,key:t,response:T,groups:s,disableGeoip:a,properties:P})}return f!==void 0&&this._payloadOverrides!==void 0&&t in this._payloadOverrides&&(f={...f,payload:this._payloadOverrides[t]}),f}async getFeatureFlag(t,r,n){eWr("getFeatureFlag","`getFeatureFlag` is deprecated and will be removed in a future major version. Use `posthog.evaluateFlags(distinctId, ...)` and call `flags.getFlag(key)` instead \u2014 this consolidates flag evaluation into a single `/flags` request per incoming request.");let i=await this._getFeatureFlagResult(t,r,{...n,sendFeatureFlagEvents:n?.sendFeatureFlagEvents??this.options.sendFeatureFlagEvent??!0});if(i!==void 0)return i.enabled===!1?!1:i.variant??!0}async getFeatureFlagPayload(t,r,n,i){if(eWr("getFeatureFlagPayload","`getFeatureFlagPayload` is deprecated and will be removed in a future major version. Use `posthog.evaluateFlags(distinctId, ...)` and call `flags.getFlagPayload(key)` instead \u2014 this consolidates flag evaluation into a single `/flags` request per incoming request."),this._payloadOverrides!==void 0&&t in this._payloadOverrides)return this._payloadOverrides[t];let o=await this._getFeatureFlagResult(t,r,{...i,sendFeatureFlagEvents:!1},n);if(o!==void 0)return o.payload??null}async getFeatureFlagResult(t,r,n){let{distinctId:i,options:o}=this._resolveDistinctId(r,n);return i?this._getFeatureFlagResult(t,i,{...o,sendFeatureFlagEvents:o?.sendFeatureFlagEvents??this.options.sendFeatureFlagEvent??!0}):void this._logger.warn("[PostHog] distinctId is required \u2014 pass it explicitly or use withContext()")}async getRemoteConfigPayload(t){if(!this.options.personalApiKey)throw new Error("Personal API key is required for remote config payload decryption");let r=await this._requestRemoteConfigPayload(t);if(!r)return;let n=await r.json();if(typeof n=="string")try{return JSON.parse(n)}catch{}return n}async isFeatureEnabled(t,r,n){eWr("isFeatureEnabled","`isFeatureEnabled` is deprecated and will be removed in a future major version. Use `posthog.evaluateFlags(distinctId, ...)` and call `flags.isEnabled(key)` instead \u2014 this consolidates flag evaluation into a single `/flags` request per incoming request.");let i=await this._getFeatureFlagResult(t,r,{...n,sendFeatureFlagEvents:n?.sendFeatureFlagEvents??this.options.sendFeatureFlagEvent??!0});return i===void 0?void 0:i.enabled===!1?!1:!!(i.variant??!0)||!1}async getAllFlags(t,r){let{distinctId:n,options:i}=this._resolveDistinctId(t,r);return n?(await this.getAllFlagsAndPayloads(n,i)).featureFlags||{}:(this._logger.warn("[PostHog] distinctId is required to get feature flags \u2014 pass it explicitly or use withContext()"),{})}async getAllFlagsAndPayloads(t,r){let{distinctId:n,options:i}=this._resolveDistinctId(t,r);if(!n)return this._logger.warn("[PostHog] distinctId is required to get feature flags and payloads \u2014 pass it explicitly or use withContext()"),{featureFlags:{},featureFlagPayloads:{}};let{groups:o,disableGeoip:s,flagKeys:a}=i||{},{onlyEvaluateLocally:c,personProperties:u,groupProperties:l}=i||{},p=this.addLocalPersonAndGroupProperties(n,o,u,l);u=p.allPersonProperties,l=p.allGroupProperties;let d=this.createFeatureFlagEvaluationContext(n,o,u,l);c==null&&(c=this.options.strictLocalEvaluation??!1);let f=await this.featureFlagsPoller?.getAllFlagsAndPayloads(d,a),m={},g={},A=!0;if(f&&(m=f.response,g=f.payloads,A=f.fallbackToFlags),A&&!c){let y=await super.getFeatureFlagsAndPayloadsStateless(d.distinctId,d.groups,d.personProperties,d.groupProperties,s,a);m={...m,...y.flags||{}},g={...g,...y.payloads||{}}}return this._flagOverrides!==void 0&&(m={...m,...this._flagOverrides}),this._payloadOverrides!==void 0&&(g={...g,...this._payloadOverrides}),{featureFlags:m,featureFlagPayloads:g}}async evaluateFlags(t,r){let{distinctId:n,options:i}=this._resolveDistinctId(t,r);if(!n)return this._logger.warn("[PostHog] distinctId is required to evaluate feature flags \u2014 pass it explicitly or use withContext()"),new Rot({host:this._getFeatureFlagEvaluationsHost(),distinctId:"",flags:{}});let{groups:o,disableGeoip:s,flagKeys:a}=i||{},{onlyEvaluateLocally:c,personProperties:u,groupProperties:l}=i||{},p=this.addLocalPersonAndGroupProperties(n,o,u,l);u=p.allPersonProperties,l=p.allGroupProperties;let d=this.createFeatureFlagEvaluationContext(n,o,u,l);c==null&&(c=this.options.strictLocalEvaluation??!1);let f={},m,g,A=!1,y=!1,E=await this.featureFlagsPoller?.getAllFlagsAndPayloads(d,a),x=new Set;if(E)for(let[C,T]of Object.entries(E.response)){let P=this.featureFlagsPoller?.featureFlagsByKey[C];f[C]={key:C,enabled:T!==!1,variant:typeof T=="string"?T:void 0,payload:E.payloads[C],id:P?.id,version:void 0,reason:"Evaluated locally",locallyEvaluated:!0},x.add(C)}if((E?E.fallbackToFlags:!0)&&!c){let C=await super.getFeatureFlagDetailsStateless(d.distinctId,d.groups,d.personProperties,d.groupProperties,s,a);if(C){m=C.requestId,g=C.evaluatedAt,A=!!C.errorsWhileComputingFlags,y=Array.isArray(C.quotaLimited)&&C.quotaLimited.includes("feature_flags");for(let[T,P]of Object.entries(C.flags)){if(x.has(T))continue;let D;if(P.metadata?.payload!==void 0)try{D=JSON.parse(P.metadata.payload)}catch{D=P.metadata.payload}f[T]={key:T,enabled:P.enabled,variant:P.variant,payload:D,id:P.metadata?.id,version:P.metadata?.version,reason:P.reason?.description??P.reason?.code,locallyEvaluated:!1}}}}if(this._flagOverrides!==void 0)for(let[C,T]of Object.entries(this._flagOverrides)){if(T===void 0){delete f[C];continue}let P=f[C];f[C]={key:C,enabled:T!==!1,variant:typeof T=="string"?T:void 0,payload:P?.payload,id:P?.id,version:P?.version,reason:P?.reason,locallyEvaluated:P?.locallyEvaluated??!1}}if(this._payloadOverrides!==void 0)for(let[C,T]of Object.entries(this._payloadOverrides)){let P=f[C];P&&(f[C]={...P,payload:T})}return new Rot({host:this._getFeatureFlagEvaluationsHost(),distinctId:n,groups:o,disableGeoip:s,flags:f,requestId:m,evaluatedAt:g,flagDefinitionsLoadedAt:this.featureFlagsPoller?.getFlagDefinitionsLoadedAt(),errorsWhileComputing:A,quotaLimited:y})}_captureFlagCalledEventIfNeeded(t){let{distinctId:r,key:n,response:i,groups:o,disableGeoip:s,properties:a}=t,c=`${n}_${i}`;r in this.distinctIdHasSentFlagCalls&&this.distinctIdHasSentFlagCalls[r].includes(c)||(Object.keys(this.distinctIdHasSentFlagCalls).length>=this.maxCacheSize&&(this.distinctIdHasSentFlagCalls={}),Array.isArray(this.distinctIdHasSentFlagCalls[r])?this.distinctIdHasSentFlagCalls[r].push(c):this.distinctIdHasSentFlagCalls[r]=[c],this.capture({distinctId:r,event:"$feature_flag_called",properties:a,groups:o,disableGeoip:s}))}_getFeatureFlagEvaluationsHost(){return this._featureFlagEvaluationsHost||(this._featureFlagEvaluationsHost={captureFlagCalledEventIfNeeded:t=>this._captureFlagCalledEventIfNeeded(t),logWarning:t=>{this.options.featureFlagsLogWarnings!==!1&&console.warn(`[PostHog] ${t}`)}}),this._featureFlagEvaluationsHost}groupIdentify({groupType:t,groupKey:r,properties:n,distinctId:i,disableGeoip:o}){super.groupIdentifyStateless(t,r,n,{disableGeoip:o},i)}async reloadFeatureFlags(){await this.featureFlagsPoller?.loadFeatureFlags(!0)}overrideFeatureFlags(t){let r=n=>Object.fromEntries(n.map(i=>[i,!0]));if(t===!1){this._flagOverrides=void 0,this._payloadOverrides=void 0;return}if(Array.isArray(t)){this._flagOverrides=r(t);return}if(this._isFeatureFlagOverrideOptions(t)){"flags"in t&&(t.flags===!1?this._flagOverrides=void 0:Array.isArray(t.flags)?this._flagOverrides=r(t.flags):t.flags!==void 0&&(this._flagOverrides={...t.flags})),"payloads"in t&&(t.payloads===!1?this._payloadOverrides=void 0:t.payloads!==void 0&&(this._payloadOverrides={...t.payloads}));return}this._flagOverrides={...t}}_isFeatureFlagOverrideOptions(t){if(typeof t!="object"||t===null||Array.isArray(t))return!1;let r=t;if("flags"in r){let n=r.flags;if(n===!1||Array.isArray(n)||typeof n=="object"&&n!==null)return!0}if("payloads"in r){let n=r.payloads;if(n===!1||typeof n=="object"&&n!==null)return!0}return!1}withContext(t,r,n){return this.context?this.context.run(t,r,n):r()}getContext(){return this.context?.get()}enterContext(t,r){this.context?.enter(t,r)}async _shutdown(t){let r=this._consumeWaitUntilCycle();await this.featureFlagsPoller?.stopPoller(t),this.errorTracking.shutdown();try{return await super._shutdown(t)}finally{r?.()}}async _requestRemoteConfigPayload(t){if(!this.options.personalApiKey)return;let r=`${this.host}/api/projects/@current/feature_flags/${t}/remote_config?token=${encodeURIComponent(this.apiKey)}`,n={method:"GET",headers:{...this.getCustomHeaders(),"Content-Type":"application/json",Authorization:`Bearer ${this.options.personalApiKey}`}},i=null;if(this.options.requestTimeout&&typeof this.options.requestTimeout=="number"){let o=new AbortController;i=Kee(()=>{o.abort()},this.options.requestTimeout),n.signal=o.signal}try{return await this.fetch(r,n)}catch(o){this._events.emit("error",o);return}finally{i&&clearTimeout(i)}}extractPropertiesFromEvent(t,r){if(!t)return{personProperties:{},groupProperties:{}};let n={},i={};for(let[o,s]of Object.entries(t))if(WQu(s)&&r&&o in r){let a={};for(let[c,u]of Object.entries(s))a[String(c)]=String(u);i[String(o)]=a}else n[String(o)]=String(s);return{personProperties:n,groupProperties:i}}async getFeatureFlagsForEvent(t,r,n,i){let o=i?.personProperties||{},s=i?.groupProperties||{},a=i?.flagKeys;if(i?.onlyEvaluateLocally??this.options.strictLocalEvaluation??!1)if((this.featureFlagsPoller?.featureFlags?.length||0)>0){let u={};for(let[l,p]of Object.entries(r||{}))u[l]=String(p);return await this.getAllFlags(t,{groups:u,personProperties:o,groupProperties:s,disableGeoip:n,onlyEvaluateLocally:!0,flagKeys:a})}else return{};if((this.featureFlagsPoller?.featureFlags?.length||0)>0){let u={};for(let[l,p]of Object.entries(r||{}))u[l]=String(p);return await this.getAllFlags(t,{groups:u,personProperties:o,groupProperties:s,disableGeoip:n,onlyEvaluateLocally:!0,flagKeys:a})}return(await super.getFeatureFlagsStateless(t,r,o,s,n)).flags}addLocalPersonAndGroupProperties(t,r,n,i){let o={distinct_id:t,...n||{}},s={};if(r)for(let a of Object.keys(r))s[a]={$group_key:r[a],...i?.[a]||{}};return{allPersonProperties:o,allGroupProperties:s}}createFeatureFlagEvaluationContext(t,r,n,i){return{distinctId:t,groups:r||{},personProperties:n||{},groupProperties:i||{},evaluationCache:{}}}captureException(t,r,n,i,o){if(!RH.isPreviouslyCapturedError(t)){let s=new Error("PostHog syntheticException");this.addPendingPromise(RH.buildEventMessage(t,{syntheticException:s},r,n).then(a=>this.capture({...a,uuid:i,flags:o})))}}async captureExceptionImmediate(t,r,n,i){if(!RH.isPreviouslyCapturedError(t)){let o=new Error("PostHog syntheticException");return this.addPendingPromise(RH.buildEventMessage(t,{syntheticException:o},r,n).then(s=>this.captureImmediate({...s,flags:i})))}}async prepareEventMessage(t){let{distinctId:r,event:n,properties:i,groups:o,flags:s,sendFeatureFlags:a,timestamp:c,disableGeoip:u,uuid:l}=t,p=this.context?.get(),d=r||p?.distinctId,f={...this.props,...p?.properties||{},...i||{}};d||(d=Hee(),f.$process_person_profile=!1),p?.sessionId&&!f.$session_id&&(f.$session_id=p.sessionId);let m=this._runBeforeSend({distinctId:d,event:n,properties:f,groups:o,flags:s,sendFeatureFlags:a,timestamp:c,disableGeoip:u,uuid:l});if(!m)return Promise.reject(null);let g=await Promise.resolve().then(async()=>{if(s)return a&&console.warn("[PostHog] Both `flags` and `sendFeatureFlags` were passed to capture(); using `flags` and ignoring `sendFeatureFlags`."),s._getEventProperties();if(a){eWr("sendFeatureFlags","`sendFeatureFlags` is deprecated and will be removed in a future major version. Pass a `flags` snapshot from `posthog.evaluateFlags(...)` instead \u2014 it avoids a second `/flags` request per capture and guarantees the event carries the exact flag values your code branched on.");let A=typeof a=="object"?a:void 0,y=await this.getFeatureFlagsForEvent(m.distinctId,o,u,A);return G1m(y)}return{}}).catch(()=>({})).then(A=>({...A,...m.properties||{},$groups:m.groups||o}));return m.event==="$pageview"&&this.options.__preview_capture_bot_pageviews&&typeof g.$raw_user_agent=="string"&&UQu(g.$raw_user_agent,this.options.custom_blocked_useragents||[])&&(m.event="$bot_pageview",g.$browser_type="bot"),{distinctId:m.distinctId,event:m.event,properties:g,options:{timestamp:m.timestamp,disableGeoip:m.disableGeoip,uuid:m.uuid}}}_runBeforeSend(t){let r=this.options.before_send;if(!r)return t;let n=Array.isArray(r)?r:[r],i=t;for(let o of n){if(i=o(i),!i)return this._logger.info(`Event '${t.event}' was rejected in beforeSend function`),null;if(!i.properties||Object.keys(i.properties).length===0){let s=`Event '${i.event}' has no properties after beforeSend function, this is likely an error.`;this._logger.warn(s)}}return i}};var Uzu=require("async_hooks"),rWr=class{constructor(){this.storage=new Uzu.AsyncLocalStorage}get(){return this.storage.getStore()}run(t,r,n){return this.storage.run(this.resolve(t,n),r)}enter(t,r){this.storage.enterWith(this.resolve(t,r))}resolve(t,r){if(r?.fresh===!0)return t;let n=this.get()||{};return{distinctId:t.distinctId??n.distinctId,sessionId:t.sessionId??n.sessionId,properties:{...n.properties||{},...t.properties||{}}}}};var _zu="posthog-node";function q1m(e,{organization:t,projectId:r,prefix:n,severityAllowList:i=["error"],sendExceptionsToPostHog:o=!0}={}){return s=>{if(!(i==="*"||i.includes(s.level)))return s;s.tags||(s.tags={});let c=s.tags[y6o.POSTHOG_ID_TAG];if(c===void 0)return s;let u=e.options.host??"https://us.i.posthog.com",l=new URL(`/project/${e.apiKey}/person/${c}`,u).toString();s.tags["PostHog Person URL"]=l;let p=s.exception?.values||[],d=p.map(m=>({...m,stacktrace:m.stacktrace?{...m.stacktrace,type:"raw",frames:(m.stacktrace.frames||[]).map(g=>({...g,platform:"node:javascript"}))}:void 0})),f={$exception_message:p[0]?.value||s.message,$exception_type:p[0]?.type,$exception_level:s.level,$exception_list:d,$sentry_event_id:s.event_id,$sentry_exception:s.exception,$sentry_exception_message:p[0]?.value||s.message,$sentry_exception_type:p[0]?.type,$sentry_tags:s.tags};return t&&r&&(f.$sentry_url=(n||"https://sentry.io/organizations/")+t+"/issues/?project="+r+"&query="+s.event_id),o&&e.capture({event:"$exception",distinctId:c,properties:f}),s}}var y6o=class{static#e=this.POSTHOG_ID_TAG="posthog_distinct_id";constructor(t,r,n,i,o){this.name=_zu,this.name=_zu,this.setupOnce=function(s,a){let c=a()?.getClient()?.getDsn()?.projectId;s(q1m(t,{organization:r,projectId:c,prefix:n,severityAllowList:i,sendExceptionsToPostHog:o??!0}))}}};RH.errorPropertiesBuilder=new dz.ErrorPropertiesBuilder([new dz.EventCoercer,new dz.ErrorCoercer,new dz.ObjectCoercer,new dz.StringCoercer,new dz.PrimitiveCoercer],dz.createStackParser("node:javascript",dz.nodeStackLineParser),[MQu(),wzu,Ozu()]);var Bxe=class extends tWr{getLibraryId(){return"posthog-node"}initializeContext(){return new rWr}};var nWr=class{posthog;constructor({posthogApiKey:t}){this.posthog=new Bxe(t)}async identify(){}async sendEvent(t){t.orgId!=null&&this.posthog.capture({distinctId:t.orgId,event:"CLI",properties:{...t,...t.properties,version:"5.119.0",usingAccessToken:!0,...Qce()}})}sendAutomationEvent(t){this.posthog.capture({distinctId:t.distinctId,event:t.event,properties:t.properties})}async flush(){try{await Promise.race([this.posthog.flush(),new Promise(t=>setTimeout(t,3e3))])}catch{}}};var C_t=class{async sendEvent(){}async sendAutomationEvent(){}async identify(){}async flush(){}};Md();Jt();var Fot=require("fs/promises"),Gzu=require("os"),qzu=require("path");ynt();var W1m="id",H1m=".fern",w_t=class{posthog;userId;token;constructor({token:t,posthogApiKey:r}){this.posthog=new Bxe(r),this.userId=t==null?void 0:VFo(t),this.token=t}async identify(){this.userId!=null&&this.posthog.alias({distinctId:this.userId,alias:await this.getPersistedDistinctId()})}async sendEvent(t){let r=await this.getUserEmail();this.posthog.capture({distinctId:this.userId??await this.getPersistedDistinctId(),event:"CLI",properties:{version:"5.119.0",...t,...t.properties,usingAccessToken:!1,...r!=null?{userEmail:r}:{},...Qce()}})}sendAutomationEvent(t){this.posthog.capture({distinctId:t.distinctId,event:t.event,properties:t.properties})}async flush(){try{await Promise.race([this.posthog.flush(),new Promise(t=>setTimeout(t,3e3))])}catch{}}userEmail;async getUserEmail(){if(this.userEmail!==null){if(this.userEmail!=null)return this.userEmail;if(this.token==null){this.userEmail=null;return}try{let t=await Rf({token:this.token.value}).user.getMyself();if(t.ok&&t.body.email!=null)return this.userEmail=t.body.email,this.userEmail}catch{}this.userEmail=null}}persistedDistinctId;async getPersistedDistinctId(){if(this.persistedDistinctId==null){let t=UD(),r=Me(Ut.of((0,Gzu.homedir)()),ve.of(H1m),ve.of(W1m));try{await Xt(r)?this.persistedDistinctId=(await(0,Fot.readFile)(r)).toString():(await(0,Fot.mkdir)((0,qzu.dirname)(r),{recursive:!0}),await(0,Fot.writeFile)(r,t),this.persistedDistinctId=t)}catch{this.persistedDistinctId=t}}return this.persistedDistinctId}};var b6o;async function S_t(){return b6o==null&&(b6o=await K1m()),b6o}async function K1m(){try{let e="phc_yQgAEdJJkVpI24NdSRID2mor1x1leRpDoC9yZ9mfXal",t=process.env.FERN_DISABLE_TELEMETRY==="true";if(e==null||t)return new C_t;let r=await Jnt();return r!=null?new w_t({token:r,posthogApiKey:e}):await oz()!=null?new nWr({posthogApiKey:e}):new w_t({token:void 0,posthogApiKey:e})}catch{return new C_t}}En();Bt();jt();P_();var T_t=ye(require("process"),1);B7e();var Kzu=ye(SSo(),1),Jzu=ye(Hzu(),1);function oT(e,t={}){if(typeof e!="string"||e.length===0||(t={ambiguousIsNarrow:!0,...t},e=d7(e),e.length===0))return 0;e=e.replace((0,Jzu.default)()," ");let r=t.ambiguousIsNarrow?1:2,n=0;for(let i of e){let o=i.codePointAt(0);if(o<=31||o>=127&&o<=159||o>=768&&o<=879)continue;switch(Kzu.default.eastAsianWidth(i)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}En();function iWr(e){let t=0;for(let r of e.split(`
3370
3370
  `))t=Math.max(t,oT(r));return t}var hMu=ye(I6o(),1);var Y1m=/[\p{Lu}]/u,X1m=/[\p{Ll}]/u,Zzu=/^[\p{Lu}](?![\p{Lu}])/gu,tMu=/([\p{Alpha}\p{N}_]|$)/u,v6o=/[_.\- ]+/,Z1m=new RegExp("^"+v6o.source),$zu=new RegExp(v6o.source+tMu.source,"gu"),eMu=new RegExp("\\d+"+tMu.source,"gu"),$1m=(e,t,r,n)=>{let i=!1,o=!1,s=!1,a=!1;for(let c=0;c<e.length;c++){let u=e[c];a=c>2?e[c-3]==="-":!0,i&&Y1m.test(u)?(e=e.slice(0,c)+"-"+e.slice(c),i=!1,s=o,o=!0,c++):o&&s&&X1m.test(u)&&(!a||n)?(e=e.slice(0,c-1)+"-"+e.slice(c-1),s=o,o=!1,i=!0):(i=t(u)===u&&r(u)!==u,s=o,o=r(u)===u&&t(u)!==u)}return e},eTm=(e,t)=>(Zzu.lastIndex=0,e.replace(Zzu,r=>t(r))),tTm=(e,t)=>($zu.lastIndex=0,eMu.lastIndex=0,e.replace($zu,(r,n)=>t(n)).replace(eMu,r=>t(r)));function x6o(e,t){if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");if(t={pascalCase:!1,preserveConsecutiveUppercase:!1,...t},Array.isArray(e)?e=e.map(o=>o.trim()).filter(o=>o.length).join("-"):e=e.trim(),e.length===0)return"";let r=t.locale===!1?o=>o.toLowerCase():o=>o.toLocaleLowerCase(t.locale),n=t.locale===!1?o=>o.toUpperCase():o=>o.toLocaleUpperCase(t.locale);return e.length===1?v6o.test(e)?"":t.pascalCase?n(e):r(e):(e!==r(e)&&(e=$1m(e,r,n,t.preserveConsecutiveUppercase)),e=e.replace(Z1m,""),e=t.preserveConsecutiveUppercase?eTm(e,r):r(e),t.pascalCase&&(e=n(e.charAt(0))+e.slice(1)),tTm(e,n))}var T6o=ye(nMu(),1);B7e();var iMu=(e=0)=>t=>`\x1B[${t+e}m`,oMu=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,sMu=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,L0={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},rVI=Object.keys(L0.modifier),oTm=Object.keys(L0.color),sTm=Object.keys(L0.bgColor),nVI=[...oTm,...sTm];function aTm(){let e=new Map;for(let[t,r]of Object.entries(L0)){for(let[n,i]of Object.entries(r))L0[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=L0[n],e.set(i[0],i[1]);Object.defineProperty(L0,t,{value:r,enumerable:!1})}return Object.defineProperty(L0,"codes",{value:e,enumerable:!1}),L0.color.close="\x1B[39m",L0.bgColor.close="\x1B[49m",L0.color.ansi=iMu(),L0.color.ansi256=oMu(),L0.color.ansi16m=sMu(),L0.bgColor.ansi=iMu(10),L0.bgColor.ansi256=oMu(10),L0.bgColor.ansi16m=sMu(10),Object.defineProperties(L0,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(o=>o+o).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>L0.rgbToAnsi256(...L0.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let o=Math.max(r,n,i)*2;if(o===0)return 30;let s=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return o===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>L0.ansi256ToAnsi(L0.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>L0.ansi256ToAnsi(L0.hexToAnsi256(t)),enumerable:!1}}),L0}var cTm=aTm(),aMu=cTm;var oWr=new Set(["\x1B","\x9B"]),uTm=39,w6o="\x07",lMu="[",lTm="]",pMu="m",S6o=`${lTm}8;;`,cMu=e=>`${oWr.values().next().value}${lMu}${e}${pMu}`,uMu=e=>`${oWr.values().next().value}${S6o}${e}${w6o}`,pTm=e=>e.split(" ").map(t=>oT(t)),C6o=(e,t,r)=>{let n=[...t],i=!1,o=!1,s=oT(d7(e[e.length-1]));for(let[a,c]of n.entries()){let u=oT(c);if(s+u<=r?e[e.length-1]+=c:(e.push(c),s=0),oWr.has(c)&&(i=!0,o=n.slice(a+1).join("").startsWith(S6o)),i){o?c===w6o&&(i=!1,o=!1):c===pMu&&(i=!1);continue}s+=u,s===r&&a<n.length-1&&(e.push(""),s=0)}!s&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},fTm=e=>{let t=e.split(" "),r=t.length;for(;r>0&&!(oT(t[r-1])>0);)r--;return r===t.length?e:t.slice(0,r).join(" ")+t.slice(r).join("")},dTm=(e,t,r={})=>{if(r.trim!==!1&&e.trim()==="")return"";let n="",i,o,s=pTm(e),a=[""];for(let[u,l]of e.split(" ").entries()){r.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let p=oT(a[a.length-1]);if(u!==0&&(p>=t&&(r.wordWrap===!1||r.trim===!1)&&(a.push(""),p=0),(p>0||r.trim===!1)&&(a[a.length-1]+=" ",p++)),r.hard&&s[u]>t){let d=t-p,f=1+Math.floor((s[u]-d-1)/t);Math.floor((s[u]-1)/t)<f&&a.push(""),C6o(a,l,t);continue}if(p+s[u]>t&&p>0&&s[u]>0){if(r.wordWrap===!1&&p<t){C6o(a,l,t);continue}a.push("")}if(p+s[u]>t&&r.wordWrap===!1){C6o(a,l,t);continue}a[a.length-1]+=l}r.trim!==!1&&(a=a.map(u=>fTm(u)));let c=[...a.join(`
3371
3371
  `)];for(let[u,l]of c.entries()){if(n+=l,oWr.has(l)){let{groups:d}=new RegExp(`(?:\\${lMu}(?<code>\\d+)m|\\${S6o}(?<uri>.*)${w6o})`).exec(c.slice(u).join(""))||{groups:{}};if(d.code!==void 0){let f=Number.parseFloat(d.code);i=f===uTm?void 0:f}else d.uri!==void 0&&(o=d.uri.length===0?void 0:d.uri)}let p=aMu.codes.get(Number(i));c[u+1]===`
3372
3372
  `?(o&&(n+=uMu("")),i&&p&&(n+=cMu(p))):l===`
@@ -3940,7 +3940,7 @@ Hint: Values starting with "@" (such as scoped npm packages) must be wrapped in
3940
3940
  Add a 'docs:' section to your fern.yml to get started.`,code:S.Code.ConfigError});let o=await new rDe({context:t}).check({workspace:n,strict:r.strict}),s=new Set(o.mdxParseErrors.map(p=>p.displayRelativeFilepath)),a=new Set(o.mdxParseErrors.map(p=>p.rawMessage)),c=o.violations.filter(p=>!(s.size>0&&vmh(p,s,a))),u=o.hasErrors||r.strict&&o.hasWarnings;if(r.json){let p=this.buildJsonResponse({result:o,filteredViolations:c,hasErrors:u});if(t.stdout.info(JSON.stringify(p,null,2)),u)throw new S({code:S.Code.ValidationError});return}if(c.length>0)for(let p of c){let d=p.severity==="warning"?fe.yellow:fe.red;process.stderr.write(`${d(`${p.displayRelativeFilepath}:${p.line}:${p.column}: ${p.message}`)}
3941
3941
  `)}let l=0;if(o.mdxParseErrors.length>0){for(let p of o.mdxParseErrors)t.stderr.info(`
3942
3942
  ${p.toString()}
3943
- `);r.fix?l+=await Dni(t,o.mdxParseErrors):process.stdout.isTTY===!0&&!J$n()&&await Rni(t,o.mdxParseErrors)}if(r.fix&&c.length>0){let d=await new G0t({context:t}).fix({workspace:n,violations:c});l+=d.fixedCount}if(u&&(!r.fix||l===0))throw new S({code:S.Code.ValidationError});if(o.warningCount>0){t.stderr.info(`${Pr.warning} ${fe.yellow(`Found ${o.warningCount} warnings`)}`),t.stderr.info(fe.dim(" Run 'fern docs check --strict' to treat warnings as errors"));return}t.stderr.info(`${Pr.success} ${fe.green("All checks passed")}`)}buildJsonResponse({result:t,filteredViolations:r,hasErrors:n}){let i={};return(r.length>0||t.mdxParseErrors.length>0)&&(i.docs=[...r.map(o=>tte(o)),...t.mdxParseErrors.map(o=>({severity:"error",rule:o.code.code,filepath:o.displayRelativeFilepath,...o.line!=null?{line:o.line}:{},...o.column!=null?{column:o.column}:{},message:`[${o.code.code}] ${o.code.title}: ${o.rawMessage}`}))]),{success:!n,results:i}}};function vmh(e,t,r){if(!/failed to parse|failed to initialize/i.test(e.message))return!1;for(let n of r)if(n.length>0&&e.message.includes(n))return!0;for(let n of t){if(e.message.includes(n))return!0;let i=n.split("/").filter(Boolean);for(let o=i.length;o>=2;o--){let s=i.slice(i.length-o).join("/");if(e.message.includes(s))return!0}if(i.length===1){let o=i[0];if(o!=null&&e.message.includes(o))return!0}}return!1}function Kes(e){let t=new Hes;oi(e,"check","Validate docs configuration",(r,n)=>t.handle(r,n),r=>r.option("strict",{type:"boolean",description:"Treat warnings as errors",default:!1}).option("json",{type:"boolean",description:"Output results as JSON to stdout",default:!1}).option("fix",{type:"boolean",description:"Automatically fix issues that have a known resolution",default:!1}))}Bb();jt();var Qfl=ye(require("net"),1),zfl=ye(require("os"),1),Nni=class extends Error{constructor(t){super(`${t} is locked`)}},K0t={old:new Set,young:new Set},xmh=1e3*15,Mfl=new Set;var bqt,Cmh=()=>{let e=zfl.default.networkInterfaces(),t=new Set([void 0,"0.0.0.0"]);for(let r of Object.values(e))for(let n of r)t.add(n.address);return t},Nfl=e=>new Promise((t,r)=>{let n=Qfl.default.createServer();n.unref(),n.on("error",r),n.listen(e,()=>{let{port:i}=n.address();n.close(()=>{t(i)})})}),jfl=async(e,t)=>{if(e.host||e.port===0)return Nfl(e);for(let r of t)try{await Nfl({port:e.port,host:r})}catch(n){if(!["EADDRNOTAVAIL","EINVAL"].includes(n.code))throw n}return e.port},wmh=e=>K0t.old.has(e)||K0t.young.has(e)||Mfl.has(e),Smh=function*(e){e&&(yield*e),yield 0};async function iDe(e){let t,r=new Set;if(e&&(e.port&&(t=typeof e.port=="number"?[e.port]:e.port),e.exclude)){let s=e.exclude;if(typeof s[Symbol.iterator]!="function")throw new TypeError("The `exclude` option must be an iterable.");for(let a of s){if(typeof a!="number")throw new TypeError("Each item in the `exclude` option must be a number corresponding to the port you want excluded.");if(!Number.isSafeInteger(a))throw new TypeError(`Number ${a} in the exclude option is not a safe integer and can't be used`)}r=new Set(s)}let{reserve:n,...i}=e??{};bqt===void 0&&(bqt=setTimeout(()=>{bqt=void 0,K0t.old=K0t.young,K0t.young=new Set},xmh),bqt.unref&&bqt.unref());let o=Cmh();for(let s of Smh(t))try{if(r.has(s))continue;let a=await jfl({...i,port:s},o);for(;wmh(a);){if(s!==0)throw new Nni(s);a=await jfl({...i,port:s},o)}return n?Mfl.add(a):K0t.young.add(a),a}catch(a){if(!["EADDRINUSE","EACCES"].includes(a.code)&&!(a instanceof Nni))throw a}throw new Error("No available ports found")}jt();var Ufl=/^[a-z0-9-]+-preview-[a-z0-9-]+\.docs\.buildwithfern\.com$/i,Lfl="docs.buildwithfern.com",Vfl=62;function PVe(e){let t=e.toLowerCase().trim();t.startsWith("https://")?t=t.slice(8):t.startsWith("http://")&&(t=t.slice(7));let r=t.indexOf("/");return r!==-1&&(t=t.slice(0,r)),Ufl.test(t)}function _fl(e){let t=e.toLowerCase().replace(/[^a-z0-9-]/g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"");return t.length===0?"default":t}function Eqt({orgId:e,previewId:t}){let r=_fl(t),n=`${e}-preview-${r}.${Lfl}`;if(n.length<=Vfl)return n;let i=`${e}-preview-`,o=Vfl-i.length;if(o<8)throw new S({message:`Organization name "${e}" is too long to generate a valid preview URL`,code:S.Code.ValidationError});let a=r.slice(0,o).replace(/-+$/,"");return`${i}${a}.${Lfl}`}Bt();gx();eh();Jt();RE();jt();En();var Fis=require("child_process"),dCl=ye(Xes(),1),Nis=ye(Iii(),1),jis=ye(require("fs"),1),CDe=require("fs/promises"),mCl=ye(require("http"),1),hCl=ye(require("os"),1),lsi=ye(require("path"),1);jii();Jt();var sG=require("fs/promises"),Tyl=require("os"),zrs=ye(require("path"),1),dvh=".fern",mvh="logs",Qrs=100*1024*1024;function hvh(){return"cli@5.118.0"}var GVe=class{logFilePath=null;initialized=!1;sessionStartTime;consoleLogger;constructor(){this.sessionStartTime=Date.now()}async initialize(t,r){if(this.initialized)return;this.consoleLogger=t;let n=r??Me(Me(Ut.of((0,Tyl.homedir)()),ve.of(dvh)),ve.of(mvh));await Xt(n)||await(0,sG.mkdir)(n,{recursive:!0});let o=`${new Date().toISOString().replace(/[:.]/g,"-")}.debug.log`;this.logFilePath=Me(n,ve.of(o));let s=["================================================================================","Fern Docs Dev Debug Log",`Session started: ${new Date().toISOString()}`,`Log file: ${zrs.default.basename(this.logFilePath)}`,"================================================================================",""].join(`
3943
+ `);r.fix?l+=await Dni(t,o.mdxParseErrors):process.stdout.isTTY===!0&&!J$n()&&await Rni(t,o.mdxParseErrors)}if(r.fix&&c.length>0){let d=await new G0t({context:t}).fix({workspace:n,violations:c});l+=d.fixedCount}if(u&&(!r.fix||l===0))throw new S({code:S.Code.ValidationError});if(o.warningCount>0){t.stderr.info(`${Pr.warning} ${fe.yellow(`Found ${o.warningCount} warnings`)}`),t.stderr.info(fe.dim(" Run 'fern docs check --strict' to treat warnings as errors"));return}t.stderr.info(`${Pr.success} ${fe.green("All checks passed")}`)}buildJsonResponse({result:t,filteredViolations:r,hasErrors:n}){let i={};return(r.length>0||t.mdxParseErrors.length>0)&&(i.docs=[...r.map(o=>tte(o)),...t.mdxParseErrors.map(o=>({severity:"error",rule:o.code.code,filepath:o.displayRelativeFilepath,...o.line!=null?{line:o.line}:{},...o.column!=null?{column:o.column}:{},message:`[${o.code.code}] ${o.code.title}: ${o.rawMessage}`}))]),{success:!n,results:i}}};function vmh(e,t,r){if(!/failed to parse|failed to initialize/i.test(e.message))return!1;for(let n of r)if(n.length>0&&e.message.includes(n))return!0;for(let n of t){if(e.message.includes(n))return!0;let i=n.split("/").filter(Boolean);for(let o=i.length;o>=2;o--){let s=i.slice(i.length-o).join("/");if(e.message.includes(s))return!0}if(i.length===1){let o=i[0];if(o!=null&&e.message.includes(o))return!0}}return!1}function Kes(e){let t=new Hes;oi(e,"check","Validate docs configuration",(r,n)=>t.handle(r,n),r=>r.option("strict",{type:"boolean",description:"Treat warnings as errors",default:!1}).option("json",{type:"boolean",description:"Output results as JSON to stdout",default:!1}).option("fix",{type:"boolean",description:"Automatically fix issues that have a known resolution",default:!1}))}Bb();jt();var Qfl=ye(require("net"),1),zfl=ye(require("os"),1),Nni=class extends Error{constructor(t){super(`${t} is locked`)}},K0t={old:new Set,young:new Set},xmh=1e3*15,Mfl=new Set;var bqt,Cmh=()=>{let e=zfl.default.networkInterfaces(),t=new Set([void 0,"0.0.0.0"]);for(let r of Object.values(e))for(let n of r)t.add(n.address);return t},Nfl=e=>new Promise((t,r)=>{let n=Qfl.default.createServer();n.unref(),n.on("error",r),n.listen(e,()=>{let{port:i}=n.address();n.close(()=>{t(i)})})}),jfl=async(e,t)=>{if(e.host||e.port===0)return Nfl(e);for(let r of t)try{await Nfl({port:e.port,host:r})}catch(n){if(!["EADDRNOTAVAIL","EINVAL"].includes(n.code))throw n}return e.port},wmh=e=>K0t.old.has(e)||K0t.young.has(e)||Mfl.has(e),Smh=function*(e){e&&(yield*e),yield 0};async function iDe(e){let t,r=new Set;if(e&&(e.port&&(t=typeof e.port=="number"?[e.port]:e.port),e.exclude)){let s=e.exclude;if(typeof s[Symbol.iterator]!="function")throw new TypeError("The `exclude` option must be an iterable.");for(let a of s){if(typeof a!="number")throw new TypeError("Each item in the `exclude` option must be a number corresponding to the port you want excluded.");if(!Number.isSafeInteger(a))throw new TypeError(`Number ${a} in the exclude option is not a safe integer and can't be used`)}r=new Set(s)}let{reserve:n,...i}=e??{};bqt===void 0&&(bqt=setTimeout(()=>{bqt=void 0,K0t.old=K0t.young,K0t.young=new Set},xmh),bqt.unref&&bqt.unref());let o=Cmh();for(let s of Smh(t))try{if(r.has(s))continue;let a=await jfl({...i,port:s},o);for(;wmh(a);){if(s!==0)throw new Nni(s);a=await jfl({...i,port:s},o)}return n?Mfl.add(a):K0t.young.add(a),a}catch(a){if(!["EADDRINUSE","EACCES"].includes(a.code)&&!(a instanceof Nni))throw a}throw new Error("No available ports found")}jt();var Ufl=/^[a-z0-9-]+-preview-[a-z0-9-]+\.docs\.buildwithfern\.com$/i,Lfl="docs.buildwithfern.com",Vfl=62;function PVe(e){let t=e.toLowerCase().trim();t.startsWith("https://")?t=t.slice(8):t.startsWith("http://")&&(t=t.slice(7));let r=t.indexOf("/");return r!==-1&&(t=t.slice(0,r)),Ufl.test(t)}function _fl(e){let t=e.toLowerCase().replace(/[^a-z0-9-]/g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"");return t.length===0?"default":t}function Eqt({orgId:e,previewId:t}){let r=_fl(t),n=`${e}-preview-${r}.${Lfl}`;if(n.length<=Vfl)return n;let i=`${e}-preview-`,o=Vfl-i.length;if(o<8)throw new S({message:`Organization name "${e}" is too long to generate a valid preview URL`,code:S.Code.ValidationError});let a=r.slice(0,o).replace(/-+$/,"");return`${i}${a}.${Lfl}`}Bt();gx();eh();Jt();RE();jt();En();var Fis=require("child_process"),dCl=ye(Xes(),1),Nis=ye(Iii(),1),jis=ye(require("fs"),1),CDe=require("fs/promises"),mCl=ye(require("http"),1),hCl=ye(require("os"),1),lsi=ye(require("path"),1);jii();Jt();var sG=require("fs/promises"),Tyl=require("os"),zrs=ye(require("path"),1),dvh=".fern",mvh="logs",Qrs=100*1024*1024;function hvh(){return"cli@5.119.0"}var GVe=class{logFilePath=null;initialized=!1;sessionStartTime;consoleLogger;constructor(){this.sessionStartTime=Date.now()}async initialize(t,r){if(this.initialized)return;this.consoleLogger=t;let n=r??Me(Me(Ut.of((0,Tyl.homedir)()),ve.of(dvh)),ve.of(mvh));await Xt(n)||await(0,sG.mkdir)(n,{recursive:!0});let o=`${new Date().toISOString().replace(/[:.]/g,"-")}.debug.log`;this.logFilePath=Me(n,ve.of(o));let s=["================================================================================","Fern Docs Dev Debug Log",`Session started: ${new Date().toISOString()}`,`Log file: ${zrs.default.basename(this.logFilePath)}`,"================================================================================",""].join(`
3944
3944
  `);await(0,sG.writeFile)(this.logFilePath,s,"utf-8"),this.initialized=!0,this.enforceLogSizeLimit(n)}getLogFilePath(){return this.logFilePath}async writeEntry(t){if(!this.initialized||!this.logFilePath)return;let r=JSON.stringify(t)+`
3945
3945
  `;try{await(0,sG.appendFile)(this.logFilePath,r,"utf-8")}catch{}}async logFrontendMetrics(t){let r={timestamp:t.timestamp,source:t.source,level:t.level,eventType:this.getEventType(t.payload,t.isAggregate),isAggregate:t.isAggregate,data:t.payload};await this.writeEntry(r)}async logCliMetric(t,r="info"){let n={timestamp:t.timestamp,source:hvh(),level:r,eventType:t.type,data:{durationMs:t.durationMs,metadata:t.metadata}};await this.writeEntry(n)}async logCliMemory(){let t=process.memoryUsage(),r={type:"cli_memory",timestamp:new Date().toISOString(),metadata:{heapUsed:t.heapUsed,heapTotal:t.heapTotal,external:t.external,rss:t.rss,heapUsedMB:Math.round(t.heapUsed/1024/1024*100)/100,heapTotalMB:Math.round(t.heapTotal/1024/1024*100)/100,rssMB:Math.round(t.rss/1024/1024*100)/100}};await this.logCliMetric(r)}async logCliReloadStart(){let t={type:"cli_reload_start",timestamp:new Date().toISOString()};await this.logCliMetric(t)}async logCliReloadFinish(t,r){let n={type:"cli_reload_finish",timestamp:new Date().toISOString(),durationMs:t,metadata:r};await this.logCliMetric(n)}async logCliDocsGeneration(t,r){let n={type:"cli_docs_generation",timestamp:new Date().toISOString(),durationMs:t,metadata:r};await this.logCliMetric(n)}async logCliValidation(t,r){let n={type:"cli_validation",timestamp:new Date().toISOString(),durationMs:t,metadata:{success:r}};await this.logCliMetric(n)}async enforceLogSizeLimit(t){try{let n=(await(0,sG.readdir)(t)).filter(c=>c.endsWith(".log")),i=[];for(let c of n){let u=zrs.default.join(t,c);try{let l=await(0,sG.stat)(u);i.push({name:c,fullPath:u,size:l.size,mtimeMs:l.mtimeMs})}catch{}}let o=i.reduce((c,u)=>c+u.size,0),s=Math.round(o/1024/1024*100)/100,a=Qrs/1024/1024;if(o<=Qrs){this.consoleLogger?.debug(`Log directory size ${s} MB does not exceed ${a} MB cap`);return}this.consoleLogger?.info(`Rotating logs: total size ${s} MB exceeds ${a} MB cap`),i.sort((c,u)=>c.mtimeMs-u.mtimeMs);for(let c of i){if(o<=Qrs)break;if(!(this.logFilePath!=null&&c.fullPath===this.logFilePath))try{await(0,sG.unlink)(c.fullPath),o-=c.size}catch{}}}catch{}}getEventType(t,r){return r?"aggregate_summary":"type"in t&&typeof t.type=="string"?t.type:"unknown"}static isMetricsMessage(t){if(typeof t!="object"||t===null)return!1;let r=t;return r.type==="metrics"&&typeof r.timestamp=="string"&&typeof r.source=="string"}};var Qii={"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET, POST, OPTIONS","Access-Control-Allow-Headers":"Content-Type"};function Oyl(e){let t=gvh();if(t==null)return;let{port:r,debugLogger:n,getDocsLoadResponse:i,extractLocaleFromPath:o}=e,s=new Map;function a(u){let l=JSON.stringify(u),p=[];for(let[d]of s)try{d.send(l)}catch{p.push(d)}for(let d of p){let f=s.get(d);f&&(clearInterval(f.pingInterval),s.delete(d))}}let c=t.serve({port:r,async fetch(u,l){if(u.method==="OPTIONS")return new Response(null,{status:204,headers:Qii});let p=new URL(u.url);if(u.headers.get("upgrade")?.toLowerCase()==="websocket"){l.upgrade(u,{data:{connectionId:`${Date.now()}`}});return}if(u.method==="POST"&&p.pathname==="/v2/registry/docs/load-with-url")try{let f=await u.json(),m=o?.(f?.url);return new Response(JSON.stringify(i(m)),{headers:{"Content-Type":"application/json",...Qii}})}catch{return new Response(JSON.stringify(i()),{headers:{"Content-Type":"application/json",...Qii}})}let d=/^\/_local\/(.*)/.exec(p.pathname);return u.method==="GET"&&d!=null?new Response(t.file(`/${d[1]}`),{headers:Qii}):new Response("Not Found",{status:404})},websocket:{open(u){let{connectionId:l}=u.data,p=setInterval(()=>{let d=s.get(u);if(!d)return;let f=Date.now();if(f-d.lastPong>9e4){u.close();return}try{u.send(JSON.stringify({type:"ping",timestamp:f}))}catch{u.close()}},3e4);s.set(u,{pingInterval:p,lastPong:Date.now()});try{u.send(JSON.stringify({type:"connected",connectionId:l}))}catch{}},message(u,l){try{let p=JSON.parse(l.toString());if(p.type==="pong"){let d=s.get(u);d&&(d.lastPong=Date.now())}else GVe.isMetricsMessage(p)&&n.logFrontendMetrics(p)}catch{}},close(u){let l=s.get(u);l&&(clearInterval(l.pingInterval),s.delete(u))}}});return{sendData:a,stop:u=>c.stop(u)}}function gvh(){return globalThis.Bun}jt();var Hyl=require("events"),Uii=ye(require("fs"),1),WVe=ye(require("path"),1);var Byl=ye(require("os"),1),Pyl=300,dDe=20,$qt=1e7,Dyl=Byl.default.platform();var Avh=Dyl==="darwin",Mrs=Dyl==="win32",mDe=Avh||Mrs,Ryl=3e3,kyl=2e4,Lrs=1250;var soe;(function(e){e[e.DIR=1]="DIR",e[e.FILE=2]="FILE"})(soe||(soe={}));var qVe;(function(e){e.CHANGE="change",e.RENAME="rename"})(qVe||(qVe={}));var e7t;(function(e){e.CHANGE="change",e.ERROR="error"})(e7t||(e7t={}));var Bc;(function(e){e.ADD="add",e.ADD_DIR="addDir",e.CHANGE="change",e.RENAME="rename",e.RENAME_DIR="renameDir",e.UNLINK="unlink",e.UNLINK_DIR="unlinkDir"})(Bc||(Bc={}));var TN;(function(e){e.ALL="all",e.CLOSE="close",e.ERROR="error",e.READY="ready"})(TN||(TN={}));var yvh=(e,t=1,r)=>{t=Math.max(1,t);let n=r?.leading??!1,i=r?.trailing??!0,o=Math.max(r?.maxWait??1/0,t),s,a,c=0,u=0,l=()=>{let I=Date.now(),C=I-c,T=I-u,P=C>=t||T>=o;return[I,P]},p=I=>{if(u=I,!s)return;let C=s;s=void 0,e.apply(void 0,C)},d=()=>{E(0)},f=()=>{a&&(d(),p(Date.now()))},m=I=>{if(u=I,n)return p(I)},g=I=>{if(i&&s)return p(I);s=void 0},A=()=>{a=void 0;let[I,C]=l();return C?g(I):y(I)},y=I=>{let C=I-c,T=I-u,P=t-C,D=o-T,O=Math.min(P,D);return E(O)},E=I=>{a&&clearTimeout(a),!(I<=0)&&(a=setTimeout(A,I))},x=(...I)=>{let[C,T]=l(),P=!!a;if(s=I,c=C,(T||!a)&&E(t),T)return P?p(C):m(C)};return x.cancel=d,x.flush=f,x},zii=yvh;var Grs=ye(require("fs"),1),Lii=ye(require("path"),1);var Hd=ye(require("fs"),1),cP=require("util");var Nme=(e,t)=>function(...n){return e.apply(void 0,n).catch(t)},aoe=(e,t)=>function(...n){try{return e.apply(void 0,n)}catch(i){return t(i)}};var Vrs=ye(require("process"),1),Fyl=Vrs.default.getuid?!Vrs.default.getuid():!1,Nyl=1e4,RM=()=>{};var t7t={isChangeErrorOk:e=>{if(!t7t.isNodeError(e))return!1;let{code:t}=e;return t==="ENOSYS"||!Fyl&&(t==="EINVAL"||t==="EPERM")},isNodeError:e=>e instanceof Error,isRetriableError:e=>{if(!t7t.isNodeError(e))return!1;let{code:t}=e;return t==="EMFILE"||t==="ENFILE"||t==="EAGAIN"||t==="EBUSY"||t==="EACCESS"||t==="EACCES"||t==="EACCS"||t==="EPERM"},onChangeError:e=>{if(!t7t.isNodeError(e))throw e;if(!t7t.isChangeErrorOk(e))throw e}},Ax=t7t;var Urs=class{constructor(){this.interval=25,this.intervalId=void 0,this.limit=Nyl,this.queueActive=new Set,this.queueWaiting=new Set,this.init=()=>{this.intervalId||(this.intervalId=setInterval(this.tick,this.interval))},this.reset=()=>{this.intervalId&&(clearInterval(this.intervalId),delete this.intervalId)},this.add=t=>{this.queueWaiting.add(t),this.queueActive.size<this.limit/2?this.tick():this.init()},this.remove=t=>{this.queueWaiting.delete(t),this.queueActive.delete(t)},this.schedule=()=>new Promise(t=>{let r=()=>this.remove(n),n=()=>t(r);this.add(n)}),this.tick=()=>{if(!(this.queueActive.size>=this.limit)){if(!this.queueWaiting.size)return this.reset();for(let t of this.queueWaiting){if(this.queueActive.size>=this.limit)break;this.queueWaiting.delete(t),this.queueActive.add(t),t()}}}}},jyl=new Urs;var jme=(e,t)=>function(n){return function i(...o){return jyl.schedule().then(s=>{let a=u=>(s(),u),c=u=>{if(s(),Date.now()>=n)throw u;if(t(u)){let l=Math.round(100*Math.random());return new Promise(d=>setTimeout(d,l)).then(()=>i.apply(void 0,o))}throw u};return e.apply(void 0,o).then(a,c)})}},Qme=(e,t)=>function(n){return function i(...o){try{return e.apply(void 0,o)}catch(s){if(Date.now()>n)throw s;if(t(s))return i.apply(void 0,o);throw s}}};var bvh={attempt:{chmod:Nme((0,cP.promisify)(Hd.default.chmod),Ax.onChangeError),chown:Nme((0,cP.promisify)(Hd.default.chown),Ax.onChangeError),close:Nme((0,cP.promisify)(Hd.default.close),RM),fsync:Nme((0,cP.promisify)(Hd.default.fsync),RM),mkdir:Nme((0,cP.promisify)(Hd.default.mkdir),RM),realpath:Nme((0,cP.promisify)(Hd.default.realpath),RM),stat:Nme((0,cP.promisify)(Hd.default.stat),RM),unlink:Nme((0,cP.promisify)(Hd.default.unlink),RM),chmodSync:aoe(Hd.default.chmodSync,Ax.onChangeError),chownSync:aoe(Hd.default.chownSync,Ax.onChangeError),closeSync:aoe(Hd.default.closeSync,RM),existsSync:aoe(Hd.default.existsSync,RM),fsyncSync:aoe(Hd.default.fsync,RM),mkdirSync:aoe(Hd.default.mkdirSync,RM),realpathSync:aoe(Hd.default.realpathSync,RM),statSync:aoe(Hd.default.statSync,RM),unlinkSync:aoe(Hd.default.unlinkSync,RM)},retry:{close:jme((0,cP.promisify)(Hd.default.close),Ax.isRetriableError),fsync:jme((0,cP.promisify)(Hd.default.fsync),Ax.isRetriableError),open:jme((0,cP.promisify)(Hd.default.open),Ax.isRetriableError),readFile:jme((0,cP.promisify)(Hd.default.readFile),Ax.isRetriableError),rename:jme((0,cP.promisify)(Hd.default.rename),Ax.isRetriableError),stat:jme((0,cP.promisify)(Hd.default.stat),Ax.isRetriableError),write:jme((0,cP.promisify)(Hd.default.write),Ax.isRetriableError),writeFile:jme((0,cP.promisify)(Hd.default.writeFile),Ax.isRetriableError),closeSync:Qme(Hd.default.closeSync,Ax.isRetriableError),fsyncSync:Qme(Hd.default.fsyncSync,Ax.isRetriableError),openSync:Qme(Hd.default.openSync,Ax.isRetriableError),readFileSync:Qme(Hd.default.readFileSync,Ax.isRetriableError),renameSync:Qme(Hd.default.renameSync,Ax.isRetriableError),statSync:Qme(Hd.default.statSync,Ax.isRetriableError),writeSync:Qme(Hd.default.writeSync,Ax.isRetriableError),writeFileSync:Qme(Hd.default.writeFileSync,Ax.isRetriableError)}},Qyl=bvh;var Mii=ye(require("fs"),1),r7t=ye(require("path"),1);var _rs=()=>{};var Evh=()=>{let e=_rs,t=_rs,r=!1,n=!1;return{promise:new Promise((c,u)=>{e=l=>(r=!0,c(l)),t=l=>(n=!0,u(l))}),resolve:e,reject:t,isPending:()=>!r&&!n,isResolved:()=>r,isRejected:()=>n}},zyl=Evh;var Ivh=()=>{let{promise:e,resolve:t,isPending:r}=zyl(),n=0,i=()=>{n+=1},o=()=>{n-=1,!n&&t()};return i(),queueMicrotask(o),{promise:e,isPending:r,increment:i,decrement:o}},Myl=Ivh;var Lyl={then:e=>{e()}};var Vyl=e=>Array.isArray(e)?e:[e],Uyl=e=>typeof e=="function";var vvh=(e,t)=>{let r=t?.followSymlinks??!1,n=t?.depth??1/0,i=t?.limit??1/0,o=t?.ignore??[],s=Vyl(o).map(ae=>Uyl(ae)?ae:de=>ae.test(de)),a=ae=>s.some(de=>de(ae)),c=t?.signal??{aborted:!1},u=t?.onDirents||(()=>{}),l=[],p=new Set,d={},f=[],m=new Set,g={},A=[],y=new Set,E={},x={},I=new Set,C={directories:[],directoriesNames:new Set,directoriesNamesToPaths:{},files:[],filesNames:new Set,filesNamesToPaths:{},symlinks:[],symlinksNames:new Set,symlinksNamesToPaths:{},map:{}},T={directories:l,directoriesNames:p,directoriesNamesToPaths:d,files:f,filesNames:m,filesNamesToPaths:g,symlinks:A,symlinksNames:y,symlinksNamesToPaths:E,map:x},{promise:P,increment:D,decrement:O}=Myl(),z=0,J=(ae,de,Oe,Ce)=>{I.has(de)||z>=i||(z+=1,ae.directories.push(de),ae.directoriesNames.add(Oe),l.push(de),p.add(Oe),d.propertyIsEnumerable(Oe)||(d[Oe]=[]),d[Oe].push(de),I.add(de),!(Ce>=n)&&(z>=i||pe(de,Ce+1)))},Y=(ae,de,Oe)=>{I.has(de)||z>=i||(z+=1,ae.files.push(de),ae.filesNames.add(Oe),f.push(de),m.add(Oe),g.propertyIsEnumerable(Oe)||(g[Oe]=[]),g[Oe].push(de),I.add(de))},ee=(ae,de,Oe,Ce)=>{I.has(de)||z>=i||(z+=1,ae.symlinks.push(de),ae.symlinksNames.add(Oe),A.push(de),y.add(Oe),E.propertyIsEnumerable(Oe)||(E[Oe]=[]),E[Oe].push(de),I.add(de),r&&(Ce>=n||z>=i||Be(de,Ce+1)))},oe=(ae,de,Oe,Ce,Ne)=>{c.aborted||a(de)||(Ce.isDirectory()?J(ae,de,Oe,Ne):Ce.isFile()?Y(ae,de,Oe):Ce.isSymbolicLink()&&ee(ae,de,Oe,Ne))},le=(ae,de,Oe,Ce)=>{if(c.aborted)return;let Ne=de===r7t.default.sep?"":r7t.default.sep,Xe=Oe.name,ut=`${de}${Ne}${Xe}`;a(ut)||(Oe.isDirectory()?J(ae,ut,Xe,Ce):Oe.isFile()?Y(ae,ut,Xe):Oe.isSymbolicLink()&&ee(ae,ut,Xe,Ce))},ne=(ae,de,Oe,Ce)=>{for(let Ne=0,Xe=Oe.length;Ne<Xe;Ne++)le(ae,de,Oe[Ne],Ce)},pe=(ae,de)=>{c.aborted||de>n||z>=i||(D(),Mii.default.readdir(ae,{withFileTypes:!0},(Oe,Ce)=>{if(Oe||c.aborted||!Ce.length)return O();(u(Ce)||Lyl).then(()=>{let Xe=x[ae]={directories:[],directoriesNames:new Set,directoriesNamesToPaths:{},files:[],filesNames:new Set,filesNamesToPaths:{},symlinks:[],symlinksNames:new Set,symlinksNamesToPaths:{}};ne(Xe,ae,Ce,de),O()})}))},Be=(ae,de)=>{D(),Mii.default.realpath(ae,(Oe,Ce)=>{if(Oe||c.aborted)return O();Mii.default.stat(Ce,(Ne,Xe)=>{if(Ne||c.aborted)return O();let ut=r7t.default.basename(Ce),At=x[ae]={directories:[],directoriesNames:new Set,directoriesNamesToPaths:{},files:[],filesNames:new Set,filesNamesToPaths:{},symlinks:[],symlinksNames:new Set,symlinksNamesToPaths:{}};oe(At,Ce,ut,Xe,de),O()})})};return(async(ae,de=1)=>(ae=r7t.default.normalize(ae),I.add(ae),pe(ae,de),await P,c.aborted?C:T))(e)},_yl=vvh;var coe={lang:{debounce:zii,attempt:e=>{try{return e()}catch(t){return coe.lang.castError(t)}},castArray:e=>coe.lang.isArray(e)?e:[e],castError:e=>coe.lang.isError(e)?e:coe.lang.isString(e)?new Error(e):new Error("Unknown error"),defer:e=>setTimeout(e,0),isArray:e=>Array.isArray(e),isError:e=>e instanceof Error,isFunction:e=>typeof e=="function",isNaN:e=>Number.isNaN(e),isNumber:e=>typeof e=="number",isPrimitive:e=>{if(e===null)return!0;let t=typeof e;return t!=="object"&&t!=="function"},isShallowEqual:(e,t)=>{if(e===t)return!0;if(coe.lang.isNaN(e))return coe.lang.isNaN(t);if(coe.lang.isPrimitive(e)||coe.lang.isPrimitive(t))return e===t;for(let r in e)if(!(r in t))return!1;for(let r in t)if(e[r]!==t[r])return!1;return!0},isSet:e=>e instanceof Set,isString:e=>typeof e=="string",isUndefined:e=>e===void 0,noop:()=>{},uniq:e=>e.length<2?e:Array.from(new Set(e))},fs:{getDepth:e=>Math.max(0,e.split(Lii.default.sep).length-1),getRealPath:(e,t)=>{try{return t?Grs.default.realpathSync.native(e):Grs.default.realpathSync(e)}catch{return}},isSubPath:(e,t)=>t.startsWith(e)&&t[e.length]===Lii.default.sep&&t.length-e.length>Lii.default.sep.length,poll:(e,t=kyl)=>Qyl.retry.stat(t)(e,{bigint:!0}).catch(coe.lang.noop),readdir:async(e,t,r=1/0,n=1/0,i,o)=>{if(o&&r===1&&e in o){let s=o[e];return[s.directories,s.files]}else{let s=await _yl(e,{depth:r,limit:n,ignore:t,signal:i});return[s.directories,s.files]}}}},rp=coe;var Vii=ye(require("path"),1);var qrs=class{constructor(t,r,n){this.base=n,this.watcher=t,this.handler=r.handler,this.fswatcher=r.watcher,this.options=r.options,this.folderPath=r.folderPath,this.filePath=r.filePath,this.handlerBatched=this.base?this.base.onWatcherEvent.bind(this.base):this._makeHandlerBatched(this.options.debounce)}_isSubRoot(t){return this.filePath?t===this.filePath:t===this.folderPath||rp.fs.isSubPath(this.folderPath,t)}_makeHandlerBatched(t=Pyl){return(()=>{let r=this.watcher._readyWait,n=[],i=new Set,o=async(a,c)=>{let u=this.options.ignoreInitial?[]:a,l=await this.eventsPopulate([...c]),p=this.eventsDeduplicate([...u,...l]);this.onTargetEvents(p)},s=rp.lang.debounce(()=>{this.watcher.isClosed()||(r=o(n,i),n=[],i=new Set)},t);return async(a,c="",u=!1)=>{u?await this.eventsPopulate([c],n,!0):i.add(c),r.then(s)}})()}eventsDeduplicate(t){if(t.length<2)return t;let r={};return t.reduce((n,i)=>{let[o,s]=i,a=r[s];return o===a||o===Bc.CHANGE&&a===Bc.ADD||(r[s]=o,n.push(i)),n},[])}async eventsPopulate(t,r=[],n=!1){return await Promise.all(t.map(async i=>{let o=await this.watcher._poller.update(i,this.options.pollingTimeout);await Promise.all(o.map(async s=>{r.push([s,i]),s===Bc.ADD_DIR?await this.eventsPopulateAddDir(t,i,r,n):s===Bc.UNLINK_DIR&&await this.eventsPopulateUnlinkDir(t,i,r,n)}))})),r}async eventsPopulateAddDir(t,r,n=[],i=!1){if(i)return n;let o=this.options.recursive?this.options.depth??dDe:Math.min(1,this.options.depth??dDe),s=this.options.limit??$qt,[a,c]=await rp.fs.readdir(r,this.options.ignore,o,s,this.watcher._closeSignal),u=[...a,...c];return await Promise.all(u.map(l=>{if(!this.watcher.isIgnored(l,this.options.ignore)&&!t.includes(l))return this.eventsPopulate([l],n,!0)})),n}async eventsPopulateUnlinkDir(t,r,n=[],i=!1){if(i)return n;for(let o of this.watcher._poller.stats.keys())rp.fs.isSubPath(r,o)&&(t.includes(o)||await this.eventsPopulate([o],n,!0));return n}onTargetAdd(t){this._isSubRoot(t)&&(this.options.renameDetection?this.watcher._locker.getLockTargetAdd(t,this.options.renameTimeout):this.watcher.event(Bc.ADD,t))}onTargetAddDir(t){t!==this.folderPath&&this.options.recursive&&!mDe&&this.options.native!==!1&&this.watcher.watchDirectory(t,this.options,this.handler,void 0,this.base||this),this._isSubRoot(t)&&(this.options.renameDetection?this.watcher._locker.getLockTargetAddDir(t,this.options.renameTimeout):this.watcher.event(Bc.ADD_DIR,t))}onTargetChange(t){this._isSubRoot(t)&&this.watcher.event(Bc.CHANGE,t)}onTargetUnlink(t){this.watcher.watchersClose(Vii.default.dirname(t),t,!1),this._isSubRoot(t)&&(this.options.renameDetection?this.watcher._locker.getLockTargetUnlink(t,this.options.renameTimeout):this.watcher.event(Bc.UNLINK,t))}onTargetUnlinkDir(t){this.watcher.watchersClose(Vii.default.dirname(t),t,!1),this.watcher.watchersClose(t),this._isSubRoot(t)&&(this.options.renameDetection?this.watcher._locker.getLockTargetUnlinkDir(t,this.options.renameTimeout):this.watcher.event(Bc.UNLINK_DIR,t))}onTargetEvent(t){let[r,n]=t;r===Bc.ADD?this.onTargetAdd(n):r===Bc.ADD_DIR?this.onTargetAddDir(n):r===Bc.CHANGE?this.onTargetChange(n):r===Bc.UNLINK?this.onTargetUnlink(n):r===Bc.UNLINK_DIR&&this.onTargetUnlinkDir(n)}onTargetEvents(t){for(let r of t)this.onTargetEvent(r)}onWatcherEvent(t,r,n=!1){return this.handlerBatched(t,r,n)}onWatcherChange(t=qVe.CHANGE,r){if(this.watcher.isClosed())return;let n=Vii.default.resolve(this.folderPath,r||"");this.filePath&&n!==this.folderPath&&n!==this.filePath||this.watcher.isIgnored(n,this.options.ignore)||this.onWatcherEvent(t,n)}onWatcherError(t){Mrs&&t.code==="EPERM"?this.onWatcherChange(qVe.CHANGE,""):this.watcher.error(t)}async init(){await this.initWatcherEvents(),await this.initInitialEvents()}async initWatcherEvents(){let t=this.onWatcherChange.bind(this);this.fswatcher.on(e7t.CHANGE,t);let r=this.onWatcherError.bind(this);this.fswatcher.on(e7t.ERROR,r)}async initInitialEvents(){let t=!this.watcher.isReady();if(this.filePath){if(this.watcher._poller.stats.has(this.filePath))return;await this.onWatcherEvent(qVe.CHANGE,this.filePath,t)}else{let r=this.options.recursive&&mDe&&this.options.native!==!1?this.options.depth??dDe:Math.min(1,this.options.depth??dDe),n=this.options.limit??$qt,[i,o]=await rp.fs.readdir(this.folderPath,this.options.ignore,r,n,this.watcher._closeSignal,this.options.readdirMap),s=[this.folderPath,...i,...o];await Promise.all(s.map(a=>{if(!this.watcher._poller.stats.has(a)&&!this.watcher.isIgnored(a,this.options.ignore))return this.onWatcherEvent(qVe.CHANGE,a,t)}))}}},Gyl=qrs;var ON={interval:100,intervalId:void 0,fns:new Map,init:()=>{ON.intervalId||(ON.intervalId=setInterval(ON.resolve,ON.interval))},reset:()=>{ON.intervalId&&(clearInterval(ON.intervalId),delete ON.intervalId)},add:(e,t)=>{ON.fns.set(e,Date.now()+t),ON.init()},remove:e=>{ON.fns.delete(e)},resolve:()=>{if(!ON.fns.size)return ON.reset();let e=Date.now();for(let[t,r]of ON.fns)r>=e||(ON.remove(t),t())}},n7t=ON;var i7t=class e{constructor(t){this._watcher=t,this.reset()}getLockAdd(t,r=Lrs){let{ino:n,targetPath:i,events:o,locks:s}=t,a=()=>{let p=this._watcher._poller.paths.find(n||-1,d=>d!==i);if(p&&p!==i){if(rp.fs.getRealPath(i,!0)===p)return;this._watcher.event(o.rename,p,i)}else this._watcher.event(o.add,i)};if(!n)return a();let c=()=>{s.add.delete(n),n7t.remove(u)},u=()=>{c(),a()};n7t.add(u,r);let l=()=>{let p=s.unlink.get(n);if(!p)return;c();let d=p();i===d?o.change&&this._watcher._poller.stats.has(i)&&this._watcher.event(o.change,i):this._watcher.event(o.rename,d,i)};s.add.set(n,l),l()}getLockUnlink(t,r=Lrs){let{ino:n,targetPath:i,events:o,locks:s}=t,a=()=>{this._watcher.event(o.unlink,i)};if(!n)return a();let c=()=>{s.unlink.delete(n),n7t.remove(u)},u=()=>{c(),a()};n7t.add(u,r);let l=()=>(c(),i);s.unlink.set(n,l),s.add.get(n)?.()}getLockTargetAdd(t,r){let n=this._watcher._poller.getIno(t,Bc.ADD,soe.FILE);return this.getLockAdd({ino:n,targetPath:t,events:e.FILE_EVENTS,locks:this._locksFile},r)}getLockTargetAddDir(t,r){let n=this._watcher._poller.getIno(t,Bc.ADD_DIR,soe.DIR);return this.getLockAdd({ino:n,targetPath:t,events:e.DIR_EVENTS,locks:this._locksDir},r)}getLockTargetUnlink(t,r){let n=this._watcher._poller.getIno(t,Bc.UNLINK,soe.FILE);return this.getLockUnlink({ino:n,targetPath:t,events:e.FILE_EVENTS,locks:this._locksFile},r)}getLockTargetUnlinkDir(t,r){let n=this._watcher._poller.getIno(t,Bc.UNLINK_DIR,soe.DIR);return this.getLockUnlink({ino:n,targetPath:t,events:e.DIR_EVENTS,locks:this._locksDir},r)}reset(){this._locksAdd=new Map,this._locksAddDir=new Map,this._locksUnlink=new Map,this._locksUnlinkDir=new Map,this._locksDir={add:this._locksAddDir,unlink:this._locksUnlinkDir},this._locksFile={add:this._locksAdd,unlink:this._locksUnlink}}};i7t.DIR_EVENTS={add:Bc.ADD_DIR,rename:Bc.RENAME_DIR,unlink:Bc.UNLINK_DIR};i7t.FILE_EVENTS={add:Bc.ADD,change:Bc.CHANGE,rename:Bc.RENAME,unlink:Bc.UNLINK};var qyl=i7t;var Wrs=class{constructor(){this.map=new Map}clear(){this.map.clear()}delete(t,r){if(rp.lang.isUndefined(r))return this.map.delete(t);if(this.map.has(t)){let n=this.map.get(t);if(rp.lang.isSet(n)){let i=n.delete(r);return n.size||this.map.delete(t),i}else if(n===r)return this.map.delete(t),!0}return!1}find(t,r){if(this.map.has(t)){let n=this.map.get(t);if(rp.lang.isSet(n))return Array.from(n).find(r);if(r(n))return n}}get(t){return this.map.get(t)}has(t,r){if(rp.lang.isUndefined(r))return this.map.has(t);if(this.map.has(t)){let n=this.map.get(t);return rp.lang.isSet(n)?n.has(r):n===r}return!1}set(t,r){if(this.map.has(t)){let n=this.map.get(t);rp.lang.isSet(n)?n.add(r):n!==r&&this.map.set(t,new Set([n,r]))}else this.map.set(t,r);return this}},Hrs=Wrs;var Krs=class{constructor(t){this.ino=t.ino<=Number.MAX_SAFE_INTEGER?Number(t.ino):t.ino,this.size=Number(t.size),this.atimeMs=Number(t.atimeMs),this.mtimeMs=Number(t.mtimeMs),this.ctimeMs=Number(t.ctimeMs),this.birthtimeMs=Number(t.birthtimeMs),this._isFile=t.isFile(),this._isDirectory=t.isDirectory(),this._isSymbolicLink=t.isSymbolicLink()}isFile(){return this._isFile}isDirectory(){return this._isDirectory}isSymbolicLink(){return this._isSymbolicLink}},Wyl=Krs;var Jrs=class{constructor(){this.inos={},this.paths=new Hrs,this.stats=new Map}getIno(t,r,n){let i=this.inos[r];if(!i)return;let o=i[t];if(o&&!(n&&o[1]!==n))return o[0]}getStats(t){return this.stats.get(t)}async poll(t,r){let n=await rp.fs.poll(t,r);if(!(!n||!(n.isFile()||n.isDirectory())))return new Wyl(n)}reset(){this.inos={},this.paths=new Hrs,this.stats=new Map}async update(t,r){let n=this.getStats(t),i=await this.poll(t,r);if(this.updateStats(t,i),!n&&i){if(i.isFile())return this.updateIno(t,Bc.ADD,i),[Bc.ADD];if(i.isDirectory())return this.updateIno(t,Bc.ADD_DIR,i),[Bc.ADD_DIR]}else if(n&&!i){if(n.isFile())return this.updateIno(t,Bc.UNLINK,n),[Bc.UNLINK];if(n.isDirectory())return this.updateIno(t,Bc.UNLINK_DIR,n),[Bc.UNLINK_DIR]}else if(n&&i){if(n.isFile()){if(i.isFile())return n.ino===i.ino&&!n.size&&!i.size?[]:(this.updateIno(t,Bc.CHANGE,i),[Bc.CHANGE]);if(i.isDirectory())return this.updateIno(t,Bc.UNLINK,n),this.updateIno(t,Bc.ADD_DIR,i),[Bc.UNLINK,Bc.ADD_DIR]}else if(n.isDirectory()){if(i.isFile())return this.updateIno(t,Bc.UNLINK_DIR,n),this.updateIno(t,Bc.ADD,i),[Bc.UNLINK_DIR,Bc.ADD];if(i.isDirectory())return n.ino===i.ino?[]:(this.updateIno(t,Bc.UNLINK_DIR,n),this.updateIno(t,Bc.ADD_DIR,i),[Bc.UNLINK_DIR,Bc.ADD_DIR])}}return[]}updateIno(t,r,n){let i=this.inos[r]=this.inos[r]||(this.inos[r]={}),o=n.isFile()?soe.FILE:soe.DIR;i[t]=[n.ino,o]}updateStats(t,r){if(r)this.paths.set(r.ino,t),this.stats.set(t,r);else{let n=this.stats.get(t)?.ino||-1;this.paths.delete(n,t),this.stats.delete(t)}}},Yrs=Jrs;var Xrs=class e extends Hyl.EventEmitter{constructor(t,r,n){super(),this._closed=!1,this._ready=!1,this._closeAborter=new AbortController,this._closeSignal=this._closeAborter.signal,this.on(TN.CLOSE,()=>this._closeAborter.abort()),this._closeWait=new Promise(i=>this.on(TN.CLOSE,i)),this._readyWait=new Promise(i=>this.on(TN.READY,i)),this._locker=new qyl(this),this._roots=new Set,this._poller=new Yrs,this._pollers=new Set,this._subwatchers=new Set,this._watchers={},this._watchersLock=Promise.resolve(),this._watchersRestorable={},this.watch(t,r,n)}isClosed(){return this._closed}isIgnored(t,r){return!!r&&(rp.lang.isFunction(r)?!!r(t):r.test(t))}isReady(){return this._ready}close(){return this._locker.reset(),this._poller.reset(),this._roots.clear(),this.watchersClose(),this.isClosed()?!1:(this._closed=!0,this.emit(TN.CLOSE))}error(t){if(this.isClosed())return!1;let r=rp.lang.castError(t);return this.emit(TN.ERROR,r)}event(t,r,n){return this.isClosed()?!1:(this.emit(TN.ALL,t,r,n),this.emit(t,r,n))}ready(){return this.isClosed()||this.isReady()?!1:(this._ready=!0,this.emit(TN.READY))}pollerExists(t,r){for(let n of this._pollers)if(n.targetPath===t&&rp.lang.isShallowEqual(n.options,r))return!0;return!1}subwatcherExists(t,r){for(let n of this._subwatchers)if(n.targetPath===t&&rp.lang.isShallowEqual(n.options,r))return!0;return!1}watchersClose(t,r,n=!0){if(t){let i=this._watchers[t];if(i)for(let o of[...i])r&&o.filePath!==r||this.watcherClose(o);if(n)for(let o in this._watchers)rp.fs.isSubPath(t,o)&&this.watchersClose(o,r,!1)}else for(let i in this._watchers)this.watchersClose(i,r,!1)}watchersLock(t){return this._watchersLock.then(()=>this._watchersLock=new Promise(async r=>{await t(),r()}))}watchersRestore(){delete this._watchersRestoreTimeout;let t=Object.entries(this._watchersRestorable);this._watchersRestorable={};for(let[r,n]of t)this.watchPath(r,n.options,n.handler)}async watcherAdd(t,r){let{folderPath:n}=t;(this._watchers[n]=this._watchers[n]||[]).push(t);let o=new Gyl(this,t,r);return await o.init(),o}watcherClose(t){t.watcher.close();let r=this._watchers[t.folderPath];if(r){let o=r.indexOf(t);r.splice(o,1),r.length||delete this._watchers[t.folderPath]}let n=t.filePath||t.folderPath;this._roots.has(n)&&(this._watchersRestorable[n]=t,this._watchersRestoreTimeout||(this._watchersRestoreTimeout=rp.lang.defer(()=>this.watchersRestore())))}watcherExists(t,r,n,i){if(this._watchers[t]?.find(a=>a.handler===n&&(!a.filePath||a.filePath===i)&&a.options.ignore===r.ignore&&!!a.options.native==!!r.native&&(!r.recursive||a.options.recursive)))return!0;let s=WVe.default.dirname(t);for(let a=1;a<1/0;a++){if(this._watchers[s]?.find(l=>(a===1||l.options.recursive&&a<=(l.options.depth??dDe))&&l.handler===n&&(!l.filePath||l.filePath===i)&&l.options.ignore===r.ignore&&!!l.options.native==!!r.native&&(!r.recursive||l.options.recursive&&mDe&&l.options.native!==!1)))return!0;if(!mDe)break;let u=WVe.default.dirname(t);if(s===u)break;s=u}return!1}async watchDirectories(t,r,n,i,o){if(this.isClosed())return;t=rp.lang.uniq(t).sort();let s;for(let a of t)if(!this.isIgnored(a,r.ignore)&&!this.watcherExists(a,r,n,i))try{let c=!r.recursive||mDe&&r.native!==!1?r:{...r,recursive:!1},l={watcher:Uii.default.watch(a,c),handler:n,options:r,folderPath:a,filePath:i},p=s=await this.watcherAdd(l,o);if(this._roots.has(i||a)){let f={...r,ignoreInitial:!0,recursive:!1},m=WVe.default.dirname(a),g=a;await this.watchDirectories([m],f,n,g,p)}}catch(c){this.error(c)}return s}async watchDirectory(t,r,n,i,o){if(!this.isClosed()&&!this.isIgnored(t,r.ignore)){if(!r.recursive||mDe&&r.native!==!1)return this.watchersLock(()=>this.watchDirectories([t],r,n,i,o));{r={...r,recursive:!0};let s=r.depth??dDe,a=r.limit??$qt,[c]=await rp.fs.readdir(t,r.ignore,s,a,this._closeSignal,r.readdirMap);return this.watchersLock(async()=>{let u=await this.watchDirectories([t],r,n,i,o);if(c.length){let l=rp.fs.getDepth(t);for(let p of c){let d=rp.fs.getDepth(p),f=Math.max(0,s-(d-l)),m={...r,depth:f};await this.watchDirectories([p],m,n,i,o||u)}}})}}}async watchFileOnce(t,r,n){if(this.isClosed()||(r={...r,ignoreInitial:!1},this.subwatcherExists(t,r)))return;let i={targetPath:t,options:r},o=(u,l)=>{l===t&&(c(),n())},s=new e(o),a=()=>{this._subwatchers.add(i),this.on(TN.CLOSE,c),s.watchFile(t,r,o)},c=()=>{this._subwatchers.delete(i),this.removeListener(TN.CLOSE,c),s.close()};return a()}async watchFile(t,r,n){if(this.isClosed()||this.isIgnored(t,r.ignore))return;r={...r,recursive:!1};let i=WVe.default.dirname(t);return this.watchDirectory(i,r,n,t)}async watchPollingOnce(t,r,n){if(this.isClosed())return;let i=!1,o=new Yrs,s=await this.watchPolling(t,r,async()=>{i||!(await o.update(t,r.pollingTimeout)).length||i||(i=!0,s(),n())})}async watchPolling(t,r,n){if(this.isClosed())return rp.lang.noop;if(this.pollerExists(t,r))return rp.lang.noop;let i={...r,interval:r.pollingInterval??Ryl},o={targetPath:t,options:r},s=()=>{this._pollers.add(o),this.on(TN.CLOSE,a),Uii.default.watchFile(t,i,n)},a=()=>{this._pollers.delete(o),this.removeListener(TN.CLOSE,a),Uii.default.unwatchFile(t,n)};return rp.lang.attempt(s),()=>rp.lang.attempt(a)}async watchUnknownChild(t,r,n){if(this.isClosed())return;let i=()=>this.watchPath(t,r,n);return this.watchFileOnce(t,r,i)}async watchUnknownTarget(t,r,n){if(this.isClosed())return;let i=()=>this.watchPath(t,r,n);return this.watchPollingOnce(t,r,i)}async watchPaths(t,r,n){if(this.isClosed())return;if(t=rp.lang.uniq(t).sort(),t.every((o,s)=>t.every((a,c)=>c===s||!rp.fs.isSubPath(o,a))))await Promise.all(t.map(o=>this.watchPath(o,r,n)));else for(let o of t)await this.watchPath(o,r,n)}async watchPath(t,r,n){if(this.isClosed()||(t=WVe.default.resolve(t),this.isIgnored(t,r.ignore)))return;let i=await rp.fs.poll(t,r.pollingTimeout);if(i){if(i.isFile())return this.watchFile(t,r,n);if(i.isDirectory())return this.watchDirectory(t,r,n);this.error(`"${t}" is not supported`)}else{let o=WVe.default.dirname(t);return(await rp.fs.poll(o,r.pollingTimeout))?.isDirectory()?this.watchUnknownChild(t,r,n):this.watchUnknownTarget(t,r,n)}}async watch(t,r,n=rp.lang.noop){if(rp.lang.isFunction(t))return this.watch([],{},t);if(rp.lang.isUndefined(t))return this.watch([],r,n);if(rp.lang.isFunction(r))return this.watch(t,{},r);if(rp.lang.isUndefined(r))return this.watch(t,{},n);if(this.isClosed())return;this.isReady()&&(r.readdirMap=void 0);let i=rp.lang.castArray(t);i.forEach(o=>this._roots.add(o)),await this.watchPaths(i,r,n),!this.isClosed()&&(n!==rp.lang.noop&&this.on(TN.ALL,n),r.readdirMap=void 0,this.ready())}},Kyl=Xrs;function xvh(e){return"code"in e&&typeof e.code=="string"}function Jyl(e){return e instanceof Error?e:new Error(String(e))}function Yyl(e){return xvh(e)&&e.code==="ENOSPC"?"Unable to watch Fern docs files for changes because the system limit for file watchers was reached. Close other file-watching processes or increase the file watcher limit, then restart `fern docs dev`.":`Unable to watch Fern docs files for changes: ${e.message}`}async function _ii({absoluteFilePathToFern:e,additionalFilepaths:t,context:r}){let n=new Kyl([e,...t],{recursive:!0,ignoreInitial:!0,debounce:100,renameDetection:!0}),i=await new Promise(o=>{let s=()=>{n.off("error",a),o(void 0)},a=c=>{n.off("ready",s),o(Jyl(c))};n.once("ready",s),n.once("error",a)});return i!=null&&(n.close(),r.failAndThrow(Yyl(i),i,{code:S.Code.EnvironmentError})),n.on("error",o=>{let s=Jyl(o);r.failWithoutThrowing(Yyl(s),s,{code:S.Code.EnvironmentError}),n.close()}),n}Jt();RE();jt();En();var Zxl=require("child_process"),rsi=ye(sns(),1),$xl=ye(bis(),1),sI=require("fs"),dP=require("fs/promises"),eCl=require("os"),PN=ye(require("path"),1),tCl=ye(IE(),1),rCl=ye(Xxl(),1),tUe=process.platform==="win32",tsi=fe.cyan("[docs]:"),$Sh="etag",e1h=23,Pis=e=>e.padEnd(e1h," "),t1h="preview",r1h="app-preview",n1h="bundle",i1h=".next",o1h="standalone",s1h=".fern",a1h="packages/fern-docs/bundle/.next/server/instrumentation.js",c1h='Cannot find matching keyid: {"signatures":',u1h="ERR_PNPM_IGNORED_BUILDS";function l1h(e){try{let r=(0,Zxl.execSync)('reg query "HKLM\\SYSTEM\\CurrentControlSet\\Control\\FileSystem" /v LongPathsEnabled',{encoding:"utf-8",timeout:5e3}).match(/LongPathsEnabled\s+REG_DWORD\s+0x(\d+)/i);if(r!=null&&r[1]==="1")return}catch(t){e.debug(`Registry query for LongPathsEnabled failed: ${t}`)}throw new S({message:`Windows long path support is not enabled. The docs bundle contains deeply nested .pnpm paths that exceed the 260-character MAX_PATH limit.
3946
3946
 
@@ -4290,7 +4290,7 @@ Please ensure you have membership at https://dashboard.buildwithfern.com, and as
4290
4290
  `);i.failAndThrow(s!=null?`No docs instance found matching '${s}'.
4291
4291
 
4292
4292
  Available instances:
4293
- ${I}`:"No docs instance found. Failed to register.",void 0,{code:S.Code.ConfigError});return}let E=(typeof y.customDomain=="string"?[y.customDomain]:y.customDomain??[]).map(yql);bql(y.url,E,i),i.logger.info(`Starting docs publishing for ${a?"preview":"production"}: ${y.url}`),i.logger.debug(`Organization: ${e}, Preview: ${a}, APIs: ${t.length}, OSS: ${r.length}`);let x;return await i.runInteractiveTask({name:y.url},async()=>{let I=performance.now(),C=()=>P$l({docsWorkspace:n,customDomains:E,domain:y.url,token:o,organization:e,context:i,apiWorkspaces:t,ossWorkspaces:r,preview:a,previewId:c,editThisPage:y.editThisPage,disableTemplates:u,skipUpload:l,withAiExamples:n.config.aiExamples?.enabled??n.config.experimental?.aiExamples??!0,excludeApis:n.config.experimental?.excludeApis??!1,targetAudiences:y.audiences?Array.isArray(y.audiences)?y.audiences:[y.audiences]:void 0,docsUrl:y.url,cliVersion:p,ciSource:d,deployerAuthor:f,loginCommand:m,multiSource:y.multiSource??!1});for(let P=0;;P++)try{x=await C();break}catch(D){if(!(D instanceof QCt)||P>=nJt.length){if(D instanceof QCt)return i.failAndThrow("Another docs publish is currently in progress. Please try again once the other publish is complete.",void 0,{code:S.Code.NetworkError});throw D}let O=nJt[P]??nJt[nJt.length-1]??6e4,z=O/6e4;i.logger.warn(`Another docs publish is in progress. Retrying in ${z} minute${z===1?"":"s"} (attempt ${P+1}/${nJt.length})...`),await new Promise(J=>setTimeout(J,O))}let T=performance.now()-I;i.logger.debug(`Docs publishing completed in ${T.toFixed(0)}ms`)}),x}jt();var Ggi=class{context;task;project;docsWorkspace;ossWorkspaces;token;constructor({context:t,task:r,project:n,docsWorkspace:i,ossWorkspaces:o,token:s}){this.context=t,this.task=r,this.project=n,this.docsWorkspace=i,this.ossWorkspaces=o,this.token=s}async publish({instanceUrl:t,preview:r,previewId:n,skipUpload:i}){let o=new Ad({context:this.context,task:this.task});try{let s=await iJt({organization:this.project.config.organization,apiWorkspaces:this.project.apiWorkspaces,ossWorkspaces:this.ossWorkspaces,docsWorkspace:this.docsWorkspace,context:o,token:this.token,instanceUrl:t,preview:r,previewId:n,disableTemplates:void 0,skipUpload:i,cliVersion:"5.118.0",loginCommand:"fern auth login"});return o.getResult()===Vf.Failure?{success:!1}:{success:!0,url:s}}catch(s){return{success:!1,error:Fn(s)}}}};Bt();En();var zCt=class e{static MAX_DISPLAYED_LOGS_TTY=10;static URL_PATTERN=/https?:\/\/[^\s]+/;context;stream;tasks={};taskOrder=[];startTime;isRegistered=!1;constructor(t){this.context=t.context,this.stream=t.stream??process.stderr}addTask(t){let r={...t,status:t.status??"pending"};return this.tasks[t.id]=r,this.taskOrder.push(t.id),this}async start(t){return this.startTime=Date.now(),t!=null&&await this.context.ttyAwareLogger.takeOverTerminal(()=>{this.stream.write(`
4293
+ ${I}`:"No docs instance found. Failed to register.",void 0,{code:S.Code.ConfigError});return}let E=(typeof y.customDomain=="string"?[y.customDomain]:y.customDomain??[]).map(yql);bql(y.url,E,i),i.logger.info(`Starting docs publishing for ${a?"preview":"production"}: ${y.url}`),i.logger.debug(`Organization: ${e}, Preview: ${a}, APIs: ${t.length}, OSS: ${r.length}`);let x;return await i.runInteractiveTask({name:y.url},async()=>{let I=performance.now(),C=()=>P$l({docsWorkspace:n,customDomains:E,domain:y.url,token:o,organization:e,context:i,apiWorkspaces:t,ossWorkspaces:r,preview:a,previewId:c,editThisPage:y.editThisPage,disableTemplates:u,skipUpload:l,withAiExamples:n.config.aiExamples?.enabled??n.config.experimental?.aiExamples??!0,excludeApis:n.config.experimental?.excludeApis??!1,targetAudiences:y.audiences?Array.isArray(y.audiences)?y.audiences:[y.audiences]:void 0,docsUrl:y.url,cliVersion:p,ciSource:d,deployerAuthor:f,loginCommand:m,multiSource:y.multiSource??!1});for(let P=0;;P++)try{x=await C();break}catch(D){if(!(D instanceof QCt)||P>=nJt.length){if(D instanceof QCt)return i.failAndThrow("Another docs publish is currently in progress. Please try again once the other publish is complete.",void 0,{code:S.Code.NetworkError});throw D}let O=nJt[P]??nJt[nJt.length-1]??6e4,z=O/6e4;i.logger.warn(`Another docs publish is in progress. Retrying in ${z} minute${z===1?"":"s"} (attempt ${P+1}/${nJt.length})...`),await new Promise(J=>setTimeout(J,O))}let T=performance.now()-I;i.logger.debug(`Docs publishing completed in ${T.toFixed(0)}ms`)}),x}jt();var Ggi=class{context;task;project;docsWorkspace;ossWorkspaces;token;constructor({context:t,task:r,project:n,docsWorkspace:i,ossWorkspaces:o,token:s}){this.context=t,this.task=r,this.project=n,this.docsWorkspace=i,this.ossWorkspaces=o,this.token=s}async publish({instanceUrl:t,preview:r,previewId:n,skipUpload:i}){let o=new Ad({context:this.context,task:this.task});try{let s=await iJt({organization:this.project.config.organization,apiWorkspaces:this.project.apiWorkspaces,ossWorkspaces:this.ossWorkspaces,docsWorkspace:this.docsWorkspace,context:o,token:this.token,instanceUrl:t,preview:r,previewId:n,disableTemplates:void 0,skipUpload:i,cliVersion:"5.119.0",loginCommand:"fern auth login"});return o.getResult()===Vf.Failure?{success:!1}:{success:!0,url:s}}catch(s){return{success:!1,error:Fn(s)}}}};Bt();En();var zCt=class e{static MAX_DISPLAYED_LOGS_TTY=10;static URL_PATTERN=/https?:\/\/[^\s]+/;context;stream;tasks={};taskOrder=[];startTime;isRegistered=!1;constructor(t){this.context=t.context,this.stream=t.stream??process.stderr}addTask(t){let r={...t,status:t.status??"pending"};return this.tasks[t.id]=r,this.taskOrder.push(t.id),this}async start(t){return this.startTime=Date.now(),t!=null&&await this.context.ttyAwareLogger.takeOverTerminal(()=>{this.stream.write(`
4294
4294
  `),this.stream.write(`${fe.cyan("\u25C6")} ${fe.bold(t.title)}
4295
4295
  `),t.subtitle!=null&&this.stream.write(` ${fe.dim(t.subtitle)}
4296
4296
  `),this.stream.write(`
@@ -4965,7 +4965,7 @@ ${r}`}function lIi(e){let t=this,{emitParseErrors:r,...n}={...t.data("settings")
4965
4965
  `),g="";return c&&(g=l.style.error(c)),[`${p} ${f} ${s}`,[m,g].filter(Boolean).join(`
4966
4966
  `)]});var qZg=zx((e,t)=>{let{validate:r=()=>!0}=e,n=EI(e.theme),[i,o]=tu("idle"),[s,a]=tu(),[c,u]=tu(""),l=jx({status:i,theme:n});Qx(async(g,A)=>{if(i==="idle")if(Nx(g)){let y=c;o("loading");let E=await r(y);E===!0?(u(y),o("done"),t(y)):(A.write(c),a(E||"You must provide a valid value"),o("idle"))}else u(A.line),a(void 0)});let p=n.style.message(e.message,i),d="",f;e.mask?d=(typeof e.mask=="string"?e.mask:"*").repeat(c.length):i!=="done"&&(f=`${n.style.help("[input is masked]")}${B1t}`),i==="done"&&(d=n.style.answer(d));let m="";return s&&(m=n.style.error(s)),[[l,p,e.mask?d:f].join(" "),m]});var d9e=ye($w(),1);var WZg={icon:{cursor:PC.pointer},style:{disabled:e=>d9e.default.dim(`- ${e}`),searchTerm:e=>d9e.default.cyan(e),description:e=>d9e.default.cyan(e),keysHelpTip:e=>e.map(([t,r])=>`${d9e.default.bold(t)} ${d9e.default.dim(r)}`).join(d9e.default.dim(" \u2022 "))},helpMode:"always"};function wzs(e){return!Cd.isSeparator(e)&&!e.disabled}function HZg(e){return e.map(t=>{if(Cd.isSeparator(t))return t;if(typeof t=="string")return{value:t,name:t,short:t,disabled:!1};let r=t.name??String(t.value),n={value:t.value,name:r,short:t.short??r,disabled:t.disabled??!1};return t.description&&(n.description=t.description),n})}var KZg=zx((e,t)=>{let{pageSize:r=7,validate:n=()=>!0}=e,i=EI(WZg,e.theme),[o,s]=tu("loading"),[a,c]=tu(""),[u,l]=tu([]),[p,d]=tu(),f=jx({status:o,theme:i}),m=B6(()=>{let z=u.findIndex(wzs),J=u.findLastIndex(wzs);return{first:z,last:J}},[u]),[g=m.first,A]=tu();O4(()=>{let z=new AbortController;return s("loading"),d(void 0),(async()=>{try{let Y=await e.source(a||void 0,{signal:z.signal});z.signal.aborted||(A(void 0),d(void 0),l(HZg(Y)),s("idle"))}catch(Y){!z.signal.aborted&&Y instanceof Error&&d(Y.message)}})(),()=>{z.abort()}},[a]);let y=u[g];Qx(async(z,J)=>{if(Nx(z))if(y){s("loading");let Y=await n(y.value);s("idle"),Y===!0?(s("done"),t(y.value)):y.name===a?d(Y||"You must provide a valid value"):(J.write(y.name),c(y.name))}else J.write(a);else if(wge(z)&&y)J.clearLine(0),J.write(y.name),c(y.name);else if(o!=="loading"&&(TP(z)||O6(z))){if(J.clearLine(0),TP(z)&&g!==m.first||O6(z)&&g!==m.last){let Y=TP(z)?-1:1,ee=g;do ee=(ee+Y+u.length)%u.length;while(!wzs(u[ee]));A(ee)}}else c(J.line)});let E=i.style.message(e.message,o),x;if(i.helpMode!=="never")if(e.instructions){let{pager:z,navigation:J}=e.instructions;x=i.style.help(u.length>r?z:J)}else x=i.style.keysHelpTip([["\u2191\u2193","navigate"],["\u23CE","select"]]);let I=u9e({items:u,active:g,renderItem({item:z,isActive:J}){if(Cd.isSeparator(z))return` ${z.separator}`;if(z.disabled){let oe=typeof z.disabled=="string"?z.disabled:"(disabled)";return i.style.disabled(`${z.name} ${oe}`)}let Y=J?i.style.highlight:oe=>oe,ee=J?i.icon.cursor:" ";return Y(`${ee} ${z.name}`)},pageSize:r,loop:!1}),C;p?C=i.style.error(p):u.length===0&&a!==""&&o==="idle"&&(C=i.style.error("No results found"));let T;if(o==="done"&&y)return[f,E,i.style.answer(y.short)].filter(Boolean).join(" ").trimEnd();T=i.style.searchTerm(a);let P=y?.description,D=[f,E,T].filter(Boolean).join(" ").trimEnd(),O=[C??I," ",P?i.style.description(P):"",x].filter(Boolean).join(`
4967
4967
  `).trimEnd();return[D,O]});var D1t=ye($w(),1);var JZg={icon:{cursor:PC.pointer},style:{disabled:e=>D1t.default.dim(`- ${e}`),description:e=>D1t.default.cyan(e),keysHelpTip:e=>e.map(([t,r])=>`${D1t.default.bold(t)} ${D1t.default.dim(r)}`).join(D1t.default.dim(" \u2022 "))},helpMode:"always",indexMode:"hidden",keybindings:[]};function P1t(e){return!Cd.isSeparator(e)&&!e.disabled}function YZg(e){return e.map(t=>{if(Cd.isSeparator(t))return t;if(typeof t=="string")return{value:t,name:t,short:t,disabled:!1};let r=t.name??String(t.value),n={value:t.value,name:r,short:t.short??r,disabled:t.disabled??!1};return t.description&&(n.description=t.description),n})}var Szs=zx((e,t)=>{let{loop:r=!0,pageSize:n=7}=e,i=EI(JZg,e.theme),{keybindings:o}=i,[s,a]=tu("idle"),c=jx({status:s,theme:i}),u=c9e(),l=!o.includes("vim"),p=B6(()=>YZg(e.choices),[e.choices]),d=B6(()=>{let P=p.findIndex(P1t),D=p.findLastIndex(P1t);if(P===-1)throw new ice("[select prompt] No selectable choices. All choices are disabled.");return{first:P,last:D}},[p]),f=B6(()=>"default"in e?p.findIndex(P=>P1t(P)&&P.value===e.default):-1,[e.default,p]),[m,g]=tu(f===-1?d.first:f),A=p[m];Qx((P,D)=>{if(clearTimeout(u.current),Nx(P))a("done"),t(A.value);else if(TP(P,o)||O6(P,o)){if(D.clearLine(0),r||TP(P,o)&&m!==d.first||O6(P,o)&&m!==d.last){let O=TP(P,o)?-1:1,z=m;do z=(z+O+p.length)%p.length;while(!P1t(p[z]));g(z)}}else if(cZt(P)&&!Number.isNaN(Number(D.line))){let O=Number(D.line)-1,z=-1,J=p.findIndex(ee=>Cd.isSeparator(ee)?!1:(z++,z===O)),Y=p[J];Y!=null&&P1t(Y)&&g(J),u.current=setTimeout(()=>{D.clearLine(0)},700)}else if(o9e(P))D.clearLine(0);else if(l){let O=D.line.toLowerCase(),z=p.findIndex(J=>Cd.isSeparator(J)||!P1t(J)?!1:J.name.toLowerCase().startsWith(O));z!==-1&&g(z),u.current=setTimeout(()=>{D.clearLine(0)},700)}}),O4(()=>()=>{clearTimeout(u.current)},[]);let y=i.style.message(e.message,s),E;if(i.helpMode!=="never")if(e.instructions){let{pager:P,navigation:D}=e.instructions;E=i.style.help(p.length>n?P:D)}else E=i.style.keysHelpTip([["\u2191\u2193","navigate"],["\u23CE","select"]]);let x=0,I=u9e({items:p,active:m,renderItem({item:P,isActive:D,index:O}){if(Cd.isSeparator(P))return x++,` ${P.separator}`;let z=i.indexMode==="number"?`${O+1-x}. `:"";if(P.disabled){let ee=typeof P.disabled=="string"?P.disabled:"(disabled)";return i.style.disabled(`${z}${P.name} ${ee}`)}let J=D?i.style.highlight:ee=>ee,Y=D?i.icon.cursor:" ";return J(`${Y} ${z}${P.name}`)},pageSize:n,loop:r});if(s==="done")return[c,y,i.style.answer(A.short)].filter(Boolean).join(" ");let{description:C}=A;return`${[[c,y].filter(Boolean).join(" "),I," ",C?i.style.description(C):"",E].filter(Boolean).join(`
4968
- `).trimEnd()}${B1t}`});En();Hi();var oce={GENERATION_STARTED:"generation_started",GENERATION_COMPLETED:"generation_completed",GENERATION_FAILED:"generation_failed",VERIFICATION_FAILED:"verification_failed",SDK_PR_CREATED:"sdk_pr_created",UPGRADE_APPLIED:"upgrade_applied",MAJOR_VERSION_BUMP:"major_version_bump"},XZg={[oce.GENERATION_STARTED]:!1,[oce.GENERATION_COMPLETED]:!1,[oce.GENERATION_FAILED]:!0,[oce.VERIFICATION_FAILED]:!0,[oce.SDK_PR_CREATED]:!1,[oce.UPGRADE_APPLIED]:!1,[oce.MAJOR_VERSION_BUMP]:!1};function kgp(e){return XZg[e]}function Fgp(e,t){return{automation_mode:!0,surface:"cli",action:t.action,run_id:t.run_id,github_run_id:t.github_run_id,github_run_url:t.github_run_url,org:t.org,config_repo:t.config_repo,config_commit_sha:t.config_commit_sha,config_branch:t.config_branch,config_pr_number:t.config_pr_number,trigger:t.trigger,cli_version:t.cli_version,...e.errorCode!==void 0?{error_code:e.errorCode}:{},...e.attributes??{}}}function Ngp(e,t){function r(i,o,s){s!=null&&(i[o]=s)}let n={surface:"cli",automation_mode:"true"};return r(n,"event",e.event),r(n,"action",t.action),r(n,"run_id",t.run_id),r(n,"org",t.org),r(n,"config_repo",t.config_repo),r(n,"trigger",t.trigger),r(n,"error_code",e.errorCode??"none"),n}function jgp(e,t){return{github_run_id:t.github_run_id,github_run_url:t.github_run_url,config_commit_sha:t.config_commit_sha,config_branch:t.config_branch,config_pr_number:t.config_pr_number,cli_version:t.cli_version,...e.attributes??{}}}function Qgp(e,t){return{event:e.event,timestamp:new Date().toISOString(),surface:"cli",action:t.action,run_id:t.run_id,github_run_id:t.github_run_id,github_run_url:t.github_run_url,org:t.org,config_repo:t.config_repo,config_commit_sha:t.config_commit_sha,config_branch:t.config_branch,config_pr_number:t.config_pr_number,trigger:t.trigger,cli_version:t.cli_version,...e.errorCode!==void 0?{error_code:e.errorCode}:{},...e.attributes??{}}}function zgp(e){let t=e.join(" ");return/\bautomations\s+generate\b/.test(t)?oce.GENERATION_FAILED:/\bautomations\s+preview\b/.test(t)?oce.VERIFICATION_FAILED:oce.GENERATION_FAILED}var ZZg="",$Zg="FERN_AUTOMATION_EVENTS_ORIGIN",e$g=3e3,WIi=class e{static instance;origin;inflight=[];static getInstance(){return e.instance==null&&(e.instance=new e(process.env[$Zg]??ZZg)),e.instance}constructor(t){this.origin=t}resolveEndpoint(){if(this.origin.length!==0)return`${this.origin.replace(/\/$/,"")}/v1/automation/events`}post(t,r){this.inflight.push(this.send(t,r))}async shutdown(){let t=this.inflight;this.inflight=[],t.length>0&&await Promise.allSettled(t)}async send(t,r){let n=this.resolveEndpoint();if(n==null)return;let i=new AbortController,o=setTimeout(()=>i.abort(),e$g);try{let s={"content-type":"application/json"},a=await oz();a!=null&&a.value.length>0&&(s.Authorization=`Bearer ${a.value}`);let c=await fetch(n,{method:"POST",headers:s,body:JSON.stringify(Qgp(t,r)),signal:i.signal})}catch{return}finally{clearTimeout(o)}}};function Mgp(){let{fern_run_id:e,github_run_id:t}=Qce();return{action:process.env.FERN_ACTION,run_id:e,github_run_id:t,github_run_url:process.env.FERN_GITHUB_RUN_URL,org:void 0,config_repo:process.env.FERN_CONFIG_REPO,config_commit_sha:process.env.FERN_CONFIG_COMMIT_SHA,config_branch:process.env.FERN_CONFIG_BRANCH,config_pr_number:process.env.FERN_CONFIG_PR_NUMBER,trigger:process.env.GITHUB_EVENT_NAME,cli_version:"5.118.0"}}function Lgp(){return process.env.FERN_AUTOMATION==="true"}var HIi=class{constructor(t,r=WIi.getInstance()){this.reporter=t;this.automationEventApiClient=r;this.context=Mgp()}reporter;automationEventApiClient;context;setOrganization(t){this.context={...this.context,org:t}}emit(t,r){let n=this.captureSentryForFailure({event:t,context:this.context,error:r?.error}),i=n==null?t:{...t,attributes:{...t.attributes??{},sentry_event_id:n}};this.capturePostHogEvent({event:i,context:this.context}),this.captureAutomationEventApiEvent(i,this.context)}async flush(){await this.automationEventApiClient.shutdown()}capturePostHogEvent({event:t,context:r}){this.reporter.instrumentPostHogAutomationEvent({distinctId:r.run_id??void 0,event:t.event,properties:Fgp(t,r)})}captureSentryForFailure({event:t,context:r,error:n}){if(!(!kgp(t.event)||t.errorCode==null))return this.reporter.captureException(n,{tags:Ngp(t,r),context:{automation:jgp(t,r)}})}captureAutomationEventApiEvent(t,r){this.automationEventApiClient.post(t,r)}};jt();function KIi(e,t,r){if(t instanceof iu)return;let n=J2e(t,r?.code),i=r?.argv??process.argv,o=i.join(" "),s=r?.message??(t instanceof Error?t.message:void 0)??"",a=t??new S({message:s,code:n});Lgp()?r$g(i,e,n,s,a):t$g(e,o,n,a)}function t$g(e,t,r,n){e.instrumentPostHogEvent({command:t,properties:{failed:!0,errorCode:r}}),nDt(r)&&e.captureException(n,{tags:{"error.code":r}})}function r$g(e,t,r,n,i){let o=zgp(e);t.emitAutomationTelemetryEvent({event:o,errorCode:r,attributes:{error_message:n}},{error:i})}jt();function m9e(){return process.env.FERN_DISABLE_TELEMETRY==="true"}function JIi({cliName:e,packageVersion:t,isLocal:r}){return m9e()||r?!1:!(t==="0.0.0")&&(e==="fern"&&!0)}var YIi=class{sentry;constructor({release:t,telemetry:r}){let n="https://84f58b5e457f06999d92f11ce4b79158@o4509504076185600.ingest.us.sentry.io/4511021546602496";if(JIi(r)&&n!=null&&n.length>0){let i="production";if(i==null||i.length===0)throw new S({message:"SENTRY_ENVIRONMENT must be set when SENTRY_DSN is configured",code:S.Code.ConfigError});this.sentry=JPt({dsn:n,release:t,environment:i,defaultIntegrations:!1,integrations:[lqe(),BAe(),PAe(),dAe(),OAe()],tracesSampleRate:0,attachStacktrace:!0,sendClientReports:!1}),YPt()}}captureException(t,r){if(this.sentry!=null)try{let n=r?.tags,i=r?.context,o=n!=null&&Object.keys(n).length>0,s=i!=null&&Object.values(i).some(a=>a!=null);return!o&&!s?this.sentry.captureException(t):FO(a=>{if(o&&a.setTags(n),i!=null)for(let[c,u]of Object.entries(i))u!=null&&a.setContext(c,u);return this.sentry?.captureException(t,void 0,a)})}catch{return}}async flush(){this.sentry!=null&&await Promise.resolve(this.sentry.flush(2e3)).catch(()=>{})}};jt();var XIi=class{originalWrite;redirected=!1;redirect(){if(this.redirected)throw new S({message:"StdoutRedirector: already redirected \u2014 did you forget to restore()?",code:S.Code.InternalError});this.originalWrite=process.stdout.write,process.stdout.write=process.stderr.write.bind(process.stderr),this.redirected=!0}restore(){!this.redirected||this.originalWrite==null||(process.stdout.write=this.originalWrite,this.originalWrite=void 0,this.redirected=!1)}async withRedirect(t){this.redirect();try{return await t()}finally{this.restore()}}};ife();Bt();Bb();jt();En();var fZt=class{result=Vf.Success;lastFailureMessage=void 0;logImmediately;logPrefix;title;subtasks=[];shouldBufferLogs;bufferedLogs=[];status="notStarted";onResult;instrumentPostHogEventImpl;captureExceptionImpl;emitAutomationTelemetryEventImpl;constructor({logImmediately:t,logPrefix:r,title:n,takeOverTerminal:i,onResult:o,shouldBufferLogs:s,instrumentPostHogEvent:a,captureException:c,emitAutomationTelemetryEvent:u}){this.logImmediately=t,this.logPrefix=r??"",this.title=n,this.takeOverTerminal=i,this.onResult=o,this.shouldBufferLogs=s,this.instrumentPostHogEventImpl=a,this.captureExceptionImpl=c,this.emitAutomationTelemetryEventImpl=u}start(){return this.status="running",this}isStarted(){return this.status!=="notStarted"}finish(){this.status!=="finished"&&(this.status="finished",this.flushLogs(),this.onResult?.(this.getResult()))}isFinished(){return this.status==="finished"}takeOverTerminal;failAndThrow(t,r,n){throw this.failWithoutThrowing(t,r,n),this.finish(),new iu}failWithoutThrowing(t,r,n){this.result=Vf.Failure,!(r instanceof iu)&&(t!=null&&(this.lastFailureMessage=t),jLt({message:t,error:r,logger:this.logger}),KIi(this,r,{...n,message:t}))}getLastFailureMessage(){return this.lastFailureMessage}captureException(t,r){return this.captureExceptionImpl?.(t,r)}emitAutomationTelemetryEvent(t,r){this.emitAutomationTelemetryEventImpl(t,r)}getResult(){return this.result}instrumentPostHogEvent(t){this.instrumentPostHogEventImpl(t)}logAtLevel(t,...r){this.logAtLevelWithOverrides(t,r)}logAtLevelWithOverrides(t,r,n={}){this.log({parts:r,level:t,time:new Date,...n})}log(t){this.bufferedLogs.push({...t,prefix:this.logPrefix}),this.shouldBufferLogs||this.flushLogs()}flushLogs(){this.logImmediately(this.bufferedLogs),this.bufferedLogs=[]}logger=Ov(this.logAtLevel.bind(this));addInteractiveTask({name:t,subtitle:r}){let n=new Tzs({name:t,subtitle:r,logImmediately:i=>this.logImmediately(i),logPrefix:`${this.logPrefix}${fe.blackBright(t)} `,takeOverTerminal:this.takeOverTerminal,onResult:this.onResult,shouldBufferLogs:this.shouldBufferLogs,instrumentPostHogEvent:i=>this.instrumentPostHogEventImpl(i),captureException:this.captureExceptionImpl,emitAutomationTelemetryEvent:this.emitAutomationTelemetryEventImpl});return this.subtasks.push(n),n}async runInteractiveTask(t,r){let n=this.addInteractiveTask(t).start();try{await r(n)}catch(i){n.failWithoutThrowing(void 0,i)}finally{n.finish()}return n.getResult()===Vf.Success}printInteractiveTasks({spinner:t}){return this.subtasks.map(r=>r.print({spinner:t})).join(`
4968
+ `).trimEnd()}${B1t}`});En();Hi();var oce={GENERATION_STARTED:"generation_started",GENERATION_COMPLETED:"generation_completed",GENERATION_FAILED:"generation_failed",VERIFICATION_FAILED:"verification_failed",SDK_PR_CREATED:"sdk_pr_created",UPGRADE_APPLIED:"upgrade_applied",MAJOR_VERSION_BUMP:"major_version_bump"},XZg={[oce.GENERATION_STARTED]:!1,[oce.GENERATION_COMPLETED]:!1,[oce.GENERATION_FAILED]:!0,[oce.VERIFICATION_FAILED]:!0,[oce.SDK_PR_CREATED]:!1,[oce.UPGRADE_APPLIED]:!1,[oce.MAJOR_VERSION_BUMP]:!1};function kgp(e){return XZg[e]}function Fgp(e,t){return{automation_mode:!0,surface:"cli",action:t.action,run_id:t.run_id,github_run_id:t.github_run_id,github_run_url:t.github_run_url,org:t.org,config_repo:t.config_repo,config_commit_sha:t.config_commit_sha,config_branch:t.config_branch,config_pr_number:t.config_pr_number,trigger:t.trigger,cli_version:t.cli_version,...e.errorCode!==void 0?{error_code:e.errorCode}:{},...e.attributes??{}}}function Ngp(e,t){function r(i,o,s){s!=null&&(i[o]=s)}let n={surface:"cli",automation_mode:"true"};return r(n,"event",e.event),r(n,"action",t.action),r(n,"run_id",t.run_id),r(n,"org",t.org),r(n,"config_repo",t.config_repo),r(n,"trigger",t.trigger),r(n,"error_code",e.errorCode??"none"),n}function jgp(e,t){return{github_run_id:t.github_run_id,github_run_url:t.github_run_url,config_commit_sha:t.config_commit_sha,config_branch:t.config_branch,config_pr_number:t.config_pr_number,cli_version:t.cli_version,...e.attributes??{}}}function Qgp(e,t){return{event:e.event,timestamp:new Date().toISOString(),surface:"cli",action:t.action,run_id:t.run_id,github_run_id:t.github_run_id,github_run_url:t.github_run_url,org:t.org,config_repo:t.config_repo,config_commit_sha:t.config_commit_sha,config_branch:t.config_branch,config_pr_number:t.config_pr_number,trigger:t.trigger,cli_version:t.cli_version,...e.errorCode!==void 0?{error_code:e.errorCode}:{},...e.attributes??{}}}function zgp(e){let t=e.join(" ");return/\bautomations\s+generate\b/.test(t)?oce.GENERATION_FAILED:/\bautomations\s+preview\b/.test(t)?oce.VERIFICATION_FAILED:oce.GENERATION_FAILED}var ZZg="",$Zg="FERN_AUTOMATION_EVENTS_ORIGIN",e$g=3e3,WIi=class e{static instance;origin;inflight=[];static getInstance(){return e.instance==null&&(e.instance=new e(process.env[$Zg]??ZZg)),e.instance}constructor(t){this.origin=t}resolveEndpoint(){if(this.origin.length!==0)return`${this.origin.replace(/\/$/,"")}/v1/automation/events`}post(t,r){this.inflight.push(this.send(t,r))}async shutdown(){let t=this.inflight;this.inflight=[],t.length>0&&await Promise.allSettled(t)}async send(t,r){let n=this.resolveEndpoint();if(n==null)return;let i=new AbortController,o=setTimeout(()=>i.abort(),e$g);try{let s={"content-type":"application/json"},a=await oz();a!=null&&a.value.length>0&&(s.Authorization=`Bearer ${a.value}`);let c=await fetch(n,{method:"POST",headers:s,body:JSON.stringify(Qgp(t,r)),signal:i.signal})}catch{return}finally{clearTimeout(o)}}};function Mgp(){let{fern_run_id:e,github_run_id:t}=Qce();return{action:process.env.FERN_ACTION,run_id:e,github_run_id:t,github_run_url:process.env.FERN_GITHUB_RUN_URL,org:void 0,config_repo:process.env.FERN_CONFIG_REPO,config_commit_sha:process.env.FERN_CONFIG_COMMIT_SHA,config_branch:process.env.FERN_CONFIG_BRANCH,config_pr_number:process.env.FERN_CONFIG_PR_NUMBER,trigger:process.env.GITHUB_EVENT_NAME,cli_version:"5.119.0"}}function Lgp(){return process.env.FERN_AUTOMATION==="true"}var HIi=class{constructor(t,r=WIi.getInstance()){this.reporter=t;this.automationEventApiClient=r;this.context=Mgp()}reporter;automationEventApiClient;context;setOrganization(t){this.context={...this.context,org:t}}emit(t,r){let n=this.captureSentryForFailure({event:t,context:this.context,error:r?.error}),i=n==null?t:{...t,attributes:{...t.attributes??{},sentry_event_id:n}};this.capturePostHogEvent({event:i,context:this.context}),this.captureAutomationEventApiEvent(i,this.context)}async flush(){await this.automationEventApiClient.shutdown()}capturePostHogEvent({event:t,context:r}){this.reporter.instrumentPostHogAutomationEvent({distinctId:r.run_id??void 0,event:t.event,properties:Fgp(t,r)})}captureSentryForFailure({event:t,context:r,error:n}){if(!(!kgp(t.event)||t.errorCode==null))return this.reporter.captureException(n,{tags:Ngp(t,r),context:{automation:jgp(t,r)}})}captureAutomationEventApiEvent(t,r){this.automationEventApiClient.post(t,r)}};jt();function KIi(e,t,r){if(t instanceof iu)return;let n=J2e(t,r?.code),i=r?.argv??process.argv,o=i.join(" "),s=r?.message??(t instanceof Error?t.message:void 0)??"",a=t??new S({message:s,code:n});Lgp()?r$g(i,e,n,s,a):t$g(e,o,n,a)}function t$g(e,t,r,n){e.instrumentPostHogEvent({command:t,properties:{failed:!0,errorCode:r}}),nDt(r)&&e.captureException(n,{tags:{"error.code":r}})}function r$g(e,t,r,n,i){let o=zgp(e);t.emitAutomationTelemetryEvent({event:o,errorCode:r,attributes:{error_message:n}},{error:i})}jt();function m9e(){return process.env.FERN_DISABLE_TELEMETRY==="true"}function JIi({cliName:e,packageVersion:t,isLocal:r}){return m9e()||r?!1:!(t==="0.0.0")&&(e==="fern"&&!0)}var YIi=class{sentry;constructor({release:t,telemetry:r}){let n="https://84f58b5e457f06999d92f11ce4b79158@o4509504076185600.ingest.us.sentry.io/4511021546602496";if(JIi(r)&&n!=null&&n.length>0){let i="production";if(i==null||i.length===0)throw new S({message:"SENTRY_ENVIRONMENT must be set when SENTRY_DSN is configured",code:S.Code.ConfigError});this.sentry=JPt({dsn:n,release:t,environment:i,defaultIntegrations:!1,integrations:[lqe(),BAe(),PAe(),dAe(),OAe()],tracesSampleRate:0,attachStacktrace:!0,sendClientReports:!1}),YPt()}}captureException(t,r){if(this.sentry!=null)try{let n=r?.tags,i=r?.context,o=n!=null&&Object.keys(n).length>0,s=i!=null&&Object.values(i).some(a=>a!=null);return!o&&!s?this.sentry.captureException(t):FO(a=>{if(o&&a.setTags(n),i!=null)for(let[c,u]of Object.entries(i))u!=null&&a.setContext(c,u);return this.sentry?.captureException(t,void 0,a)})}catch{return}}async flush(){this.sentry!=null&&await Promise.resolve(this.sentry.flush(2e3)).catch(()=>{})}};jt();var XIi=class{originalWrite;redirected=!1;redirect(){if(this.redirected)throw new S({message:"StdoutRedirector: already redirected \u2014 did you forget to restore()?",code:S.Code.InternalError});this.originalWrite=process.stdout.write,process.stdout.write=process.stderr.write.bind(process.stderr),this.redirected=!0}restore(){!this.redirected||this.originalWrite==null||(process.stdout.write=this.originalWrite,this.originalWrite=void 0,this.redirected=!1)}async withRedirect(t){this.redirect();try{return await t()}finally{this.restore()}}};ife();Bt();Bb();jt();En();var fZt=class{result=Vf.Success;lastFailureMessage=void 0;logImmediately;logPrefix;title;subtasks=[];shouldBufferLogs;bufferedLogs=[];status="notStarted";onResult;instrumentPostHogEventImpl;captureExceptionImpl;emitAutomationTelemetryEventImpl;constructor({logImmediately:t,logPrefix:r,title:n,takeOverTerminal:i,onResult:o,shouldBufferLogs:s,instrumentPostHogEvent:a,captureException:c,emitAutomationTelemetryEvent:u}){this.logImmediately=t,this.logPrefix=r??"",this.title=n,this.takeOverTerminal=i,this.onResult=o,this.shouldBufferLogs=s,this.instrumentPostHogEventImpl=a,this.captureExceptionImpl=c,this.emitAutomationTelemetryEventImpl=u}start(){return this.status="running",this}isStarted(){return this.status!=="notStarted"}finish(){this.status!=="finished"&&(this.status="finished",this.flushLogs(),this.onResult?.(this.getResult()))}isFinished(){return this.status==="finished"}takeOverTerminal;failAndThrow(t,r,n){throw this.failWithoutThrowing(t,r,n),this.finish(),new iu}failWithoutThrowing(t,r,n){this.result=Vf.Failure,!(r instanceof iu)&&(t!=null&&(this.lastFailureMessage=t),jLt({message:t,error:r,logger:this.logger}),KIi(this,r,{...n,message:t}))}getLastFailureMessage(){return this.lastFailureMessage}captureException(t,r){return this.captureExceptionImpl?.(t,r)}emitAutomationTelemetryEvent(t,r){this.emitAutomationTelemetryEventImpl(t,r)}getResult(){return this.result}instrumentPostHogEvent(t){this.instrumentPostHogEventImpl(t)}logAtLevel(t,...r){this.logAtLevelWithOverrides(t,r)}logAtLevelWithOverrides(t,r,n={}){this.log({parts:r,level:t,time:new Date,...n})}log(t){this.bufferedLogs.push({...t,prefix:this.logPrefix}),this.shouldBufferLogs||this.flushLogs()}flushLogs(){this.logImmediately(this.bufferedLogs),this.bufferedLogs=[]}logger=Ov(this.logAtLevel.bind(this));addInteractiveTask({name:t,subtitle:r}){let n=new Tzs({name:t,subtitle:r,logImmediately:i=>this.logImmediately(i),logPrefix:`${this.logPrefix}${fe.blackBright(t)} `,takeOverTerminal:this.takeOverTerminal,onResult:this.onResult,shouldBufferLogs:this.shouldBufferLogs,instrumentPostHogEvent:i=>this.instrumentPostHogEventImpl(i),captureException:this.captureExceptionImpl,emitAutomationTelemetryEvent:this.emitAutomationTelemetryEventImpl});return this.subtasks.push(n),n}async runInteractiveTask(t,r){let n=this.addInteractiveTask(t).start();try{await r(n)}catch(i){n.failWithoutThrowing(void 0,i)}finally{n.finish()}return n.getResult()===Vf.Success}printInteractiveTasks({spinner:t}){return this.subtasks.map(r=>r.print({spinner:t})).join(`
4969
4969
  `)}},Tzs=class extends fZt{name;subtitle;constructor({name:t,subtitle:r,...n}){super(n),this.name=t,this.subtitle=r}start(){return super.start(),this.logAtLevelWithOverrides(qn.Info,["Started."],{omitOnTTY:!0}),this.flushLogs(),this}isStarted(){return this.status!=="notStarted"}finish(){this.status!=="finished"&&(this.result===Vf.Success?this.logAtLevelWithOverrides(qn.Info,["Finished."],{omitOnTTY:!0}):this.logAtLevelWithOverrides(qn.Error,["Failed."],{omitOnTTY:!0}),super.finish())}setSubtitle(t){this.subtitle=t}print({spinner:t}){let r=[this.name];return this.subtitle!=null&&r.push(fe.dim(this.subtitle)),r.push(...this.subtasks.map(n=>n.print({spinner:t}))),Sj({prefix:this.getIcon({spinner:t}),content:r.join(`
4970
4970
  `)})}printInteractiveTasks({spinner:t}){return this.print({spinner:t})}getIcon({spinner:t}){let r=this.subtasks.length>0;switch(this.status){case"notStarted":return r?fe.dim("\u25B8 "):fe.dim("\u25E6 ");case"running":return r?fe.cyan("\u25BE "):t;case"finished":switch(this.getResult()){case Vf.Success:return r?fe.green("\u25BE "):fe.green("\u2713 ");case Vf.Failure:return r?fe.red("\u25BE "):fe.red("x ")}}}getResult(){if(this.result===Vf.Failure)return Vf.Failure;for(let t of this.subtasks)if(t.getResult()===Vf.Failure)return Vf.Failure;return Vf.Success}};jt();var Vgp=ye(LMe(),1);En();function Ugp(e){return e.filter(t=>t.isUpgradeAvailable).length>0}function n$g(e){return(e.cliUpgradeInfo?.isUpgradeAvailable??!1)||Ugp(e.generatorUpgradeInfo)}async function _gp({cliEnvironment:e,upgradeInfo:t}){if(!n$g(t)||e.packageVersion==t.cliUpgradeInfo?.latestVersion)return;let r=`${fe.underline("Upgrades available")}
4971
4971
 
@@ -4974,7 +4974,7 @@ ${r}`}function lIi(e){let t=this,{emitParseErrors:r,...n}={...t.data("settings")
4974
4974
  Run ${fe.cyan("fern generator upgrade")} to upgrade your generators.`),i.length>2&&(r+=`
4975
4975
  Run ${fe.cyan("fern generator upgrade --list")} to see the full list of generator upgrades available.`),Not(r,{padding:1,float:"center",textAlignment:"center",borderColor:"yellow",borderStyle:"round"})}async function Ozs({generatorUpgradeInfo:e,header:t,limit:r,includeBoxen:n=!0}){if(!Ugp(e))return;let i=t??"",o=e.filter(a=>a.isUpgradeAvailable);r!=null&&(o=o.slice(0,r+1));let s=o.sort((a,c)=>a.generatorName.localeCompare(c.generatorName)||a.currentVersion.localeCompare(c.currentVersion));for(let a of s)i+=`
4976
4976
  ${await i$g(a.generatorName)} (${a.apiName!=null?"API: "+a.apiName+", ":""}Group: ${a.generatorGroup}) `+fe.dim(a.currentVersion)+fe.reset(" \u2192 ")+fe.green(a.latestVersion);return i+=`
4977
- `,n?Not(i,{padding:1,float:"center",textAlignment:"center",borderColor:"yellow",borderStyle:"round"}):i}async function i$g(e){let r=await new Vgp.FernRegistryClient({environment:"https://registry.buildwithfern.com"}).generators.getGeneratorByImage({dockerImage:e});if(!r.ok||r.body==null)throw new S({message:`Generator ${e} not found`,code:S.Code.ConfigError});return r.body.displayName}co();dfe();jt();async function o$g({cliContext:e,project:{apiWorkspaces:t},generatorFilter:r,groupFilter:n,channel:i,includeMajor:o}){if(t.length===1){let a={type:"singleApi",versions:{}};return await Ggp({cliContext:e,apiWorkspaces:t,perGeneratorAction:async(c,u,l,p)=>{a.versions[u]==null&&(a.versions[u]={});let d=PMe(l.name);if(d==null){p.logger.debug(`Skipping unknown generator: ${l.name}`);return}let f=await P1({generatorName:d,cliVersion:e.environment.packageVersion,currentGeneratorVersion:l.version,channel:i,includeMajor:o,context:p});f!=null&&(a.versions[u][l.name]={previousVersion:l.version,latestVersion:f})},generatorFilter:r,groupFilter:n}),a}let s={type:"multiApi",versions:{}};return await Ggp({cliContext:e,apiWorkspaces:t,perGeneratorAction:async(a,c,u,l)=>{if(a==null)return;s.versions[a]==null&&(s.versions[a]={}),s.versions[a][c]==null&&(s.versions[a][c]={});let p=PMe(u.name);if(p==null){l.logger.debug(`Skipping unknown generator: ${u.name}`);return}let d=await P1({generatorName:p,cliVersion:e.environment.packageVersion,currentGeneratorVersion:u.version,channel:i,includeMajor:o,context:l});d!=null&&(s.versions[a][c][u.name]={previousVersion:u.version,latestVersion:d})},generatorFilter:r,groupFilter:n}),s}async function Ggp({cliContext:e,apiWorkspaces:t,perGeneratorAction:r,generatorFilter:n,groupFilter:i}){await Promise.all(t.map(async o=>{await e.runTaskForWorkspace(o,async s=>{let a=await KL({absolutePathToWorkspace:o.absoluteFilePath,context:s});if(a==null||a.groups==null)return;let c=n!=null?_A(n):void 0;for(let u of a.groups)if(!(i!=null&&u.groupName!==i))for(let l of u.generators)c!=null&&l.name!==c||await r(o.workspaceName,u.groupName,l,s)})}))}function qgp(e,t,r){let n=[];for(let[i,o]of Object.entries(e))for(let[s,a]of Object.entries(o)){r.debug(`Checking if ${s} in group ${i} has an upgrade available...`);let c;try{c=H1(a.latestVersion,a.previousVersion)}catch{throw new S({message:`Generator "${s}" has an invalid version "${a.previousVersion}" in generators.yml. Use an exact version like 1.2.3.`,code:S.Code.ConfigError})}r.debug(`Latest version: ${a.latestVersion}. `+(c?"Upgrade available.":"No upgrade available.")),n.push({generatorName:s,generatorGroup:i,apiName:t,isUpgradeAvailable:c,currentVersion:a.previousVersion,latestVersion:a.latestVersion})}return n}async function ZIi({project:e,cliContext:t,generatorFilter:r,groupFilter:n,channel:i,includeMajor:o}){let s=[];if(e!=null){let a=await o$g({cliContext:t,project:e,generatorFilter:r,groupFilter:n,channel:i,includeMajor:o});if(a.type==="multiApi")for(let[c,u]of Object.entries(a.versions))s.push(...qgp(u,c,t.logger));else s.push(...qgp(a.versions,void 0,t.logger))}return s}jt();N0r();async function Sge({cliEnvironment:e,includePreReleases:t=!1}){if(e.packageName!=="fern-api"||e.packageVersion==="0.0.0")return e.packageVersion;try{return await gje(e.packageName,{version:t?"prerelease":"latest"})}catch(r){throw new S({message:`Failed to resolve latest CLI version: ${r instanceof Error?r.message:String(r)}`,code:S.Code.NetworkError})}}var Wgp=["#2E86AB","#A23B72","#F18F01","#C73E1D","#CCE2A3"],$Ii=class e{environment;sentryClient;posthogManager;automationTelemetryManager;didSucceed=!0;numTasks=0;ttyAwareLogger;logLevel=qn.Info;isLocal;stdoutRedirector=new XIi;jsonMode=!1;static async create(t,r,{isLocal:n}){let i=await S_t();return new e(t,r,{isLocal:n,posthogManager:i})}constructor(t,r,{isLocal:n,posthogManager:i}){this.ttyAwareLogger=new ZLt(t,r),this.isLocal=n??!1,this.posthogManager=i;let o=this.getPackageName(),s=this.getPackageVersion(),a=this.getCliName();(o==null||s==null||a==null)&&this.exitProgram(),this.environment={packageName:o,packageVersion:s,cliName:a},this.sentryClient=new YIi({release:`cli@${this.environment.packageVersion}`,telemetry:{cliName:this.environment.cliName,packageVersion:this.environment.packageVersion,isLocal:this.isLocal}}),this.automationTelemetryManager=new HIi(this)}getPackageName(){return"fern-api"}getPackageVersion(){return"5.118.0"}getCliName(){return"fern"}setLogLevel(t){this.logLevel=t}logFernVersionDebug(){this.logger.debug(`Running ${fe.bold(`${this.environment.cliName}`)} (${this.environment.packageName}@${this.environment.packageVersion})`)}failAndThrow(t,r,n){throw this.failWithoutThrowing(t,r,n),new iu}failWithoutThrowing(t,r,n){this.didSucceed=!1,!(r instanceof iu)&&(jLt({message:t,error:r,logger:this.logger}),KIi(this,r,{...n,message:t}))}enableJsonMode(){this.jsonMode||(this.jsonMode=!0,this.stdoutRedirector.redirect())}get isJsonMode(){return this.jsonMode}get isTTY(){return this.ttyAwareLogger.isTTY}writeJsonToStdout(t){this.writeTextToStdout(JSON.stringify(t,null,2)+`
4977
+ `,n?Not(i,{padding:1,float:"center",textAlignment:"center",borderColor:"yellow",borderStyle:"round"}):i}async function i$g(e){let r=await new Vgp.FernRegistryClient({environment:"https://registry.buildwithfern.com"}).generators.getGeneratorByImage({dockerImage:e});if(!r.ok||r.body==null)throw new S({message:`Generator ${e} not found`,code:S.Code.ConfigError});return r.body.displayName}co();dfe();jt();async function o$g({cliContext:e,project:{apiWorkspaces:t},generatorFilter:r,groupFilter:n,channel:i,includeMajor:o}){if(t.length===1){let a={type:"singleApi",versions:{}};return await Ggp({cliContext:e,apiWorkspaces:t,perGeneratorAction:async(c,u,l,p)=>{a.versions[u]==null&&(a.versions[u]={});let d=PMe(l.name);if(d==null){p.logger.debug(`Skipping unknown generator: ${l.name}`);return}let f=await P1({generatorName:d,cliVersion:e.environment.packageVersion,currentGeneratorVersion:l.version,channel:i,includeMajor:o,context:p});f!=null&&(a.versions[u][l.name]={previousVersion:l.version,latestVersion:f})},generatorFilter:r,groupFilter:n}),a}let s={type:"multiApi",versions:{}};return await Ggp({cliContext:e,apiWorkspaces:t,perGeneratorAction:async(a,c,u,l)=>{if(a==null)return;s.versions[a]==null&&(s.versions[a]={}),s.versions[a][c]==null&&(s.versions[a][c]={});let p=PMe(u.name);if(p==null){l.logger.debug(`Skipping unknown generator: ${u.name}`);return}let d=await P1({generatorName:p,cliVersion:e.environment.packageVersion,currentGeneratorVersion:u.version,channel:i,includeMajor:o,context:l});d!=null&&(s.versions[a][c][u.name]={previousVersion:u.version,latestVersion:d})},generatorFilter:r,groupFilter:n}),s}async function Ggp({cliContext:e,apiWorkspaces:t,perGeneratorAction:r,generatorFilter:n,groupFilter:i}){await Promise.all(t.map(async o=>{await e.runTaskForWorkspace(o,async s=>{let a=await KL({absolutePathToWorkspace:o.absoluteFilePath,context:s});if(a==null||a.groups==null)return;let c=n!=null?_A(n):void 0;for(let u of a.groups)if(!(i!=null&&u.groupName!==i))for(let l of u.generators)c!=null&&l.name!==c||await r(o.workspaceName,u.groupName,l,s)})}))}function qgp(e,t,r){let n=[];for(let[i,o]of Object.entries(e))for(let[s,a]of Object.entries(o)){r.debug(`Checking if ${s} in group ${i} has an upgrade available...`);let c;try{c=H1(a.latestVersion,a.previousVersion)}catch{throw new S({message:`Generator "${s}" has an invalid version "${a.previousVersion}" in generators.yml. Use an exact version like 1.2.3.`,code:S.Code.ConfigError})}r.debug(`Latest version: ${a.latestVersion}. `+(c?"Upgrade available.":"No upgrade available.")),n.push({generatorName:s,generatorGroup:i,apiName:t,isUpgradeAvailable:c,currentVersion:a.previousVersion,latestVersion:a.latestVersion})}return n}async function ZIi({project:e,cliContext:t,generatorFilter:r,groupFilter:n,channel:i,includeMajor:o}){let s=[];if(e!=null){let a=await o$g({cliContext:t,project:e,generatorFilter:r,groupFilter:n,channel:i,includeMajor:o});if(a.type==="multiApi")for(let[c,u]of Object.entries(a.versions))s.push(...qgp(u,c,t.logger));else s.push(...qgp(a.versions,void 0,t.logger))}return s}jt();N0r();async function Sge({cliEnvironment:e,includePreReleases:t=!1}){if(e.packageName!=="fern-api"||e.packageVersion==="0.0.0")return e.packageVersion;try{return await gje(e.packageName,{version:t?"prerelease":"latest"})}catch(r){throw new S({message:`Failed to resolve latest CLI version: ${r instanceof Error?r.message:String(r)}`,code:S.Code.NetworkError})}}var Wgp=["#2E86AB","#A23B72","#F18F01","#C73E1D","#CCE2A3"],$Ii=class e{environment;sentryClient;posthogManager;automationTelemetryManager;didSucceed=!0;numTasks=0;ttyAwareLogger;logLevel=qn.Info;isLocal;stdoutRedirector=new XIi;jsonMode=!1;static async create(t,r,{isLocal:n}){let i=await S_t();return new e(t,r,{isLocal:n,posthogManager:i})}constructor(t,r,{isLocal:n,posthogManager:i}){this.ttyAwareLogger=new ZLt(t,r),this.isLocal=n??!1,this.posthogManager=i;let o=this.getPackageName(),s=this.getPackageVersion(),a=this.getCliName();(o==null||s==null||a==null)&&this.exitProgram(),this.environment={packageName:o,packageVersion:s,cliName:a},this.sentryClient=new YIi({release:`cli@${this.environment.packageVersion}`,telemetry:{cliName:this.environment.cliName,packageVersion:this.environment.packageVersion,isLocal:this.isLocal}}),this.automationTelemetryManager=new HIi(this)}getPackageName(){return"fern-api"}getPackageVersion(){return"5.119.0"}getCliName(){return"fern"}setLogLevel(t){this.logLevel=t}logFernVersionDebug(){this.logger.debug(`Running ${fe.bold(`${this.environment.cliName}`)} (${this.environment.packageName}@${this.environment.packageVersion})`)}failAndThrow(t,r,n){throw this.failWithoutThrowing(t,r,n),new iu}failWithoutThrowing(t,r,n){this.didSucceed=!1,!(r instanceof iu)&&(jLt({message:t,error:r,logger:this.logger}),KIi(this,r,{...n,message:t}))}enableJsonMode(){this.jsonMode||(this.jsonMode=!0,this.stdoutRedirector.redirect())}get isJsonMode(){return this.jsonMode}get isTTY(){return this.ttyAwareLogger.isTTY}writeJsonToStdout(t){this.writeTextToStdout(JSON.stringify(t,null,2)+`
4978
4978
  `)}writeTextToStdout(t){this.stdoutRedirector.restore(),process.stdout.write(t),this.jsonMode&&this.stdoutRedirector.redirect()}async exit({code:t}={}){!this._suppressUpgradeMessage&&!this.isLocal&&await this.nudgeUpgradeIfAvailable(),this.ttyAwareLogger.finish();try{await this.posthogManager.flush()}catch{}await this.sentryClient.flush(),await this.automationTelemetryManager.flush(),this.exitProgram({code:t})}async nudgeUpgradeIfAvailable(){try{let t=await Promise.race([this.isUpgradeAvailable(),new Promise((n,i)=>setTimeout(()=>i("Request timed out"),300))]),r=await _gp({cliEnvironment:this.environment,upgradeInfo:t});r!=null&&(r.endsWith(`
4979
4979
  `)||(r+=`
4980
4980
  `),this.stderr.info(r))}catch{}}async exitIfFailed(){this.didSucceed||await this.exit()}exitProgram({code:t}={}){process.exit(t??(this.didSucceed?0:1))}longestWorkspaceName;registerWorkspaces(t){let r=UFi(t.map(n=>n.type==="docs"?"docs":n.workspaceName??"api"),n=>n.length);r!=null&&(this.longestWorkspaceName=r)}project;registerProject(t){this.project=t,this.automationTelemetryManager.setOrganization(t.config.organization)}runTask(t){return this.runTaskWithInit(this.constructTaskInit(),t)}addTask(){return this.addTaskWithInit(this.constructTaskInit())}async runTaskForWorkspace(t,r){await this.runTaskWithInit(this.constructTaskInitForWorkspace(t),r)}addTaskWithInit(t){let r=new fZt(t);return this.ttyAwareLogger.registerTask(r),r}USE_NODE_18_OR_ABOVE_MESSAGE="The Fern CLI requires Node 18+ or above.";async runTaskWithInit(t,r){let n=this.addTaskWithInit(t).start(),i;try{i=await r(n)}catch(o){throw n.failWithoutThrowing(void 0,o),new iu}finally{n.finish()}return i}instrumentPostHogEvent(t){this.isLocal||this.posthogManager.sendEvent(t)}instrumentPostHogAutomationEvent(t){this.isLocal||this.posthogManager.sendAutomationEvent(t)}captureException(t,r){return this.sentryClient.captureException(t,r)}emitAutomationTelemetryEvent(t,r){this.automationTelemetryManager.emit(t,r)}logger=Ov((t,...r)=>this.log(t,...r));stderr=Ov((t,...r)=>this.logStderr(t,...r));constructTaskInitForWorkspace(t){let r=t.type==="docs"?"docs":t.workspaceName??"api",n=Hgp(r),i=1+(this.longestWorkspaceName!=null?Hgp(this.longestWorkspaceName):n).length,o=n.padEnd(i),s=Wgp[this.numTasks++%Wgp.length],a=fe.hex(s)(o);return{...this.constructTaskInit(),logPrefix:a,title:fe.hex(s).bold(r)}}constructTaskInit(){return{logImmediately:t=>this.logImmediately(t),takeOverTerminal:t=>this.ttyAwareLogger.takeOverTerminal(t),onResult:t=>{t===Vf.Failure&&(this.didSucceed=!1)},instrumentPostHogEvent:t=>{this.instrumentPostHogEvent(t)},shouldBufferLogs:!1,captureException:(t,r)=>this.sentryClient.captureException(t,r),emitAutomationTelemetryEvent:(t,r)=>this.emitAutomationTelemetryEvent(t,r)}}log(t,...r){this.logImmediately([{parts:r,level:t,time:new Date}])}logStderr(t,...r){this.logImmediately([{parts:r,level:t,time:new Date}],{stderr:!0})}logImmediately(t,{stderr:r=!1}={}){let n=t.filter(i=>xw.indexOf(i.level)>=xw.indexOf(this.logLevel));this.ttyAwareLogger.log(n,{includeDebugInfo:this.logLevel===qn.Debug,stderr:r||this.jsonMode})}_suppressUpgradeMessage=!1;suppressUpgradeMessage(){this._suppressUpgradeMessage=!0}_isUpgradeAvailable;async isUpgradeAvailable({includePreReleases:t=!1}={}){if(this._isUpgradeAvailable==null){this.logger.debug(`Checking if ${this.environment.packageName} upgrade is available...`);let r=await Sge({cliEnvironment:this.environment,includePreReleases:t}),n=H1(r,this.environment.packageVersion);this.logger.debug(`Latest version: ${r}. `+(n?"Upgrade available.":"No upgrade available."));let i={isUpgradeAvailable:n,latestVersion:r},o=await ZIi({project:this.project,cliContext:this});this._isUpgradeAvailable={cliUpgradeInfo:i,generatorUpgradeInfo:o}}return this._isUpgradeAvailable}async confirmPrompt(t,r=!1){return this.selectPrompt({message:t,choices:[{name:"No",value:!1},{name:"Yes",value:!0}],default:r})}async selectPrompt({message:t,choices:r,default:n}){try{return await Szs({message:t,choices:r,default:n,theme:{prefix:fe.yellow("?"),style:{answer:i=>fe.cyan(i),message:i=>fe.bold(i),highlight:i=>fe.cyan(i)}}})}catch(i){throw i?.name==="ExitPromptError"?(this.logger.info(`