@plot-pm/board 0.6.0-rc.196 → 0.6.0-rc.198

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.
@@ -123,7 +123,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let o="<p>An error
123
123
  `)}g.write("payload.value = newResult;"),g.write("return payload;");let M=g.compile();return(S,_)=>M(m,S,_)},i,a=qe,l=!He.jitless,c=l&&eo.value,u=n.catchall,p;e._zod.parse=(m,g)=>{p??(p=o.value);let v=m.value;return a(v)?l&&c&&g?.async===!1&&g.jitless!==!0?(i||(i=t(n.shape)),m=i(m,g),u?$d([],v,m,g,p,e):m):r(m,g):(m.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),m)}});function sd(e,n,r,o){for(let i of e)if(i.issues.length===0)return n.value=i.value,n;let t=e.filter(i=>!Ae(i));return t.length===1?(n.value=t[0].value,t[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:e.map(i=>i.issues.map(a=>G(a,o,W())))}),n)}var on=f("$ZodUnion",(e,n)=>{j.init(e,n),N(e._zod,"optin",()=>n.options.some(o=>o._zod.optin==="optional")?"optional":void 0),N(e._zod,"optout",()=>n.options.some(o=>o._zod.optout==="optional")?"optional":void 0),N(e._zod,"values",()=>{if(n.options.every(o=>o._zod.values))return new Set(n.options.flatMap(o=>Array.from(o._zod.values)))}),N(e._zod,"pattern",()=>{if(n.options.every(o=>o._zod.pattern)){let o=n.options.map(t=>t._zod.pattern);return new RegExp(`^(${o.map(t=>Ht(t.source)).join("|")})$`)}});let r=n.options.length===1?n.options[0]._zod.run:null;e._zod.parse=(o,t)=>{if(r)return r(o,t);let i=!1,a=[];for(let l of n.options){let s=l._zod.run({value:o.value,issues:[]},t);if(s instanceof Promise)a.push(s),i=!0;else{if(s.issues.length===0)return s;a.push(s)}}return i?Promise.all(a).then(l=>sd(l,o,e,t)):sd(a,o,e,t)}});function cd(e,n,r,o){let t=e.filter(i=>i.issues.length===0);return t.length===1?(n.value=t[0].value,n):(t.length===0?n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:e.map(i=>i.issues.map(a=>G(a,o,W())))}):n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:[],inclusive:!1}),n)}var Va=f("$ZodXor",(e,n)=>{on.init(e,n),n.inclusive=!1;let r=n.options.length===1?n.options[0]._zod.run:null;e._zod.parse=(o,t)=>{if(r)return r(o,t);let i=!1,a=[];for(let l of n.options){let s=l._zod.run({value:o.value,issues:[]},t);s instanceof Promise?(a.push(s),i=!0):a.push(s)}return i?Promise.all(a).then(l=>cd(l,o,e,t)):cd(a,o,e,t)}}),Ja=f("$ZodDiscriminatedUnion",(e,n)=>{n.inclusive=!1,on.init(e,n);let r=e._zod.parse;N(e._zod,"propValues",()=>{let t={};for(let i of n.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(i)}"`);for(let[l,s]of Object.entries(a)){t[l]||(t[l]=new Set);for(let c of s)t[l].add(c)}}return t});let o=ot(()=>{let t=n.options,i=new Map;for(let a of t){let l=a._zod.propValues?.[n.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(a)}"`);for(let s of l){if(i.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);i.set(s,a)}}return i});e._zod.parse=(t,i)=>{let a=t.value;if(!qe(a))return t.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),t;let l=o.value.get(a?.[n.discriminator]);return l?l._zod.run(t,i):n.unionFallback||i.direction==="backward"?r(t,i):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:n.discriminator,options:Array.from(o.value.keys()),input:a,path:[n.discriminator],inst:e}),t)}}),Ha=f("$ZodIntersection",(e,n)=>{j.init(e,n),e._zod.parse=(r,o)=>{let t=r.value,i=n.left._zod.run({value:t,issues:[]},o),a=n.right._zod.run({value:t,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,c])=>ud(r,s,c)):ud(r,i,a)}});function aa(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(De(e)&&De(n)){let r=Object.keys(n),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),t={...e,...n};for(let i of o){let a=aa(e[i],n[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};t[i]=a.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let t=e[o],i=n[o],a=aa(t,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function ud(e,n,r){let o=new Map,t;for(let l of n.issues)if(l.code==="unrecognized_keys"){t??(t=l);for(let s of l.keys)o.has(s)||o.set(s,{}),o.get(s).l=!0}else e.issues.push(l);for(let l of r.issues)if(l.code==="unrecognized_keys")for(let s of l.keys)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(l);let i=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&t&&e.issues.push({...t,keys:i}),Ae(e))return e;let a=aa(n.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var lr=f("$ZodTuple",(e,n)=>{j.init(e,n);let r=n.items;e._zod.parse=(o,t)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],l=dd(r,"optin"),s=dd(r,"optout");if(!n.rest){if(i.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>r.length&&o.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:i,inst:e,origin:"array"})}let c=new Array(r.length);for(let u=0;u<r.length;u++){let p=r[u]._zod.run({value:i[u],issues:[]},t);p instanceof Promise?a.push(p.then(m=>{c[u]=m})):c[u]=p}if(n.rest){let u=r.length-1,p=i.slice(r.length);for(let m of p){u++;let g=n.rest._zod.run({value:m,issues:[]},t);g instanceof Promise?a.push(g.then(v=>pd(v,o,u))):pd(g,o,u)}}return a.length?Promise.all(a).then(()=>fd(c,o,r,i,s)):fd(c,o,r,i,s)}});function dd(e,n){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[n]!=="optional")return r+1;return 0}function pd(e,n,r){e.issues.length&&n.issues.push(...ne(r,e.issues)),n.value[r]=e.value}function fd(e,n,r,o,t){for(let i=0;i<r.length;i++){let a=e[i],l=i<o.length;if(a.issues.length){if(!l&&i>=t){n.value.length=i;break}n.issues.push(...ne(i,a.issues))}n.value[i]=a.value}for(let i=n.value.length-1;i>=o.length&&(r[i]._zod.optout==="optional"&&n.value[i]===void 0);i--)n.value.length=i;return n}var qa=f("$ZodRecord",(e,n)=>{j.init(e,n),e._zod.parse=(r,o)=>{let t=r.value;if(!De(t))return r.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),r;let i=[],a=n.keyType._zod.values;if(a){r.value={};let l=new Set;for(let c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){l.add(typeof c=="number"?c.toString():c);let u=n.keyType._zod.run({value:c,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(g=>G(g,o,W())),input:c,path:[c],inst:e});continue}let p=u.value,m=n.valueType._zod.run({value:t[c],issues:[]},o);m instanceof Promise?i.push(m.then(g=>{g.issues.length&&r.issues.push(...ne(c,g.issues)),r.value[p]=g.value})):(m.issues.length&&r.issues.push(...ne(c,m.issues)),r.value[p]=m.value)}let s;for(let c in t)l.has(c)||(s=s??[],s.push(c));s&&s.length>0&&r.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:s})}else{r.value={};for(let l of Reflect.ownKeys(t)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(t,l))continue;let s=n.keyType._zod.run({value:l,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&Qn.test(l)&&s.issues.length){let p=n.keyType._zod.run({value:Number(l),issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(s=p)}if(s.issues.length){n.mode==="loose"?r.value[l]=t[l]:r.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(p=>G(p,o,W())),input:l,path:[l],inst:e});continue}let u=n.valueType._zod.run({value:t[l],issues:[]},o);u instanceof Promise?i.push(u.then(p=>{p.issues.length&&r.issues.push(...ne(l,p.issues)),r.value[s.value]=p.value})):(u.issues.length&&r.issues.push(...ne(l,u.issues)),r.value[s.value]=u.value)}}return i.length?Promise.all(i).then(()=>r):r}}),Ka=f("$ZodMap",(e,n)=>{j.init(e,n),e._zod.parse=(r,o)=>{let t=r.value;if(!(t instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),r;let i=[];r.value=new Map;for(let[a,l]of t){let s=n.keyType._zod.run({value:a,issues:[]},o),c=n.valueType._zod.run({value:l,issues:[]},o);s instanceof Promise||c instanceof Promise?i.push(Promise.all([s,c]).then(([u,p])=>{md(u,p,r,a,t,e,o)})):md(s,c,r,a,t,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function md(e,n,r,o,t,i,a){e.issues.length&&(qt.has(typeof o)?r.issues.push(...ne(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:t,inst:i,issues:e.issues.map(l=>G(l,a,W()))})),n.issues.length&&(qt.has(typeof o)?r.issues.push(...ne(o,n.issues)):r.issues.push({origin:"map",code:"invalid_element",input:t,inst:i,key:o,issues:n.issues.map(l=>G(l,a,W()))})),r.value.set(e.value,n.value)}var Ga=f("$ZodSet",(e,n)=>{j.init(e,n),e._zod.parse=(r,o)=>{let t=r.value;if(!(t instanceof Set))return r.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of t){let l=n.valueType._zod.run({value:a,issues:[]},o);l instanceof Promise?i.push(l.then(s=>hd(s,r))):hd(l,r)}return i.length?Promise.all(i).then(()=>r):r}});function hd(e,n){e.issues.length&&n.issues.push(...e.issues),n.value.add(e.value)}var Xa=f("$ZodEnum",(e,n)=>{j.init(e,n);let r=Jt(n.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(t=>qt.has(typeof t)).map(t=>typeof t=="string"?pe(t):t.toString()).join("|")})$`),e._zod.parse=(t,i)=>{let a=t.value;return o.has(a)||t.issues.push({code:"invalid_value",values:r,input:a,inst:e}),t}}),Qa=f("$ZodLiteral",(e,n)=>{if(j.init(e,n),n.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(n.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.values.map(o=>typeof o=="string"?pe(o):o?pe(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,t)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:n.values,input:i,inst:e}),o}}),Ya=f("$ZodFile",(e,n)=>{j.init(e,n),e._zod.parse=(r,o)=>{let t=r.value;return t instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),r}}),el=f("$ZodTransform",(e,n)=>{j.init(e,n),e._zod.optin="optional",e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Te(e.constructor.name);let t=n.transform(r.value,r);if(o.async)return(t instanceof Promise?t:Promise.resolve(t)).then(a=>(r.value=a,r.fallback=!0,r));if(t instanceof Promise)throw new ge;return r.value=t,r.fallback=!0,r}});function gd(e,n){return n===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var sr=f("$ZodOptional",(e,n)=>{j.init(e,n),e._zod.optin="optional",e._zod.optout="optional",N(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),N(e._zod,"pattern",()=>{let r=n.innerType._zod.pattern;return r?new RegExp(`^(${Ht(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(n.innerType._zod.optin==="optional"){let t=r.value,i=n.innerType._zod.run(r,o);return i instanceof Promise?i.then(a=>gd(a,t)):gd(i,t)}return r.value===void 0?r:n.innerType._zod.run(r,o)}}),tl=f("$ZodExactOptional",(e,n)=>{sr.init(e,n),N(e._zod,"values",()=>n.innerType._zod.values),N(e._zod,"pattern",()=>n.innerType._zod.pattern),e._zod.parse=(r,o)=>n.innerType._zod.run(r,o)}),nl=f("$ZodNullable",(e,n)=>{j.init(e,n),N(e._zod,"optin",()=>n.innerType._zod.optin),N(e._zod,"optout",()=>n.innerType._zod.optout),N(e._zod,"pattern",()=>{let r=n.innerType._zod.pattern;return r?new RegExp(`^(${Ht(r.source)}|null)$`):void 0}),N(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:n.innerType._zod.run(r,o)}),rl=f("$ZodDefault",(e,n)=>{j.init(e,n),e._zod.optin="optional",N(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return n.innerType._zod.run(r,o);if(r.value===void 0)return r.value=n.defaultValue,r;let t=n.innerType._zod.run(r,o);return t instanceof Promise?t.then(i=>vd(i,n)):vd(t,n)}});function vd(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}var il=f("$ZodPrefault",(e,n)=>{j.init(e,n),e._zod.optin="optional",N(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=n.defaultValue),n.innerType._zod.run(r,o))}),ol=f("$ZodNonOptional",(e,n)=>{j.init(e,n),N(e._zod,"values",()=>{let r=n.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let t=n.innerType._zod.run(r,o);return t instanceof Promise?t.then(i=>bd(i,e)):bd(t,e)}});function bd(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}var al=f("$ZodSuccess",(e,n)=>{j.init(e,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Te("ZodSuccess");let t=n.innerType._zod.run(r,o);return t instanceof Promise?t.then(i=>(r.value=i.issues.length===0,r)):(r.value=t.issues.length===0,r)}}),ll=f("$ZodCatch",(e,n)=>{j.init(e,n),e._zod.optin="optional",N(e._zod,"optout",()=>n.innerType._zod.optout),N(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return n.innerType._zod.run(r,o);let t=n.innerType._zod.run(r,o);return t instanceof Promise?t.then(i=>(r.value=i.value,i.issues.length&&(r.value=n.catchValue({...r,error:{issues:i.issues.map(a=>G(a,o,W()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=t.value,t.issues.length&&(r.value=n.catchValue({...r,error:{issues:t.issues.map(i=>G(i,o,W()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),sl=f("$ZodNaN",(e,n)=>{j.init(e,n),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),cr=f("$ZodPipe",(e,n)=>{j.init(e,n),N(e._zod,"values",()=>n.in._zod.values),N(e._zod,"optin",()=>n.in._zod.optin),N(e._zod,"optout",()=>n.out._zod.optout),N(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=n.out._zod.run(r,o);return i instanceof Promise?i.then(a=>tr(a,n.in,o)):tr(i,n.in,o)}let t=n.in._zod.run(r,o);return t instanceof Promise?t.then(i=>tr(i,n.out,o)):tr(t,n.out,o)}});function tr(e,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}var an=f("$ZodCodec",(e,n)=>{j.init(e,n),N(e._zod,"values",()=>n.in._zod.values),N(e._zod,"optin",()=>n.in._zod.optin),N(e._zod,"optout",()=>n.out._zod.optout),N(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=n.in._zod.run(r,o);return i instanceof Promise?i.then(a=>nr(a,n,o)):nr(i,n,o)}else{let i=n.out._zod.run(r,o);return i instanceof Promise?i.then(a=>nr(a,n,o)):nr(i,n,o)}}});function nr(e,n,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let t=n.transform(e.value,e);return t instanceof Promise?t.then(i=>rr(e,i,n.out,r)):rr(e,t,n.out,r)}else{let t=n.reverseTransform(e.value,e);return t instanceof Promise?t.then(i=>rr(e,i,n.in,r)):rr(e,t,n.in,r)}}function rr(e,n,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:n,issues:e.issues},o)}var cl=f("$ZodPreprocess",(e,n)=>{cr.init(e,n)}),ul=f("$ZodReadonly",(e,n)=>{j.init(e,n),N(e._zod,"propValues",()=>n.innerType._zod.propValues),N(e._zod,"values",()=>n.innerType._zod.values),N(e._zod,"optin",()=>n.innerType?._zod?.optin),N(e._zod,"optout",()=>n.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return n.innerType._zod.run(r,o);let t=n.innerType._zod.run(r,o);return t instanceof Promise?t.then(yd):yd(t)}});function yd(e){return e.value=Object.freeze(e.value),e}var dl=f("$ZodTemplateLiteral",(e,n)=>{j.init(e,n);let r=[];for(let o of n.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let t=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=t.startsWith("^")?1:0,a=t.endsWith("$")?t.length-1:t.length;r.push(t.slice(i,a))}else if(o===null||no.has(typeof o))r.push(pe(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,t)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:n.format??"template_literal",pattern:e._zod.pattern.source}),o)}),pl=f("$ZodFunction",(e,n)=>(j.init(e,n),e._def=n,e._zod.def=n,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let t=e._def.input?Fn(e._def.input,o):o,i=Reflect.apply(r,this,t);return e._def.output?Fn(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let t=e._def.input?await Mn(e._def.input,o):o,i=await Reflect.apply(r,this,t);return e._def.output?await Mn(e._def.output,i):i}},e._zod.parse=(r,o)=>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 o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new lr({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),fl=f("$ZodPromise",(e,n)=>{j.init(e,n),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(t=>n.innerType._zod.run({value:t,issues:[]},o))}),ml=f("$ZodLazy",(e,n)=>{j.init(e,n),N(e._zod,"innerType",()=>{let r=n;return r._cachedInner||(r._cachedInner=n.getter()),r._cachedInner}),N(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),N(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),N(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),N(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),hl=f("$ZodCustom",(e,n)=>{Z.init(e,n),j.init(e,n),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,t=n.fn(o);if(t instanceof Promise)return t.then(i=>xd(i,r,o,e));xd(t,r,o,e)}});function xd(e,n,r,o){if(!e){let t={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(t.params=o._zod.def.params),n.issues.push(at(t))}}var sn={};Se(sn,{ar:()=>zd,az:()=>Pd,be:()=>Ed,bg:()=>Id,ca:()=>Nd,cs:()=>Od,da:()=>Td,de:()=>Cd,el:()=>Rd,en:()=>ur,eo:()=>Dd,es:()=>Ad,fa:()=>Ud,fi:()=>Ld,fr:()=>Zd,frCA:()=>Fd,he:()=>Md,hr:()=>Bd,hu:()=>Wd,hy:()=>Jd,id:()=>Hd,is:()=>qd,it:()=>Kd,ja:()=>Gd,ka:()=>Xd,kh:()=>Qd,km:()=>dr,ko:()=>Yd,lt:()=>tp,mk:()=>np,ms:()=>rp,nl:()=>ip,no:()=>op,ota:()=>ap,pl:()=>sp,ps:()=>lp,pt:()=>cp,ro:()=>up,ru:()=>pp,sl:()=>fp,sv:()=>mp,ta:()=>hp,th:()=>gp,tr:()=>vp,ua:()=>bp,uk:()=>pr,ur:()=>yp,uz:()=>xp,vi:()=>kp,yo:()=>$p,zhCN:()=>wp,zhTW:()=>_p});var fv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.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 ${t.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`:`\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 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`}case"invalid_value":return t.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${b(t.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${t.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${t.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${t.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`${r[i.format]??t.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${t.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${t.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${t.keys.length>1?"\u0629":""}: ${h(t.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function zd(){return{localeError:fv()}}var mv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${t.expected}, daxil olan ${l}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${l}`}case"invalid_value":return t.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${b(t.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${i}${t.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${i}${t.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[i.format]??t.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${t.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${t.keys.length>1?"lar":""}: ${h(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${t.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Pd(){return{localeError:mv()}}function jd(e,n,r,o){let t=Math.abs(e),i=t%10,a=t%100;return a>=11&&a<=19?o:i===1?n:i>=2&&i<=4?r:o}var hv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${t.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`}case"invalid_value":return t.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${b(t.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);if(a){let l=Number(t.maximum),s=jd(l,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${t.maximum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);if(a){let l=Number(t.minimum),s=jd(l,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${t.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${t.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${h(t.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${t.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Ed(){return{localeError:hv()}}var gv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${b(t.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 ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${t.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${t.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.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 "${i.prefix}"`;if(i.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 "${i.suffix}"`;if(i.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 "${i.includes}"`;if(i.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 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[i.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${t.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u043E\u0432\u0435":""}: ${h(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${t.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 ${t.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function Id(){return{localeError:gv()}}var vv=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function n(t){return e[t]??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"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${t.expected}, s'ha rebut ${l}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${l}`}case"invalid_value":return t.values.length===1?`Valor inv\xE0lid: s'esperava ${b(t.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${h(t.values," o ")}`;case"too_big":{let i=t.inclusive?"com a m\xE0xim":"menys de",a=n(t.origin);return a?`Massa gran: s'esperava que ${t.origin??"el valor"} contingu\xE9s ${i} ${t.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"com a m\xEDnim":"m\xE9s de",a=n(t.origin);return a?`Massa petit: s'esperava que ${t.origin} contingu\xE9s ${i} ${t.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${r[i.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${h(t.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${t.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${t.origin}`;default:return"Entrada inv\xE0lida"}}};function Nd(){return{localeError:vv()}}var bv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${t.expected}, obdr\u017Eeno ${l}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${l}`}case"invalid_value":return t.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${b(t.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${i}${t.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${i}${t.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${r[i.format]??t.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${t.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${h(t.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${t.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${t.origin}`;default:return"Neplatn\xFD vstup"}}};function Od(){return{localeError:bv()}}var yv=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function n(t){return e[t]??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"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Ugyldigt input: forventede instanceof ${t.expected}, fik ${l}`:`Ugyldigt input: forventede ${i}, fik ${l}`}case"invalid_value":return t.values.length===1?`Ugyldig v\xE6rdi: forventede ${b(t.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin),l=o[t.origin]??t.origin;return a?`For stor: forventede ${l??"value"} ${a.verb} ${i} ${t.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${l??"value"} havde ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin),l=o[t.origin]??t.origin;return a?`For lille: forventede ${l} ${a.verb} ${i} ${t.minimum.toString()} ${a.unit}`:`For lille: forventede ${l} havde ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??t.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${h(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${t.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${t.origin}`;default:return"Ugyldigt input"}}};function Td(){return{localeError:yv()}}var xv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"Zahl",array:"Array"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${t.expected}, erhalten ${l}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${l}`}case"invalid_value":return t.values.length===1?`Ung\xFCltige Eingabe: erwartet ${b(t.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${i}${t.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${i}${t.maximum.toString()} ist`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ist`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${r[i.format]??t.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${h(t.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${t.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${t.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Cd(){return{localeError:xv()}}var kv=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function n(t){return e[t]??null}let r={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return typeof t.expected=="string"&&/^[A-Z]/.test(t.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${t.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${l}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${l}`}case"invalid_value":return t.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${b(t.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${t.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${t.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${i.prefix}"`:i.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${i.suffix}"`:i.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${i.includes}"`:i.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${i.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${r[i.format]??t.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${t.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${t.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${t.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${h(t.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${t.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${t.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function Rd(){return{localeError:kv()}}var wv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return`Invalid input: expected ${i}, received ${l}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${b(t.values[0])}`:`Invalid option: expected one of ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`Too big: expected ${t.origin??"value"} to have ${i}${t.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${t.origin??"value"} to be ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`Too small: expected ${t.origin} to have ${i}${t.minimum.toString()} ${a.unit}`:`Too small: expected ${t.origin} to be ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??t.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${t.divisor}`;case"unrecognized_keys":return`Unrecognized key${t.keys.length>1?"s":""}: ${h(t.keys,", ")}`;case"invalid_key":return`Invalid key in ${t.origin}`;case"invalid_union":return t.options&&Array.isArray(t.options)&&t.options.length>0?`Invalid discriminator value. Expected ${t.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${t.origin}`;default:return"Invalid input"}}};function ur(){return{localeError:wv()}}var _v=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function n(t){return e[t]??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"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${t.expected}, ricevi\u011Dis ${l}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${l}`}case"invalid_value":return t.values.length===1?`Nevalida enigo: atendi\u011Dis ${b(t.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${i}${t.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`Tro malgranda: atendi\u011Dis ke ${t.origin} havu ${i}${t.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${t.origin} estu ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${r[i.format]??t.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${t.divisor}`;case"unrecognized_keys":return`Nekonata${t.keys.length>1?"j":""} \u015Dlosilo${t.keys.length>1?"j":""}: ${h(t.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${t.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${t.origin}`;default:return"Nevalida enigo"}}};function Dd(){return{localeError:_v()}}var $v=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function n(t){return e[t]??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"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${t.expected}, recibido ${l}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${l}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: se esperaba ${b(t.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin),l=o[t.origin]??t.origin;return a?`Demasiado grande: se esperaba que ${l??"valor"} tuviera ${i}${t.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${l??"valor"} fuera ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin),l=o[t.origin]??t.origin;return a?`Demasiado peque\xF1o: se esperaba que ${l} tuviera ${i}${t.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${l} fuera ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${r[i.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Llave${t.keys.length>1?"s":""} desconocida${t.keys.length>1?"s":""}: ${h(t.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[t.origin]??t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[t.origin]??t.origin}`;default:return"Entrada inv\xE1lida"}}};function Ad(){return{localeError:$v()}}var Sv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${t.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \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 ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return t.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${b(t.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${h(t.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[i.format]??t.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${t.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${t.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${h(t.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${t.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${t.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Ud(){return{localeError:Sv()}}var zv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${l}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${l}`}case"invalid_value":return t.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${b(t.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${t.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${t.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${r[i.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${h(t.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function Ld(){return{localeError:zv()}}var Pv=()=>{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 n(t){return e[t]??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"},o={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : instanceof ${t.expected} attendu, ${l} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${l} re\xE7u`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : ${b(t.values[0])} attendu`:`Option invalide : une valeur parmi ${h(t.values,"|")} attendue`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`Trop grand : ${o[t.origin]??"valeur"} doit ${a.verb} ${i}${t.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[t.origin]??"valeur"} doit \xEAtre ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`Trop petit : ${o[t.origin]??"valeur"} doit ${a.verb} ${i}${t.minimum.toString()} ${a.unit}`:`Trop petit : ${o[t.origin]??"valeur"} doit \xEAtre ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${r[i.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${h(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}};function Zd(){return{localeError:Pv()}}var jv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : attendu instanceof ${t.expected}, re\xE7u ${l}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${l}`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : attendu ${b(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"\u2264":"<",a=n(t.origin);return a?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${i}${t.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"\u2265":">",a=n(t.origin);return a?`Trop petit : attendu que ${t.origin} ait ${i}${t.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${t.origin} soit ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${r[i.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${h(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}};function Fd(){return{localeError:jv()}}var Ev=()=>{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"}},n={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=c=>c?e[c]:void 0,o=c=>{let u=r(c);return u?u.label:c??e.unknown.label},t=c=>`\u05D4${o(c)}`,i=c=>(r(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=c=>c?n[c]??null:null,l={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},s={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let u=c.expected,p=s[u??""]??o(u),m=y(c.input),g=s[m]??e[m]?.label??m;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`}case"invalid_value":{if(c.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${b(c.values[0])}`;let u=c.values.map(g=>b(g));if(c.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${u[0]} \u05D0\u05D5 ${u[1]}`;let p=u[u.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 ${u.slice(0,-1).join(", ")} \u05D0\u05D5 ${p}`}case"too_big":{let u=a(c.origin),p=t(c.origin??"value");if(c.origin==="string")return`${u?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${u?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let v=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(c.origin==="array"||c.origin==="set"){let v=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",x=c.inclusive?`${c.maximum} ${u?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${u?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let m=c.inclusive?"<=":"<",g=i(c.origin??"value");return u?.unit?`${u.longLabel} \u05DE\u05D3\u05D9: ${p} ${g} ${m}${c.maximum.toString()} ${u.unit}`:`${u?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${g} ${m}${c.maximum.toString()}`}case"too_small":{let u=a(c.origin),p=t(c.origin??"value");if(c.origin==="string")return`${u?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${u?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let v=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(c.origin==="array"||c.origin==="set"){let v=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let z=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${z}`}let x=c.inclusive?`${c.minimum} ${u?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${u?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let m=c.inclusive?">=":">",g=i(c.origin??"value");return u?.unit?`${u.shortLabel} \u05DE\u05D3\u05D9: ${p} ${g} ${m}${c.minimum.toString()} ${u.unit}`:`${u?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${g} ${m}${c.minimum.toString()}`}case"invalid_format":{let u=c;if(u.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${u.prefix}"`;if(u.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${u.suffix}"`;if(u.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${u.includes}"`;if(u.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 ${u.pattern}`;let p=l[u.format],m=p?.label??u.format,v=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${m} \u05DC\u05D0 ${v}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${h(c.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${t(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Md(){return{localeError:Ev()}}var Iv=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function n(t){return e[t]??null}let r={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${t.expected}, a primljeno je ${l}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${l}`}case"invalid_value":return t.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${b(t.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin),l=o[t.origin]??t.origin;return a?`Preveliko: o\u010Dekivano da ${l??"vrijednost"} ima ${i}${t.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${l??"vrijednost"} bude ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin),l=o[t.origin]??t.origin;return a?`Premalo: o\u010Dekivano da ${l} ima ${i}${t.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${l} bude ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${i.prefix}"`:i.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${i.suffix}"`:i.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${i.includes}"`:i.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`:`Neispravna ${r[i.format]??t.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${t.divisor}`;case"unrecognized_keys":return`Neprepoznat${t.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${h(t.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[t.origin]??t.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[t.origin]??t.origin}`;default:return"Neispravan unos"}}};function Bd(){return{localeError:Iv()}}var Nv=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function n(t){return e[t]??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"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${t.expected}, a kapott \xE9rt\xE9k ${l}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${l}`}case"invalid_value":return t.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${b(t.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`T\xFAl nagy: ${t.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${t.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${t.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} m\xE9rete t\xFAl kicsi ${i}${t.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} t\xFAl kicsi ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[i.format]??t.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${t.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${h(t.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${t.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${t.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function Wd(){return{localeError:Nv()}}function Vd(e,n,r){return Math.abs(e)===1?n:r}function pt(e){if(!e)return"";let n=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(n.includes(r)?"\u0576":"\u0568")}var Ov=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.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 ${t.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`:`\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 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`}case"invalid_value":return t.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 ${b(t.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 ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);if(a){let l=Number(t.maximum),s=Vd(l,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${pt(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${t.maximum.toString()} ${s}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${pt(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);if(a){let l=Number(t.minimum),s=Vd(l,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${pt(t.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${t.minimum.toString()} ${s}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${pt(t.origin)} \u056C\u056B\u0576\u056B ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.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 ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[i.format]??t.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 ${t.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${t.keys.length>1?"\u0576\u0565\u0580":""}. ${h(t.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${pt(t.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 ${pt(t.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function Jd(){return{localeError:Ov()}}var Tv=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function n(t){return e[t]??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"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${l}`:`Input tidak valid: diharapkan ${i}, diterima ${l}`}case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${b(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${i}${t.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`Terlalu kecil: diharapkan ${t.origin} memiliki ${i}${t.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${r[i.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${h(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}};function Hd(){return{localeError:Tv()}}var Cv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera instanceof ${t.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return t.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${b(t.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} hafi ${i}${t.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} s\xE9 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} hafi ${i}${t.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} s\xE9 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${r[i.format]??t.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${t.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${t.keys.length>1?"ir lyklar":"ur lykill"}: ${h(t.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${t.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${t.origin}`;default:return"Rangt gildi"}}};function qd(){return{localeError:Cv()}}var Rv=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function n(t){return e[t]??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"},o={nan:"NaN",number:"numero",array:"vettore"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Input non valido: atteso instanceof ${t.expected}, ricevuto ${l}`:`Input non valido: atteso ${i}, ricevuto ${l}`}case"invalid_value":return t.values.length===1?`Input non valido: atteso ${b(t.values[0])}`:`Opzione non valida: atteso uno tra ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`Troppo grande: ${t.origin??"valore"} deve avere ${i}${t.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`Troppo piccolo: ${t.origin} deve avere ${i}${t.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${t.origin} deve essere ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Input non valido: ${r[i.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${h(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}};function Kd(){return{localeError:Rv()}}var Dv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${t.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return t.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${b(t.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${h(t.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=t.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=n(t.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=t.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=n(t.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[i.format]??t.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${t.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${t.keys.length>1?"\u7FA4":""}: ${h(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function Gd(){return{localeError:Dv()}}var Av=()=>{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 n(t){return e[t]??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 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.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 ${t.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`}case"invalid_value":return t.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 ${b(t.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 ${h(t.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[i.format]??t.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 ${t.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${t.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${h(t.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${t.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 ${t.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function Xd(){return{localeError:Av()}}var Uv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.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 ${t.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`:`\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 ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`}case"invalid_value":return t.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${b(t.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${t.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${i} ${t.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[i.format]??t.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${t.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${h(t.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function dr(){return{localeError:Uv()}}function Qd(){return dr()}var Lv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${t.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`}case"invalid_value":return t.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${b(t.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${h(t.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=t.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=n(t.origin),s=l?.unit??"\uC694\uC18C";return l?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()}${s} ${i}${a}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()} ${i}${a}`}case"too_small":{let i=t.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=n(t.origin),s=l?.unit??"\uC694\uC18C";return l?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()}${s} ${i}${a}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[i.format]??t.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${t.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${h(t.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${t.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${t.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function Yd(){return{localeError:Lv()}}var ln=e=>e.charAt(0).toUpperCase()+e.slice(1);function ep(e){let n=Math.abs(e),r=n%10,o=n%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}var Zv=()=>{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 n(t,i,a,l){let s=e[t]??null;return s===null?s:{unit:s.unit[i],verb:s.verb[l][a?"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"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Gautas tipas ${l}, o tik\u0117tasi - instanceof ${t.expected}`:`Gautas tipas ${l}, o tik\u0117tasi - ${i}`}case"invalid_value":return t.values.length===1?`Privalo b\u016Bti ${b(t.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${h(t.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[t.origin]??t.origin,a=n(t.origin,ep(Number(t.maximum)),t.inclusive??!1,"smaller");if(a?.verb)return`${ln(i??t.origin??"reik\u0161m\u0117")} ${a.verb} ${t.maximum.toString()} ${a.unit??"element\u0173"}`;let l=t.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${ln(i??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${t.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[t.origin]??t.origin,a=n(t.origin,ep(Number(t.minimum)),t.inclusive??!1,"bigger");if(a?.verb)return`${ln(i??t.origin??"reik\u0161m\u0117")} ${a.verb} ${t.minimum.toString()} ${a.unit??"element\u0173"}`;let l=t.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${ln(i??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${t.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${r[i.format]??t.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${t.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${t.keys.length>1?"i":"as"} rakt${t.keys.length>1?"ai":"as"}: ${h(t.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[t.origin]??t.origin;return`${ln(i??t.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function tp(){return{localeError:Zv()}}var Fv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${t.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${b(t.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${t.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${t.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`Invalid ${r[i.format]??t.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${h(t.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${t.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${t.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function np(){return{localeError:Fv()}}var Mv=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function n(t){return e[t]??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"},o={nan:"NaN",number:"nombor"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Input tidak sah: dijangka instanceof ${t.expected}, diterima ${l}`:`Input tidak sah: dijangka ${i}, diterima ${l}`}case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${b(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`Terlalu besar: dijangka ${t.origin??"nilai"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`Terlalu kecil: dijangka ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${r[i.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${h(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}};function rp(){return{localeError:Mv()}}var Bv=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function n(t){return e[t]??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"},o={nan:"NaN",number:"getal"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${l}`:`Ongeldige invoer: verwacht ${i}, ontving ${l}`}case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${b(t.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin),l=t.origin==="date"?"laat":t.origin==="string"?"lang":"groot";return a?`Te ${l}: verwacht dat ${t.origin??"waarde"} ${i}${t.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${l}: verwacht dat ${t.origin??"waarde"} ${i}${t.maximum.toString()} is`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin),l=t.origin==="date"?"vroeg":t.origin==="string"?"kort":"klein";return a?`Te ${l}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${l}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} is`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${r[i.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${h(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}};function ip(){return{localeError:Bv()}}var Wv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"tall",array:"liste"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Ugyldig input: forventet instanceof ${t.expected}, fikk ${l}`:`Ugyldig input: forventet ${i}, fikk ${l}`}case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${b(t.values[0])}`:`Ugyldig valg: forventet en av ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${i}${t.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`For lite(n): forventet ${t.origin} til \xE5 ha ${i}${t.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${t.origin} til \xE5 ha ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${h(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}};function op(){return{localeError:Wv()}}var Vv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`F\xE2sit giren: umulan instanceof ${t.expected}, al\u0131nan ${l}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${l}`}case"invalid_value":return t.values.length===1?`F\xE2sit giren: umulan ${b(t.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${i}${t.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${i}${t.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${i}${t.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${i}${t.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=t;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[i.format]??t.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${t.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${t.keys.length>1?"s":""}: ${h(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${t.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function ap(){return{localeError:Vv()}}var Jv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${t.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return t.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${b(t.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${h(t.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} \u0648\u064A`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[i.format]??t.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${t.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${t.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${h(t.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${t.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${t.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function lp(){return{localeError:Jv()}}var Hv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"liczba",array:"tablica"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${t.expected}, otrzymano ${l}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${l}`}case"invalid_value":return t.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${b(t.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${t.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${t.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[i.format]??t.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${h(t.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${t.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${t.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function sp(){return{localeError:Hv()}}var qv=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function n(t){return e[t]??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"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Tipo inv\xE1lido: esperado instanceof ${t.expected}, recebido ${l}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${l}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: esperado ${b(t.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${i}${t.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`Muito pequeno: esperado que ${t.origin} tivesse ${i}${t.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${r[i.format]??t.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${h(t.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${t.origin}`;default:return"Campo inv\xE1lido"}}};function cp(){return{localeError:qv()}}var Kv=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function n(t){return e[t]??null}let r={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},o={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${l}`}case"invalid_value":return t.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${b(t.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`Prea mare: a\u0219teptat ca ${t.origin??"valoarea"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${t.origin??"valoarea"} s\u0103 fie ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`Prea mic: a\u0219teptat ca ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${t.origin} s\u0103 fie ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${i.prefix}"`:i.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${i.suffix}"`:i.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${i.includes}"`:i.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${i.pattern}`:`Format invalid: ${r[i.format]??t.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${t.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${h(t.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${t.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${t.origin}`;default:return"Intrare invalid\u0103"}}};function up(){return{localeError:Kv()}}function dp(e,n,r,o){let t=Math.abs(e),i=t%10,a=t%100;return a>=11&&a<=19?o:i===1?n:i>=2&&i<=4?r:o}var Gv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${b(t.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);if(a){let l=Number(t.maximum),s=dp(l,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${t.maximum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);if(a){let l=Number(t.minimum),s=dp(l,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${t.minimum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${t.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0438":""}: ${h(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function pp(){return{localeError:Gv()}}var Xv=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function n(t){return e[t]??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"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${t.expected}, prejeto ${l}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${l}`}case"invalid_value":return t.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${b(t.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} imelo ${i}${t.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${t.origin} imelo ${i}${t.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${r[i.format]??t.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${h(t.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}};function fp(){return{localeError:Xv()}}var Qv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"antal",array:"lista"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${t.expected}, fick ${l}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${l}`}case"invalid_value":return t.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${b(t.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${i}${t.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${t.origin??"v\xE4rdet"} att ha ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${i}${t.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${r[i.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${h(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${t.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function mp(){return{localeError:Qv()}}var Yv=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.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 ${t.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`:`\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 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`}case"invalid_value":return t.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${b(t.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${h(t.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${t.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${t.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${i}${t.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${i}${t.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.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[i.format]??t.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${t.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${t.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${h(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function hp(){return{localeError:Yv()}}var eb=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.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 ${t.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`:`\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 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`}case"invalid_value":return t.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${b(t.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=n(t.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=n(t.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.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 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[i.format]??t.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${t.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${h(t.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function gp(){return{localeError:eb()}}var tb=()=>{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 n(t){return e[t]??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"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${t.expected}, al\u0131nan ${l}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${l}`}case"invalid_value":return t.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${b(t.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${i}${t.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${i}${t.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[i.format]??t.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${t.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${t.keys.length>1?"lar":""}: ${h(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${t.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function vp(){return{localeError:tb()}}var nb=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.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 ${t.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`:`\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 ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${b(t.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} \u0431\u0443\u0434\u0435 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0456":""}: ${h(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${t.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function pr(){return{localeError:nb()}}function bp(){return pr()}var rb=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${t.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return t.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${b(t.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${h(t.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${t.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${t.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u06D2 ${i}${t.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u0627 ${i}${t.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[i.format]??t.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${t.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${t.keys.length>1?"\u0632":""}: ${h(t.keys,"\u060C ")}`;case"invalid_key":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function yp(){return{localeError:rb()}}var ib=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function n(t){return e[t]??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"},o={nan:"NaN",number:"raqam",array:"massiv"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${l}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${l}`}case"invalid_value":return t.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${b(t.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`Juda katta: kutilgan ${t.origin??"qiymat"} ${i}${t.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${t.origin??"qiymat"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[i.format]??t.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${t.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${t.keys.length>1?"lar":""}: ${h(t.keys,", ")}`;case"invalid_key":return`${t.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${t.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function xp(){return{localeError:ib()}}var ob=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${t.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`}case"invalid_value":return t.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${b(t.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${r[i.format]??t.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${t.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${h(t.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function kp(){return{localeError:ob()}}var ab=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${t.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`}case"invalid_value":return t.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${b(t.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${i}${t.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${i}${t.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${r[i.format]??t.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${t.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${h(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${t.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function wp(){return{localeError:ab()}}var lb=()=>{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 n(t){return e[t]??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"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${t.expected}\uFF0C\u4F46\u6536\u5230 ${l}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${l}`}case"invalid_value":return t.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${b(t.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${i}${t.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${i}${t.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${r[i.format]??t.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${t.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${t.keys.length>1?"\u5011":""}\uFF1A${h(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function _p(){return{localeError:lb()}}var sb=()=>{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 n(t){return e[t]??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"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,a=y(t.input),l=o[a]??a;return/^[A-Z]/.test(t.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${t.expected}, \xE0m\u1ECD\u0300 a r\xED ${l}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${l}`}case"invalid_value":return t.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${b(t.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${h(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",a=n(t.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin??"iye"} ${a.verb} ${i}${t.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${t.maximum}`}case"too_small":{let i=t.inclusive?">=":">",a=n(t.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin} ${a.verb} ${i}${t.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${t.minimum}`}case"invalid_format":{let i=t;return i.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 "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${r[i.format]??t.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${t.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${h(t.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function $p(){return{localeError:sb()}}var Sp,gl=Symbol("ZodOutput"),vl=Symbol("ZodInput"),fr=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(n,...r){let o=r[0];return this._map.set(n,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,n),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(n){let r=this._map.get(n);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(n),this}get(n){let r=n._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let t={...o,...this._map.get(n)};return Object.keys(t).length?t:void 0}return this._map.get(n)}has(n){return this._map.has(n)}};function mr(){return new fr}(Sp=globalThis).__zod_globalRegistry??(Sp.__zod_globalRegistry=mr());var J=globalThis.__zod_globalRegistry;function bl(e,n){return new e({type:"string",...w(n)})}function yl(e,n){return new e({type:"string",coerce:!0,...w(n)})}function hr(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...w(n)})}function cn(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...w(n)})}function gr(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...w(n)})}function vr(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...w(n)})}function br(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...w(n)})}function yr(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...w(n)})}function un(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...w(n)})}function xr(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...w(n)})}function kr(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...w(n)})}function wr(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...w(n)})}function _r(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...w(n)})}function $r(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...w(n)})}function Sr(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...w(n)})}function zr(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...w(n)})}function Pr(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...w(n)})}function jr(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...w(n)})}function xl(e,n){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...w(n)})}function Er(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...w(n)})}function Ir(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...w(n)})}function Nr(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...w(n)})}function Or(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...w(n)})}function Tr(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...w(n)})}function Cr(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...w(n)})}var kl={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function wl(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...w(n)})}function _l(e,n){return new e({type:"string",format:"date",check:"string_format",...w(n)})}function $l(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...w(n)})}function Sl(e,n){return new e({type:"string",format:"duration",check:"string_format",...w(n)})}function zl(e,n){return new e({type:"number",checks:[],...w(n)})}function Pl(e,n){return new e({type:"number",coerce:!0,checks:[],...w(n)})}function jl(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...w(n)})}function El(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...w(n)})}function Il(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...w(n)})}function Nl(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...w(n)})}function Ol(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...w(n)})}function Tl(e,n){return new e({type:"boolean",...w(n)})}function Cl(e,n){return new e({type:"boolean",coerce:!0,...w(n)})}function Rl(e,n){return new e({type:"bigint",...w(n)})}function Dl(e,n){return new e({type:"bigint",coerce:!0,...w(n)})}function Al(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...w(n)})}function Ul(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...w(n)})}function Ll(e,n){return new e({type:"symbol",...w(n)})}function Zl(e,n){return new e({type:"undefined",...w(n)})}function Fl(e,n){return new e({type:"null",...w(n)})}function Ml(e){return new e({type:"any"})}function Bl(e){return new e({type:"unknown"})}function Wl(e,n){return new e({type:"never",...w(n)})}function Vl(e,n){return new e({type:"void",...w(n)})}function Jl(e,n){return new e({type:"date",...w(n)})}function Hl(e,n){return new e({type:"date",coerce:!0,...w(n)})}function ql(e,n){return new e({type:"nan",...w(n)})}function ye(e,n){return new Yn({check:"less_than",...w(n),value:e,inclusive:!1})}function le(e,n){return new Yn({check:"less_than",...w(n),value:e,inclusive:!0})}function xe(e,n){return new er({check:"greater_than",...w(n),value:e,inclusive:!1})}function X(e,n){return new er({check:"greater_than",...w(n),value:e,inclusive:!0})}function Rr(e){return xe(0,e)}function Dr(e){return ye(0,e)}function Ar(e){return le(0,e)}function Ur(e){return X(0,e)}function Ue(e,n){return new Fo({check:"multiple_of",...w(n),value:e})}function Le(e,n){return new Wo({check:"max_size",...w(n),maximum:e})}function ke(e,n){return new Vo({check:"min_size",...w(n),minimum:e})}function Xe(e,n){return new Jo({check:"size_equals",...w(n),size:e})}function Qe(e,n){return new Ho({check:"max_length",...w(n),maximum:e})}function Pe(e,n){return new qo({check:"min_length",...w(n),minimum:e})}function Ye(e,n){return new Ko({check:"length_equals",...w(n),length:e})}function ft(e,n){return new Go({check:"string_format",format:"regex",...w(n),pattern:e})}function mt(e){return new Xo({check:"string_format",format:"lowercase",...w(e)})}function ht(e){return new Qo({check:"string_format",format:"uppercase",...w(e)})}function gt(e,n){return new Yo({check:"string_format",format:"includes",...w(n),includes:e})}function vt(e,n){return new ea({check:"string_format",format:"starts_with",...w(n),prefix:e})}function bt(e,n){return new ta({check:"string_format",format:"ends_with",...w(n),suffix:e})}function Lr(e,n,r){return new na({check:"property",property:e,schema:n,...w(r)})}function yt(e,n){return new ra({check:"mime_type",mime:e,...w(n)})}function ve(e){return new ia({check:"overwrite",tx:e})}function xt(e){return ve(n=>n.normalize(e))}function kt(){return ve(e=>e.trim())}function wt(){return ve(e=>e.toLowerCase())}function _t(){return ve(e=>e.toUpperCase())}function $t(){return ve(e=>Yi(e))}function Kl(e,n,r){return new e({type:"array",element:n,...w(r)})}function ub(e,n,r){return new e({type:"union",options:n,...w(r)})}function db(e,n,r){return new e({type:"union",options:n,inclusive:!1,...w(r)})}function pb(e,n,r,o){return new e({type:"union",options:r,discriminator:n,...w(o)})}function fb(e,n,r){return new e({type:"intersection",left:n,right:r})}function mb(e,n,r,o){let t=r instanceof j,i=t?o:r,a=t?r:null;return new e({type:"tuple",items:n,rest:a,...w(i)})}function hb(e,n,r,o){return new e({type:"record",keyType:n,valueType:r,...w(o)})}function gb(e,n,r,o){return new e({type:"map",keyType:n,valueType:r,...w(o)})}function vb(e,n,r){return new e({type:"set",valueType:n,...w(r)})}function bb(e,n,r){let o=Array.isArray(n)?Object.fromEntries(n.map(t=>[t,t])):n;return new e({type:"enum",entries:o,...w(r)})}function yb(e,n,r){return new e({type:"enum",entries:n,...w(r)})}function xb(e,n,r){return new e({type:"literal",values:Array.isArray(n)?n:[n],...w(r)})}function Gl(e,n){return new e({type:"file",...w(n)})}function kb(e,n){return new e({type:"transform",transform:n})}function wb(e,n){return new e({type:"optional",innerType:n})}function _b(e,n){return new e({type:"nullable",innerType:n})}function $b(e,n,r){return new e({type:"default",innerType:n,get defaultValue(){return typeof r=="function"?r():to(r)}})}function Sb(e,n,r){return new e({type:"nonoptional",innerType:n,...w(r)})}function zb(e,n){return new e({type:"success",innerType:n})}function Pb(e,n,r){return new e({type:"catch",innerType:n,catchValue:typeof r=="function"?r:()=>r})}function jb(e,n,r){return new e({type:"pipe",in:n,out:r})}function Eb(e,n){return new e({type:"readonly",innerType:n})}function Ib(e,n,r){return new e({type:"template_literal",parts:n,...w(r)})}function Nb(e,n){return new e({type:"lazy",getter:n})}function Ob(e,n){return new e({type:"promise",innerType:n})}function Xl(e,n,r){let o=w(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:n,...o})}function Ql(e,n,r){return new e({type:"custom",check:"custom",fn:n,...w(r)})}function Yl(e,n){let r=zp(o=>(o.addIssue=t=>{if(typeof t=="string")o.issues.push(at(t,o.value,r._zod.def));else{let i=t;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=r),i.continue??(i.continue=!r._zod.def.abort),o.issues.push(at(i))}},e(o.value,o)),n);return r}function zp(e,n){let r=new Z({check:"custom",...w(n)});return r._zod.check=e,r}function es(e){let n=new Z({check:"describe"});return n._zod.onattach=[r=>{let o=J.get(r)??{};J.add(r,{...o,description:e})}],n._zod.check=()=>{},n}function ts(e){let n=new Z({check:"meta"});return n._zod.onattach=[r=>{let o=J.get(r)??{};J.add(r,{...o,...e})}],n._zod.check=()=>{},n}function ns(e,n){let r=w(n),o=r.truthy??["true","1","yes","on","y","enabled"],t=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(g=>typeof g=="string"?g.toLowerCase():g),t=t.map(g=>typeof g=="string"?g.toLowerCase():g));let i=new Set(o),a=new Set(t),l=e.Codec??an,s=e.Boolean??rn,c=e.String??Ge,u=new c({type:"string",error:r.error}),p=new s({type:"boolean",error:r.error}),m=new l({type:"pipe",in:u,out:p,transform:((g,v)=>{let x=g;return r.case!=="sensitive"&&(x=x.toLowerCase()),i.has(x)?!0:a.has(x)?!1:(v.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:v.value,inst:m,continue:!1}),{})}),reverseTransform:((g,v)=>g===!0?o[0]||"true":t[0]||"false"),error:r.error});return m}function St(e,n,r,o={}){let t=w(o),i={...w(o),check:"string_format",type:"string",format:n,fn:typeof r=="function"?r:l=>r.test(l),...t};return r instanceof RegExp&&(i.pattern=r),new e(i)}function Ze(e){let n=e?.target??"draft-2020-12";return n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??J,target:n,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 C(e,n,r={path:[],schemaPath:[]}){var o;let t=e._zod.def,i=n.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};n.seen.set(e,a);let l=e._zod.toJSONSchema?.();if(l)a.schema=l;else{let u={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(n,a.schema,u);else{let m=a.schema,g=n.processors[t.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`);g(e,n,m,u)}let p=e._zod.parent;p&&(a.ref||(a.ref=p),C(p,n,u),n.seen.get(p).isParent=!0)}let s=n.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),n.io==="input"&&Q(e)&&(delete a.schema.examples,delete a.schema.default),n.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,n.seen.get(e).schema}function Fe(e,n){let r=e.seen.get(n);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let l=e.metadataRegistry.get(a[0])?.id;if(l){let s=o.get(l);if(s&&s!==a[0])throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(l,a[0])}}let t=a=>{let l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(a[0])?.id,m=e.external.uri??(v=>v);if(p)return{ref:m(p)};let g=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=g,{defId:g,ref:`${m("__shared")}#/${l}/${g}`}}if(a[1]===r)return{ref:"#"};let c=`#/${l}/`,u=a[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:c+u}},i=a=>{if(a[1].schema.$ref)return;let l=a[1],{ref:s,defId:c}=t(a);l.def={...l.schema},c&&(l.defId=c);let u=l.schema;for(let p in u)delete u[p];u.$ref=s};if(e.cycles==="throw")for(let a of e.seen.entries()){let l=a[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
124
124
 
125
125
  Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let l=a[1];if(n===a[0]){i(a);continue}if(e.external){let c=e.external.registry.get(a[0])?.id;if(n!==a[0]&&c){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(l.cycle){i(a);continue}if(l.count>1&&e.reused==="ref"){i(a);continue}}}function Me(e,n){let r=e.seen.get(n);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=l=>{let s=e.seen.get(l);if(s.ref===null)return;let c=s.def??s.schema,u={...c},p=s.ref;if(s.ref=null,p){o(p);let g=e.seen.get(p),v=g.schema;if(v.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(v)):Object.assign(c,v),Object.assign(c,u),l._zod.parent===p)for(let z in c)z==="$ref"||z==="allOf"||z in u||delete c[z];if(v.$ref&&g.def)for(let z in c)z==="$ref"||z==="allOf"||z in g.def&&JSON.stringify(c[z])===JSON.stringify(g.def[z])&&delete c[z]}let m=l._zod.parent;if(m&&m!==p){o(m);let g=e.seen.get(m);if(g?.schema.$ref&&(c.$ref=g.schema.$ref,g.def))for(let v in c)v==="$ref"||v==="allOf"||v in g.def&&JSON.stringify(c[v])===JSON.stringify(g.def[v])&&delete c[v]}e.override({zodSchema:l,jsonSchema:c,path:s.path??[]})};for(let l of[...e.seen.entries()].reverse())o(l[0]);let t={};if(e.target==="draft-2020-12"?t.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?t.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?t.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let l=e.external.registry.get(n)?.id;if(!l)throw new Error("Schema is missing an `id` property");t.$id=e.external.uri(l)}Object.assign(t,r.def??r.schema);let i=e.metadataRegistry.get(n)?.id;i!==void 0&&t.id===i&&delete t.id;let a=e.external?.defs??{};for(let l of e.seen.entries()){let s=l[1];s.def&&s.defId&&(s.def.id===s.defId&&delete s.def.id,a[s.defId]=s.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?t.$defs=a:t.definitions=a);try{let l=JSON.parse(JSON.stringify(t));return Object.defineProperty(l,"~standard",{value:{...n["~standard"],jsonSchema:{input:zt(n,"input",e.processors),output:zt(n,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function Q(e,n){let r=n??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Q(o.element,r);if(o.type==="set")return Q(o.valueType,r);if(o.type==="lazy")return Q(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Q(o.innerType,r);if(o.type==="intersection")return Q(o.left,r)||Q(o.right,r);if(o.type==="record"||o.type==="map")return Q(o.keyType,r)||Q(o.valueType,r);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Q(o.in,r)||Q(o.out,r);if(o.type==="object"){for(let t in o.shape)if(Q(o.shape[t],r))return!0;return!1}if(o.type==="union"){for(let t of o.options)if(Q(t,r))return!0;return!1}if(o.type==="tuple"){for(let t of o.items)if(Q(t,r))return!0;return!!(o.rest&&Q(o.rest,r))}return!1}var rs=(e,n={})=>r=>{let o=Ze({...r,processors:n});return C(e,o),Fe(o,e),Me(o,e)},zt=(e,n,r={})=>o=>{let{libraryOptions:t,target:i}=o??{},a=Ze({...t??{},target:i,io:n,processors:r});return C(e,a),Fe(a,e),Me(a,e)};var Tb={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},is=(e,n,r,o)=>{let t=r;t.type="string";let{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(t.minLength=i),typeof a=="number"&&(t.maxLength=a),l&&(t.format=Tb[l]??l,t.format===""&&delete t.format,l==="time"&&delete t.format),c&&(t.contentEncoding=c),s&&s.size>0){let u=[...s];u.length===1?t.pattern=u[0].source:u.length>1&&(t.allOf=[...u.map(p=>({...n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},os=(e,n,r,o)=>{let t=r,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof l=="string"&&l.includes("int")?t.type="integer":t.type="number";let p=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),m=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),g=n.target==="draft-04"||n.target==="openapi-3.0";p?g?(t.minimum=u,t.exclusiveMinimum=!0):t.exclusiveMinimum=u:typeof i=="number"&&(t.minimum=i),m?g?(t.maximum=c,t.exclusiveMaximum=!0):t.exclusiveMaximum=c:typeof a=="number"&&(t.maximum=a),typeof s=="number"&&(t.multipleOf=s)},as=(e,n,r,o)=>{r.type="boolean"},ls=(e,n,r,o)=>{if(n.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},ss=(e,n,r,o)=>{if(n.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},cs=(e,n,r,o)=>{n.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},us=(e,n,r,o)=>{if(n.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},ds=(e,n,r,o)=>{if(n.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},ps=(e,n,r,o)=>{r.not={}},fs=(e,n,r,o)=>{},ms=(e,n,r,o)=>{},hs=(e,n,r,o)=>{if(n.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},gs=(e,n,r,o)=>{let t=e._zod.def,i=Jt(t.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},vs=(e,n,r,o)=>{let t=e._zod.def,i=[];for(let a of t.values)if(a===void 0){if(n.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(n.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];r.type=a===null?"null":typeof a,n.target==="draft-04"||n.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},bs=(e,n,r,o)=>{if(n.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},ys=(e,n,r,o)=>{let t=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");t.type="string",t.pattern=i.source},xs=(e,n,r,o)=>{let t=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:l,mime:s}=e._zod.bag;a!==void 0&&(i.minLength=a),l!==void 0&&(i.maxLength=l),s?s.length===1?(i.contentMediaType=s[0],Object.assign(t,i)):(Object.assign(t,i),t.anyOf=s.map(c=>({contentMediaType:c}))):Object.assign(t,i)},ks=(e,n,r,o)=>{r.type="boolean"},ws=(e,n,r,o)=>{if(n.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},_s=(e,n,r,o)=>{if(n.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},$s=(e,n,r,o)=>{if(n.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Ss=(e,n,r,o)=>{if(n.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},zs=(e,n,r,o)=>{if(n.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Ps=(e,n,r,o)=>{let t=r,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(t.minItems=a),typeof l=="number"&&(t.maxItems=l),t.type="array",t.items=C(i.element,n,{...o,path:[...o.path,"items"]})},js=(e,n,r,o)=>{let t=r,i=e._zod.def;t.type="object",t.properties={};let a=i.shape;for(let c in a)t.properties[c]=C(a[c],n,{...o,path:[...o.path,"properties",c]});let l=new Set(Object.keys(a)),s=new Set([...l].filter(c=>{let u=i.shape[c]._zod;return n.io==="input"?u.optin===void 0:u.optout===void 0}));s.size>0&&(t.required=Array.from(s)),i.catchall?._zod.def.type==="never"?t.additionalProperties=!1:i.catchall?i.catchall&&(t.additionalProperties=C(i.catchall,n,{...o,path:[...o.path,"additionalProperties"]})):n.io==="output"&&(t.additionalProperties=!1)},Fr=(e,n,r,o)=>{let t=e._zod.def,i=t.inclusive===!1,a=t.options.map((l,s)=>C(l,n,{...o,path:[...o.path,i?"oneOf":"anyOf",s]}));i?r.oneOf=a:r.anyOf=a},Es=(e,n,r,o)=>{let t=e._zod.def,i=C(t.left,n,{...o,path:[...o.path,"allOf",0]}),a=C(t.right,n,{...o,path:[...o.path,"allOf",1]}),l=c=>"allOf"in c&&Object.keys(c).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];r.allOf=s},Is=(e,n,r,o)=>{let t=r,i=e._zod.def;t.type="array";let a=n.target==="draft-2020-12"?"prefixItems":"items",l=n.target==="draft-2020-12"||n.target==="openapi-3.0"?"items":"additionalItems",s=i.items.map((m,g)=>C(m,n,{...o,path:[...o.path,a,g]})),c=i.rest?C(i.rest,n,{...o,path:[...o.path,l,...n.target==="openapi-3.0"?[i.items.length]:[]]}):null;n.target==="draft-2020-12"?(t.prefixItems=s,c&&(t.items=c)):n.target==="openapi-3.0"?(t.items={anyOf:s},c&&t.items.anyOf.push(c),t.minItems=s.length,c||(t.maxItems=s.length)):(t.items=s,c&&(t.additionalItems=c));let{minimum:u,maximum:p}=e._zod.bag;typeof u=="number"&&(t.minItems=u),typeof p=="number"&&(t.maxItems=p)},Ns=(e,n,r,o)=>{let t=r,i=e._zod.def;t.type="object";let a=i.keyType,s=a._zod.bag?.patterns;if(i.mode==="loose"&&s&&s.size>0){let u=C(i.valueType,n,{...o,path:[...o.path,"patternProperties","*"]});t.patternProperties={};for(let p of s)t.patternProperties[p.source]=u}else(n.target==="draft-07"||n.target==="draft-2020-12")&&(t.propertyNames=C(i.keyType,n,{...o,path:[...o.path,"propertyNames"]})),t.additionalProperties=C(i.valueType,n,{...o,path:[...o.path,"additionalProperties"]});let c=a._zod.values;if(c){let u=[...c].filter(p=>typeof p=="string"||typeof p=="number");u.length>0&&(t.required=u)}},Os=(e,n,r,o)=>{let t=e._zod.def,i=C(t.innerType,n,o),a=n.seen.get(e);n.target==="openapi-3.0"?(a.ref=t.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},Ts=(e,n,r,o)=>{let t=e._zod.def;C(t.innerType,n,o);let i=n.seen.get(e);i.ref=t.innerType},Cs=(e,n,r,o)=>{let t=e._zod.def;C(t.innerType,n,o);let i=n.seen.get(e);i.ref=t.innerType,r.default=JSON.parse(JSON.stringify(t.defaultValue))},Rs=(e,n,r,o)=>{let t=e._zod.def;C(t.innerType,n,o);let i=n.seen.get(e);i.ref=t.innerType,n.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(t.defaultValue)))},Ds=(e,n,r,o)=>{let t=e._zod.def;C(t.innerType,n,o);let i=n.seen.get(e);i.ref=t.innerType;let a;try{a=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},As=(e,n,r,o)=>{let t=e._zod.def,i=t.in._zod.traits.has("$ZodTransform"),a=n.io==="input"?i?t.out:t.in:t.out;C(a,n,o);let l=n.seen.get(e);l.ref=a},Us=(e,n,r,o)=>{let t=e._zod.def;C(t.innerType,n,o);let i=n.seen.get(e);i.ref=t.innerType,r.readOnly=!0},Ls=(e,n,r,o)=>{let t=e._zod.def;C(t.innerType,n,o);let i=n.seen.get(e);i.ref=t.innerType},Mr=(e,n,r,o)=>{let t=e._zod.def;C(t.innerType,n,o);let i=n.seen.get(e);i.ref=t.innerType},Zs=(e,n,r,o)=>{let t=e._zod.innerType;C(t,n,o);let i=n.seen.get(e);i.ref=t},Zr={string:is,number:os,boolean:as,bigint:ls,symbol:ss,null:cs,undefined:us,void:ds,never:ps,any:fs,unknown:ms,date:hs,enum:gs,literal:vs,nan:bs,template_literal:ys,file:xs,success:ks,custom:ws,function:_s,transform:$s,map:Ss,set:zs,array:Ps,object:js,union:Fr,intersection:Es,tuple:Is,record:Ns,nullable:Os,nonoptional:Ts,default:Cs,prefault:Rs,catch:Ds,pipe:As,readonly:Us,promise:Ls,optional:Mr,lazy:Zs};function Br(e,n){if("_idmap"in e){let o=e,t=Ze({...n,processors:Zr}),i={};for(let s of o._idmap.entries()){let[c,u]=s;C(u,t)}let a={},l={registry:o,uri:n?.uri,defs:i};t.external=l;for(let s of o._idmap.entries()){let[c,u]=s;Fe(t,u),a[c]=Me(t,u)}if(Object.keys(i).length>0){let s=t.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[s]:i}}return{schemas:a}}let r=Ze({...n,processors:Zr});return C(e,r),Fe(r,e),Me(r,e)}var Wr=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(n){this.ctx.counter=n}get seen(){return this.ctx.seen}constructor(n){let r=n?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Ze({processors:Zr,target:r,...n?.metadata&&{metadata:n.metadata},...n?.unrepresentable&&{unrepresentable:n.unrepresentable},...n?.override&&{override:n.override},...n?.io&&{io:n.io}})}process(n,r={path:[],schemaPath:[]}){return C(n,this.ctx,r)}emit(n,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),Fe(this.ctx,n);let o=Me(this.ctx,n),{"~standard":t,...i}=o;return i}};var Pp={};var dn={};Se(dn,{ZodAny:()=>uc,ZodArray:()=>mc,ZodBase64:()=>di,ZodBase64URL:()=>pi,ZodBigInt:()=>Ct,ZodBigIntFormat:()=>hi,ZodBoolean:()=>Tt,ZodCIDRv4:()=>ci,ZodCIDRv6:()=>ui,ZodCUID:()=>ni,ZodCUID2:()=>ri,ZodCatch:()=>Dc,ZodCodec:()=>_n,ZodCustom:()=>$n,ZodCustomStringFormat:()=>Nt,ZodDate:()=>bn,ZodDefault:()=>Ic,ZodDiscriminatedUnion:()=>gc,ZodE164:()=>fi,ZodEmail:()=>Yr,ZodEmoji:()=>ei,ZodEnum:()=>Et,ZodExactOptional:()=>Pc,ZodFile:()=>Sc,ZodFunction:()=>Jc,ZodGUID:()=>fn,ZodIPv4:()=>li,ZodIPv6:()=>si,ZodIntersection:()=>vc,ZodJWT:()=>mi,ZodKSUID:()=>ai,ZodLazy:()=>Bc,ZodLiteral:()=>$c,ZodMAC:()=>rc,ZodMap:()=>wc,ZodNaN:()=>Uc,ZodNanoID:()=>ti,ZodNever:()=>pc,ZodNonOptional:()=>ki,ZodNull:()=>sc,ZodNullable:()=>Ec,ZodNumber:()=>Ot,ZodNumberFormat:()=>tt,ZodObject:()=>xn,ZodOptional:()=>xi,ZodPipe:()=>wn,ZodPrefault:()=>Oc,ZodPreprocess:()=>Lc,ZodPromise:()=>Vc,ZodReadonly:()=>Zc,ZodRecord:()=>jt,ZodSet:()=>_c,ZodString:()=>It,ZodStringFormat:()=>U,ZodSuccess:()=>Rc,ZodSymbol:()=>ac,ZodTemplateLiteral:()=>Mc,ZodTransform:()=>zc,ZodTuple:()=>yc,ZodType:()=>E,ZodULID:()=>ii,ZodURL:()=>vn,ZodUUID:()=>we,ZodUndefined:()=>lc,ZodUnion:()=>kn,ZodUnknown:()=>dc,ZodVoid:()=>fc,ZodXID:()=>oi,ZodXor:()=>hc,_ZodString:()=>Qr,_default:()=>Nc,_function:()=>Af,any:()=>mf,array:()=>yn,base64:()=>Gp,base64url:()=>Xp,bigint:()=>cf,boolean:()=>oc,catch:()=>Ac,check:()=>Uf,cidrv4:()=>qp,cidrv6:()=>Kp,codec:()=>Tf,cuid:()=>Zp,cuid2:()=>Fp,custom:()=>Lf,date:()=>gf,describe:()=>Zf,discriminatedUnion:()=>wf,e164:()=>Qp,email:()=>Ip,emoji:()=>Up,enum:()=>bi,exactOptional:()=>jc,file:()=>Ef,float32:()=>of,float64:()=>af,function:()=>Af,guid:()=>Np,hash:()=>rf,hex:()=>nf,hostname:()=>tf,httpUrl:()=>Ap,instanceof:()=>Mf,int:()=>Gr,int32:()=>lf,int64:()=>uf,intersection:()=>bc,invertCodec:()=>Cf,ipv4:()=>Vp,ipv6:()=>Hp,json:()=>Wf,jwt:()=>Yp,keyof:()=>vf,ksuid:()=>Wp,lazy:()=>Wc,literal:()=>jf,looseObject:()=>xf,looseRecord:()=>$f,mac:()=>Jp,map:()=>Sf,meta:()=>Ff,nan:()=>Of,nanoid:()=>Lp,nativeEnum:()=>Pf,never:()=>gi,nonoptional:()=>Cc,null:()=>cc,nullable:()=>hn,nullish:()=>If,number:()=>ic,object:()=>bf,optional:()=>mn,partialRecord:()=>_f,pipe:()=>Xr,prefault:()=>Tc,preprocess:()=>Vf,promise:()=>Df,readonly:()=>Fc,record:()=>kc,refine:()=>Hc,set:()=>zf,strictObject:()=>yf,string:()=>pn,stringFormat:()=>ef,stringbool:()=>Bf,success:()=>Nf,superRefine:()=>qc,symbol:()=>pf,templateLiteral:()=>Rf,transform:()=>yi,tuple:()=>xc,uint32:()=>sf,uint64:()=>df,ulid:()=>Mp,undefined:()=>ff,union:()=>vi,unknown:()=>et,url:()=>Dp,uuid:()=>Op,uuidv4:()=>Tp,uuidv6:()=>Cp,uuidv7:()=>Rp,void:()=>hf,xid:()=>Bp,xor:()=>kf});var Vr={};Se(Vr,{endsWith:()=>bt,gt:()=>xe,gte:()=>X,includes:()=>gt,length:()=>Ye,lowercase:()=>mt,lt:()=>ye,lte:()=>le,maxLength:()=>Qe,maxSize:()=>Le,mime:()=>yt,minLength:()=>Pe,minSize:()=>ke,multipleOf:()=>Ue,negative:()=>Dr,nonnegative:()=>Ur,nonpositive:()=>Ar,normalize:()=>xt,overwrite:()=>ve,positive:()=>Rr,property:()=>Lr,regex:()=>ft,size:()=>Xe,slugify:()=>$t,startsWith:()=>vt,toLowerCase:()=>wt,toUpperCase:()=>_t,trim:()=>kt,uppercase:()=>ht});var Pt={};Se(Pt,{ZodISODate:()=>Hr,ZodISODateTime:()=>Jr,ZodISODuration:()=>Kr,ZodISOTime:()=>qr,date:()=>Ms,datetime:()=>Fs,duration:()=>Ws,time:()=>Bs});var Jr=f("ZodISODateTime",(e,n)=>{ba.init(e,n),U.init(e,n)});function Fs(e){return wl(Jr,e)}var Hr=f("ZodISODate",(e,n)=>{ya.init(e,n),U.init(e,n)});function Ms(e){return _l(Hr,e)}var qr=f("ZodISOTime",(e,n)=>{xa.init(e,n),U.init(e,n)});function Bs(e){return $l(qr,e)}var Kr=f("ZodISODuration",(e,n)=>{ka.init(e,n),U.init(e,n)});function Ws(e){return Sl(Kr,e)}var jp=(e,n)=>{Xt.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Yt(e,r)},flatten:{value:r=>Qt(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,it,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,it,2)}},isEmpty:{get(){return e.issues.length===0}}})},Rb=f("ZodError",jp),ie=f("ZodError",jp,{Parent:Error});var Vs=lt(ie),Js=st(ie),Hs=ct(ie),qs=ut(ie),Ks=Bn(ie),Gs=Wn(ie),Xs=Vn(ie),Qs=Jn(ie),Ys=Hn(ie),ec=qn(ie),tc=Kn(ie),nc=Gn(ie);var Ep=new WeakMap;function gn(e,n,r){let o=Object.getPrototypeOf(e),t=Ep.get(o);if(t||(t=new Set,Ep.set(o,t)),!t.has(n)){t.add(n);for(let i in r){let a=r[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){let l=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}var E=f("ZodType",(e,n)=>(j.init(e,n),Object.assign(e["~standard"],{jsonSchema:{input:zt(e,"input"),output:zt(e,"output")}}),e.toJSONSchema=rs(e,{}),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.parse=(r,o)=>Vs(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>Hs(e,r,o),e.parseAsync=async(r,o)=>Js(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>qs(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>Ks(e,r,o),e.decode=(r,o)=>Gs(e,r,o),e.encodeAsync=async(r,o)=>Xs(e,r,o),e.decodeAsync=async(r,o)=>Qs(e,r,o),e.safeEncode=(r,o)=>Ys(e,r,o),e.safeDecode=(r,o)=>ec(e,r,o),e.safeEncodeAsync=async(r,o)=>tc(e,r,o),e.safeDecodeAsync=async(r,o)=>nc(e,r,o),gn(e,"ZodType",{check(...r){let o=this.def;return this.clone(k.mergeDefs(o,{checks:[...o.checks??[],...r.map(t=>typeof t=="function"?{_zod:{check:t,def:{check:"custom"},onattach:[]}}:t)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,o){return K(this,r,o)},brand(){return this},register(r,o){return r.add(this,o),this},refine(r,o){return this.check(Hc(r,o))},superRefine(r,o){return this.check(qc(r,o))},overwrite(r){return this.check(ve(r))},optional(){return mn(this)},exactOptional(){return jc(this)},nullable(){return hn(this)},nullish(){return mn(hn(this))},nonoptional(r){return Cc(this,r)},array(){return yn(this)},or(r){return vi([this,r])},and(r){return bc(this,r)},transform(r){return Xr(this,yi(r))},default(r){return Nc(this,r)},prefault(r){return Tc(this,r)},catch(r){return Ac(this,r)},pipe(r){return Xr(this,r)},readonly(){return Fc(this)},describe(r){let o=this.clone();return J.add(o,{description:r}),o},meta(...r){if(r.length===0)return J.get(this);let o=this.clone();return J.add(o,r[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){return J.get(e)?.description},configurable:!0}),e)),Qr=f("_ZodString",(e,n)=>{Ge.init(e,n),E.init(e,n),e._zod.processJSONSchema=(o,t,i)=>is(e,o,t,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,gn(e,"_ZodString",{regex(...o){return this.check(ft(...o))},includes(...o){return this.check(gt(...o))},startsWith(...o){return this.check(vt(...o))},endsWith(...o){return this.check(bt(...o))},min(...o){return this.check(Pe(...o))},max(...o){return this.check(Qe(...o))},length(...o){return this.check(Ye(...o))},nonempty(...o){return this.check(Pe(1,...o))},lowercase(o){return this.check(mt(o))},uppercase(o){return this.check(ht(o))},trim(){return this.check(kt())},normalize(...o){return this.check(xt(...o))},toLowerCase(){return this.check(wt())},toUpperCase(){return this.check(_t())},slugify(){return this.check($t())}})}),It=f("ZodString",(e,n)=>{Ge.init(e,n),Qr.init(e,n),e.email=r=>e.check(hr(Yr,r)),e.url=r=>e.check(un(vn,r)),e.jwt=r=>e.check(Cr(mi,r)),e.emoji=r=>e.check(xr(ei,r)),e.guid=r=>e.check(cn(fn,r)),e.uuid=r=>e.check(gr(we,r)),e.uuidv4=r=>e.check(vr(we,r)),e.uuidv6=r=>e.check(br(we,r)),e.uuidv7=r=>e.check(yr(we,r)),e.nanoid=r=>e.check(kr(ti,r)),e.guid=r=>e.check(cn(fn,r)),e.cuid=r=>e.check(wr(ni,r)),e.cuid2=r=>e.check(_r(ri,r)),e.ulid=r=>e.check($r(ii,r)),e.base64=r=>e.check(Nr(di,r)),e.base64url=r=>e.check(Or(pi,r)),e.xid=r=>e.check(Sr(oi,r)),e.ksuid=r=>e.check(zr(ai,r)),e.ipv4=r=>e.check(Pr(li,r)),e.ipv6=r=>e.check(jr(si,r)),e.cidrv4=r=>e.check(Er(ci,r)),e.cidrv6=r=>e.check(Ir(ui,r)),e.e164=r=>e.check(Tr(fi,r)),e.datetime=r=>e.check(Fs(r)),e.date=r=>e.check(Ms(r)),e.time=r=>e.check(Bs(r)),e.duration=r=>e.check(Ws(r))});function pn(e){return bl(It,e)}var U=f("ZodStringFormat",(e,n)=>{A.init(e,n),Qr.init(e,n)}),Yr=f("ZodEmail",(e,n)=>{ca.init(e,n),U.init(e,n)});function Ip(e){return hr(Yr,e)}var fn=f("ZodGUID",(e,n)=>{la.init(e,n),U.init(e,n)});function Np(e){return cn(fn,e)}var we=f("ZodUUID",(e,n)=>{sa.init(e,n),U.init(e,n)});function Op(e){return gr(we,e)}function Tp(e){return vr(we,e)}function Cp(e){return br(we,e)}function Rp(e){return yr(we,e)}var vn=f("ZodURL",(e,n)=>{ua.init(e,n),U.init(e,n)});function Dp(e){return un(vn,e)}function Ap(e){return un(vn,{protocol:ae.httpProtocol,hostname:ae.domain,...k.normalizeParams(e)})}var ei=f("ZodEmoji",(e,n)=>{da.init(e,n),U.init(e,n)});function Up(e){return xr(ei,e)}var ti=f("ZodNanoID",(e,n)=>{pa.init(e,n),U.init(e,n)});function Lp(e){return kr(ti,e)}var ni=f("ZodCUID",(e,n)=>{fa.init(e,n),U.init(e,n)});function Zp(e){return wr(ni,e)}var ri=f("ZodCUID2",(e,n)=>{ma.init(e,n),U.init(e,n)});function Fp(e){return _r(ri,e)}var ii=f("ZodULID",(e,n)=>{ha.init(e,n),U.init(e,n)});function Mp(e){return $r(ii,e)}var oi=f("ZodXID",(e,n)=>{ga.init(e,n),U.init(e,n)});function Bp(e){return Sr(oi,e)}var ai=f("ZodKSUID",(e,n)=>{va.init(e,n),U.init(e,n)});function Wp(e){return zr(ai,e)}var li=f("ZodIPv4",(e,n)=>{wa.init(e,n),U.init(e,n)});function Vp(e){return Pr(li,e)}var rc=f("ZodMAC",(e,n)=>{$a.init(e,n),U.init(e,n)});function Jp(e){return xl(rc,e)}var si=f("ZodIPv6",(e,n)=>{_a.init(e,n),U.init(e,n)});function Hp(e){return jr(si,e)}var ci=f("ZodCIDRv4",(e,n)=>{Sa.init(e,n),U.init(e,n)});function qp(e){return Er(ci,e)}var ui=f("ZodCIDRv6",(e,n)=>{za.init(e,n),U.init(e,n)});function Kp(e){return Ir(ui,e)}var di=f("ZodBase64",(e,n)=>{ja.init(e,n),U.init(e,n)});function Gp(e){return Nr(di,e)}var pi=f("ZodBase64URL",(e,n)=>{Ea.init(e,n),U.init(e,n)});function Xp(e){return Or(pi,e)}var fi=f("ZodE164",(e,n)=>{Ia.init(e,n),U.init(e,n)});function Qp(e){return Tr(fi,e)}var mi=f("ZodJWT",(e,n)=>{Na.init(e,n),U.init(e,n)});function Yp(e){return Cr(mi,e)}var Nt=f("ZodCustomStringFormat",(e,n)=>{Oa.init(e,n),U.init(e,n)});function ef(e,n,r={}){return St(Nt,e,n,r)}function tf(e){return St(Nt,"hostname",ae.hostname,e)}function nf(e){return St(Nt,"hex",ae.hex,e)}function rf(e,n){let r=n?.enc??"hex",o=`${e}_${r}`,t=ae[o];if(!t)throw new Error(`Unrecognized hash format: ${o}`);return St(Nt,o,t,n)}var Ot=f("ZodNumber",(e,n)=>{or.init(e,n),E.init(e,n),e._zod.processJSONSchema=(o,t,i)=>os(e,o,t,i),gn(e,"ZodNumber",{gt(o,t){return this.check(xe(o,t))},gte(o,t){return this.check(X(o,t))},min(o,t){return this.check(X(o,t))},lt(o,t){return this.check(ye(o,t))},lte(o,t){return this.check(le(o,t))},max(o,t){return this.check(le(o,t))},int(o){return this.check(Gr(o))},safe(o){return this.check(Gr(o))},positive(o){return this.check(xe(0,o))},nonnegative(o){return this.check(X(0,o))},negative(o){return this.check(ye(0,o))},nonpositive(o){return this.check(le(0,o))},multipleOf(o,t){return this.check(Ue(o,t))},step(o,t){return this.check(Ue(o,t))},finite(){return this}});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});function ic(e){return zl(Ot,e)}var tt=f("ZodNumberFormat",(e,n)=>{Ta.init(e,n),Ot.init(e,n)});function Gr(e){return jl(tt,e)}function of(e){return El(tt,e)}function af(e){return Il(tt,e)}function lf(e){return Nl(tt,e)}function sf(e){return Ol(tt,e)}var Tt=f("ZodBoolean",(e,n)=>{rn.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>as(e,r,o,t)});function oc(e){return Tl(Tt,e)}var Ct=f("ZodBigInt",(e,n)=>{ar.init(e,n),E.init(e,n),e._zod.processJSONSchema=(o,t,i)=>ls(e,o,t,i),e.gte=(o,t)=>e.check(X(o,t)),e.min=(o,t)=>e.check(X(o,t)),e.gt=(o,t)=>e.check(xe(o,t)),e.gte=(o,t)=>e.check(X(o,t)),e.min=(o,t)=>e.check(X(o,t)),e.lt=(o,t)=>e.check(ye(o,t)),e.lte=(o,t)=>e.check(le(o,t)),e.max=(o,t)=>e.check(le(o,t)),e.positive=o=>e.check(xe(BigInt(0),o)),e.negative=o=>e.check(ye(BigInt(0),o)),e.nonpositive=o=>e.check(le(BigInt(0),o)),e.nonnegative=o=>e.check(X(BigInt(0),o)),e.multipleOf=(o,t)=>e.check(Ue(o,t));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function cf(e){return Rl(Ct,e)}var hi=f("ZodBigIntFormat",(e,n)=>{Ca.init(e,n),Ct.init(e,n)});function uf(e){return Al(hi,e)}function df(e){return Ul(hi,e)}var ac=f("ZodSymbol",(e,n)=>{Ra.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>ss(e,r,o,t)});function pf(e){return Ll(ac,e)}var lc=f("ZodUndefined",(e,n)=>{Da.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>us(e,r,o,t)});function ff(e){return Zl(lc,e)}var sc=f("ZodNull",(e,n)=>{Aa.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>cs(e,r,o,t)});function cc(e){return Fl(sc,e)}var uc=f("ZodAny",(e,n)=>{Ua.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>fs(e,r,o,t)});function mf(){return Ml(uc)}var dc=f("ZodUnknown",(e,n)=>{La.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>ms(e,r,o,t)});function et(){return Bl(dc)}var pc=f("ZodNever",(e,n)=>{Za.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>ps(e,r,o,t)});function gi(e){return Wl(pc,e)}var fc=f("ZodVoid",(e,n)=>{Fa.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>ds(e,r,o,t)});function hf(e){return Vl(fc,e)}var bn=f("ZodDate",(e,n)=>{Ma.init(e,n),E.init(e,n),e._zod.processJSONSchema=(o,t,i)=>hs(e,o,t,i),e.min=(o,t)=>e.check(X(o,t)),e.max=(o,t)=>e.check(le(o,t));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function gf(e){return Jl(bn,e)}var mc=f("ZodArray",(e,n)=>{Ba.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>Ps(e,r,o,t),e.element=n.element,gn(e,"ZodArray",{min(r,o){return this.check(Pe(r,o))},nonempty(r){return this.check(Pe(1,r))},max(r,o){return this.check(Qe(r,o))},length(r,o){return this.check(Ye(r,o))},unwrap(){return this.element}})});function yn(e,n){return Kl(mc,e,n)}function vf(e){let n=e._zod.def.shape;return bi(Object.keys(n))}var xn=f("ZodObject",(e,n)=>{Wa.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>js(e,r,o,t),k.defineLazy(e,"shape",()=>n.shape),gn(e,"ZodObject",{keyof(){return bi(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:et()})},loose(){return this.clone({...this._zod.def,catchall:et()})},strict(){return this.clone({...this._zod.def,catchall:gi()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return k.extend(this,r)},safeExtend(r){return k.safeExtend(this,r)},merge(r){return k.merge(this,r)},pick(r){return k.pick(this,r)},omit(r){return k.omit(this,r)},partial(...r){return k.partial(xi,this,r[0])},required(...r){return k.required(ki,this,r[0])}})});function bf(e,n){let r={type:"object",shape:e??{},...k.normalizeParams(n)};return new xn(r)}function yf(e,n){return new xn({type:"object",shape:e,catchall:gi(),...k.normalizeParams(n)})}function xf(e,n){return new xn({type:"object",shape:e,catchall:et(),...k.normalizeParams(n)})}var kn=f("ZodUnion",(e,n)=>{on.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>Fr(e,r,o,t),e.options=n.options});function vi(e,n){return new kn({type:"union",options:e,...k.normalizeParams(n)})}var hc=f("ZodXor",(e,n)=>{kn.init(e,n),Va.init(e,n),e._zod.processJSONSchema=(r,o,t)=>Fr(e,r,o,t),e.options=n.options});function kf(e,n){return new hc({type:"union",options:e,inclusive:!1,...k.normalizeParams(n)})}var gc=f("ZodDiscriminatedUnion",(e,n)=>{kn.init(e,n),Ja.init(e,n)});function wf(e,n,r){return new gc({type:"union",options:n,discriminator:e,...k.normalizeParams(r)})}var vc=f("ZodIntersection",(e,n)=>{Ha.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>Es(e,r,o,t)});function bc(e,n){return new vc({type:"intersection",left:e,right:n})}var yc=f("ZodTuple",(e,n)=>{lr.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>Is(e,r,o,t),e.rest=r=>e.clone({...e._zod.def,rest:r})});function xc(e,n,r){let o=n instanceof j,t=o?r:n,i=o?n:null;return new yc({type:"tuple",items:e,rest:i,...k.normalizeParams(t)})}var jt=f("ZodRecord",(e,n)=>{qa.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>Ns(e,r,o,t),e.keyType=n.keyType,e.valueType=n.valueType});function kc(e,n,r){return!n||!n._zod?new jt({type:"record",keyType:pn(),valueType:e,...k.normalizeParams(n)}):new jt({type:"record",keyType:e,valueType:n,...k.normalizeParams(r)})}function _f(e,n,r){let o=K(e);return o._zod.values=void 0,new jt({type:"record",keyType:o,valueType:n,...k.normalizeParams(r)})}function $f(e,n,r){return new jt({type:"record",keyType:e,valueType:n,mode:"loose",...k.normalizeParams(r)})}var wc=f("ZodMap",(e,n)=>{Ka.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>Ss(e,r,o,t),e.keyType=n.keyType,e.valueType=n.valueType,e.min=(...r)=>e.check(ke(...r)),e.nonempty=r=>e.check(ke(1,r)),e.max=(...r)=>e.check(Le(...r)),e.size=(...r)=>e.check(Xe(...r))});function Sf(e,n,r){return new wc({type:"map",keyType:e,valueType:n,...k.normalizeParams(r)})}var _c=f("ZodSet",(e,n)=>{Ga.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>zs(e,r,o,t),e.min=(...r)=>e.check(ke(...r)),e.nonempty=r=>e.check(ke(1,r)),e.max=(...r)=>e.check(Le(...r)),e.size=(...r)=>e.check(Xe(...r))});function zf(e,n){return new _c({type:"set",valueType:e,...k.normalizeParams(n)})}var Et=f("ZodEnum",(e,n)=>{Xa.init(e,n),E.init(e,n),e._zod.processJSONSchema=(o,t,i)=>gs(e,o,t,i),e.enum=n.entries,e.options=Object.values(n.entries);let r=new Set(Object.keys(n.entries));e.extract=(o,t)=>{let i={};for(let a of o)if(r.has(a))i[a]=n.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Et({...n,checks:[],...k.normalizeParams(t),entries:i})},e.exclude=(o,t)=>{let i={...n.entries};for(let a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Et({...n,checks:[],...k.normalizeParams(t),entries:i})}});function bi(e,n){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Et({type:"enum",entries:r,...k.normalizeParams(n)})}function Pf(e,n){return new Et({type:"enum",entries:e,...k.normalizeParams(n)})}var $c=f("ZodLiteral",(e,n)=>{Qa.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>vs(e,r,o,t),e.values=new Set(n.values),Object.defineProperty(e,"value",{get(){if(n.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function jf(e,n){return new $c({type:"literal",values:Array.isArray(e)?e:[e],...k.normalizeParams(n)})}var Sc=f("ZodFile",(e,n)=>{Ya.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>xs(e,r,o,t),e.min=(r,o)=>e.check(ke(r,o)),e.max=(r,o)=>e.check(Le(r,o)),e.mime=(r,o)=>e.check(yt(Array.isArray(r)?r:[r],o))});function Ef(e){return Gl(Sc,e)}var zc=f("ZodTransform",(e,n)=>{el.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>$s(e,r,o,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Te(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(k.issue(i,r.value,n));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(k.issue(a))}};let t=n.transform(r.value,r);return t instanceof Promise?t.then(i=>(r.value=i,r.fallback=!0,r)):(r.value=t,r.fallback=!0,r)}});function yi(e){return new zc({type:"transform",transform:e})}var xi=f("ZodOptional",(e,n)=>{sr.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>Mr(e,r,o,t),e.unwrap=()=>e._zod.def.innerType});function mn(e){return new xi({type:"optional",innerType:e})}var Pc=f("ZodExactOptional",(e,n)=>{tl.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>Mr(e,r,o,t),e.unwrap=()=>e._zod.def.innerType});function jc(e){return new Pc({type:"optional",innerType:e})}var Ec=f("ZodNullable",(e,n)=>{nl.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>Os(e,r,o,t),e.unwrap=()=>e._zod.def.innerType});function hn(e){return new Ec({type:"nullable",innerType:e})}function If(e){return mn(hn(e))}var Ic=f("ZodDefault",(e,n)=>{rl.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>Cs(e,r,o,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Nc(e,n){return new Ic({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():k.shallowClone(n)}})}var Oc=f("ZodPrefault",(e,n)=>{il.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>Rs(e,r,o,t),e.unwrap=()=>e._zod.def.innerType});function Tc(e,n){return new Oc({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():k.shallowClone(n)}})}var ki=f("ZodNonOptional",(e,n)=>{ol.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>Ts(e,r,o,t),e.unwrap=()=>e._zod.def.innerType});function Cc(e,n){return new ki({type:"nonoptional",innerType:e,...k.normalizeParams(n)})}var Rc=f("ZodSuccess",(e,n)=>{al.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>ks(e,r,o,t),e.unwrap=()=>e._zod.def.innerType});function Nf(e){return new Rc({type:"success",innerType:e})}var Dc=f("ZodCatch",(e,n)=>{ll.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>Ds(e,r,o,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ac(e,n){return new Dc({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}var Uc=f("ZodNaN",(e,n)=>{sl.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>bs(e,r,o,t)});function Of(e){return ql(Uc,e)}var wn=f("ZodPipe",(e,n)=>{cr.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>As(e,r,o,t),e.in=n.in,e.out=n.out});function Xr(e,n){return new wn({type:"pipe",in:e,out:n})}var _n=f("ZodCodec",(e,n)=>{wn.init(e,n),an.init(e,n)});function Tf(e,n,r){return new _n({type:"pipe",in:e,out:n,transform:r.decode,reverseTransform:r.encode})}function Cf(e){let n=e._zod.def;return new _n({type:"pipe",in:n.out,out:n.in,transform:n.reverseTransform,reverseTransform:n.transform})}var Lc=f("ZodPreprocess",(e,n)=>{wn.init(e,n),cl.init(e,n)}),Zc=f("ZodReadonly",(e,n)=>{ul.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>Us(e,r,o,t),e.unwrap=()=>e._zod.def.innerType});function Fc(e){return new Zc({type:"readonly",innerType:e})}var Mc=f("ZodTemplateLiteral",(e,n)=>{dl.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>ys(e,r,o,t)});function Rf(e,n){return new Mc({type:"template_literal",parts:e,...k.normalizeParams(n)})}var Bc=f("ZodLazy",(e,n)=>{ml.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>Zs(e,r,o,t),e.unwrap=()=>e._zod.def.getter()});function Wc(e){return new Bc({type:"lazy",getter:e})}var Vc=f("ZodPromise",(e,n)=>{fl.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>Ls(e,r,o,t),e.unwrap=()=>e._zod.def.innerType});function Df(e){return new Vc({type:"promise",innerType:e})}var Jc=f("ZodFunction",(e,n)=>{pl.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>_s(e,r,o,t)});function Af(e){return new Jc({type:"function",input:Array.isArray(e?.input)?xc(e?.input):e?.input??yn(et()),output:e?.output??et()})}var $n=f("ZodCustom",(e,n)=>{hl.init(e,n),E.init(e,n),e._zod.processJSONSchema=(r,o,t)=>ws(e,r,o,t)});function Uf(e){let n=new Z({check:"custom"});return n._zod.check=e,n}function Lf(e,n){return Xl($n,e??(()=>!0),n)}function Hc(e,n={}){return Ql($n,e,n)}function qc(e,n){return Yl(e,n)}var Zf=es,Ff=ts;function Mf(e,n={}){let r=new $n({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...k.normalizeParams(n)});return r._zod.bag.Class=e,r._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}var Bf=(...e)=>ns({Codec:_n,Boolean:Tt,String:It},...e);function Wf(e){let n=Wc(()=>vi([pn(e),ic(),oc(),cc(),yn(n),kc(pn(),n)]));return n}function Vf(e,n){return new Lc({type:"pipe",in:yi(e),out:n})}var Ab={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function Ub(e){W({customError:e})}function Lb(){return W().customError}var Kc;Kc||(Kc={});var $={...dn,...Vr,iso:Pt},Zb=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Fb(e,n){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":n??"draft-2020-12"}function Mb(e,n){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 n.rootSchema;let o=n.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let t=r[1];if(!t||!n.defs[t])throw new Error(`Reference not found: ${e}`);return n.defs[t]}throw new Error(`Reference not found: ${e}`)}function Jf(e,n){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return $.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 t=e.$ref;if(n.refs.has(t))return n.refs.get(t);if(n.processing.has(t))return $.lazy(()=>{if(!n.refs.has(t))throw new Error(`Circular reference not resolved: ${t}`);return n.refs.get(t)});n.processing.add(t);let i=Mb(t,n),a=H(i,n);return n.refs.set(t,a),n.processing.delete(t),a}if(e.enum!==void 0){let t=e.enum;if(n.version==="openapi-3.0"&&e.nullable===!0&&t.length===1&&t[0]===null)return $.null();if(t.length===0)return $.never();if(t.length===1)return $.literal(t[0]);if(t.every(a=>typeof a=="string"))return $.enum(t);let i=t.map(a=>$.literal(a));return i.length<2?i[0]:$.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return $.literal(e.const);let r=e.type;if(Array.isArray(r)){let t=r.map(i=>{let a={...e,type:i};return Jf(a,n)});return t.length===0?$.never():t.length===1?t[0]:$.union(t)}if(!r)return $.any();let o;switch(r){case"string":{let t=$.string();if(e.format){let i=e.format;i==="email"?t=t.check($.email()):i==="uri"||i==="uri-reference"?t=t.check($.url()):i==="uuid"||i==="guid"?t=t.check($.uuid()):i==="date-time"?t=t.check($.iso.datetime()):i==="date"?t=t.check($.iso.date()):i==="time"?t=t.check($.iso.time()):i==="duration"?t=t.check($.iso.duration()):i==="ipv4"?t=t.check($.ipv4()):i==="ipv6"?t=t.check($.ipv6()):i==="mac"?t=t.check($.mac()):i==="cidr"?t=t.check($.cidrv4()):i==="cidr-v6"?t=t.check($.cidrv6()):i==="base64"?t=t.check($.base64()):i==="base64url"?t=t.check($.base64url()):i==="e164"?t=t.check($.e164()):i==="jwt"?t=t.check($.jwt()):i==="emoji"?t=t.check($.emoji()):i==="nanoid"?t=t.check($.nanoid()):i==="cuid"?t=t.check($.cuid()):i==="cuid2"?t=t.check($.cuid2()):i==="ulid"?t=t.check($.ulid()):i==="xid"?t=t.check($.xid()):i==="ksuid"&&(t=t.check($.ksuid()))}typeof e.minLength=="number"&&(t=t.min(e.minLength)),typeof e.maxLength=="number"&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),o=t;break}case"number":case"integer":{let t=r==="integer"?$.number().int():$.number();typeof e.minimum=="number"&&(t=t.min(e.minimum)),typeof e.maximum=="number"&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum=="number"?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(t=t.lt(e.maximum)),typeof e.multipleOf=="number"&&(t=t.multipleOf(e.multipleOf)),o=t;break}case"boolean":{o=$.boolean();break}case"null":{o=$.null();break}case"object":{let t={},i=e.properties||{},a=new Set(e.required||[]);for(let[s,c]of Object.entries(i)){let u=H(c,n);t[s]=a.has(s)?u:u.optional()}if(e.propertyNames){let s=H(e.propertyNames,n),c=e.additionalProperties&&typeof e.additionalProperties=="object"?H(e.additionalProperties,n):$.any();if(Object.keys(t).length===0){o=$.record(s,c);break}let u=$.object(t).passthrough(),p=$.looseRecord(s,c);o=$.intersection(u,p);break}if(e.patternProperties){let s=e.patternProperties,c=Object.keys(s),u=[];for(let m of c){let g=H(s[m],n),v=$.string().regex(new RegExp(m));u.push($.looseRecord(v,g))}let p=[];if(Object.keys(t).length>0&&p.push($.object(t).passthrough()),p.push(...u),p.length===0)o=$.object({}).passthrough();else if(p.length===1)o=p[0];else{let m=$.intersection(p[0],p[1]);for(let g=2;g<p.length;g++)m=$.intersection(m,p[g]);o=m}break}let l=$.object(t);e.additionalProperties===!1?o=l.strict():typeof e.additionalProperties=="object"?o=l.catchall(H(e.additionalProperties,n)):o=l.passthrough();break}case"array":{let t=e.prefixItems,i=e.items;if(t&&Array.isArray(t)){let a=t.map(s=>H(s,n)),l=i&&typeof i=="object"&&!Array.isArray(i)?H(i,n):void 0;l?o=$.tuple(a).rest(l):o=$.tuple(a),typeof e.minItems=="number"&&(o=o.check($.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check($.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(s=>H(s,n)),l=e.additionalItems&&typeof e.additionalItems=="object"?H(e.additionalItems,n):void 0;l?o=$.tuple(a).rest(l):o=$.tuple(a),typeof e.minItems=="number"&&(o=o.check($.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check($.maxLength(e.maxItems)))}else if(i!==void 0){let a=H(i,n),l=$.array(a);typeof e.minItems=="number"&&(l=l.min(e.minItems)),typeof e.maxItems=="number"&&(l=l.max(e.maxItems)),o=l}else o=$.array($.any());break}default:throw new Error(`Unsupported type: ${r}`)}return o}function H(e,n){if(typeof e=="boolean")return e?$.any():$.never();let r=Jf(e,n),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let l=e.anyOf.map(c=>H(c,n)),s=$.union(l);r=o?$.intersection(r,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let l=e.oneOf.map(c=>H(c,n)),s=$.xor(l);r=o?$.intersection(r,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:$.any();else{let l=o?r:H(e.allOf[0],n),s=o?0:1;for(let c=s;c<e.allOf.length;c++)l=$.intersection(l,H(e.allOf[c],n));r=l}e.nullable===!0&&n.version==="openapi-3.0"&&(r=$.nullable(r)),e.readOnly===!0&&(r=$.readonly(r)),e.default!==void 0&&(r=r.default(e.default));let t={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let l of i)l in e&&(t[l]=e[l]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let l of a)l in e&&(t[l]=e[l]);for(let l of Object.keys(e))Zb.has(l)||(t[l]=e[l]);return Object.keys(t).length>0&&n.registry.add(r,t),e.description&&(r=r.describe(e.description)),r}function Hf(e,n){if(typeof e=="boolean")return e?$.any():$.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=Fb(r,n?.defaultTarget),t=r.$defs||r.definitions||{},i={version:o,defs:t,refs:new Map,processing:new Set,rootSchema:r,registry:n?.registry??J};return H(r,i)}var Gc={};Se(Gc,{bigint:()=>Jb,boolean:()=>Vb,date:()=>Hb,number:()=>Wb,string:()=>Bb});function Bb(e){return yl(It,e)}function Wb(e){return Pl(Ot,e)}function Vb(e){return Cl(Tt,e)}function Jb(e){return Dl(Ct,e)}function Hb(e){return Hl(bn,e)}W(ur());var wi=d.object({file:d.string(),format:d.string(),phase:d.string(),type:d.string().default(""),title:d.string().default(""),sprint:d.string().default(""),story:d.string().default(""),assignee:d.string().default(""),branches:d.array(d.string()).default([]),waves:d.array(d.object({name:d.string().default(""),branches:d.array(d.object({branch:d.string(),deferred:d.boolean().default(!1),claimed:d.string().default("")})).default([])})).default([]),prs:d.array(d.number()).default([]),review:d.string().default("NONE"),impl:d.string().default("NONE"),approved_raw:d.string().default(""),released_raw:d.string().default(""),delivered_raw:d.string().default(""),started_raw:d.array(d.string()).default([]),rounds:d.number().optional(),error:d.string().optional()}),zn=["Discovery","Design","Development","Endgame","Released"];var qb=d.object({waves:d.number(),branches:d.number(),claimed:d.number().optional(),eligible:d.number().optional(),deferred:d.number()}),Kb=d.object({number:d.number(),url:d.string().default("")}),Gb=d.object({slug:d.string(),title:d.string(),type:d.string(),phase:d.enum(zn),sprint:d.string().optional(),story:d.string().optional(),assignee:d.string().optional(),started:d.boolean().optional(),rounds:d.number().optional(),path:d.string(),prs:d.array(Kb).default([]),waveSummary:qb.optional(),worktrees:d.array(d.object({branch:d.string(),path:d.string()})).optional(),hasDispatchLog:d.boolean().optional(),phaseDate:d.string().default("")}),Xb=d.object({phase:d.enum(zn),cards:d.array(Gb)}),Qb=d.object({slug:d.string(),title:d.string(),phase:d.string()}),Yb=d.object({slug:d.string(),title:d.string(),status:d.string(),path:d.string().default("")}),Sn=d.object({available:d.boolean(),reason:d.string().default("")}),e0=d.object({restartCommand:d.string().default(""),port:d.number().default(0)}),u$=d.object({generatedAt:d.string(),columns:d.array(Xb),dispatch:Sn.default({available:!1,reason:""}),server:e0.default({restartCommand:"",port:0}),approve:Sn.default({available:!1,reason:""}),continue:Sn.default({available:!1,reason:""}),idea:Sn.default({available:!1,reason:""}),commission:Sn.default({available:!1,reason:""}),checklist:d.object({done:d.number(),total:d.number()}).nullable(),sprints:d.array(Qb),stories:d.array(Yb)});function Pn(e,n=!1){switch(e){case"draft":return"Discovery";case"approved":return n?"Development":"Design";case"delivered":return"Endgame";case"released":return"Released";default:return null}}var qf=d.enum(["open","wip","merged","claimed","deferred"]),_i=d.enum(["complete","eligible","blocked"]),Kf=d.enum(["running","finished","failed","ended","none","elsewhere","waiting","stalled"]),Gf="eligible \u2014 nobody has taken it",Xf="plan not approved yet \u2014 still in review",Qc="plan finished \u2014 no branch was needed";function Yc(e){return`plan phase \`${e}\` \u2014 the board cannot place this`}var t0=d.enum(["you","click","time"]),$i="blocked by an earlier wave";function Qf(e,n){return e?n===void 0?`blocked by ${e}`:`blocked by ${e} \u2014 ${n} outstanding`:$i}var n0=d.object({branch:d.string(),state:qf,deferred:d.boolean(),claimed:d.string(),local_dirty:d.boolean().default(!1),local_locked:d.boolean().default(!1),local_worktree:d.string().default(""),held:d.boolean().default(!1),local_ahead:d.number().default(0),worker:Kf.default("elsewhere"),worker_pid:d.string().default(""),worker_exit:d.string().default(""),worker_dirty_paths:d.array(d.string()).default([]),conflicts:d.array(d.string()).default([]),conflicts_known:d.boolean().default(!1),changed_paths:d.array(d.string()).default([])}),r0=d.object({name:d.string(),verdict:_i,branches:d.array(n0)}),Yf=d.object({file:d.string(),phase:d.string().default(""),waves:d.array(r0)}),Si=d.object({main:d.string(),head:d.string(),read_ref:d.string().optional(),local_head:d.string().optional(),plans:d.array(Yf),summary:d.object({plans:d.number(),waves:d.number(),branches:d.number(),claimed:d.number(),eligible:d.number(),blocked:d.number(),deferred:d.number()})}),em=d.discriminatedUnion("kind",[d.object({kind:d.literal("plan"),plan:Yf}),d.object({kind:d.literal("pulse"),pulse:Si})]),i0=d.enum(["waiting-on-you","working","waiting-on-machine","quiet","not-started","done"]),o0=d.enum(["artifact-conflict","conflict","unpushed","ci-failing"]),zi="skills/plot/scripts/board/board-server.mjs",a0=d.object({state:o0,conflicts:d.array(d.string()).default([]),localAhead:d.number().default(0),changedPaths:d.array(d.string()).default([]),failingChecks:d.array(d.string()).default([]),runHistory:d.array(d.object({workflow:d.string().default(""),conclusion:d.string().default(""),startedAt:d.string().default(""),url:d.string().default("")})).default([])}),l0=d.object({branch:d.string(),state:d.enum(["running","finished"]),outcome:d.enum(["pushed","abandoned","refused"]).or(d.literal("")).default(""),reason:d.string().default(""),at:d.number().default(0),log:d.string().default("")}),s0=d.enum(["host","local"]),c0=d.object({origin:s0,evidence:d.string().default(""),pid:d.string().default("")}),u0=d.object({repo:d.string(),branch:d.string(),plan:d.string(),planFile:d.string().default(""),wave:d.string(),state:qf,phase:d.enum(zn).nullable().default(null),group:i0,ageMinutes:d.number().nullable(),note:d.string(),pr:d.object({number:d.number(),url:d.string().default(""),draft:d.boolean().default(!1),state:d.enum(["green","pending","failing","none","conflicts","unknown"]).default("unknown")}).nullable().default(null),branchUrl:d.string().default(""),waitingDays:d.number().nullable().default(null),localDirty:d.boolean().default(!1),localLocked:d.boolean().default(!1),localAhead:d.number().default(0),waitingOn:t0.nullable().default(null),blockedBy:d.string().nullable().default(null),verdict:_i.nullable().default(null),stuck:a0.nullable().default(null),repair:l0.nullable().default(null),worker:Kf.default("elsewhere"),processes:d.array(c0).default([])}),d0=d.object({plans:d.array(d.string()),branches:d.array(d.string()),previousAt:d.number()}),p0=d.object({number:d.number(),title:d.string(),url:d.string().default(""),ageMinutes:d.number().nullable().default(null)}),f0=d.enum(["answered","unsupported","failed"]),d$=d.object({generatedAt:d.string(),ageSeconds:d.number(),readRef:d.string().nullable().default(null),readRefAge:d.number().nullable().default(null),localHead:d.string().nullable().default(null),ready:d.boolean(),complete:d.boolean().default(!0),error:d.string().nullable(),shrink:d0.nullable().default(null),rows:d.array(u0),summary:Si.shape.summary,stuck:d.object({stuck:d.number(),artifact:d.number(),conflict:d.number(),unpushed:d.number(),ci:d.number()}).default({stuck:0,artifact:0,conflict:0,unpushed:0,ci:0}),prAgeSeconds:d.number().nullable(),prNextInSeconds:d.number().nullable().default(null),scanNextInSeconds:d.number().nullable().default(null),prError:d.string().nullable(),issues:d.array(p0).default([]),issueAnswer:f0.default("unsupported"),issueError:d.string().nullable().default(null)}),m0=d.enum(["abandoned","unfinished","question","ci-approval","ci-failing","conflict","review","unpushed","eligible"]),Xc=d.object({branch:d.string().default(""),verdict:m0,action:d.string(),evidence:d.string(),pr:d.number().nullable().default(null),planFile:d.string().default(""),note:d.string().default("")}),h0=d.object({branch:d.string(),plan:d.string(),wave:d.string(),brief:d.string(),briefExists:d.boolean().default(!1),waitingDays:d.number().nullable().default(null)}),p$=d.object({generatedAt:d.string(),ready:d.boolean(),ageSeconds:d.number().nullable().default(null),readRef:d.string().nullable().default(null),error:d.string().nullable().default(null),needsAgent:d.array(Xc).default([]),needsHuman:d.array(Xc).default([]),waiting:d.array(Xc).default([]),claimable:d.array(h0).default([])}),f$=d.object({slug:d.string(),claimed:d.boolean(),branch:d.string().nullable().default(null),worktree:d.string().nullable().default(null),reason:d.string(),summary:d.string().default("")}),Pi=d.enum(["approve"]),m$=d.object({slug:d.string(),transition:Pi,applied:d.boolean(),phase:d.string().nullable().default(null),reason:d.string()});import Dt from"node:fs";import hu from"node:path";import{spawn as zy}from"node:child_process";import Ti from"node:fs";import _y from"node:path";import{execFile as T0,spawn as C0}from"node:child_process";import um from"node:fs";import oe from"node:path";function eu(){return{changedPaths:[],failingChecks:[],runHistory:[]}}function g0(e){return e.length===1&&e[0]===zi}function ji(e){let{state:n,conflicts:r,conflictsKnown:o,localAhead:t}=e;if(n==="merged"||n==="deferred")return null;if(o&&r.length>0){let i=[...r].sort();return{state:g0(i)?"artifact-conflict":"conflict",conflicts:i,localAhead:0,...eu()}}return e.prState==="conflicts"?{state:"conflict",conflicts:[],localAhead:0,...eu()}:e.prState==="failing"?{state:"ci-failing",conflicts:[],localAhead:0,changedPaths:[...e.changedPaths??[]],failingChecks:[...e.failingChecks??[]],runHistory:[...e.runHistory??[]]}:t>0?{state:"unpushed",conflicts:[],localAhead:t,...eu()}:null}function tm(e){let n={stuck:0,artifact:0,conflict:0,unpushed:0,ci:0};for(let r of e)r&&(n.stuck+=1,r.state==="artifact-conflict"?n.artifact+=1:r.state==="conflict"?n.conflict+=1:r.state==="unpushed"?n.unpushed+=1:r.state==="ci-failing"&&(n.ci+=1));return n}import nu from"node:fs";import ru from"node:path";import{spawn as v0}from"node:child_process";function b0(e){return!e||e.state!=="artifact-conflict"?!1:e.conflicts.length===1&&e.conflicts[0]===zi}function y0(e,n){let r=n.replace(/\//g,"-");return ru.join(ru.resolve(e,".."),`plot-resolve-${r}.log`)}var jn=new Map,iu=new Map,tu=new Map;function x0(e){return JSON.stringify([e.state,e.conflicts])}var k0=10*6e4;function ou(e,n=Date.now()){let r=jn.get(e);if(r)return r;let o=iu.get(e);return o?n-o.at>k0?(iu.delete(e),null):o:null}function w0(e){let n;try{n=nu.readFileSync(e,"utf8")}catch{return null}let r=n.trimEnd().split(`
126
- `);for(let o=r.length-1;o>=0;o-=1){let t=/^summary: branch=\S* outcome=(\S+) reason=(\S+)/.exec(r[o]);if(t){let i=t[1];return i==="pushed"||i==="abandoned"||i==="refused"?{outcome:i,reason:t[2]}:null}}return null}function nm(e=process.env){return e.PLOT_BOARD_REPAIR!=="0"}function rm(e,n,r,o=Date.now()){if(r.repairEnabled===!1||!b0(n)||jn.has(e))return!1;let t=x0(n);if(tu.get(e)===t)return!1;let i=y0(r.repoRoot,e),a=ru.join(r.scriptsDir,"plot-resolve-artifact.sh"),l={branch:e,state:"running",outcome:"",reason:"",at:o,log:i};jn.set(e,l);let s=c=>{jn.delete(e);let u=w0(i);u?.outcome==="refused"&&u.reason==="not-observed"?tu.set(e,t):tu.delete(e),iu.set(e,{branch:e,state:"finished",outcome:u?.outcome??(c===0?"pushed":"abandoned"),reason:u?.reason??(c===0?"":`exit ${c??"signal"}`),at:Date.now(),log:i})};try{if(r.spawnRepair)return r.spawnRepair({branch:e,script:a,repoRoot:r.repoRoot,log:i,onExit:s}),!0;let c=nu.openSync(i,"a"),u=v0("bash",[a,e],{cwd:r.repoRoot,detached:!0,stdio:["ignore",c,c]});return u.on("error",p=>{console.error("artifact repair failed to spawn:",p),s(null)}),u.on("exit",p=>s(p)),u.unref(),nu.closeSync(c),!0}catch(c){return console.error("artifact repair could not start:",c),jn.delete(e),!1}}import Ei from"node:fs";import im from"node:path";var _0=15*6e4,om=1;function am(e){return im.join(e,".plot","state","last-pulse.json")}function au(e){return[...e.entries()]}function lu(e,n){let r=new Map;if(!Array.isArray(e))return r;for(let o of e){if(!Array.isArray(o)||o.length!==2)continue;let[t,i]=o;typeof t=="string"&&n(i)&&r.set(t,i)}return r}var $0=e=>e===null||typeof e=="number",S0=e=>typeof e=="number",z0=e=>typeof e=="string";function lm(e,n){let r=am(e);try{Ei.mkdirSync(im.dirname(r),{recursive:!0});let o=JSON.stringify({version:om,at:n.at,pulse:n.pulse,ages:au(n.ages),branchUrlBase:n.branchUrlBase,approvedAt:au(n.approvedAt),ideaPlans:au(n.ideaPlans)}),t=`${r}.${process.pid}.tmp`;Ei.writeFileSync(t,o,"utf8"),Ei.renameSync(t,r)}catch{}}function sm(e,n=Date.now()){let r;try{r=Ei.readFileSync(am(e),"utf8")}catch{return null}try{let o=JSON.parse(r);if(o.version!==om)return null;let t=o.at;if(typeof t!="number"||!Number.isFinite(t))return null;let i=n-t;if(i<0||i>_0)return null;let a=Si.parse(o.pulse);return{at:t,pulse:a,ages:lu(o.ages,$0),branchUrlBase:typeof o.branchUrlBase=="string"?o.branchUrlBase:"",approvedAt:lu(o.approvedAt,S0),ideaPlans:lu(o.ideaPlans,z0)}}catch{return null}}import{execFile as P0}from"node:child_process";var j0="PLOT-BLOCKED:|TODO\\((you|human)\\)",E0=120,I0=5e3;function su(e,n=I0){return new Promise(r=>{P0("git",["-C",e,"grep","-hIEm1","--untracked","--exclude-standard",j0,"--",".",":(exclude).plot-worker.*"],{encoding:"utf8",timeout:n,maxBuffer:1<<20},(o,t)=>{if(o&&!t)return r("");r(N0(t))})})}function N0(e,n=E0){let r=e.split(`
126
+ `);for(let o=r.length-1;o>=0;o-=1){let t=/^summary: branch=\S* outcome=(\S+) reason=(\S+)/.exec(r[o]);if(t){let i=t[1];return i==="pushed"||i==="abandoned"||i==="refused"?{outcome:i,reason:t[2]}:null}}return null}function nm(e=process.env){return e.PLOT_BOARD_REPAIR!=="0"}function rm(e,n,r,o=Date.now()){if(r.repairEnabled===!1||!b0(n)||jn.has(e))return!1;let t=x0(n);if(tu.get(e)===t)return!1;let i=y0(r.repoRoot,e),a=ru.join(r.scriptsDir,"plot-resolve-artifact.sh"),l={branch:e,state:"running",outcome:"",reason:"",at:o,log:i};jn.set(e,l);let s=c=>{jn.delete(e);let u=w0(i);u?.outcome==="refused"&&u.reason==="not-observed"?tu.set(e,t):tu.delete(e),iu.set(e,{branch:e,state:"finished",outcome:u?.outcome??(c===0?"pushed":"abandoned"),reason:u?.reason??(c===0?"":`exit ${c??"signal"}`),at:Date.now(),log:i})};try{if(r.spawnRepair)return r.spawnRepair({branch:e,script:a,repoRoot:r.repoRoot,log:i,onExit:s}),!0;let c=nu.openSync(i,"a"),u=v0("bash",[a,e],{cwd:r.repoRoot,detached:!0,stdio:["ignore",c,c]});return u.on("error",p=>{console.error("artifact repair failed to spawn:",p),s(null)}),u.on("exit",p=>s(p)),u.unref(),nu.closeSync(c),!0}catch(c){return console.error("artifact repair could not start:",c),jn.delete(e),!1}}import Ei from"node:fs";import im from"node:path";var _0=15*6e4,om=1;function am(e){return im.join(e,".plot","state","last-pulse.json")}function au(e){return[...e.entries()]}function lu(e,n){let r=new Map;if(!Array.isArray(e))return r;for(let o of e){if(!Array.isArray(o)||o.length!==2)continue;let[t,i]=o;typeof t=="string"&&n(i)&&r.set(t,i)}return r}var $0=e=>e===null||typeof e=="number",S0=e=>typeof e=="number",z0=e=>typeof e=="string";function lm(e,n){let r=am(e);try{Ei.mkdirSync(im.dirname(r),{recursive:!0});let o=JSON.stringify({version:om,at:n.at,pulse:n.pulse,ages:au(n.ages),branchUrlBase:n.branchUrlBase,approvedAt:au(n.approvedAt),ideaPlans:au(n.ideaPlans)}),t=`${r}.${process.pid}.tmp`;Ei.writeFileSync(t,o,"utf8"),Ei.renameSync(t,r)}catch{}}function sm(e,n=Date.now()){let r;try{r=Ei.readFileSync(am(e),"utf8")}catch{return null}try{let o=JSON.parse(r);if(o.version!==om)return null;let t=o.at;if(typeof t!="number"||!Number.isFinite(t))return null;let i=n-t;if(i<0||i>_0)return null;let a=Si.parse(o.pulse);return{at:t,pulse:a,ages:lu(o.ages,$0),branchUrlBase:typeof o.branchUrlBase=="string"?o.branchUrlBase:"",approvedAt:lu(o.approvedAt,S0),ideaPlans:lu(o.ideaPlans,z0)}}catch{return null}}import{execFile as P0}from"node:child_process";var j0="PLOT-BLOCKED:|TODO\\((you|human)\\)",E0=120,I0=5e3;function su(e,n=I0,r=P0){return new Promise(o=>{r("git",["-C",e,"grep","-hIEm1","--untracked","--exclude-standard",j0,"--",".",":(exclude).plot-worker.*"],{encoding:"utf8",timeout:n,maxBuffer:1<<20},(t,i)=>{if(t&&!i)return o("");o(N0(i))})})}function N0(e,n=E0){let r=e.split(`
127
127
  `).map(t=>t.trim()).find(t=>t!=="");if(!r)return"";let o=r.replace(/^(?:\/\/+|#+|\*+|--|<!--)\s*/,"").trim();return o?o.length>n?`${o.slice(0,n-1).trimEnd()}\u2026`:o:""}function O0(e){let n=new Map;for(let r of e.plans)for(let o of r.waves)for(let t of o.branches)t.worker==="waiting"&&t.local_worktree&&n.set(t.branch,t.local_worktree);return n}async function cm(e){let n=[...O0(e)];if(n.length===0)return new Map;let r=await Promise.all(n.map(([,t])=>su(t))),o=new Map;return n.forEach(([t],i)=>{let a=r[i];a&&o.set(t,a)}),o}var R0=30,km=5e3,Ni=6e4,dm=12e4,D0={github:1,bitbucket:3},A0=300,U0=50;function L0(e){let n=e.trim();if(!n)return"";let r=/^(?:https?:\/\/(?:[^@/]*@)?([^/]+)\/|(?:ssh:\/\/)?(?:[^@/]+@)([^:/]+)[:/])(.+?)(?:\.git)?\/?$/.exec(n);if(!r)return"";let o=(r[1]??r[2]).replace(/:\d+$/,""),t=r[3];return!t||t.includes("..")?"":o==="github.com"||/(^|\.)github\./.test(o)?`https://${o}/${t}/tree/`:o==="bitbucket.org"?`https://${o}/${t}/branch/`:""}var pm=new Map;function Z0(e){return`${e.repoRoot}\0${e.scriptsDir}`}function Y(e,n,r,o=3e4){return new Promise((t,i)=>{T0(e,n,{cwd:r,encoding:"utf8",timeout:o,maxBuffer:8<<20},(a,l)=>a?i(a):t(l))})}function wm(e){return/^timed out after \d+ms$/.test(e)}function F0(e,n){return n===null||!wm(e)?e:`${e} \u2014 ${M0(n)}`}function M0(e){let n=`${e.worktrees} worktree${e.worktrees===1?"":"s"}`,r=`${e.branches} branch${e.branches===1?"":"es"}`,o=`${Math.round(e.perSpawnMs)} ms per git spawn`;return`${n}, ${r}, ${o} \u2014 the scan spawns git per branch, and every spawn reads this estate at startup; pruning stale worktrees cuts both the count and the per-spawn cost`}var fm=5;async function B0(e){try{let r=(await Y("git",["worktree","list","--porcelain"],e.repoRoot)).split(`
128
128
  `).filter(l=>l.startsWith("worktree ")).length,t=(await Y("git",["for-each-ref","--format=%(refname)","refs/remotes/origin"],e.repoRoot)).split(`
129
129
  `).filter(l=>l.trim()!=="").length,i=0;for(let l=0;l<fm;l++){let s=process.hrtime.bigint();await Y("git",["rev-parse","--git-dir"],e.repoRoot),i+=Number(process.hrtime.bigint()-s)/1e6}let a=i/fm;return{worktrees:r,branches:t,perSpawnMs:a}}catch{return null}}function W0(e,n,r,o,t=3e4,i={}){return new Promise((a,l)=>{let s=C0(e,n,{cwd:r,...i.env?{env:{...process.env,...i.env}}:{}}),c="",u=!1,p=setTimeout(()=>{s.kill("SIGKILL"),u||(u=!0,l(new Error(`timed out after ${t}ms`)))},t);if(s.stdout.setEncoding("utf8"),s.stdout.on("data",m=>{c+=m;let g;for(;(g=c.indexOf(`
@@ -205,4 +205,4 @@ ${P.message}
205
205
  `,"utf8"),ue.writeFileSync(I,"1","utf8")}catch{}}),ue.closeSync(L),l(202,{ok:!0,number:p,prompt:S,log:_})}import de from"node:fs";import Ne from"node:path";import{spawn as Bx}from"node:child_process";function mh(e){return Ri(e)}function Wx(e,n){return Ne.join(e,".plot",`commission-${n}.md`)}function hh(e,n){return Ne.join(Ne.resolve(e,".."),`plot-commission-${n}.log`)}function gh(e,n){return Ne.join(Ne.resolve(e,".."),`plot-commission-${n}.state`)}function Vx(e,n){let r=e.repoRoot,o=F(e,"Plan directory","docs/plans/"),t=F(e,"Active index","docs/plans/active/"),i=Ne.join(r,t,`${n}.md`);if(de.existsSync(i))return i;let a;try{a=de.readdirSync(Ne.join(r,o))}catch{return null}let l=a.find(s=>s.endsWith(`${n}.md`));return l?Ne.join(r,o,l):null}function Jx(e){let{slug:n,planFile:r}=e,o=[];return o.push(`/plot commission ${n}: move this Draft into Design`,"",`Read the existing Draft plan at ${r}. It is a Draft that someone`,"decided is worth specifying, and your job is to move it into **Design** \u2014","the phase where the spec is written \u2014 without writing the spec itself.",""),o.push("## What this plan must do","","1. Record the phase as **Design** in the plan's `## Status` block, exactly"," as `- **Phase:** Design`. That is the field the board reads to know the"," plan has moved; any other wording leaves it reading as Draft.","2. Add an **empty spec section** \u2014 a heading and a placeholder saying the"," spec is to be filled in during Design. Do NOT draft the spec now, and do"," NOT decide whether this plan wants a full spec, a spike or a tracer"," bullet: that distinction is the plan's to make with the problem in front"," of it, not one to settle here. Leave the section empty and let Design"," fill it.","3. Do the work unattended, and write nothing to any tracker \u2014 no comment, no"," label, no state change. The plan references the tracker; the tracker is"," never written back.",""),o.push("## The empty spec section, for shape","","The section should look like this \u2014 a heading and a placeholder, nothing more:","","```markdown","## Spec","","_To be filled in during Design._","```",""),o.join(`
206
206
  `)}function vh(e,n){let r=hh(e.repoRoot,n),o=gh(e.repoRoot,n),t="";try{t=de.readFileSync(o,"utf8").trim()}catch{return de.existsSync(r)?{state:"running",message:"",log:r}:{state:"unknown",message:"",log:r}}if(t==="0")return{state:"done",message:"",log:r};let i="";try{i=de.readFileSync(r,"utf8")}catch{}return{state:"failed",message:ju(i)||`the commission command exited ${t}`,log:r}}async function bh(e,n,r,o={}){let t=o.config??F,i=o.phase??Su,a=(S,_)=>{n.writeHead(S,{"Content-Type":"application/json"}),n.end(JSON.stringify(_))},l=(S,_,I,L)=>a(S,{ok:!1,slug:I,reason:_,detail:L});if(!se(e,r.port)){a(403,{error:"cross-origin request refused"});return}let s;try{s=await ce(e)}catch(S){a(400,{error:S instanceof Error?S.message:String(S)});return}let c=s?.slug;if(typeof c!="string"||!ee.test(c)){a(400,{error:"slug must be a plan slug"});return}let u=Pu(t(r,On,""));if(!u){l(409,"no-idea-command",c,`no \`${On}\` in Plot Config \u2014 commissioning a plan runs a plot agent, which no script can do; add the key or run it yourself`);return}let p=i(r,c);if(p===null){l(409,"plan-unreadable",c,`plan \`${c}\` could not be found or its phase could not be read \u2014 refusing rather than commissioning a plan whose state is unknown`);return}if(p!=="draft"){l(409,"not-a-draft",c,`plan \`${c}\` is ${p}, not draft \u2014 commissioning design is a decision about a Draft plan, and this one has moved past it`);return}let m=Vx(r,c);if(!m){l(409,"plan-unreadable",c,`plan \`${c}\` could not be resolved to a file \u2014 refusing rather than commissioning a plan that is not there`);return}let g=Jx({slug:c,planFile:m}),v=Wx(r.repoRoot,c);try{de.mkdirSync(Ne.dirname(v),{recursive:!0}),de.writeFileSync(v,g,"utf8")}catch(S){a(500,{error:`cannot write ${v}: ${S instanceof Error?S.message:String(S)}`});return}let x=hh(r.repoRoot,c),z=gh(r.repoRoot,c),D;try{de.rmSync(z,{force:!0}),D=de.openSync(x,"w")}catch(S){a(500,{error:`cannot open ${x}: ${S instanceof Error?S.message:String(S)}`});return}let M=Bx("sh",["-c",`${u} "$@"`,"plot-commission",`Read ${v} and follow it.`],{cwd:r.repoRoot,detached:!0,stdio:["ignore",D,D],env:{...process.env,PLOT_UNATTENDED:"1",PLOT_IDEA_PROMPT:v,PLOT_PLAN_SLUG:c}});M.on("exit",(S,_)=>{try{de.writeFileSync(z,String(_?`signal ${_}`:S??1),"utf8")}catch{}}),M.on("error",S=>{console.error("commission failed to spawn:",S);try{de.appendFileSync(x,`
207
207
  ${S.message}
208
- `,"utf8"),de.writeFileSync(z,"1","utf8")}catch{}}),de.closeSync(D),a(202,{ok:!0,slug:c,prompt:v,log:x})}var yh='<!doctype html>\n<html lang="en">\n <head>\n <meta charset="UTF-8" />\n <meta name="viewport" content="width=device-width, initial-scale=1" />\n <link\n rel="icon"\n href="data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 16 16\'%3E%3Crect x=\'1\' y=\'2\' width=\'4\' height=\'12\' rx=\'1\' fill=\'%2394a3b8\'/%3E%3Crect x=\'6\' y=\'2\' width=\'4\' height=\'9\' rx=\'1\' fill=\'%2322c55e\'/%3E%3Crect x=\'11\' y=\'2\' width=\'4\' height=\'6\' rx=\'1\' fill=\'%238b5cf6\'/%3E%3C/svg%3E"\n />\n <title>Plot board</title>\n <script type="module" crossorigin>var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ee(e,t){return E(e.type,t,e.props)}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function te(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var O=/\\/+/g;function k(e,t){return typeof e==`object`&&e&&e.key!=null?te(``+e.key):t.toString(36)}function A(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ne(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ne(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+k(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(O,`$&/`)+`/`),ne(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=ee(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(O,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+k(a,u),c+=ne(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+k(a,u++),c+=ne(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ne(A(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function re(e,t,n){if(e==null)return e;var r=[],i=0;return ne(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ie(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var j=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},M={map:re,forEach:function(e,t,n){re(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return re(e,function(){t++}),t},toArray:function(e){return re(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=M,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ie}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,j)}catch(e){j(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.7`})),u=o(((e,t)=>{t.exports=l()})),d=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,D());else{var t=n(l);t!==null&&k(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function ee(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&k(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?D():S=!1}}}var D;if(typeof y==`function`)D=function(){y(ee)};else if(typeof MessageChannel<`u`){var te=new MessageChannel,O=te.port2;te.port1.onmessage=ee,D=function(){O.postMessage(null)}}else D=function(){_(ee,0)};function k(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,k(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.7`})),m=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=f(),n=u(),r=m();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function d(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),ee=Symbol.for(`react.memo`),D=Symbol.for(`react.lazy`),te=Symbol.for(`react.activity`),O=Symbol.for(`react.memo_cache_sentinel`),k=Symbol.iterator;function A(e){return typeof e!=`object`||!e?null:(e=k&&e[k]||e[`@@iterator`],typeof e==`function`?e:null)}var ne=Symbol.for(`react.client.reference`);function re(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case te:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ee:return t=e.displayName||null,t===null?re(e.type)||`Memo`:t;case D:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var ie=Array.isArray,j=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},oe=[],se=-1;function ce(e){return{current:e}}function N(e){0>se||(e.current=oe[se],oe[se]=null,se--)}function P(e,t){se++,oe[se]=e.current,e.current=t}var le=ce(null),ue=ce(null),de=ce(null),fe=ce(null);function pe(e,t){switch(P(de,t),P(ue,e),P(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}N(le),P(le,e)}function me(){N(le),N(ue),N(de)}function he(e){e.memoizedState!==null&&P(fe,e);var t=le.current,n=Hd(t,e.type);t!==n&&(P(ue,e),P(le,n))}function ge(e){ue.current===e&&(N(le),N(ue)),fe.current===e&&(N(fe),Qf._currentValue=ae)}var _e,ve;function ye(e){if(_e===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\\n( *(at )?)/);_e=t&&t[1]||``,ve=-1<e.stack.indexOf(`\n at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`\n`+_e+e+ve}var be=!1;function xe(e,t){if(!e||be)return``;be=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`\n`),l=s.split(`\n`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`\n`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{be=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ye(n):``}function Se(e,t){switch(e.tag){case 26:case 27:case 5:return ye(e.type);case 16:return ye(`Lazy`);case 13:return e.child!==t&&t!==null?ye(`Suspense Fallback`):ye(`Suspense`);case 19:return ye(`SuspenseList`);case 0:case 15:return xe(e.type,!1);case 11:return xe(e.type.render,!1);case 1:return xe(e.type,!0);case 31:return ye(`Activity`);default:return``}}function Ce(e){try{var t=``,n=null;do t+=Se(e,n),n=e,e=e.return;while(e);return t}catch(e){return`\nError generating stack: `+e.message+`\n`+e.stack}}var we=Object.prototype.hasOwnProperty,Te=t.unstable_scheduleCallback,Ee=t.unstable_cancelCallback,De=t.unstable_shouldYield,Oe=t.unstable_requestPaint,ke=t.unstable_now,Ae=t.unstable_getCurrentPriorityLevel,je=t.unstable_ImmediatePriority,Me=t.unstable_UserBlockingPriority,Ne=t.unstable_NormalPriority,Pe=t.unstable_LowPriority,Fe=t.unstable_IdlePriority,Ie=t.log,Le=t.unstable_setDisableYieldValue,Re=null,ze=null;function Be(e){if(typeof Ie==`function`&&Le(e),ze&&typeof ze.setStrictMode==`function`)try{ze.setStrictMode(Re,e)}catch{}}var Ve=Math.clz32?Math.clz32:We,He=Math.log,Ue=Math.LN2;function We(e){return e>>>=0,e===0?32:31-(He(e)/Ue|0)|0}var Ge=256,Ke=262144,qe=4194304;function Je(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ye(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Je(n))):i=Je(o):i=Je(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Je(n))):i=Je(o)):i=Je(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Xe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ze(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qe(){var e=qe;return qe<<=1,!(qe&62914560)&&(qe=4194304),e}function $e(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function et(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function F(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ve(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&tt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function tt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ve(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function nt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ve(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function rt(e,t){var n=t&-t;return n=n&42?1:it(n),(n&(e.suspendedLanes|t))===0?n:0}function it(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function at(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ot(){var e=M.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function st(e,t){var n=M.p;try{return M.p=e,t()}finally{M.p=n}}var ct=Math.random().toString(36).slice(2),lt=`__reactFiber$`+ct,ut=`__reactProps$`+ct,dt=`__reactContainer$`+ct,I=`__reactEvents$`+ct,ft=`__reactListeners$`+ct,pt=`__reactHandles$`+ct,mt=`__reactResources$`+ct,ht=`__reactMarker$`+ct;function gt(e){delete e[lt],delete e[ut],delete e[I],delete e[ft],delete e[pt]}function _t(e){var t=e[lt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[dt]||n[lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[lt])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function vt(e){if(e=e[lt]||e[dt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function L(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function yt(e){var t=e[mt];return t||=e[mt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function bt(e){e[ht]=!0}var xt=new Set,St={};function Ct(e,t){wt(e,t),wt(e+`Capture`,t)}function wt(e,t){for(St[e]=t,e=0;e<t.length;e++)xt.add(t[e])}var Tt=RegExp(`^[:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD][:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]*$`),Et={},Dt={};function Ot(e){return we.call(Dt,e)?!0:we.call(Et,e)?!1:Tt.test(e)?Dt[e]=!0:(Et[e]=!0,!1)}function kt(e,t,n){if(Ot(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function At(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function jt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Mt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Nt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Pt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ft(e){if(!e._valueTracker){var t=Nt(e)?`checked`:`value`;e._valueTracker=Pt(e,t,``+e[t])}}function It(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Nt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Lt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Rt=/[\\n"\\\\]/g;function zt(e){return e.replace(Rt,function(e){return`\\\\`+e.charCodeAt(0).toString(16)+` `})}function Bt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Mt(t)):e.value!==``+Mt(t)&&(e.value=``+Mt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Ht(e,o,Mt(n)):Ht(e,o,Mt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Mt(s):e.removeAttribute(`name`)}function Vt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ft(e);return}n=n==null?``:``+Mt(n),t=t==null?n:``+Mt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ft(e)}function Ht(e,t,n){t===`number`&&Lt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ut(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Mt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Wt(e,t,n){if(t!=null&&(t=``+Mt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Mt(n)}function Gt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ie(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Mt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ft(e)}function Kt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Jt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||qt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Yt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Jt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Jt(e,o,t[o])}function Xt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Zt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Qt=/^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*:/i;function $t(e){return Qt.test(``+e)?`javascript:throw new Error(\'React has blocked a javascript: URL as a security precaution.\')`:e}function en(){}var tn=null;function nn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rn=null,an=null;function on(e){var t=vt(e);if(t&&(e=t.stateNode)){var n=e[ut]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Bt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+zt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ut]||null;if(!a)throw Error(i(90));Bt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&It(r)}break a;case`textarea`:Wt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ut(e,!!n.multiple,t,!1)}}}var sn=!1;function cn(e,t,n){if(sn)return e(t,n);sn=!0;try{return e(t)}finally{if(sn=!1,(rn!==null||an!==null)&&(yu(),rn&&(t=rn,e=an,an=rn=null,on(t),e)))for(t=0;t<e.length;t++)on(e[t])}}function ln(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ut]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var un=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),dn=!1;if(un)try{var fn={};Object.defineProperty(fn,"passive",{get:function(){dn=!0}}),window.addEventListener(`test`,fn,fn),window.removeEventListener(`test`,fn,fn)}catch{dn=!1}var pn=null,mn=null,hn=null;function gn(){if(hn)return hn;var e,t=mn,n=t.length,r,i=`value`in pn?pn.value:pn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return hn=i.slice(e,1<r?1-r:void 0)}function _n(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vn(){return!0}function yn(){return!1}function bn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?vn:yn,this.isPropagationStopped=yn,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=vn)},persist:function(){},isPersistent:vn}),t}var xn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sn=bn(xn),Cn=h({},xn,{view:0,detail:0}),wn=bn(Cn),Tn,En,Dn,On=h({},Cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Dn&&(Dn&&e.type===`mousemove`?(Tn=e.screenX-Dn.screenX,En=e.screenY-Dn.screenY):En=Tn=0,Dn=e),Tn)},movementY:function(e){return`movementY`in e?e.movementY:En}}),kn=bn(On),An=bn(h({},On,{dataTransfer:0})),jn=bn(h({},Cn,{relatedTarget:0})),Mn=bn(h({},xn,{animationName:0,elapsedTime:0,pseudoElement:0})),Nn=bn(h({},xn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Pn=bn(h({},xn,{data:0})),Fn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},In={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Ln={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Rn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ln[e])?!!t[e]:!1}function zn(){return Rn}var Bn=bn(h({},Cn,{key:function(e){if(e.key){var t=Fn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=_n(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?In[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zn,charCode:function(e){return e.type===`keypress`?_n(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?_n(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Vn=bn(h({},On,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Hn=bn(h({},Cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zn})),Un=bn(h({},xn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Wn=bn(h({},On,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Gn=bn(h({},xn,{newState:0,oldState:0})),Kn=[9,13,27,32],qn=un&&`CompositionEvent`in window,Jn=null;un&&`documentMode`in document&&(Jn=document.documentMode);var Yn=un&&`TextEvent`in window&&!Jn,Xn=un&&(!qn||Jn&&8<Jn&&11>=Jn),Zn=` `,Qn=!1;function $n(e,t){switch(e){case`keyup`:return Kn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function er(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var tr=!1;function nr(e,t){switch(e){case`compositionend`:return er(t);case`keypress`:return t.which===32?(Qn=!0,Zn):null;case`textInput`:return e=t.data,e===Zn&&Qn?null:e;default:return null}}function rr(e,t){if(tr)return e===`compositionend`||!qn&&$n(e,t)?(e=gn(),hn=mn=pn=null,tr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Xn&&t.locale!==`ko`?null:t.data;default:return null}}var ir={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!ir[e.type]:t===`textarea`}function or(e,t,n,r){rn?an?an.push(r):an=[r]:rn=r,t=Ed(t,`onChange`),0<t.length&&(n=new Sn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var sr=null,cr=null;function lr(e){yd(e,0)}function ur(e){if(It(L(e)))return e}function dr(e,t){if(e===`change`)return t}var fr=!1;if(un){var pr;if(un){var mr=`oninput`in document;if(!mr){var hr=document.createElement(`div`);hr.setAttribute(`oninput`,`return;`),mr=typeof hr.oninput==`function`}pr=mr}else pr=!1;fr=pr&&(!document.documentMode||9<document.documentMode)}function gr(){sr&&(sr.detachEvent(`onpropertychange`,_r),cr=sr=null)}function _r(e){if(e.propertyName===`value`&&ur(cr)){var t=[];or(t,cr,e,nn(e)),cn(lr,t)}}function vr(e,t,n){e===`focusin`?(gr(),sr=t,cr=n,sr.attachEvent(`onpropertychange`,_r)):e===`focusout`&&gr()}function yr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return ur(cr)}function br(e,t){if(e===`click`)return ur(t)}function xr(e,t){if(e===`input`||e===`change`)return ur(t)}function Sr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Cr=typeof Object.is==`function`?Object.is:Sr;function wr(e,t){if(Cr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!we.call(t,i)||!Cr(e[i],t[i]))return!1}return!0}function Tr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Er(e,t){var n=Tr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Tr(n)}}function Dr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Or(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lt(e.document)}return t}function kr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Ar=un&&`documentMode`in document&&11>=document.documentMode,jr=null,Mr=null,Nr=null,Pr=!1;function Fr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Pr||jr==null||jr!==Lt(r)||(r=jr,`selectionStart`in r&&kr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Nr&&wr(Nr,r)||(Nr=r,r=Ed(Mr,`onSelect`),0<r.length&&(t=new Sn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=jr)))}function Ir(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Lr={animationend:Ir(`Animation`,`AnimationEnd`),animationiteration:Ir(`Animation`,`AnimationIteration`),animationstart:Ir(`Animation`,`AnimationStart`),transitionrun:Ir(`Transition`,`TransitionRun`),transitionstart:Ir(`Transition`,`TransitionStart`),transitioncancel:Ir(`Transition`,`TransitionCancel`),transitionend:Ir(`Transition`,`TransitionEnd`)},Rr={},zr={};un&&(zr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Lr.animationend.animation,delete Lr.animationiteration.animation,delete Lr.animationstart.animation),`TransitionEvent`in window||delete Lr.transitionend.transition);function Br(e){if(Rr[e])return Rr[e];if(!Lr[e])return e;var t=Lr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in zr)return Rr[e]=t[n];return e}var Vr=Br(`animationend`),Hr=Br(`animationiteration`),Ur=Br(`animationstart`),Wr=Br(`transitionrun`),Gr=Br(`transitionstart`),Kr=Br(`transitioncancel`),qr=Br(`transitionend`),Jr=new Map,Yr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Yr.push(`scrollEnd`);function Xr(e,t){Jr.set(e,t),Ct(t,[e])}var Zr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Qr=[],$r=0,ei=0;function ti(){for(var e=$r,t=ei=$r=0;t<e;){var n=Qr[t];Qr[t++]=null;var r=Qr[t];Qr[t++]=null;var i=Qr[t];Qr[t++]=null;var a=Qr[t];if(Qr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ai(n,i,a)}}function ni(e,t,n,r){Qr[$r++]=e,Qr[$r++]=t,Qr[$r++]=n,Qr[$r++]=r,ei|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ri(e,t,n,r){return ni(e,t,n,r),oi(e)}function ii(e,t){return ni(e,null,null,t),oi(e)}function ai(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ve(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function oi(e){if(50<uu)throw uu=0,du=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var si={};function ci(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function li(e,t,n,r){return new ci(e,t,n,r)}function ui(e){return e=e.prototype,!(!e||!e.isReactComponent)}function di(e,t){var n=e.alternate;return n===null?(n=li(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function fi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function R(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ui(e)&&(s=1);else if(typeof e==`string`)s=Uf(e,n,le.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case te:return e=li(31,n,t,a),e.elementType=te,e.lanes=o,e;case y:return pi(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=li(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=li(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=li(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case ee:s=14;break a;case D:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=li(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function pi(e,t,n,r){return e=li(7,e,r,t),e.lanes=n,e}function mi(e,t,n){return e=li(6,e,null,t),e.lanes=n,e}function hi(e){var t=li(18,null,null,0);return t.stateNode=e,t}function gi(e,t,n){return t=li(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _i=new WeakMap;function vi(e,t){if(typeof e==`object`&&e){var n=_i.get(e);return n===void 0?(t={value:e,source:t,stack:Ce(t)},_i.set(e,t),t):n}return{value:e,source:t,stack:Ce(t)}}var yi=[],bi=0,xi=null,Si=0,Ci=[],z=0,wi=null,Ti=1,Ei=``;function Di(e,t){yi[bi++]=Si,yi[bi++]=xi,xi=e,Si=t}function Oi(e,t,n){Ci[z++]=Ti,Ci[z++]=Ei,Ci[z++]=wi,wi=e;var r=Ti;e=Ei;var i=32-Ve(r)-1;r&=~(1<<i),n+=1;var a=32-Ve(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ti=1<<32-Ve(t)+i|n<<i|r,Ei=a+e}else Ti=1<<a|n<<i|r,Ei=e}function ki(e){e.return!==null&&(Di(e,1),Oi(e,1,0))}function Ai(e){for(;e===xi;)xi=yi[--bi],yi[bi]=null,Si=yi[--bi],yi[bi]=null;for(;e===wi;)wi=Ci[--z],Ci[z]=null,Ei=Ci[--z],Ci[z]=null,Ti=Ci[--z],Ci[z]=null}function ji(e,t){Ci[z++]=Ti,Ci[z++]=Ei,Ci[z++]=wi,Ti=t.id,Ei=t.overflow,wi=e}var Mi=null,Ni=null,B=!1,Pi=null,V=!1,Fi=Error(i(519));function Ii(e){throw Hi(vi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Fi}function Li(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[lt]=e,t[ut]=r,n){case`dialog`:Q(`cancel`,t),Q(`close`,t);break;case`iframe`:case`object`:case`embed`:Q(`load`,t);break;case`video`:case`audio`:for(n=0;n<_d.length;n++)Q(_d[n],t);break;case`source`:Q(`error`,t);break;case`img`:case`image`:case`link`:Q(`error`,t),Q(`load`,t);break;case`details`:Q(`toggle`,t);break;case`input`:Q(`invalid`,t),Vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Q(`invalid`,t);break;case`textarea`:Q(`invalid`,t),Gt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Md(t.textContent,n)?(r.popover!=null&&(Q(`beforetoggle`,t),Q(`toggle`,t)),r.onScroll!=null&&Q(`scroll`,t),r.onScrollEnd!=null&&Q(`scrollend`,t),r.onClick!=null&&(t.onclick=en),t=!0):t=!1,t||Ii(e,!0)}function Ri(e){for(Mi=e.return;Mi;)switch(Mi.tag){case 5:case 31:case 13:V=!1;return;case 27:case 3:V=!0;return;default:Mi=Mi.return}}function zi(e){if(e!==Mi)return!1;if(!B)return Ri(e),B=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Ud(e.type,e.memoizedProps)),n=!n),n&&Ni&&Ii(e),Ri(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ni=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ni=uf(e)}else t===27?(t=Ni,Zd(e.type)?(e=lf,lf=null,Ni=e):Ni=t):Ni=Mi?cf(e.stateNode.nextSibling):null;return!0}function Bi(){Ni=Mi=null,B=!1}function Vi(){var e=Pi;return e!==null&&(Ql===null?Ql=e:Ql.push.apply(Ql,e),Pi=null),e}function Hi(e){Pi===null?Pi=[e]:Pi.push(e)}var Ui=ce(null),Wi=null,Gi=null;function Ki(e,t,n){P(Ui,t._currentValue),t._currentValue=n}function qi(e){e._currentValue=Ui.current,N(Ui)}function Ji(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Yi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Ji(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Ji(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Xi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Cr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===fe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}a=a.return}e!==null&&Yi(t,e,n,r),t.flags|=262144}function Zi(e){for(e=e.firstContext;e!==null;){if(!Cr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Qi(e){Wi=e,Gi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $i(e){return ta(Wi,e)}function ea(e,t){return Wi===null&&Qi(e),ta(e,t)}function ta(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Gi===null){if(e===null)throw Error(i(308));Gi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Gi=Gi.next=t;return n}var na=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ra=t.unstable_scheduleCallback,ia=t.unstable_NormalPriority,aa={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oa(){return{controller:new na,data:new Map,refCount:0}}function sa(e){e.refCount--,e.refCount===0&&ra(ia,function(){e.controller.abort()})}var ca=null,la=0,ua=0,da=null;function fa(e,t){if(ca===null){var n=ca=[];la=0,ua=dd(),da={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return la++,t.then(pa,pa),t}function pa(){if(--la===0&&ca!==null){da!==null&&(da.status=`fulfilled`);var e=ca;ca=null,ua=0,da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ma(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ha=j.S;j.S=function(e,t){X=ke(),typeof t==`object`&&t&&typeof t.then==`function`&&fa(e,t),ha!==null&&ha(e,t)};var ga=ce(null);function _a(){var e=ga.current;return e===null?Bl.pooledCache:e}function va(e,t){t===null?P(ga,ga.current):P(ga,t.pool)}function ya(){var e=_a();return e===null?null:{parent:aa._currentValue,pool:e}}var ba=Error(i(460)),xa=Error(i(474)),Sa=Error(i(542)),Ca={then:function(){}};function wa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ta(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(en,en),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ka(e),e;default:if(typeof t.status==`string`)t.then(en,en);else{if(e=Bl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ka(e),e}throw Da=t,ba}}function Ea(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Da=e,ba):e}}var Da=null;function Oa(){if(Da===null)throw Error(i(459));var e=Da;return Da=null,e}function ka(e){if(e===ba||e===Sa)throw Error(i(483))}var Aa=null,ja=0;function Ma(e){var t=ja;return ja+=1,Aa===null&&(Aa=[]),Ta(Aa,e,t)}function Na(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Pa(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Fa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=di(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=mi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===D&&Ea(i)===t.type)?(t=a(t,n.props),Na(t,n),t.return=e,t):(t=R(n.type,n.key,n.props,null,e.mode,r),Na(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=gi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=pi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=R(t.type,t.key,t.props,null,e.mode,n),Na(n,t),n.return=e,n;case v:return t=gi(t,e.mode,n),t.return=e,t;case D:return t=Ea(t),f(e,t,n)}if(ie(t)||A(t))return t=pi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ma(t),n);if(t.$$typeof===C)return f(e,ea(e,t),n);Pa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case D:return n=Ea(n),p(e,t,n,r)}if(ie(n)||A(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ma(n),r);if(n.$$typeof===C)return p(e,t,ea(e,n),r);Pa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case D:return r=Ea(r),m(e,t,n,r,i)}if(ie(r)||A(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ma(r),i);if(r.$$typeof===C)return m(e,t,n,ea(t,r),i);Pa(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),B&&Di(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return B&&Di(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),B&&Di(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),B&&Di(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return B&&Di(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),B&&Di(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===D&&Ea(l)===r.type){n(e,r.sibling),c=a(r,o.props),Na(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=pi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=R(o.type,o.key,o.props,null,e.mode,c),Na(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=gi(o,e.mode,c),c.return=e,e=c}return s(e);case D:return o=Ea(o),b(e,r,o,c)}if(ie(o))return h(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ma(o),c);if(o.$$typeof===C)return b(e,r,ea(e,o),c);Pa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{ja=0;var i=b(e,t,n,r);return Aa=null,i}catch(t){if(t===ba||t===Sa)throw t;var a=li(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ia=Fa(!0),La=Fa(!1),Ra=!1;function za(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ba(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ha(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=oi(e),ai(e,null,n),t}return ni(e,r,t,n),oi(e)}function Ua(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nt(e,n)}}function Wa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ga=!1;function Ka(){if(Ga){var e=da;if(e!==null)throw e}}function qa(e,t,n,r){Ga=!1;var i=e.updateQueue;Ra=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(q&f)===f:(r&f)===f){f!==0&&f===ua&&(Ga=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Ra=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ql|=o,e.lanes=o,e.memoizedState=d}}function Ja(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ya(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ja(n[e],t)}var Xa=ce(null),Za=ce(0);function Qa(e,t){e=Kl,P(Za,e),P(Xa,t),Kl=e|t.baseLanes}function $a(){P(Za,Kl),P(Xa,Xa.current)}function eo(){Kl=Za.current,N(Xa),N(Za)}var to=ce(null),no=null;function ro(e){var t=e.alternate;P(co,co.current&1),P(to,e),no===null&&(t===null||Xa.current!==null||t.memoizedState!==null)&&(no=e)}function io(e){P(co,co.current),P(to,e),no===null&&(no=e)}function ao(e){e.tag===22?(P(co,co.current),P(to,e),no===null&&(no=e)):oo(e)}function oo(){P(co,co.current),P(to,to.current)}function so(e){N(to),no===e&&(no=null),N(co)}var co=ce(0);function lo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var uo=0,H=null,U=null,fo=null,po=!1,mo=!1,ho=!1,go=0,_o=0,vo=null,yo=0;function bo(){throw Error(i(321))}function xo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Cr(e[n],t[n]))return!1;return!0}function So(e,t,n,r,i,a){return uo=a,H=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?zs:Bs,ho=!1,a=n(r,i),ho=!1,mo&&(a=wo(t,n,r,i)),Co(e),a}function Co(e){j.H=Rs;var t=U!==null&&U.next!==null;if(uo=0,fo=U=H=null,po=!1,_o=0,vo=null,t)throw Error(i(300));e===null||rc||(e=e.dependencies,e!==null&&Zi(e)&&(rc=!0))}function wo(e,t,n,r){H=e;var a=0;do{if(mo&&(vo=null),_o=0,mo=!1,25<=a)throw Error(i(301));if(a+=1,fo=U=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}j.H=Vs,o=t(n,r)}while(mo);return o}function To(){var e=j.H,t=e.useState()[0];return t=typeof t.then==`function`?Mo(t):t,e=e.useState()[0],(U===null?null:U.memoizedState)!==e&&(H.flags|=1024),t}function Eo(){var e=go!==0;return go=0,e}function Do(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Oo(e){if(po){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}po=!1}uo=0,fo=U=H=null,mo=!1,_o=go=0,vo=null}function ko(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fo===null?H.memoizedState=fo=e:fo=fo.next=e,fo}function Ao(){if(U===null){var e=H.alternate;e=e===null?null:e.memoizedState}else e=U.next;var t=fo===null?H.memoizedState:fo.next;if(t!==null)fo=t,U=e;else{if(e===null)throw H.alternate===null?Error(i(467)):Error(i(310));U=e,e={memoizedState:U.memoizedState,baseState:U.baseState,baseQueue:U.baseQueue,queue:U.queue,next:null},fo===null?H.memoizedState=fo=e:fo=fo.next=e}return fo}function jo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mo(e){var t=_o;return _o+=1,vo===null&&(vo=[]),e=Ta(vo,e,t),t=H,(fo===null?t.memoizedState:fo.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?zs:Bs),e}function No(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Mo(e);if(e.$$typeof===C)return $i(e)}throw Error(i(438,String(e)))}function Po(e){var t=null,n=H.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=H.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=jo(),H.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=O;return t.index++,n}function Fo(e,t){return typeof t==`function`?t(e):t}function Io(e){return Lo(Ao(),U,e)}function Lo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(uo&f)===f:(q&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ua&&(d=!0);else if((uo&p)===p){u=u.next,p===ua&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,H.lanes|=p,ql|=p;f=u.action,ho&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,H.lanes|=f,ql|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Cr(o,e.memoizedState)&&(rc=!0,d&&(n=da,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ro(e){var t=Ao(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Cr(o,t.memoizedState)||(rc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function zo(e,t,n){var r=H,a=Ao(),o=B;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Cr((U||a).memoizedState,n);if(s&&(a.memoizedState=n,rc=!0),a=a.queue,us(Ho.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||fo!==null&&fo.memoizedState.tag&1){if(r.flags|=2048,as(9,{destroy:void 0},Vo.bind(null,r,a,n,t),null),Bl===null)throw Error(i(349));o||uo&127||Bo(r,t,n)}return n}function Bo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=H.updateQueue,t===null?(t=jo(),H.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Vo(e,t,n,r){t.value=n,t.getSnapshot=r,Uo(t)&&Wo(e)}function Ho(e,t,n){return n(function(){Uo(t)&&Wo(e)})}function Uo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Cr(e,n)}catch{return!0}}function Wo(e){var t=ii(e,2);t!==null&&mu(t,e,2)}function Go(e){var t=ko();if(typeof e==`function`){var n=e;if(e=n(),ho){Be(!0);try{n()}finally{Be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fo,lastRenderedState:e},t}function Ko(e,t,n,r){return e.baseState=n,Lo(e,U,typeof r==`function`?r:Fo)}function qo(e,t,n,r,a){if(Fs(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};j.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Jo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Jo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=j.T,o={};j.T=o;try{var s=n(i,r),c=j.S;c!==null&&c(o,s),Yo(e,t,s)}catch(n){Zo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),j.T=a}}else try{a=n(i,r),Yo(e,t,a)}catch(n){Zo(e,t,n)}}function Yo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Xo(e,t,n)},function(n){return Zo(e,t,n)}):Xo(e,t,n)}function Xo(e,t,n){t.status=`fulfilled`,t.value=n,Qo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Jo(e,n)))}function Zo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Qo(t),t=t.next;while(t!==r)}e.action=null}function Qo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function $o(e,t){return t}function es(e,t){if(B){var n=Bl.formState;if(n!==null){a:{var r=H;if(B){if(Ni){b:{for(var i=Ni,a=V;i.nodeType!==8;){if(!a){i=null;break b}if(i=cf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ni=cf(i.nextSibling),r=i.data===`F!`;break a}}Ii(r)}r=!1}r&&(t=n[0])}}return n=ko(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:t},n.queue=r,n=Ms.bind(null,H,r),r.dispatch=n,r=Go(!1),a=Ps.bind(null,H,!1,r.queue),r=ko(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=qo.bind(null,H,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ts(e){return ns(Ao(),U,e)}function ns(e,t,n){if(t=Lo(e,t,$o)[0],e=Io(Fo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Mo(t)}catch(e){throw e===ba?Sa:e}else r=t;t=Ao();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(H.flags|=2048,as(9,{destroy:void 0},rs.bind(null,i,n),null)),[r,a,e]}function rs(e,t){e.action=t}function is(e){var t=Ao(),n=U;if(n!==null)return ns(t,n,e);Ao(),t=t.memoizedState,n=Ao();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function as(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=H.updateQueue,t===null&&(t=jo(),H.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function os(){return Ao().memoizedState}function ss(e,t,n,r){var i=ko();H.flags|=e,i.memoizedState=as(1|t,{destroy:void 0},n,r===void 0?null:r)}function cs(e,t,n,r){var i=Ao();r=r===void 0?null:r;var a=i.memoizedState.inst;U!==null&&r!==null&&xo(r,U.memoizedState.deps)?i.memoizedState=as(t,a,n,r):(H.flags|=e,i.memoizedState=as(1|t,a,n,r))}function ls(e,t){ss(8390656,8,e,t)}function us(e,t){cs(2048,8,e,t)}function ds(e){H.flags|=4;var t=H.updateQueue;if(t===null)t=jo(),H.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function fs(e){var t=Ao().memoizedState;return ds({ref:t,nextImpl:e}),function(){if(G&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ps(e,t){return cs(4,2,e,t)}function ms(e,t){return cs(4,4,e,t)}function hs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gs(e,t,n){n=n==null?null:n.concat([e]),cs(4,4,hs.bind(null,t,e),n)}function _s(){}function vs(e,t){var n=Ao();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&xo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ys(e,t){var n=Ao();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&xo(t,r[1]))return r[0];if(r=e(),ho){Be(!0);try{e()}finally{Be(!1)}}return n.memoizedState=[r,t],r}function bs(e,t,n){return n===void 0||uo&1073741824&&!(q&261930)?e.memoizedState=t:(e.memoizedState=n,e=pu(),H.lanes|=e,ql|=e,n)}function xs(e,t,n,r){return Cr(n,t)?n:Xa.current===null?!(uo&42)||uo&1073741824&&!(q&261930)?(rc=!0,e.memoizedState=n):(e=pu(),H.lanes|=e,ql|=e,t):(e=bs(e,n,r),Cr(e,t)||(rc=!0),e)}function Ss(e,t,n,r,i){var a=M.p;M.p=a!==0&&8>a?a:8;var o=j.T,s={};j.T=s,Ps(e,!1,t,n);try{var c=i(),l=j.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ns(e,t,ma(c,r),fu(e)):Ns(e,t,r,fu(e))}catch(n){Ns(e,t,{then:function(){},status:`rejected`,reason:n},fu())}finally{M.p=a,o!==null&&s.types!==null&&(o.types=s.types),j.T=o}}function Cs(){}function ws(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Ts(e).queue;Ss(e,a,t,ae,n===null?Cs:function(){return Es(e),n(r)})}function Ts(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fo,lastRenderedState:ae},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Es(e){var t=Ts(e);t.next===null&&(t=e.alternate.memoizedState),Ns(e,t.next.queue,{},fu())}function Ds(){return $i(Qf)}function Os(){return Ao().memoizedState}function ks(){return Ao().memoizedState}function As(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=fu();e=Va(n);var r=Ha(t,e,n);r!==null&&(mu(r,t,n),Ua(r,t,n)),t={cache:oa()},e.payload=t;return}t=t.return}}function js(e,t,n){var r=fu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Fs(e)?Is(t,n):(n=ri(e,t,n,r),n!==null&&(mu(n,e,r),Ls(n,t,r)))}function Ms(e,t,n){Ns(e,t,n,fu())}function Ns(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fs(e))Is(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Cr(s,o))return ni(e,t,i,0),Bl===null&&ti(),!1}catch{}if(n=ri(e,t,i,r),n!==null)return mu(n,e,r),Ls(n,t,r),!0}return!1}function Ps(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Fs(e)){if(t)throw Error(i(479))}else t=ri(e,n,r,2),t!==null&&mu(t,e,2)}function Fs(e){var t=e.alternate;return e===H||t!==null&&t===H}function Is(e,t){mo=po=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ls(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nt(e,n)}}var Rs={readContext:$i,use:No,useCallback:bo,useContext:bo,useEffect:bo,useImperativeHandle:bo,useLayoutEffect:bo,useInsertionEffect:bo,useMemo:bo,useReducer:bo,useRef:bo,useState:bo,useDebugValue:bo,useDeferredValue:bo,useTransition:bo,useSyncExternalStore:bo,useId:bo,useHostTransitionStatus:bo,useFormState:bo,useActionState:bo,useOptimistic:bo,useMemoCache:bo,useCacheRefresh:bo};Rs.useEffectEvent=bo;var zs={readContext:$i,use:No,useCallback:function(e,t){return ko().memoizedState=[e,t===void 0?null:t],e},useContext:$i,useEffect:ls,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ss(4194308,4,hs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ss(4194308,4,e,t)},useInsertionEffect:function(e,t){ss(4,2,e,t)},useMemo:function(e,t){var n=ko();t=t===void 0?null:t;var r=e();if(ho){Be(!0);try{e()}finally{Be(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ko();if(n!==void 0){var i=n(t);if(ho){Be(!0);try{n(t)}finally{Be(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=js.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=ko();return e={current:e},t.memoizedState=e},useState:function(e){e=Go(e);var t=e.queue,n=Ms.bind(null,H,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:_s,useDeferredValue:function(e,t){return bs(ko(),e,t)},useTransition:function(){var e=Go(!1);return e=Ss.bind(null,H,e.queue,!0,!1),ko().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=H,a=ko();if(B){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Bl===null)throw Error(i(349));q&127||Bo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ls(Ho.bind(null,r,o,e),[e]),r.flags|=2048,as(9,{destroy:void 0},Vo.bind(null,r,o,n,t),null),n},useId:function(){var e=ko(),t=Bl.identifierPrefix;if(B){var n=Ei,r=Ti;n=(r&~(1<<32-Ve(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=go++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=yo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ds,useFormState:es,useActionState:es,useOptimistic:function(e){var t=ko();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ps.bind(null,H,!0,n),n.dispatch=t,[e,t]},useMemoCache:Po,useCacheRefresh:function(){return ko().memoizedState=As.bind(null,H)},useEffectEvent:function(e){var t=ko(),n={impl:e};return t.memoizedState=n,function(){if(G&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Bs={readContext:$i,use:No,useCallback:vs,useContext:$i,useEffect:us,useImperativeHandle:gs,useInsertionEffect:ps,useLayoutEffect:ms,useMemo:ys,useReducer:Io,useRef:os,useState:function(){return Io(Fo)},useDebugValue:_s,useDeferredValue:function(e,t){return xs(Ao(),U.memoizedState,e,t)},useTransition:function(){var e=Io(Fo)[0],t=Ao().memoizedState;return[typeof e==`boolean`?e:Mo(e),t]},useSyncExternalStore:zo,useId:Os,useHostTransitionStatus:Ds,useFormState:ts,useActionState:ts,useOptimistic:function(e,t){return Ko(Ao(),U,e,t)},useMemoCache:Po,useCacheRefresh:ks};Bs.useEffectEvent=fs;var Vs={readContext:$i,use:No,useCallback:vs,useContext:$i,useEffect:us,useImperativeHandle:gs,useInsertionEffect:ps,useLayoutEffect:ms,useMemo:ys,useReducer:Ro,useRef:os,useState:function(){return Ro(Fo)},useDebugValue:_s,useDeferredValue:function(e,t){var n=Ao();return U===null?bs(n,e,t):xs(n,U.memoizedState,e,t)},useTransition:function(){var e=Ro(Fo)[0],t=Ao().memoizedState;return[typeof e==`boolean`?e:Mo(e),t]},useSyncExternalStore:zo,useId:Os,useHostTransitionStatus:Ds,useFormState:is,useActionState:is,useOptimistic:function(e,t){var n=Ao();return U===null?(n.baseState=e,[e,n.queue.dispatch]):Ko(n,U,e,t)},useMemoCache:Po,useCacheRefresh:ks};Vs.useEffectEvent=fs;function Hs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Us={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fu(),i=Va(r);i.payload=t,n!=null&&(i.callback=n),t=Ha(e,i,r),t!==null&&(mu(t,e,r),Ua(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fu(),i=Va(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ha(e,i,r),t!==null&&(mu(t,e,r),Ua(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fu(),r=Va(n);r.tag=2,t!=null&&(r.callback=t),t=Ha(e,r,n),t!==null&&(mu(t,e,n),Ua(t,e,n))}};function Ws(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!wr(n,r)||!wr(i,a):!0}function Gs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Us.enqueueReplaceState(t,t.state,null)}function Ks(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function qs(e){Zr(e)}function Js(e){console.error(e)}function Ys(e){Zr(e)}function Xs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Zs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Qs(e,t,n){return n=Va(n),n.tag=3,n.payload={element:null},n.callback=function(){Xs(e,t)},n}function $s(e){return e=Va(e),e.tag=3,e}function ec(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Zs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Zs(t,n,r),typeof i!=`function`&&(nu===null?nu=new Set([this]):nu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function tc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Xi(t,n,a,!0),n=to.current,n!==null){switch(n.tag){case 31:case 13:return no===null?Eu():n.alternate===null&&J===0&&(J=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ca?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Gu(e,r,a)),!1;case 22:return n.flags|=65536,r===Ca?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Gu(e,r,a)),!1}throw Error(i(435,n.tag))}return Gu(e,r,a),Eu(),!1}if(B)return t=to.current,t===null?(r!==Fi&&(t=Error(i(423),{cause:r}),Hi(vi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=vi(r,n),a=Qs(e.stateNode,r,a),Wa(e,a),J!==4&&(J=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Fi&&(e=Error(i(422),{cause:r}),Hi(vi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=vi(o,n),Zl===null?Zl=[o]:Zl.push(o),J!==4&&(J=2),t===null)return!0;r=vi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Qs(n.stateNode,r,e),Wa(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(nu===null||!nu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=$s(a),ec(a,e,n,r),Wa(n,a),!1}n=n.return}while(n!==null);return!1}var nc=Error(i(461)),rc=!1;function ic(e,t,n,r){t.child=e===null?La(t,null,n,r):Ia(t,e.child,n,r)}function ac(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Qi(t),r=So(e,t,n,o,a,i),s=Eo(),e!==null&&!rc?(Do(e,t,i),kc(e,t,i)):(B&&s&&ki(t),t.flags|=1,ic(e,t,r,i),t.child)}function oc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ui(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,sc(e,t,a,r,i)):(e=R(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Ac(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?wr:n,n(o,r)&&e.ref===t.ref)return kc(e,t,i)}return t.flags|=1,e=di(a,r),e.ref=t.ref,e.return=t,t.child=e}function sc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(wr(a,r)&&e.ref===t.ref)if(rc=!1,t.pendingProps=r=a,Ac(e,i))e.flags&131072&&(rc=!0);else return t.lanes=e.lanes,kc(e,t,i)}return hc(e,t,n,r,i)}function cc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return uc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&va(t,a===null?null:a.cachePool),a===null?$a():Qa(t,a),ao(t);else return r=t.lanes=536870912,uc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&va(t,null),$a(),oo(t)):(va(t,a.cachePool),Qa(t,a),oo(t),t.memoizedState=null);return ic(e,t,i,n),t.child}function lc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function uc(e,t,n,r,i){var a=_a();return a=a===null?null:{parent:aa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&va(t,null),$a(),ao(t),e!==null&&Xi(e,t,r,!0),t.childLanes=i,null}function dc(e,t){return t=wc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fc(e,t,n){return Ia(t,e.child,null,n),e=dc(t,t.pendingProps),e.flags|=2,so(t),t.memoizedState=null,e}function pc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(B){if(r.mode===`hidden`)return e=dc(t,r),t.lanes=536870912,lc(null,e);if(io(t),(e=Ni)?(e=rf(e,V),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wi===null?null:{id:Ti,overflow:Ei},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Mi=t,Ni=null)):e=null,e===null)throw Ii(t);return t.lanes=536870912,null}return dc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(io(t),a)if(t.flags&256)t.flags&=-257,t=fc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(rc||Xi(e,t,n,!1),a=(n&e.childLanes)!==0,rc||a){if(r=Bl,r!==null&&(s=rt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ii(e,s),mu(r,e,s),nc;Eu(),t=fc(e,t,n)}else e=o.treeContext,Ni=cf(s.nextSibling),Mi=t,B=!0,Pi=null,V=!1,e!==null&&ji(t,e),t=dc(t,r),t.flags|=4096;return t}return e=di(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function mc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function hc(e,t,n,r,i){return Qi(t),n=So(e,t,n,r,void 0,i),r=Eo(),e!==null&&!rc?(Do(e,t,i),kc(e,t,i)):(B&&r&&ki(t),t.flags|=1,ic(e,t,n,i),t.child)}function gc(e,t,n,r,i,a){return Qi(t),t.updateQueue=null,n=wo(t,r,n,i),Co(e),r=Eo(),e!==null&&!rc?(Do(e,t,a),kc(e,t,a)):(B&&r&&ki(t),t.flags|=1,ic(e,t,n,a),t.child)}function _c(e,t,n,r,i){if(Qi(t),t.stateNode===null){var a=si,o=n.contextType;typeof o==`object`&&o&&(a=$i(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Us,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},za(t),o=n.contextType,a.context=typeof o==`object`&&o?$i(o):si,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Hs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Us.enqueueReplaceState(a,a.state,null),qa(t,r,a,i),Ka(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ks(n,s);a.props=c;var l=a.context,u=n.contextType;o=si,typeof u==`object`&&u&&(o=$i(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Gs(t,a,r,o),Ra=!1;var f=t.memoizedState;a.state=f,qa(t,r,a,i),Ka(),l=t.memoizedState,s||f!==l||Ra?(typeof d==`function`&&(Hs(t,n,d,r),l=t.memoizedState),(c=Ra||Ws(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ba(e,t),o=t.memoizedProps,u=Ks(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=si,typeof l==`object`&&l&&(c=$i(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Gs(t,a,r,c),Ra=!1,f=t.memoizedState,a.state=f,qa(t,r,a,i),Ka();var p=t.memoizedState;o!==d||f!==p||Ra||e!==null&&e.dependencies!==null&&Zi(e.dependencies)?(typeof s==`function`&&(Hs(t,n,s,r),p=t.memoizedState),(u=Ra||Ws(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Zi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,mc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ia(t,e.child,null,i),t.child=Ia(t,null,n,i)):ic(e,t,n,i),t.memoizedState=a.state,e=t.child):e=kc(e,t,i),e}function vc(e,t,n,r){return Bi(),t.flags|=256,ic(e,t,n,r),t.child}var yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function bc(e){return{baseLanes:e,cachePool:ya()}}function xc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Y),e}function Sc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(co.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(B){if(a?ro(t):oo(t),(e=Ni)?(e=rf(e,V),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wi===null?null:{id:Ti,overflow:Ei},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Mi=t,Ni=null)):e=null,e===null)throw Ii(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(oo(t),a=t.mode,c=wc({mode:`hidden`,children:c},a),r=pi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=bc(n),r.childLanes=xc(e,s,n),t.memoizedState=yc,lc(null,r)):(ro(t),Cc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(ro(t),t.flags&=-257,t=Tc(e,t,n)):t.memoizedState===null?(oo(t),c=r.fallback,a=t.mode,r=wc({mode:`visible`,children:r.children},a),c=pi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ia(t,e.child,null,n),r=t.child,r.memoizedState=bc(n),r.childLanes=xc(e,s,n),t.memoizedState=yc,t=lc(null,r)):(oo(t),t.child=e.child,t.flags|=128,t=null);else if(ro(t),of(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Hi({value:r,source:null,stack:null}),t=Tc(e,t,n)}else if(rc||Xi(e,t,n,!1),s=(n&e.childLanes)!==0,rc||s){if(s=Bl,s!==null&&(r=rt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ii(e,r),mu(s,e,r),nc;af(c)||Eu(),t=Tc(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ni=cf(c.nextSibling),Mi=t,B=!0,Pi=null,V=!1,e!==null&&ji(t,e),t=Cc(t,r.children),t.flags|=4096);return t}return a?(oo(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=di(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=pi(c,a,n,null),c.flags|=2):c=di(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,lc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=bc(n):(a=c.cachePool,a===null?a=ya():(l=aa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=xc(e,s,n),t.memoizedState=yc,lc(e.child,r)):(ro(t),n=e.child,e=n.sibling,n=di(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Cc(e,t){return t=wc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function wc(e,t){return e=li(22,e,null,t),e.lanes=0,e}function Tc(e,t,n){return Ia(t,e.child,null,n),e=Cc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ec(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ji(e.return,t,n)}function Dc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Oc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=co.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,P(co,o),ic(e,t,r,n),r=B?Si:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ec(e,n,t);else if(e.tag===19)Ec(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&lo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Dc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&lo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Dc(t,!0,n,null,a,r);break;case`together`:Dc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function kc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ql|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Xi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=di(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=di(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ac(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Zi(e))):!0}function jc(e,t,n){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),Ki(t,aa,e.memoizedState.cache),Bi();break;case 27:case 5:he(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:Ki(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,io(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ro(t),e=kc(e,t,n),e===null?null:e.sibling):Sc(e,t,n):(ro(t),t.flags|=128,null);ro(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Xi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Oc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),P(co,co.current),r)break;return null;case 22:return t.lanes=0,cc(e,t,n,t.pendingProps);case 24:Ki(t,aa,e.memoizedState.cache)}return kc(e,t,n)}function Mc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)rc=!0;else{if(!Ac(e,n)&&!(t.flags&128))return rc=!1,jc(e,t,n);rc=!!(e.flags&131072)}else rc=!1,B&&t.flags&1048576&&Oi(t,Si,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ea(t.elementType),t.type=e,typeof e==`function`)ui(e)?(r=Ks(e,r),t.tag=1,t=_c(null,t,e,r,n)):(t.tag=0,t=hc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=ac(null,t,e,r,n);break a}else if(a===ee){t.tag=14,t=oc(null,t,e,r,n);break a}}throw t=re(e)||e,Error(i(306,t,``))}}return t;case 0:return hc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ks(r,t.pendingProps),_c(e,t,r,a,n);case 3:a:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ba(e,t),qa(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ki(t,aa,r),r!==o.cache&&Yi(t,[aa],n,!0),Ka(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=vc(e,t,r,n);break a}else if(r!==a){a=vi(Error(i(424)),t),Hi(a),t=vc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ni=cf(e.firstChild),Mi=t,B=!0,Pi=null,V=!0,n=La(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Bi(),r===a){t=kc(e,t,n);break a}ic(e,t,r,n)}t=t.child}return t;case 26:return mc(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:B||(n=t.type,e=t.pendingProps,r=Bd(de.current).createElement(n),r[lt]=t,r[ut]=e,Pd(r,n,e),bt(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return he(t),e===null&&B&&(r=t.stateNode=ff(t.type,t.pendingProps,de.current),Mi=t,V=!0,a=Ni,Zd(t.type)?(lf=a,Ni=cf(r.firstChild)):Ni=a),ic(e,t,t.pendingProps.children,n),mc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&B&&((a=r=Ni)&&(r=tf(r,t.type,t.pendingProps,V),r===null?a=!1:(t.stateNode=r,Mi=t,Ni=cf(r.firstChild),V=!1,a=!0)),a||Ii(t)),he(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Ud(a,o)?r=null:s!==null&&Ud(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=So(e,t,To,null,null,n),Qf._currentValue=a),mc(e,t),ic(e,t,r,n),t.child;case 6:return e===null&&B&&((e=n=Ni)&&(n=nf(n,t.pendingProps,V),n===null?e=!1:(t.stateNode=n,Mi=t,Ni=null,e=!0)),e||Ii(t)),null;case 13:return Sc(e,t,n);case 4:return pe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ia(t,null,r,n):ic(e,t,r,n),t.child;case 11:return ac(e,t,t.type,t.pendingProps,n);case 7:return ic(e,t,t.pendingProps,n),t.child;case 8:return ic(e,t,t.pendingProps.children,n),t.child;case 12:return ic(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ki(t,t.type,r.value),ic(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Qi(t),a=$i(a),r=r(a),t.flags|=1,ic(e,t,r,n),t.child;case 14:return oc(e,t,t.type,t.pendingProps,n);case 15:return sc(e,t,t.type,t.pendingProps,n);case 19:return Oc(e,t,n);case 31:return pc(e,t,n);case 22:return cc(e,t,n,t.pendingProps);case 24:return Qi(t),r=$i(aa),e===null?(a=_a(),a===null&&(a=Bl,o=oa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},za(t),Ki(t,aa,a)):((e.lanes&n)!==0&&(Ba(e,t),qa(t,null,null,n),Ka()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ki(t,aa,r),r!==a.cache&&Yi(t,[aa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ki(t,aa,r))),ic(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Nc(e){e.flags|=4}function Pc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Cu())e.flags|=8192;else throw Da=Ca,xa}else e.flags&=-16777217}function Fc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t))if(Cu())e.flags|=8192;else throw Da=Ca,xa}function Ic(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Qe(),e.lanes|=t,Xl|=t)}function Lc(e,t){if(!B)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Rc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function zc(e,t,n){var r=t.pendingProps;switch(Ai(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rc(t),null;case 1:return Rc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),qi(aa),me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(zi(t)?Nc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Vi())),Rc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Nc(t),o===null?(Rc(t),Pc(t,a,null,r,n)):(Rc(t),Fc(t,o))):o?o===e.memoizedState?(Rc(t),t.flags&=-16777217):(Nc(t),Rc(t),Fc(t,o)):(e=e.memoizedProps,e!==r&&Nc(t),Rc(t),Pc(t,a,e,r,n)),null;case 27:if(ge(t),n=de.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Rc(t),null}e=le.current,zi(t)?Li(t,e):(e=ff(a,r,n),t.stateNode=e,Nc(t))}return Rc(t),null;case 5:if(ge(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Rc(t),null}if(o=le.current,zi(t))Li(t,o);else{var s=Bd(de.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[lt]=t,o[ut]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Pd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Nc(t)}}return Rc(t),Pc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=de.current,zi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Mi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[lt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Ii(t,!0)}else e=Bd(e).createTextNode(r),e[lt]=t,t.stateNode=e}return Rc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=zi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[lt]=t}else Bi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rc(t),e=!1}else n=Vi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(so(t),t):(so(t),null);if(t.flags&128)throw Error(i(558))}return Rc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=zi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[lt]=t}else Bi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rc(t),a=!1}else a=Vi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(so(t),t):(so(t),null)}return so(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ic(t,t.updateQueue),Rc(t),null);case 4:return me(),e===null&&Sd(t.stateNode.containerInfo),Rc(t),null;case 10:return qi(t.type),Rc(t),null;case 19:if(N(co),r=t.memoizedState,r===null)return Rc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Lc(r,!1);else{if(J!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=lo(e),o!==null){for(t.flags|=128,Lc(r,!1),e=o.updateQueue,t.updateQueue=e,Ic(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)fi(n,e),n=n.sibling;return P(co,co.current&1|2),B&&Di(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ke()>tu&&(t.flags|=128,a=!0,Lc(r,!1),t.lanes=4194304)}else{if(!a)if(e=lo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ic(t,e),Lc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!B)return Rc(t),null}else 2*ke()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,a=!0,Lc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Rc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ke(),e.sibling=null,n=co.current,P(co,a?n&1|2:n&1),B&&Di(t,r.treeForkCount),e);case 22:case 23:return so(t),eo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Rc(t),t.subtreeFlags&6&&(t.flags|=8192)):Rc(t),n=t.updateQueue,n!==null&&Ic(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&N(ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),qi(aa),Rc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Bc(e,t){switch(Ai(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qi(aa),me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ge(t),null;case 31:if(t.memoizedState!==null){if(so(t),t.alternate===null)throw Error(i(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(so(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return N(co),null;case 4:return me(),null;case 10:return qi(t.type),null;case 22:case 23:return so(t),eo(),e!==null&&N(ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return qi(aa),null;case 25:return null;default:return null}}function Vc(e,t){switch(Ai(t),t.tag){case 3:qi(aa),me();break;case 26:case 27:case 5:ge(t);break;case 4:me();break;case 31:t.memoizedState!==null&&so(t);break;case 13:so(t);break;case 19:N(co);break;case 10:qi(t.type);break;case 22:case 23:so(t),eo(),e!==null&&N(ga);break;case 24:qi(aa)}}function Hc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Wu(t,t.return,e)}}function Uc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Wu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Wu(t,t.return,e)}}function Wc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ya(t,n)}catch(t){Wu(e,e.return,t)}}}function Gc(e,t,n){n.props=Ks(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Wu(e,t,n)}}function Kc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Wu(e,t,n)}}function qc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Wu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Wu(e,t,n)}else n.current=null}function Jc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Wu(e,e.return,t)}}function Yc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[ut]=t}catch(t){Wu(e,e.return,t)}}function Xc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Zc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Xc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=en));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[lt]=e,t[ut]=n}catch(t){Wu(e,e.return,t)}}var tl=!1,nl=!1,rl=!1,il=typeof WeakSet==`function`?WeakSet:Set,al=null;function ol(e,t){if(e=e.containerInfo,Rd=sp,e=Or(e),kr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,al=t;al!==null;)if(t=al,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,al=e;else for(;al!==null;){switch(t=al,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ks(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Wu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,al=e;break}al=t.return}}function sl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Sl(e,n),r&4&&Hc(5,n);break;case 1:if(Sl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Wu(n,n.return,e)}else{var i=Ks(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Wu(n,n.return,e)}}r&64&&Wc(n),r&512&&Kc(n,n.return);break;case 3:if(Sl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ya(e,t)}catch(e){Wu(n,n.return,e)}}break;case 27:t===null&&r&4&&el(n);case 26:case 5:Sl(e,n),t===null&&r&4&&Jc(n),r&512&&Kc(n,n.return);break;case 12:Sl(e,n);break;case 31:Sl(e,n),r&4&&pl(e,n);break;case 13:Sl(e,n),r&4&&ml(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ju.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||tl,!r){t=t!==null&&t.memoizedState!==null||nl,i=tl;var a=nl;tl=r,(nl=t)&&!a?wl(e,n,(n.subtreeFlags&8772)!=0):Sl(e,n),tl=i,nl=a}break;case 30:break;default:Sl(e,n)}}function cl(e){var t=e.alternate;t!==null&&(e.alternate=null,cl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&gt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ll=null,ul=!1;function dl(e,t,n){for(n=n.child;n!==null;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(ze&&typeof ze.onCommitFiberUnmount==`function`)try{ze.onCommitFiberUnmount(Re,n)}catch{}switch(n.tag){case 26:nl||qc(n,t),dl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:nl||qc(n,t);var r=ll,i=ul;Zd(n.type)&&(ll=n.stateNode,ul=!1),dl(e,t,n),pf(n.stateNode),ll=r,ul=i;break;case 5:nl||qc(n,t);case 6:if(r=ll,i=ul,ll=null,dl(e,t,n),ll=r,ul=i,ll!==null)if(ul)try{(ll.nodeType===9?ll.body:ll.nodeName===`HTML`?ll.ownerDocument.body:ll).removeChild(n.stateNode)}catch(e){Wu(n,t,e)}else try{ll.removeChild(n.stateNode)}catch(e){Wu(n,t,e)}break;case 18:ll!==null&&(ul?(e=ll,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd(ll,n.stateNode));break;case 4:r=ll,i=ul,ll=n.stateNode.containerInfo,ul=!0,dl(e,t,n),ll=r,ul=i;break;case 0:case 11:case 14:case 15:Uc(2,n,t),nl||Uc(4,n,t),dl(e,t,n);break;case 1:nl||(qc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Gc(n,t,r)),dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:nl=(r=nl)||n.memoizedState!==null,dl(e,t,n),nl=r;break;default:dl(e,t,n)}}function pl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Wu(t,t.return,e)}}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Wu(t,t.return,e)}}function hl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new il),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new il),t;default:throw Error(i(435,e.tag))}}function gl(e,t){var n=hl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Yu.bind(null,e,t);t.then(r,r)}})}function _l(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Zd(c.type)){ll=c.stateNode,ul=!1;break a}break;case 5:ll=c.stateNode,ul=!1;break a;case 3:case 4:ll=c.stateNode.containerInfo,ul=!0;break a}c=c.return}if(ll===null)throw Error(i(160));fl(o,s,a),ll=null,ul=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)yl(t,e),t=t.sibling}var vl=null;function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_l(t,e),bl(e),r&4&&(Uc(3,e,e.return),Hc(3,e),Uc(5,e,e.return));break;case 1:_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),r&64&&tl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=vl;if(_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[ht]||o[lt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Pd(o,r,n),o[lt]=e,bt(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Vf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[lt]=e,bt(o),r=o}e.stateNode=r}else Hf(a,e.type,e.stateNode);else e.stateNode=If(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Yc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Hf(a,e.type,e.stateNode):If(a,r,e.memoizedProps))}break;case 27:_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),n!==null&&r&4&&Yc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),e.flags&32){a=e.stateNode;try{Kt(a,``)}catch(t){Wu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Yc(e,a,n===null?a:n.memoizedProps)),r&1024&&(rl=!0);break;case 6:if(_l(t,e),bl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Wu(e,e.return,t)}}break;case 3:if(Bf=null,a=vl,vl=gf(t.containerInfo),_l(t,e),vl=a,bl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Wu(e,e.return,t)}rl&&(rl=!1,xl(e));break;case 4:r=vl,vl=gf(e.stateNode.containerInfo),_l(t,e),bl(e),vl=r;break;case 12:_l(t,e),bl(e);break;case 31:_l(t,e),bl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 13:_l(t,e),bl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(eu=ke()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=tl,d=nl;if(tl=u||a,nl=d||l,_l(t,e),nl=d,tl=u,bl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||tl||nl||Cl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Wu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Wu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?$d(m,!0):$d(l.stateNode,!1)}catch(e){Wu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,gl(e,n))));break;case 19:_l(t,e),bl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 30:break;case 21:break;default:_l(t,e),bl(e)}}function bl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Xc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;$c(e,Zc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Kt(o,``),n.flags&=-33),$c(e,Zc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Qc(e,Zc(e),s);break;default:throw Error(i(161))}}catch(t){Wu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sl(e,t.alternate,t),t=t.sibling}function Cl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Uc(4,t,t.return),Cl(t);break;case 1:qc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Gc(t,t.return,n),Cl(t);break;case 27:pf(t.stateNode);case 26:case 5:qc(t,t.return),Cl(t);break;case 22:t.memoizedState===null&&Cl(t);break;case 30:Cl(t);break;default:Cl(t)}e=e.sibling}}function wl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:wl(i,a,n),Hc(4,a);break;case 1:if(wl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Wu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ja(c[i],s)}catch(e){Wu(r,r.return,e)}}n&&o&64&&Wc(a),Kc(a,a.return);break;case 27:el(a);case 26:case 5:wl(i,a,n),n&&r===null&&o&4&&Jc(a),Kc(a,a.return);break;case 12:wl(i,a,n);break;case 31:wl(i,a,n),n&&o&4&&pl(i,a);break;case 13:wl(i,a,n),n&&o&4&&ml(i,a);break;case 22:a.memoizedState===null&&wl(i,a,n),Kc(a,a.return);break;case 30:break;default:wl(i,a,n)}t=t.sibling}}function Tl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&sa(n))}function El(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e))}function Dl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ol(e,t,n,r),t=t.sibling}function Ol(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Dl(e,t,n,r),i&2048&&Hc(9,t);break;case 1:Dl(e,t,n,r);break;case 3:Dl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e)));break;case 12:if(i&2048){Dl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Wu(t,t.return,e)}}else Dl(e,t,n,r);break;case 31:Dl(e,t,n,r);break;case 13:Dl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Dl(e,t,n,r):(a._visibility|=2,W(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Dl(e,t,n,r):kl(e,t),i&2048&&Tl(o,t);break;case 24:Dl(e,t,n,r),i&2048&&El(t.alternate,t);break;default:Dl(e,t,n,r)}}function W(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:W(a,o,s,c,i),Hc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,W(a,o,s,c,i)):u._visibility&2?W(a,o,s,c,i):kl(a,o),i&&l&2048&&Tl(o.alternate,o);break;case 24:W(a,o,s,c,i),i&&l&2048&&El(o.alternate,o);break;default:W(a,o,s,c,i)}t=t.sibling}}function kl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:kl(n,r),i&2048&&Tl(r.alternate,r);break;case 24:kl(n,r),i&2048&&El(r.alternate,r);break;default:kl(n,r)}t=t.sibling}}var Al=8192;function jl(e,t,n){if(e.subtreeFlags&Al)for(e=e.child;e!==null;)Ml(e,t,n),e=e.sibling}function Ml(e,t,n){switch(e.tag){case 26:jl(e,t,n),e.flags&Al&&e.memoizedState!==null&&Gf(n,vl,e.memoizedState,e.memoizedProps);break;case 5:jl(e,t,n);break;case 3:case 4:var r=vl;vl=gf(e.stateNode.containerInfo),jl(e,t,n),vl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Al,Al=16777216,jl(e,t,n),Al=r):jl(e,t,n));break;default:jl(e,t,n)}}function Nl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Pl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Ll(r,e)}Nl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Fl(e),e=e.sibling}function Fl(e){switch(e.tag){case 0:case 11:case 15:Pl(e),e.flags&2048&&Uc(9,e,e.return);break;case 3:Pl(e);break;case 12:Pl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Il(e)):Pl(e);break;default:Pl(e)}}function Il(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Ll(r,e)}Nl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Uc(8,t,t.return),Il(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Il(t));break;default:Il(t)}e=e.sibling}}function Ll(e,t){for(;al!==null;){var n=al;switch(n.tag){case 0:case 11:case 15:Uc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:sa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,al=r;else a:for(n=e;al!==null;){r=al;var i=r.sibling,a=r.return;if(cl(r),r===n){al=null;break a}if(i!==null){i.return=a,al=i;break a}al=a}}}var Rl={getCacheForType:function(e){var t=$i(aa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return $i(aa).controller.signal}},zl=typeof WeakMap==`function`?WeakMap:Map,G=0,Bl=null,K=null,q=0,Vl=0,Hl=null,Ul=!1,Wl=!1,Gl=!1,Kl=0,J=0,ql=0,Jl=0,Yl=0,Y=0,Xl=0,Zl=null,Ql=null,$l=!1,eu=0,X=0,tu=1/0,Z=null,nu=null,ru=0,iu=null,au=null,ou=0,su=0,cu=null,lu=null,uu=0,du=null;function fu(){return G&2&&q!==0?q&-q:j.T===null?ot():dd()}function pu(){if(Y===0)if(!(q&536870912)||B){var e=Ke;Ke<<=1,!(Ke&3932160)&&(Ke=262144),Y=e}else Y=536870912;return e=to.current,e!==null&&(e.flags|=32),Y}function mu(e,t,n){(e===Bl&&(Vl===2||Vl===9)||e.cancelPendingCommit!==null)&&(xu(e,0),vu(e,q,Y,!1)),et(e,n),(!(G&2)||e!==Bl)&&(e===Bl&&(!(G&2)&&(Jl|=n),J===4&&vu(e,q,Y,!1)),rd(e))}function hu(e,t,n){if(G&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Xe(e,t),a=r?ku(e,t):Du(e,t,!0),o=r;do{if(a===0){Wl&&!r&&vu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!_u(n)){a=Du(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Zl;var l=c.current.memoizedState.isDehydrated;if(l&&(xu(c,s).flags|=256),s=Du(c,s,!1),s!==2){if(Gl&&!l){c.errorRecoveryDisabledLanes|=o,Jl|=o,a=4;break a}o=Ql,Ql=a,o!==null&&(Ql===null?Ql=o:Ql.push.apply(Ql,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){xu(e,0),vu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:vu(r,t,Y,!Ul);break a;case 2:Ql=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=eu+300-ke(),10<a)){if(vu(r,t,Y,!Ul),Ye(r,0,!0)!==0)break a;ou=t,r.timeoutHandle=Kd(gu.bind(null,r,n,Ql,Z,$l,t,Y,Jl,Xl,Ul,o,`Throttled`,-0,0),a);break a}gu(r,n,Ql,Z,$l,t,Y,Jl,Xl,Ul,o,null,-0,0)}}break}while(1);rd(e)}function gu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:en},Ml(t,a,d);var m=(a&62914560)===a?eu-ke():(a&4194048)===a?X-ke():0;if(m=qf(d,m),m!==null){ou=a,e.cancelPendingCommit=m(Iu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),vu(e,a,o,!l);return}}Iu(e,t,a,n,r,i,o,s,c)}function _u(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Cr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function vu(e,t,n,r){t&=~Yl,t&=~Jl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ve(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&tt(e,n,t)}function yu(){return G&6?!0:(id(0,!1),!1)}function bu(){if(K!==null){if(Vl===0)var e=K.return;else e=K,Gi=Wi=null,Oo(e),Aa=null,ja=0,e=K;for(;e!==null;)Vc(e.alternate,e),e=e.return;K=null}}function xu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ou=0,bu(),Bl=e,K=n=di(e.current,null),q=t,Vl=0,Hl=null,Ul=!1,Wl=Xe(e,t),Gl=!1,Xl=Y=Yl=Jl=ql=J=0,Ql=Zl=null,$l=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ve(r),a=1<<i;t|=e[i],r&=~a}return Kl=t,ti(),n}function Su(e,t){H=null,j.H=Rs,t===ba||t===Sa?(t=Oa(),Vl=3):t===xa?(t=Oa(),Vl=4):Vl=t===nc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Hl=t,K===null&&(J=1,Xs(e,vi(t,e.current)))}function Cu(){var e=to.current;return e===null?!0:(q&4194048)===q?no===null:(q&62914560)===q||q&536870912?e===no:!1}function wu(){var e=j.H;return j.H=Rs,e===null?Rs:e}function Tu(){var e=j.A;return j.A=Rl,e}function Eu(){J=4,Ul||(q&4194048)!==q&&to.current!==null||(Wl=!0),!(ql&134217727)&&!(Jl&134217727)||Bl===null||vu(Bl,q,Y,!1)}function Du(e,t,n){var r=G;G|=2;var i=wu(),a=Tu();(Bl!==e||q!==t)&&(Z=null,xu(e,t)),t=!1;var o=J;a:do try{if(Vl!==0&&K!==null){var s=K,c=Hl;switch(Vl){case 8:bu(),o=6;break a;case 3:case 2:case 9:case 6:to.current===null&&(t=!0);var l=Vl;if(Vl=0,Hl=null,Nu(e,s,c,l),n&&Wl){o=0;break a}break;default:l=Vl,Vl=0,Hl=null,Nu(e,s,c,l)}}Ou(),o=J;break}catch(t){Su(e,t)}while(1);return t&&e.shellSuspendCounter++,Gi=Wi=null,G=r,j.H=i,j.A=a,K===null&&(Bl=null,q=0,ti()),o}function Ou(){for(;K!==null;)ju(K)}function ku(e,t){var n=G;G|=2;var r=wu(),a=Tu();Bl!==e||q!==t?(Z=null,tu=ke()+500,xu(e,t)):Wl=Xe(e,t);a:do try{if(Vl!==0&&K!==null){t=K;var o=Hl;b:switch(Vl){case 1:Vl=0,Hl=null,Nu(e,t,o,1);break;case 2:case 9:if(wa(o)){Vl=0,Hl=null,Mu(t);break}t=function(){Vl!==2&&Vl!==9||Bl!==e||(Vl=7),rd(e)},o.then(t,t);break a;case 3:Vl=7;break a;case 4:Vl=5;break a;case 7:wa(o)?(Vl=0,Hl=null,Mu(t)):(Vl=0,Hl=null,Nu(e,t,o,7));break;case 5:var s=null;switch(K.tag){case 26:s=K.memoizedState;case 5:case 27:var c=K;if(s?Wf(s):c.stateNode.complete){Vl=0,Hl=null;var l=c.sibling;if(l!==null)K=l;else{var u=c.return;u===null?K=null:(K=u,Pu(u))}break b}}Vl=0,Hl=null,Nu(e,t,o,5);break;case 6:Vl=0,Hl=null,Nu(e,t,o,6);break;case 8:bu(),J=6;break a;default:throw Error(i(462))}}Au();break}catch(t){Su(e,t)}while(1);return Gi=Wi=null,j.H=r,j.A=a,G=n,K===null?(Bl=null,q=0,ti(),J):0}function Au(){for(;K!==null&&!De();)ju(K)}function ju(e){var t=Mc(e.alternate,e,Kl);e.memoizedProps=e.pendingProps,t===null?Pu(e):K=t}function Mu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=gc(n,t,t.pendingProps,t.type,void 0,q);break;case 11:t=gc(n,t,t.pendingProps,t.type.render,t.ref,q);break;case 5:Oo(t);default:Vc(n,t),t=K=fi(t,Kl),t=Mc(n,t,Kl)}e.memoizedProps=e.pendingProps,t===null?Pu(e):K=t}function Nu(e,t,n,r){Gi=Wi=null,Oo(t),Aa=null,ja=0;var i=t.return;try{if(tc(e,i,t,n,q)){J=1,Xs(e,vi(n,e.current)),K=null;return}}catch(t){if(i!==null)throw K=i,t;J=1,Xs(e,vi(n,e.current)),K=null;return}t.flags&32768?(B||r===1?e=!0:Wl||q&536870912?e=!1:(Ul=e=!0,(r===2||r===9||r===3||r===6)&&(r=to.current,r!==null&&r.tag===13&&(r.flags|=16384))),Fu(t,e)):Pu(t)}function Pu(e){var t=e;do{if(t.flags&32768){Fu(t,Ul);return}e=t.return;var n=zc(t.alternate,t,Kl);if(n!==null){K=n;return}if(t=t.sibling,t!==null){K=t;return}K=t=e}while(t!==null);J===0&&(J=5)}function Fu(e,t){do{var n=Bc(e.alternate,e);if(n!==null){n.flags&=32767,K=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){K=e;return}K=e=n}while(e!==null);J=6,K=null}function Iu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Vu();while(ru!==0);if(G&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ei,F(e,n,o,s,c,l),e===Bl&&(K=Bl=null,q=0),au=t,iu=e,ou=n,su=o,cu=a,lu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Xu(Ne,function(){return Hu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=j.T,j.T=null,a=M.p,M.p=2,s=G,G|=4;try{ol(e,t,n)}finally{G=s,M.p=a,j.T=r}}ru=1,Lu(),Ru(),zu()}}function Lu(){if(ru===1){ru=0;var e=iu,t=au,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=G;G|=4;try{yl(t,e);var a=zd,o=Or(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Dr(s.ownerDocument.documentElement,s)){if(c!==null&&kr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Er(s,h),v=Er(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!Rd,zd=Rd=null}finally{G=i,M.p=r,j.T=n}}e.current=t,ru=2}}function Ru(){if(ru===2){ru=0;var e=iu,t=au,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=G;G|=4;try{sl(e,t.alternate,t)}finally{G=i,M.p=r,j.T=n}}ru=3}}function zu(){if(ru===4||ru===3){ru=0,Oe();var e=iu,t=au,n=ou,r=lu;t.subtreeFlags&10256||t.flags&10256?ru=5:(ru=0,au=iu=null,Bu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(nu=null),at(n),t=t.stateNode,ze&&typeof ze.onCommitFiberRoot==`function`)try{ze.onCommitFiberRoot(Re,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=j.T,i=M.p,M.p=2,j.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{j.T=t,M.p=i}}ou&3&&Vu(),rd(e),i=e.pendingLanes,n&261930&&i&42?e===du?uu++:(uu=0,du=e):uu=0,id(0,!1)}}function Bu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,sa(t)))}function Vu(){return Lu(),Ru(),zu(),Hu()}function Hu(){if(ru!==5)return!1;var e=iu,t=su;su=0;var n=at(ou),r=j.T,a=M.p;try{M.p=32>n?32:n,j.T=null,n=cu,cu=null;var o=iu,s=ou;if(ru=0,au=iu=null,ou=0,G&6)throw Error(i(331));var c=G;if(G|=4,Fl(o.current),Ol(o,o.current,s,n),G=c,id(0,!1),ze&&typeof ze.onPostCommitFiberRoot==`function`)try{ze.onPostCommitFiberRoot(Re,o)}catch{}return!0}finally{M.p=a,j.T=r,Bu(e,t)}}function Uu(e,t,n){t=vi(n,t),t=Qs(e.stateNode,t,2),e=Ha(e,t,2),e!==null&&(et(e,2),rd(e))}function Wu(e,t,n){if(e.tag===3)Uu(e,e,n);else for(;t!==null;){if(t.tag===3){Uu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(nu===null||!nu.has(r))){e=vi(n,e),n=$s(2),r=Ha(t,n,2),r!==null&&(ec(n,r,t,e),et(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Gl=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Bl===e&&(q&n)===n&&(J===4||J===3&&(q&62914560)===q&&300>ke()-eu?!(G&2)&&xu(e,0):Yl|=n,Xl===q&&(Xl=0)),rd(e)}function qu(e,t){t===0&&(t=Qe()),e=ii(e,t),e!==null&&(et(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return Te(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ve(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=q,a=Ye(r,r===Bl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Xe(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Gd()&&(e=nd);for(var t=ke(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}ru!==0&&ru!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ve(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ze(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Bl,n=q,n=Ye(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Vl===2||Vl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ee(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Xe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ee(r),at(n)){case 2:case 8:n=Me;break;case 32:n=Ne;break;case 268435456:n=Fe;break;default:n=Ne}return r=cd.bind(null,e),n=Te(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ee(r),e.callbackPriority=2,e.callbackNode=null,2}function cd(e,t){if(ru!==0&&ru!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Vu()&&e.callbackNode!==n)return null;var r=q;return r=Ye(e,e===Bl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(hu(e,r,t),sd(e,ke()),e.callbackNode!=null&&e.callbackNode===n?cd.bind(null,e):null)}function ld(e,t){if(Vu())return null;hu(e,t,!0)}function ud(){Yd(function(){G&6?Te(je,ad):od()})}function dd(){if(nd===0){var e=ua;e===0&&(e=Ge,Ge<<=1,!(Ge&261888)&&(Ge=256)),nd=e}return nd}function fd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:$t(``+e)}function pd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function md(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=fd((i[ut]||null).action),o=r.submitter;o&&(t=(t=o[ut]||null)?fd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Sn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(nd!==0){var e=o?pd(i,o):new FormData(i);ws(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?pd(i,o):new FormData(i),ws(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var hd=0;hd<Yr.length;hd++){var gd=Yr[hd];Xr(gd.toLowerCase(),`on`+(gd[0].toUpperCase()+gd.slice(1)))}Xr(Vr,`onAnimationEnd`),Xr(Hr,`onAnimationIteration`),Xr(Ur,`onAnimationStart`),Xr(`dblclick`,`onDoubleClick`),Xr(`focusin`,`onFocus`),Xr(`focusout`,`onBlur`),Xr(Wr,`onTransitionRun`),Xr(Gr,`onTransitionStart`),Xr(Kr,`onTransitionCancel`),Xr(qr,`onTransitionEnd`),wt(`onMouseEnter`,[`mouseout`,`mouseover`]),wt(`onMouseLeave`,[`mouseout`,`mouseover`]),wt(`onPointerEnter`,[`pointerout`,`pointerover`]),wt(`onPointerLeave`,[`pointerout`,`pointerover`]),Ct(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Ct(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Ct(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Ct(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Ct(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Ct(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var _d=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),vd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(_d));function yd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Zr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Zr(e)}i.currentTarget=null,a=c}}}}function Q(e,t){var n=t[I];n===void 0&&(n=t[I]=new Set);var r=e+`__bubble`;n.has(r)||(Cd(t,e,2,!1),n.add(r))}function bd(e,t,n){var r=0;t&&(r|=4),Cd(n,e,r,t)}var xd=`_reactListening`+Math.random().toString(36).slice(2);function Sd(e){if(!e[xd]){e[xd]=!0,xt.forEach(function(t){t!==`selectionchange`&&(vd.has(t)||bd(t,!1,e),bd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xd]||(t[xd]=!0,bd(`selectionchange`,!1,t))}}function Cd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!dn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function wd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=_t(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}cn(function(){var r=a,i=nn(n),s=[];a:{var c=Jr.get(e);if(c!==void 0){var l=Sn,u=e;switch(e){case`keypress`:if(_n(n)===0)break a;case`keydown`:case`keyup`:l=Bn;break;case`focusin`:u=`focus`,l=jn;break;case`focusout`:u=`blur`,l=jn;break;case`beforeblur`:case`afterblur`:l=jn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=kn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=An;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Hn;break;case Vr:case Hr:case Ur:l=Mn;break;case qr:l=Un;break;case`scroll`:case`scrollend`:l=wn;break;case`wheel`:l=Wn;break;case`copy`:case`cut`:case`paste`:l=Nn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Vn;break;case`toggle`:case`beforetoggle`:l=Gn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=ln(m,p),g!=null&&d.push(Td(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==tn&&(u=n.relatedTarget||n.fromElement)&&(_t(u)||u[dt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?_t(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=kn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Vn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:L(l),h=u==null?c:L(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,_t(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Dd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Od(s,c,l,d,!1),u!==null&&f!==null&&Od(s,f,u,d,!0)}}a:{if(c=r?L(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=dr;else if(ar(c))if(fr)v=xr;else{v=yr;var y=vr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Xt(r.elementType)&&(v=dr):v=br;if(v&&=v(e,r)){or(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Ht(c,`number`,c.value)}switch(y=r?L(r):window,e){case`focusin`:(ar(y)||y.contentEditable===`true`)&&(jr=y,Mr=r,Nr=null);break;case`focusout`:Nr=Mr=jr=null;break;case`mousedown`:Pr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Pr=!1,Fr(s,n,i);break;case`selectionchange`:if(Ar)break;case`keydown`:case`keyup`:Fr(s,n,i)}var b;if(qn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else tr?$n(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Xn&&n.locale!==`ko`&&(tr||x!==`onCompositionStart`?x===`onCompositionEnd`&&tr&&(b=gn()):(pn=i,mn=`value`in pn?pn.value:pn.textContent,tr=!0)),y=Ed(r,x),0<y.length&&(x=new Pn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=er(n),b!==null&&(x.data=b)))),(b=Yn?nr(e,n):rr(e,n))&&(x=Ed(r,`onBeforeInput`),0<x.length&&(y=new Pn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),md(s,e,r,n,i)}yd(s,t)})}function Td(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ed(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=ln(e,n),i!=null&&r.unshift(Td(e,i,a)),i=ln(e,t),i!=null&&r.push(Td(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Dd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Od(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=ln(n,a),l!=null&&o.unshift(Td(n,l,c))):i||(l=ln(n,a),l!=null&&o.push(Td(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var kd=/\\r\\n?/g,Ad=/\\u0000|\\uFFFD/g;function jd(e){return(typeof e==`string`?e:``+e).replace(kd,`\n`).replace(Ad,``)}function Md(e,t){return t=jd(t),jd(e)===t}function $(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Kt(e,``+r);break;case`className`:At(e,`class`,r);break;case`tabIndex`:At(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:At(e,n,r);break;case`style`:Yt(e,r,o);break;case`data`:if(t!==`object`){At(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error(\'A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().\')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,a.name,a,null),$(e,t,`formEncType`,a.formEncType,a,null),$(e,t,`formMethod`,a.formMethod,a,null),$(e,t,`formTarget`,a.formTarget,a,null)):($(e,t,`encType`,a.encType,a,null),$(e,t,`method`,a.method,a,null),$(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=en);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=$t(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),kt(e,`popover`,r);break;case`xlinkActuate`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:kt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Zt.get(n)||n,kt(e,n,r))}}function Nd(e,t,n,r,a,o){switch(n){case`style`:Yt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Kt(e,``+r);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=en);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!St.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ut]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):kt(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Q(`error`,e),Q(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:$(e,t,o,s,n,null)}}a&&$(e,t,`srcSet`,n.srcSet,n,null),r&&$(e,t,`src`,n.src,n,null);return;case`input`:Q(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:$(e,t,r,d,n,null)}}Vt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Q(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:$(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ut(e,!!r,n,!0):Ut(e,!!r,t,!1);return;case`textarea`:for(s in Q(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:$(e,t,s,c,n,null)}Gt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:$(e,t,l,r,n,null)}return;case`dialog`:Q(`beforetoggle`,e),Q(`toggle`,e),Q(`cancel`,e),Q(`close`,e);break;case`iframe`:case`object`:Q(`load`,e);break;case`video`:case`audio`:for(r=0;r<_d.length;r++)Q(_d[r],e);break;case`image`:Q(`error`,e),Q(`load`,e);break;case`details`:Q(`toggle`,e);break;case`embed`:case`source`:case`link`:Q(`error`,e),Q(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:$(e,t,u,r,n,null)}return;default:if(Xt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&$(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||$(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&$(e,t,p,m,r,f)}}Bt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||$(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&$(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ut(e,!!n,n?[]:``,!1):Ut(e,!!n,t,!0)):Ut(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:$(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&$(e,t,s,a,r,o)}Wt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:$(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:$(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&$(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:$(e,t,u,p,r,m)}return;default:if(Xt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&$(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||$(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Id(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Hd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ud(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e===Wd?!1:(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ht]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body);n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ef(n),gt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[ht])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gt(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=M.d;M.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=yu();return e||t}function yf(e){var t=vt(e);t!==null&&t.tag===5&&t.type===`form`?Es(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+zt(n.imageSizes)+`"]`)):i+=`[href="`+zt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+zt(r)+`"][href="`+zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),bt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=yt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);bt(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=yt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),bt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=yt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),bt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=de.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=yt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=yt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=yt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+zt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),bt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+zt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+zt(n.href)+`"]`);if(r)return t.instance=r,bt(r),r;var a=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),bt(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,bt(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),bt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,bt(a),a):(r=n,(a=mf.get(o))&&(r=h({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),bt(a),Pd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ht]||a[lt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,bt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),bt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:C,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$e(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$e(0),this.hiddenUpdates=$e(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=li(3,null,null,t),e.current=a,a.stateNode=e,t=oa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},za(a),e}function tp(e){return e?(e=si,e):si}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Va(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ha(e,r,t),n!==null&&(mu(n,e,t),Ua(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=ii(e,67108864);t!==null&&mu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=fu();t=it(t);var n=ii(e,t);n!==null&&mu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=2,up(e,t,n,r)}finally{M.p=a,j.T=i}}function lp(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=8,up(e,t,n,r)}finally{M.p=a,j.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)wd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=vt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Je(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ve(o);s.entanglements[1]|=c,o&=~c}rd(a),!(G&6)&&(tu=ke()+500,id(0,!1))}}break;case 31:case 13:s=ii(a,2),s!==null&&mu(s,a,2),yu(),ip(a,2)}if(a=dp(r),a===null&&wd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else wd(e,t,r,null,n)}}function dp(e){return e=nn(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=_t(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ae()){case je:return 2;case Me:return 8;case Ne:case Pe:return 32;case Fe:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=vt(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=_t(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,st(e.priority,function(){op(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,st(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);tn=r,n.target.dispatchEvent(r),tn=null}else return t=vt(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=vt(n);a!==null&&(e.splice(t,3),t-=3,ws(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ut]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ut]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,fu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),yu(),t[dt]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=ot();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.7`)throw Error(i(527,Lp,`19.2.7`));M.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:j,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{Re=zp.inject(Rp),ze=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=qs,s=Js,c=Ys;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[dt]=t.current,Sd(e),new Fp(t)}})),g=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),v=o(((e,t)=>{t.exports=_()})),y=c(u(),1),b=g(),x=v();function S(){return(0,x.jsx)(`span`,{"aria-hidden":!0,"data-acting-spinner":!0,className:`ml-1 inline-block h-2.5 w-2.5 shrink-0 animate-spin rounded-full border border-current border-t-transparent align-[-1px] motion-reduce:animate-none`})}var C=`opacity-60`,w=700,T=12e4;function E(e){let t=e.prs[0];return t?`Approve \u2014 merges PR #${t.number}?`:`Approve \u2014 approves ${e.slug}?`}function ee({card:e,approve:t,onApproving:n}){let[r,i]=(0,y.useState)({kind:`idle`}),a=r.kind===`armed`,o=r.kind===`running`,s=(0,y.useRef)(!1);(0,y.useEffect)(()=>{o||(s.current=!1)},[o]),(0,y.useEffect)(()=>{if(!(!o||!n))return n(!0),()=>n(!1)},[o,n]);let c=(0,y.useRef)(null);(0,y.useEffect)(()=>{if(!a)return;let e=e=>{c.current?.contains(e.target)||i({kind:`idle`})};document.addEventListener(`pointerdown`,e,!0);let t=e=>{e.key===`Escape`&&i({kind:`idle`})};return document.addEventListener(`keydown`,t,!0),()=>{document.removeEventListener(`pointerdown`,e,!0),document.removeEventListener(`keydown`,t,!0)}},[a]),(0,y.useEffect)(()=>{if(!o)return;let t=!1,n,r=Date.now(),a=async()=>{try{let n=await(await fetch(`/api/approve/${encodeURIComponent(e.slug)}`)).json();if(t)return;if(n.state===`failed`){i({kind:`failed`,message:n.message||`the approve command failed`});return}if(n.state===`done`){i({kind:`idle`});return}}catch(e){if(t)return;i({kind:`failed`,message:e instanceof Error?e.message:String(e)});return}if(Date.now()-r>T){i({kind:`failed`,message:`still running \u2014 see the approve log`});return}n=setTimeout(()=>void a(),w)};return n=setTimeout(()=>void a(),w),()=>{t=!0,clearTimeout(n)}},[o,e.slug]);let l=async()=>{i({kind:`running`});try{let t=await fetch(`/api/approve`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({slug:e.slug})}),n=await t.json();t.ok||i({kind:`failed`,message:n.error??`HTTP ${t.status}`})}catch(e){i({kind:`failed`,message:e instanceof Error?e.message:String(e)})}},u=o||!t.available;return(0,x.jsxs)(`span`,{ref:c,className:`inline-flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,x.jsxs)(`button`,{type:`button`,onClick:()=>{if(!u){if(r.kind===`idle`||r.kind===`failed`){i({kind:`armed`});return}if(r.kind===`armed`){if(s.current)return;s.current=!0,l()}}},"aria-disabled":u||void 0,"aria-busy":o,"aria-pressed":a,title:t.available?`Run /plot-approve ${e.slug}`:t.reason,className:a?`rounded-sm bg-amber-100 px-1.5 py-0.5 text-xs font-semibold text-amber-900 hover:underline dark:bg-amber-900/40 dark:text-amber-200`:u?`cursor-not-allowed text-xs font-medium text-slate-400 no-underline dark:text-slate-600${o?` ${C}`:``}`:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:[o?`approving\u2026`:a?E(e):`Approve`,o&&(0,x.jsx)(S,{}),!t.available&&t.reason&&(0,x.jsxs)(`span`,{className:`sr-only`,children:[` \u2014 unavailable: `,t.reason]})]}),r.kind===`failed`&&(0,x.jsx)(`span`,{className:`whitespace-pre-line text-xs text-red-700 dark:text-red-400`,children:r.message})]})}var D=700,te=3e5;function O(e){return`Commission design \u2014 moves ${e.slug} to Design?`}function k({card:e,commission:t,onActing:n}){let[r,i]=(0,y.useState)({kind:`idle`}),a=r.kind===`armed`,o=r.kind===`running`,s=(0,y.useRef)(!1);(0,y.useEffect)(()=>{o||(s.current=!1)},[o]),(0,y.useEffect)(()=>{if(!(!o||!n))return n(!0),()=>n(!1)},[o,n]);let c=(0,y.useRef)(null);(0,y.useEffect)(()=>{if(!a)return;let e=e=>{c.current?.contains(e.target)||i({kind:`idle`})};document.addEventListener(`pointerdown`,e,!0);let t=e=>{e.key===`Escape`&&i({kind:`idle`})};return document.addEventListener(`keydown`,t,!0),()=>{document.removeEventListener(`pointerdown`,e,!0),document.removeEventListener(`keydown`,t,!0)}},[a]),(0,y.useEffect)(()=>{if(!o)return;let t=!1,n,r=Date.now(),a=async()=>{try{let n=await(await fetch(`/api/commission/${encodeURIComponent(e.slug)}`)).json();if(t)return;if(n.state===`failed`){i({kind:`failed`,message:n.message||`the commission command failed`});return}if(n.state===`done`){i({kind:`idle`});return}}catch(e){if(t)return;i({kind:`failed`,message:e instanceof Error?e.message:String(e)});return}if(Date.now()-r>te){i({kind:`failed`,message:`still running \u2014 see the commission log`});return}n=setTimeout(()=>void a(),D)};return n=setTimeout(()=>void a(),D),()=>{t=!0,clearTimeout(n)}},[o,e.slug]);let l=async()=>{i({kind:`running`});try{let t=await fetch(`/api/commission`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({slug:e.slug})}),n=await t.json();t.ok||i({kind:`failed`,message:n.detail??n.error??`HTTP ${t.status}`})}catch(e){i({kind:`failed`,message:e instanceof Error?e.message:String(e)})}},u=o||!t.available;return(0,x.jsxs)(`span`,{ref:c,className:`inline-flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,x.jsxs)(`button`,{type:`button`,"data-commission":e.slug,onClick:()=>{if(!u){if(r.kind===`idle`||r.kind===`failed`){i({kind:`armed`});return}if(r.kind===`armed`){if(s.current)return;s.current=!0,l()}}},"aria-disabled":u||void 0,"aria-busy":o,"aria-pressed":a,title:t.available?`Move ${e.slug} into Design`:t.reason,className:a?`rounded-sm bg-amber-100 px-1.5 py-0.5 text-xs font-semibold text-amber-900 hover:underline dark:bg-amber-900/40 dark:text-amber-200`:u?`cursor-not-allowed text-xs font-medium text-slate-400 no-underline dark:text-slate-600${o?` ${C}`:``}`:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:[o?`commissioning\u2026`:a?O(e):`Commission design`,o&&(0,x.jsx)(S,{}),!t.available&&t.reason&&(0,x.jsxs)(`span`,{className:`sr-only`,children:[` \u2014 unavailable: `,t.reason]})]}),r.kind===`failed`&&(0,x.jsx)(`span`,{"data-commission-error":e.slug,className:`whitespace-pre-line text-xs text-red-700 dark:text-red-400`,children:r.message})]})}var A=700,ne=3e5;function re(e){return`Create plan \u2014 Draft for #${e.number}?`}function ie(e,t){return t===`unsupported`?`this git host has no issue read, so an issue cannot become a plan from here`:t===`failed`?`the issue lookup is failing, so this issue cannot be read \u2014 nothing was created`:e.available?``:e.reason||`this board cannot create plans`}function j({issue:e,idea:t,issueAnswer:n}){let[r,i]=(0,y.useState)({kind:`idle`}),a=r.kind===`armed`,o=r.kind===`running`,s=(0,y.useRef)(!1);(0,y.useEffect)(()=>{o||(s.current=!1)},[o]);let c=(0,y.useRef)(null);(0,y.useEffect)(()=>{if(!a)return;let e=e=>{c.current?.contains(e.target)||i({kind:`idle`})};document.addEventListener(`pointerdown`,e,!0);let t=e=>{e.key===`Escape`&&i({kind:`idle`})};return document.addEventListener(`keydown`,t,!0),()=>{document.removeEventListener(`pointerdown`,e,!0),document.removeEventListener(`keydown`,t,!0)}},[a]),(0,y.useEffect)(()=>{if(!o)return;let t=!1,n,r=Date.now(),a=async()=>{try{let n=await(await fetch(`/api/idea/${e.number}`)).json();if(t)return;if(n.state===`failed`){i({kind:`failed`,message:n.message||`the idea command failed`});return}if(n.state===`done`){i({kind:`idle`});return}}catch(e){if(t)return;i({kind:`failed`,message:e instanceof Error?e.message:String(e)});return}if(Date.now()-r>ne){i({kind:`failed`,message:`still running \u2014 see the idea log`});return}n=setTimeout(()=>void a(),A)};return n=setTimeout(()=>void a(),A),()=>{t=!0,clearTimeout(n)}},[o,e.number]);let l=async()=>{i({kind:`running`});try{let t=await fetch(`/api/idea`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({number:e.number,type:`feature`})}),n=await t.json();t.ok||i({kind:`failed`,message:n.detail??n.error??`HTTP ${t.status}`})}catch(e){i({kind:`failed`,message:e instanceof Error?e.message:String(e)})}},u=ie(t,n),d=o||u!==``;return(0,x.jsxs)(`span`,{ref:c,className:`inline-flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,x.jsxs)(`button`,{type:`button`,"data-create-plan":e.number,onClick:()=>{if(!d){if(r.kind===`idle`||r.kind===`failed`){i({kind:`armed`});return}if(r.kind===`armed`){if(s.current)return;s.current=!0,l()}}},"aria-disabled":d||void 0,"aria-busy":o,"aria-pressed":a,title:u||`Create a Draft plan from issue #${e.number}`,className:a?`rounded-sm bg-amber-100 px-1.5 py-0.5 text-xs font-semibold text-amber-900 hover:underline dark:bg-amber-900/40 dark:text-amber-200`:d?`cursor-not-allowed text-xs font-medium text-slate-400 no-underline dark:text-slate-600${o?` ${C}`:``}`:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:[o?`creating\u2026`:a?re(e):`Create plan`,o&&(0,x.jsx)(S,{}),u&&(0,x.jsxs)(`span`,{className:`sr-only`,children:[` \u2014 unavailable: `,u]})]}),r.kind===`failed`&&(0,x.jsx)(`span`,{"data-create-plan-error":e.number,className:`whitespace-pre-line text-xs text-red-700 dark:text-red-400`,children:r.message})]})}var M={rose:`bg-rose-50 text-rose-800 dark:bg-rose-950/40 dark:text-rose-300`,amber:`bg-amber-50 text-amber-800 dark:bg-amber-950/40 dark:text-amber-300`},ae=4e3;function oe(e,t,n){let r=e=>n.get(e.key)??0;return[...e].sort((e,n)=>{let i=t.has(e.key),a=t.has(n.key);return i===a?i&&a||e.severity===n.severity?r(n)-r(e):n.severity-e.severity:i?-1:1})}function se(e){let[t,n]=(0,y.useState)(new Set),r=(0,y.useRef)(new Map),i=(0,y.useRef)(0),a=(0,y.useRef)(new Map),o=(0,y.useRef)(!1);return(0,y.useEffect)(()=>{let t=new Set(e);for(let e of[...r.current.keys()])if(!t.has(e)){r.current.delete(e);let t=a.current.get(e);t&&(clearTimeout(t),a.current.delete(e))}let s=o.current,c=!1;for(let t of e)if(!r.current.has(t)){if(r.current.set(t,++i.current),!s)continue;c=!0,n(e=>new Set(e).add(t));let e=setTimeout(()=>{n(e=>{let n=new Set(e);return n.delete(t),n}),a.current.delete(t)},ae);a.current.set(t,e)}o.current=!0,c||n(e=>{let n=new Set([...e].filter(e=>t.has(e)));return n.size===e.size?e:n})},[e.join(`\\0`)]),(0,y.useEffect)(()=>()=>{for(let e of a.current.values())clearTimeout(e)},[]),{flashing:t,arrivalOrder:r.current}}function ce({statuses:e}){let{flashing:t,arrivalOrder:n}=se(e.map(e=>e.key)),[r,i]=(0,y.useState)(0),a=oe(e,t,n),o=a.length===0?0:Math.min(r,a.length-1);if((0,y.useEffect)(()=>{r!==o&&i(o)},[r,o]),a.length===0)return null;let s=a[o],c=a.length;return(0,x.jsx)(`div`,{"data-status-panel":!0,role:`status`,"aria-live":`polite`,className:`rounded-md px-4 py-3 text-sm ${M[s.tone]}`,children:(0,x.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,x.jsx)(`p`,{"data-status-text":!0,className:`break-words`,children:s.text}),c>1&&(0,x.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 whitespace-nowrap`,children:[(0,x.jsx)(`button`,{type:`button`,"data-status-prev":!0,"aria-label":`Previous status`,className:`rounded px-1 leading-none hover:bg-black/5 dark:hover:bg-white/10`,onClick:()=>i(e=>(e-1+c)%c),children:`\u2039`}),(0,x.jsxs)(`span`,{"data-status-count":!0,className:`tabular-nums`,children:[o+1,` of `,c,` statuses`]}),(0,x.jsx)(`button`,{type:`button`,"data-status-next":!0,"aria-label":`Next status`,className:`rounded px-1 leading-none hover:bg-black/5 dark:hover:bg-white/10`,onClick:()=>i(e=>(e+1)%c),children:`\u203A`})]})]})})}function N(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=N(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function P(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=N(e))&&(r&&(r+=` `),r+=t);return r}var le=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,ue=P,de=(e,t)=>n=>{if(t?.variants==null)return ue(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=le(t)||le(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return ue(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},fe=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},pe=(e,t)=>({classGroupId:e,validator:t}),me=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),he=`-`,ge=[],_e=`arbitrary..`,ve=e=>{let t=xe(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return be(e);let n=e.split(he);return ye(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?fe(i,t):t:i||ge}return n[e]||ge}}},ye=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=ye(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(he):e.slice(t).join(he),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},be=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?_e+r:void 0})(),xe=e=>{let{theme:t,classGroups:n}=e;return Se(n,t)},Se=(e,t)=>{let n=me();for(let r in e){let i=e[r];Ce(i,n,r,t)}return n},Ce=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];we(i,t,n,r)}},we=(e,t,n,r)=>{if(typeof e==`string`){Te(e,t,n);return}if(typeof e==`function`){Ee(e,t,n,r);return}De(e,t,n,r)},Te=(e,t,n)=>{let r=e===``?t:Oe(t,e);r.classGroupId=n},Ee=(e,t,n,r)=>{if(ke(e)){Ce(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(pe(n,e))},De=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Ce(o,Oe(t,a),n,r)}},Oe=(e,t)=>{let n=e,r=t.split(he),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=me(),n.nextPart.set(t,i)),n=i}return n},ke=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Ae=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},je=`!`,Me=`:`,Ne=[],Pe=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Fe=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Me){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(je)?(c=s.slice(0,-1),l=!0):s.startsWith(je)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Pe(t,l,c,u)};if(t){let e=t+Me,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Pe(Ne,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Ie=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Le=e=>({cache:Ae(e.cacheSize),parseClassName:Fe(e),sortModifiers:Ie(e),postfixLookupClassGroupIds:Re(e),...ve(e)}),Re=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},ze=/\\s+/,Be=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(ze),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+je:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Ve=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=He(n))&&(i&&(i+=` `),i+=r);return i},He=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=He(e[r]))&&(n&&(n+=` `),n+=t);return n},Ue=(e,...t)=>{let n,r,i,a,o=o=>(n=Le(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Be(e,n);return i(e,a),a};return a=o,(...e)=>a(Ve(...e))},We=[],Ge=e=>{let t=t=>t[e]||We;return t.isThemeGetter=!0,t},Ke=/^\\[(?:(\\w[\\w-]*):)?(.+)\\]$/i,qe=/^\\((?:(\\w[\\w-]*):)?(.+)\\)$/i,Je=/^\\d+(?:\\.\\d+)?\\/\\d+(?:\\.\\d+)?$/,Ye=/^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/,Xe=/\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/,Ze=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\\(.+\\)$/,Qe=/^(inset_)?-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/,$e=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\\(.+\\)$/,et=e=>Je.test(e),F=e=>!!e&&!Number.isNaN(Number(e)),tt=e=>!!e&&Number.isInteger(Number(e)),nt=e=>e.endsWith(`%`)&&F(e.slice(0,-1)),rt=e=>Ye.test(e),it=()=>!0,at=e=>Xe.test(e)&&!Ze.test(e),ot=()=>!1,st=e=>Qe.test(e),ct=e=>$e.test(e),lt=e=>!I(e)&&!L(e),ut=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),dt=e=>Et(e,At,ot),I=e=>Ke.test(e),ft=e=>Et(e,jt,at),pt=e=>Et(e,Mt,F),mt=e=>Et(e,Pt,it),ht=e=>Et(e,Nt,ot),gt=e=>Et(e,Ot,ot),_t=e=>Et(e,kt,ct),vt=e=>Et(e,Ft,st),L=e=>qe.test(e),yt=e=>Dt(e,jt),bt=e=>Dt(e,Nt),xt=e=>Dt(e,Ot),St=e=>Dt(e,At),Ct=e=>Dt(e,kt),wt=e=>Dt(e,Ft,!0),Tt=e=>Dt(e,Pt,!0),Et=(e,t,n)=>{let r=Ke.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Dt=(e,t,n=!1)=>{let r=qe.exec(e);return r?r[1]?t(r[1]):n:!1},Ot=e=>e===`position`||e===`percentage`,kt=e=>e===`image`||e===`url`,At=e=>e===`length`||e===`size`||e===`bg-size`,jt=e=>e===`length`,Mt=e=>e===`number`,Nt=e=>e===`family-name`,Pt=e=>e===`number`||e===`weight`,Ft=e=>e===`shadow`,It=Ue(()=>{let e=Ge(`color`),t=Ge(`font`),n=Ge(`text`),r=Ge(`font-weight`),i=Ge(`tracking`),a=Ge(`leading`),o=Ge(`breakpoint`),s=Ge(`container`),c=Ge(`spacing`),l=Ge(`radius`),u=Ge(`shadow`),d=Ge(`inset-shadow`),f=Ge(`text-shadow`),p=Ge(`drop-shadow`),m=Ge(`blur`),h=Ge(`perspective`),g=Ge(`aspect`),_=Ge(`ease`),v=Ge(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),L,I],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[L,I,c],T=()=>[et,`full`,`auto`,...w()],E=()=>[tt,`none`,`subgrid`,L,I],ee=()=>[`auto`,{span:[`full`,tt,L,I]},tt,L,I],D=()=>[tt,`auto`,L,I],te=()=>[`auto`,`min`,`max`,`fr`,L,I],O=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],k=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],A=()=>[`auto`,...w()],ne=()=>[et,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],re=()=>[et,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ie=()=>[et,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],j=()=>[e,L,I],M=()=>[...b(),xt,gt,{position:[L,I]}],ae=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],oe=()=>[`auto`,`cover`,`contain`,St,dt,{size:[L,I]}],se=()=>[nt,yt,ft],ce=()=>[``,`none`,`full`,l,L,I],N=()=>[``,F,yt,ft],P=()=>[`solid`,`dashed`,`dotted`,`double`],le=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ue=()=>[F,nt,xt,gt],de=()=>[``,`none`,m,L,I],fe=()=>[`none`,F,L,I],pe=()=>[`none`,F,L,I],me=()=>[F,L,I],he=()=>[et,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[rt],breakpoint:[rt],color:[it],container:[rt],"drop-shadow":[rt],ease:[`in`,`out`,`in-out`],font:[lt],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[rt],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[rt],shadow:[rt],spacing:[`px`,F],text:[rt],"text-shadow":[rt],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,et,I,L,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,L,I]}],"container-named":[ut],columns:[{columns:[F,I,L,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[tt,`auto`,L,I]}],basis:[{basis:[et,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[F,et,`auto`,`initial`,`none`,I]}],grow:[{grow:[``,F,L,I]}],shrink:[{shrink:[``,F,L,I]}],order:[{order:[tt,`first`,`last`,`none`,L,I]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...O(),`normal`]}],"justify-items":[{"justify-items":[...k(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...k()]}],"align-content":[{content:[`normal`,...O()]}],"align-items":[{items:[...k(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...k(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":O()}],"place-items":[{"place-items":[...k(),`baseline`]}],"place-self":[{"place-self":[`auto`,...k()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mbs:[{mbs:A()}],mbe:[{mbe:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ne()}],"inline-size":[{inline:[`auto`,...re()]}],"min-inline-size":[{"min-inline":[`auto`,...re()]}],"max-inline-size":[{"max-inline":[`none`,...re()]}],"block-size":[{block:[`auto`,...ie()]}],"min-block-size":[{"min-block":[`auto`,...ie()]}],"max-block-size":[{"max-block":[`none`,...ie()]}],w:[{w:[s,`screen`,...ne()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ne()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ne()]}],h:[{h:[`screen`,`lh`,...ne()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ne()]}],"max-h":[{"max-h":[`screen`,`lh`,...ne()]}],"font-size":[{text:[`base`,n,yt,ft]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Tt,mt]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,nt,I]}],"font-family":[{font:[bt,ht,t]}],"font-features":[{"font-features":[I]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,L,I]}],"line-clamp":[{"line-clamp":[F,`none`,L,pt]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,L,I]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,L,I]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...P(),`wavy`]}],"text-decoration-thickness":[{decoration:[F,`from-font`,`auto`,L,ft]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[F,`auto`,L,I]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[tt,L,I]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,L,I]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,L,I]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},tt,L,I],radial:[``,L,I],conic:[tt,L,I]},Ct,_t]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-bs":[{"border-bs":N()}],"border-w-be":[{"border-be":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":N()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...P(),`hidden`,`none`]}],"divide-style":[{divide:[...P(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...P(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[F,L,I]}],"outline-w":[{outline:[``,F,yt,ft]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`none`,u,wt,vt]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,wt,vt]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:N()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[F,ft]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,wt,vt]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[F,L,I]}],"mix-blend":[{"mix-blend":[...le(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":le()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[F]}],"mask-image-linear-from-pos":[{"mask-linear-from":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[L,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[F]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,L,I]}],filter:[{filter:[``,`none`,L,I]}],blur:[{blur:de()}],brightness:[{brightness:[F,L,I]}],contrast:[{contrast:[F,L,I]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,wt,vt]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,F,L,I]}],"hue-rotate":[{"hue-rotate":[F,L,I]}],invert:[{invert:[``,F,L,I]}],saturate:[{saturate:[F,L,I]}],sepia:[{sepia:[``,F,L,I]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,L,I]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[F,L,I]}],"backdrop-contrast":[{"backdrop-contrast":[F,L,I]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,F,L,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[F,L,I]}],"backdrop-invert":[{"backdrop-invert":[``,F,L,I]}],"backdrop-opacity":[{"backdrop-opacity":[F,L,I]}],"backdrop-saturate":[{"backdrop-saturate":[F,L,I]}],"backdrop-sepia":[{"backdrop-sepia":[``,F,L,I]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,L,I]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[F,`initial`,L,I]}],ease:[{ease:[`linear`,`initial`,_,L,I]}],delay:[{delay:[F,L,I]}],animate:[{animate:[`none`,v,L,I]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,L,I]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":[`scale-3d`],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[L,I,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":[`translate-none`],zoom:[{zoom:[tt,L,I]}],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,L,I]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,L,I]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[F,yt,ft,pt]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Lt(...e){return It(P(e))}var Rt=de(`inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium max-w-full [overflow-wrap:anywhere]`,{variants:{variant:{neutral:`bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-200`,feature:`bg-blue-100 text-blue-800 dark:bg-blue-900/40 dark:text-blue-200`,bug:`bg-red-100 text-red-800 dark:bg-red-900/40 dark:text-red-200`,docs:`bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-200`,infra:`bg-violet-100 text-violet-800 dark:bg-violet-900/40 dark:text-violet-200`,sprint:`bg-amber-100 text-amber-800 dark:bg-amber-900/40 dark:text-amber-200`,story:`bg-teal-100 text-teal-800 dark:bg-teal-900/40 dark:text-teal-200`}},defaultVariants:{variant:`neutral`}});function zt({variant:e,className:t,children:n}){return(0,x.jsx)(`span`,{className:Lt(Rt({variant:e}),t),children:n})}function Bt(e){switch(e){case`feature`:case`bug`:case`docs`:case`infra`:return e;default:return`neutral`}}function Vt(e){let t=e.path.split(/[/\\\\]/).pop()??``;return`/plan/${encodeURIComponent(t)}`}function Ht(e){return!e.path||!e.slug?``:`/story/${encodeURIComponent(e.slug)}`}function Ut(e){return e.waveSummary?.claimed}function Wt(e,t){if(!t.available)return t.reason;let n=e.waveSummary;if(n){if(n.claimed===void 0||n.eligible===void 0)return`waiting for the first fleet scan`;if(n.eligible===0)return`no branch is eligible to start`}}function Gt(e){let{claimedAtClick:t,claimedNow:n,pulsesElapsed:r,limit:i}=e;return t!==void 0&&n!==void 0&&n>t?`confirmed`:r>=i?`gave-up`:`waiting`}var Kt=3;function qt({card:e,dispatch:t,pulse:n,onStarting:r}){let[i,a]=(0,y.useState)({kind:`idle`}),o=i.kind===`starting`,s=(0,y.useRef)(!1);(0,y.useEffect)(()=>{o||(s.current=!1)},[o]),(0,y.useEffect)(()=>{if(!(!o||!r))return r(!0),()=>r(!1)},[o,r]);let c=(0,y.useRef)(Ut(e)),l=Ut(e);(0,y.useEffect)(()=>{if(i.kind!==`starting`){c.current=l;return}let e=Gt({claimedAtClick:c.current,claimedNow:l,pulsesElapsed:n-i.since,limit:Kt});e===`confirmed`?a({kind:`idle`}):e===`gave-up`&&a({kind:`dispatched`})},[n,l,i]);let u=async()=>{a({kind:`starting`,since:n});try{let t=await fetch(`/api/dispatch`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({slug:e.slug})}),n=await t.json();if(!t.ok){a({kind:`failed`,message:n.error??`HTTP ${t.status}`});return}}catch(e){a({kind:`failed`,message:e instanceof Error?e.message:String(e)})}},d=Wt(e,t),f=o||d!==void 0;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(`button`,{type:`button`,onClick:()=>{s.current||f||(s.current=!0,u())},"aria-disabled":f||void 0,"aria-busy":o,title:d??`Dispatch the next eligible branch of ${e.slug}`,className:f?`cursor-not-allowed text-xs font-medium text-slate-400 no-underline dark:text-slate-600${o?` ${C}`:``}`:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:[o?`starting\u2026`:`Start work`,o&&(0,x.jsx)(S,{}),!o&&d&&(0,x.jsxs)(`span`,{className:`sr-only`,children:[` \u2014 unavailable: `,d]})]}),i.kind===`dispatched`&&(0,x.jsx)(`span`,{"data-dispatched":!0,className:`text-xs text-slate-500 dark:text-slate-400`,children:`Agent work will show up shortly`}),i.kind===`failed`&&(0,x.jsx)(`span`,{className:`text-xs text-red-700 dark:text-red-400`,children:i.message})]})}var Jt={Discovery:`border-l-sky-400`,Design:`border-l-slate-400`,Development:`border-l-green-500`,Endgame:`border-l-violet-500`,Released:`border-l-orange-500`};function Yt(e){return e.phase===`Design`&&e.started===!1}function Xt(e){return Yt(e)||e.phase===`Development`&&e.started===!0}function Zt(e){return e.phase===`Discovery`}function Qt(e){let t=[];return e.waves>1&&t.push(`${e.waves} waves \xB7 ${e.branches} branches`),(e.claimed??0)>0&&t.push(`${e.claimed} claimed`),(e.eligible??0)>0&&t.push(`${e.eligible} ready`),t.join(` \xB7 `)}function $t(e){return!Zt(e)||e.rounds===void 0?``:e.rounds===1?`1 round`:`${e.rounds} rounds`}function en({card:e,showSprint:t,showStory:n,dispatch:r,approve:i,pulse:a=0,onStarting:o,onOpen:s,story:c,onOpenStory:l,highlighted:u=!1}){let d=Vt(e),f=c?Ht(c):``;return(0,x.jsxs)(`article`,{id:`plan-${e.slug}`,"data-highlighted":u?`true`:void 0,className:Lt(`scroll-mt-20 rounded-md border border-l-4 bg-white p-3 shadow-sm`,`border-slate-200 dark:border-slate-700 dark:bg-slate-900`,Jt[e.phase],u&&`ring-2 ring-blue-500 ring-offset-2 dark:ring-offset-slate-950`),children:[(0,x.jsx)(`div`,{className:`text-sm font-medium leading-snug text-slate-900 dark:text-slate-100`,children:e.title}),(0,x.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-1.5`,children:[(0,x.jsx)(zt,{variant:Bt(e.type),children:e.type}),Yt(e)&&(0,x.jsx)(zt,{variant:`neutral`,children:`Ready`}),t&&e.sprint&&(0,x.jsx)(zt,{variant:`sprint`,children:e.sprint}),n&&e.story&&(f&&l&&c?(0,x.jsx)(`a`,{href:f,onClick:e=>{e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button!==0||(e.preventDefault(),l(c))},className:`rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1`,title:`Open the ${e.story} story`,children:(0,x.jsx)(zt,{variant:`story`,className:`hover:underline`,children:e.story})}):(0,x.jsx)(zt,{variant:`story`,children:e.story})),n&&!e.story&&(0,x.jsx)(zt,{variant:`neutral`,children:`no story`}),e.waveSummary&&e.waveSummary.branches>0&&Qt(e.waveSummary)&&(0,x.jsx)(zt,{variant:`neutral`,children:Qt(e.waveSummary)}),$t(e)&&(0,x.jsx)(zt,{variant:`neutral`,children:$t(e)})]}),(0,x.jsx)(`div`,{className:`mt-2 font-mono text-xs text-slate-400 dark:text-slate-500`,children:e.path}),(0,x.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-center gap-x-3 gap-y-1`,children:[(0,x.jsx)(`a`,{href:d,onClick:t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.button!==0||(t.preventDefault(),s(e))},className:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:`Open`}),e.prs.map(e=>e.url?(0,x.jsxs)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`,className:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:[`#`,e.number]},e.number):(0,x.jsxs)(`span`,{className:`text-xs text-slate-400 dark:text-slate-500`,title:`No link \u2014 the host has not reported a URL for this PR`,children:[`#`,e.number]},e.number)),r&&Xt(e)&&(0,x.jsx)(qt,{card:e,dispatch:r,pulse:a,onStarting:o}),i&&Zt(e)&&(0,x.jsx)(ee,{card:e,approve:i,onApproving:o}),e.assignee&&(0,x.jsxs)(`span`,{className:`ml-auto text-xs text-slate-500 dark:text-slate-400`,children:[`@`,e.assignee]})]})]})}function tn(e){return e.replace(/\\s+/g,` `).trim()}function nn(e){if(e<60)return`${e}s`;let t=Math.floor(e/60);if(t<60)return`${t}m`;let n=Math.floor(t/60);if(n<24)return t%60==0?`${n}h`:`${n}h ${t%60}m`;let r=Math.floor(n/24);return n%24==0?`${r}d`:`${r}d ${n%24}h`}function rn(e){return e<1e3?`${e}`:`${Math.round(e/1e3)}k`}function an(e,t=Date.now()){let n=Date.parse(e);if(Number.isNaN(n))return null;let r=Math.max(0,Math.round((t-n)/1e3));return r<60?`just now`:`${nn(r)} ago`}function on({label:e,value:t}){return t==null||t===``?null:(0,x.jsxs)(`div`,{className:`flex min-w-0 items-baseline gap-2`,"data-fact":e,children:[(0,x.jsx)(`span`,{className:`shrink-0 text-[11px] uppercase tracking-wide text-slate-400 dark:text-slate-500`,children:e}),(0,x.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs text-slate-700 dark:text-slate-300`,children:t})]})}function sn({label:e,value:t,onOpen:n}){return t==null||t===``?null:n?(0,x.jsxs)(`div`,{className:`flex min-w-0 items-baseline gap-2`,"data-fact":e,children:[(0,x.jsx)(`span`,{className:`shrink-0 text-[11px] uppercase tracking-wide text-slate-400 dark:text-slate-500`,children:e}),(0,x.jsx)(`button`,{type:`button`,onClick:n,"data-fact-link":e,title:t,className:`min-w-0 truncate text-left font-mono text-xs text-blue-600 hover:underline dark:text-blue-400`,children:t})]}):(0,x.jsx)(on,{label:e,value:t})}function cn({label:e,value:t}){let[n,r]=(0,y.useState)(!1);return t==null||t===``?null:(0,x.jsxs)(`div`,{className:`flex min-w-0 items-baseline gap-2`,"data-fact":e,children:[(0,x.jsx)(`span`,{className:`shrink-0 text-[11px] uppercase tracking-wide text-slate-400 dark:text-slate-500`,children:e}),(0,x.jsx)(`span`,{"data-fact-copy":e,title:t,className:`min-w-0 truncate font-mono text-xs text-slate-700 dark:text-slate-300`,children:t}),(0,x.jsx)(`button`,{type:`button`,onClick:()=>{navigator.clipboard?.writeText(t).then(()=>{r(!0),setTimeout(()=>r(!1),1200)},()=>{})},"data-copy-path":!0,className:`shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium text-slate-500 hover:bg-slate-100 hover:text-slate-700 dark:text-slate-400 dark:hover:bg-slate-800 dark:hover:text-slate-200`,children:n?`Copied`:`Copy path`})]})}function ln({command:e}){let[t,n]=(0,y.useState)(!1),[r,i]=(0,y.useState)(!1);return e==null||e===``?null:(0,x.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,"data-fact":`command`,"data-command-fact":!0,children:[(0,x.jsxs)(`div`,{className:`flex items-baseline gap-2`,children:[(0,x.jsx)(`span`,{className:`shrink-0 text-[11px] uppercase tracking-wide text-slate-400 dark:text-slate-500`,children:`command`}),(0,x.jsx)(`button`,{type:`button`,"data-command-toggle":!0,"aria-expanded":t,onClick:()=>n(e=>!e),className:`shrink-0 text-[11px] text-sky-600 hover:underline dark:text-sky-400`,children:t?`Show less`:`Show more`}),(0,x.jsx)(`button`,{type:`button`,"data-command-copy":!0,onClick:async()=>{try{await navigator.clipboard?.writeText(e),i(!0),setTimeout(()=>i(!1),1500)}catch{}},className:`shrink-0 text-[11px] text-sky-600 hover:underline dark:text-sky-400`,children:r?`Copied`:`Copy`})]}),(0,x.jsx)(`span`,{"data-command-value":!0,className:t?`min-w-0 whitespace-pre-wrap break-all font-mono text-xs text-slate-700 dark:text-slate-300`:`min-w-0 truncate font-mono text-xs text-slate-700 dark:text-slate-300`,children:t?e:tn(e)})]})}function un({panel:e,now:t,onOpenPlan:n,onRevealBranch:r}){if(!e)return null;if(!e.ok)return(0,x.jsx)(`p`,{"data-panel-miss":e.reason,className:`shrink-0 border-b border-slate-200 px-4 py-2 text-xs text-slate-500 dark:border-slate-800 dark:text-slate-400`,children:e.reason===`no-worktree`?`No worktree for this branch on this machine \u2014 ask the machine that took it.`:`No scan has reported this branch \u2014 the next pulse may know it.`});let i=e.lastActivity?an(e.lastActivity,t):null;return(0,x.jsxs)(`div`,{"data-agent-facts":!0,className:`grid shrink-0 grid-cols-2 gap-x-6 gap-y-1 border-b border-slate-200 px-4 py-3 dark:border-slate-800`,children:[(0,x.jsx)(on,{label:`pid`,value:e.pid}),(0,x.jsx)(on,{label:`uptime`,value:e.uptimeSeconds===null?null:nn(e.uptimeSeconds)}),(0,x.jsx)(sn,{label:`branch`,value:e.branch,onOpen:r?()=>r(e.branch):void 0}),(0,x.jsx)(on,{label:`state`,value:e.worker}),(0,x.jsx)(sn,{label:`plan`,value:e.plan,onOpen:n&&e.plan?()=>n(e.plan):void 0}),(0,x.jsx)(on,{label:`wave`,value:e.wave}),(0,x.jsx)(on,{label:`model`,value:e.model}),(0,x.jsx)(on,{label:`context`,value:e.contextTokens===void 0?null:`${rn(e.contextTokens)} tokens`}),(0,x.jsx)(on,{label:`last activity`,value:i}),(0,x.jsx)(`div`,{className:`col-span-2 min-w-0`,children:(0,x.jsx)(cn,{label:`worktree`,value:e.worktree})}),(0,x.jsx)(`div`,{className:`col-span-2 min-w-0`,children:(0,x.jsx)(ln,{command:e.command})})]})}var dn=`Continue with an answer`,fn=`Starts a NEW worker in this worktree with your answer, the brief, and what already landed. The agent that asked has already exited \u2014 this continues the work, not a conversation.`;function pn(e){switch(e){case`unknown-branch`:return`No plan on this board names that branch.`;case`no-worktree`:return`No worktree for this branch on this machine \u2014 continue it from the machine that holds it.`;case`no-question`:return`Nothing is waiting on an answer in that worktree \u2014 the marker is gone, so it may already have been answered.`;case`no-worker-command`:return"No `Worker command` is configured, so the board cannot start one \u2014 continue it yourself in the worktree."}}function mn({branch:e,available:t,unavailableReason:n,fetcher:r=fetch}){let[i,a]=(0,y.useState)(``),[o,s]=(0,y.useState)({at:`idle`});return t?(0,x.jsxs)(`div`,{"data-continue":!0,className:`shrink-0 border-t border-slate-200 px-4 py-3 dark:border-slate-800`,children:[(0,x.jsx)(`label`,{htmlFor:`continue-${e}`,className:`block text-xs font-medium text-slate-700 dark:text-slate-200`,children:dn}),(0,x.jsx)(`p`,{className:`mt-0.5 text-[11px] leading-snug text-slate-500 dark:text-slate-400`,children:fn}),(0,x.jsx)(`textarea`,{id:`continue-${e}`,"data-continue-answer":!0,value:i,onChange:e=>a(e.target.value),rows:3,placeholder:`Answer the question the worker left in its tree\u2026`,className:`mt-2 w-full rounded border border-slate-300 bg-white px-2 py-1.5 font-mono text-xs text-slate-800 dark:border-slate-700 dark:bg-slate-950 dark:text-slate-200`}),(0,x.jsxs)(`div`,{className:`mt-2 flex items-center gap-3`,children:[(0,x.jsx)(`button`,{type:`button`,"data-continue-send":!0,onClick:()=>{i.trim()===``||o.at===`sending`||(s({at:`sending`}),r(`/api/continue`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({branch:e,answer:i})}).then(async e=>{let t=await e.json();if(`error`in t){s({at:`error`,message:t.error});return}if(t.ok===!1){s({at:`refused`,reason:t.reason});return}a(``),s({at:`started`,pid:t.pid,previousPid:t.previousPid})}).catch(e=>{s({at:`error`,message:e instanceof Error?e.message:String(e)})}))},disabled:i.trim()===``||o.at===`sending`,className:`rounded bg-slate-800 px-3 py-1 text-xs font-medium text-white disabled:opacity-40 dark:bg-slate-200 dark:text-slate-900`,children:o.at===`sending`?`Starting\u2026`:dn}),o.at===`started`&&(0,x.jsxs)(`span`,{"data-continue-started":!0,className:`text-xs text-emerald-700 dark:text-emerald-400`,children:[`New worker started (pid `,o.pid,o.previousPid?`, replacing pid ${o.previousPid}`:``,`).`]}),o.at===`refused`&&(0,x.jsx)(`span`,{"data-continue-refused":o.reason,className:`text-xs text-amber-700 dark:text-amber-400`,children:pn(o.reason)}),o.at===`error`&&(0,x.jsx)(`span`,{"data-continue-error":!0,className:`text-xs text-rose-600 dark:text-rose-400`,children:o.message})]})]}):(0,x.jsx)(`div`,{"data-continue-unavailable":!0,className:`shrink-0 border-t border-slate-200 px-4 py-3 text-xs text-slate-500 dark:border-slate-800 dark:text-slate-400`,children:n||`Continuing is not available on this board.`})}var hn=3e3;function gn(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function _n(e){switch(e){case`no-worktree`:return`No worktree for this branch on this machine \u2014 ask the machine that took it.`;case`no-log`:return`The worktree is here, but no worker has written a log in it.`;case`unreadable`:return`The log file is there and would not open \u2014 check its permissions.`}}var vn=`The log is empty \u2014 an agent that writes its transcript on exit shows nothing here until it finishes.`;function yn({branch:e,onClose:t,fetcher:n=fetch,now:r,canContinue:i,onOpenPlan:a,onRevealBranch:o}){let[s,c]=(0,y.useState)(null),[l,u]=(0,y.useState)(null),[d,f]=(0,y.useState)(null),p=(0,y.useRef)(null),m=(0,y.useRef)(!0);return(0,y.useEffect)(()=>{let t=!1,r=()=>{n(`/api/worker-log?branch=${encodeURIComponent(e)}`).then(async e=>{let n=await e.json();if(!t){if(`error`in n){f(n.error);return}f(null),c(n)}}).catch(e=>{t||f(e instanceof Error?e.message:String(e))})};r();let i=setInterval(r,hn);return()=>{t=!0,clearInterval(i)}},[e,n]),(0,y.useEffect)(()=>{let t=!1,r=()=>{n(`/api/agent-panel?branch=${encodeURIComponent(e)}`).then(async e=>{let n=await e.json();t||`error`in n||u(n)}).catch(()=>{})};r();let i=setInterval(r,hn);return()=>{t=!0,clearInterval(i)}},[e,n]),(0,y.useEffect)(()=>{let e=e=>{e.key===`Escape`&&t()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[t]),(0,y.useEffect)(()=>{let e=window.scrollY,t=document.body,n={position:t.style.position,top:t.style.top,width:t.style.width,overflow:t.style.overflow};return t.style.position=`fixed`,t.style.top=`-${e}px`,t.style.width=`100%`,t.style.overflow=`hidden`,()=>{t.style.position=n.position,t.style.top=n.top,t.style.width=n.width,t.style.overflow=n.overflow,window.scrollTo(0,e)}},[]),(0,y.useEffect)(()=>{let e=p.current;e&&m.current&&(e.scrollTop=e.scrollHeight)},[s]),(0,x.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-slate-900/50 p-4`,onClick:t,children:(0,x.jsxs)(`div`,{role:`dialog`,"aria-label":`Agent: ${e}`,"data-worker-log":!0,"data-agent-panel":!0,className:`flex h-[80vh] w-full max-w-4xl flex-col overflow-hidden rounded-lg bg-white shadow-xl dark:bg-slate-900`,onClick:e=>e.stopPropagation(),children:[(0,x.jsxs)(`header`,{className:`flex shrink-0 items-baseline gap-3 border-b border-slate-200 px-4 py-3 dark:border-slate-800`,children:[(0,x.jsx)(`span`,{className:`text-sm font-medium text-slate-900 dark:text-slate-100`,children:`Agent`}),(0,x.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-xs text-slate-500 dark:text-slate-400`,children:e}),(0,x.jsx)(`button`,{type:`button`,onClick:t,className:`shrink-0 rounded px-2 py-1 text-xs text-slate-600 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-slate-800`,children:`Close`})]}),(0,x.jsx)(un,{panel:l,now:r,onOpenPlan:a,onRevealBranch:o?e=>{t(),o(e)}:void 0}),s?.ok&&s.truncated&&(0,x.jsxs)(`p`,{"data-log-truncated":!0,className:`shrink-0 border-b border-amber-200 bg-amber-50 px-4 py-1.5 text-xs text-amber-800 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-200`,children:[`Showing the last `,gn(s.text.length),` of `,gn(s.bytes),` \u2014 open the file for the rest.`]}),(0,x.jsx)(`pre`,{ref:p,onScroll:()=>{let e=p.current;e&&(m.current=e.scrollHeight-e.scrollTop-e.clientHeight<40)},"data-log-body":!0,className:`min-h-0 flex-1 overflow-auto whitespace-pre-wrap break-words bg-slate-50 px-4 py-3 font-mono text-xs leading-relaxed text-slate-800 dark:bg-slate-950 dark:text-slate-200`,children:d===null?s===null?(0,x.jsx)(`span`,{className:`text-slate-400`,children:`Loading\u2026`}):s.ok?s.text===``?(0,x.jsx)(`span`,{"data-log-empty":!0,className:`text-slate-500 dark:text-slate-400`,children:vn}):s.text:(0,x.jsx)(`span`,{"data-log-miss":s.reason,className:`text-slate-500 dark:text-slate-400`,children:_n(s.reason)}):(0,x.jsx)(`span`,{className:`text-rose-600 dark:text-rose-400`,children:d})}),l?.ok&&l.worker===`waiting`&&(0,x.jsx)(mn,{branch:e,available:i?.available??!1,unavailableReason:i?.reason,fetcher:n}),s?.path&&(0,x.jsx)(bn,{path:s.path})]})})}function bn({path:e}){let[t,n]=(0,y.useState)(!1);return(0,x.jsxs)(`footer`,{className:`flex shrink-0 items-center gap-3 border-t border-slate-200 px-4 py-2 dark:border-slate-800`,children:[(0,x.jsx)(`span`,{"data-log-path":!0,className:`min-w-0 flex-1 truncate font-mono text-[11px] text-slate-400 dark:text-slate-500`,children:e}),(0,x.jsx)(`button`,{type:`button`,"data-log-path-copy":!0,onClick:()=>{let t=()=>{n(!0),window.setTimeout(()=>n(!1),1500)};navigator.clipboard?.writeText?navigator.clipboard.writeText(e).then(t,()=>xn(e,t)):xn(e,t)},className:`shrink-0 rounded px-2 py-0.5 text-[11px] font-medium text-slate-600 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-slate-800`,children:t?`Copied`:`Copy path`})]})}function xn(e,t){let n=document.createElement(`textarea`);n.value=e,n.style.position=`fixed`,n.style.opacity=`0`,document.body.appendChild(n),n.select();try{document.execCommand(`copy`),t()}finally{document.body.removeChild(n)}}var Sn=`The dispatcher opened its log and has not written to it yet \u2014 give it a moment.`;function Cn(e){switch(e){case`no-log`:return`No dispatcher log \u2014 nobody has started work on this plan from this machine.`;case`unreadable`:return`The dispatcher log is there and would not open \u2014 check its permissions.`}}function wn({slug:e,onClose:t,fetcher:n=fetch}){let[r,i]=(0,y.useState)(null),[a,o]=(0,y.useState)(null),s=(0,y.useRef)(null),c=(0,y.useRef)(!0);return(0,y.useEffect)(()=>{let t=!1,r=()=>{n(`/api/dispatch-log?slug=${encodeURIComponent(e)}`).then(async e=>{let n=await e.json();if(!t){if(`error`in n){o(n.error);return}o(null),i(n)}}).catch(e=>{t||o(e instanceof Error?e.message:String(e))})};r();let a=setInterval(r,hn);return()=>{t=!0,clearInterval(a)}},[e,n]),(0,y.useEffect)(()=>{let e=e=>{e.key===`Escape`&&t()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[t]),(0,y.useEffect)(()=>{let e=s.current;e&&c.current&&(e.scrollTop=e.scrollHeight)},[r]),(0,x.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-slate-900/50 p-4`,onClick:t,children:(0,x.jsxs)(`div`,{role:`dialog`,"aria-label":`Dispatcher log: ${e}`,"data-dispatch-log":!0,className:`flex h-[80vh] w-full max-w-4xl flex-col overflow-hidden rounded-lg bg-white shadow-xl dark:bg-slate-900`,onClick:e=>e.stopPropagation(),children:[(0,x.jsxs)(`header`,{className:`flex shrink-0 items-baseline gap-3 border-b border-slate-200 px-4 py-3 dark:border-slate-800`,children:[(0,x.jsx)(`span`,{className:`text-sm font-medium text-slate-900 dark:text-slate-100`,children:`Status`}),(0,x.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-xs text-slate-500 dark:text-slate-400`,children:e}),(0,x.jsx)(`button`,{type:`button`,onClick:t,className:`shrink-0 rounded px-2 py-1 text-xs text-slate-600 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-slate-800`,children:`Close`})]}),r?.ok&&r.truncated&&(0,x.jsxs)(`p`,{"data-log-truncated":!0,className:`shrink-0 border-b border-amber-200 bg-amber-50 px-4 py-1.5 text-xs text-amber-800 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-200`,children:[`Showing the last `,gn(r.text.length),` of `,gn(r.bytes),` \u2014 open the file for the rest.`]}),(0,x.jsx)(`pre`,{ref:s,onScroll:()=>{let e=s.current;e&&(c.current=e.scrollHeight-e.scrollTop-e.clientHeight<40)},"data-log-body":!0,className:`min-h-0 flex-1 overflow-auto whitespace-pre-wrap break-words bg-slate-50 px-4 py-3 font-mono text-xs leading-relaxed text-slate-800 dark:bg-slate-950 dark:text-slate-200`,children:a===null?r===null?(0,x.jsx)(`span`,{className:`text-slate-400`,children:`Loading\u2026`}):r.ok?r.text===``?(0,x.jsx)(`span`,{"data-log-empty":!0,className:`text-slate-500 dark:text-slate-400`,children:Sn}):r.text:(0,x.jsx)(`span`,{"data-log-miss":r.reason,className:`text-slate-500 dark:text-slate-400`,children:Cn(r.reason)}):(0,x.jsx)(`span`,{className:`text-rose-600 dark:text-rose-400`,children:a})}),r?.path&&(0,x.jsx)(`footer`,{className:`shrink-0 truncate border-t border-slate-200 px-4 py-2 font-mono text-[11px] text-slate-400 dark:border-slate-800 dark:text-slate-500`,children:r.path})]})})}function Tn({branch:e,paths:t,onClose:n}){return(0,y.useEffect)(()=>{let e=e=>{e.key===`Escape`&&n()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[n]),(0,x.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-slate-900/50 p-4`,onClick:n,children:(0,x.jsxs)(`div`,{role:`dialog`,"aria-label":`Files changed on ${e}`,"data-changed-files":!0,className:`flex max-h-[80vh] w-full max-w-2xl flex-col overflow-hidden rounded-lg bg-white shadow-xl dark:bg-slate-900`,onClick:e=>e.stopPropagation(),children:[(0,x.jsxs)(`header`,{className:`flex shrink-0 items-baseline gap-3 border-b border-slate-200 px-4 py-3 dark:border-slate-800`,children:[(0,x.jsx)(`span`,{className:`text-sm font-medium text-slate-900 dark:text-slate-100`,children:`Changed files`}),(0,x.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-xs text-slate-500 dark:text-slate-400`,children:e}),(0,x.jsx)(`button`,{type:`button`,onClick:n,className:`shrink-0 rounded px-2 py-1 text-xs text-slate-600 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-slate-800`,children:`Close`})]}),(0,x.jsx)(`ul`,{"data-changed-files-body":!0,className:`min-h-0 flex-1 overflow-auto bg-slate-50 px-4 py-3 font-mono text-xs leading-relaxed text-slate-800 dark:bg-slate-950 dark:text-slate-200`,children:t.map(e=>(0,x.jsx)(`li`,{className:`break-all`,children:e},e))})]})})}var En=[{key:`waiting-on-you`,icon:`\u26A0`,label:`Waiting on you`,hint:`review, merge, decide`},{key:`working`,icon:`\u{1F916}`,label:`Working`,hint:`nothing to do \u2014 just look`},{key:`waiting-on-machine`,icon:`\u23F3`,label:`Waiting on a machine`,hint:`nothing \u2014 a machine is working`},{key:`not-started`,icon:`\u{1F4CB}`,label:`Not started`,hint:`approved \u2014 nobody has taken it`},{key:`quiet`,icon:`\u{1F4A4}`,label:`Quiet`,hint:`still thinking, or dead?`},{key:`done`,icon:`\u2705`,label:`Done`,hint:`merged`}],Dn=[`quiet`,`done`],On=`this host cannot report CI`;function kn(e){let t=An(e);return t.length===0?e.note:t.map(e=>e.evidence).join(`; `)}function An(e){return e.processes??[]}function jn(e){return e.group===`waiting-on-machine`||An(e).length>0}function Mn(e){let t=e.filter(e=>e.pr&&e.state!==`merged`);return t.length>0&&t.every(e=>e.pr.state===`unknown`)}function Nn(e){return e.prAgeSeconds===null?e.prError?`unreachable`:`unasked`:`answered`}var Pn={unasked:`not checked yet`,unreachable:`could not reach the host`};function Fn(e){return e?/rate limit/i.test(e)?`rate-limited`:`unreachable`:null}function In(e){return e===null||e<=0?null:e<60?`${e}s`:`${Math.round(e/60)} min`}function Ln(e){let t=Fn(e.prError);if(t===null)return null;if(t===`rate-limited`){let t=In(e.prNextInSeconds);return`PR data paused: the host\'s rate limit is spent`+(t?`, service returns in ~${t}`:``)+` \u2014 the two groups above that depend on it may be incomplete.`}return`PR data unavailable (${e.prError}) \u2014 the two groups above that depend on it may be incomplete.`}function Rn(e){let t=Fn(e.issueError);if(t===null)return null;if(t===`rate-limited`){let t=In(e.prNextInSeconds);return`Open issues paused: the tracker\'s rate limit is spent`+(t?`, service returns in ~${t}`:``)+` \u2014 this list may be incomplete.`}return`Open issues could not be read, so this list may be incomplete \u2014 ${e.issueError}`}var zn=`plot-board:agents:collapsed`;function Bn(e){let t=new Set(Dn),n=null;try{n=(e??globalThis.localStorage)?.getItem(zn)??null}catch{return t}if(n===null)return t;try{let e=JSON.parse(n);if(!Array.isArray(e))return t;let r=new Set(En.map(e=>e.key));return new Set(e.filter(e=>typeof e==`string`&&r.has(e)))}catch{return t}}function Vn(e,t){try{(t??globalThis.localStorage)?.setItem(zn,JSON.stringify([...e]))}catch{}}function Hn(e){return e>0}function Un(e){if(e<60)return`${e}m`;let t=Math.floor(e/60);return t<24?`${t}h`:`${Math.floor(t/24)}d`}function Wn(e){return e.ageMinutes===null?`\u2014`:Un(e.ageMinutes)}function Gn(e){return e<1?`today`:e<60?`${e}d`:`${Math.floor(e/30)}mo`}var Kn=`grid-cols-[1rem_5rem_10rem_1fr_14rem_2.5rem_1.25rem]`,qn=`grid-cols-[1rem_1fr_auto_2.5rem]`,Jn=12;function Yn(e,t=Jn){return e.length<=t?{head:e,tail:``}:{head:e.slice(0,e.length-t),tail:e.slice(e.length-t)}}function Xn(e){switch(e){case`green`:return`green`;case`pending`:return`CI running`;case`failing`:return`checks failing`;case`none`:return`no checks`;case`conflicts`:return`conflicts`;default:return``}}function Zn(e,t){if(!t)return e;let n=`PR #${t.number}`;if(!e.startsWith(n))return e;let r=e.slice(n.length),i=r.indexOf(` \xB7 `);return i===-1?``:r.slice(i+3)}function Qn(e){let t=new Map;for(let n of e){let e=t.get(n.plan);e?e.rows.push(n):t.set(n.plan,{plan:n.plan,planFile:n.planFile,rows:[n]})}let n=e=>Math.max(...e.rows.map(e=>e.ageMinutes??-1));return[...t.values()].sort((e,t)=>{let r=n(t)-n(e);return r===0?e.plan.localeCompare(t.plan):r})}function $n(e){let t=new Map;for(let n of e){if(n.wave===``)continue;let e=t.get(n.plan)??new Set;e.add(n.wave),t.set(n.plan,e)}return new Map([...t].map(([e,t])=>[e,t.size]))}function er(e,t){return e.wave===``||(t??0)<=1?null:e.wave}function tr(e,t){let n=[];return e.branches.length>0&&n.push(nr(e.branches,`branch`,`branches`)),e.plans.length>0&&n.push(nr(e.plans,`plan`,`plans`)),`This scan succeeded but describes less than the last one: ${n.length>0?n.join(` and `):`something it had a moment ago`} disappeared in the last ${t}s. The rows below are the NEW answer, not a frozen one \u2014 they may be right, or the scan may have read a moving working tree.`}function nr(e,t,n){let r=e.slice(0,3),i=e.length-r.length,a=e.length===1?t:n,o=i>0?` and ${i} more`:``;return`${a} ${r.join(`, `)}${o}`}function rr(e){return!!e.plan&&e.rows.length>1}function ir(e){return e.group===`not-started`&&e.state===`open`}function ar(e){let t=e.rows.map(e=>e.waitingDays).filter(e=>e!==null);return t.length===0?null:Math.max(...t)}function or(e){return[...e].sort((e,t)=>{let n=(ar(t)??-1)-(ar(e)??-1);return n===0?e.plan.localeCompare(t.plan):n})}function sr(e){let t=e.rows.filter(ir);if(t.length===0)return``;let n=`${t.length} wave${t.length===1?``:`s`}`;return t.some(lr)?`${n}, first eligible`:n}function cr(e){return e.rows.length>1}function lr(e){return e.waitingOn===`click`&&e.state===`open`}function ur(e){switch(e){case`you`:return`text-amber-700 dark:text-amber-400`;case`time`:return`text-slate-400 dark:text-slate-600`;default:return`text-slate-500 dark:text-slate-400`}}function dr(e){return e.group===`working`}function fr(e){return e.state===`merged`?!1:e.localLocked||e.localDirty}function pr(e){switch(e){case`artifact-conflict`:return`artifact conflict`;case`conflict`:return`conflict`;case`ci-failing`:return`CI failed`;case`unpushed`:return`unpushed work`}}function mr(e,t=Date.now()){switch(e.state){case`artifact-conflict`:case`conflict`:return e.conflicts.length>0?[`conflicting: ${e.conflicts.join(`, `)}`]:[`the host reports this branch does not merge \u2014 no file list available`];case`ci-failing`:return[e.failingChecks.length>0?`step: ${e.failingChecks.join(`, `)}`:`failing step unavailable`,e.runHistory.length>0?`recent runs: ${e.runHistory.map(e=>{let n=e.startedAt?an(e.startedAt,t):null;return`${e.conclusion||`unknown`}${n?` ${n}`:``}`}).join(`, `)}`:`run history unavailable`];case`unpushed`:return[`${e.localAhead} commit${e.localAhead===1?``:`s`} only this machine can see`]}}function hr(e){return e?.state===`ci-failing`&&e.changedPaths.length>0}function gr(e){return`Changed ${e} file${e===1?``:`s`}`}function _r(e){return e===`conflict`||e===`ci-failing`}function vr(e,t,n){return _r(e.state)?e.state===`ci-failing`?e.runHistory.some(e=>e.url):!!(t&&n):!1}function yr(e,t){return e&&!t}function br(e){if(!e)return``;if(e.state===`running`)return`repairing \u2014 merge, rebuild, test:board`;switch(e.outcome){case`pushed`:return`repaired automatically \u2014 rebuilt and pushed after test:board passed`;case`abandoned`:return`repair abandoned${e.reason?` \u2014 ${e.reason}`:``}; nothing was pushed`;case`refused`:return`repair refused${e.reason?` \u2014 ${e.reason}`:``}`;default:return`repair finished`}}var xr=6e3,Sr=class{onChange;schedule;timers=new Map;lit=new Set;constructor(e,t=(e,t)=>{let n=setTimeout(e,t);return()=>clearTimeout(n)}){this.onChange=e,this.schedule=t}seen(e){let t=!1;for(let n of e)t=!0,this.timers.get(n)?.(),this.lit.add(n),this.timers.set(n,this.schedule(()=>{this.timers.delete(n),this.lit.delete(n),this.onChange(new Set(this.lit))},xr));t&&this.onChange(new Set(this.lit))}get echoing(){return this.lit}dispose(){for(let e of this.timers.values())e();this.timers.clear(),this.lit.clear()}};function Cr(e,t){let n=new Set;for(let r of e){let e=Tr(r);(fr(r)||t.has(e))&&n.add(e)}return n}var wr=3e3;function Tr(e){return`${e.repo}/${e.branch}`}function Er(e){return{pr:e.pr?.state??null,prNumber:e.pr?.number??null,prDraft:e.pr?.draft??null,state:e.state,group:e.group,wave:e.wave,phase:e.phase,localDirty:e.localDirty,localLocked:e.localLocked,localAhead:e.localAhead,stuck:e.stuck===null?null:JSON.stringify(e.stuck)}}function Dr(e,t){let n=new Set,r=new Map;for(let i of t){let t=Tr(i),a=e.get(t)??null,o=Or(Er(i),a);e.has(t)&&!kr(a,o)&&n.add(t),r.set(t,o)}return{changed:n,next:r}}function Or(e,t){return!Ar(e.pr)||t===null?e:{...e,pr:t.pr,prNumber:t.prNumber,prDraft:t.prDraft}}function kr(e,t){return(!(!Ar(e.pr)&&!Ar(t.pr))||e.pr===t.pr)&&e.prNumber===t.prNumber&&e.prDraft===t.prDraft&&e.state===t.state&&e.group===t.group&&e.wave===t.wave&&e.phase===t.phase&&e.localDirty===t.localDirty&&e.localLocked===t.localLocked&&e.localAhead===t.localAhead&&e.stuck===t.stuck}function Ar(e){return e===`unknown`}var jr=class{onChange;schedule;timers=new Map;constructor(e,t=(e,t)=>{let n=setTimeout(e,t);return()=>clearTimeout(n)}){this.onChange=e,this.schedule=t}lit=new Set;mark(e){let t=!1;for(let n of e)t=!0,this.timers.get(n)?.(),this.lit.add(n),this.timers.set(n,this.schedule(()=>{this.timers.delete(n),this.lit.delete(n),this.onChange(new Set(this.lit))},wr));t&&this.onChange(new Set(this.lit))}dispose(){for(let e of this.timers.values())e();this.timers.clear(),this.lit.clear()}};function Mr(e){let t=(0,y.useRef)(null),[n,r]=(0,y.useState)(()=>new Set),i=(0,y.useRef)(null);return i.current??=new jr(r),(0,y.useEffect)(()=>{let{changed:n,next:r}=Dr(t.current??new Map,e);t.current=r,n.size>0&&i.current.mark(n)},[e]),(0,y.useEffect)(()=>()=>i.current?.dispose(),[]),n}function Nr(e){let[t,n]=(0,y.useState)(()=>new Set),r=(0,y.useRef)(null);return r.current??=new Sr(n),(0,y.useEffect)(()=>{r.current.seen(e.filter(e=>e.localLocked).map(Tr))},[e]),(0,y.useEffect)(()=>()=>r.current?.dispose(),[]),Cr(e,t)}function Pr(e){return fr(e)?`fast`:`slow`}function Fr(e,t){let n=!1;for(let r of e){if(t.has(Tr(r)))return`fast`;dr(r)&&(n=!0)}return n?`slow`:null}var Ir={row:`relative flex w-full shrink-0 flex-col items-center justify-center gap-1 self-stretch`,heading:`relative flex h-3 w-3 shrink-0 items-center self-center`};function Lr({pace:e,place:t=`row`,inTrack:n=!1}){let r=e===`fast`;return(0,x.jsx)(`span`,{"aria-hidden":!0,"data-activity-mark":!0,"data-activity-pace":e,title:r?`A write is in progress in this checkout`:`Claimed, and no write observed in this checkout`,className:n?`relative flex h-2 w-3 shrink-0 items-center`:Ir[t],children:(0,x.jsx)(`span`,{"data-activity-track":!0,className:`relative h-0.5 w-full rounded-full bg-emerald-500/25 dark:bg-emerald-400/25`,children:(0,x.jsx)(`span`,{"data-activity-dot":!0,style:{"--tw-travel":`0.375rem`},className:`absolute -top-0.5 left-0 h-1.5 w-1.5 rounded-full bg-emerald-500 shadow-[0_0_4px_1px_rgba(16,185,129,0.9),0_0_10px_3px_rgba(16,185,129,0.5)] motion-reduce:animate-none dark:bg-emerald-400 dark:shadow-[0_0_4px_1px_rgba(52,211,153,0.9),0_0_12px_4px_rgba(52,211,153,0.55)] ${r?`animate-travel-fast`:`animate-travel-slow`}`})})})}function Rr(e){return(e.localAhead??0)>0}function zr({ahead:e,inTrack:t=!1}){return(0,x.jsx)(`span`,{"aria-hidden":!0,"data-unpushed-mark":!0,title:`${e} commit${e===1?``:`s`} in this checkout that the remote has not seen`,className:t?`relative flex h-1 w-3 shrink-0 items-center`:Ir.row,children:(0,x.jsx)(`span`,{className:`h-0.5 w-full rounded-full bg-emerald-600/70 dark:bg-emerald-400/60`})})}function Br(){return(0,x.jsx)(`span`,{"aria-hidden":!0,"data-change-mark":!0,className:`pointer-events-none absolute inset-0 animate-pulse bg-amber-300/25 motion-reduce:animate-none dark:bg-amber-400/20`})}function Vr(){return(0,x.jsx)(`span`,{"aria-hidden":!0,"data-live-dot":!0,className:`h-1.5 w-1.5 shrink-0 self-center animate-pulse rounded-full bg-emerald-500 motion-reduce:animate-none sm:absolute sm:left-1 sm:top-1/2 sm:-translate-y-1/2 dark:bg-emerald-400`})}function Hr(){return(0,x.jsx)(`span`,{"aria-hidden":!0,"data-stuck-cue":!0,className:`inline-block h-2 w-2 shrink-0 animate-ping rounded-full bg-amber-500 motion-reduce:animate-none dark:bg-amber-400`})}function Ur(e){return e.group===`working`}function Wr(e){return e.note?`No action available \u2014 ${e.note}`:`No action available on this row`}function Gr(e){return e.pr?.url||e.branchUrl||``}function Kr(e){return e.group===`waiting-on-you`&&Gr(e)!==``}function qr(e){return e.waitingOn===`you`&&e.state===`open`}function Jr(e){return e.pr?`Review`:`Open`}function Yr(e){let t=e.stuck?.runHistory[0],n=e.stuck?.state===`ci-failing`&&(!t||(t.conclusion??``)!==`success`);return e.pr?.state===`failing`||n?`Show failure`:`Open last run`}function Xr(){return`a story is a decision you make \u2014 where it lives, whether it is wanted yet \u2014 so it is created with /story-tracking at a terminal, not from a board click`}function Zr(e){let{canStart:t,canApprove:n,canResolve:r,hasRun:i,hasLog:a,hasStatus:o,hasOpen:s,canCommission:c,hasChangedFiles:l,serverWillAct:u,approveWillAct:d,commissionWillAct:f}=e;return{present:t||n||r||i||a||o||s||c||l,enabled:t&&u||n&&d||r&&u||c&&f||i||a||o||s||l}}function Qr({row:e,cue:t}){let n=e.stuck,r=br(e.repair);if(!n&&!r)return null;let i=n?pr(n.state):``,a=n?mr(n):[];return(0,x.jsxs)(`span`,{role:`gridcell`,"data-stuck":n?.state??``,className:`flex w-full flex-wrap items-baseline gap-x-2 gap-y-0.5 text-xs sm:col-start-3 sm:col-end-[-1]`,children:[i&&(0,x.jsx)(`span`,{className:`shrink-0 font-medium text-amber-700 dark:text-amber-500`,children:i}),a.map(e=>(0,x.jsx)(`span`,{"data-stuck-evidence":!0,className:`min-w-0 text-slate-500 max-sm:whitespace-normal dark:text-slate-400`,children:e},e)),r&&(0,x.jsx)(`span`,{"data-repair":e.repair?.state??``,"data-repair-outcome":e.repair?.outcome??``,className:`min-w-0 text-slate-500 max-sm:whitespace-normal dark:text-slate-400`,children:r}),t&&(0,x.jsx)(Hr,{})]})}function $r({row:e,card:t,dispatch:n,approve:r,commission:i,pulse:a,onStarting:o,onTaken:s,onOpenLog:c,onOpenStatus:l,onOpenChangedFiles:u}){let[d,f]=(0,y.useState)(!1),p=(0,y.useRef)(null),m=!!(t&&n&&lr(e)),h=!!(t&&r&&Zt(t)&&e.waitingOn===`you`),g=n?.available??!1,_=r?.available??!1,v=e.stuck?.runHistory.find(e=>e.url)?.url??``,b=!!(e.stuck?.state===`conflict`&&t&&n),S=Kr(e)?Gr(e):``,C=!!(t&&i&&Zt(t)&&qr(e)),w=i?.available??!1,T=Ur(e),E=!!t?.hasDispatchLog,D=hr(e.stuck),{present:te,enabled:O}=Zr({canStart:m,canApprove:h,canResolve:b,hasRun:!!v,hasLog:T,hasStatus:E,hasOpen:!!S,canCommission:C,hasChangedFiles:D,serverWillAct:g,approveWillAct:_,commissionWillAct:w}),A=m&&!g&&n?.reason||b&&!g&&n?.reason?n.reason:C&&!w&&i?.reason?i.reason:Wr(e);return(0,y.useEffect)(()=>{if(!d)return;let e=e=>{e.key===`Escape`&&f(!1)},t=e=>{p.current?.contains(e.target)||f(!1)};return document.addEventListener(`keydown`,e),document.addEventListener(`click`,t,!0),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`click`,t,!0)}},[d]),(0,x.jsxs)(`div`,{role:`gridcell`,className:`relative w-5 shrink-0 text-right`,onClick:e=>e.stopPropagation(),children:[te&&(0,x.jsx)(`button`,{type:`button`,"data-row-actions":!0,"aria-haspopup":`menu`,"aria-expanded":d,"aria-disabled":!O||void 0,"aria-label":O?`Actions for ${e.branch}`:A,title:O?`Actions for ${e.branch}`:A,onClick:()=>{O&&f(e=>!e)},className:O?`text-xs leading-none text-slate-500 hover:text-slate-800 dark:text-slate-400 dark:hover:text-slate-100`:`cursor-default text-xs leading-none text-slate-300 dark:text-slate-700`,children:`\u22EF`}),d&&O&&(0,x.jsxs)(`div`,{role:`menu`,ref:p,className:`absolute right-0 z-10 mt-1 min-w-max rounded-md border border-slate-200 bg-white p-1 shadow-lg dark:border-slate-700 dark:bg-slate-900`,children:[S&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(`a`,{href:S,target:`_blank`,rel:`noreferrer`,"data-open-link":!0,"aria-label":`${Jr(e)} ${e.branch} on the git host`,className:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:Jr(e)})}),m&&n&&t&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(qt,{card:t,dispatch:n,pulse:a,onStarting:o})}),h&&r&&t&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(ee,{card:t,approve:r,onApproving:o})}),C&&i&&t&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(k,{card:t,commission:i,onActing:o})}),b&&t&&n&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(`span`,{onClick:s,children:(0,x.jsx)(qt,{card:t,dispatch:n,pulse:a,onStarting:o})})}),v&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(`a`,{href:v,target:`_blank`,rel:`noreferrer`,"data-stuck-link":!0,onClick:s,"aria-label":`${Yr(e)} for ${e.branch}`,className:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:Yr(e)})}),T&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(`button`,{type:`button`,"data-worker-log-open":!0,onClick:c,"aria-label":`Show the agent working on ${e.branch}`,className:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:`Show the agent`})}),E&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(`button`,{type:`button`,"data-dispatch-log-open":!0,onClick:l,"aria-label":`Show what the dispatcher did for ${e.branch}`,className:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:`Status`})}),D&&e.stuck&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(`button`,{type:`button`,"data-changed-files-open":!0,onClick:u,"aria-label":`Show the files changed on ${e.branch}`,className:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:gr(e.stuck.changedPaths.length)})})]})]})}function ei({plan:e,planFile:t,onOpenPlan:n}){return t?(0,x.jsx)(`a`,{href:`/plan/${encodeURIComponent(t)}`,onClick:e=>{n&&(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button!==0||n(t)&&e.preventDefault())},target:n?void 0:`_blank`,rel:`noreferrer`,className:`text-blue-600 hover:underline dark:text-blue-400`,children:e}):(0,x.jsx)(x.Fragment,{children:e})}function ti({row:e}){let{head:t,tail:n}=Yn(e.branch),r=(0,x.jsxs)(`span`,{"aria-hidden":!0,className:`flex min-w-0 max-sm:flex-wrap max-sm:break-all`,children:[(0,x.jsx)(`span`,{className:`truncate`,children:t}),n&&(0,x.jsx)(`span`,{className:`shrink-0`,children:n})]}),i=`flex min-w-0 font-mono text-[13px]`;return e.branchUrl?(0,x.jsx)(`a`,{href:e.branchUrl,target:`_blank`,rel:`noreferrer`,"data-branch":e.branch,"aria-label":e.branch,className:`${i} text-blue-600 hover:underline dark:text-blue-400`,title:`Branch ${e.branch} on the git host`,children:r}):(0,x.jsx)(`span`,{"data-branch":e.branch,"aria-label":e.branch,className:`${i} text-slate-800 dark:text-slate-200`,title:e.branch,children:r})}function ni(){return(0,x.jsxs)(`li`,{role:`row`,className:`sr-only max-sm:hidden`,children:[(0,x.jsx)(`span`,{role:`columnheader`,children:`Phase`}),(0,x.jsx)(`span`,{role:`columnheader`,children:`Plan`}),(0,x.jsx)(`span`,{role:`columnheader`,children:`Branch`}),(0,x.jsx)(`span`,{role:`columnheader`,children:`Pull request`}),(0,x.jsx)(`span`,{role:`columnheader`,children:`Age`}),(0,x.jsx)(`span`,{role:`columnheader`,children:`Actions`})]})}function ri({group:e,onOpenPlan:t,expanded:n,onToggle:r,active:i}){let a=ar(e),o=sr(e),s=n!==null;return(0,x.jsxs)(`li`,{role:`row`,"data-plan-row":e.plan,className:`relative flex flex-wrap items-baseline gap-x-3 gap-y-1 px-3 py-2 text-sm sm:grid ${qn} sm:items-baseline sm:gap-x-3`,children:[(0,x.jsx)(`span`,{role:`gridcell`,className:Ir.row,children:i&&(0,x.jsx)(Lr,{pace:`fast`,inTrack:!0})}),(0,x.jsxs)(`span`,{role:`gridcell`,className:`flex min-w-0 items-baseline gap-2`,children:[e.rows[0]?.phase&&(0,x.jsx)(`span`,{"data-phase":e.rows[0].phase,title:`Phase: ${e.rows[0].phase}`,className:`shrink-0 text-xs text-slate-500 dark:text-slate-400`,children:e.rows[0].phase}),s?(0,x.jsx)(`button`,{type:`button`,"data-wave-toggle":e.plan,"aria-expanded":n,"aria-label":`${n?`Hide`:`Show`} the branches of ${e.plan}`,onClick:r,className:`shrink-0 text-[10px] leading-none text-slate-400 hover:text-slate-800 dark:text-slate-500 dark:hover:text-slate-100`,children:(0,x.jsx)(`span`,{"aria-hidden":!0,children:n?`\u25BE`:`\u25B8`})}):(0,x.jsx)(`span`,{"aria-hidden":!0,className:`shrink-0 text-[10px] leading-none`,children:`\\xA0`}),(0,x.jsx)(`span`,{className:`min-w-0 truncate text-xs font-medium`,children:(0,x.jsx)(ei,{plan:e.plan,planFile:e.planFile,onOpenPlan:t})})]}),(0,x.jsx)(`span`,{role:`gridcell`,className:`flex w-full min-w-0 items-baseline sm:w-auto`,children:o&&(0,x.jsx)(`span`,{"data-wave-summary":!0,className:`truncate text-xs text-slate-500 dark:text-slate-400`,title:`Waves of this plan that nothing has started \u2014 counted in this section`,children:o})}),(0,x.jsx)(`span`,{role:`gridcell`,className:`shrink-0 text-right text-xs tabular-nums text-amber-700 dark:text-amber-500`,title:a===null?void 0:`Approved this long ago, and nobody has started it`,children:a===null?``:Gn(a)})]})}function ii({row:e,onOpenPlan:t,planInHeading:n=!1,card:r=null,dispatch:i,approve:a,commission:o,continueWith:s,pulse:c=0,onStarting:l,marked:u=!1,active:d=!1,inPlanGroup:f=!1,section:p,waveName:m=null,onRevealBranch:h,highlighted:g=!1}){let _=n=>{t&&(n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.button!==0||t(e.planFile)&&n.preventDefault())},v=Zn(p===`waiting-on-machine`?kn(e):e.note,e.pr),[b,S]=(0,y.useState)(!1),[C,w]=(0,y.useState)(!1),[T,E]=(0,y.useState)(!1),[ee,D]=(0,y.useState)(!1),te=e.stuck?yr(vr(e.stuck,r,i),b):!1;return(0,x.jsxs)(`li`,{role:`row`,"data-agent-row":!0,id:`agent-row-${e.branch}`,"data-highlighted":g?`true`:void 0,className:`relative flex flex-wrap items-baseline gap-x-3 gap-y-1 px-3 py-2 text-sm sm:grid ${Kn} sm:items-baseline sm:gap-x-3 ${f?``:`border-b border-slate-200/60 last:border-0 dark:border-slate-800`} ${g?`rounded-sm ring-2 ring-inset ring-blue-500`:``}`,children:[u&&(0,x.jsx)(Br,{}),(0,x.jsxs)(`span`,{role:`gridcell`,className:Ir.row,children:[(d||dr(e))&&(0,x.jsx)(Lr,{pace:d?`fast`:Pr(e),inTrack:!0}),Rr(e)&&(0,x.jsx)(zr,{ahead:e.localAhead,inTrack:!0}),dr(e)&&(0,x.jsx)(Vr,{})]}),(0,x.jsx)(`span`,{role:`gridcell`,className:`min-w-0 shrink-0 truncate text-xs text-slate-500 dark:text-slate-400`,title:m?`Wave: ${m}`:e.phase?`Phase: ${e.phase}`:void 0,children:m?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`span`,{className:`sr-only sm:hidden`,children:`Wave: `}),(0,x.jsx)(`span`,{"data-wave":m,children:m})]}):(0,x.jsx)(x.Fragment,{children:(!f||e.state===`deferred`)&&e.phase&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`span`,{className:`sr-only sm:hidden`,children:`Phase: `}),(0,x.jsx)(`span`,{"data-phase":e.phase,children:e.phase})]})})}),(0,x.jsx)(`span`,{role:`gridcell`,className:`min-w-0 truncate`,children:n?null:e.planFile?(0,x.jsx)(`a`,{href:`/plan/${encodeURIComponent(e.planFile)}`,onClick:_,target:t?void 0:`_blank`,rel:`noreferrer`,className:`text-xs text-blue-600 hover:underline dark:text-blue-400`,title:e.plan,children:e.plan}):(0,x.jsx)(`span`,{className:`text-xs text-slate-500 dark:text-slate-400`,title:e.plan,children:e.plan})}),(0,x.jsxs)(`span`,{role:`gridcell`,className:`flex w-full min-w-0 items-baseline gap-2 sm:w-auto`,children:[(0,x.jsx)(ti,{row:e}),e.state===`deferred`&&(0,x.jsx)(`span`,{className:`shrink-0 rounded-full bg-slate-100 px-1.5 py-0 text-[11px] font-medium text-slate-600 dark:bg-slate-800 dark:text-slate-300`,title:`Handed back \u2014 the branch was given up deliberately, and the plan can deliver without it`,children:`deferred`})]}),(0,x.jsxs)(`span`,{role:`gridcell`,className:`flex min-w-0 items-baseline gap-2`,children:[(0,x.jsx)(ui,{pr:e.pr}),v&&(0,x.jsx)(`span`,{"data-row-note":!0,"data-waiting-on":e.waitingOn??void 0,className:`min-w-0 truncate text-xs max-sm:whitespace-normal ${ur(e.waitingOn)}`,title:v,children:v})]}),f&&e.ageMinutes===null?(0,x.jsx)(`span`,{role:`gridcell`,className:`shrink-0 text-right text-xs tabular-nums`}):e.ageMinutes===null&&e.waitingDays!==null?(0,x.jsx)(`span`,{role:`gridcell`,className:`shrink-0 text-right text-xs tabular-nums text-amber-700 dark:text-amber-500`,title:`Approved this long ago, and nobody has started it`,children:Gn(e.waitingDays)}):(0,x.jsx)(`span`,{role:`gridcell`,className:`shrink-0 text-right text-xs tabular-nums text-slate-400 dark:text-slate-500`,children:Wn(e)}),(0,x.jsx)($r,{row:e,card:r,dispatch:i,approve:a,commission:o,pulse:c,onStarting:l,onTaken:()=>S(!0),onOpenLog:()=>w(!0),onOpenStatus:()=>E(!0),onOpenChangedFiles:()=>D(!0)}),(0,x.jsx)(Qr,{row:e,cue:te}),C&&(0,x.jsx)(yn,{branch:e.branch,onClose:()=>w(!1),canContinue:s,onOpenPlan:t?e=>void t(e):void 0,onRevealBranch:h}),T&&r&&(0,x.jsx)(wn,{slug:r.slug,onClose:()=>E(!1)}),ee&&e.stuck&&(0,x.jsx)(Tn,{branch:e.branch,paths:e.stuck.changedPaths,onClose:()=>D(!1)})]})}function ai(){return(0,x.jsx)(`svg`,{role:`img`,"aria-label":`Pull request`,viewBox:`0 0 16 16`,className:`inline-block h-3 w-3 shrink-0 align-[-0.1em]`,fill:`currentColor`,children:(0,x.jsx)(`path`,{d:`M4.5 3.25a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5ZM2 4.5a2.5 2.5 0 1 1 3.13 2.42v2.16a2.5 2.5 0 1 1-1.25 0V6.92A2.5 2.5 0 0 1 2 4.5Zm2.5 6.75a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5Zm7-8a2.5 2.5 0 0 1 .63 4.92v2.16a2.5 2.5 0 1 1-1.25 0V6.92A2.5 2.5 0 0 1 11.5 3.25Zm0 1.25a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5Zm0 6.75a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5Z`})})}function oi(e){let t=e.toLowerCase().replace(/^[a-z0-9 ]{1,20}:\\s*/,``).replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``);return t?t.split(`-`).filter(Boolean).slice(0,6).join(`-`):``}function si(){return(0,x.jsxs)(`svg`,{role:`img`,"aria-label":`Issue`,viewBox:`0 0 16 16`,className:`inline-block h-3 w-3 shrink-0 align-[-0.1em]`,fill:`currentColor`,children:[(0,x.jsx)(`path`,{d:`M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z`}),(0,x.jsx)(`path`,{d:`M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm0 1.25a6.75 6.75 0 1 0 0 13.5 6.75 6.75 0 0 0 0-13.5Z`})]})}function ci({issue:e,idea:t,issueAnswer:n}){let[r,i]=(0,y.useState)(!1),a=(0,y.useRef)(null);return(0,y.useEffect)(()=>{if(!r)return;let e=e=>{e.key===`Escape`&&i(!1)},t=e=>{a.current?.contains(e.target)||i(!1)};return document.addEventListener(`keydown`,e),document.addEventListener(`click`,t,!0),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`click`,t,!0)}},[r]),(0,x.jsxs)(`div`,{role:`gridcell`,className:`relative w-5 shrink-0 text-right`,onClick:e=>e.stopPropagation(),children:[(0,x.jsx)(`button`,{type:`button`,"data-issue-actions":e.number,"aria-haspopup":`menu`,"aria-expanded":r,"aria-label":`Actions for issue #${e.number}`,title:`Actions for issue #${e.number}`,onClick:()=>i(e=>!e),className:`text-xs leading-none text-slate-500 hover:text-slate-800 dark:text-slate-400 dark:hover:text-slate-100`,children:`\u22EF`}),r&&(0,x.jsxs)(`div`,{role:`menu`,ref:a,className:`absolute right-0 z-10 mt-1 min-w-max rounded-md border border-slate-200 bg-white p-1 shadow-lg dark:border-slate-700 dark:bg-slate-900`,children:[(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(j,{issue:e,idea:t,issueAnswer:n})}),(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsxs)(`button`,{type:`button`,"data-create-story":e.number,"aria-disabled":!0,title:Xr(),className:`cursor-not-allowed text-xs font-medium text-slate-400 no-underline dark:text-slate-600`,children:[`Create story`,(0,x.jsxs)(`span`,{className:`sr-only`,children:[` \u2014 unavailable: `,Xr()]})]})}),e.url&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`,"data-issue-open":!0,"aria-label":`Open issue #${e.number} on the host`,className:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:`Open on host`})})]})]})}function li({issue:e,idea:t,issueAnswer:n}){let r=(0,x.jsxs)(`span`,{className:`tabular-nums`,children:[(0,x.jsx)(si,{}),e.number]});return(0,x.jsxs)(`li`,{role:`row`,"data-issue-row":e.number,className:`relative flex flex-wrap items-baseline gap-x-3 gap-y-1 border-t border-slate-100 px-3 py-2 text-sm dark:border-slate-800 sm:grid ${Kn} sm:items-baseline sm:gap-x-3`,children:[(0,x.jsx)(`span`,{role:`gridcell`,className:Ir.row}),(0,x.jsx)(`span`,{role:`gridcell`,className:`min-w-0 shrink-0 truncate text-xs text-slate-500 dark:text-slate-400`,title:`Not a plan yet \u2014 this row asks whether it should become one`,children:(0,x.jsx)(`span`,{"data-phase":`Discovery`,children:`Discovery`})}),(0,x.jsxs)(`span`,{role:`gridcell`,className:`flex min-w-0 items-baseline gap-1`,children:[(0,x.jsx)(`span`,{"aria-hidden":!0,className:`shrink-0 text-[10px] leading-none`,children:` `}),(0,x.jsx)(`span`,{"data-issue-name":!0,className:`min-w-0 truncate text-xs font-medium text-slate-700 dark:text-slate-300`,title:e.title,children:oi(e.title)})]}),(0,x.jsx)(`span`,{role:`gridcell`,className:`flex w-full min-w-0 items-baseline sm:w-auto`}),(0,x.jsx)(`span`,{role:`gridcell`,className:`flex min-w-0 items-baseline gap-1 text-xs text-slate-500 dark:text-slate-400`,children:e.url?(0,x.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`,"data-issue-link":!0,className:`shrink-0 text-blue-600 hover:underline dark:text-blue-400`,children:r}):(0,x.jsx)(`span`,{"data-issue-number":!0,className:`shrink-0`,children:r})}),(0,x.jsx)(`span`,{role:`gridcell`,className:`shrink-0 text-right text-xs tabular-nums text-slate-500 dark:text-slate-400`,title:e.ageMinutes===null?void 0:`Open this long, and unplanned`,children:e.ageMinutes===null?``:Un(e.ageMinutes)}),(0,x.jsx)(ci,{issue:e,idea:t,issueAnswer:n})]})}function ui({pr:e}){if(!e)return null;let t=Xn(e.state),n=(0,x.jsxs)(`span`,{className:`tabular-nums`,children:[(0,x.jsx)(ai,{}),e.number]});return(0,x.jsxs)(`span`,{className:`flex min-w-0 items-baseline gap-1 text-xs text-slate-500 dark:text-slate-400`,children:[e.url?(0,x.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`,"data-pr-link":!0,className:`shrink-0 text-blue-600 hover:underline dark:text-blue-400`,children:n}):(0,x.jsx)(`span`,{"data-pr-number":!0,className:`shrink-0`,children:n}),e.draft&&(0,x.jsx)(`span`,{"data-pr-draft":!0,className:`shrink-0 rounded-full bg-slate-100 px-1.5 text-[11px] font-medium text-slate-600 dark:bg-slate-800 dark:text-slate-300`,title:`Draft \u2014 not yet offered for review`,children:`draft`}),t&&(0,x.jsx)(`span`,{"data-pr-state":e.state,className:e.state===`conflicts`||e.state===`failing`?`truncate text-rose-700 dark:text-rose-400`:e.state===`green`?`truncate text-emerald-700 dark:text-emerald-500`:`truncate`,children:t})]})}function di({fleet:e,pollSeconds:t,staleSeconds:n=null,onOpenPlan:r,cardForPlanFile:i,dispatch:a,approve:o,commission:s,continueWith:c,idea:l,pulse:u=0,onStarting:d,onRevealBranch:f,highlightBranch:p=``}){let m=n!==null,h=Mr(e.rows),g=Nr(e.rows),[_,v]=(0,y.useState)(()=>Bn()),b=e=>{v(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),Vn(n),n})},[S,C]=(0,y.useState)(()=>new Set),w=e=>{C(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[T,E]=(0,y.useState)(0);if((0,y.useEffect)(()=>{if(E(0),t===null||m)return;let e=setInterval(()=>E(e=>e+1),1e3);return()=>clearInterval(e)},[t,m,e.generatedAt]),!e.ready&&!e.error)return(0,x.jsx)(`p`,{className:`text-sm text-slate-500`,children:`Waiting for the first fleet scan\u2026`});let ee=t===null||m||e.scanNextInSeconds==null?null:Math.max(0,e.scanNextInSeconds-T),D=t===null||m||e.prNextInSeconds==null?null:Math.max(0,e.prNextInSeconds-T),te=$n(e.rows),O=[];m&&O.push({key:`stale`,severity:40,tone:`rose`,text:`Not reaching the board server \u2014 last heard ${n}s ago. The numbers below are frozen at that moment and are no longer being checked.`}),e.error&&O.push({key:`scan-failed`,severity:30,tone:`amber`,text:`Last scan failed: ${e.error}`+(e.ready?` \u2014 showing the last successful pulse below.`:``)}),e.shrink&&O.push({key:`shrink`,severity:20,tone:`amber`,text:tr(e.shrink,e.ageSeconds+T)});let k=Ln(e);return k&&O.push({key:`pr-error`,severity:10,tone:`amber`,text:k}),(0,x.jsxs)(`div`,{className:`space-y-4`,children:[(0,x.jsx)(ce,{statuses:O}),En.map(({key:t,icon:n,label:m,hint:v})=>{let y=t===`waiting-on-machine`?e.rows.filter(jn):e.rows.filter(e=>e.group===t),C=t===`waiting-on-you`&&e.issueAnswer===`answered`?e.issues:[],T=Qn(y),E=t===`not-started`,ee=E?or(T):T,D=Hn(y.length+C.length),O=D&&_.has(t),k=Nn(e),A=t===`waiting-on-machine`?k===`answered`?Mn(e.rows)?On:v:Pn[k]:v,ne=(E?T.length:y.length)+C.length,re=(0,x.jsx)(`span`,{className:`font-normal normal-case tracking-normal text-slate-400 dark:text-slate-600`,children:y.length+C.length>0?`(${ne})`:A}),ie=Fr(y,g),j=ie&&(0,x.jsx)(Lr,{pace:ie,place:`heading`});return(0,x.jsxs)(`section`,{children:[(0,x.jsx)(`h2`,{className:`mb-1 flex items-baseline gap-2 px-3 text-xs font-semibold uppercase tracking-wide text-slate-600 dark:text-slate-400`,children:D?(0,x.jsxs)(`button`,{type:`button`,"data-group-toggle":t,"aria-expanded":!O,onClick:()=>b(t),className:`flex items-baseline gap-2 uppercase tracking-wide hover:text-slate-900 dark:hover:text-slate-100`,children:[(0,x.jsx)(`span`,{"aria-hidden":!0,className:`text-[10px]`,children:O?`\u25B8`:`\u25BE`}),(0,x.jsx)(`span`,{"aria-hidden":!0,children:n}),m,re,j]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`span`,{"aria-hidden":!0,children:n}),m,re,j]})}),!O&&(0,x.jsxs)(`ul`,{role:`grid`,"aria-label":`${m} \u2014 agent branches`,className:`rounded-lg border border-slate-200 bg-white dark:border-slate-800 dark:bg-slate-900/40`,children:[(0,x.jsx)(ni,{}),y.length>0?ee.map(e=>{let n=!E&&rr(e);if(E){let n=cr(e),l=n?S.has(e.plan):null;return(0,x.jsxs)(`li`,{role:`rowgroup`,className:`border-b border-slate-200/60 last:border-0 dark:border-slate-800`,children:[(0,x.jsx)(ri,{group:e,onOpenPlan:r,expanded:l,onToggle:n?()=>w(e.plan):void 0,active:e.rows.some(e=>g.has(Tr(e)))}),(l===null||l)&&(0,x.jsx)(`ul`,{role:`presentation`,children:e.rows.map(e=>(0,x.jsx)(ii,{row:e,onOpenPlan:r,inPlanGroup:!0,planInHeading:!0,card:i?.(e.planFile)??null,dispatch:a,approve:o,commission:s,continueWith:c,pulse:u,onStarting:d,marked:h.has(Tr(e)),active:g.has(Tr(e)),section:t,waveName:er(e,te.get(e.plan)),onRevealBranch:f,highlighted:e.branch===p},Tr(e)))})]},e.plan)}return(0,x.jsxs)(`li`,{role:`rowgroup`,children:[n&&(0,x.jsxs)(`h3`,{className:`border-b border-slate-200/60 bg-slate-50 px-3 py-1 text-[11px] font-medium text-slate-500 dark:border-slate-800 dark:bg-slate-900/60 dark:text-slate-400`,children:[(0,x.jsx)(ei,{plan:e.plan,planFile:e.planFile,onOpenPlan:r}),(0,x.jsxs)(`span`,{className:`ml-1.5 font-normal text-slate-400 dark:text-slate-600`,children:[`(`,e.rows.length,`)`]})]}),(0,x.jsx)(`ul`,{role:`presentation`,children:e.rows.map(e=>(0,x.jsx)(ii,{row:e,onOpenPlan:r,planInHeading:n,card:i?.(e.planFile)??null,dispatch:a,approve:o,commission:s,continueWith:c,pulse:u,onStarting:d,marked:h.has(Tr(e)),active:g.has(Tr(e)),section:t,waveName:er(e,te.get(e.plan)),onRevealBranch:f,highlighted:e.branch===p},Tr(e)))})]},e.plan)}):C.length===0&&(0,x.jsx)(`li`,{role:`row`,className:`px-3 py-2 text-sm text-slate-400 dark:text-slate-600`,children:(0,x.jsx)(`span`,{role:`gridcell`,children:t===`waiting-on-machine`&&k!==`answered`?Pn[k]:`none`})}),C.map(t=>(0,x.jsx)(li,{issue:t,idea:l??{available:!1,reason:`this board has not said whether it can create plans`},issueAnswer:e.issueAnswer},`issue-${t.number}`)),t===`waiting-on-you`&&e.issueAnswer===`failed`&&Rn(e)&&(0,x.jsx)(`li`,{role:`row`,"data-issue-error":!0,className:`border-t border-slate-100 px-3 py-2 text-sm text-amber-700 dark:border-slate-800 dark:text-amber-500`,children:(0,x.jsx)(`span`,{role:`gridcell`,children:Rn(e)})})]})]},t)}),(0,x.jsxs)(`p`,{className:`px-3 text-xs text-slate-400 dark:text-slate-600`,children:[e.rows.length,` branches across`,` `,new Set(e.rows.map(e=>e.plan).filter(Boolean)).size,` plans`,!e.complete&&` so far`,` \xB7 scanned`,` `,e.ageSeconds+T,`s ago`,m&&` (frozen)`,ee!==null&&` \xB7 next in ${ee}s`,e.prAgeSeconds!==null&&` \xB7 PR data ${e.prAgeSeconds+T}s ago`,e.prAgeSeconds!==null&&D!==null&&` \xB7 next in ${D}s`,e.prAgeSeconds===null&&!e.prError&&` \xB7 no PR data yet`]})]})}var fi;function R(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var pi=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},mi=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(fi=globalThis).__zod_globalConfig??(fi.__zod_globalConfig={});var hi=globalThis.__zod_globalConfig;function gi(e){return e&&Object.assign(hi,e),hi}function _i(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function vi(e,t){return typeof t==`bigint`?t.toString():t}function yi(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw Error(`cached value already set`)}}}function bi(e){return e==null}function xi(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Si(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}var Ci=Symbol(`evaluating`);function z(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Ci)return r===void 0&&(r=Ci,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function wi(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ti(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function Ei(e){return JSON.stringify(e)}function Di(e){return e.toLowerCase().trim().replace(/[^\\w\\s-]/g,``).replace(/[\\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var Oi=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function ki(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Ai=yi(()=>{if(hi.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function ji(e){if(ki(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(ki(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Mi(e){return ji(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var Ni=new Set([`string`,`number`,`symbol`]);function B(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,`\\\\$&`)}function Pi(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function V(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Fi(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var Ii={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Li(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Pi(e,Ti(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return wi(this,`shape`,e),e},checks:[]}))}function Ri(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Pi(e,Ti(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return wi(this,`shape`,r),r},checks:[]}))}function zi(e,t){if(!ji(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Pi(e,Ti(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return wi(this,`shape`,n),n}}))}function Bi(e,t){if(!ji(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Pi(e,Ti(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return wi(this,`shape`,n),n}}))}function Vi(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return Pi(e,Ti(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return wi(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Hi(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Pi(t,Ti(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return wi(this,`shape`,i),i},checks:[]}))}function Ui(e,t,n){return Pi(t,Ti(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return wi(this,`shape`,i),i}}))}function Wi(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Gi(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Ki(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function qi(e){return typeof e==`string`?e:e?.message}function Ji(e,t,n){let r=e.message?e.message:qi(e.inst?._zod.def?.error?.(e))??qi(t?.error?.(e))??qi(n.customError?.(e))??qi(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function Yi(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Xi(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var Zi=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,vi,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Qi=R(`$ZodError`,Zi),$i=R(`$ZodError`,Zi,{Parent:Error});function ea(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function ta(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n}var na=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new pi;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>Ji(e,a,gi())));throw Oi(t,i?.callee),t}return o.value},ra=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>Ji(e,a,gi())));throw Oi(t,i?.callee),t}return o.value},ia=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new pi;return a.issues.length?{success:!1,error:new(e??Qi)(a.issues.map(e=>Ji(e,i,gi())))}:{success:!0,data:a.value}},aa=ia($i),oa=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Ji(e,i,gi())))}:{success:!0,data:a.value}},sa=oa($i),ca=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return na(e)(t,n,i)},la=e=>(t,n,r)=>na(e)(t,n,r),ua=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ra(e)(t,n,i)},da=e=>async(t,n,r)=>ra(e)(t,n,r),fa=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ia(e)(t,n,i)},pa=e=>(t,n,r)=>ia(e)(t,n,r),ma=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return oa(e)(t,n,i)},ha=e=>async(t,n,r)=>oa(e)(t,n,r),ga=/^[cC][0-9a-z]{6,}$/,_a=/^[0-9a-z]+$/,va=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ya=/^[0-9a-vA-V]{20}$/,ba=/^[A-Za-z0-9]{27}$/,xa=/^[a-zA-Z0-9_-]{21}$/,Sa=/^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/,Ca=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,wa=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ta=/^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_\'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/,Ea=`^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$`;function Da(){return new RegExp(Ea,`u`)}var Oa=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ka=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Aa=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/([0-9]|[1-2][0-9]|3[0-2])$/,ja=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ma=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Na=/^[A-Za-z0-9_-]*$/,Pa=/^https?$/,Fa=/^\\+[1-9]\\d{6,14}$/,Ia=`(?:(?:\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\\\d|30)|(?:02)-(?:0[1-9]|1\\\\d|2[0-8])))`,La=RegExp(`^${Ia}$`);function Ra(e){let t=`(?:[01]\\\\d|2[0-3]):[0-5]\\\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\\\d`:`${t}:[0-5]\\\\d\\\\.\\\\d{${e.precision}}`:`${t}(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?`}function za(e){return RegExp(`^${Ra(e)}$`)}function Ba(e){let t=Ra({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Ia}T(?:${r})$`)}var Va=e=>{let t=e?`[\\\\s\\\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\\\s\\\\S]*`;return RegExp(`^${t}$`)},Ha=/^-?\\d+$/,Ua=/^-?\\d+(?:\\.\\d+)?$/,Wa=/^(?:true|false)$/i,Ga=/^[^A-Z]*$/,Ka=/^[^a-z]*$/,qa=R(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Ja={number:`number`,bigint:`bigint`,object:`date`},Ya=R(`$ZodCheckLessThan`,(e,t)=>{qa.init(e,t);let n=Ja[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Xa=R(`$ZodCheckGreaterThan`,(e,t)=>{qa.init(e,t);let n=Ja[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Za=R(`$ZodCheckMultipleOf`,(e,t)=>{qa.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):Si(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Qa=R(`$ZodCheckNumberFormat`,(e,t)=>{qa.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Ii[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Ha)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),$a=R(`$ZodCheckMaxLength`,(e,t)=>{var n;qa.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!bi(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=Yi(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),eo=R(`$ZodCheckMinLength`,(e,t)=>{var n;qa.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!bi(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Yi(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),to=R(`$ZodCheckLengthEquals`,(e,t)=>{var n;qa.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!bi(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Yi(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),no=R(`$ZodCheckStringFormat`,(e,t)=>{var n,r;qa.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),ro=R(`$ZodCheckRegex`,(e,t)=>{no.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),io=R(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Ga,no.init(e,t)}),ao=R(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Ka,no.init(e,t)}),oo=R(`$ZodCheckIncludes`,(e,t)=>{qa.init(e,t);let n=B(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),so=R(`$ZodCheckStartsWith`,(e,t)=>{qa.init(e,t);let n=RegExp(`^${B(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),co=R(`$ZodCheckEndsWith`,(e,t)=>{qa.init(e,t);let n=RegExp(`.*${B(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),lo=R(`$ZodCheckOverwrite`,(e,t)=>{qa.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),uo=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`\n`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`\n`))}},H={major:4,minor:4,patch:3},U=R(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=H;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Wi(e),i;for(let a of t){if(a._zod.def.when){if(Gi(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new pi;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Wi(e,t))});else{if(e.issues.length===t)continue;r||=Wi(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Wi(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new pi;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new pi;return o.then(e=>t(e,r,a))}return t(o,r,a)}}z(e,`~standard`,()=>({validate:t=>{try{let n=aa(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return sa(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),fo=R(`$ZodString`,(e,t)=>{U.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Va(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),po=R(`$ZodStringFormat`,(e,t)=>{no.init(e,t),fo.init(e,t)}),mo=R(`$ZodGUID`,(e,t)=>{t.pattern??=Ca,po.init(e,t)}),ho=R(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=wa(e)}else t.pattern??=wa();po.init(e,t)}),go=R(`$ZodEmail`,(e,t)=>{t.pattern??=Ta,po.init(e,t)}),_o=R(`$ZodURL`,(e,t)=>{po.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===Pa.source&&!/^https?:\\/\\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),vo=R(`$ZodEmoji`,(e,t)=>{t.pattern??=Da(),po.init(e,t)}),yo=R(`$ZodNanoID`,(e,t)=>{t.pattern??=xa,po.init(e,t)}),bo=R(`$ZodCUID`,(e,t)=>{t.pattern??=ga,po.init(e,t)}),xo=R(`$ZodCUID2`,(e,t)=>{t.pattern??=_a,po.init(e,t)}),So=R(`$ZodULID`,(e,t)=>{t.pattern??=va,po.init(e,t)}),Co=R(`$ZodXID`,(e,t)=>{t.pattern??=ya,po.init(e,t)}),wo=R(`$ZodKSUID`,(e,t)=>{t.pattern??=ba,po.init(e,t)}),To=R(`$ZodISODateTime`,(e,t)=>{t.pattern??=Ba(t),po.init(e,t)}),Eo=R(`$ZodISODate`,(e,t)=>{t.pattern??=La,po.init(e,t)}),Do=R(`$ZodISOTime`,(e,t)=>{t.pattern??=za(t),po.init(e,t)}),Oo=R(`$ZodISODuration`,(e,t)=>{t.pattern??=Sa,po.init(e,t)}),ko=R(`$ZodIPv4`,(e,t)=>{t.pattern??=Oa,po.init(e,t),e._zod.bag.format=`ipv4`}),Ao=R(`$ZodIPv6`,(e,t)=>{t.pattern??=ka,po.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),jo=R(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Aa,po.init(e,t)}),Mo=R(`$ZodCIDRv6`,(e,t)=>{t.pattern??=ja,po.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function No(e){if(e===``)return!0;if(/\\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Po=R(`$ZodBase64`,(e,t)=>{t.pattern??=Ma,po.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{No(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Fo(e){if(!Na.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return No(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Io=R(`$ZodBase64URL`,(e,t)=>{t.pattern??=Na,po.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Fo(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Lo=R(`$ZodE164`,(e,t)=>{t.pattern??=Fa,po.init(e,t)});function Ro(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var zo=R(`$ZodJWT`,(e,t)=>{po.init(e,t),e._zod.check=n=>{Ro(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Bo=R(`$ZodNumber`,(e,t)=>{U.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ua,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Vo=R(`$ZodNumberFormat`,(e,t)=>{Qa.init(e,t),Bo.init(e,t)}),Ho=R(`$ZodBoolean`,(e,t)=>{U.init(e,t),e._zod.pattern=Wa,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Uo=R(`$ZodUnknown`,(e,t)=>{U.init(e,t),e._zod.parse=e=>e}),Wo=R(`$ZodNever`,(e,t)=>{U.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Go(e,t,n){e.issues.length&&t.issues.push(...Ki(n,e.issues)),t.value[n]=e.value}var Ko=R(`$ZodArray`,(e,t)=>{U.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>Go(t,n,e))):Go(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function qo(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Ki(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function Jo(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Fi(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Yo(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>qo(e,n,i,t,u,d))):qo(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var Xo=R(`$ZodObject`,(e,t)=>{if(U.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=yi(()=>Jo(t));z(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=ki,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>qo(n,t,e,s,r,i))):qo(a,t,e,s,r,i)}return i?Yo(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Zo=R(`$ZodObjectJIT`,(e,t)=>{Xo.init(e,t);let n=e._zod.parse,r=yi(()=>Jo(t)),i=e=>{let t=new uo([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=Ei(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=Ei(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(`\n if (${n}.issues.length) {\n if (${o} in input) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${o}, ...iss.path] : [${o}]\n })));\n }\n }\n \n if (${n}.value === undefined) {\n if (${o} in input) {\n newResult[${o}] = undefined;\n }\n } else {\n newResult[${o}] = ${n}.value;\n }\n \n `):c?t.write(`\n if (${n}.issues.length) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${o}, ...iss.path] : [${o}]\n })));\n }\n \n if (${n}.value === undefined) {\n if (${o} in input) {\n newResult[${o}] = undefined;\n }\n } else {\n newResult[${o}] = ${n}.value;\n }\n \n `):t.write(`\n const ${n}_present = ${o} in input;\n if (${n}.issues.length) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${o}, ...iss.path] : [${o}]\n })));\n }\n if (!${n}_present && !${n}.issues.length) {\n payload.issues.push({\n code: "invalid_type",\n expected: "nonoptional",\n input: undefined,\n path: [${o}]\n });\n }\n\n if (${n}_present) {\n if (${n}.value === undefined) {\n newResult[${o}] = undefined;\n } else {\n newResult[${o}] = ${n}.value;\n }\n }\n\n `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=ki,s=!hi.jitless,c=s&&Ai.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Yo([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Qo(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Wi(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Ji(e,r,gi())))}),t)}var $o=R(`$ZodUnion`,(e,t)=>{U.init(e,t),z(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),z(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),z(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),z(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>xi(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Qo(t,r,e,i)):Qo(o,r,e,i)}}),es=R(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,$o.init(e,t);let n=e._zod.parse;z(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=yi(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!ki(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),ts=R(`$ZodIntersection`,(e,t)=>{U.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>rs(e,t,n)):rs(e,i,a)}});function ns(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ji(e)&&ji(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=ns(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=ns(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function rs(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Wi(e))return e;let o=ns(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var is=R(`$ZodEnum`,(e,t)=>{U.init(e,t);let n=_i(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Ni.has(typeof e)).map(e=>typeof e==`string`?B(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),as=R(`$ZodLiteral`,(e,t)=>{if(U.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?B(e):e?B(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),os=R(`$ZodTransform`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new mi(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new pi;return n.value=i,n.fallback=!0,n}});function ss(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var cs=R(`$ZodOptional`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,z(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),z(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${xi(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>ss(e,r)):ss(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),ls=R(`$ZodExactOptional`,(e,t)=>{cs.init(e,t),z(e._zod,`values`,()=>t.innerType._zod.values),z(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),us=R(`$ZodNullable`,(e,t)=>{U.init(e,t),z(e._zod,`optin`,()=>t.innerType._zod.optin),z(e._zod,`optout`,()=>t.innerType._zod.optout),z(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${xi(e.source)}|null)$`):void 0}),z(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),ds=R(`$ZodDefault`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,z(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>fs(e,t)):fs(r,t)}});function fs(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var ps=R(`$ZodPrefault`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,z(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),ms=R(`$ZodNonOptional`,(e,t)=>{U.init(e,t),z(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>hs(t,e)):hs(i,e)}});function hs(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var gs=R(`$ZodCatch`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,z(e._zod,`optout`,()=>t.innerType._zod.optout),z(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ji(e,n,gi()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ji(e,n,gi()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),_s=R(`$ZodPipe`,(e,t)=>{U.init(e,t),z(e._zod,`values`,()=>t.in._zod.values),z(e._zod,`optin`,()=>t.in._zod.optin),z(e._zod,`optout`,()=>t.out._zod.optout),z(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>vs(e,t.in,n)):vs(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>vs(e,t.out,n)):vs(r,t.out,n)}});function vs(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var ys=R(`$ZodReadonly`,(e,t)=>{U.init(e,t),z(e._zod,`propValues`,()=>t.innerType._zod.propValues),z(e._zod,`values`,()=>t.innerType._zod.values),z(e._zod,`optin`,()=>t.innerType?._zod?.optin),z(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(bs):bs(r)}});function bs(e){return e.value=Object.freeze(e.value),e}var xs=R(`$ZodCustom`,(e,t)=>{qa.init(e,t),U.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Ss(t,n,r,e));Ss(i,n,r,e)}});function Ss(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Xi(e))}}var Cs,ws=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Ts(){return new ws}(Cs=globalThis).__zod_globalRegistry??(Cs.__zod_globalRegistry=Ts());var Es=globalThis.__zod_globalRegistry;function Ds(e,t){return new e({type:`string`,...V(t)})}function Os(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...V(t)})}function ks(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...V(t)})}function As(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...V(t)})}function js(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...V(t)})}function Ms(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...V(t)})}function Ns(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...V(t)})}function Ps(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...V(t)})}function Fs(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...V(t)})}function Is(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...V(t)})}function Ls(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...V(t)})}function Rs(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...V(t)})}function zs(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...V(t)})}function Bs(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...V(t)})}function Vs(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...V(t)})}function Hs(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...V(t)})}function Us(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...V(t)})}function Ws(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...V(t)})}function Gs(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...V(t)})}function Ks(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...V(t)})}function qs(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...V(t)})}function Js(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...V(t)})}function Ys(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...V(t)})}function Xs(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...V(t)})}function Zs(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...V(t)})}function Qs(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...V(t)})}function $s(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...V(t)})}function ec(e,t){return new e({type:`number`,checks:[],...V(t)})}function tc(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...V(t)})}function nc(e,t){return new e({type:`boolean`,...V(t)})}function rc(e){return new e({type:`unknown`})}function ic(e,t){return new e({type:`never`,...V(t)})}function ac(e,t){return new Ya({check:`less_than`,...V(t),value:e,inclusive:!1})}function oc(e,t){return new Ya({check:`less_than`,...V(t),value:e,inclusive:!0})}function sc(e,t){return new Xa({check:`greater_than`,...V(t),value:e,inclusive:!1})}function cc(e,t){return new Xa({check:`greater_than`,...V(t),value:e,inclusive:!0})}function lc(e,t){return new Za({check:`multiple_of`,...V(t),value:e})}function uc(e,t){return new $a({check:`max_length`,...V(t),maximum:e})}function dc(e,t){return new eo({check:`min_length`,...V(t),minimum:e})}function fc(e,t){return new to({check:`length_equals`,...V(t),length:e})}function pc(e,t){return new ro({check:`string_format`,format:`regex`,...V(t),pattern:e})}function mc(e){return new io({check:`string_format`,format:`lowercase`,...V(e)})}function hc(e){return new ao({check:`string_format`,format:`uppercase`,...V(e)})}function gc(e,t){return new oo({check:`string_format`,format:`includes`,...V(t),includes:e})}function _c(e,t){return new so({check:`string_format`,format:`starts_with`,...V(t),prefix:e})}function vc(e,t){return new co({check:`string_format`,format:`ends_with`,...V(t),suffix:e})}function yc(e){return new lo({check:`overwrite`,tx:e})}function bc(e){return yc(t=>t.normalize(e))}function xc(){return yc(e=>e.trim())}function Sc(){return yc(e=>e.toLowerCase())}function Cc(){return yc(e=>e.toUpperCase())}function wc(){return yc(e=>Di(e))}function Tc(e,t,n){return new e({type:`array`,element:t,...V(n)})}function Ec(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...V(n)})}function Dc(e,t){let n=Oc(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Xi(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Xi(r))}},e(t.value,t)),t);return n}function Oc(e,t){let n=new qa({check:`custom`,...V(t)});return n._zod.check=e,n}function kc(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??Es,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 Ac(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Ac(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&Nc(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function jc(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>\n\nSet the \\`cycles\\` parameter to \\`"ref"\\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Mc(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[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 n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Fc(t,`input`,e.processors),output:Fc(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Nc(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Nc(r.element,n);if(r.type===`set`)return Nc(r.valueType,n);if(r.type===`lazy`)return Nc(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return Nc(r.innerType,n);if(r.type===`intersection`)return Nc(r.left,n)||Nc(r.right,n);if(r.type===`record`||r.type===`map`)return Nc(r.keyType,n)||Nc(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Nc(r.in,n)||Nc(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Nc(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Nc(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Nc(e,n))return!0;return!!(r.rest&&Nc(r.rest,n))}return!1}var Pc=(e,t={})=>n=>{let r=kc({...n,processors:t});return Ac(e,r),jc(r,e),Mc(r,e)},Fc=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=kc({...i??{},target:a,io:t,processors:n});return Ac(e,o),jc(o,e),Mc(o,e)},Ic={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Lc=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Ic[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Rc=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},zc=(e,t,n,r)=>{n.type=`boolean`},Bc=(e,t,n,r)=>{n.not={}},Vc=(e,t,n,r)=>{let i=e._zod.def,a=_i(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Hc=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},Uc=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Wc=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Gc=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Ac(a.element,t,{...r,path:[...r.path,`items`]})},Kc=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Ac(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Ac(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},qc=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Ac(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Jc=(e,t,n,r)=>{let i=e._zod.def,a=Ac(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Ac(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Yc=(e,t,n,r)=>{let i=e._zod.def,a=Ac(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Xc=(e,t,n,r)=>{let i=e._zod.def;Ac(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Zc=(e,t,n,r)=>{let i=e._zod.def;Ac(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Qc=(e,t,n,r)=>{let i=e._zod.def;Ac(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},$c=(e,t,n,r)=>{let i=e._zod.def;Ac(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},el=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Ac(o,t,r);let s=t.seen.get(e);s.ref=o},tl=(e,t,n,r)=>{let i=e._zod.def;Ac(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},nl=(e,t,n,r)=>{let i=e._zod.def;Ac(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},rl=R(`ZodISODateTime`,(e,t)=>{To.init(e,t),kl.init(e,t)});function il(e){return Xs(rl,e)}var al=R(`ZodISODate`,(e,t)=>{Eo.init(e,t),kl.init(e,t)});function ol(e){return Zs(al,e)}var sl=R(`ZodISOTime`,(e,t)=>{Do.init(e,t),kl.init(e,t)});function cl(e){return Qs(sl,e)}var ll=R(`ZodISODuration`,(e,t)=>{Oo.init(e,t),kl.init(e,t)});function ul(e){return $s(ll,e)}var dl=R(`ZodError`,(e,t)=>{Qi.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>ta(e,t)},flatten:{value:t=>ea(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,vi,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,vi,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),fl=na(dl),pl=ra(dl),ml=ia(dl),hl=oa(dl),gl=ca(dl),_l=la(dl),vl=ua(dl),yl=da(dl),bl=fa(dl),xl=pa(dl),Sl=ma(dl),Cl=ha(dl),wl=new WeakMap;function Tl(e,t,n){let r=Object.getPrototypeOf(e),i=wl.get(r);if(i||(i=new Set,wl.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var El=R(`ZodType`,(e,t)=>(U.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Fc(e,`input`),output:Fc(e,`output`)}}),e.toJSONSchema=Pc(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>fl(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>ml(e,t,n),e.parseAsync=async(t,n)=>pl(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>hl(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>gl(e,t,n),e.decode=(t,n)=>_l(e,t,n),e.encodeAsync=async(t,n)=>vl(e,t,n),e.decodeAsync=async(t,n)=>yl(e,t,n),e.safeEncode=(t,n)=>bl(e,t,n),e.safeDecode=(t,n)=>xl(e,t,n),e.safeEncodeAsync=async(t,n)=>Sl(e,t,n),e.safeDecodeAsync=async(t,n)=>Cl(e,t,n),Tl(e,`ZodType`,{check(...e){let t=this.def;return this.clone(Ti(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Pi(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Nu(e,t))},superRefine(e,t){return this.check(Pu(e,t))},overwrite(e){return this.check(yc(e))},optional(){return hu(this)},exactOptional(){return _u(this)},nullable(){return yu(this)},nullish(){return hu(yu(this))},nonoptional(e){return Tu(this,e)},array(){return X(this)},or(e){return ru([this,e])},and(e){return su(this,e)},transform(e){return ku(this,pu(e))},default(e){return xu(this,e)},prefault(e){return Cu(this,e)},catch(e){return Du(this,e)},pipe(e){return ku(this,e)},readonly(){return ju(this)},describe(e){let t=this.clone();return Es.add(t,{description:e}),t},meta(...e){if(e.length===0)return Es.get(this);let t=this.clone();return Es.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return Es.get(e)?.description},configurable:!0}),e)),Dl=R(`_ZodString`,(e,t)=>{fo.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lc(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Tl(e,`_ZodString`,{regex(...e){return this.check(pc(...e))},includes(...e){return this.check(gc(...e))},startsWith(...e){return this.check(_c(...e))},endsWith(...e){return this.check(vc(...e))},min(...e){return this.check(dc(...e))},max(...e){return this.check(uc(...e))},length(...e){return this.check(fc(...e))},nonempty(...e){return this.check(dc(1,...e))},lowercase(e){return this.check(mc(e))},uppercase(e){return this.check(hc(e))},trim(){return this.check(xc())},normalize(...e){return this.check(bc(...e))},toLowerCase(){return this.check(Sc())},toUpperCase(){return this.check(Cc())},slugify(){return this.check(wc())}})}),Ol=R(`ZodString`,(e,t)=>{fo.init(e,t),Dl.init(e,t),e.email=t=>e.check(Os(Al,t)),e.url=t=>e.check(Ps(Nl,t)),e.jwt=t=>e.check(Ys(Gl,t)),e.emoji=t=>e.check(Fs(Pl,t)),e.guid=t=>e.check(ks(jl,t)),e.uuid=t=>e.check(As(Ml,t)),e.uuidv4=t=>e.check(js(Ml,t)),e.uuidv6=t=>e.check(Ms(Ml,t)),e.uuidv7=t=>e.check(Ns(Ml,t)),e.nanoid=t=>e.check(Is(Fl,t)),e.guid=t=>e.check(ks(jl,t)),e.cuid=t=>e.check(Ls(Il,t)),e.cuid2=t=>e.check(Rs(Ll,t)),e.ulid=t=>e.check(zs(Rl,t)),e.base64=t=>e.check(Ks(Hl,t)),e.base64url=t=>e.check(qs(Ul,t)),e.xid=t=>e.check(Bs(zl,t)),e.ksuid=t=>e.check(Vs(G,t)),e.ipv4=t=>e.check(Hs(Bl,t)),e.ipv6=t=>e.check(Us(K,t)),e.cidrv4=t=>e.check(Ws(q,t)),e.cidrv6=t=>e.check(Gs(Vl,t)),e.e164=t=>e.check(Js(Wl,t)),e.datetime=t=>e.check(il(t)),e.date=t=>e.check(ol(t)),e.time=t=>e.check(cl(t)),e.duration=t=>e.check(ul(t))});function W(e){return Ds(Ol,e)}var kl=R(`ZodStringFormat`,(e,t)=>{po.init(e,t),Dl.init(e,t)}),Al=R(`ZodEmail`,(e,t)=>{go.init(e,t),kl.init(e,t)}),jl=R(`ZodGUID`,(e,t)=>{mo.init(e,t),kl.init(e,t)}),Ml=R(`ZodUUID`,(e,t)=>{ho.init(e,t),kl.init(e,t)}),Nl=R(`ZodURL`,(e,t)=>{_o.init(e,t),kl.init(e,t)}),Pl=R(`ZodEmoji`,(e,t)=>{vo.init(e,t),kl.init(e,t)}),Fl=R(`ZodNanoID`,(e,t)=>{yo.init(e,t),kl.init(e,t)}),Il=R(`ZodCUID`,(e,t)=>{bo.init(e,t),kl.init(e,t)}),Ll=R(`ZodCUID2`,(e,t)=>{xo.init(e,t),kl.init(e,t)}),Rl=R(`ZodULID`,(e,t)=>{So.init(e,t),kl.init(e,t)}),zl=R(`ZodXID`,(e,t)=>{Co.init(e,t),kl.init(e,t)}),G=R(`ZodKSUID`,(e,t)=>{wo.init(e,t),kl.init(e,t)}),Bl=R(`ZodIPv4`,(e,t)=>{ko.init(e,t),kl.init(e,t)}),K=R(`ZodIPv6`,(e,t)=>{Ao.init(e,t),kl.init(e,t)}),q=R(`ZodCIDRv4`,(e,t)=>{jo.init(e,t),kl.init(e,t)}),Vl=R(`ZodCIDRv6`,(e,t)=>{Mo.init(e,t),kl.init(e,t)}),Hl=R(`ZodBase64`,(e,t)=>{Po.init(e,t),kl.init(e,t)}),Ul=R(`ZodBase64URL`,(e,t)=>{Io.init(e,t),kl.init(e,t)}),Wl=R(`ZodE164`,(e,t)=>{Lo.init(e,t),kl.init(e,t)}),Gl=R(`ZodJWT`,(e,t)=>{zo.init(e,t),kl.init(e,t)}),Kl=R(`ZodNumber`,(e,t)=>{Bo.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rc(e,t,n,r),Tl(e,`ZodNumber`,{gt(e,t){return this.check(sc(e,t))},gte(e,t){return this.check(cc(e,t))},min(e,t){return this.check(cc(e,t))},lt(e,t){return this.check(ac(e,t))},lte(e,t){return this.check(oc(e,t))},max(e,t){return this.check(oc(e,t))},int(e){return this.check(Jl(e))},safe(e){return this.check(Jl(e))},positive(e){return this.check(sc(0,e))},nonnegative(e){return this.check(cc(0,e))},negative(e){return this.check(ac(0,e))},nonpositive(e){return this.check(oc(0,e))},multipleOf(e,t){return this.check(lc(e,t))},step(e,t){return this.check(lc(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function J(e){return ec(Kl,e)}var ql=R(`ZodNumberFormat`,(e,t)=>{Vo.init(e,t),Kl.init(e,t)});function Jl(e){return tc(ql,e)}var Yl=R(`ZodBoolean`,(e,t)=>{Ho.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zc(e,t,n,r)});function Y(e){return nc(Yl,e)}var Xl=R(`ZodUnknown`,(e,t)=>{Uo.init(e,t),El.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Zl(){return rc(Xl)}var Ql=R(`ZodNever`,(e,t)=>{Wo.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bc(e,t,n,r)});function $l(e){return ic(Ql,e)}var eu=R(`ZodArray`,(e,t)=>{Ko.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gc(e,t,n,r),e.element=t.element,Tl(e,`ZodArray`,{min(e,t){return this.check(dc(e,t))},nonempty(e){return this.check(dc(1,e))},max(e,t){return this.check(uc(e,t))},length(e,t){return this.check(fc(e,t))},unwrap(){return this.element}})});function X(e,t){return Tc(eu,e,t)}var tu=R(`ZodObject`,(e,t)=>{Zo.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kc(e,t,n,r),z(e,`shape`,()=>t.shape),Tl(e,`ZodObject`,{keyof(){return lu(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:Zl()})},loose(){return this.clone({...this._zod.def,catchall:Zl()})},strict(){return this.clone({...this._zod.def,catchall:$l()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return zi(this,e)},safeExtend(e){return Bi(this,e)},merge(e){return Vi(this,e)},pick(e){return Li(this,e)},omit(e){return Ri(this,e)},partial(...e){return Hi(mu,this,e[0])},required(...e){return Ui(wu,this,e[0])}})});function Z(e,t){return new tu({type:`object`,shape:e??{},...V(t)})}var nu=R(`ZodUnion`,(e,t)=>{$o.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qc(e,t,n,r),e.options=t.options});function ru(e,t){return new nu({type:`union`,options:e,...V(t)})}var iu=R(`ZodDiscriminatedUnion`,(e,t)=>{nu.init(e,t),es.init(e,t)});function au(e,t,n){return new iu({type:`union`,options:t,discriminator:e,...V(n)})}var ou=R(`ZodIntersection`,(e,t)=>{ts.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jc(e,t,n,r)});function su(e,t){return new ou({type:`intersection`,left:e,right:t})}var cu=R(`ZodEnum`,(e,t)=>{is.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vc(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new cu({...t,checks:[],...V(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new cu({...t,checks:[],...V(r),entries:i})}});function lu(e,t){return new cu({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...V(t)})}var uu=R(`ZodLiteral`,(e,t)=>{as.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hc(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function du(e,t){return new uu({type:`literal`,values:Array.isArray(e)?e:[e],...V(t)})}var fu=R(`ZodTransform`,(e,t)=>{os.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wc(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new mi(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Xi(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Xi(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function pu(e){return new fu({type:`transform`,transform:e})}var mu=R(`ZodOptional`,(e,t)=>{cs.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function hu(e){return new mu({type:`optional`,innerType:e})}var gu=R(`ZodExactOptional`,(e,t)=>{ls.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function _u(e){return new gu({type:`optional`,innerType:e})}var vu=R(`ZodNullable`,(e,t)=>{us.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yc(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function yu(e){return new vu({type:`nullable`,innerType:e})}var bu=R(`ZodDefault`,(e,t)=>{ds.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zc(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function xu(e,t){return new bu({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Mi(t)}})}var Su=R(`ZodPrefault`,(e,t)=>{ps.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qc(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Cu(e,t){return new Su({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Mi(t)}})}var wu=R(`ZodNonOptional`,(e,t)=>{ms.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xc(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Tu(e,t){return new wu({type:`nonoptional`,innerType:e,...V(t)})}var Eu=R(`ZodCatch`,(e,t)=>{gs.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$c(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Du(e,t){return new Eu({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Ou=R(`ZodPipe`,(e,t)=>{_s.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>el(e,t,n,r),e.in=t.in,e.out=t.out});function ku(e,t){return new Ou({type:`pipe`,in:e,out:t})}var Au=R(`ZodReadonly`,(e,t)=>{ys.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ju(e){return new Au({type:`readonly`,innerType:e})}var Mu=R(`ZodCustom`,(e,t)=>{xs.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uc(e,t,n,r)});function Nu(e,t={}){return Ec(Mu,e,t)}function Pu(e,t){return Dc(e,t)}Z({file:W(),format:W(),phase:W(),type:W().default(``),title:W().default(``),sprint:W().default(``),story:W().default(``),assignee:W().default(``),branches:X(W()).default([]),waves:X(Z({name:W().default(``),branches:X(Z({branch:W(),deferred:Y().default(!1),claimed:W().default(``)})).default([])})).default([]),prs:X(J()).default([]),review:W().default(`NONE`),impl:W().default(`NONE`),approved_raw:W().default(``),released_raw:W().default(``),delivered_raw:W().default(``),started_raw:X(W()).default([]),rounds:J().optional(),error:W().optional()});var Fu=[`Discovery`,`Design`,`Development`,`Endgame`,`Released`],Iu={Discovery:{icon:`\u{1F464}`,who:`human-led`},Design:{icon:`\u{1F464}`,who:`human-led`},Development:{icon:`\u{1F916}`,who:`agent-led`},Endgame:{icon:`\u{1F464}`,who:`human-led`},Released:{icon:`\u2713`,who:`done`}},Lu=Z({waves:J(),branches:J(),claimed:J().optional(),eligible:J().optional(),deferred:J()}),Ru=Z({number:J(),url:W().default(``)}),zu=Z({slug:W(),title:W(),type:W(),phase:lu(Fu),sprint:W().optional(),story:W().optional(),assignee:W().optional(),started:Y().optional(),rounds:J().optional(),path:W(),prs:X(Ru).default([]),waveSummary:Lu.optional(),worktrees:X(Z({branch:W(),path:W()})).optional(),hasDispatchLog:Y().optional(),phaseDate:W().default(``)}),Bu=Z({phase:lu(Fu),cards:X(zu)}),Vu=Z({slug:W(),title:W(),phase:W()}),Hu=Z({slug:W(),title:W(),status:W(),path:W().default(``)}),Uu=Z({available:Y(),reason:W().default(``)}),Wu=Z({restartCommand:W().default(``),port:J().default(0)});Z({generatedAt:W(),columns:X(Bu),dispatch:Uu.default({available:!1,reason:``}),server:Wu.default({restartCommand:``,port:0}),approve:Uu.default({available:!1,reason:``}),continue:Uu.default({available:!1,reason:``}),idea:Uu.default({available:!1,reason:``}),commission:Uu.default({available:!1,reason:``}),checklist:Z({done:J(),total:J()}).nullable(),sprints:X(Vu),stories:X(Hu)});var Gu=lu([`open`,`wip`,`merged`,`claimed`,`deferred`]),Ku=lu([`complete`,`eligible`,`blocked`]),qu=lu([`running`,`finished`,`failed`,`ended`,`none`,`elsewhere`,`waiting`,`stalled`]),Ju=lu([`you`,`click`,`time`]),Yu=Z({branch:W(),state:Gu,deferred:Y(),claimed:W(),local_dirty:Y().default(!1),local_locked:Y().default(!1),local_worktree:W().default(``),held:Y().default(!1),local_ahead:J().default(0),worker:qu.default(`elsewhere`),worker_pid:W().default(``),worker_exit:W().default(``),worker_dirty_paths:X(W()).default([]),conflicts:X(W()).default([]),conflicts_known:Y().default(!1),changed_paths:X(W()).default([])}),Xu=Z({name:W(),verdict:Ku,branches:X(Yu)}),Zu=Z({file:W(),phase:W().default(``),waves:X(Xu)}),Qu=Z({main:W(),head:W(),read_ref:W().optional(),local_head:W().optional(),plans:X(Zu),summary:Z({plans:J(),waves:J(),branches:J(),claimed:J(),eligible:J(),blocked:J(),deferred:J()})});au(`kind`,[Z({kind:du(`plan`),plan:Zu}),Z({kind:du(`pulse`),pulse:Qu})]);var $u=lu([`waiting-on-you`,`working`,`waiting-on-machine`,`quiet`,`not-started`,`done`]),ed=Z({state:lu([`artifact-conflict`,`conflict`,`unpushed`,`ci-failing`]),conflicts:X(W()).default([]),localAhead:J().default(0),changedPaths:X(W()).default([]),failingChecks:X(W()).default([]),runHistory:X(Z({workflow:W().default(``),conclusion:W().default(``),startedAt:W().default(``),url:W().default(``)})).default([])}),td=Z({branch:W(),state:lu([`running`,`finished`]),outcome:lu([`pushed`,`abandoned`,`refused`]).or(du(``)).default(``),reason:W().default(``),at:J().default(0),log:W().default(``)}),nd=Z({origin:lu([`host`,`local`]),evidence:W().default(``),pid:W().default(``)}),rd=Z({repo:W(),branch:W(),plan:W(),planFile:W().default(``),wave:W(),state:Gu,phase:lu(Fu).nullable().default(null),group:$u,ageMinutes:J().nullable(),note:W(),pr:Z({number:J(),url:W().default(``),draft:Y().default(!1),state:lu([`green`,`pending`,`failing`,`none`,`conflicts`,`unknown`]).default(`unknown`)}).nullable().default(null),branchUrl:W().default(``),waitingDays:J().nullable().default(null),localDirty:Y().default(!1),localLocked:Y().default(!1),localAhead:J().default(0),waitingOn:Ju.nullable().default(null),blockedBy:W().nullable().default(null),verdict:Ku.nullable().default(null),stuck:ed.nullable().default(null),repair:td.nullable().default(null),worker:qu.default(`elsewhere`),processes:X(nd).default([])}),id=Z({plans:X(W()),branches:X(W()),previousAt:J()}),ad=Z({number:J(),title:W(),url:W().default(``),ageMinutes:J().nullable().default(null)}),od=lu([`answered`,`unsupported`,`failed`]);Z({generatedAt:W(),ageSeconds:J(),readRef:W().nullable().default(null),readRefAge:J().nullable().default(null),localHead:W().nullable().default(null),ready:Y(),complete:Y().default(!0),error:W().nullable(),shrink:id.nullable().default(null),rows:X(rd),summary:Qu.shape.summary,stuck:Z({stuck:J(),artifact:J(),conflict:J(),unpushed:J(),ci:J()}).default({stuck:0,artifact:0,conflict:0,unpushed:0,ci:0}),prAgeSeconds:J().nullable(),prNextInSeconds:J().nullable().default(null),scanNextInSeconds:J().nullable().default(null),prError:W().nullable(),issues:X(ad).default([]),issueAnswer:od.default(`unsupported`),issueError:W().nullable().default(null)});var sd=lu([`abandoned`,`unfinished`,`question`,`ci-approval`,`ci-failing`,`conflict`,`review`,`unpushed`,`eligible`]),cd=Z({branch:W().default(``),verdict:sd,action:W(),evidence:W(),pr:J().nullable().default(null),planFile:W().default(``),note:W().default(``)}),ld=Z({branch:W(),plan:W(),wave:W(),brief:W(),briefExists:Y().default(!1),waitingDays:J().nullable().default(null)});Z({generatedAt:W(),ready:Y(),ageSeconds:J().nullable().default(null),readRef:W().nullable().default(null),error:W().nullable().default(null),needsAgent:X(cd).default([]),needsHuman:X(cd).default([]),waiting:X(cd).default([]),claimable:X(ld).default([])}),Z({slug:W(),claimed:Y(),branch:W().nullable().default(null),worktree:W().nullable().default(null),reason:W(),summary:W().default(``)});var ud=lu([`approve`]);Z({slug:W(),transition:ud,applied:Y(),phase:W().nullable().default(null),reason:W()});var dd=`__no_sprint__`,fd=`__no_story__`;function pd(e,t,n,r){return e.map(e=>({...e,count:t.filter(t=>e.value===r?!t[n]:t[n]===e.value).length}))}function md(e){let t=new Map;for(let n of e?.sprints??[])t.set(n.slug,n.title);for(let n of e?.columns??[])for(let e of n.cards)e.sprint&&!t.has(e.sprint)&&t.set(e.sprint,e.sprint);return[...t.entries()].sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>({value:e,label:t}))}function hd(e,t){let n=new Set(t.map(e=>e.value));return e.filter(e=>n.has(e))}function gd(e){let t=new URLSearchParams(window.location.search).get(e);return t?t.split(`,`).map(e=>e.trim()).filter(Boolean):[]}function _d(e,t){let n=new URL(window.location.href);t.length?n.searchParams.set(e,t.join(`,`)):n.searchParams.delete(e),history.replaceState(null,``,n.toString())}function vd(e,t,n,r){if(t.length===0)return!0;let i=e[n];return i?t.includes(i):t.includes(r)}function yd(e){if(!e.phaseDate)return-1/0;let t=Date.parse(`${e.phaseDate}T00:00:00Z`);return Number.isNaN(t)?-1/0:t}function Q(e,{limit:t=5,expanded:n=!1,highlight:r=``}={}){let i=[...e].sort((e,t)=>yd(t)-yd(e));if(n||i.length<=t)return{visible:i,hidden:0,total:i.length};let a=i.slice(0,t),o=r&&i.some(e=>e.slug===r)&&!a.some(e=>e.slug===r)?i.find(e=>e.slug===r):void 0;return o&&a.push(o),{visible:a,hidden:i.length-a.length,total:i.length}}function bd({board:e,sprintSel:t,storySel:n,pulse:r,onStarting:i,onOpenPlan:a,onOpenStory:o,highlight:s=``}){let c=t.length===0,l=n.length===0,[u,d]=(0,y.useState)({}),f=e=>d(t=>({...t,[e]:!t[e]})),p=new Map(e.stories.map(e=>[e.slug,e]));return(0,x.jsx)(`div`,{className:`grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5`,children:e.columns.map(d=>{let m=Q(d.cards.filter(e=>vd(e,t,`sprint`,`__no_sprint__`)&&vd(e,n,`story`,`__no_story__`)),{expanded:u[d.phase],highlight:s});return(0,x.jsxs)(`section`,{className:`flex flex-col rounded-lg bg-slate-100/70 p-3 dark:bg-slate-900/50`,children:[(0,x.jsxs)(`header`,{className:`mb-3 flex items-center justify-between gap-2`,children:[(0,x.jsxs)(`h2`,{className:`flex min-w-0 items-baseline gap-1.5 text-sm font-semibold uppercase tracking-wide text-slate-600 dark:text-slate-300`,title:`${d.phase} \u2014 ${Iu[d.phase].who}`,children:[(0,x.jsx)(`span`,{"aria-hidden":!0,children:Iu[d.phase].icon}),(0,x.jsx)(`span`,{className:`truncate`,children:d.phase})]}),(0,x.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1`,children:[d.phase===`Endgame`&&e.checklist&&(0,x.jsxs)(`span`,{className:`rounded-full bg-violet-100 px-2 py-0.5 text-xs font-medium text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`,title:`Release checklist`,children:[`\u2611 `,e.checklist.done,`/`,e.checklist.total]}),(0,x.jsx)(`span`,{className:`rounded-full bg-slate-200 px-2 py-0.5 text-xs font-medium text-slate-600 dark:bg-slate-800 dark:text-slate-300`,title:m.hidden>0?`${m.total} plans \u2014 ${m.hidden} hidden`:`${m.total} plans`,children:m.total})]})]}),(0,x.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[m.total>0?m.visible.map(t=>(0,x.jsx)(en,{card:t,showSprint:c,showStory:l,dispatch:e.dispatch,approve:e.approve,pulse:r,onStarting:i,onOpen:a,story:t.story?p.get(t.story):void 0,onOpenStory:o,highlighted:t.slug===s},t.path)):(0,x.jsx)(`p`,{className:`px-1 py-4 text-center text-xs text-slate-400 dark:text-slate-600`,children:`No plans in this phase.`}),(m.hidden>0||u[d.phase])&&m.total>5&&(0,x.jsx)(`button`,{type:`button`,onClick:()=>f(d.phase),"aria-expanded":m.hidden===0,className:`rounded-md border border-dashed border-slate-300 px-2 py-1.5 text-xs font-medium text-slate-500 hover:border-slate-400 hover:text-slate-700 dark:border-slate-700 dark:text-slate-400 dark:hover:border-slate-600 dark:hover:text-slate-200`,children:m.hidden>0?`Show ${m.hidden} older`:`Show the 5 most recent`})]})]},d.phase)})})}var xd=Fu;function Sd(e,t){let n=t.map(t=>({key:t.slug,title:t.title||t.slug,subtitle:t.status?`${t.slug} \xB7 ${t.status}`:t.slug,cards:e.filter(e=>e.story===t.slug),story:t})),r=new Set(t.map(e=>e.slug)),i=new Map;for(let t of e){if(!t.story||r.has(t.story))continue;let e=i.get(t.story)??[];e.push(t),i.set(t.story,e)}for(let[e,t]of i)n.push({key:e,title:e,subtitle:`no story file`,cards:t});let a=e.filter(e=>!e.story);return a.length>0&&n.push({key:`__none__`,title:`(no story)`,subtitle:`plans created directly`,cards:a}),n}function Cd({board:e,sprintSel:t,storySel:n,pulse:r,onStarting:i,onOpenPlan:a,onOpenStory:o,highlight:s=``}){let c=t.length===0,l=Sd(e.columns.flatMap(e=>e.cards).filter(e=>vd(e,t,`sprint`,`__no_sprint__`)&&vd(e,n,`story`,`__no_story__`)),e.stories),u=xd;return(0,x.jsx)(`div`,{className:`overflow-x-auto`,children:(0,x.jsxs)(`div`,{className:`min-w-[900px]`,children:[(0,x.jsxs)(`div`,{className:`mb-2 grid gap-3 border-b border-slate-200 pb-2 dark:border-slate-800`,style:{gridTemplateColumns:`14rem repeat(${u.length}, minmax(0, 1fr))`},children:[(0,x.jsx)(`div`,{className:`text-xs font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400`,children:`Story`}),u.map(e=>(0,x.jsxs)(`div`,{className:`flex items-baseline gap-1.5 text-xs font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400`,title:`${e} \u2014 ${Iu[e].who}`,children:[(0,x.jsx)(`span`,{"aria-hidden":!0,children:Iu[e].icon}),e]},e))]}),l.length===0?(0,x.jsx)(`p`,{className:`py-8 text-center text-sm text-slate-400 dark:text-slate-600`,children:`No stories yet \u2014 plans without one appear here once they exist.`}):l.map(t=>(0,x.jsxs)(`div`,{id:`story-${t.key}`,className:`mb-3 grid scroll-mt-4 gap-3 border-b border-slate-100 pb-3 last:border-0 dark:border-slate-900`,style:{gridTemplateColumns:`14rem repeat(${u.length}, minmax(0, 1fr))`},children:[(0,x.jsxs)(`div`,{className:`pr-2`,children:[(0,x.jsx)(`div`,{className:`text-sm font-medium leading-snug text-slate-800 dark:text-slate-200`,children:o&&t.story&&Ht(t.story)?(0,x.jsx)(`a`,{href:Ht(t.story),onClick:e=>{e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button!==0||(e.preventDefault(),o(t.story))},className:`hover:underline`,title:`Open the ${t.story.slug} story`,children:t.title}):t.title}),(0,x.jsx)(`div`,{className:`mt-0.5 font-mono text-[11px] text-slate-400 dark:text-slate-600`,children:t.subtitle}),(0,x.jsx)(`div`,{className:`mt-1 text-xs text-slate-500 dark:text-slate-500`,children:t.cards.length===0?`no plans yet`:`${t.cards.length} plan${t.cards.length===1?``:`s`}`})]}),u.map(n=>(0,x.jsx)(`div`,{className:`flex max-h-72 flex-col gap-2 overflow-y-auto pr-0.5`,children:t.cards.filter(e=>e.phase===n).map(t=>(0,x.jsx)(en,{card:t,showSprint:c,showStory:!1,dispatch:e.dispatch,approve:e.approve,pulse:r,onStarting:i,onOpen:a,highlighted:t.slug===s},t.path))},n))]},t.key))]})})}function wd({label:e,ariaLabel:t,href:n,frameTitle:r,onShowInBoard:i,onClose:a,children:o}){let s=`${n}?embed=1`,[c,l]=(0,y.useState)(null),[u,d]=(0,y.useState)(null);return(0,y.useEffect)(()=>{let e=!1;return l(null),d(null),fetch(s).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.text()}).then(t=>{e||l(t)}).catch(t=>{e||d(t instanceof Error?t.message:String(t))}),()=>{e=!0}},[s]),(0,y.useEffect)(()=>{let e=e=>{e.key===`Escape`&&a()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),(0,x.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-label":t,className:`fixed inset-0 z-50 flex items-center justify-center p-4`,onClick:a,children:[(0,x.jsx)(`div`,{className:`absolute inset-0 bg-black/50`,"aria-hidden":!0}),(0,x.jsxs)(`div`,{className:`relative flex max-h-[90vh] w-full max-w-3xl flex-col overflow-hidden rounded-lg bg-white shadow-xl dark:bg-slate-900`,onClick:e=>e.stopPropagation(),children:[(0,x.jsxs)(`header`,{className:`flex items-center gap-2 border-b border-slate-200 px-4 py-3 dark:border-slate-700`,children:[(0,x.jsx)(`h2`,{className:`mr-auto truncate text-sm font-semibold text-slate-900 dark:text-slate-100`,children:e}),i&&(0,x.jsx)(`button`,{type:`button`,onClick:i,className:`shrink-0 rounded-md border border-slate-300 px-3 py-1.5 text-sm text-slate-700 hover:bg-slate-50 dark:border-slate-700 dark:text-slate-200 dark:hover:bg-slate-800`,children:`Show in board`}),(0,x.jsx)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,className:`shrink-0 rounded-md border border-slate-300 px-3 py-1.5 text-sm text-slate-700 hover:bg-slate-50 dark:border-slate-700 dark:text-slate-200 dark:hover:bg-slate-800`,children:`Open in new tab`}),(0,x.jsx)(`button`,{type:`button`,onClick:a,className:`shrink-0 rounded-md px-3 py-1.5 text-sm text-slate-500 hover:bg-slate-100 dark:text-slate-400 dark:hover:bg-slate-800`,children:`Close`})]}),o,(0,x.jsx)(`div`,{className:`min-h-0 flex-1 bg-white dark:bg-slate-950`,children:u?(0,x.jsxs)(`p`,{className:`p-6 text-sm text-red-600 dark:text-red-400`,children:[`Failed to load `,e.toLowerCase(),`: `,u]}):c===null?(0,x.jsx)(`p`,{className:`p-6 text-sm text-slate-500`,children:`Loading\u2026`}):(0,x.jsx)(`iframe`,{title:r,srcDoc:c,sandbox:`allow-same-origin allow-popups`,className:`h-[70vh] w-full border-0`})})]})]})}function Td({card:e,story:t,onClose:n,onShowInBoard:r,onOpenStory:i}){let a=!!(i&&t&&Ht(t));return(0,x.jsxs)(wd,{label:`Plan`,ariaLabel:`Plan: ${e.title}`,href:Vt(e),frameTitle:`Plan: ${e.slug}`,onShowInBoard:r&&(()=>r(e)),onClose:n,children:[a&&t&&(0,x.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-slate-200 px-4 py-2 dark:border-slate-700`,children:[(0,x.jsx)(`span`,{className:`text-[11px] uppercase tracking-wide text-slate-500 dark:text-slate-400`,children:`Story`}),(0,x.jsx)(`span`,{className:`truncate text-xs text-slate-600 dark:text-slate-300`,children:t.title||t.slug}),(0,x.jsx)(`button`,{type:`button`,onClick:()=>i(t),className:`ml-auto shrink-0 rounded-md border border-slate-300 px-3 py-1 text-xs text-slate-700 hover:bg-slate-50 dark:border-slate-700 dark:text-slate-200 dark:hover:bg-slate-800`,children:`Open story`})]}),e.worktrees&&e.worktrees.length>0&&(0,x.jsxs)(`div`,{className:`border-b border-slate-200 px-4 py-2 dark:border-slate-700`,children:[(0,x.jsx)(`p`,{className:`mb-1 text-[11px] uppercase tracking-wide text-slate-500 dark:text-slate-400`,children:`Checked out on this machine`}),(0,x.jsx)(`ul`,{className:`space-y-1`,children:e.worktrees.map(e=>(0,x.jsxs)(`li`,{className:`flex items-baseline gap-2 text-xs`,children:[(0,x.jsx)(`span`,{className:`shrink-0 font-mono text-slate-500 dark:text-slate-400`,children:e.branch}),(0,x.jsx)(`input`,{readOnly:!0,value:e.path,onFocus:e=>e.currentTarget.select(),"aria-label":`Worktree path for ${e.branch}`,className:`min-w-0 flex-1 rounded border border-slate-200 bg-slate-50 px-2 py-1 font-mono text-[11px] text-slate-700 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-200`})]},e.branch))})]})]})}function Ed(e,t){let n=new Map(Fu.map((e,t)=>[e,t]));return e.filter(e=>e.story===t).slice().sort((e,t)=>(n.get(e.phase)??0)-(n.get(t.phase)??0))}function Dd({story:e,cards:t,onClose:n,onShowInBoard:r,onOpenPlan:i}){let a=Ed(t,e.slug);return(0,x.jsx)(wd,{label:`Story`,ariaLabel:`Story: ${e.title||e.slug}`,href:Ht(e),frameTitle:`Story: ${e.slug}`,onShowInBoard:r&&(()=>r(e)),onClose:n,children:(0,x.jsxs)(`div`,{className:`border-b border-slate-200 px-4 py-2 dark:border-slate-700`,children:[(0,x.jsx)(`p`,{className:`mb-1 text-[11px] uppercase tracking-wide text-slate-500 dark:text-slate-400`,children:`Plans in this story`}),a.length===0?(0,x.jsx)(`p`,{className:`text-xs text-slate-500 dark:text-slate-400`,children:`No plans yet.`}):(0,x.jsx)(`ul`,{className:`space-y-1`,children:a.map(e=>(0,x.jsxs)(`li`,{className:`flex items-baseline gap-2 text-xs`,children:[(0,x.jsx)(`span`,{className:`w-24 shrink-0 text-slate-500 dark:text-slate-400`,children:e.phase}),i?(0,x.jsx)(`button`,{type:`button`,onClick:()=>i(e),className:`min-w-0 truncate text-left text-blue-600 hover:underline dark:text-blue-400`,children:e.title}):(0,x.jsx)(`span`,{className:`min-w-0 truncate text-slate-700 dark:text-slate-200`,children:e.title})]},e.path))})]})})}var Od=`the board server is not answering \u2014 this would post to a server that is not there`;function kd({failures:e,server:t}){let n=t?.restartCommand??``,r=t?.port??0;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`div`,{"data-unreachable-scrim":!0,"aria-hidden":`true`,className:`pointer-events-auto fixed inset-0 z-40 bg-slate-100/70 backdrop-grayscale dark:bg-slate-950/70`}),(0,x.jsx)(`div`,{"data-unreachable-overlay":!0,role:`alert`,"aria-live":`assertive`,className:`pointer-events-none fixed inset-0 z-50 flex items-start justify-center p-4 pt-24`,children:(0,x.jsxs)(`div`,{className:`pointer-events-auto max-w-lg select-text rounded-lg border border-rose-300 bg-white px-5 py-4 shadow-lg dark:border-rose-800 dark:bg-slate-900`,children:[(0,x.jsxs)(`p`,{className:`text-sm font-semibold text-rose-800 dark:text-rose-300`,children:[`No contact with the board server for `,e,` polls`]}),(0,x.jsx)(`p`,{className:`mt-2 text-sm text-slate-700 dark:text-slate-300`,children:`Everything below is the last thing the server said. It is still readable, and it is no longer being checked \u2014 so the board\'s own controls are switched off until it answers again.`}),n&&(0,x.jsxs)(`p`,{className:`mt-3 text-sm text-slate-700 dark:text-slate-300`,children:[`Start it again with`,` `,(0,x.jsx)(`code`,{"data-restart-command":!0,className:`select-all rounded bg-slate-100 px-1.5 py-0.5 font-mono text-xs text-slate-900 dark:bg-slate-800 dark:text-slate-100`,children:n})]}),r>0&&(0,x.jsxs)(`p`,{className:`mt-2 text-xs text-slate-500 dark:text-slate-400`,children:[`This page is served from`,` `,(0,x.jsxs)(`span`,{"data-served-port":!0,className:`font-mono`,children:[`localhost:`,r]}),`. A board that comes back on a different port will not reach this tab \u2014 reload from its own address.`]})]})})]})}typeof window<`u`&&window.document&&window.document.createElement;function Ad(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)}}function jd(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Md(...e){return t=>{let n=!1,r=e.map(e=>{let r=jd(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():jd(e[t],null)}}}}function $(...e){return y.useCallback(Md(...e),e)}function Nd(e,t=[]){let n=[];function r(t,r){let i=y.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=y.useMemo(()=>o,Object.values(o));return(0,x.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=y.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\\`${n}\\` must be used within \\`${t}\\``)}return[o,s]}let i=()=>{let t=n.map(e=>y.createContext(e));return function(n){let r=n?.[e]||t;return y.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Pd(i,...t)]}function Pd(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var Fd=c(m(),1);function Id(e){let t=y.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Ud(r)&&typeof qd==`function`&&(r=qd(r._payload)),y.Children.forEach(r,e=>{if(Vd(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Ud(n)&&typeof qd==`function`&&(n=qd(n._payload)),a=Rd(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=y.cloneElement(a,void 0,s):!o&&y.Children.count(r)===1&&y.isValidElement(r)&&(a=r);let c=a?Bd(a):void 0,l=$(n,c);if(!a){if(r||r===0)throw Error(o?Kd(e):Gd(e));return r}let u=zd(i,a.props??{});return a.type!==y.Fragment&&(u.ref=n?l:c),y.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}var Ld=Symbol.for(`radix.slottable`),Rd=(e,t)=>{if(`child`in e.props){let t=e.props.child;return y.isValidElement(t)?y.cloneElement(t,void 0,e.props.children(t.props.children)):null}return y.isValidElement(t)?t:null};function zd(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Bd(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Vd(e){return y.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Ld}var Hd=Symbol.for(`react.lazy`);function Ud(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Hd&&`_payload`in e&&Wd(e._payload)}function Wd(e){return typeof e==`object`&&!!e&&`then`in e}var Gd=e=>`${e} failed to slot onto its children. Expected a single React element child or \\`Slottable\\`.`,Kd=e=>`${e} failed to slot onto its \\`Slottable\\`. Expected \\`Slottable\\` to receive a single React element child.`,qd=y.use,Jd=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Id(`Primitive.${t}`),r=y.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,x.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Yd(e,t){e&&Fd.flushSync(()=>e.dispatchEvent(t))}function Xd(e){let t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>((...e)=>t.current?.(...e)),[])}var Zd=`DismissableLayer`,Qd=`dismissableLayer.update`,$d=`dismissableLayer.pointerDownOutside`,ef=`dismissableLayer.focusOutside`,tf,nf=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),rf=y.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=y.useContext(nf),[d,f]=y.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=y.useState({}),h=$(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,b=d?g.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,C=b>=v,w=y.useRef(!1),T=cf(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:w,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:y.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return C&&!t},[u.branches,C])}),E=lf(e=>{if(r&&w.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),ee=d?b===g.length-1:!1,D=Xd(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return y.useEffect(()=>{if(ee)return p.addEventListener(`keydown`,D,{capture:!0}),()=>p.removeEventListener(`keydown`,D,{capture:!0})},[p,ee,D]),y.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(tf=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),uf(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=tf))}},[d,p,n,u]),y.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),uf())},[d,u]),y.useEffect(()=>{let e=()=>m({});return document.addEventListener(Qd,e),()=>document.removeEventListener(Qd,e)},[]),(0,x.jsx)(Jd.div,{...l,ref:h,style:{pointerEvents:S?C?`auto`:`none`:void 0,...e.style},onFocusCapture:Ad(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Ad(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Ad(e.onPointerDownCapture,T.onPointerDownCapture)})});rf.displayName=Zd;var af=`DismissableLayerBranch`,of=y.forwardRef((e,t)=>{let n=y.useContext(nf),r=y.useRef(null),i=$(t,r);return y.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,x.jsx)(Jd.div,{...e,ref:i})});of.displayName=af;var sf=()=>!0;function cf(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=sf}=t,s=Xd(e),c=y.useRef(!1),l=y.useRef(!1),u=y.useRef(new Map),d=y.useRef(()=>{});return y.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}function t(){return Array.from(u.current.values()).some(Boolean)}function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}function p(e){l.current&&u.current.set(e.type,!1)}let m=a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||df($d,s,p,{discrete:!0})};if(!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:()=>c.current=!0}}function lf(e,t=globalThis?.document){let n=Xd(e),r=y.useRef(!1);return y.useEffect(()=>{let e=e=>{e.target&&!r.current&&df(ef,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function uf(){let e=new CustomEvent(Qd);document.dispatchEvent(e)}function df(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Yd(i,a):i.dispatchEvent(a)}var ff=0,pf=null;function mf(){y.useEffect(()=>{pf||={start:hf(),end:hf()};let{start:e,end:t}=pf;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),ff++,()=>{ff===1&&(pf?.start.remove(),pf?.end.remove(),pf=null),ff=Math.max(0,ff-1)}},[])}function hf(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var gf=`focusScope.autoFocusOnMount`,_f=`focusScope.autoFocusOnUnmount`,vf={bubbles:!1,cancelable:!0},yf=`FocusScope`,bf=y.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=y.useState(null),l=Xd(i),u=Xd(a),d=y.useRef(null),f=$(t,c),p=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Df(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Df(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Df(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),y.useEffect(()=>{if(s){Of.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(gf,vf);s.addEventListener(gf,l),s.dispatchEvent(t),t.defaultPrevented||(xf(jf(Cf(s)),{select:!0}),document.activeElement===e&&Df(s))}return()=>{s.removeEventListener(gf,l),setTimeout(()=>{let t=new CustomEvent(_f,vf);s.addEventListener(_f,u),s.dispatchEvent(t),t.defaultPrevented||Df(e??document.body,{select:!0}),s.removeEventListener(_f,u),Of.remove(p)},0)}}},[s,l,u,p]);let m=y.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Sf(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Df(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Df(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,x.jsx)(Jd.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});bf.displayName=yf;function xf(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Df(r,{select:t}),document.activeElement!==n)return}function Sf(e){let t=Cf(e);return[wf(t,e),wf(t.reverse(),e)]}function Cf(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function wf(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Tf(r,{upTo:t})))return r}function Tf(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function Ef(e){return e instanceof HTMLInputElement&&`select`in e}function Df(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ef(e)&&t&&e.select()}}var Of=kf();function kf(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Af(e,t),e.unshift(t)},remove(t){e=Af(e,t),e[0]?.resume()}}}function Af(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function jf(e){return e.filter(e=>e.tagName!==`A`)}var Mf=globalThis?.document?y.useLayoutEffect:()=>{},Nf=y.useId||(()=>void 0),Pf=0;function Ff(e){let[t,n]=y.useState(Nf());return Mf(()=>{e||n(e=>e??String(Pf++))},[e]),e||(t?`radix-${t}`:``)}var If=[`top`,`right`,`bottom`,`left`],Lf=Math.min,Rf=Math.max,zf=Math.round,Bf=Math.floor,Vf=e=>({x:e,y:e}),Hf={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Uf(e,t,n){return Rf(e,Lf(t,n))}function Wf(e,t){return typeof e==`function`?e(t):e}function Gf(e){return e.split(`-`)[0]}function Kf(e){return e.split(`-`)[1]}function qf(e){return e===`x`?`y`:`x`}function Jf(e){return e===`y`?`height`:`width`}function Yf(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Xf(e){return qf(Yf(e))}function Zf(e,t,n){n===void 0&&(n=!1);let r=Kf(e),i=Xf(e),a=Jf(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=op(o)),[o,op(o)]}function Qf(e){let t=op(e);return[$f(e),t,$f(t)]}function $f(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ep=[`left`,`right`],tp=[`right`,`left`],np=[`top`,`bottom`],rp=[`bottom`,`top`];function ip(e,t,n){switch(e){case`top`:case`bottom`:return n?t?tp:ep:t?ep:tp;case`left`:case`right`:return t?np:rp;default:return[]}}function ap(e,t,n,r){let i=Kf(e),a=ip(Gf(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map($f)))),a}function op(e){let t=Gf(e);return Hf[t]+e.slice(t.length)}function sp(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function cp(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:sp(e)}function lp(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function up(e,t,n){let{reference:r,floating:i}=e,a=Yf(t),o=Xf(t),s=Jf(o),c=Gf(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Kf(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function dp(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Wf(t,e),p=cp(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=lp(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=lp(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var fp=50,pp=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:dp},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=up(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<fp&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=up(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},mp=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Wf(e,t)||{};if(l==null)return{};let d=cp(u),f={x:n,y:r},p=Xf(i),m=Jf(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Lf(d[_],T),ee=Lf(d[v],T),D=C-h[m]-ee,te=C/2-h[m]/2+w,O=Uf(E,te,D),k=!c.arrow&&Kf(i)!=null&&te!==O&&a.reference[m]/2-(te<E?E:ee)-h[m]/2<0,A=k?te<E?te-E:te-D:0;return{[p]:f[p]+A,data:{[p]:O,centerOffset:te-O-A,...k&&{alignmentOffset:A}},reset:k}}}),hp=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Wf(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Gf(r),_=Yf(o),v=Gf(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[op(o)]:Qf(o)),x=p!==`none`;!d&&x&&b.push(...ap(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Zf(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Yf(t))||T.every(e=>Yf(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Yf(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function gp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _p(e){return If.some(t=>e[t]>=0)}var vp=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Wf(e,t);switch(i){case`referenceHidden`:{let e=gp(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:_p(e)}}}case`escaped`:{let e=gp(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:_p(e)}}}default:return{}}}}},yp=new Set([`left`,`top`]);async function bp(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Gf(n),s=Kf(n),c=Yf(n)===`y`,l=yp.has(o)?-1:1,u=a&&c?-1:1,d=Wf(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var xp=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await bp(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Sp=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Wf(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Yf(i),p=qf(f),m=u[p],h=u[f],g=(e,t)=>Uf(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Cp=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Wf(e,t),u={x:n,y:r},d=Yf(i),f=qf(d),p=u[f],m=u[d],h=Wf(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=yp.has(Gf(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},wp=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Wf(e,t),c=await i.detectOverflow(t,s),l=Gf(n),u=Kf(n),d=Yf(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Lf(p-c[m],g),y=Lf(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Rf(c.left,c.right):S=p-2*Rf(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Tp(){return typeof window<`u`}function Ep(e){return kp(e)?(e.nodeName||``).toLowerCase():`#document`}function Dp(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Op(e){return((kp(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function kp(e){return Tp()?e instanceof Node||e instanceof Dp(e).Node:!1}function Ap(e){return Tp()?e instanceof Element||e instanceof Dp(e).Element:!1}function jp(e){return Tp()?e instanceof HTMLElement||e instanceof Dp(e).HTMLElement:!1}function Mp(e){return!Tp()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Dp(e).ShadowRoot}function Np(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Wp(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Pp(e){return/^(table|td|th)$/.test(Ep(e))}function Fp(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ip=/transform|translate|scale|rotate|perspective|filter/,Lp=/paint|layout|strict|content/,Rp=e=>!!e&&e!==`none`,zp;function Bp(e){let t=Ap(e)?Wp(e):e;return Rp(t.transform)||Rp(t.translate)||Rp(t.scale)||Rp(t.rotate)||Rp(t.perspective)||!Hp()&&(Rp(t.backdropFilter)||Rp(t.filter))||Ip.test(t.willChange||``)||Lp.test(t.contain||``)}function Vp(e){let t=Kp(e);for(;jp(t)&&!Up(t);){if(Bp(t))return t;if(Fp(t))return null;t=Kp(t)}return null}function Hp(){return zp??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),zp}function Up(e){return/^(html|body|#document)$/.test(Ep(e))}function Wp(e){return Dp(e).getComputedStyle(e)}function Gp(e){return Ap(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kp(e){if(Ep(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Mp(e)&&e.host||Op(e);return Mp(t)?t.host:t}function qp(e){let t=Kp(e);return Up(t)?(e.ownerDocument||e).body:jp(t)&&Np(t)?t:qp(t)}function Jp(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=qp(e),i=r===e.ownerDocument?.body,a=Dp(r);if(i){let e=Yp(a);return t.concat(a,a.visualViewport||[],Np(r)?r:[],e&&n?Jp(e):[])}else return t.concat(r,Jp(r,[],n))}function Yp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xp(e){let t=Wp(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=jp(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=zf(n)!==a||zf(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Zp(e){return Ap(e)?e:e.contextElement}function Qp(e){let t=Zp(e);if(!jp(t))return Vf(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Xp(t),o=(a?zf(n.width):n.width)/r,s=(a?zf(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var $p=Vf(0);function em(e){let t=Dp(e);return!Hp()||!t.visualViewport?$p:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tm(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Dp(e)}function nm(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Zp(e),o=Vf(1);t&&(r?Ap(r)&&(o=Qp(r)):o=Qp(e));let s=tm(a,n,r)?em(a):Vf(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Dp(a),t=Ap(r)?Dp(r):r,n=e,i=Yp(n);for(;i&&t!==n;){let e=Qp(i),t=i.getBoundingClientRect(),r=Wp(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Dp(i),i=Yp(n)}}return lp({width:u,height:d,x:c,y:l})}function rm(e,t){let n=Gp(e).scrollLeft;return t?t.left+n:nm(Op(e)).left+n}function im(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-rm(e,n),y:n.top+t.scrollTop}}function am(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Op(r),s=t?Fp(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Vf(1),u=Vf(0),d=jp(r);if((d||!a)&&((Ep(r)!==`body`||Np(o))&&(c=Gp(r)),d)){let e=nm(r);l=Qp(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?im(o,c):Vf(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function om(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function sm(e){let t=Gp(e),n=e.ownerDocument.body,r=Rf(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Rf(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+rm(e),o=-t.scrollTop;return Wp(n).direction===`rtl`&&(a+=Rf(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var cm=25;function lm(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Dp(e),a=Op(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Hp()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(rm(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=cm&&(s-=o)}return{width:s,height:c,x:l,y:u}}function um(e,t){let n=nm(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Qp(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function dm(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=lm(e,n,t);else if(t===`document`)r=sm(Op(e));else if(Ap(t))r=um(t,n);else{let n=em(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return lp(r)}function fm(e,t){let n=t.get(e);if(n)return n;let r=Jp(e,[],!1).filter(e=>Ap(e)&&Ep(e)!==`body`),i=null,a=Wp(e).position===`fixed`,o=a?Kp(e):e;for(;Ap(o)&&!Up(o);){let e=Wp(o),t=Bp(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Kp(o)}return t.set(e,r),r}function pm(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Fp(t)?[]:fm(t,this._c):[].concat(n),r],o=dm(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=dm(t,a[e],i);s=Rf(n.top,s),c=Lf(n.right,c),l=Lf(n.bottom,l),u=Rf(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function mm(e){let{width:t,height:n}=Xp(e);return{width:t,height:n}}function hm(e,t,n){let r=jp(t),i=Op(t),a=n===`fixed`,o=nm(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Vf(0);if((r||!a)&&((Ep(t)!==`body`||Np(i))&&(s=Gp(t)),r)){let e=nm(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=rm(i));let l=i&&!r&&!a?im(i,s):Vf(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function gm(e){return Wp(e).position===`static`}function _m(e,t){if(!jp(e)||Wp(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Op(e)===n&&(n=n.ownerDocument.body),n}function vm(e,t){let n=Dp(e);if(Fp(e))return n;if(!jp(e)){let t=Kp(e);for(;t&&!Up(t);){if(Ap(t)&&!gm(t))return t;t=Kp(t)}return n}let r=_m(e,t);for(;r&&Pp(r)&&gm(r);)r=_m(r,t);return r&&Up(r)&&gm(r)&&!Bp(r)?n:r||Vp(e)||n}var ym=async function(e){let t=this.getOffsetParent||vm,n=this.getDimensions,r=await n(e.floating);return{reference:hm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bm(e){return Wp(e).direction===`rtl`}var xm={convertOffsetParentRelativeRectToViewportRelativeRect:am,getDocumentElement:Op,getClippingRect:pm,getOffsetParent:vm,getElementRects:ym,getClientRects:om,getDimensions:mm,getScale:Qp,isElement:Ap,isRTL:bm};function Sm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Cm(e,t,n){let r=null,i,a=Op(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Bf(d),h=Bf(a.clientWidth-(u+f)),g=Bf(a.clientHeight-(d+p)),_=Bf(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Rf(0,Lf(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Sm(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Dp(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function wm(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Zp(e),u=i||a?[...l?Jp(l):[],...t?Jp(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Cm(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?nm(e):null;c&&g();function g(){let t=nm(e);h&&!Sm(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Tm=xp,Em=Sp,Dm=hp,Om=wp,km=vp,Am=mp,jm=Cp,Mm=(e,t,n)=>{let r=new Map,i=n??{},a={...xm,...i.platform,_c:r};return pp(e,t,{...i,platform:a})},Nm=typeof document<`u`?y.useLayoutEffect:function(){};function Pm(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Pm(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Pm(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Fm(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Im(e,t){let n=Fm(e);return Math.round(t*n)/n}function Lm(e){let t=y.useRef(e);return Nm(()=>{t.current=e}),t}function Rm(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=y.useState(r);Pm(f,r)||p(r);let[m,h]=y.useState(null),[g,_]=y.useState(null),v=y.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=y.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=a||m,S=o||g,C=y.useRef(null),w=y.useRef(null),T=y.useRef(u),E=c!=null,ee=Lm(c),D=Lm(i),te=Lm(l),O=y.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Mm(C.current,w.current,e).then(e=>{let t={...e,isPositioned:te.current!==!1};k.current&&!Pm(T.current,t)&&(T.current=t,Fd.flushSync(()=>{d(t)}))})},[f,t,n,D,te]);Nm(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let k=y.useRef(!1);Nm(()=>(k.current=!0,()=>{k.current=!1}),[]),Nm(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(ee.current)return ee.current(x,S,O);O()}},[x,S,O,ee,E]);let A=y.useMemo(()=>({reference:C,floating:w,setReference:v,setFloating:b}),[v,b]),ne=y.useMemo(()=>({reference:x,floating:S}),[x,S]),re=y.useMemo(()=>{let e={position:n,left:0,top:0};if(!ne.floating)return e;let t=Im(ne.floating,u.x),r=Im(ne.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Fm(ne.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,ne.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:O,refs:A,elements:ne,floatingStyles:re}),[u,O,A,ne,re])}var zm=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Am({element:r.current,padding:i}).fn(n):r?Am({element:r,padding:i}).fn(n):{}}}},Bm=(e,t)=>{let n=Tm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vm=(e,t)=>{let n=Em(e);return{name:n.name,fn:n.fn,options:[e,t]}},Hm=(e,t)=>({fn:jm(e).fn,options:[e,t]}),Um=(e,t)=>{let n=Dm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Wm=(e,t)=>{let n=Om(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gm=(e,t)=>{let n=km(e);return{name:n.name,fn:n.fn,options:[e,t]}},Km=(e,t)=>{let n=zm(e);return{name:n.name,fn:n.fn,options:[e,t]}},qm=`Arrow`,Jm=y.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,x.jsx)(Jd.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,x.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Jm.displayName=qm;var Ym=Jm;function Xm(e){let[t,n]=y.useState(void 0);return Mf(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var Zm=`Popper`,[Qm,$m]=Nd(Zm),[eh,th]=Qm(Zm),nh=e=>{let{__scopePopper:t,children:n}=e,[r,i]=y.useState(null),[a,o]=y.useState(void 0);return(0,x.jsx)(eh,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})};nh.displayName=Zm;var rh=`PopperAnchor`,ih=y.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=th(rh,n),o=y.useRef(null),s=a.onAnchorChange,c=$(t,y.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=y.useRef(null);y.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&mh(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,x.jsx)(Jd.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})});ih.displayName=rh;var ah=`PopperContent`,[oh,sh]=Qm(ah),ch=y.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=th(ah,n),[_,v]=y.useState(null),b=$(t,v),[S,C]=y.useState(null),w=Xm(S),T=w?.width??0,E=w?.height??0,ee=r+(a===`center`?``:`-`+a),D=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},te=Array.isArray(l)?l:[l],O=te.length>0,k={padding:D,boundary:te.filter(fh),altBoundary:O},{refs:A,floatingStyles:ne,placement:re,isPositioned:ie,middlewareData:j}=Rm({strategy:`fixed`,placement:ee,whileElementsMounted:(...e)=>wm(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[Bm({mainAxis:i+E,alignmentAxis:o}),c&&Vm({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?Hm():void 0,...k}),c&&Um({...k}),Wm({...k,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),S&&Km({element:S,padding:s}),ph({arrowWidth:T,arrowHeight:E}),f&&Gm({strategy:`referenceHidden`,...k,boundary:O?k.boundary:void 0})]}),M=g.setPlacementState;Mf(()=>(M(re),()=>{M(void 0)}),[re,M]);let[ae,oe]=mh(re),se=Xd(m);Mf(()=>{ie&&se?.()},[ie,se]);let ce=j.arrow?.x,N=j.arrow?.y,P=j.arrow?.centerOffset!==0,[le,ue]=y.useState();return Mf(()=>{_&&ue(window.getComputedStyle(_).zIndex)},[_]),(0,x.jsx)(`div`,{ref:A.setFloating,"data-radix-popper-content-wrapper":``,style:{...ne,transform:ie?ne.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:le,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(` `),...j.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,x.jsx)(oh,{scope:n,placedSide:ae,placedAlign:oe,onArrowChange:C,arrowX:ce,arrowY:N,shouldHideArrow:P,children:(0,x.jsx)(Jd.div,{"data-side":ae,"data-align":oe,...h,ref:b,style:{...h.style,animation:ie?void 0:`none`}})})})});ch.displayName=ah;var lh=`PopperArrow`,uh={top:`bottom`,right:`left`,bottom:`top`,left:`right`},dh=y.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=sh(lh,n),a=uh[i.placedSide];return(0,x.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,x.jsx)(Ym,{...r,ref:t,style:{...r.style,display:`block`}})})});dh.displayName=lh;function fh(e){return e!==null}var ph=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=mh(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function mh(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var hh=nh,gh=ih,_h=ch,vh=dh,yh=`Portal`,bh=y.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=y.useState(!1);Mf(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Fd.createPortal((0,x.jsx)(Jd.div,{...r,ref:t}),o):null});bh.displayName=yh;function xh(e,t){return y.useReducer((e,n)=>t[e][n]??e,e)}var Sh=e=>{let{present:t,children:n}=e,r=Ch(t),i=typeof n==`function`?n({present:r.isPresent}):y.Children.only(n),a=Th(r.ref,Dh(i));return typeof n==`function`||r.isPresent?y.cloneElement(i,{ref:a}):null};Sh.displayName=`Presence`;function Ch(e){let[t,n]=y.useState(),r=y.useRef(null),i=y.useRef(e),a=y.useRef(`none`),o=y.useRef(void 0),[s,c]=xh(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return y.useEffect(()=>{s===`mounted`?(a.current=o.current??Eh(r.current),o.current=void 0):a.current=`none`},[s]),Mf(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Eh(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),Mf(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=Eh(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},s=e=>{e.target===t&&(a.current=Eh(r.current))};return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:y.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Eh(t)}else r.current=null;n(e)},[])}}function wh(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Th(...e){let t=y.useRef(e);return t.current=e,y.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=wh(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():wh(n[e],null)}}},[])}function Eh(e){return e?.animationName||`none`}function Dh(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Oh=y.useInsertionEffect||Mf;function kh({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=Ah({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=y.useRef(e!==void 0);y.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,y.useCallback(t=>{if(s){let n=jh(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function Ah({defaultProp:e,onChange:t}){let[n,r]=y.useState(e),i=y.useRef(n),a=y.useRef(t);return Oh(()=>{a.current=t},[t]),y.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function jh(e){return typeof e==`function`}var Mh=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Nh=new WeakMap,Ph=new WeakMap,Fh={},Ih=0,Lh=function(e){return e&&(e.host||Lh(e.parentNode))},Rh=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Lh(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},zh=function(e,t,n,r){var i=Rh(t,Array.isArray(e)?e:[e]);Fh[n]||(Fh[n]=new WeakMap);var a=Fh[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Nh.get(e)||0)+1,l=(a.get(e)||0)+1;Nh.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ph.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Ih++,function(){o.forEach(function(e){var t=Nh.get(e)-1,i=a.get(e)-1;Nh.set(e,t),a.set(e,i),t||(Ph.has(e)||e.removeAttribute(r),Ph.delete(e)),i||e.removeAttribute(n)}),Ih--,Ih||(Nh=new WeakMap,Nh=new WeakMap,Ph=new WeakMap,Fh={})}},Bh=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Mh(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),zh(r,i,n,`aria-hidden`)):function(){return null}},Vh=function(){return Vh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Vh.apply(this,arguments)};function Hh(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Uh(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Wh=`right-scroll-bar-position`,Gh=`width-before-scroll-bar`,Kh=`with-scroll-bars-hidden`,qh=`--removed-body-scroll-bar-size`;function Jh(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Yh(e,t){var n=(0,y.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Xh=typeof window<`u`?y.useLayoutEffect:y.useEffect,Zh=new WeakMap;function Qh(e,t){var n=Yh(t||null,function(t){return e.forEach(function(e){return Jh(e,t)})});return Xh(function(){var t=Zh.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Jh(e,null)}),i.forEach(function(e){r.has(e)||Jh(e,a)})}Zh.set(n,e)},[e]),n}function $h(e){return e}function eg(e,t){t===void 0&&(t=$h);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function tg(e){e===void 0&&(e={});var t=eg(null);return t.options=Vh({async:!0,ssr:!1},e),t}var ng=function(e){var t=e.sideCar,n=Hh(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return y.createElement(r,Vh({},n))};ng.isSideCarExport=!0;function rg(e,t){return e.useMedium(t),ng}var ig=tg(),ag=function(){},og=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:ag,onWheelCapture:ag,onTouchMoveCapture:ag}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,b=e.gapMode,x=Hh(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=Qh([n,t]),w=Vh(Vh({},x),i);return y.createElement(y.Fragment,null,u&&y.createElement(S,{sideCar:ig,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),o?y.cloneElement(y.Children.only(s),Vh(Vh({},w),{ref:C})):y.createElement(v,Vh({},w,{className:c,ref:C}),s))});og.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},og.classNames={fullWidth:Gh,zeroRight:Wh};var sg,cg=function(){if(sg)return sg;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function lg(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=cg();return t&&e.setAttribute(`nonce`,t),e}function ug(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function dg(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var fg=function(){var e=0,t=null;return{add:function(n){e==0&&(t=lg())&&(ug(t,n),dg(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},pg=function(){var e=fg();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},mg=function(){var e=pg();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},hg={left:0,top:0,right:0,gap:0},gg=function(e){return parseInt(e||``,10)||0},_g=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[gg(n),gg(r),gg(i)]},vg=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return hg;var t=_g(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},yg=mg(),bg=`data-scroll-locked`,xg=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`\n .${Kh} {\n overflow: hidden ${r};\n padding-right: ${s}px ${r};\n }\n body[${bg}] {\n overflow: hidden ${r};\n overscroll-behavior: contain;\n ${[t&&`position: relative ${r};`,n===`margin`&&`\n padding-left: ${i}px;\n padding-top: ${a}px;\n padding-right: ${o}px;\n margin-left:0;\n margin-top:0;\n margin-right: ${s}px ${r};\n `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}\n }\n \n .${Wh} {\n right: ${s}px ${r};\n }\n \n .${Gh} {\n margin-right: ${s}px ${r};\n }\n \n .${Wh} .${Wh} {\n right: 0 ${r};\n }\n \n .${Gh} .${Gh} {\n margin-right: 0 ${r};\n }\n \n body[${bg}] {\n ${qh}: ${s}px;\n }\n`},Sg=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Cg=function(){y.useEffect(function(){return document.body.setAttribute(bg,(Sg()+1).toString()),function(){var e=Sg()-1;e<=0?document.body.removeAttribute(bg):document.body.setAttribute(bg,e.toString())}},[])},wg=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Cg();var a=y.useMemo(function(){return vg(i)},[i]);return y.createElement(yg,{styles:xg(a,!t,i,n?``:`!important`)})},Tg=!1;if(typeof window<`u`)try{var Eg=Object.defineProperty({},"passive",{get:function(){return Tg=!0,!0}});window.addEventListener(`test`,Eg,Eg),window.removeEventListener(`test`,Eg,Eg)}catch{Tg=!1}var Dg=Tg?{passive:!1}:!1,Og=function(e){return e.tagName===`TEXTAREA`},kg=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Og(e)&&n[t]===`visible`)},Ag=function(e){return kg(e,`overflowY`)},jg=function(e){return kg(e,`overflowX`)},Mg=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Fg(e,r)){var i=Ig(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ng=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Pg=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Fg=function(e,t){return e===`v`?Ag(t):jg(t)},Ig=function(e,t){return e===`v`?Ng(t):Pg(t)},Lg=function(e,t){return e===`h`&&t===`rtl`?-1:1},Rg=function(e,t,n,r,i){var a=Lg(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Ig(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Fg(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},zg=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bg=function(e){return[e.deltaX,e.deltaY]},Vg=function(e){return e&&`current`in e?e.current:e},Hg=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ug=function(e){return`\n .block-interactivity-${e} {pointer-events: none;}\n .allow-interactivity-${e} {pointer-events: all;}\n`},Wg=0,Gg=[];function Kg(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),i=y.useState(Wg++)[0],a=y.useState(mg)[0],o=y.useRef(e);y.useEffect(function(){o.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Uh([e.lockRef.current],(e.shards||[]).map(Vg),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=y.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=zg(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Mg(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Mg(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Rg(h,t,e,h===`h`?s:c,!0)},[]),c=y.useCallback(function(e){var n=e;if(!(!Gg.length||Gg[Gg.length-1]!==a)){var r=`deltaY`in n?Bg(n):zg(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Hg(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Vg).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=y.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:qg(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=y.useCallback(function(e){n.current=zg(e),r.current=void 0},[]),d=y.useCallback(function(t){l(t.type,Bg(t),t.target,s(t,e.lockRef.current))},[]),f=y.useCallback(function(t){l(t.type,zg(t),t.target,s(t,e.lockRef.current))},[]);y.useEffect(function(){return Gg.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Dg),document.addEventListener(`touchmove`,c,Dg),document.addEventListener(`touchstart`,u,Dg),function(){Gg=Gg.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Dg),document.removeEventListener(`touchmove`,c,Dg),document.removeEventListener(`touchstart`,u,Dg)}},[]);var p=e.removeScrollBar,m=e.inert;return y.createElement(y.Fragment,null,m?y.createElement(a,{styles:Ug(i)}):null,p?y.createElement(wg,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function qg(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Jg=rg(ig,Kg),Yg=y.forwardRef(function(e,t){return y.createElement(og,Vh({},e,{ref:t,sideCar:Jg}))});Yg.classNames=og.classNames;var Xg=`Popover`,[Zg,Qg]=Nd(Xg,[$m]),$g=$m(),[e_,t_]=Zg(Xg),n_=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=$g(t),c=y.useRef(null),[l,u]=y.useState(!1),[d,f]=kh({prop:r,defaultProp:i??!1,onChange:a,caller:Xg});return(0,x.jsx)(hh,{...s,children:(0,x.jsx)(e_,{scope:t,contentId:Ff(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:y.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:y.useCallback(()=>u(!0),[]),onCustomAnchorRemove:y.useCallback(()=>u(!1),[]),modal:o,children:n})})};n_.displayName=Xg;var r_=`PopoverAnchor`,i_=y.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=t_(r_,n),a=$g(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return y.useEffect(()=>(o(),()=>s()),[o,s]),(0,x.jsx)(gh,{...a,...r,ref:t})});i_.displayName=r_;var a_=`PopoverTrigger`,o_=y.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=t_(a_,n),a=$g(n),o=$(t,i.triggerRef),s=(0,x.jsx)(Jd.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":x_(i.open),...r,ref:o,onClick:Ad(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,x.jsx)(gh,{asChild:!0,...a,children:s})});o_.displayName=a_;var s_=`PopoverPortal`,[c_,l_]=Zg(s_,{forceMount:void 0}),u_=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=t_(s_,t);return(0,x.jsx)(c_,{scope:t,forceMount:n,children:(0,x.jsx)(Sh,{present:n||a.open,children:(0,x.jsx)(bh,{asChild:!0,container:i,children:r})})})};u_.displayName=s_;var d_=`PopoverContent`,f_=y.forwardRef((e,t)=>{let n=l_(d_,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=t_(d_,e.__scopePopover);return(0,x.jsx)(Sh,{present:r||a.open,children:a.modal?(0,x.jsx)(m_,{...i,ref:t}):(0,x.jsx)(h_,{...i,ref:t})})});f_.displayName=d_;var p_=Id(`PopoverContent.RemoveScroll`),m_=y.forwardRef((e,t)=>{let n=t_(d_,e.__scopePopover),r=y.useRef(null),i=$(t,r),a=y.useRef(!1);return y.useEffect(()=>{let e=r.current;if(e)return Bh(e)},[]),(0,x.jsx)(Yg,{as:p_,allowPinchZoom:!0,children:(0,x.jsx)(g_,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ad(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Ad(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:Ad(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),h_=y.forwardRef((e,t)=>{let n=t_(d_,e.__scopePopover),r=y.useRef(!1),i=y.useRef(!1);return(0,x.jsx)(g_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),g_=y.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=t_(d_,n),p=$g(n);return mf(),(0,x.jsx)(bf,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,x.jsx)(rf,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,x.jsx)(_h,{"data-state":x_(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),__=`PopoverClose`,v_=y.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=t_(__,n);return(0,x.jsx)(Jd.button,{type:`button`,...r,ref:t,onClick:Ad(e.onClick,()=>i.onOpenChange(!1))})});v_.displayName=__;var y_=`PopoverArrow`,b_=y.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=$g(n);return(0,x.jsx)(vh,{...i,...r,ref:t})});b_.displayName=y_;function x_(e){return e?`open`:`closed`}var S_=n_,C_=o_,w_=u_,T_=f_;function E_(e){let t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var D_=`Checkbox`,[O_,k_]=Nd(D_),[A_,j_]=O_(D_);function M_(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,p]=kh({prop:n,defaultProp:i??!1,onChange:c,caller:D_}),[m,h]=y.useState(null),[g,_]=y.useState(null),v=y.useRef(!1),b=!m||!!o||!!m.closest(`form`),S={checked:f,disabled:a,setChecked:p,control:m,setControl:h,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:v,required:l,defaultChecked:!V_(i)&&i,isFormControl:b,bubbleInput:g,setBubbleInput:_};return(0,x.jsx)(A_,{scope:t,...S,children:B_(d)?d(S):r})}var N_=`CheckboxTrigger`,P_=y.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{let{control:a,value:o,disabled:s,checked:c,required:l,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:m}=j_(N_,e),h=$(i,u),g=y.useRef(c);return y.useEffect(()=>{let e=a?.form;if(e){let t=()=>d(g.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,d]),(0,x.jsx)(Jd.button,{type:`button`,role:`checkbox`,"aria-checked":V_(c)?`mixed`:c,"aria-required":l,"data-state":H_(c),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:h,onKeyDown:Ad(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:Ad(n,e=>{d(e=>V_(e)?!0:!e),m&&p&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})});P_.displayName=N_;var F_=y.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,x.jsx)(M_,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(P_,{...d,ref:t,__scopeCheckbox:n}),e&&(0,x.jsx)(z_,{__scopeCheckbox:n})]})})});F_.displayName=D_;var I_=`CheckboxIndicator`,L_=y.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=j_(I_,n);return(0,x.jsx)(Sh,{present:r||V_(a.checked)||a.checked===!0,children:(0,x.jsx)(Jd.span,{"data-state":H_(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})});L_.displayName=I_;var R_=`CheckboxBubbleInput`,z_=y.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:r,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:c,name:l,value:u,form:d,bubbleInput:f,setBubbleInput:p}=j_(R_,e),m=$(n,p),h=E_(a),g=Xm(r);y.useEffect(()=>{let e=f;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!i.current;if(h!==a&&n){let t=new Event(`click`,{bubbles:r});e.indeterminate=V_(a),n.call(e,!V_(a)&&a),e.dispatchEvent(t)}},[f,h,a,i]);let _=y.useRef(!V_(a)&&a);return(0,x.jsx)(Jd.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:o??_.current,required:s,disabled:c,name:l,value:u,form:d,...t,tabIndex:-1,ref:m,style:{...t.style,...g,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});z_.displayName=R_;function B_(e){return typeof e==`function`}function V_(e){return e===`indeterminate`}function H_(e){return V_(e)?`indeterminate`:e?`checked`:`unchecked`}function U_({label:e,options:t,selected:n,onChange:r}){let i=e=>{r(n.includes(e)?n.filter(t=>t!==e):[...n,e])},a=n.length===0?e:`${e.replace(/^All /,``)}: ${n.length}`,o=Lt(`inline-flex items-center gap-1.5 rounded-md border px-3 py-1.5 text-sm`,`border-slate-300 bg-white text-slate-700 hover:bg-slate-50`,`dark:border-slate-700 dark:bg-slate-900 dark:text-slate-200 dark:hover:bg-slate-800`,`focus:outline-none focus-visible:ring-2 focus-visible:ring-green-500`,n.length>0&&`border-green-500 dark:border-green-500`);return(0,x.jsxs)(S_,{children:[(0,x.jsxs)(C_,{className:o,"aria-label":e,children:[(0,x.jsx)(`span`,{children:a}),(0,x.jsx)(`span`,{"aria-hidden":!0,className:`text-slate-400`,children:`\u25BE`})]}),(0,x.jsx)(w_,{children:(0,x.jsxs)(T_,{align:`end`,sideOffset:4,className:Lt(`z-50 min-w-52 rounded-md border p-1 shadow-md`,`border-slate-200 bg-white text-slate-800`,`dark:border-slate-700 dark:bg-slate-900 dark:text-slate-100`),children:[(0,x.jsx)(`ul`,{className:`max-h-72 overflow-y-auto`,children:t.map(e=>{let t=n.includes(e.value);return(0,x.jsx)(`li`,{children:(0,x.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-sm hover:bg-slate-100 dark:hover:bg-slate-800`,children:[(0,x.jsx)(F_,{checked:t,onCheckedChange:()=>i(e.value),className:Lt(`flex h-4 w-4 items-center justify-center rounded border`,`border-slate-400 dark:border-slate-500`,`data-[state=checked]:border-green-600 data-[state=checked]:bg-green-600`),children:(0,x.jsx)(L_,{className:`text-xs leading-none text-white`,children:`\u2713`})}),(0,x.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label}),e.count!==void 0&&(0,x.jsx)(`span`,{"aria-hidden":!0,className:`shrink-0 tabular-nums text-xs text-slate-400 dark:text-slate-500`,children:e.count})]})},e.value)})}),n.length>0&&(0,x.jsx)(`button`,{type:`button`,onClick:()=>r([]),className:`mt-1 w-full rounded px-2 py-1.5 text-left text-sm text-slate-500 hover:bg-slate-100 dark:text-slate-400 dark:hover:bg-slate-800`,children:`Clear`})]})})]})}var W_=3e4,G_=4e3,K_=G_;function q_(){let[e,t]=(0,y.useState)(null),[n,r]=(0,y.useState)(null),[i,a]=(0,y.useState)(()=>new URLSearchParams(location.search).get(`tab`)===`agents`?`agents`:`board`),[o,s]=(0,y.useState)(()=>new URLSearchParams(location.search).get(`lanes`)===`1`),[c,l]=(0,y.useState)(null),[u,d]=(0,y.useState)(()=>gd(`sprint`)),[f,p]=(0,y.useState)(()=>gd(`story`)),[m,h]=(0,y.useState)(null),[g,_]=(0,y.useState)(null),[v,b]=(0,y.useState)(``),[S,C]=(0,y.useState)(()=>new URLSearchParams(location.search).get(`plan`)??``),[w,T]=(0,y.useState)(``),[E,ee]=(0,y.useState)(0),[D,te]=(0,y.useState)(0),[O,k]=(0,y.useState)(0),[A,ne]=(0,y.useState)(null),[re,ie]=(0,y.useState)(!1),[j,M]=(0,y.useState)(0),[ae,oe]=(0,y.useState)(0),se=(0,y.useCallback)(async()=>{let e=!0;try{let n;try{n=await fetch(`/api/board`)}catch(t){throw e=!1,t}if(!n.ok)throw Error(`HTTP ${n.status}`);let r=await n.json();if(`error`in r)throw Error(r.error);t(r),l(null),M(0)}catch(t){l(t instanceof Error?t.message:String(t)),M(t=>e?0:t+1)}finally{te(e=>e+1)}},[]),ce=(0,y.useCallback)(e=>{k(t=>Math.max(0,t+(e?1:-1)))},[]),N=(0,y.useCallback)(async()=>{let e=!0;try{let t;try{t=await fetch(`/api/fleet`)}catch(t){throw e=!1,t}if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json();if(!(`rows`in n))throw Error(n.error);r(n),ne(Date.now()),ie(!1),oe(0)}catch{ie(!e),oe(t=>e?0:t+1)}},[]);(0,y.useEffect)(()=>{se();let e=setInterval(()=>void se(),O>0?K_:W_);return()=>clearInterval(e)},[se,O]),(0,y.useEffect)(()=>{if(i!==`agents`)return;N();let e=setInterval(()=>void N(),G_);return()=>clearInterval(e)},[i,N]);let P=i===`agents`?ae:j,le=P>=8&&(i===`agents`?n:e)!==null,ue=le?{available:!1,reason:Od}:e?.dispatch,de=e=>ue?{...e,dispatch:ue}:e,fe=le?{available:!1,reason:Od}:e?.approve,pe=le?{available:!1,reason:Od}:e?.continue,me=le?{available:!1,reason:Od}:e?.idea,he=le?{available:!1,reason:Od}:e?.commission;(0,y.useEffect)(()=>{let e=()=>{document.visibilityState===`visible`&&(se(),i===`agents`&&N())};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[se,N,i]);let[ge,_e]=(0,y.useState)(null);(0,y.useEffect)(()=>{if(i!==`agents`||!re||A===null){_e(null);return}let e=()=>Math.max(0,Math.round((Date.now()-A)/1e3));_e(e());let t=setInterval(()=>_e(e()),1e3);return()=>clearInterval(t)},[i,re,A]);let ve=e=>{s(e);let t=new URL(location.href);e?t.searchParams.set(`lanes`,`1`):t.searchParams.delete(`lanes`),history.replaceState(null,``,t)},ye=e=>{a(e);let t=new URL(location.href);e===`agents`?t.searchParams.set(`tab`,`agents`):t.searchParams.delete(`tab`),history.replaceState(null,``,t),e!==`agents`&&T(``)},be=(0,y.useCallback)(e=>{s(!0);let t=new URL(location.href);t.searchParams.set(`lanes`,`1`),history.replaceState(null,``,t),requestAnimationFrame(()=>{document.getElementById(`story-${e}`)?.scrollIntoView({block:`start`})})},[]),xe=(0,y.useCallback)(e=>{a(`agents`);let t=new URL(location.href);t.searchParams.set(`tab`,`agents`),history.replaceState(null,``,t),T(e),ee(e=>e+1)},[]),Se=(0,y.useCallback)(t=>{if(!e||!t)return null;let n=e=>e.split(/[/\\\\]/).pop()??``;return e.columns.flatMap(e=>e.cards).find(e=>n(e.path)===n(t))??null},[e]),Ce=(0,y.useCallback)(t=>{let n=Se(t);return n?(h(n),!0):e?!1:(b(t),!0)},[e,Se]);(0,y.useEffect)(()=>{if(!v||!e)return;let t=Se(v);b(``),t&&h(t)},[v,e,Se]);let we=(0,y.useCallback)(e=>{h(null),a(`board`);let t=new URL(location.href);t.searchParams.delete(`tab`),e.story&&(p([e.story]),t.searchParams.set(`story`,e.story)),t.searchParams.set(`plan`,e.slug),history.replaceState(null,``,t),C(e.slug)},[]),Te=(0,y.useCallback)(t=>t?e?.stories.find(e=>e.slug===t):void 0,[e]),Ee=(0,y.useCallback)(e=>{h(null),_(e)},[]),De=(0,y.useCallback)(e=>{_(null),h(e)},[]),Oe=(0,y.useCallback)(e=>{_(null),a(`board`);let t=new URL(location.href);t.searchParams.delete(`tab`),t.searchParams.delete(`plan`),p([e.slug]),t.searchParams.set(`story`,e.slug),history.replaceState(null,``,t),C(``),o&&be(e.slug)},[o,be]),ke=e=>{d(e),_d(`sprint`,e),C(``),_d(`plan`,[])},Ae=e=>{p(e),_d(`story`,e),C(``),_d(`plan`,[])},je=e?e.columns.flatMap(e=>e.cards):[],Me=md(e),Ne=pd([{value:dd,label:`No sprint`},...Me],je,`sprint`,dd),Pe=pd([{value:fd,label:`No story`},...(e?.stories??[]).map(e=>({value:e.slug,label:e.title}))],je,`story`,fd),Fe=hd(u,Ne),Ie=hd(f,Pe),Le=Me.length>0,Re=(e?.stories.length??0)>0,ze=je.some(e=>e.slug===S)?S:``;return(0,y.useEffect)(()=>{if(!ze||i!==`board`)return;let e=!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,t=requestAnimationFrame(()=>{document.getElementById(`plan-${ze}`)?.scrollIntoView({block:`center`,behavior:e?`smooth`:`auto`})});return()=>cancelAnimationFrame(t)},[ze,i,o,e]),(0,y.useEffect)(()=>{if(!w||i!==`agents`)return;let e=!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,t=requestAnimationFrame(()=>{document.getElementById(`agent-row-${w}`)?.scrollIntoView({block:`center`,behavior:e?`smooth`:`auto`})});return()=>cancelAnimationFrame(t)},[w,E,i,n]),(0,x.jsxs)(`div`,{className:`mx-auto min-h-screen max-w-[1600px] px-4 py-4`,children:[(0,x.jsxs)(`header`,{className:`mb-4 flex flex-wrap items-center gap-3`,children:[(0,x.jsx)(`h1`,{className:`text-lg font-bold tracking-tight`,children:`Plot`}),(0,x.jsx)(`nav`,{className:`mr-auto flex gap-1`,"aria-label":`Views`,children:[[`board`,`Board`],[`agents`,`Agents`]].map(([e,t])=>(0,x.jsx)(`button`,{type:`button`,onClick:()=>ye(e),"aria-current":i===e?`page`:void 0,className:i===e?`rounded-md bg-slate-200 px-3 py-1 text-sm font-medium text-slate-900 dark:bg-slate-800 dark:text-slate-100`:`rounded-md px-3 py-1 text-sm text-slate-500 hover:bg-slate-100 dark:text-slate-400 dark:hover:bg-slate-900`,children:t},e))}),i===`board`&&Le&&(0,x.jsx)(U_,{label:`All sprints`,options:Ne,selected:Fe,onChange:ke}),i===`board`&&Re&&(0,x.jsx)(U_,{label:`All stories`,options:Pe,selected:Ie,onChange:Ae}),i===`board`&&Re&&(0,x.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-1.5 text-xs text-slate-500 dark:text-slate-400`,children:[(0,x.jsx)(`input`,{type:`checkbox`,checked:o,onChange:e=>ve(e.target.checked),className:`h-3.5 w-3.5 accent-slate-500`}),`Story lanes`]})]}),(0,x.jsx)(`main`,{children:i===`agents`?n?(0,x.jsx)(di,{fleet:n,pollSeconds:G_/1e3,staleSeconds:ge,onOpenPlan:Ce,cardForPlanFile:Se,dispatch:ue,approve:fe,continueWith:pe,idea:me,commission:he,pulse:D,onStarting:ce,onRevealBranch:xe,highlightBranch:w}):(0,x.jsx)(`p`,{className:`text-sm text-slate-500`,children:`Loading\u2026`}):c&&!e?(0,x.jsxs)(`p`,{className:`rounded-md bg-red-50 px-4 py-3 text-sm text-red-700 dark:bg-red-950/40 dark:text-red-300`,children:[`Failed to load board: `,c]}):e?(0,x.jsxs)(x.Fragment,{children:[j>0&&(0,x.jsxs)(`p`,{role:`status`,className:`mb-4 rounded-md bg-rose-50 px-4 py-3 text-sm text-rose-800 dark:bg-rose-950/40 dark:text-rose-300`,children:[`Not reaching the board server \u2014 `,j,` `,j===1?`poll has`:`polls have`,` gone unanswered. The cards below are frozen at the last answer and are no longer being checked.`]}),c&&j===0&&(0,x.jsxs)(`p`,{className:`mb-4 rounded-md bg-amber-50 px-4 py-3 text-sm text-amber-800 dark:bg-amber-950/40 dark:text-amber-300`,children:[`Last board refresh failed: `,c,` \u2014 showing the last successful one below.`]}),o?(0,x.jsx)(Cd,{board:de(e),sprintSel:Fe,storySel:Ie,pulse:D,onStarting:ce,onOpenPlan:h,onOpenStory:Ee,highlight:ze}):(0,x.jsx)(bd,{board:de(e),sprintSel:Fe,storySel:Ie,pulse:D,onStarting:ce,onOpenPlan:h,onOpenStory:Ee,highlight:ze})]}):(0,x.jsx)(`p`,{className:`text-sm text-slate-500`,children:`Loading\u2026`})}),le&&(0,x.jsx)(kd,{failures:P,server:e?.server}),m&&(0,x.jsx)(Td,{card:m,story:Te(m.story),onClose:()=>h(null),onShowInBoard:we,onOpenStory:Ee}),g&&(0,x.jsx)(Dd,{story:g,cards:je,onClose:()=>_(null),onShowInBoard:Oe,onOpenPlan:De})]})}var J_=document.getElementById(`root`);J_&&(0,b.createRoot)(J_).render((0,x.jsx)(y.StrictMode,{children:(0,x.jsx)(q_,{})}));</script>\n <style rel="stylesheet" crossorigin>/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-orange-500:oklch(70.5% .213 47.604);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-amber-950:oklch(27.9% .077 45.635);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-teal-100:oklch(95.3% .051 180.801);--color-teal-200:oklch(91% .096 180.426);--color-teal-800:oklch(43.7% .078 188.216);--color-teal-900:oklch(38.6% .063 188.416);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-600:oklch(58.8% .158 241.966);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-violet-100:oklch(94.3% .029 294.588);--color-violet-200:oklch(89.4% .057 293.283);--color-violet-300:oklch(81.1% .111 293.571);--color-violet-500:oklch(60.6% .25 292.717);--color-violet-700:oklch(49.1% .27 292.581);--color-violet-800:oklch(43.2% .232 292.759);--color-violet-900:oklch(38% .189 293.745);--color-violet-950:oklch(28.3% .141 291.089);--color-rose-50:oklch(96.9% .015 12.422);--color-rose-300:oklch(81% .117 11.638);--color-rose-400:oklch(71.2% .194 13.428);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-700:oklch(51.4% .222 16.935);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-950:oklch(27.1% .105 12.094);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-slate-950:oklch(12.9% .042 264.695);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-normal:0em;--tracking-wide:.025em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--animate-travel-fast:travel 1.1s ease-in-out infinite;--animate-travel-slow:travel 3.4s ease-in-out infinite}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.-top-0\\.5{top:calc(var(--spacing) * -.5)}.top-1\\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-4\\.5{top:calc(var(--spacing) * 4.5)}.right-0{right:0}.left-0{left:0}.left-1{left:var(--spacing)}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.col-span-2{grid-column:span 2/span 2}.col-span-full{grid-column:1/-1}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mr-auto{margin-right:auto}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-1{margin-left:var(--spacing)}.ml-1\\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-1{height:var(--spacing)}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-\\[70vh\\]{height:70vh}.h-\\[80vh\\]{height:80vh}.h-full{height:100%}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[90vh\\]{max-height:90vh}.min-h-0{min-height:0}.min-h-screen{min-height:100vh}.w-0\\.5{width:calc(var(--spacing) * .5)}.w-1{width:var(--spacing)}.w-1\\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-16{width:calc(var(--spacing) * 16)}.w-24{width:calc(var(--spacing) * 24)}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\\[1600px\\]{max-width:1600px}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.min-w-0{min-width:0}.min-w-52{min-width:calc(var(--spacing) * 52)}.min-w-\\[900px\\]{min-width:900px}.min-w-max{min-width:max-content}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-none{animation:none}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.animate-travel-fast{animation:var(--animate-travel-fast)}.animate-travel-slow{animation:var(--animate-travel-slow)}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.scroll-mt-4{scroll-margin-top:calc(var(--spacing) * 4)}.scroll-mt-20{scroll-margin-top:calc(var(--spacing) * 20)}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\\[1rem_1fr_auto_2\\.5rem\\]{grid-template-columns:1rem 1fr auto 2.5rem}.grid-cols-\\[1rem_5rem_10rem_1fr_14rem_2\\.5rem_1\\.25rem\\]{grid-template-columns:1rem 5rem 10rem 1fr 14rem 2.5rem 1.25rem}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-y-0\\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.self-center{align-self:center}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-amber-200{border-color:var(--color-amber-200)}.border-current{border-color:currentColor}.border-green-500{border-color:var(--color-green-500)}.border-rose-300{border-color:var(--color-rose-300)}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-200\\/60{border-color:#e2e8f099}@supports (color:color-mix(in lab, red, red)){.border-slate-200\\/60{border-color:color-mix(in oklab, var(--color-slate-200) 60%, transparent)}}.border-slate-300{border-color:var(--color-slate-300)}.border-slate-400{border-color:var(--color-slate-400)}.border-t-transparent{border-top-color:#0000}.border-l-green-500{border-left-color:var(--color-green-500)}.border-l-orange-500{border-left-color:var(--color-orange-500)}.border-l-sky-400{border-left-color:var(--color-sky-400)}.border-l-slate-400{border-left-color:var(--color-slate-400)}.border-l-violet-500{border-left-color:var(--color-violet-500)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-300\\/25{background-color:#ffd23640}@supports (color:color-mix(in lab, red, red)){.bg-amber-300\\/25{background-color:color-mix(in oklab, var(--color-amber-300) 25%, transparent)}}.bg-amber-500{background-color:var(--color-amber-500)}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\\/50{background-color:color-mix(in oklab, var(--color-black) 50%, transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-500\\/25{background-color:#00bb7f40}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\\/25{background-color:color-mix(in oklab, var(--color-emerald-500) 25%, transparent)}}.bg-emerald-600\\/70{background-color:#009767b3}@supports (color:color-mix(in lab, red, red)){.bg-emerald-600\\/70{background-color:color-mix(in oklab, var(--color-emerald-600) 70%, transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-rose-50{background-color:var(--color-rose-50)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-100\\/70{background-color:#f1f5f9b3}@supports (color:color-mix(in lab, red, red)){.bg-slate-100\\/70{background-color:color-mix(in oklab, var(--color-slate-100) 70%, transparent)}}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-800{background-color:var(--color-slate-800)}.bg-slate-900\\/50{background-color:#0f172b80}@supports (color:color-mix(in lab, red, red)){.bg-slate-900\\/50{background-color:color-mix(in oklab, var(--color-slate-900) 50%, transparent)}}.bg-teal-100{background-color:var(--color-teal-100)}.bg-violet-100{background-color:var(--color-violet-100)}.bg-white{background-color:var(--color-white)}.p-1{padding:var(--spacing)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:var(--spacing)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-0{padding-block:0}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-24{padding-top:calc(var(--spacing) * 24)}.pr-0\\.5{padding-right:calc(var(--spacing) * .5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-\\[-0\\.1em\\]{vertical-align:-.1em}.align-\\[-1px\\]{vertical-align:-1px}.font-mono{font-family:var(--font-mono)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[13px\\]{font-size:13px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-normal{--tw-tracking:var(--tracking-normal);letter-spacing:var(--tracking-normal)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.\\[overflow-wrap\\:anywhere\\]{overflow-wrap:anywhere}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-700{color:var(--color-amber-700)}.text-amber-800{color:var(--color-amber-800)}.text-amber-900{color:var(--color-amber-900)}.text-blue-600{color:var(--color-blue-600)}.text-blue-800{color:var(--color-blue-800)}.text-emerald-700{color:var(--color-emerald-700)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-rose-600{color:var(--color-rose-600)}.text-rose-700{color:var(--color-rose-700)}.text-rose-800{color:var(--color-rose-800)}.text-sky-600{color:var(--color-sky-600)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-slate-900{color:var(--color-slate-900)}.text-teal-800{color:var(--color-teal-800)}.text-violet-700{color:var(--color-violet-700)}.text-violet-800{color:var(--color-violet-800)}.text-white{color:var(--color-white)}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.no-underline{text-decoration-line:none}.accent-slate-500{accent-color:var(--color-slate-500)}.opacity-0{opacity:0}.opacity-60{opacity:.6}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[\\.\\.\\.\\]{--tw-shadow:...;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_0_4px_1px_rgba\\(16\\,185\\,129\\,0\\.9\\)\\,0_0_10px_3px_rgba\\(16\\,185\\,129\\,0\\.5\\)\\]{--tw-shadow:0 0 4px 1px var(--tw-shadow-color,#10b981e6), 0 0 10px 3px var(--tw-shadow-color,#10b98180);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[\u2026\\]{--tw-shadow:\u2026;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-blue-500{--tw-ring-color:var(--color-blue-500)}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.select-all{-webkit-user-select:all;user-select:all}.select-text{-webkit-user-select:text;user-select:text}.ring-inset{--tw-ring-inset:inset}.last\\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}@media (hover:hover){.hover\\:border-slate-400:hover{border-color:var(--color-slate-400)}.hover\\:bg-black\\/5:hover{background-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-black\\/5:hover{background-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\\:text-slate-700:hover{color:var(--color-slate-700)}.hover\\:text-slate-800:hover{color:var(--color-slate-800)}.hover\\:text-slate-900:hover{color:var(--color-slate-900)}.hover\\:underline:hover{text-decoration-line:underline}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\\:ring-green-500:focus-visible{--tw-ring-color:var(--color-green-500)}.focus-visible\\:outline:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\\:outline-offset-1:focus-visible{outline-offset:1px}.disabled\\:opacity-40:disabled{opacity:.4}.data-\\[state\\=checked\\]\\:border-green-600[data-state=checked]{border-color:var(--color-green-600)}.data-\\[state\\=checked\\]\\:bg-green-600[data-state=checked]{background-color:var(--color-green-600)}@media (prefers-reduced-motion:reduce){.motion-reduce\\:hidden{display:none}.motion-reduce\\:animate-none{animation:none}.motion-reduce\\:shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.motion-reduce\\:shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}@media not all and (width>=40rem){.max-sm\\:hidden{display:none}.max-sm\\:flex-wrap{flex-wrap:wrap}.max-sm\\:break-all{word-break:break-all}.max-sm\\:whitespace-normal{white-space:normal}}@media (width>=40rem){.sm\\:absolute{position:absolute}.sm\\:top-1\\/2{top:50%}.sm\\:top-2{top:calc(var(--spacing) * 2)}.sm\\:left-0{left:0}.sm\\:left-1{left:var(--spacing)}.sm\\:col-start-2{grid-column-start:2}.sm\\:col-start-3{grid-column-start:3}.sm\\:col-end-\\[-1\\]{grid-column-end:-1}.sm\\:grid{display:grid}.sm\\:hidden{display:none}.sm\\:h-5{height:calc(var(--spacing) * 5)}.sm\\:w-auto{width:auto}.sm\\:-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:items-baseline{align-items:baseline}.sm\\:gap-x-3{column-gap:calc(var(--spacing) * 3)}}@media (width>=64rem){.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width>=80rem){.xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (prefers-color-scheme:dark){.dark\\:border-amber-900{border-color:var(--color-amber-900)}.dark\\:border-green-500{border-color:var(--color-green-500)}.dark\\:border-rose-800{border-color:var(--color-rose-800)}.dark\\:border-slate-500{border-color:var(--color-slate-500)}.dark\\:border-slate-700{border-color:var(--color-slate-700)}.dark\\:border-slate-800{border-color:var(--color-slate-800)}.dark\\:border-slate-900{border-color:var(--color-slate-900)}.dark\\:bg-amber-400{background-color:var(--color-amber-400)}.dark\\:bg-amber-400\\/20{background-color:#fcbb0033}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-amber-400\\/20{background-color:color-mix(in oklab, var(--color-amber-400) 20%, transparent)}}.dark\\:bg-amber-900\\/40{background-color:#7b330666}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-amber-900\\/40{background-color:color-mix(in oklab, var(--color-amber-900) 40%, transparent)}}.dark\\:bg-amber-950{background-color:var(--color-amber-950)}.dark\\:bg-amber-950\\/40{background-color:#46190166}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-amber-950\\/40{background-color:color-mix(in oklab, var(--color-amber-950) 40%, transparent)}}.dark\\:bg-blue-900\\/40{background-color:#1c398e66}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-blue-900\\/40{background-color:color-mix(in oklab, var(--color-blue-900) 40%, transparent)}}.dark\\:bg-emerald-400{background-color:var(--color-emerald-400)}.dark\\:bg-emerald-400\\/25{background-color:#00d29440}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-emerald-400\\/25{background-color:color-mix(in oklab, var(--color-emerald-400) 25%, transparent)}}.dark\\:bg-emerald-400\\/60{background-color:#00d29499}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-emerald-400\\/60{background-color:color-mix(in oklab, var(--color-emerald-400) 60%, transparent)}}.dark\\:bg-red-900\\/40{background-color:#82181a66}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-red-900\\/40{background-color:color-mix(in oklab, var(--color-red-900) 40%, transparent)}}.dark\\:bg-red-950\\/40{background-color:#46080966}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-red-950\\/40{background-color:color-mix(in oklab, var(--color-red-950) 40%, transparent)}}.dark\\:bg-rose-950\\/40{background-color:#4d021866}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-rose-950\\/40{background-color:color-mix(in oklab, var(--color-rose-950) 40%, transparent)}}.dark\\:bg-slate-200{background-color:var(--color-slate-200)}.dark\\:bg-slate-800{background-color:var(--color-slate-800)}.dark\\:bg-slate-900{background-color:var(--color-slate-900)}.dark\\:bg-slate-900\\/40{background-color:#0f172b66}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-slate-900\\/40{background-color:color-mix(in oklab, var(--color-slate-900) 40%, transparent)}}.dark\\:bg-slate-900\\/50{background-color:#0f172b80}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-slate-900\\/50{background-color:color-mix(in oklab, var(--color-slate-900) 50%, transparent)}}.dark\\:bg-slate-900\\/60{background-color:#0f172b99}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-slate-900\\/60{background-color:color-mix(in oklab, var(--color-slate-900) 60%, transparent)}}.dark\\:bg-slate-950{background-color:var(--color-slate-950)}.dark\\:bg-slate-950\\/70{background-color:#020618b3}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-slate-950\\/70{background-color:color-mix(in oklab, var(--color-slate-950) 70%, transparent)}}.dark\\:bg-teal-900\\/40{background-color:#0b4f4a66}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-teal-900\\/40{background-color:color-mix(in oklab, var(--color-teal-900) 40%, transparent)}}.dark\\:bg-violet-900\\/40{background-color:#4d179a66}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-violet-900\\/40{background-color:color-mix(in oklab, var(--color-violet-900) 40%, transparent)}}.dark\\:bg-violet-950\\/50{background-color:#2f0d6880}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-violet-950\\/50{background-color:color-mix(in oklab, var(--color-violet-950) 50%, transparent)}}.dark\\:text-amber-200{color:var(--color-amber-200)}.dark\\:text-amber-300{color:var(--color-amber-300)}.dark\\:text-amber-400{color:var(--color-amber-400)}.dark\\:text-amber-500{color:var(--color-amber-500)}.dark\\:text-blue-200{color:var(--color-blue-200)}.dark\\:text-blue-400{color:var(--color-blue-400)}.dark\\:text-emerald-400{color:var(--color-emerald-400)}.dark\\:text-emerald-500{color:var(--color-emerald-500)}.dark\\:text-red-200{color:var(--color-red-200)}.dark\\:text-red-300{color:var(--color-red-300)}.dark\\:text-red-400{color:var(--color-red-400)}.dark\\:text-rose-300{color:var(--color-rose-300)}.dark\\:text-rose-400{color:var(--color-rose-400)}.dark\\:text-sky-400{color:var(--color-sky-400)}.dark\\:text-slate-100{color:var(--color-slate-100)}.dark\\:text-slate-200{color:var(--color-slate-200)}.dark\\:text-slate-300{color:var(--color-slate-300)}.dark\\:text-slate-400{color:var(--color-slate-400)}.dark\\:text-slate-500{color:var(--color-slate-500)}.dark\\:text-slate-600{color:var(--color-slate-600)}.dark\\:text-slate-700{color:var(--color-slate-700)}.dark\\:text-slate-900{color:var(--color-slate-900)}.dark\\:text-teal-200{color:var(--color-teal-200)}.dark\\:text-violet-200{color:var(--color-violet-200)}.dark\\:text-violet-300{color:var(--color-violet-300)}.dark\\:shadow-\\[0_0_4px_1px_rgba\\(52\\,211\\,153\\,0\\.9\\)\\,0_0_12px_4px_rgba\\(52\\,211\\,153\\,0\\.55\\)\\]{--tw-shadow:0 0 4px 1px var(--tw-shadow-color,#34d399e6), 0 0 12px 4px var(--tw-shadow-color,#34d3998c);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.dark\\:ring-offset-slate-950{--tw-ring-offset-color:var(--color-slate-950)}@media (hover:hover){.dark\\:hover\\:border-slate-600:hover{border-color:var(--color-slate-600)}.dark\\:hover\\:bg-slate-800:hover{background-color:var(--color-slate-800)}.dark\\:hover\\:bg-slate-900:hover{background-color:var(--color-slate-900)}.dark\\:hover\\:bg-white\\/10:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\\:hover\\:bg-white\\/10:hover{background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.dark\\:hover\\:text-slate-100:hover{color:var(--color-slate-100)}.dark\\:hover\\:text-slate-200:hover{color:var(--color-slate-200)}}}}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}html,body{min-height:100%;margin:0}body{background:var(--color-slate-50);color:var(--color-slate-900)}@media (prefers-color-scheme:dark){body{background:var(--color-slate-950);color:var(--color-slate-100)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes travel{0%{transform:translate(0)}50%{transform:translateX(var(--tw-travel,.75rem))}to{transform:translate(0)}}\n/*$vite$:1*/</style>\n </head>\n <body>\n <div id="root"></div>\n </body>\n</html>\n';var Xx=xh.dirname(Gx(import.meta.url)),Iu=Number(process.env.PORT??7777),$e=process.env.HOST??"localhost",Lt=Iu,fe={repoRoot:process.env.PLOT_REPO_ROOT??process.cwd(),scriptsDir:process.env.PLOT_SCRIPTS_DIR??xh.resolve(Xx,".."),repairEnabled:nm()},Qx=[{prefix:"/plan/",label:"Plan",render:Am},{prefix:"/story/",label:"Story",render:Um}];function Yx(e,n){let r=new URL(e.url??"/",`http://${$e}:${Lt}`),t=[{path:"/api/approve",verb:"approving",handle:eh},{path:"/api/continue",verb:"continuing",handle:Jm},{path:"/api/dispatch",verb:"dispatching",handle:Em},{path:"/api/idea",verb:"creating an idea",handle:fh},{path:"/api/commission",verb:"commissioning design",handle:bh},{path:"/api/claim",verb:"claiming",handle:qm},{path:"/api/transition",verb:"transitioning",handle:rh}].find(a=>a.path===r.pathname);if(t&&e.method==="POST"){if(ah(n,$e))return;t.handle(e,n,{...fe,host:$e,port:Lt}).catch(a=>{console.error(`Error ${t.verb}:`,a),n.headersSent||n.writeHead(500,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:a instanceof Error?a.message:String(a)}))});return}if(e.method!=="GET"){n.writeHead(405),n.end("Method Not Allowed");return}if(r.pathname==="/api/board"){try{let a={...Rm(fe),dispatch:At($e),server:lh(fe,Lt),approve:Gm($e),continue:Hm($e),idea:Ri($e),commission:mh($e)};n.writeHead(200,{"Content-Type":"application/json"}),n.end(JSON.stringify(a))}catch(a){console.error("Error building board:",a),n.writeHead(500,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:a instanceof Error?a.message:String(a)}))}return}if(r.pathname==="/api/fleet"){try{n.writeHead(200,{"Content-Type":"application/json"}),n.end(JSON.stringify(Oi(fe)))}catch(a){console.error("Error building fleet:",a),n.writeHead(500,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:a instanceof Error?a.message:String(a)}))}return}if(r.pathname==="/api/attention"){try{n.writeHead(200,{"Content-Type":"application/json"}),n.end(JSON.stringify(Zm(fe)))}catch(a){console.error("Error building attention:",a),n.writeHead(500,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:a instanceof Error?a.message:String(a)}))}return}if(r.pathname==="/api/worker-log"){let a=r.searchParams.get("branch");if(!a){n.writeHead(400,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:"branch is required"}));return}try{let l=zm(fe,a),s=!l.ok&&l.reason==="no-worktree"?404:200;n.writeHead(s,{"Content-Type":"application/json"}),n.end(JSON.stringify(l))}catch(l){console.error("Error reading worker log:",l),n.writeHead(500,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:l instanceof Error?l.message:String(l)}))}return}if(r.pathname==="/api/dispatch-log"){let a=r.searchParams.get("slug");if(!a||!ee.test(a)){n.writeHead(400,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:"slug must be a plan slug"}));return}try{n.writeHead(200,{"Content-Type":"application/json"}),n.end(JSON.stringify(Pm(fe,a)))}catch(l){console.error("Error reading dispatch log:",l),n.writeHead(500,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:l instanceof Error?l.message:String(l)}))}return}if(r.pathname==="/api/agent-panel"){let a=r.searchParams.get("branch");if(!a){n.writeHead(400,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:"branch is required"}));return}try{let l=Wm(fe,a);n.writeHead(l.ok?200:404,{"Content-Type":"application/json"}),n.end(JSON.stringify(l))}catch(l){console.error("Error building agent panel:",l),n.writeHead(500,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:l instanceof Error?l.message:String(l)}))}return}if(r.pathname.startsWith("/api/approve/")){let a=r.pathname.slice(13);n.writeHead(ee.test(a)?200:400,{"Content-Type":"application/json"}),n.end(ee.test(a)?JSON.stringify(Ym(fe,a)):JSON.stringify({error:"slug must be a plan slug"}));return}if(r.pathname.startsWith("/api/idea/")){let a=r.pathname.slice(10),l=Number(a),s=/^[0-9]{1,9}$/.test(a)&&Number.isInteger(l)&&l>0;n.writeHead(s?200:400,{"Content-Type":"application/json"}),n.end(JSON.stringify(s?ph(fe,l):{error:"number must be an issue number"}));return}if(r.pathname.startsWith("/api/commission/")){let a=r.pathname.slice(16);n.writeHead(ee.test(a)?200:400,{"Content-Type":"application/json"}),n.end(ee.test(a)?JSON.stringify(vh(fe,a)):JSON.stringify({error:"slug must be a plan slug"}));return}let i=Qx.find(a=>r.pathname.startsWith(a.prefix));if(i){let a=r.searchParams.get("embed")==="1";try{let l=decodeURIComponent(r.pathname.slice(i.prefix.length)),s=i.render(fe,l,{embed:a});if(s===null){n.writeHead(404,{"Content-Type":"text/plain; charset=utf-8"}),n.end(`${i.label} not found`);return}n.writeHead(200,{"Content-Type":"text/html; charset=utf-8","Content-Security-Policy":"script-src 'none'"}),n.end(s)}catch(l){if(l instanceof URIError){n.writeHead(400,{"Content-Type":"text/plain; charset=utf-8"}),n.end("Bad request");return}console.error(`Error rendering ${i.label.toLowerCase()}:`,l),n.writeHead(500,{"Content-Type":"text/plain; charset=utf-8"}),n.end(`Error rendering ${i.label.toLowerCase()}`)}return}if(r.pathname==="/"||r.pathname==="/index.html"){n.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),n.end(yh);return}n.writeHead(404),n.end("Not Found")}var Eu=qx.createServer(Yx);Eu.on("error",e=>{throw e.code==="EADDRINUSE"&&(console.log(`Plot board already running at http://localhost:${Iu}`),process.exit(0)),e});sh();Eu.listen(Iu,$e,()=>{let e=Eu.address();if(e&&typeof e=="object"&&(Lt=e.port),console.log(`Plot board: http://localhost:${Lt}`),$e==="0.0.0.0")try{let n=Kx("tailscale",["ip","-4"],{encoding:"utf8"}).trim();n&&console.log(` tailscale: http://${n}:${Lt}`)}catch{}});
208
+ `,"utf8"),de.writeFileSync(z,"1","utf8")}catch{}}),de.closeSync(D),a(202,{ok:!0,slug:c,prompt:v,log:x})}var yh='<!doctype html>\n<html lang="en">\n <head>\n <meta charset="UTF-8" />\n <meta name="viewport" content="width=device-width, initial-scale=1" />\n <link\n rel="icon"\n href="data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 16 16\'%3E%3Crect x=\'1\' y=\'2\' width=\'4\' height=\'12\' rx=\'1\' fill=\'%2394a3b8\'/%3E%3Crect x=\'6\' y=\'2\' width=\'4\' height=\'9\' rx=\'1\' fill=\'%2322c55e\'/%3E%3Crect x=\'11\' y=\'2\' width=\'4\' height=\'6\' rx=\'1\' fill=\'%238b5cf6\'/%3E%3C/svg%3E"\n />\n <title>Plot board</title>\n <script type="module" crossorigin>var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ee(e,t){return E(e.type,t,e.props)}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function te(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var O=/\\/+/g;function k(e,t){return typeof e==`object`&&e&&e.key!=null?te(``+e.key):t.toString(36)}function A(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ne(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ne(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+k(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(O,`$&/`)+`/`),ne(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=ee(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(O,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+k(a,u),c+=ne(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+k(a,u++),c+=ne(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ne(A(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function re(e,t,n){if(e==null)return e;var r=[],i=0;return ne(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ie(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var j=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},M={map:re,forEach:function(e,t,n){re(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return re(e,function(){t++}),t},toArray:function(e){return re(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=M,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ie}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,j)}catch(e){j(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.7`})),u=o(((e,t)=>{t.exports=l()})),d=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,D());else{var t=n(l);t!==null&&k(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function ee(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&k(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?D():S=!1}}}var D;if(typeof y==`function`)D=function(){y(ee)};else if(typeof MessageChannel<`u`){var te=new MessageChannel,O=te.port2;te.port1.onmessage=ee,D=function(){O.postMessage(null)}}else D=function(){_(ee,0)};function k(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,k(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.7`})),m=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=f(),n=u(),r=m();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function d(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),ee=Symbol.for(`react.memo`),D=Symbol.for(`react.lazy`),te=Symbol.for(`react.activity`),O=Symbol.for(`react.memo_cache_sentinel`),k=Symbol.iterator;function A(e){return typeof e!=`object`||!e?null:(e=k&&e[k]||e[`@@iterator`],typeof e==`function`?e:null)}var ne=Symbol.for(`react.client.reference`);function re(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case te:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ee:return t=e.displayName||null,t===null?re(e.type)||`Memo`:t;case D:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var ie=Array.isArray,j=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},oe=[],se=-1;function ce(e){return{current:e}}function N(e){0>se||(e.current=oe[se],oe[se]=null,se--)}function P(e,t){se++,oe[se]=e.current,e.current=t}var le=ce(null),ue=ce(null),de=ce(null),fe=ce(null);function pe(e,t){switch(P(de,t),P(ue,e),P(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}N(le),P(le,e)}function me(){N(le),N(ue),N(de)}function he(e){e.memoizedState!==null&&P(fe,e);var t=le.current,n=Hd(t,e.type);t!==n&&(P(ue,e),P(le,n))}function ge(e){ue.current===e&&(N(le),N(ue)),fe.current===e&&(N(fe),Qf._currentValue=ae)}var _e,ve;function ye(e){if(_e===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\\n( *(at )?)/);_e=t&&t[1]||``,ve=-1<e.stack.indexOf(`\n at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`\n`+_e+e+ve}var be=!1;function xe(e,t){if(!e||be)return``;be=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`\n`),l=s.split(`\n`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`\n`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{be=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ye(n):``}function Se(e,t){switch(e.tag){case 26:case 27:case 5:return ye(e.type);case 16:return ye(`Lazy`);case 13:return e.child!==t&&t!==null?ye(`Suspense Fallback`):ye(`Suspense`);case 19:return ye(`SuspenseList`);case 0:case 15:return xe(e.type,!1);case 11:return xe(e.type.render,!1);case 1:return xe(e.type,!0);case 31:return ye(`Activity`);default:return``}}function Ce(e){try{var t=``,n=null;do t+=Se(e,n),n=e,e=e.return;while(e);return t}catch(e){return`\nError generating stack: `+e.message+`\n`+e.stack}}var we=Object.prototype.hasOwnProperty,Te=t.unstable_scheduleCallback,Ee=t.unstable_cancelCallback,De=t.unstable_shouldYield,Oe=t.unstable_requestPaint,ke=t.unstable_now,Ae=t.unstable_getCurrentPriorityLevel,je=t.unstable_ImmediatePriority,Me=t.unstable_UserBlockingPriority,Ne=t.unstable_NormalPriority,Pe=t.unstable_LowPriority,Fe=t.unstable_IdlePriority,Ie=t.log,Le=t.unstable_setDisableYieldValue,Re=null,ze=null;function Be(e){if(typeof Ie==`function`&&Le(e),ze&&typeof ze.setStrictMode==`function`)try{ze.setStrictMode(Re,e)}catch{}}var Ve=Math.clz32?Math.clz32:We,He=Math.log,Ue=Math.LN2;function We(e){return e>>>=0,e===0?32:31-(He(e)/Ue|0)|0}var Ge=256,Ke=262144,qe=4194304;function Je(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ye(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Je(n))):i=Je(o):i=Je(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Je(n))):i=Je(o)):i=Je(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Xe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ze(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qe(){var e=qe;return qe<<=1,!(qe&62914560)&&(qe=4194304),e}function $e(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function et(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function F(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ve(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&tt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function tt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ve(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function nt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ve(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function rt(e,t){var n=t&-t;return n=n&42?1:it(n),(n&(e.suspendedLanes|t))===0?n:0}function it(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function at(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ot(){var e=M.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function st(e,t){var n=M.p;try{return M.p=e,t()}finally{M.p=n}}var ct=Math.random().toString(36).slice(2),lt=`__reactFiber$`+ct,ut=`__reactProps$`+ct,dt=`__reactContainer$`+ct,I=`__reactEvents$`+ct,ft=`__reactListeners$`+ct,pt=`__reactHandles$`+ct,mt=`__reactResources$`+ct,ht=`__reactMarker$`+ct;function gt(e){delete e[lt],delete e[ut],delete e[I],delete e[ft],delete e[pt]}function _t(e){var t=e[lt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[dt]||n[lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[lt])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function vt(e){if(e=e[lt]||e[dt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function L(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function yt(e){var t=e[mt];return t||=e[mt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function bt(e){e[ht]=!0}var xt=new Set,St={};function Ct(e,t){wt(e,t),wt(e+`Capture`,t)}function wt(e,t){for(St[e]=t,e=0;e<t.length;e++)xt.add(t[e])}var Tt=RegExp(`^[:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD][:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]*$`),Et={},Dt={};function Ot(e){return we.call(Dt,e)?!0:we.call(Et,e)?!1:Tt.test(e)?Dt[e]=!0:(Et[e]=!0,!1)}function kt(e,t,n){if(Ot(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function At(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function jt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Mt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Nt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Pt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ft(e){if(!e._valueTracker){var t=Nt(e)?`checked`:`value`;e._valueTracker=Pt(e,t,``+e[t])}}function It(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Nt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Lt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Rt=/[\\n"\\\\]/g;function zt(e){return e.replace(Rt,function(e){return`\\\\`+e.charCodeAt(0).toString(16)+` `})}function Bt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Mt(t)):e.value!==``+Mt(t)&&(e.value=``+Mt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Ht(e,o,Mt(n)):Ht(e,o,Mt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Mt(s):e.removeAttribute(`name`)}function Vt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ft(e);return}n=n==null?``:``+Mt(n),t=t==null?n:``+Mt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ft(e)}function Ht(e,t,n){t===`number`&&Lt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ut(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Mt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Wt(e,t,n){if(t!=null&&(t=``+Mt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Mt(n)}function Gt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ie(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Mt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ft(e)}function Kt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Jt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||qt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Yt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Jt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Jt(e,o,t[o])}function Xt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Zt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Qt=/^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*:/i;function $t(e){return Qt.test(``+e)?`javascript:throw new Error(\'React has blocked a javascript: URL as a security precaution.\')`:e}function en(){}var tn=null;function nn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rn=null,an=null;function on(e){var t=vt(e);if(t&&(e=t.stateNode)){var n=e[ut]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Bt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+zt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ut]||null;if(!a)throw Error(i(90));Bt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&It(r)}break a;case`textarea`:Wt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ut(e,!!n.multiple,t,!1)}}}var sn=!1;function cn(e,t,n){if(sn)return e(t,n);sn=!0;try{return e(t)}finally{if(sn=!1,(rn!==null||an!==null)&&(yu(),rn&&(t=rn,e=an,an=rn=null,on(t),e)))for(t=0;t<e.length;t++)on(e[t])}}function ln(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ut]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var un=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),dn=!1;if(un)try{var fn={};Object.defineProperty(fn,"passive",{get:function(){dn=!0}}),window.addEventListener(`test`,fn,fn),window.removeEventListener(`test`,fn,fn)}catch{dn=!1}var pn=null,mn=null,hn=null;function gn(){if(hn)return hn;var e,t=mn,n=t.length,r,i=`value`in pn?pn.value:pn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return hn=i.slice(e,1<r?1-r:void 0)}function _n(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vn(){return!0}function yn(){return!1}function bn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?vn:yn,this.isPropagationStopped=yn,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=vn)},persist:function(){},isPersistent:vn}),t}var xn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sn=bn(xn),Cn=h({},xn,{view:0,detail:0}),wn=bn(Cn),Tn,En,Dn,On=h({},Cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Dn&&(Dn&&e.type===`mousemove`?(Tn=e.screenX-Dn.screenX,En=e.screenY-Dn.screenY):En=Tn=0,Dn=e),Tn)},movementY:function(e){return`movementY`in e?e.movementY:En}}),kn=bn(On),An=bn(h({},On,{dataTransfer:0})),jn=bn(h({},Cn,{relatedTarget:0})),Mn=bn(h({},xn,{animationName:0,elapsedTime:0,pseudoElement:0})),Nn=bn(h({},xn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Pn=bn(h({},xn,{data:0})),Fn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},In={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Ln={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Rn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ln[e])?!!t[e]:!1}function zn(){return Rn}var Bn=bn(h({},Cn,{key:function(e){if(e.key){var t=Fn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=_n(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?In[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zn,charCode:function(e){return e.type===`keypress`?_n(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?_n(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Vn=bn(h({},On,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Hn=bn(h({},Cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zn})),Un=bn(h({},xn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Wn=bn(h({},On,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Gn=bn(h({},xn,{newState:0,oldState:0})),Kn=[9,13,27,32],qn=un&&`CompositionEvent`in window,Jn=null;un&&`documentMode`in document&&(Jn=document.documentMode);var Yn=un&&`TextEvent`in window&&!Jn,Xn=un&&(!qn||Jn&&8<Jn&&11>=Jn),Zn=` `,Qn=!1;function $n(e,t){switch(e){case`keyup`:return Kn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function er(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var tr=!1;function nr(e,t){switch(e){case`compositionend`:return er(t);case`keypress`:return t.which===32?(Qn=!0,Zn):null;case`textInput`:return e=t.data,e===Zn&&Qn?null:e;default:return null}}function rr(e,t){if(tr)return e===`compositionend`||!qn&&$n(e,t)?(e=gn(),hn=mn=pn=null,tr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Xn&&t.locale!==`ko`?null:t.data;default:return null}}var ir={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!ir[e.type]:t===`textarea`}function or(e,t,n,r){rn?an?an.push(r):an=[r]:rn=r,t=Ed(t,`onChange`),0<t.length&&(n=new Sn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var sr=null,cr=null;function lr(e){yd(e,0)}function ur(e){if(It(L(e)))return e}function dr(e,t){if(e===`change`)return t}var fr=!1;if(un){var pr;if(un){var mr=`oninput`in document;if(!mr){var hr=document.createElement(`div`);hr.setAttribute(`oninput`,`return;`),mr=typeof hr.oninput==`function`}pr=mr}else pr=!1;fr=pr&&(!document.documentMode||9<document.documentMode)}function gr(){sr&&(sr.detachEvent(`onpropertychange`,_r),cr=sr=null)}function _r(e){if(e.propertyName===`value`&&ur(cr)){var t=[];or(t,cr,e,nn(e)),cn(lr,t)}}function vr(e,t,n){e===`focusin`?(gr(),sr=t,cr=n,sr.attachEvent(`onpropertychange`,_r)):e===`focusout`&&gr()}function yr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return ur(cr)}function br(e,t){if(e===`click`)return ur(t)}function xr(e,t){if(e===`input`||e===`change`)return ur(t)}function Sr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Cr=typeof Object.is==`function`?Object.is:Sr;function wr(e,t){if(Cr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!we.call(t,i)||!Cr(e[i],t[i]))return!1}return!0}function Tr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Er(e,t){var n=Tr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Tr(n)}}function Dr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Or(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lt(e.document)}return t}function kr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Ar=un&&`documentMode`in document&&11>=document.documentMode,jr=null,Mr=null,Nr=null,Pr=!1;function Fr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Pr||jr==null||jr!==Lt(r)||(r=jr,`selectionStart`in r&&kr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Nr&&wr(Nr,r)||(Nr=r,r=Ed(Mr,`onSelect`),0<r.length&&(t=new Sn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=jr)))}function Ir(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Lr={animationend:Ir(`Animation`,`AnimationEnd`),animationiteration:Ir(`Animation`,`AnimationIteration`),animationstart:Ir(`Animation`,`AnimationStart`),transitionrun:Ir(`Transition`,`TransitionRun`),transitionstart:Ir(`Transition`,`TransitionStart`),transitioncancel:Ir(`Transition`,`TransitionCancel`),transitionend:Ir(`Transition`,`TransitionEnd`)},Rr={},zr={};un&&(zr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Lr.animationend.animation,delete Lr.animationiteration.animation,delete Lr.animationstart.animation),`TransitionEvent`in window||delete Lr.transitionend.transition);function Br(e){if(Rr[e])return Rr[e];if(!Lr[e])return e;var t=Lr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in zr)return Rr[e]=t[n];return e}var Vr=Br(`animationend`),Hr=Br(`animationiteration`),Ur=Br(`animationstart`),Wr=Br(`transitionrun`),Gr=Br(`transitionstart`),Kr=Br(`transitioncancel`),qr=Br(`transitionend`),Jr=new Map,Yr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Yr.push(`scrollEnd`);function Xr(e,t){Jr.set(e,t),Ct(t,[e])}var Zr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Qr=[],$r=0,ei=0;function ti(){for(var e=$r,t=ei=$r=0;t<e;){var n=Qr[t];Qr[t++]=null;var r=Qr[t];Qr[t++]=null;var i=Qr[t];Qr[t++]=null;var a=Qr[t];if(Qr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ai(n,i,a)}}function ni(e,t,n,r){Qr[$r++]=e,Qr[$r++]=t,Qr[$r++]=n,Qr[$r++]=r,ei|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ri(e,t,n,r){return ni(e,t,n,r),oi(e)}function ii(e,t){return ni(e,null,null,t),oi(e)}function ai(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ve(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function oi(e){if(50<uu)throw uu=0,du=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var si={};function ci(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function li(e,t,n,r){return new ci(e,t,n,r)}function ui(e){return e=e.prototype,!(!e||!e.isReactComponent)}function di(e,t){var n=e.alternate;return n===null?(n=li(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function fi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function R(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ui(e)&&(s=1);else if(typeof e==`string`)s=Uf(e,n,le.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case te:return e=li(31,n,t,a),e.elementType=te,e.lanes=o,e;case y:return pi(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=li(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=li(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=li(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case ee:s=14;break a;case D:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=li(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function pi(e,t,n,r){return e=li(7,e,r,t),e.lanes=n,e}function mi(e,t,n){return e=li(6,e,null,t),e.lanes=n,e}function hi(e){var t=li(18,null,null,0);return t.stateNode=e,t}function gi(e,t,n){return t=li(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _i=new WeakMap;function vi(e,t){if(typeof e==`object`&&e){var n=_i.get(e);return n===void 0?(t={value:e,source:t,stack:Ce(t)},_i.set(e,t),t):n}return{value:e,source:t,stack:Ce(t)}}var yi=[],bi=0,xi=null,Si=0,Ci=[],z=0,wi=null,Ti=1,Ei=``;function Di(e,t){yi[bi++]=Si,yi[bi++]=xi,xi=e,Si=t}function Oi(e,t,n){Ci[z++]=Ti,Ci[z++]=Ei,Ci[z++]=wi,wi=e;var r=Ti;e=Ei;var i=32-Ve(r)-1;r&=~(1<<i),n+=1;var a=32-Ve(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ti=1<<32-Ve(t)+i|n<<i|r,Ei=a+e}else Ti=1<<a|n<<i|r,Ei=e}function ki(e){e.return!==null&&(Di(e,1),Oi(e,1,0))}function Ai(e){for(;e===xi;)xi=yi[--bi],yi[bi]=null,Si=yi[--bi],yi[bi]=null;for(;e===wi;)wi=Ci[--z],Ci[z]=null,Ei=Ci[--z],Ci[z]=null,Ti=Ci[--z],Ci[z]=null}function ji(e,t){Ci[z++]=Ti,Ci[z++]=Ei,Ci[z++]=wi,Ti=t.id,Ei=t.overflow,wi=e}var Mi=null,Ni=null,B=!1,Pi=null,V=!1,Fi=Error(i(519));function Ii(e){throw Hi(vi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Fi}function Li(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[lt]=e,t[ut]=r,n){case`dialog`:Q(`cancel`,t),Q(`close`,t);break;case`iframe`:case`object`:case`embed`:Q(`load`,t);break;case`video`:case`audio`:for(n=0;n<_d.length;n++)Q(_d[n],t);break;case`source`:Q(`error`,t);break;case`img`:case`image`:case`link`:Q(`error`,t),Q(`load`,t);break;case`details`:Q(`toggle`,t);break;case`input`:Q(`invalid`,t),Vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Q(`invalid`,t);break;case`textarea`:Q(`invalid`,t),Gt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Md(t.textContent,n)?(r.popover!=null&&(Q(`beforetoggle`,t),Q(`toggle`,t)),r.onScroll!=null&&Q(`scroll`,t),r.onScrollEnd!=null&&Q(`scrollend`,t),r.onClick!=null&&(t.onclick=en),t=!0):t=!1,t||Ii(e,!0)}function Ri(e){for(Mi=e.return;Mi;)switch(Mi.tag){case 5:case 31:case 13:V=!1;return;case 27:case 3:V=!0;return;default:Mi=Mi.return}}function zi(e){if(e!==Mi)return!1;if(!B)return Ri(e),B=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Ud(e.type,e.memoizedProps)),n=!n),n&&Ni&&Ii(e),Ri(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ni=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ni=uf(e)}else t===27?(t=Ni,Zd(e.type)?(e=lf,lf=null,Ni=e):Ni=t):Ni=Mi?cf(e.stateNode.nextSibling):null;return!0}function Bi(){Ni=Mi=null,B=!1}function Vi(){var e=Pi;return e!==null&&(Ql===null?Ql=e:Ql.push.apply(Ql,e),Pi=null),e}function Hi(e){Pi===null?Pi=[e]:Pi.push(e)}var Ui=ce(null),Wi=null,Gi=null;function Ki(e,t,n){P(Ui,t._currentValue),t._currentValue=n}function qi(e){e._currentValue=Ui.current,N(Ui)}function Ji(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Yi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Ji(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Ji(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Xi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Cr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===fe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}a=a.return}e!==null&&Yi(t,e,n,r),t.flags|=262144}function Zi(e){for(e=e.firstContext;e!==null;){if(!Cr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Qi(e){Wi=e,Gi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $i(e){return ta(Wi,e)}function ea(e,t){return Wi===null&&Qi(e),ta(e,t)}function ta(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Gi===null){if(e===null)throw Error(i(308));Gi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Gi=Gi.next=t;return n}var na=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ra=t.unstable_scheduleCallback,ia=t.unstable_NormalPriority,aa={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oa(){return{controller:new na,data:new Map,refCount:0}}function sa(e){e.refCount--,e.refCount===0&&ra(ia,function(){e.controller.abort()})}var ca=null,la=0,ua=0,da=null;function fa(e,t){if(ca===null){var n=ca=[];la=0,ua=dd(),da={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return la++,t.then(pa,pa),t}function pa(){if(--la===0&&ca!==null){da!==null&&(da.status=`fulfilled`);var e=ca;ca=null,ua=0,da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ma(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ha=j.S;j.S=function(e,t){X=ke(),typeof t==`object`&&t&&typeof t.then==`function`&&fa(e,t),ha!==null&&ha(e,t)};var ga=ce(null);function _a(){var e=ga.current;return e===null?Bl.pooledCache:e}function va(e,t){t===null?P(ga,ga.current):P(ga,t.pool)}function ya(){var e=_a();return e===null?null:{parent:aa._currentValue,pool:e}}var ba=Error(i(460)),xa=Error(i(474)),Sa=Error(i(542)),Ca={then:function(){}};function wa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ta(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(en,en),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ka(e),e;default:if(typeof t.status==`string`)t.then(en,en);else{if(e=Bl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ka(e),e}throw Da=t,ba}}function Ea(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Da=e,ba):e}}var Da=null;function Oa(){if(Da===null)throw Error(i(459));var e=Da;return Da=null,e}function ka(e){if(e===ba||e===Sa)throw Error(i(483))}var Aa=null,ja=0;function Ma(e){var t=ja;return ja+=1,Aa===null&&(Aa=[]),Ta(Aa,e,t)}function Na(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Pa(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Fa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=di(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=mi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===D&&Ea(i)===t.type)?(t=a(t,n.props),Na(t,n),t.return=e,t):(t=R(n.type,n.key,n.props,null,e.mode,r),Na(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=gi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=pi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=R(t.type,t.key,t.props,null,e.mode,n),Na(n,t),n.return=e,n;case v:return t=gi(t,e.mode,n),t.return=e,t;case D:return t=Ea(t),f(e,t,n)}if(ie(t)||A(t))return t=pi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ma(t),n);if(t.$$typeof===C)return f(e,ea(e,t),n);Pa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case D:return n=Ea(n),p(e,t,n,r)}if(ie(n)||A(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ma(n),r);if(n.$$typeof===C)return p(e,t,ea(e,n),r);Pa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case D:return r=Ea(r),m(e,t,n,r,i)}if(ie(r)||A(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ma(r),i);if(r.$$typeof===C)return m(e,t,n,ea(t,r),i);Pa(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),B&&Di(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return B&&Di(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),B&&Di(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),B&&Di(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return B&&Di(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),B&&Di(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===D&&Ea(l)===r.type){n(e,r.sibling),c=a(r,o.props),Na(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=pi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=R(o.type,o.key,o.props,null,e.mode,c),Na(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=gi(o,e.mode,c),c.return=e,e=c}return s(e);case D:return o=Ea(o),b(e,r,o,c)}if(ie(o))return h(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ma(o),c);if(o.$$typeof===C)return b(e,r,ea(e,o),c);Pa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{ja=0;var i=b(e,t,n,r);return Aa=null,i}catch(t){if(t===ba||t===Sa)throw t;var a=li(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ia=Fa(!0),La=Fa(!1),Ra=!1;function za(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ba(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ha(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=oi(e),ai(e,null,n),t}return ni(e,r,t,n),oi(e)}function Ua(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nt(e,n)}}function Wa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ga=!1;function Ka(){if(Ga){var e=da;if(e!==null)throw e}}function qa(e,t,n,r){Ga=!1;var i=e.updateQueue;Ra=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(q&f)===f:(r&f)===f){f!==0&&f===ua&&(Ga=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Ra=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ql|=o,e.lanes=o,e.memoizedState=d}}function Ja(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ya(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ja(n[e],t)}var Xa=ce(null),Za=ce(0);function Qa(e,t){e=Kl,P(Za,e),P(Xa,t),Kl=e|t.baseLanes}function $a(){P(Za,Kl),P(Xa,Xa.current)}function eo(){Kl=Za.current,N(Xa),N(Za)}var to=ce(null),no=null;function ro(e){var t=e.alternate;P(co,co.current&1),P(to,e),no===null&&(t===null||Xa.current!==null||t.memoizedState!==null)&&(no=e)}function io(e){P(co,co.current),P(to,e),no===null&&(no=e)}function ao(e){e.tag===22?(P(co,co.current),P(to,e),no===null&&(no=e)):oo(e)}function oo(){P(co,co.current),P(to,to.current)}function so(e){N(to),no===e&&(no=null),N(co)}var co=ce(0);function lo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var uo=0,H=null,U=null,fo=null,po=!1,mo=!1,ho=!1,go=0,_o=0,vo=null,yo=0;function bo(){throw Error(i(321))}function xo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Cr(e[n],t[n]))return!1;return!0}function So(e,t,n,r,i,a){return uo=a,H=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?zs:Bs,ho=!1,a=n(r,i),ho=!1,mo&&(a=wo(t,n,r,i)),Co(e),a}function Co(e){j.H=Rs;var t=U!==null&&U.next!==null;if(uo=0,fo=U=H=null,po=!1,_o=0,vo=null,t)throw Error(i(300));e===null||rc||(e=e.dependencies,e!==null&&Zi(e)&&(rc=!0))}function wo(e,t,n,r){H=e;var a=0;do{if(mo&&(vo=null),_o=0,mo=!1,25<=a)throw Error(i(301));if(a+=1,fo=U=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}j.H=Vs,o=t(n,r)}while(mo);return o}function To(){var e=j.H,t=e.useState()[0];return t=typeof t.then==`function`?Mo(t):t,e=e.useState()[0],(U===null?null:U.memoizedState)!==e&&(H.flags|=1024),t}function Eo(){var e=go!==0;return go=0,e}function Do(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Oo(e){if(po){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}po=!1}uo=0,fo=U=H=null,mo=!1,_o=go=0,vo=null}function ko(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fo===null?H.memoizedState=fo=e:fo=fo.next=e,fo}function Ao(){if(U===null){var e=H.alternate;e=e===null?null:e.memoizedState}else e=U.next;var t=fo===null?H.memoizedState:fo.next;if(t!==null)fo=t,U=e;else{if(e===null)throw H.alternate===null?Error(i(467)):Error(i(310));U=e,e={memoizedState:U.memoizedState,baseState:U.baseState,baseQueue:U.baseQueue,queue:U.queue,next:null},fo===null?H.memoizedState=fo=e:fo=fo.next=e}return fo}function jo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mo(e){var t=_o;return _o+=1,vo===null&&(vo=[]),e=Ta(vo,e,t),t=H,(fo===null?t.memoizedState:fo.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?zs:Bs),e}function No(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Mo(e);if(e.$$typeof===C)return $i(e)}throw Error(i(438,String(e)))}function Po(e){var t=null,n=H.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=H.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=jo(),H.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=O;return t.index++,n}function Fo(e,t){return typeof t==`function`?t(e):t}function Io(e){return Lo(Ao(),U,e)}function Lo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(uo&f)===f:(q&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ua&&(d=!0);else if((uo&p)===p){u=u.next,p===ua&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,H.lanes|=p,ql|=p;f=u.action,ho&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,H.lanes|=f,ql|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Cr(o,e.memoizedState)&&(rc=!0,d&&(n=da,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ro(e){var t=Ao(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Cr(o,t.memoizedState)||(rc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function zo(e,t,n){var r=H,a=Ao(),o=B;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Cr((U||a).memoizedState,n);if(s&&(a.memoizedState=n,rc=!0),a=a.queue,us(Ho.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||fo!==null&&fo.memoizedState.tag&1){if(r.flags|=2048,as(9,{destroy:void 0},Vo.bind(null,r,a,n,t),null),Bl===null)throw Error(i(349));o||uo&127||Bo(r,t,n)}return n}function Bo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=H.updateQueue,t===null?(t=jo(),H.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Vo(e,t,n,r){t.value=n,t.getSnapshot=r,Uo(t)&&Wo(e)}function Ho(e,t,n){return n(function(){Uo(t)&&Wo(e)})}function Uo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Cr(e,n)}catch{return!0}}function Wo(e){var t=ii(e,2);t!==null&&mu(t,e,2)}function Go(e){var t=ko();if(typeof e==`function`){var n=e;if(e=n(),ho){Be(!0);try{n()}finally{Be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fo,lastRenderedState:e},t}function Ko(e,t,n,r){return e.baseState=n,Lo(e,U,typeof r==`function`?r:Fo)}function qo(e,t,n,r,a){if(Fs(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};j.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Jo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Jo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=j.T,o={};j.T=o;try{var s=n(i,r),c=j.S;c!==null&&c(o,s),Yo(e,t,s)}catch(n){Zo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),j.T=a}}else try{a=n(i,r),Yo(e,t,a)}catch(n){Zo(e,t,n)}}function Yo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Xo(e,t,n)},function(n){return Zo(e,t,n)}):Xo(e,t,n)}function Xo(e,t,n){t.status=`fulfilled`,t.value=n,Qo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Jo(e,n)))}function Zo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Qo(t),t=t.next;while(t!==r)}e.action=null}function Qo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function $o(e,t){return t}function es(e,t){if(B){var n=Bl.formState;if(n!==null){a:{var r=H;if(B){if(Ni){b:{for(var i=Ni,a=V;i.nodeType!==8;){if(!a){i=null;break b}if(i=cf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ni=cf(i.nextSibling),r=i.data===`F!`;break a}}Ii(r)}r=!1}r&&(t=n[0])}}return n=ko(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:t},n.queue=r,n=Ms.bind(null,H,r),r.dispatch=n,r=Go(!1),a=Ps.bind(null,H,!1,r.queue),r=ko(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=qo.bind(null,H,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ts(e){return ns(Ao(),U,e)}function ns(e,t,n){if(t=Lo(e,t,$o)[0],e=Io(Fo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Mo(t)}catch(e){throw e===ba?Sa:e}else r=t;t=Ao();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(H.flags|=2048,as(9,{destroy:void 0},rs.bind(null,i,n),null)),[r,a,e]}function rs(e,t){e.action=t}function is(e){var t=Ao(),n=U;if(n!==null)return ns(t,n,e);Ao(),t=t.memoizedState,n=Ao();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function as(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=H.updateQueue,t===null&&(t=jo(),H.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function os(){return Ao().memoizedState}function ss(e,t,n,r){var i=ko();H.flags|=e,i.memoizedState=as(1|t,{destroy:void 0},n,r===void 0?null:r)}function cs(e,t,n,r){var i=Ao();r=r===void 0?null:r;var a=i.memoizedState.inst;U!==null&&r!==null&&xo(r,U.memoizedState.deps)?i.memoizedState=as(t,a,n,r):(H.flags|=e,i.memoizedState=as(1|t,a,n,r))}function ls(e,t){ss(8390656,8,e,t)}function us(e,t){cs(2048,8,e,t)}function ds(e){H.flags|=4;var t=H.updateQueue;if(t===null)t=jo(),H.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function fs(e){var t=Ao().memoizedState;return ds({ref:t,nextImpl:e}),function(){if(G&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ps(e,t){return cs(4,2,e,t)}function ms(e,t){return cs(4,4,e,t)}function hs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gs(e,t,n){n=n==null?null:n.concat([e]),cs(4,4,hs.bind(null,t,e),n)}function _s(){}function vs(e,t){var n=Ao();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&xo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ys(e,t){var n=Ao();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&xo(t,r[1]))return r[0];if(r=e(),ho){Be(!0);try{e()}finally{Be(!1)}}return n.memoizedState=[r,t],r}function bs(e,t,n){return n===void 0||uo&1073741824&&!(q&261930)?e.memoizedState=t:(e.memoizedState=n,e=pu(),H.lanes|=e,ql|=e,n)}function xs(e,t,n,r){return Cr(n,t)?n:Xa.current===null?!(uo&42)||uo&1073741824&&!(q&261930)?(rc=!0,e.memoizedState=n):(e=pu(),H.lanes|=e,ql|=e,t):(e=bs(e,n,r),Cr(e,t)||(rc=!0),e)}function Ss(e,t,n,r,i){var a=M.p;M.p=a!==0&&8>a?a:8;var o=j.T,s={};j.T=s,Ps(e,!1,t,n);try{var c=i(),l=j.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ns(e,t,ma(c,r),fu(e)):Ns(e,t,r,fu(e))}catch(n){Ns(e,t,{then:function(){},status:`rejected`,reason:n},fu())}finally{M.p=a,o!==null&&s.types!==null&&(o.types=s.types),j.T=o}}function Cs(){}function ws(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Ts(e).queue;Ss(e,a,t,ae,n===null?Cs:function(){return Es(e),n(r)})}function Ts(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fo,lastRenderedState:ae},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Es(e){var t=Ts(e);t.next===null&&(t=e.alternate.memoizedState),Ns(e,t.next.queue,{},fu())}function Ds(){return $i(Qf)}function Os(){return Ao().memoizedState}function ks(){return Ao().memoizedState}function As(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=fu();e=Va(n);var r=Ha(t,e,n);r!==null&&(mu(r,t,n),Ua(r,t,n)),t={cache:oa()},e.payload=t;return}t=t.return}}function js(e,t,n){var r=fu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Fs(e)?Is(t,n):(n=ri(e,t,n,r),n!==null&&(mu(n,e,r),Ls(n,t,r)))}function Ms(e,t,n){Ns(e,t,n,fu())}function Ns(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fs(e))Is(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Cr(s,o))return ni(e,t,i,0),Bl===null&&ti(),!1}catch{}if(n=ri(e,t,i,r),n!==null)return mu(n,e,r),Ls(n,t,r),!0}return!1}function Ps(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Fs(e)){if(t)throw Error(i(479))}else t=ri(e,n,r,2),t!==null&&mu(t,e,2)}function Fs(e){var t=e.alternate;return e===H||t!==null&&t===H}function Is(e,t){mo=po=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ls(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nt(e,n)}}var Rs={readContext:$i,use:No,useCallback:bo,useContext:bo,useEffect:bo,useImperativeHandle:bo,useLayoutEffect:bo,useInsertionEffect:bo,useMemo:bo,useReducer:bo,useRef:bo,useState:bo,useDebugValue:bo,useDeferredValue:bo,useTransition:bo,useSyncExternalStore:bo,useId:bo,useHostTransitionStatus:bo,useFormState:bo,useActionState:bo,useOptimistic:bo,useMemoCache:bo,useCacheRefresh:bo};Rs.useEffectEvent=bo;var zs={readContext:$i,use:No,useCallback:function(e,t){return ko().memoizedState=[e,t===void 0?null:t],e},useContext:$i,useEffect:ls,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ss(4194308,4,hs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ss(4194308,4,e,t)},useInsertionEffect:function(e,t){ss(4,2,e,t)},useMemo:function(e,t){var n=ko();t=t===void 0?null:t;var r=e();if(ho){Be(!0);try{e()}finally{Be(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ko();if(n!==void 0){var i=n(t);if(ho){Be(!0);try{n(t)}finally{Be(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=js.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=ko();return e={current:e},t.memoizedState=e},useState:function(e){e=Go(e);var t=e.queue,n=Ms.bind(null,H,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:_s,useDeferredValue:function(e,t){return bs(ko(),e,t)},useTransition:function(){var e=Go(!1);return e=Ss.bind(null,H,e.queue,!0,!1),ko().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=H,a=ko();if(B){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Bl===null)throw Error(i(349));q&127||Bo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ls(Ho.bind(null,r,o,e),[e]),r.flags|=2048,as(9,{destroy:void 0},Vo.bind(null,r,o,n,t),null),n},useId:function(){var e=ko(),t=Bl.identifierPrefix;if(B){var n=Ei,r=Ti;n=(r&~(1<<32-Ve(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=go++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=yo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ds,useFormState:es,useActionState:es,useOptimistic:function(e){var t=ko();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ps.bind(null,H,!0,n),n.dispatch=t,[e,t]},useMemoCache:Po,useCacheRefresh:function(){return ko().memoizedState=As.bind(null,H)},useEffectEvent:function(e){var t=ko(),n={impl:e};return t.memoizedState=n,function(){if(G&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Bs={readContext:$i,use:No,useCallback:vs,useContext:$i,useEffect:us,useImperativeHandle:gs,useInsertionEffect:ps,useLayoutEffect:ms,useMemo:ys,useReducer:Io,useRef:os,useState:function(){return Io(Fo)},useDebugValue:_s,useDeferredValue:function(e,t){return xs(Ao(),U.memoizedState,e,t)},useTransition:function(){var e=Io(Fo)[0],t=Ao().memoizedState;return[typeof e==`boolean`?e:Mo(e),t]},useSyncExternalStore:zo,useId:Os,useHostTransitionStatus:Ds,useFormState:ts,useActionState:ts,useOptimistic:function(e,t){return Ko(Ao(),U,e,t)},useMemoCache:Po,useCacheRefresh:ks};Bs.useEffectEvent=fs;var Vs={readContext:$i,use:No,useCallback:vs,useContext:$i,useEffect:us,useImperativeHandle:gs,useInsertionEffect:ps,useLayoutEffect:ms,useMemo:ys,useReducer:Ro,useRef:os,useState:function(){return Ro(Fo)},useDebugValue:_s,useDeferredValue:function(e,t){var n=Ao();return U===null?bs(n,e,t):xs(n,U.memoizedState,e,t)},useTransition:function(){var e=Ro(Fo)[0],t=Ao().memoizedState;return[typeof e==`boolean`?e:Mo(e),t]},useSyncExternalStore:zo,useId:Os,useHostTransitionStatus:Ds,useFormState:is,useActionState:is,useOptimistic:function(e,t){var n=Ao();return U===null?(n.baseState=e,[e,n.queue.dispatch]):Ko(n,U,e,t)},useMemoCache:Po,useCacheRefresh:ks};Vs.useEffectEvent=fs;function Hs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Us={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fu(),i=Va(r);i.payload=t,n!=null&&(i.callback=n),t=Ha(e,i,r),t!==null&&(mu(t,e,r),Ua(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fu(),i=Va(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ha(e,i,r),t!==null&&(mu(t,e,r),Ua(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fu(),r=Va(n);r.tag=2,t!=null&&(r.callback=t),t=Ha(e,r,n),t!==null&&(mu(t,e,n),Ua(t,e,n))}};function Ws(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!wr(n,r)||!wr(i,a):!0}function Gs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Us.enqueueReplaceState(t,t.state,null)}function Ks(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function qs(e){Zr(e)}function Js(e){console.error(e)}function Ys(e){Zr(e)}function Xs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Zs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Qs(e,t,n){return n=Va(n),n.tag=3,n.payload={element:null},n.callback=function(){Xs(e,t)},n}function $s(e){return e=Va(e),e.tag=3,e}function ec(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Zs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Zs(t,n,r),typeof i!=`function`&&(nu===null?nu=new Set([this]):nu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function tc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Xi(t,n,a,!0),n=to.current,n!==null){switch(n.tag){case 31:case 13:return no===null?Eu():n.alternate===null&&J===0&&(J=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ca?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Gu(e,r,a)),!1;case 22:return n.flags|=65536,r===Ca?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Gu(e,r,a)),!1}throw Error(i(435,n.tag))}return Gu(e,r,a),Eu(),!1}if(B)return t=to.current,t===null?(r!==Fi&&(t=Error(i(423),{cause:r}),Hi(vi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=vi(r,n),a=Qs(e.stateNode,r,a),Wa(e,a),J!==4&&(J=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Fi&&(e=Error(i(422),{cause:r}),Hi(vi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=vi(o,n),Zl===null?Zl=[o]:Zl.push(o),J!==4&&(J=2),t===null)return!0;r=vi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Qs(n.stateNode,r,e),Wa(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(nu===null||!nu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=$s(a),ec(a,e,n,r),Wa(n,a),!1}n=n.return}while(n!==null);return!1}var nc=Error(i(461)),rc=!1;function ic(e,t,n,r){t.child=e===null?La(t,null,n,r):Ia(t,e.child,n,r)}function ac(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Qi(t),r=So(e,t,n,o,a,i),s=Eo(),e!==null&&!rc?(Do(e,t,i),kc(e,t,i)):(B&&s&&ki(t),t.flags|=1,ic(e,t,r,i),t.child)}function oc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ui(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,sc(e,t,a,r,i)):(e=R(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Ac(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?wr:n,n(o,r)&&e.ref===t.ref)return kc(e,t,i)}return t.flags|=1,e=di(a,r),e.ref=t.ref,e.return=t,t.child=e}function sc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(wr(a,r)&&e.ref===t.ref)if(rc=!1,t.pendingProps=r=a,Ac(e,i))e.flags&131072&&(rc=!0);else return t.lanes=e.lanes,kc(e,t,i)}return hc(e,t,n,r,i)}function cc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return uc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&va(t,a===null?null:a.cachePool),a===null?$a():Qa(t,a),ao(t);else return r=t.lanes=536870912,uc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&va(t,null),$a(),oo(t)):(va(t,a.cachePool),Qa(t,a),oo(t),t.memoizedState=null);return ic(e,t,i,n),t.child}function lc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function uc(e,t,n,r,i){var a=_a();return a=a===null?null:{parent:aa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&va(t,null),$a(),ao(t),e!==null&&Xi(e,t,r,!0),t.childLanes=i,null}function dc(e,t){return t=wc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fc(e,t,n){return Ia(t,e.child,null,n),e=dc(t,t.pendingProps),e.flags|=2,so(t),t.memoizedState=null,e}function pc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(B){if(r.mode===`hidden`)return e=dc(t,r),t.lanes=536870912,lc(null,e);if(io(t),(e=Ni)?(e=rf(e,V),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wi===null?null:{id:Ti,overflow:Ei},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Mi=t,Ni=null)):e=null,e===null)throw Ii(t);return t.lanes=536870912,null}return dc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(io(t),a)if(t.flags&256)t.flags&=-257,t=fc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(rc||Xi(e,t,n,!1),a=(n&e.childLanes)!==0,rc||a){if(r=Bl,r!==null&&(s=rt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ii(e,s),mu(r,e,s),nc;Eu(),t=fc(e,t,n)}else e=o.treeContext,Ni=cf(s.nextSibling),Mi=t,B=!0,Pi=null,V=!1,e!==null&&ji(t,e),t=dc(t,r),t.flags|=4096;return t}return e=di(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function mc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function hc(e,t,n,r,i){return Qi(t),n=So(e,t,n,r,void 0,i),r=Eo(),e!==null&&!rc?(Do(e,t,i),kc(e,t,i)):(B&&r&&ki(t),t.flags|=1,ic(e,t,n,i),t.child)}function gc(e,t,n,r,i,a){return Qi(t),t.updateQueue=null,n=wo(t,r,n,i),Co(e),r=Eo(),e!==null&&!rc?(Do(e,t,a),kc(e,t,a)):(B&&r&&ki(t),t.flags|=1,ic(e,t,n,a),t.child)}function _c(e,t,n,r,i){if(Qi(t),t.stateNode===null){var a=si,o=n.contextType;typeof o==`object`&&o&&(a=$i(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Us,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},za(t),o=n.contextType,a.context=typeof o==`object`&&o?$i(o):si,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Hs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Us.enqueueReplaceState(a,a.state,null),qa(t,r,a,i),Ka(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ks(n,s);a.props=c;var l=a.context,u=n.contextType;o=si,typeof u==`object`&&u&&(o=$i(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Gs(t,a,r,o),Ra=!1;var f=t.memoizedState;a.state=f,qa(t,r,a,i),Ka(),l=t.memoizedState,s||f!==l||Ra?(typeof d==`function`&&(Hs(t,n,d,r),l=t.memoizedState),(c=Ra||Ws(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ba(e,t),o=t.memoizedProps,u=Ks(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=si,typeof l==`object`&&l&&(c=$i(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Gs(t,a,r,c),Ra=!1,f=t.memoizedState,a.state=f,qa(t,r,a,i),Ka();var p=t.memoizedState;o!==d||f!==p||Ra||e!==null&&e.dependencies!==null&&Zi(e.dependencies)?(typeof s==`function`&&(Hs(t,n,s,r),p=t.memoizedState),(u=Ra||Ws(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Zi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,mc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ia(t,e.child,null,i),t.child=Ia(t,null,n,i)):ic(e,t,n,i),t.memoizedState=a.state,e=t.child):e=kc(e,t,i),e}function vc(e,t,n,r){return Bi(),t.flags|=256,ic(e,t,n,r),t.child}var yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function bc(e){return{baseLanes:e,cachePool:ya()}}function xc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Y),e}function Sc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(co.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(B){if(a?ro(t):oo(t),(e=Ni)?(e=rf(e,V),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wi===null?null:{id:Ti,overflow:Ei},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Mi=t,Ni=null)):e=null,e===null)throw Ii(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(oo(t),a=t.mode,c=wc({mode:`hidden`,children:c},a),r=pi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=bc(n),r.childLanes=xc(e,s,n),t.memoizedState=yc,lc(null,r)):(ro(t),Cc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(ro(t),t.flags&=-257,t=Tc(e,t,n)):t.memoizedState===null?(oo(t),c=r.fallback,a=t.mode,r=wc({mode:`visible`,children:r.children},a),c=pi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ia(t,e.child,null,n),r=t.child,r.memoizedState=bc(n),r.childLanes=xc(e,s,n),t.memoizedState=yc,t=lc(null,r)):(oo(t),t.child=e.child,t.flags|=128,t=null);else if(ro(t),of(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Hi({value:r,source:null,stack:null}),t=Tc(e,t,n)}else if(rc||Xi(e,t,n,!1),s=(n&e.childLanes)!==0,rc||s){if(s=Bl,s!==null&&(r=rt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ii(e,r),mu(s,e,r),nc;af(c)||Eu(),t=Tc(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ni=cf(c.nextSibling),Mi=t,B=!0,Pi=null,V=!1,e!==null&&ji(t,e),t=Cc(t,r.children),t.flags|=4096);return t}return a?(oo(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=di(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=pi(c,a,n,null),c.flags|=2):c=di(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,lc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=bc(n):(a=c.cachePool,a===null?a=ya():(l=aa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=xc(e,s,n),t.memoizedState=yc,lc(e.child,r)):(ro(t),n=e.child,e=n.sibling,n=di(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Cc(e,t){return t=wc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function wc(e,t){return e=li(22,e,null,t),e.lanes=0,e}function Tc(e,t,n){return Ia(t,e.child,null,n),e=Cc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ec(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ji(e.return,t,n)}function Dc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Oc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=co.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,P(co,o),ic(e,t,r,n),r=B?Si:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ec(e,n,t);else if(e.tag===19)Ec(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&lo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Dc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&lo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Dc(t,!0,n,null,a,r);break;case`together`:Dc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function kc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ql|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Xi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=di(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=di(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ac(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Zi(e))):!0}function jc(e,t,n){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),Ki(t,aa,e.memoizedState.cache),Bi();break;case 27:case 5:he(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:Ki(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,io(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ro(t),e=kc(e,t,n),e===null?null:e.sibling):Sc(e,t,n):(ro(t),t.flags|=128,null);ro(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Xi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Oc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),P(co,co.current),r)break;return null;case 22:return t.lanes=0,cc(e,t,n,t.pendingProps);case 24:Ki(t,aa,e.memoizedState.cache)}return kc(e,t,n)}function Mc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)rc=!0;else{if(!Ac(e,n)&&!(t.flags&128))return rc=!1,jc(e,t,n);rc=!!(e.flags&131072)}else rc=!1,B&&t.flags&1048576&&Oi(t,Si,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ea(t.elementType),t.type=e,typeof e==`function`)ui(e)?(r=Ks(e,r),t.tag=1,t=_c(null,t,e,r,n)):(t.tag=0,t=hc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=ac(null,t,e,r,n);break a}else if(a===ee){t.tag=14,t=oc(null,t,e,r,n);break a}}throw t=re(e)||e,Error(i(306,t,``))}}return t;case 0:return hc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ks(r,t.pendingProps),_c(e,t,r,a,n);case 3:a:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ba(e,t),qa(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ki(t,aa,r),r!==o.cache&&Yi(t,[aa],n,!0),Ka(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=vc(e,t,r,n);break a}else if(r!==a){a=vi(Error(i(424)),t),Hi(a),t=vc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ni=cf(e.firstChild),Mi=t,B=!0,Pi=null,V=!0,n=La(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Bi(),r===a){t=kc(e,t,n);break a}ic(e,t,r,n)}t=t.child}return t;case 26:return mc(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:B||(n=t.type,e=t.pendingProps,r=Bd(de.current).createElement(n),r[lt]=t,r[ut]=e,Pd(r,n,e),bt(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return he(t),e===null&&B&&(r=t.stateNode=ff(t.type,t.pendingProps,de.current),Mi=t,V=!0,a=Ni,Zd(t.type)?(lf=a,Ni=cf(r.firstChild)):Ni=a),ic(e,t,t.pendingProps.children,n),mc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&B&&((a=r=Ni)&&(r=tf(r,t.type,t.pendingProps,V),r===null?a=!1:(t.stateNode=r,Mi=t,Ni=cf(r.firstChild),V=!1,a=!0)),a||Ii(t)),he(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Ud(a,o)?r=null:s!==null&&Ud(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=So(e,t,To,null,null,n),Qf._currentValue=a),mc(e,t),ic(e,t,r,n),t.child;case 6:return e===null&&B&&((e=n=Ni)&&(n=nf(n,t.pendingProps,V),n===null?e=!1:(t.stateNode=n,Mi=t,Ni=null,e=!0)),e||Ii(t)),null;case 13:return Sc(e,t,n);case 4:return pe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ia(t,null,r,n):ic(e,t,r,n),t.child;case 11:return ac(e,t,t.type,t.pendingProps,n);case 7:return ic(e,t,t.pendingProps,n),t.child;case 8:return ic(e,t,t.pendingProps.children,n),t.child;case 12:return ic(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ki(t,t.type,r.value),ic(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Qi(t),a=$i(a),r=r(a),t.flags|=1,ic(e,t,r,n),t.child;case 14:return oc(e,t,t.type,t.pendingProps,n);case 15:return sc(e,t,t.type,t.pendingProps,n);case 19:return Oc(e,t,n);case 31:return pc(e,t,n);case 22:return cc(e,t,n,t.pendingProps);case 24:return Qi(t),r=$i(aa),e===null?(a=_a(),a===null&&(a=Bl,o=oa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},za(t),Ki(t,aa,a)):((e.lanes&n)!==0&&(Ba(e,t),qa(t,null,null,n),Ka()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ki(t,aa,r),r!==a.cache&&Yi(t,[aa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ki(t,aa,r))),ic(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Nc(e){e.flags|=4}function Pc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Cu())e.flags|=8192;else throw Da=Ca,xa}else e.flags&=-16777217}function Fc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t))if(Cu())e.flags|=8192;else throw Da=Ca,xa}function Ic(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Qe(),e.lanes|=t,Xl|=t)}function Lc(e,t){if(!B)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Rc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function zc(e,t,n){var r=t.pendingProps;switch(Ai(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rc(t),null;case 1:return Rc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),qi(aa),me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(zi(t)?Nc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Vi())),Rc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Nc(t),o===null?(Rc(t),Pc(t,a,null,r,n)):(Rc(t),Fc(t,o))):o?o===e.memoizedState?(Rc(t),t.flags&=-16777217):(Nc(t),Rc(t),Fc(t,o)):(e=e.memoizedProps,e!==r&&Nc(t),Rc(t),Pc(t,a,e,r,n)),null;case 27:if(ge(t),n=de.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Rc(t),null}e=le.current,zi(t)?Li(t,e):(e=ff(a,r,n),t.stateNode=e,Nc(t))}return Rc(t),null;case 5:if(ge(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Rc(t),null}if(o=le.current,zi(t))Li(t,o);else{var s=Bd(de.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[lt]=t,o[ut]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Pd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Nc(t)}}return Rc(t),Pc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=de.current,zi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Mi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[lt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Ii(t,!0)}else e=Bd(e).createTextNode(r),e[lt]=t,t.stateNode=e}return Rc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=zi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[lt]=t}else Bi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rc(t),e=!1}else n=Vi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(so(t),t):(so(t),null);if(t.flags&128)throw Error(i(558))}return Rc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=zi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[lt]=t}else Bi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rc(t),a=!1}else a=Vi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(so(t),t):(so(t),null)}return so(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ic(t,t.updateQueue),Rc(t),null);case 4:return me(),e===null&&Sd(t.stateNode.containerInfo),Rc(t),null;case 10:return qi(t.type),Rc(t),null;case 19:if(N(co),r=t.memoizedState,r===null)return Rc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Lc(r,!1);else{if(J!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=lo(e),o!==null){for(t.flags|=128,Lc(r,!1),e=o.updateQueue,t.updateQueue=e,Ic(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)fi(n,e),n=n.sibling;return P(co,co.current&1|2),B&&Di(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ke()>tu&&(t.flags|=128,a=!0,Lc(r,!1),t.lanes=4194304)}else{if(!a)if(e=lo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ic(t,e),Lc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!B)return Rc(t),null}else 2*ke()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,a=!0,Lc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Rc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ke(),e.sibling=null,n=co.current,P(co,a?n&1|2:n&1),B&&Di(t,r.treeForkCount),e);case 22:case 23:return so(t),eo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Rc(t),t.subtreeFlags&6&&(t.flags|=8192)):Rc(t),n=t.updateQueue,n!==null&&Ic(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&N(ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),qi(aa),Rc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Bc(e,t){switch(Ai(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qi(aa),me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ge(t),null;case 31:if(t.memoizedState!==null){if(so(t),t.alternate===null)throw Error(i(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(so(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return N(co),null;case 4:return me(),null;case 10:return qi(t.type),null;case 22:case 23:return so(t),eo(),e!==null&&N(ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return qi(aa),null;case 25:return null;default:return null}}function Vc(e,t){switch(Ai(t),t.tag){case 3:qi(aa),me();break;case 26:case 27:case 5:ge(t);break;case 4:me();break;case 31:t.memoizedState!==null&&so(t);break;case 13:so(t);break;case 19:N(co);break;case 10:qi(t.type);break;case 22:case 23:so(t),eo(),e!==null&&N(ga);break;case 24:qi(aa)}}function Hc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Wu(t,t.return,e)}}function Uc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Wu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Wu(t,t.return,e)}}function Wc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ya(t,n)}catch(t){Wu(e,e.return,t)}}}function Gc(e,t,n){n.props=Ks(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Wu(e,t,n)}}function Kc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Wu(e,t,n)}}function qc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Wu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Wu(e,t,n)}else n.current=null}function Jc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Wu(e,e.return,t)}}function Yc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[ut]=t}catch(t){Wu(e,e.return,t)}}function Xc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Zc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Xc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=en));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[lt]=e,t[ut]=n}catch(t){Wu(e,e.return,t)}}var tl=!1,nl=!1,rl=!1,il=typeof WeakSet==`function`?WeakSet:Set,al=null;function ol(e,t){if(e=e.containerInfo,Rd=sp,e=Or(e),kr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,al=t;al!==null;)if(t=al,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,al=e;else for(;al!==null;){switch(t=al,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ks(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Wu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,al=e;break}al=t.return}}function sl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Sl(e,n),r&4&&Hc(5,n);break;case 1:if(Sl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Wu(n,n.return,e)}else{var i=Ks(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Wu(n,n.return,e)}}r&64&&Wc(n),r&512&&Kc(n,n.return);break;case 3:if(Sl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ya(e,t)}catch(e){Wu(n,n.return,e)}}break;case 27:t===null&&r&4&&el(n);case 26:case 5:Sl(e,n),t===null&&r&4&&Jc(n),r&512&&Kc(n,n.return);break;case 12:Sl(e,n);break;case 31:Sl(e,n),r&4&&pl(e,n);break;case 13:Sl(e,n),r&4&&ml(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ju.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||tl,!r){t=t!==null&&t.memoizedState!==null||nl,i=tl;var a=nl;tl=r,(nl=t)&&!a?wl(e,n,(n.subtreeFlags&8772)!=0):Sl(e,n),tl=i,nl=a}break;case 30:break;default:Sl(e,n)}}function cl(e){var t=e.alternate;t!==null&&(e.alternate=null,cl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&gt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ll=null,ul=!1;function dl(e,t,n){for(n=n.child;n!==null;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(ze&&typeof ze.onCommitFiberUnmount==`function`)try{ze.onCommitFiberUnmount(Re,n)}catch{}switch(n.tag){case 26:nl||qc(n,t),dl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:nl||qc(n,t);var r=ll,i=ul;Zd(n.type)&&(ll=n.stateNode,ul=!1),dl(e,t,n),pf(n.stateNode),ll=r,ul=i;break;case 5:nl||qc(n,t);case 6:if(r=ll,i=ul,ll=null,dl(e,t,n),ll=r,ul=i,ll!==null)if(ul)try{(ll.nodeType===9?ll.body:ll.nodeName===`HTML`?ll.ownerDocument.body:ll).removeChild(n.stateNode)}catch(e){Wu(n,t,e)}else try{ll.removeChild(n.stateNode)}catch(e){Wu(n,t,e)}break;case 18:ll!==null&&(ul?(e=ll,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd(ll,n.stateNode));break;case 4:r=ll,i=ul,ll=n.stateNode.containerInfo,ul=!0,dl(e,t,n),ll=r,ul=i;break;case 0:case 11:case 14:case 15:Uc(2,n,t),nl||Uc(4,n,t),dl(e,t,n);break;case 1:nl||(qc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Gc(n,t,r)),dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:nl=(r=nl)||n.memoizedState!==null,dl(e,t,n),nl=r;break;default:dl(e,t,n)}}function pl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Wu(t,t.return,e)}}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Wu(t,t.return,e)}}function hl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new il),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new il),t;default:throw Error(i(435,e.tag))}}function gl(e,t){var n=hl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Yu.bind(null,e,t);t.then(r,r)}})}function _l(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Zd(c.type)){ll=c.stateNode,ul=!1;break a}break;case 5:ll=c.stateNode,ul=!1;break a;case 3:case 4:ll=c.stateNode.containerInfo,ul=!0;break a}c=c.return}if(ll===null)throw Error(i(160));fl(o,s,a),ll=null,ul=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)yl(t,e),t=t.sibling}var vl=null;function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_l(t,e),bl(e),r&4&&(Uc(3,e,e.return),Hc(3,e),Uc(5,e,e.return));break;case 1:_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),r&64&&tl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=vl;if(_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[ht]||o[lt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Pd(o,r,n),o[lt]=e,bt(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Vf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[lt]=e,bt(o),r=o}e.stateNode=r}else Hf(a,e.type,e.stateNode);else e.stateNode=If(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Yc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Hf(a,e.type,e.stateNode):If(a,r,e.memoizedProps))}break;case 27:_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),n!==null&&r&4&&Yc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),e.flags&32){a=e.stateNode;try{Kt(a,``)}catch(t){Wu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Yc(e,a,n===null?a:n.memoizedProps)),r&1024&&(rl=!0);break;case 6:if(_l(t,e),bl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Wu(e,e.return,t)}}break;case 3:if(Bf=null,a=vl,vl=gf(t.containerInfo),_l(t,e),vl=a,bl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Wu(e,e.return,t)}rl&&(rl=!1,xl(e));break;case 4:r=vl,vl=gf(e.stateNode.containerInfo),_l(t,e),bl(e),vl=r;break;case 12:_l(t,e),bl(e);break;case 31:_l(t,e),bl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 13:_l(t,e),bl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(eu=ke()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=tl,d=nl;if(tl=u||a,nl=d||l,_l(t,e),nl=d,tl=u,bl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||tl||nl||Cl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Wu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Wu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?$d(m,!0):$d(l.stateNode,!1)}catch(e){Wu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,gl(e,n))));break;case 19:_l(t,e),bl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 30:break;case 21:break;default:_l(t,e),bl(e)}}function bl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Xc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;$c(e,Zc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Kt(o,``),n.flags&=-33),$c(e,Zc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Qc(e,Zc(e),s);break;default:throw Error(i(161))}}catch(t){Wu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sl(e,t.alternate,t),t=t.sibling}function Cl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Uc(4,t,t.return),Cl(t);break;case 1:qc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Gc(t,t.return,n),Cl(t);break;case 27:pf(t.stateNode);case 26:case 5:qc(t,t.return),Cl(t);break;case 22:t.memoizedState===null&&Cl(t);break;case 30:Cl(t);break;default:Cl(t)}e=e.sibling}}function wl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:wl(i,a,n),Hc(4,a);break;case 1:if(wl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Wu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ja(c[i],s)}catch(e){Wu(r,r.return,e)}}n&&o&64&&Wc(a),Kc(a,a.return);break;case 27:el(a);case 26:case 5:wl(i,a,n),n&&r===null&&o&4&&Jc(a),Kc(a,a.return);break;case 12:wl(i,a,n);break;case 31:wl(i,a,n),n&&o&4&&pl(i,a);break;case 13:wl(i,a,n),n&&o&4&&ml(i,a);break;case 22:a.memoizedState===null&&wl(i,a,n),Kc(a,a.return);break;case 30:break;default:wl(i,a,n)}t=t.sibling}}function Tl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&sa(n))}function El(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e))}function Dl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ol(e,t,n,r),t=t.sibling}function Ol(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Dl(e,t,n,r),i&2048&&Hc(9,t);break;case 1:Dl(e,t,n,r);break;case 3:Dl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e)));break;case 12:if(i&2048){Dl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Wu(t,t.return,e)}}else Dl(e,t,n,r);break;case 31:Dl(e,t,n,r);break;case 13:Dl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Dl(e,t,n,r):(a._visibility|=2,W(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Dl(e,t,n,r):kl(e,t),i&2048&&Tl(o,t);break;case 24:Dl(e,t,n,r),i&2048&&El(t.alternate,t);break;default:Dl(e,t,n,r)}}function W(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:W(a,o,s,c,i),Hc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,W(a,o,s,c,i)):u._visibility&2?W(a,o,s,c,i):kl(a,o),i&&l&2048&&Tl(o.alternate,o);break;case 24:W(a,o,s,c,i),i&&l&2048&&El(o.alternate,o);break;default:W(a,o,s,c,i)}t=t.sibling}}function kl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:kl(n,r),i&2048&&Tl(r.alternate,r);break;case 24:kl(n,r),i&2048&&El(r.alternate,r);break;default:kl(n,r)}t=t.sibling}}var Al=8192;function jl(e,t,n){if(e.subtreeFlags&Al)for(e=e.child;e!==null;)Ml(e,t,n),e=e.sibling}function Ml(e,t,n){switch(e.tag){case 26:jl(e,t,n),e.flags&Al&&e.memoizedState!==null&&Gf(n,vl,e.memoizedState,e.memoizedProps);break;case 5:jl(e,t,n);break;case 3:case 4:var r=vl;vl=gf(e.stateNode.containerInfo),jl(e,t,n),vl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Al,Al=16777216,jl(e,t,n),Al=r):jl(e,t,n));break;default:jl(e,t,n)}}function Nl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Pl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Ll(r,e)}Nl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Fl(e),e=e.sibling}function Fl(e){switch(e.tag){case 0:case 11:case 15:Pl(e),e.flags&2048&&Uc(9,e,e.return);break;case 3:Pl(e);break;case 12:Pl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Il(e)):Pl(e);break;default:Pl(e)}}function Il(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Ll(r,e)}Nl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Uc(8,t,t.return),Il(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Il(t));break;default:Il(t)}e=e.sibling}}function Ll(e,t){for(;al!==null;){var n=al;switch(n.tag){case 0:case 11:case 15:Uc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:sa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,al=r;else a:for(n=e;al!==null;){r=al;var i=r.sibling,a=r.return;if(cl(r),r===n){al=null;break a}if(i!==null){i.return=a,al=i;break a}al=a}}}var Rl={getCacheForType:function(e){var t=$i(aa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return $i(aa).controller.signal}},zl=typeof WeakMap==`function`?WeakMap:Map,G=0,Bl=null,K=null,q=0,Vl=0,Hl=null,Ul=!1,Wl=!1,Gl=!1,Kl=0,J=0,ql=0,Jl=0,Yl=0,Y=0,Xl=0,Zl=null,Ql=null,$l=!1,eu=0,X=0,tu=1/0,Z=null,nu=null,ru=0,iu=null,au=null,ou=0,su=0,cu=null,lu=null,uu=0,du=null;function fu(){return G&2&&q!==0?q&-q:j.T===null?ot():dd()}function pu(){if(Y===0)if(!(q&536870912)||B){var e=Ke;Ke<<=1,!(Ke&3932160)&&(Ke=262144),Y=e}else Y=536870912;return e=to.current,e!==null&&(e.flags|=32),Y}function mu(e,t,n){(e===Bl&&(Vl===2||Vl===9)||e.cancelPendingCommit!==null)&&(xu(e,0),vu(e,q,Y,!1)),et(e,n),(!(G&2)||e!==Bl)&&(e===Bl&&(!(G&2)&&(Jl|=n),J===4&&vu(e,q,Y,!1)),rd(e))}function hu(e,t,n){if(G&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Xe(e,t),a=r?ku(e,t):Du(e,t,!0),o=r;do{if(a===0){Wl&&!r&&vu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!_u(n)){a=Du(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Zl;var l=c.current.memoizedState.isDehydrated;if(l&&(xu(c,s).flags|=256),s=Du(c,s,!1),s!==2){if(Gl&&!l){c.errorRecoveryDisabledLanes|=o,Jl|=o,a=4;break a}o=Ql,Ql=a,o!==null&&(Ql===null?Ql=o:Ql.push.apply(Ql,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){xu(e,0),vu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:vu(r,t,Y,!Ul);break a;case 2:Ql=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=eu+300-ke(),10<a)){if(vu(r,t,Y,!Ul),Ye(r,0,!0)!==0)break a;ou=t,r.timeoutHandle=Kd(gu.bind(null,r,n,Ql,Z,$l,t,Y,Jl,Xl,Ul,o,`Throttled`,-0,0),a);break a}gu(r,n,Ql,Z,$l,t,Y,Jl,Xl,Ul,o,null,-0,0)}}break}while(1);rd(e)}function gu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:en},Ml(t,a,d);var m=(a&62914560)===a?eu-ke():(a&4194048)===a?X-ke():0;if(m=qf(d,m),m!==null){ou=a,e.cancelPendingCommit=m(Iu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),vu(e,a,o,!l);return}}Iu(e,t,a,n,r,i,o,s,c)}function _u(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Cr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function vu(e,t,n,r){t&=~Yl,t&=~Jl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ve(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&tt(e,n,t)}function yu(){return G&6?!0:(id(0,!1),!1)}function bu(){if(K!==null){if(Vl===0)var e=K.return;else e=K,Gi=Wi=null,Oo(e),Aa=null,ja=0,e=K;for(;e!==null;)Vc(e.alternate,e),e=e.return;K=null}}function xu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ou=0,bu(),Bl=e,K=n=di(e.current,null),q=t,Vl=0,Hl=null,Ul=!1,Wl=Xe(e,t),Gl=!1,Xl=Y=Yl=Jl=ql=J=0,Ql=Zl=null,$l=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ve(r),a=1<<i;t|=e[i],r&=~a}return Kl=t,ti(),n}function Su(e,t){H=null,j.H=Rs,t===ba||t===Sa?(t=Oa(),Vl=3):t===xa?(t=Oa(),Vl=4):Vl=t===nc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Hl=t,K===null&&(J=1,Xs(e,vi(t,e.current)))}function Cu(){var e=to.current;return e===null?!0:(q&4194048)===q?no===null:(q&62914560)===q||q&536870912?e===no:!1}function wu(){var e=j.H;return j.H=Rs,e===null?Rs:e}function Tu(){var e=j.A;return j.A=Rl,e}function Eu(){J=4,Ul||(q&4194048)!==q&&to.current!==null||(Wl=!0),!(ql&134217727)&&!(Jl&134217727)||Bl===null||vu(Bl,q,Y,!1)}function Du(e,t,n){var r=G;G|=2;var i=wu(),a=Tu();(Bl!==e||q!==t)&&(Z=null,xu(e,t)),t=!1;var o=J;a:do try{if(Vl!==0&&K!==null){var s=K,c=Hl;switch(Vl){case 8:bu(),o=6;break a;case 3:case 2:case 9:case 6:to.current===null&&(t=!0);var l=Vl;if(Vl=0,Hl=null,Nu(e,s,c,l),n&&Wl){o=0;break a}break;default:l=Vl,Vl=0,Hl=null,Nu(e,s,c,l)}}Ou(),o=J;break}catch(t){Su(e,t)}while(1);return t&&e.shellSuspendCounter++,Gi=Wi=null,G=r,j.H=i,j.A=a,K===null&&(Bl=null,q=0,ti()),o}function Ou(){for(;K!==null;)ju(K)}function ku(e,t){var n=G;G|=2;var r=wu(),a=Tu();Bl!==e||q!==t?(Z=null,tu=ke()+500,xu(e,t)):Wl=Xe(e,t);a:do try{if(Vl!==0&&K!==null){t=K;var o=Hl;b:switch(Vl){case 1:Vl=0,Hl=null,Nu(e,t,o,1);break;case 2:case 9:if(wa(o)){Vl=0,Hl=null,Mu(t);break}t=function(){Vl!==2&&Vl!==9||Bl!==e||(Vl=7),rd(e)},o.then(t,t);break a;case 3:Vl=7;break a;case 4:Vl=5;break a;case 7:wa(o)?(Vl=0,Hl=null,Mu(t)):(Vl=0,Hl=null,Nu(e,t,o,7));break;case 5:var s=null;switch(K.tag){case 26:s=K.memoizedState;case 5:case 27:var c=K;if(s?Wf(s):c.stateNode.complete){Vl=0,Hl=null;var l=c.sibling;if(l!==null)K=l;else{var u=c.return;u===null?K=null:(K=u,Pu(u))}break b}}Vl=0,Hl=null,Nu(e,t,o,5);break;case 6:Vl=0,Hl=null,Nu(e,t,o,6);break;case 8:bu(),J=6;break a;default:throw Error(i(462))}}Au();break}catch(t){Su(e,t)}while(1);return Gi=Wi=null,j.H=r,j.A=a,G=n,K===null?(Bl=null,q=0,ti(),J):0}function Au(){for(;K!==null&&!De();)ju(K)}function ju(e){var t=Mc(e.alternate,e,Kl);e.memoizedProps=e.pendingProps,t===null?Pu(e):K=t}function Mu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=gc(n,t,t.pendingProps,t.type,void 0,q);break;case 11:t=gc(n,t,t.pendingProps,t.type.render,t.ref,q);break;case 5:Oo(t);default:Vc(n,t),t=K=fi(t,Kl),t=Mc(n,t,Kl)}e.memoizedProps=e.pendingProps,t===null?Pu(e):K=t}function Nu(e,t,n,r){Gi=Wi=null,Oo(t),Aa=null,ja=0;var i=t.return;try{if(tc(e,i,t,n,q)){J=1,Xs(e,vi(n,e.current)),K=null;return}}catch(t){if(i!==null)throw K=i,t;J=1,Xs(e,vi(n,e.current)),K=null;return}t.flags&32768?(B||r===1?e=!0:Wl||q&536870912?e=!1:(Ul=e=!0,(r===2||r===9||r===3||r===6)&&(r=to.current,r!==null&&r.tag===13&&(r.flags|=16384))),Fu(t,e)):Pu(t)}function Pu(e){var t=e;do{if(t.flags&32768){Fu(t,Ul);return}e=t.return;var n=zc(t.alternate,t,Kl);if(n!==null){K=n;return}if(t=t.sibling,t!==null){K=t;return}K=t=e}while(t!==null);J===0&&(J=5)}function Fu(e,t){do{var n=Bc(e.alternate,e);if(n!==null){n.flags&=32767,K=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){K=e;return}K=e=n}while(e!==null);J=6,K=null}function Iu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Vu();while(ru!==0);if(G&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ei,F(e,n,o,s,c,l),e===Bl&&(K=Bl=null,q=0),au=t,iu=e,ou=n,su=o,cu=a,lu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Xu(Ne,function(){return Hu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=j.T,j.T=null,a=M.p,M.p=2,s=G,G|=4;try{ol(e,t,n)}finally{G=s,M.p=a,j.T=r}}ru=1,Lu(),Ru(),zu()}}function Lu(){if(ru===1){ru=0;var e=iu,t=au,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=G;G|=4;try{yl(t,e);var a=zd,o=Or(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Dr(s.ownerDocument.documentElement,s)){if(c!==null&&kr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Er(s,h),v=Er(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!Rd,zd=Rd=null}finally{G=i,M.p=r,j.T=n}}e.current=t,ru=2}}function Ru(){if(ru===2){ru=0;var e=iu,t=au,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=G;G|=4;try{sl(e,t.alternate,t)}finally{G=i,M.p=r,j.T=n}}ru=3}}function zu(){if(ru===4||ru===3){ru=0,Oe();var e=iu,t=au,n=ou,r=lu;t.subtreeFlags&10256||t.flags&10256?ru=5:(ru=0,au=iu=null,Bu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(nu=null),at(n),t=t.stateNode,ze&&typeof ze.onCommitFiberRoot==`function`)try{ze.onCommitFiberRoot(Re,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=j.T,i=M.p,M.p=2,j.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{j.T=t,M.p=i}}ou&3&&Vu(),rd(e),i=e.pendingLanes,n&261930&&i&42?e===du?uu++:(uu=0,du=e):uu=0,id(0,!1)}}function Bu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,sa(t)))}function Vu(){return Lu(),Ru(),zu(),Hu()}function Hu(){if(ru!==5)return!1;var e=iu,t=su;su=0;var n=at(ou),r=j.T,a=M.p;try{M.p=32>n?32:n,j.T=null,n=cu,cu=null;var o=iu,s=ou;if(ru=0,au=iu=null,ou=0,G&6)throw Error(i(331));var c=G;if(G|=4,Fl(o.current),Ol(o,o.current,s,n),G=c,id(0,!1),ze&&typeof ze.onPostCommitFiberRoot==`function`)try{ze.onPostCommitFiberRoot(Re,o)}catch{}return!0}finally{M.p=a,j.T=r,Bu(e,t)}}function Uu(e,t,n){t=vi(n,t),t=Qs(e.stateNode,t,2),e=Ha(e,t,2),e!==null&&(et(e,2),rd(e))}function Wu(e,t,n){if(e.tag===3)Uu(e,e,n);else for(;t!==null;){if(t.tag===3){Uu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(nu===null||!nu.has(r))){e=vi(n,e),n=$s(2),r=Ha(t,n,2),r!==null&&(ec(n,r,t,e),et(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Gl=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Bl===e&&(q&n)===n&&(J===4||J===3&&(q&62914560)===q&&300>ke()-eu?!(G&2)&&xu(e,0):Yl|=n,Xl===q&&(Xl=0)),rd(e)}function qu(e,t){t===0&&(t=Qe()),e=ii(e,t),e!==null&&(et(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return Te(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ve(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=q,a=Ye(r,r===Bl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Xe(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Gd()&&(e=nd);for(var t=ke(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}ru!==0&&ru!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ve(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ze(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Bl,n=q,n=Ye(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Vl===2||Vl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ee(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Xe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ee(r),at(n)){case 2:case 8:n=Me;break;case 32:n=Ne;break;case 268435456:n=Fe;break;default:n=Ne}return r=cd.bind(null,e),n=Te(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ee(r),e.callbackPriority=2,e.callbackNode=null,2}function cd(e,t){if(ru!==0&&ru!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Vu()&&e.callbackNode!==n)return null;var r=q;return r=Ye(e,e===Bl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(hu(e,r,t),sd(e,ke()),e.callbackNode!=null&&e.callbackNode===n?cd.bind(null,e):null)}function ld(e,t){if(Vu())return null;hu(e,t,!0)}function ud(){Yd(function(){G&6?Te(je,ad):od()})}function dd(){if(nd===0){var e=ua;e===0&&(e=Ge,Ge<<=1,!(Ge&261888)&&(Ge=256)),nd=e}return nd}function fd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:$t(``+e)}function pd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function md(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=fd((i[ut]||null).action),o=r.submitter;o&&(t=(t=o[ut]||null)?fd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Sn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(nd!==0){var e=o?pd(i,o):new FormData(i);ws(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?pd(i,o):new FormData(i),ws(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var hd=0;hd<Yr.length;hd++){var gd=Yr[hd];Xr(gd.toLowerCase(),`on`+(gd[0].toUpperCase()+gd.slice(1)))}Xr(Vr,`onAnimationEnd`),Xr(Hr,`onAnimationIteration`),Xr(Ur,`onAnimationStart`),Xr(`dblclick`,`onDoubleClick`),Xr(`focusin`,`onFocus`),Xr(`focusout`,`onBlur`),Xr(Wr,`onTransitionRun`),Xr(Gr,`onTransitionStart`),Xr(Kr,`onTransitionCancel`),Xr(qr,`onTransitionEnd`),wt(`onMouseEnter`,[`mouseout`,`mouseover`]),wt(`onMouseLeave`,[`mouseout`,`mouseover`]),wt(`onPointerEnter`,[`pointerout`,`pointerover`]),wt(`onPointerLeave`,[`pointerout`,`pointerover`]),Ct(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Ct(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Ct(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Ct(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Ct(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Ct(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var _d=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),vd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(_d));function yd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Zr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Zr(e)}i.currentTarget=null,a=c}}}}function Q(e,t){var n=t[I];n===void 0&&(n=t[I]=new Set);var r=e+`__bubble`;n.has(r)||(Cd(t,e,2,!1),n.add(r))}function bd(e,t,n){var r=0;t&&(r|=4),Cd(n,e,r,t)}var xd=`_reactListening`+Math.random().toString(36).slice(2);function Sd(e){if(!e[xd]){e[xd]=!0,xt.forEach(function(t){t!==`selectionchange`&&(vd.has(t)||bd(t,!1,e),bd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xd]||(t[xd]=!0,bd(`selectionchange`,!1,t))}}function Cd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!dn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function wd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=_t(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}cn(function(){var r=a,i=nn(n),s=[];a:{var c=Jr.get(e);if(c!==void 0){var l=Sn,u=e;switch(e){case`keypress`:if(_n(n)===0)break a;case`keydown`:case`keyup`:l=Bn;break;case`focusin`:u=`focus`,l=jn;break;case`focusout`:u=`blur`,l=jn;break;case`beforeblur`:case`afterblur`:l=jn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=kn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=An;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Hn;break;case Vr:case Hr:case Ur:l=Mn;break;case qr:l=Un;break;case`scroll`:case`scrollend`:l=wn;break;case`wheel`:l=Wn;break;case`copy`:case`cut`:case`paste`:l=Nn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Vn;break;case`toggle`:case`beforetoggle`:l=Gn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=ln(m,p),g!=null&&d.push(Td(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==tn&&(u=n.relatedTarget||n.fromElement)&&(_t(u)||u[dt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?_t(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=kn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Vn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:L(l),h=u==null?c:L(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,_t(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Dd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Od(s,c,l,d,!1),u!==null&&f!==null&&Od(s,f,u,d,!0)}}a:{if(c=r?L(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=dr;else if(ar(c))if(fr)v=xr;else{v=yr;var y=vr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Xt(r.elementType)&&(v=dr):v=br;if(v&&=v(e,r)){or(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Ht(c,`number`,c.value)}switch(y=r?L(r):window,e){case`focusin`:(ar(y)||y.contentEditable===`true`)&&(jr=y,Mr=r,Nr=null);break;case`focusout`:Nr=Mr=jr=null;break;case`mousedown`:Pr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Pr=!1,Fr(s,n,i);break;case`selectionchange`:if(Ar)break;case`keydown`:case`keyup`:Fr(s,n,i)}var b;if(qn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else tr?$n(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Xn&&n.locale!==`ko`&&(tr||x!==`onCompositionStart`?x===`onCompositionEnd`&&tr&&(b=gn()):(pn=i,mn=`value`in pn?pn.value:pn.textContent,tr=!0)),y=Ed(r,x),0<y.length&&(x=new Pn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=er(n),b!==null&&(x.data=b)))),(b=Yn?nr(e,n):rr(e,n))&&(x=Ed(r,`onBeforeInput`),0<x.length&&(y=new Pn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),md(s,e,r,n,i)}yd(s,t)})}function Td(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ed(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=ln(e,n),i!=null&&r.unshift(Td(e,i,a)),i=ln(e,t),i!=null&&r.push(Td(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Dd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Od(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=ln(n,a),l!=null&&o.unshift(Td(n,l,c))):i||(l=ln(n,a),l!=null&&o.push(Td(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var kd=/\\r\\n?/g,Ad=/\\u0000|\\uFFFD/g;function jd(e){return(typeof e==`string`?e:``+e).replace(kd,`\n`).replace(Ad,``)}function Md(e,t){return t=jd(t),jd(e)===t}function $(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Kt(e,``+r);break;case`className`:At(e,`class`,r);break;case`tabIndex`:At(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:At(e,n,r);break;case`style`:Yt(e,r,o);break;case`data`:if(t!==`object`){At(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error(\'A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().\')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,a.name,a,null),$(e,t,`formEncType`,a.formEncType,a,null),$(e,t,`formMethod`,a.formMethod,a,null),$(e,t,`formTarget`,a.formTarget,a,null)):($(e,t,`encType`,a.encType,a,null),$(e,t,`method`,a.method,a,null),$(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=en);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=$t(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),kt(e,`popover`,r);break;case`xlinkActuate`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:kt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Zt.get(n)||n,kt(e,n,r))}}function Nd(e,t,n,r,a,o){switch(n){case`style`:Yt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Kt(e,``+r);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=en);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!St.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ut]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):kt(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Q(`error`,e),Q(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:$(e,t,o,s,n,null)}}a&&$(e,t,`srcSet`,n.srcSet,n,null),r&&$(e,t,`src`,n.src,n,null);return;case`input`:Q(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:$(e,t,r,d,n,null)}}Vt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Q(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:$(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ut(e,!!r,n,!0):Ut(e,!!r,t,!1);return;case`textarea`:for(s in Q(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:$(e,t,s,c,n,null)}Gt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:$(e,t,l,r,n,null)}return;case`dialog`:Q(`beforetoggle`,e),Q(`toggle`,e),Q(`cancel`,e),Q(`close`,e);break;case`iframe`:case`object`:Q(`load`,e);break;case`video`:case`audio`:for(r=0;r<_d.length;r++)Q(_d[r],e);break;case`image`:Q(`error`,e),Q(`load`,e);break;case`details`:Q(`toggle`,e);break;case`embed`:case`source`:case`link`:Q(`error`,e),Q(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:$(e,t,u,r,n,null)}return;default:if(Xt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&$(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||$(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&$(e,t,p,m,r,f)}}Bt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||$(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&$(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ut(e,!!n,n?[]:``,!1):Ut(e,!!n,t,!0)):Ut(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:$(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&$(e,t,s,a,r,o)}Wt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:$(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:$(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&$(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:$(e,t,u,p,r,m)}return;default:if(Xt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&$(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||$(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Id(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Hd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ud(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e===Wd?!1:(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ht]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body);n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ef(n),gt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[ht])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gt(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=M.d;M.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=yu();return e||t}function yf(e){var t=vt(e);t!==null&&t.tag===5&&t.type===`form`?Es(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+zt(n.imageSizes)+`"]`)):i+=`[href="`+zt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+zt(r)+`"][href="`+zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),bt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=yt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);bt(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=yt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),bt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=yt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),bt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=de.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=yt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=yt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=yt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+zt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),bt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+zt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+zt(n.href)+`"]`);if(r)return t.instance=r,bt(r),r;var a=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),bt(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,bt(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),bt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,bt(a),a):(r=n,(a=mf.get(o))&&(r=h({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),bt(a),Pd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ht]||a[lt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,bt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),bt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:C,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$e(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$e(0),this.hiddenUpdates=$e(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=li(3,null,null,t),e.current=a,a.stateNode=e,t=oa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},za(a),e}function tp(e){return e?(e=si,e):si}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Va(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ha(e,r,t),n!==null&&(mu(n,e,t),Ua(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=ii(e,67108864);t!==null&&mu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=fu();t=it(t);var n=ii(e,t);n!==null&&mu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=2,up(e,t,n,r)}finally{M.p=a,j.T=i}}function lp(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=8,up(e,t,n,r)}finally{M.p=a,j.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)wd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=vt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Je(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ve(o);s.entanglements[1]|=c,o&=~c}rd(a),!(G&6)&&(tu=ke()+500,id(0,!1))}}break;case 31:case 13:s=ii(a,2),s!==null&&mu(s,a,2),yu(),ip(a,2)}if(a=dp(r),a===null&&wd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else wd(e,t,r,null,n)}}function dp(e){return e=nn(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=_t(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ae()){case je:return 2;case Me:return 8;case Ne:case Pe:return 32;case Fe:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=vt(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=_t(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,st(e.priority,function(){op(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,st(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);tn=r,n.target.dispatchEvent(r),tn=null}else return t=vt(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=vt(n);a!==null&&(e.splice(t,3),t-=3,ws(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ut]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ut]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,fu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),yu(),t[dt]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=ot();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.7`)throw Error(i(527,Lp,`19.2.7`));M.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:j,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{Re=zp.inject(Rp),ze=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=qs,s=Js,c=Ys;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[dt]=t.current,Sd(e),new Fp(t)}})),g=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),v=o(((e,t)=>{t.exports=_()})),y=c(u(),1),b=g(),x=v();function S(){return(0,x.jsx)(`span`,{"aria-hidden":!0,"data-acting-spinner":!0,className:`ml-1 inline-block h-2.5 w-2.5 shrink-0 animate-spin rounded-full border border-current border-t-transparent align-[-1px] motion-reduce:animate-none`})}var C=`opacity-60`,w=700,T=12e4;function E(e){let t=e.prs[0];return t?`Approve \u2014 merges PR #${t.number}?`:`Approve \u2014 approves ${e.slug}?`}function ee({card:e,approve:t,onApproving:n}){let[r,i]=(0,y.useState)({kind:`idle`}),a=r.kind===`armed`,o=r.kind===`running`,s=(0,y.useRef)(!1);(0,y.useEffect)(()=>{o||(s.current=!1)},[o]),(0,y.useEffect)(()=>{if(!(!o||!n))return n(!0),()=>n(!1)},[o,n]);let c=(0,y.useRef)(null);(0,y.useEffect)(()=>{if(!a)return;let e=e=>{c.current?.contains(e.target)||i({kind:`idle`})};document.addEventListener(`pointerdown`,e,!0);let t=e=>{e.key===`Escape`&&i({kind:`idle`})};return document.addEventListener(`keydown`,t,!0),()=>{document.removeEventListener(`pointerdown`,e,!0),document.removeEventListener(`keydown`,t,!0)}},[a]),(0,y.useEffect)(()=>{if(!o)return;let t=!1,n,r=Date.now(),a=async()=>{try{let n=await(await fetch(`/api/approve/${encodeURIComponent(e.slug)}`)).json();if(t)return;if(n.state===`failed`){i({kind:`failed`,message:n.message||`the approve command failed`});return}if(n.state===`done`){i({kind:`idle`});return}}catch(e){if(t)return;i({kind:`failed`,message:e instanceof Error?e.message:String(e)});return}if(Date.now()-r>T){i({kind:`failed`,message:`still running \u2014 see the approve log`});return}n=setTimeout(()=>void a(),w)};return n=setTimeout(()=>void a(),w),()=>{t=!0,clearTimeout(n)}},[o,e.slug]);let l=async()=>{i({kind:`running`});try{let t=await fetch(`/api/approve`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({slug:e.slug})}),n=await t.json();t.ok||i({kind:`failed`,message:n.error??`HTTP ${t.status}`})}catch(e){i({kind:`failed`,message:e instanceof Error?e.message:String(e)})}},u=o||!t.available;return(0,x.jsxs)(`span`,{ref:c,className:`inline-flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,x.jsxs)(`button`,{type:`button`,onClick:()=>{if(!u){if(r.kind===`idle`||r.kind===`failed`){i({kind:`armed`});return}if(r.kind===`armed`){if(s.current)return;s.current=!0,l()}}},"aria-disabled":u||void 0,"aria-busy":o,"aria-pressed":a,title:t.available?`Run /plot-approve ${e.slug}`:t.reason,className:a?`rounded-sm bg-amber-100 px-1.5 py-0.5 text-xs font-semibold text-amber-900 hover:underline dark:bg-amber-900/40 dark:text-amber-200`:u?`cursor-not-allowed text-xs font-medium text-slate-400 no-underline dark:text-slate-600${o?` ${C}`:``}`:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:[o?`approving\u2026`:a?E(e):`Approve`,o&&(0,x.jsx)(S,{}),!t.available&&t.reason&&(0,x.jsxs)(`span`,{className:`sr-only`,children:[` \u2014 unavailable: `,t.reason]})]}),r.kind===`failed`&&(0,x.jsx)(`span`,{className:`whitespace-pre-line text-xs text-red-700 dark:text-red-400`,children:r.message})]})}var D=700,te=3e5;function O(e){return`Commission design \u2014 moves ${e.slug} to Design?`}function k({card:e,commission:t,onActing:n}){let[r,i]=(0,y.useState)({kind:`idle`}),a=r.kind===`armed`,o=r.kind===`running`,s=(0,y.useRef)(!1);(0,y.useEffect)(()=>{o||(s.current=!1)},[o]),(0,y.useEffect)(()=>{if(!(!o||!n))return n(!0),()=>n(!1)},[o,n]);let c=(0,y.useRef)(null);(0,y.useEffect)(()=>{if(!a)return;let e=e=>{c.current?.contains(e.target)||i({kind:`idle`})};document.addEventListener(`pointerdown`,e,!0);let t=e=>{e.key===`Escape`&&i({kind:`idle`})};return document.addEventListener(`keydown`,t,!0),()=>{document.removeEventListener(`pointerdown`,e,!0),document.removeEventListener(`keydown`,t,!0)}},[a]),(0,y.useEffect)(()=>{if(!o)return;let t=!1,n,r=Date.now(),a=async()=>{try{let n=await(await fetch(`/api/commission/${encodeURIComponent(e.slug)}`)).json();if(t)return;if(n.state===`failed`){i({kind:`failed`,message:n.message||`the commission command failed`});return}if(n.state===`done`){i({kind:`idle`});return}}catch(e){if(t)return;i({kind:`failed`,message:e instanceof Error?e.message:String(e)});return}if(Date.now()-r>te){i({kind:`failed`,message:`still running \u2014 see the commission log`});return}n=setTimeout(()=>void a(),D)};return n=setTimeout(()=>void a(),D),()=>{t=!0,clearTimeout(n)}},[o,e.slug]);let l=async()=>{i({kind:`running`});try{let t=await fetch(`/api/commission`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({slug:e.slug})}),n=await t.json();t.ok||i({kind:`failed`,message:n.detail??n.error??`HTTP ${t.status}`})}catch(e){i({kind:`failed`,message:e instanceof Error?e.message:String(e)})}},u=o||!t.available;return(0,x.jsxs)(`span`,{ref:c,className:`inline-flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,x.jsxs)(`button`,{type:`button`,"data-commission":e.slug,onClick:()=>{if(!u){if(r.kind===`idle`||r.kind===`failed`){i({kind:`armed`});return}if(r.kind===`armed`){if(s.current)return;s.current=!0,l()}}},"aria-disabled":u||void 0,"aria-busy":o,"aria-pressed":a,title:t.available?`Move ${e.slug} into Design`:t.reason,className:a?`rounded-sm bg-amber-100 px-1.5 py-0.5 text-xs font-semibold text-amber-900 hover:underline dark:bg-amber-900/40 dark:text-amber-200`:u?`cursor-not-allowed text-xs font-medium text-slate-400 no-underline dark:text-slate-600${o?` ${C}`:``}`:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:[o?`commissioning\u2026`:a?O(e):`Commission design`,o&&(0,x.jsx)(S,{}),!t.available&&t.reason&&(0,x.jsxs)(`span`,{className:`sr-only`,children:[` \u2014 unavailable: `,t.reason]})]}),r.kind===`failed`&&(0,x.jsx)(`span`,{"data-commission-error":e.slug,className:`whitespace-pre-line text-xs text-red-700 dark:text-red-400`,children:r.message})]})}var A=700,ne=3e5;function re(e){return`Create plan \u2014 Draft for #${e.number}?`}function ie(e,t){return t===`unsupported`?`this git host has no issue read, so an issue cannot become a plan from here`:t===`failed`?`the issue lookup is failing, so this issue cannot be read \u2014 nothing was created`:e.available?``:e.reason||`this board cannot create plans`}function j({issue:e,idea:t,issueAnswer:n}){let[r,i]=(0,y.useState)({kind:`idle`}),a=r.kind===`armed`,o=r.kind===`running`,s=(0,y.useRef)(!1);(0,y.useEffect)(()=>{o||(s.current=!1)},[o]);let c=(0,y.useRef)(null);(0,y.useEffect)(()=>{if(!a)return;let e=e=>{c.current?.contains(e.target)||i({kind:`idle`})};document.addEventListener(`pointerdown`,e,!0);let t=e=>{e.key===`Escape`&&i({kind:`idle`})};return document.addEventListener(`keydown`,t,!0),()=>{document.removeEventListener(`pointerdown`,e,!0),document.removeEventListener(`keydown`,t,!0)}},[a]),(0,y.useEffect)(()=>{if(!o)return;let t=!1,n,r=Date.now(),a=async()=>{try{let n=await(await fetch(`/api/idea/${e.number}`)).json();if(t)return;if(n.state===`failed`){i({kind:`failed`,message:n.message||`the idea command failed`});return}if(n.state===`done`){i({kind:`idle`});return}}catch(e){if(t)return;i({kind:`failed`,message:e instanceof Error?e.message:String(e)});return}if(Date.now()-r>ne){i({kind:`failed`,message:`still running \u2014 see the idea log`});return}n=setTimeout(()=>void a(),A)};return n=setTimeout(()=>void a(),A),()=>{t=!0,clearTimeout(n)}},[o,e.number]);let l=async()=>{i({kind:`running`});try{let t=await fetch(`/api/idea`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({number:e.number,type:`feature`})}),n=await t.json();t.ok||i({kind:`failed`,message:n.detail??n.error??`HTTP ${t.status}`})}catch(e){i({kind:`failed`,message:e instanceof Error?e.message:String(e)})}},u=ie(t,n),d=o||u!==``;return(0,x.jsxs)(`span`,{ref:c,className:`inline-flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,x.jsxs)(`button`,{type:`button`,"data-create-plan":e.number,onClick:()=>{if(!d){if(r.kind===`idle`||r.kind===`failed`){i({kind:`armed`});return}if(r.kind===`armed`){if(s.current)return;s.current=!0,l()}}},"aria-disabled":d||void 0,"aria-busy":o,"aria-pressed":a,title:u||`Create a Draft plan from issue #${e.number}`,className:a?`rounded-sm bg-amber-100 px-1.5 py-0.5 text-xs font-semibold text-amber-900 hover:underline dark:bg-amber-900/40 dark:text-amber-200`:d?`cursor-not-allowed text-xs font-medium text-slate-400 no-underline dark:text-slate-600${o?` ${C}`:``}`:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:[o?`creating\u2026`:a?re(e):`Create plan`,o&&(0,x.jsx)(S,{}),u&&(0,x.jsxs)(`span`,{className:`sr-only`,children:[` \u2014 unavailable: `,u]})]}),r.kind===`failed`&&(0,x.jsx)(`span`,{"data-create-plan-error":e.number,className:`whitespace-pre-line text-xs text-red-700 dark:text-red-400`,children:r.message})]})}var M={rose:`bg-rose-50 text-rose-800 dark:bg-rose-950/40 dark:text-rose-300`,amber:`bg-amber-50 text-amber-800 dark:bg-amber-950/40 dark:text-amber-300`},ae=4e3;function oe(e,t,n){let r=e=>n.get(e.key)??0;return[...e].sort((e,n)=>{let i=t.has(e.key),a=t.has(n.key);return i===a?i&&a||e.severity===n.severity?r(n)-r(e):n.severity-e.severity:i?-1:1})}function se(e){let[t,n]=(0,y.useState)(new Set),r=(0,y.useRef)(new Map),i=(0,y.useRef)(0),a=(0,y.useRef)(new Map),o=(0,y.useRef)(!1);return(0,y.useEffect)(()=>{let t=new Set(e);for(let e of[...r.current.keys()])if(!t.has(e)){r.current.delete(e);let t=a.current.get(e);t&&(clearTimeout(t),a.current.delete(e))}let s=o.current,c=!1;for(let t of e)if(!r.current.has(t)){if(r.current.set(t,++i.current),!s)continue;c=!0,n(e=>new Set(e).add(t));let e=setTimeout(()=>{n(e=>{let n=new Set(e);return n.delete(t),n}),a.current.delete(t)},ae);a.current.set(t,e)}o.current=!0,c||n(e=>{let n=new Set([...e].filter(e=>t.has(e)));return n.size===e.size?e:n})},[e.join(`\\0`)]),(0,y.useEffect)(()=>()=>{for(let e of a.current.values())clearTimeout(e)},[]),{flashing:t,arrivalOrder:r.current}}function ce({statuses:e}){let{flashing:t,arrivalOrder:n}=se(e.map(e=>e.key)),[r,i]=(0,y.useState)(0),a=oe(e,t,n),o=a.length===0?0:Math.min(r,a.length-1);if((0,y.useEffect)(()=>{r!==o&&i(o)},[r,o]),a.length===0)return null;let s=a[o],c=a.length;return(0,x.jsx)(`div`,{"data-status-panel":!0,role:`status`,"aria-live":`polite`,className:`rounded-md px-4 py-3 text-sm ${M[s.tone]}`,children:(0,x.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,x.jsx)(`p`,{"data-status-text":!0,className:`break-words`,children:s.text}),c>1&&(0,x.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 whitespace-nowrap`,children:[(0,x.jsx)(`button`,{type:`button`,"data-status-prev":!0,"aria-label":`Previous status`,className:`rounded px-1 leading-none hover:bg-black/5 dark:hover:bg-white/10`,onClick:()=>i(e=>(e-1+c)%c),children:`\u2039`}),(0,x.jsxs)(`span`,{"data-status-count":!0,className:`tabular-nums`,children:[o+1,` of `,c,` statuses`]}),(0,x.jsx)(`button`,{type:`button`,"data-status-next":!0,"aria-label":`Next status`,className:`rounded px-1 leading-none hover:bg-black/5 dark:hover:bg-white/10`,onClick:()=>i(e=>(e+1)%c),children:`\u203A`})]})]})})}function N(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=N(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function P(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=N(e))&&(r&&(r+=` `),r+=t);return r}var le=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,ue=P,de=(e,t)=>n=>{if(t?.variants==null)return ue(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=le(t)||le(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return ue(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},fe=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},pe=(e,t)=>({classGroupId:e,validator:t}),me=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),he=`-`,ge=[],_e=`arbitrary..`,ve=e=>{let t=xe(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return be(e);let n=e.split(he);return ye(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?fe(i,t):t:i||ge}return n[e]||ge}}},ye=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=ye(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(he):e.slice(t).join(he),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},be=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?_e+r:void 0})(),xe=e=>{let{theme:t,classGroups:n}=e;return Se(n,t)},Se=(e,t)=>{let n=me();for(let r in e){let i=e[r];Ce(i,n,r,t)}return n},Ce=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];we(i,t,n,r)}},we=(e,t,n,r)=>{if(typeof e==`string`){Te(e,t,n);return}if(typeof e==`function`){Ee(e,t,n,r);return}De(e,t,n,r)},Te=(e,t,n)=>{let r=e===``?t:Oe(t,e);r.classGroupId=n},Ee=(e,t,n,r)=>{if(ke(e)){Ce(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(pe(n,e))},De=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Ce(o,Oe(t,a),n,r)}},Oe=(e,t)=>{let n=e,r=t.split(he),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=me(),n.nextPart.set(t,i)),n=i}return n},ke=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Ae=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},je=`!`,Me=`:`,Ne=[],Pe=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Fe=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Me){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(je)?(c=s.slice(0,-1),l=!0):s.startsWith(je)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Pe(t,l,c,u)};if(t){let e=t+Me,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Pe(Ne,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Ie=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Le=e=>({cache:Ae(e.cacheSize),parseClassName:Fe(e),sortModifiers:Ie(e),postfixLookupClassGroupIds:Re(e),...ve(e)}),Re=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},ze=/\\s+/,Be=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(ze),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+je:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Ve=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=He(n))&&(i&&(i+=` `),i+=r);return i},He=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=He(e[r]))&&(n&&(n+=` `),n+=t);return n},Ue=(e,...t)=>{let n,r,i,a,o=o=>(n=Le(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Be(e,n);return i(e,a),a};return a=o,(...e)=>a(Ve(...e))},We=[],Ge=e=>{let t=t=>t[e]||We;return t.isThemeGetter=!0,t},Ke=/^\\[(?:(\\w[\\w-]*):)?(.+)\\]$/i,qe=/^\\((?:(\\w[\\w-]*):)?(.+)\\)$/i,Je=/^\\d+(?:\\.\\d+)?\\/\\d+(?:\\.\\d+)?$/,Ye=/^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/,Xe=/\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/,Ze=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\\(.+\\)$/,Qe=/^(inset_)?-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/,$e=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\\(.+\\)$/,et=e=>Je.test(e),F=e=>!!e&&!Number.isNaN(Number(e)),tt=e=>!!e&&Number.isInteger(Number(e)),nt=e=>e.endsWith(`%`)&&F(e.slice(0,-1)),rt=e=>Ye.test(e),it=()=>!0,at=e=>Xe.test(e)&&!Ze.test(e),ot=()=>!1,st=e=>Qe.test(e),ct=e=>$e.test(e),lt=e=>!I(e)&&!L(e),ut=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),dt=e=>Et(e,At,ot),I=e=>Ke.test(e),ft=e=>Et(e,jt,at),pt=e=>Et(e,Mt,F),mt=e=>Et(e,Pt,it),ht=e=>Et(e,Nt,ot),gt=e=>Et(e,Ot,ot),_t=e=>Et(e,kt,ct),vt=e=>Et(e,Ft,st),L=e=>qe.test(e),yt=e=>Dt(e,jt),bt=e=>Dt(e,Nt),xt=e=>Dt(e,Ot),St=e=>Dt(e,At),Ct=e=>Dt(e,kt),wt=e=>Dt(e,Ft,!0),Tt=e=>Dt(e,Pt,!0),Et=(e,t,n)=>{let r=Ke.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Dt=(e,t,n=!1)=>{let r=qe.exec(e);return r?r[1]?t(r[1]):n:!1},Ot=e=>e===`position`||e===`percentage`,kt=e=>e===`image`||e===`url`,At=e=>e===`length`||e===`size`||e===`bg-size`,jt=e=>e===`length`,Mt=e=>e===`number`,Nt=e=>e===`family-name`,Pt=e=>e===`number`||e===`weight`,Ft=e=>e===`shadow`,It=Ue(()=>{let e=Ge(`color`),t=Ge(`font`),n=Ge(`text`),r=Ge(`font-weight`),i=Ge(`tracking`),a=Ge(`leading`),o=Ge(`breakpoint`),s=Ge(`container`),c=Ge(`spacing`),l=Ge(`radius`),u=Ge(`shadow`),d=Ge(`inset-shadow`),f=Ge(`text-shadow`),p=Ge(`drop-shadow`),m=Ge(`blur`),h=Ge(`perspective`),g=Ge(`aspect`),_=Ge(`ease`),v=Ge(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),L,I],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[L,I,c],T=()=>[et,`full`,`auto`,...w()],E=()=>[tt,`none`,`subgrid`,L,I],ee=()=>[`auto`,{span:[`full`,tt,L,I]},tt,L,I],D=()=>[tt,`auto`,L,I],te=()=>[`auto`,`min`,`max`,`fr`,L,I],O=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],k=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],A=()=>[`auto`,...w()],ne=()=>[et,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],re=()=>[et,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ie=()=>[et,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],j=()=>[e,L,I],M=()=>[...b(),xt,gt,{position:[L,I]}],ae=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],oe=()=>[`auto`,`cover`,`contain`,St,dt,{size:[L,I]}],se=()=>[nt,yt,ft],ce=()=>[``,`none`,`full`,l,L,I],N=()=>[``,F,yt,ft],P=()=>[`solid`,`dashed`,`dotted`,`double`],le=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ue=()=>[F,nt,xt,gt],de=()=>[``,`none`,m,L,I],fe=()=>[`none`,F,L,I],pe=()=>[`none`,F,L,I],me=()=>[F,L,I],he=()=>[et,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[rt],breakpoint:[rt],color:[it],container:[rt],"drop-shadow":[rt],ease:[`in`,`out`,`in-out`],font:[lt],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[rt],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[rt],shadow:[rt],spacing:[`px`,F],text:[rt],"text-shadow":[rt],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,et,I,L,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,L,I]}],"container-named":[ut],columns:[{columns:[F,I,L,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[tt,`auto`,L,I]}],basis:[{basis:[et,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[F,et,`auto`,`initial`,`none`,I]}],grow:[{grow:[``,F,L,I]}],shrink:[{shrink:[``,F,L,I]}],order:[{order:[tt,`first`,`last`,`none`,L,I]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...O(),`normal`]}],"justify-items":[{"justify-items":[...k(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...k()]}],"align-content":[{content:[`normal`,...O()]}],"align-items":[{items:[...k(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...k(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":O()}],"place-items":[{"place-items":[...k(),`baseline`]}],"place-self":[{"place-self":[`auto`,...k()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mbs:[{mbs:A()}],mbe:[{mbe:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ne()}],"inline-size":[{inline:[`auto`,...re()]}],"min-inline-size":[{"min-inline":[`auto`,...re()]}],"max-inline-size":[{"max-inline":[`none`,...re()]}],"block-size":[{block:[`auto`,...ie()]}],"min-block-size":[{"min-block":[`auto`,...ie()]}],"max-block-size":[{"max-block":[`none`,...ie()]}],w:[{w:[s,`screen`,...ne()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ne()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ne()]}],h:[{h:[`screen`,`lh`,...ne()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ne()]}],"max-h":[{"max-h":[`screen`,`lh`,...ne()]}],"font-size":[{text:[`base`,n,yt,ft]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Tt,mt]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,nt,I]}],"font-family":[{font:[bt,ht,t]}],"font-features":[{"font-features":[I]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,L,I]}],"line-clamp":[{"line-clamp":[F,`none`,L,pt]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,L,I]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,L,I]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...P(),`wavy`]}],"text-decoration-thickness":[{decoration:[F,`from-font`,`auto`,L,ft]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[F,`auto`,L,I]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[tt,L,I]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,L,I]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,L,I]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},tt,L,I],radial:[``,L,I],conic:[tt,L,I]},Ct,_t]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-bs":[{"border-bs":N()}],"border-w-be":[{"border-be":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":N()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...P(),`hidden`,`none`]}],"divide-style":[{divide:[...P(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...P(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[F,L,I]}],"outline-w":[{outline:[``,F,yt,ft]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`none`,u,wt,vt]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,wt,vt]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:N()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[F,ft]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,wt,vt]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[F,L,I]}],"mix-blend":[{"mix-blend":[...le(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":le()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[F]}],"mask-image-linear-from-pos":[{"mask-linear-from":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[L,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[F]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,L,I]}],filter:[{filter:[``,`none`,L,I]}],blur:[{blur:de()}],brightness:[{brightness:[F,L,I]}],contrast:[{contrast:[F,L,I]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,wt,vt]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,F,L,I]}],"hue-rotate":[{"hue-rotate":[F,L,I]}],invert:[{invert:[``,F,L,I]}],saturate:[{saturate:[F,L,I]}],sepia:[{sepia:[``,F,L,I]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,L,I]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[F,L,I]}],"backdrop-contrast":[{"backdrop-contrast":[F,L,I]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,F,L,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[F,L,I]}],"backdrop-invert":[{"backdrop-invert":[``,F,L,I]}],"backdrop-opacity":[{"backdrop-opacity":[F,L,I]}],"backdrop-saturate":[{"backdrop-saturate":[F,L,I]}],"backdrop-sepia":[{"backdrop-sepia":[``,F,L,I]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,L,I]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[F,`initial`,L,I]}],ease:[{ease:[`linear`,`initial`,_,L,I]}],delay:[{delay:[F,L,I]}],animate:[{animate:[`none`,v,L,I]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,L,I]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":[`scale-3d`],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[L,I,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":[`translate-none`],zoom:[{zoom:[tt,L,I]}],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,L,I]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,L,I]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[F,yt,ft,pt]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Lt(...e){return It(P(e))}var Rt=de(`inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium max-w-full [overflow-wrap:anywhere]`,{variants:{variant:{neutral:`bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-200`,feature:`bg-blue-100 text-blue-800 dark:bg-blue-900/40 dark:text-blue-200`,bug:`bg-red-100 text-red-800 dark:bg-red-900/40 dark:text-red-200`,docs:`bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-200`,infra:`bg-violet-100 text-violet-800 dark:bg-violet-900/40 dark:text-violet-200`,sprint:`bg-amber-100 text-amber-800 dark:bg-amber-900/40 dark:text-amber-200`,story:`bg-teal-100 text-teal-800 dark:bg-teal-900/40 dark:text-teal-200`}},defaultVariants:{variant:`neutral`}});function zt({variant:e,className:t,children:n}){return(0,x.jsx)(`span`,{className:Lt(Rt({variant:e}),t),children:n})}function Bt(e){switch(e){case`feature`:case`bug`:case`docs`:case`infra`:return e;default:return`neutral`}}function Vt(e){let t=e.path.split(/[/\\\\]/).pop()??``;return`/plan/${encodeURIComponent(t)}`}function Ht(e){return!e.path||!e.slug?``:`/story/${encodeURIComponent(e.slug)}`}function Ut(e){return e.waveSummary?.claimed}function Wt(e,t){if(!t.available)return t.reason;let n=e.waveSummary;if(n){if(n.claimed===void 0||n.eligible===void 0)return`waiting for the first fleet scan`;if(n.eligible===0)return`no branch is eligible to start`}}function Gt(e){let{claimedAtClick:t,claimedNow:n,pulsesElapsed:r,limit:i}=e;return t!==void 0&&n!==void 0&&n>t?`confirmed`:r>=i?`gave-up`:`waiting`}var Kt=3;function qt({card:e,dispatch:t,pulse:n,onStarting:r}){let[i,a]=(0,y.useState)({kind:`idle`}),o=i.kind===`starting`,s=(0,y.useRef)(!1);(0,y.useEffect)(()=>{o||(s.current=!1)},[o]),(0,y.useEffect)(()=>{if(!(!o||!r))return r(!0),()=>r(!1)},[o,r]);let c=(0,y.useRef)(Ut(e)),l=Ut(e);(0,y.useEffect)(()=>{if(i.kind!==`starting`){c.current=l;return}let e=Gt({claimedAtClick:c.current,claimedNow:l,pulsesElapsed:n-i.since,limit:Kt});e===`confirmed`?a({kind:`idle`}):e===`gave-up`&&a({kind:`dispatched`})},[n,l,i]);let u=async()=>{a({kind:`starting`,since:n});try{let t=await fetch(`/api/dispatch`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({slug:e.slug})}),n=await t.json();if(!t.ok){a({kind:`failed`,message:n.error??`HTTP ${t.status}`});return}}catch(e){a({kind:`failed`,message:e instanceof Error?e.message:String(e)})}},d=Wt(e,t),f=o||d!==void 0;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(`button`,{type:`button`,onClick:()=>{s.current||f||(s.current=!0,u())},"aria-disabled":f||void 0,"aria-busy":o,title:d??`Dispatch the next eligible branch of ${e.slug}`,className:f?`cursor-not-allowed text-xs font-medium text-slate-400 no-underline dark:text-slate-600${o?` ${C}`:``}`:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:[o?`starting\u2026`:`Start work`,o&&(0,x.jsx)(S,{}),!o&&d&&(0,x.jsxs)(`span`,{className:`sr-only`,children:[` \u2014 unavailable: `,d]})]}),i.kind===`dispatched`&&(0,x.jsx)(`span`,{"data-dispatched":!0,className:`text-xs text-slate-500 dark:text-slate-400`,children:`Agent work will show up shortly`}),i.kind===`failed`&&(0,x.jsx)(`span`,{className:`text-xs text-red-700 dark:text-red-400`,children:i.message})]})}var Jt={Discovery:`border-l-sky-400`,Design:`border-l-slate-400`,Development:`border-l-green-500`,Endgame:`border-l-violet-500`,Released:`border-l-orange-500`};function Yt(e){return e.phase===`Design`&&e.started===!1}function Xt(e){return Yt(e)||e.phase===`Development`&&e.started===!0}function Zt(e){return e.phase===`Discovery`}function Qt(e){let t=[];return e.waves>1&&t.push(`${e.waves} waves \xB7 ${e.branches} branches`),(e.claimed??0)>0&&t.push(`${e.claimed} claimed`),(e.eligible??0)>0&&t.push(`${e.eligible} ready`),t.join(` \xB7 `)}function $t(e){return!Zt(e)||e.rounds===void 0?``:e.rounds===1?`1 round`:`${e.rounds} rounds`}function en({card:e,showSprint:t,showStory:n,dispatch:r,approve:i,pulse:a=0,onStarting:o,onOpen:s,story:c,onOpenStory:l,highlighted:u=!1}){let d=Vt(e),f=c?Ht(c):``;return(0,x.jsxs)(`article`,{id:`plan-${e.slug}`,"data-highlighted":u?`true`:void 0,className:Lt(`scroll-mt-20 rounded-md border border-l-4 bg-white p-3 shadow-sm`,`border-slate-200 dark:border-slate-700 dark:bg-slate-900`,Jt[e.phase],u&&`ring-2 ring-blue-500 ring-offset-2 dark:ring-offset-slate-950`),children:[(0,x.jsx)(`div`,{className:`text-sm font-medium leading-snug text-slate-900 dark:text-slate-100`,children:e.title}),(0,x.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-1.5`,children:[(0,x.jsx)(zt,{variant:Bt(e.type),children:e.type}),Yt(e)&&(0,x.jsx)(zt,{variant:`neutral`,children:`Ready`}),t&&e.sprint&&(0,x.jsx)(zt,{variant:`sprint`,children:e.sprint}),n&&e.story&&(f&&l&&c?(0,x.jsx)(`a`,{href:f,onClick:e=>{e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button!==0||(e.preventDefault(),l(c))},className:`rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1`,title:`Open the ${e.story} story`,children:(0,x.jsx)(zt,{variant:`story`,className:`hover:underline`,children:e.story})}):(0,x.jsx)(zt,{variant:`story`,children:e.story})),n&&!e.story&&(0,x.jsx)(zt,{variant:`neutral`,children:`no story`}),e.waveSummary&&e.waveSummary.branches>0&&Qt(e.waveSummary)&&(0,x.jsx)(zt,{variant:`neutral`,children:Qt(e.waveSummary)}),$t(e)&&(0,x.jsx)(zt,{variant:`neutral`,children:$t(e)})]}),(0,x.jsx)(`div`,{className:`mt-2 font-mono text-xs text-slate-400 dark:text-slate-500`,children:e.path}),(0,x.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-center gap-x-3 gap-y-1`,children:[(0,x.jsx)(`a`,{href:d,onClick:t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.button!==0||(t.preventDefault(),s(e))},className:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:`Open`}),e.prs.map(e=>e.url?(0,x.jsxs)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`,className:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:[`#`,e.number]},e.number):(0,x.jsxs)(`span`,{className:`text-xs text-slate-400 dark:text-slate-500`,title:`No link \u2014 the host has not reported a URL for this PR`,children:[`#`,e.number]},e.number)),r&&Xt(e)&&(0,x.jsx)(qt,{card:e,dispatch:r,pulse:a,onStarting:o}),i&&Zt(e)&&(0,x.jsx)(ee,{card:e,approve:i,onApproving:o}),e.assignee&&(0,x.jsxs)(`span`,{className:`ml-auto text-xs text-slate-500 dark:text-slate-400`,children:[`@`,e.assignee]})]})]})}function tn(e){return e.replace(/\\s+/g,` `).trim()}function nn(e){if(e<60)return`${e}s`;let t=Math.floor(e/60);if(t<60)return`${t}m`;let n=Math.floor(t/60);if(n<24)return t%60==0?`${n}h`:`${n}h ${t%60}m`;let r=Math.floor(n/24);return n%24==0?`${r}d`:`${r}d ${n%24}h`}function rn(e){return e<1e3?`${e}`:`${Math.round(e/1e3)}k`}function an(e,t=Date.now()){let n=Date.parse(e);if(Number.isNaN(n))return null;let r=Math.max(0,Math.round((t-n)/1e3));return r<60?`just now`:`${nn(r)} ago`}function on({label:e,value:t}){return t==null||t===``?null:(0,x.jsxs)(`div`,{className:`flex min-w-0 items-baseline gap-2`,"data-fact":e,children:[(0,x.jsx)(`span`,{className:`shrink-0 text-[11px] uppercase tracking-wide text-slate-400 dark:text-slate-500`,children:e}),(0,x.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs text-slate-700 dark:text-slate-300`,children:t})]})}function sn({label:e,value:t,onOpen:n}){return t==null||t===``?null:n?(0,x.jsxs)(`div`,{className:`flex min-w-0 items-baseline gap-2`,"data-fact":e,children:[(0,x.jsx)(`span`,{className:`shrink-0 text-[11px] uppercase tracking-wide text-slate-400 dark:text-slate-500`,children:e}),(0,x.jsx)(`button`,{type:`button`,onClick:n,"data-fact-link":e,title:t,className:`min-w-0 truncate text-left font-mono text-xs text-blue-600 hover:underline dark:text-blue-400`,children:t})]}):(0,x.jsx)(on,{label:e,value:t})}function cn({label:e,value:t}){let[n,r]=(0,y.useState)(!1);return t==null||t===``?null:(0,x.jsxs)(`div`,{className:`flex min-w-0 items-baseline gap-2`,"data-fact":e,children:[(0,x.jsx)(`span`,{className:`shrink-0 text-[11px] uppercase tracking-wide text-slate-400 dark:text-slate-500`,children:e}),(0,x.jsx)(`span`,{"data-fact-copy":e,title:t,className:`min-w-0 truncate font-mono text-xs text-slate-700 dark:text-slate-300`,children:t}),(0,x.jsx)(`button`,{type:`button`,onClick:()=>{navigator.clipboard?.writeText(t).then(()=>{r(!0),setTimeout(()=>r(!1),1200)},()=>{})},"data-copy-path":!0,className:`shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium text-slate-500 hover:bg-slate-100 hover:text-slate-700 dark:text-slate-400 dark:hover:bg-slate-800 dark:hover:text-slate-200`,children:n?`Copied`:`Copy path`})]})}function ln({command:e}){let[t,n]=(0,y.useState)(!1),[r,i]=(0,y.useState)(!1);return e==null||e===``?null:(0,x.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,"data-fact":`command`,"data-command-fact":!0,children:[(0,x.jsxs)(`div`,{className:`flex items-baseline gap-2`,children:[(0,x.jsx)(`span`,{className:`shrink-0 text-[11px] uppercase tracking-wide text-slate-400 dark:text-slate-500`,children:`command`}),(0,x.jsx)(`button`,{type:`button`,"data-command-toggle":!0,"aria-expanded":t,onClick:()=>n(e=>!e),className:`shrink-0 text-[11px] text-sky-600 hover:underline dark:text-sky-400`,children:t?`Show less`:`Show more`}),(0,x.jsx)(`button`,{type:`button`,"data-command-copy":!0,onClick:async()=>{try{await navigator.clipboard?.writeText(e),i(!0),setTimeout(()=>i(!1),1500)}catch{}},className:`shrink-0 text-[11px] text-sky-600 hover:underline dark:text-sky-400`,children:r?`Copied`:`Copy`})]}),(0,x.jsx)(`div`,{"data-command-value":!0,"data-command-expanded":t?`true`:`false`,className:t?`min-w-0 max-h-40 overflow-y-auto whitespace-pre-wrap break-words font-mono text-xs leading-relaxed text-slate-700 dark:text-slate-300`:`line-clamp-3 min-w-0 break-words font-mono text-xs leading-relaxed text-slate-700 dark:text-slate-300`,children:t?e:tn(e)})]})}function un({panel:e,now:t,onOpenPlan:n,onRevealBranch:r}){if(!e)return null;if(!e.ok)return(0,x.jsx)(`p`,{"data-panel-miss":e.reason,className:`shrink-0 border-b border-slate-200 px-4 py-2 text-xs text-slate-500 dark:border-slate-800 dark:text-slate-400`,children:e.reason===`no-worktree`?`No worktree for this branch on this machine \u2014 ask the machine that took it.`:`No scan has reported this branch \u2014 the next pulse may know it.`});let i=e.lastActivity?an(e.lastActivity,t):null;return(0,x.jsxs)(`div`,{"data-agent-facts":!0,className:`grid shrink-0 grid-cols-2 gap-x-6 gap-y-1 border-b border-slate-200 px-4 py-3 dark:border-slate-800`,children:[(0,x.jsx)(on,{label:`pid`,value:e.pid}),(0,x.jsx)(on,{label:`uptime`,value:e.uptimeSeconds===null?null:nn(e.uptimeSeconds)}),(0,x.jsx)(sn,{label:`branch`,value:e.branch,onOpen:r?()=>r(e.branch):void 0}),(0,x.jsx)(on,{label:`state`,value:e.worker}),(0,x.jsx)(sn,{label:`plan`,value:e.plan,onOpen:n&&e.plan?()=>n(e.plan):void 0}),(0,x.jsx)(on,{label:`wave`,value:e.wave}),(0,x.jsx)(on,{label:`model`,value:e.model}),(0,x.jsx)(on,{label:`context`,value:e.contextTokens===void 0?null:`${rn(e.contextTokens)} tokens`}),(0,x.jsx)(on,{label:`last activity`,value:i}),(0,x.jsx)(`div`,{className:`col-span-2 min-w-0`,children:(0,x.jsx)(cn,{label:`worktree`,value:e.worktree})}),(0,x.jsx)(`div`,{className:`col-span-2 min-w-0`,children:(0,x.jsx)(ln,{command:e.command})})]})}var dn=`Continue with an answer`,fn=`Starts a NEW worker in this worktree with your answer, the brief, and what already landed. The agent that asked has already exited \u2014 this continues the work, not a conversation.`;function pn(e){switch(e){case`unknown-branch`:return`No plan on this board names that branch.`;case`no-worktree`:return`No worktree for this branch on this machine \u2014 continue it from the machine that holds it.`;case`no-question`:return`Nothing is waiting on an answer in that worktree \u2014 the marker is gone, so it may already have been answered.`;case`no-worker-command`:return"No `Worker command` is configured, so the board cannot start one \u2014 continue it yourself in the worktree."}}function mn({branch:e,available:t,unavailableReason:n,fetcher:r=fetch}){let[i,a]=(0,y.useState)(``),[o,s]=(0,y.useState)({at:`idle`});return t?(0,x.jsxs)(`div`,{"data-continue":!0,className:`shrink-0 border-t border-slate-200 px-4 py-3 dark:border-slate-800`,children:[(0,x.jsx)(`label`,{htmlFor:`continue-${e}`,className:`block text-xs font-medium text-slate-700 dark:text-slate-200`,children:dn}),(0,x.jsx)(`p`,{className:`mt-0.5 text-[11px] leading-snug text-slate-500 dark:text-slate-400`,children:fn}),(0,x.jsx)(`textarea`,{id:`continue-${e}`,"data-continue-answer":!0,value:i,onChange:e=>a(e.target.value),rows:3,placeholder:`Answer the question the worker left in its tree\u2026`,className:`mt-2 w-full rounded border border-slate-300 bg-white px-2 py-1.5 font-mono text-xs text-slate-800 dark:border-slate-700 dark:bg-slate-950 dark:text-slate-200`}),(0,x.jsxs)(`div`,{className:`mt-2 flex items-center gap-3`,children:[(0,x.jsx)(`button`,{type:`button`,"data-continue-send":!0,onClick:()=>{i.trim()===``||o.at===`sending`||(s({at:`sending`}),r(`/api/continue`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({branch:e,answer:i})}).then(async e=>{let t=await e.json();if(`error`in t){s({at:`error`,message:t.error});return}if(t.ok===!1){s({at:`refused`,reason:t.reason});return}a(``),s({at:`started`,pid:t.pid,previousPid:t.previousPid})}).catch(e=>{s({at:`error`,message:e instanceof Error?e.message:String(e)})}))},disabled:i.trim()===``||o.at===`sending`,className:`rounded bg-slate-800 px-3 py-1 text-xs font-medium text-white disabled:opacity-40 dark:bg-slate-200 dark:text-slate-900`,children:o.at===`sending`?`Starting\u2026`:dn}),o.at===`started`&&(0,x.jsxs)(`span`,{"data-continue-started":!0,className:`text-xs text-emerald-700 dark:text-emerald-400`,children:[`New worker started (pid `,o.pid,o.previousPid?`, replacing pid ${o.previousPid}`:``,`).`]}),o.at===`refused`&&(0,x.jsx)(`span`,{"data-continue-refused":o.reason,className:`text-xs text-amber-700 dark:text-amber-400`,children:pn(o.reason)}),o.at===`error`&&(0,x.jsx)(`span`,{"data-continue-error":!0,className:`text-xs text-rose-600 dark:text-rose-400`,children:o.message})]})]}):(0,x.jsx)(`div`,{"data-continue-unavailable":!0,className:`shrink-0 border-t border-slate-200 px-4 py-3 text-xs text-slate-500 dark:border-slate-800 dark:text-slate-400`,children:n||`Continuing is not available on this board.`})}var hn=3e3;function gn(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function _n(e){switch(e){case`no-worktree`:return`No worktree for this branch on this machine \u2014 ask the machine that took it.`;case`no-log`:return`The worktree is here, but no worker has written a log in it.`;case`unreadable`:return`The log file is there and would not open \u2014 check its permissions.`}}var vn=`The log is empty \u2014 an agent that writes its transcript on exit shows nothing here until it finishes.`;function yn({branch:e,onClose:t,fetcher:n=fetch,now:r,canContinue:i,onOpenPlan:a,onRevealBranch:o}){let[s,c]=(0,y.useState)(null),[l,u]=(0,y.useState)(null),[d,f]=(0,y.useState)(null),p=(0,y.useRef)(null),m=(0,y.useRef)(!0);return(0,y.useEffect)(()=>{let t=!1,r=()=>{n(`/api/worker-log?branch=${encodeURIComponent(e)}`).then(async e=>{let n=await e.json();if(!t){if(`error`in n){f(n.error);return}f(null),c(n)}}).catch(e=>{t||f(e instanceof Error?e.message:String(e))})};r();let i=setInterval(r,hn);return()=>{t=!0,clearInterval(i)}},[e,n]),(0,y.useEffect)(()=>{let t=!1,r=()=>{n(`/api/agent-panel?branch=${encodeURIComponent(e)}`).then(async e=>{let n=await e.json();t||`error`in n||u(n)}).catch(()=>{})};r();let i=setInterval(r,hn);return()=>{t=!0,clearInterval(i)}},[e,n]),(0,y.useEffect)(()=>{let e=e=>{e.key===`Escape`&&t()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[t]),(0,y.useEffect)(()=>{let e=window.scrollY,t=document.body,n={position:t.style.position,top:t.style.top,width:t.style.width,overflow:t.style.overflow};return t.style.position=`fixed`,t.style.top=`-${e}px`,t.style.width=`100%`,t.style.overflow=`hidden`,()=>{t.style.position=n.position,t.style.top=n.top,t.style.width=n.width,t.style.overflow=n.overflow,window.scrollTo(0,e)}},[]),(0,y.useEffect)(()=>{let e=p.current;e&&m.current&&(e.scrollTop=e.scrollHeight)},[s]),(0,x.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-slate-900/50 p-4`,onClick:t,children:(0,x.jsxs)(`div`,{role:`dialog`,"aria-label":`Agent: ${e}`,"data-worker-log":!0,"data-agent-panel":!0,className:`flex h-[80vh] w-full max-w-4xl flex-col overflow-hidden rounded-lg bg-white shadow-xl dark:bg-slate-900`,onClick:e=>e.stopPropagation(),children:[(0,x.jsxs)(`header`,{className:`flex shrink-0 items-baseline gap-3 border-b border-slate-200 px-4 py-3 dark:border-slate-800`,children:[(0,x.jsx)(`span`,{className:`text-sm font-medium text-slate-900 dark:text-slate-100`,children:`Agent`}),(0,x.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-xs text-slate-500 dark:text-slate-400`,children:e}),(0,x.jsx)(`button`,{type:`button`,onClick:t,className:`shrink-0 rounded px-2 py-1 text-xs text-slate-600 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-slate-800`,children:`Close`})]}),(0,x.jsx)(un,{panel:l,now:r,onOpenPlan:a,onRevealBranch:o?e=>{t(),o(e)}:void 0}),s?.ok&&s.truncated&&(0,x.jsxs)(`p`,{"data-log-truncated":!0,className:`shrink-0 border-b border-amber-200 bg-amber-50 px-4 py-1.5 text-xs text-amber-800 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-200`,children:[`Showing the last `,gn(s.text.length),` of `,gn(s.bytes),` \u2014 open the file for the rest.`]}),(0,x.jsx)(`pre`,{ref:p,onScroll:()=>{let e=p.current;e&&(m.current=e.scrollHeight-e.scrollTop-e.clientHeight<40)},"data-log-body":!0,className:`min-h-0 flex-1 overflow-auto whitespace-pre-wrap break-words bg-slate-50 px-4 py-3 font-mono text-xs leading-relaxed text-slate-800 dark:bg-slate-950 dark:text-slate-200`,children:d===null?s===null?(0,x.jsx)(`span`,{className:`text-slate-400`,children:`Loading\u2026`}):s.ok?s.text===``?(0,x.jsx)(`span`,{"data-log-empty":!0,className:`text-slate-500 dark:text-slate-400`,children:vn}):s.text:(0,x.jsx)(`span`,{"data-log-miss":s.reason,className:`text-slate-500 dark:text-slate-400`,children:_n(s.reason)}):(0,x.jsx)(`span`,{className:`text-rose-600 dark:text-rose-400`,children:d})}),l?.ok&&l.worker===`waiting`&&(0,x.jsx)(mn,{branch:e,available:i?.available??!1,unavailableReason:i?.reason,fetcher:n}),s?.path&&(0,x.jsx)(bn,{path:s.path})]})})}function bn({path:e}){let[t,n]=(0,y.useState)(!1);return(0,x.jsxs)(`footer`,{className:`flex shrink-0 items-center gap-3 border-t border-slate-200 px-4 py-2 dark:border-slate-800`,children:[(0,x.jsx)(`span`,{"data-log-path":!0,className:`min-w-0 flex-1 truncate font-mono text-[11px] text-slate-400 dark:text-slate-500`,children:e}),(0,x.jsx)(`button`,{type:`button`,"data-log-path-copy":!0,onClick:()=>{let t=()=>{n(!0),window.setTimeout(()=>n(!1),1500)};navigator.clipboard?.writeText?navigator.clipboard.writeText(e).then(t,()=>xn(e,t)):xn(e,t)},className:`shrink-0 rounded px-2 py-0.5 text-[11px] font-medium text-slate-600 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-slate-800`,children:t?`Copied`:`Copy path`})]})}function xn(e,t){let n=document.createElement(`textarea`);n.value=e,n.style.position=`fixed`,n.style.opacity=`0`,document.body.appendChild(n),n.select();try{document.execCommand(`copy`),t()}finally{document.body.removeChild(n)}}var Sn=`The dispatcher opened its log and has not written to it yet \u2014 give it a moment.`;function Cn(e){switch(e){case`no-log`:return`No dispatcher log \u2014 nobody has started work on this plan from this machine.`;case`unreadable`:return`The dispatcher log is there and would not open \u2014 check its permissions.`}}function wn({slug:e,onClose:t,fetcher:n=fetch}){let[r,i]=(0,y.useState)(null),[a,o]=(0,y.useState)(null),s=(0,y.useRef)(null),c=(0,y.useRef)(!0);return(0,y.useEffect)(()=>{let t=!1,r=()=>{n(`/api/dispatch-log?slug=${encodeURIComponent(e)}`).then(async e=>{let n=await e.json();if(!t){if(`error`in n){o(n.error);return}o(null),i(n)}}).catch(e=>{t||o(e instanceof Error?e.message:String(e))})};r();let a=setInterval(r,hn);return()=>{t=!0,clearInterval(a)}},[e,n]),(0,y.useEffect)(()=>{let e=e=>{e.key===`Escape`&&t()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[t]),(0,y.useEffect)(()=>{let e=s.current;e&&c.current&&(e.scrollTop=e.scrollHeight)},[r]),(0,x.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-slate-900/50 p-4`,onClick:t,children:(0,x.jsxs)(`div`,{role:`dialog`,"aria-label":`Dispatcher log: ${e}`,"data-dispatch-log":!0,className:`flex h-[80vh] w-full max-w-4xl flex-col overflow-hidden rounded-lg bg-white shadow-xl dark:bg-slate-900`,onClick:e=>e.stopPropagation(),children:[(0,x.jsxs)(`header`,{className:`flex shrink-0 items-baseline gap-3 border-b border-slate-200 px-4 py-3 dark:border-slate-800`,children:[(0,x.jsx)(`span`,{className:`text-sm font-medium text-slate-900 dark:text-slate-100`,children:`Status`}),(0,x.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-xs text-slate-500 dark:text-slate-400`,children:e}),(0,x.jsx)(`button`,{type:`button`,onClick:t,className:`shrink-0 rounded px-2 py-1 text-xs text-slate-600 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-slate-800`,children:`Close`})]}),r?.ok&&r.truncated&&(0,x.jsxs)(`p`,{"data-log-truncated":!0,className:`shrink-0 border-b border-amber-200 bg-amber-50 px-4 py-1.5 text-xs text-amber-800 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-200`,children:[`Showing the last `,gn(r.text.length),` of `,gn(r.bytes),` \u2014 open the file for the rest.`]}),(0,x.jsx)(`pre`,{ref:s,onScroll:()=>{let e=s.current;e&&(c.current=e.scrollHeight-e.scrollTop-e.clientHeight<40)},"data-log-body":!0,className:`min-h-0 flex-1 overflow-auto whitespace-pre-wrap break-words bg-slate-50 px-4 py-3 font-mono text-xs leading-relaxed text-slate-800 dark:bg-slate-950 dark:text-slate-200`,children:a===null?r===null?(0,x.jsx)(`span`,{className:`text-slate-400`,children:`Loading\u2026`}):r.ok?r.text===``?(0,x.jsx)(`span`,{"data-log-empty":!0,className:`text-slate-500 dark:text-slate-400`,children:Sn}):r.text:(0,x.jsx)(`span`,{"data-log-miss":r.reason,className:`text-slate-500 dark:text-slate-400`,children:Cn(r.reason)}):(0,x.jsx)(`span`,{className:`text-rose-600 dark:text-rose-400`,children:a})}),r?.path&&(0,x.jsx)(`footer`,{className:`shrink-0 truncate border-t border-slate-200 px-4 py-2 font-mono text-[11px] text-slate-400 dark:border-slate-800 dark:text-slate-500`,children:r.path})]})})}function Tn({branch:e,paths:t,onClose:n}){return(0,y.useEffect)(()=>{let e=e=>{e.key===`Escape`&&n()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[n]),(0,x.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-slate-900/50 p-4`,onClick:n,children:(0,x.jsxs)(`div`,{role:`dialog`,"aria-label":`Files changed on ${e}`,"data-changed-files":!0,className:`flex max-h-[80vh] w-full max-w-2xl flex-col overflow-hidden rounded-lg bg-white shadow-xl dark:bg-slate-900`,onClick:e=>e.stopPropagation(),children:[(0,x.jsxs)(`header`,{className:`flex shrink-0 items-baseline gap-3 border-b border-slate-200 px-4 py-3 dark:border-slate-800`,children:[(0,x.jsx)(`span`,{className:`text-sm font-medium text-slate-900 dark:text-slate-100`,children:`Changed files`}),(0,x.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-xs text-slate-500 dark:text-slate-400`,children:e}),(0,x.jsx)(`button`,{type:`button`,onClick:n,className:`shrink-0 rounded px-2 py-1 text-xs text-slate-600 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-slate-800`,children:`Close`})]}),(0,x.jsx)(`ul`,{"data-changed-files-body":!0,className:`min-h-0 flex-1 overflow-auto bg-slate-50 px-4 py-3 font-mono text-xs leading-relaxed text-slate-800 dark:bg-slate-950 dark:text-slate-200`,children:t.map(e=>(0,x.jsx)(`li`,{className:`break-all`,children:e},e))})]})})}var En=[{key:`waiting-on-you`,icon:`\u26A0`,label:`Waiting on you`,hint:`review, merge, decide`},{key:`working`,icon:`\u{1F916}`,label:`Working`,hint:`nothing to do \u2014 just look`},{key:`waiting-on-machine`,icon:`\u23F3`,label:`Waiting on a machine`,hint:`nothing \u2014 a machine is working`},{key:`not-started`,icon:`\u{1F4CB}`,label:`Not started`,hint:`approved \u2014 nobody has taken it`},{key:`quiet`,icon:`\u{1F4A4}`,label:`Quiet`,hint:`still thinking, or dead?`},{key:`done`,icon:`\u2705`,label:`Done`,hint:`merged`}],Dn=[`quiet`,`done`],On=`this host cannot report CI`;function kn(e){let t=An(e);return t.length===0?e.note:t.map(e=>e.evidence).join(`; `)}function An(e){return e.processes??[]}function jn(e){return e.group===`waiting-on-machine`||An(e).length>0}function Mn(e){let t=e.filter(e=>e.pr&&e.state!==`merged`);return t.length>0&&t.every(e=>e.pr.state===`unknown`)}function Nn(e){return e.prAgeSeconds===null?e.prError?`unreachable`:`unasked`:`answered`}var Pn={unasked:`not checked yet`,unreachable:`could not reach the host`};function Fn(e){return e?/rate limit/i.test(e)?`rate-limited`:`unreachable`:null}function In(e){return e===null||e<=0?null:e<60?`${e}s`:`${Math.round(e/60)} min`}function Ln(e){let t=Fn(e.prError);if(t===null)return null;if(t===`rate-limited`){let t=In(e.prNextInSeconds);return`PR data paused: the host\'s rate limit is spent`+(t?`, service returns in ~${t}`:``)+` \u2014 the two groups above that depend on it may be incomplete.`}return`PR data unavailable (${e.prError}) \u2014 the two groups above that depend on it may be incomplete.`}function Rn(e){let t=Fn(e.issueError);if(t===null)return null;if(t===`rate-limited`){let t=In(e.prNextInSeconds);return`Open issues paused: the tracker\'s rate limit is spent`+(t?`, service returns in ~${t}`:``)+` \u2014 this list may be incomplete.`}return`Open issues could not be read, so this list may be incomplete \u2014 ${e.issueError}`}var zn=`plot-board:agents:collapsed`;function Bn(e){let t=new Set(Dn),n=null;try{n=(e??globalThis.localStorage)?.getItem(zn)??null}catch{return t}if(n===null)return t;try{let e=JSON.parse(n);if(!Array.isArray(e))return t;let r=new Set(En.map(e=>e.key));return new Set(e.filter(e=>typeof e==`string`&&r.has(e)))}catch{return t}}function Vn(e,t){try{(t??globalThis.localStorage)?.setItem(zn,JSON.stringify([...e]))}catch{}}function Hn(e){return e>0}function Un(e){if(e<60)return`${e}m`;let t=Math.floor(e/60);return t<24?`${t}h`:`${Math.floor(t/24)}d`}function Wn(e){return e.ageMinutes===null?`\u2014`:Un(e.ageMinutes)}function Gn(e){return e<1?`today`:e<60?`${e}d`:`${Math.floor(e/30)}mo`}var Kn=`grid-cols-[1rem_5rem_10rem_1fr_14rem_2.5rem_1.25rem]`,qn=`grid-cols-[1rem_1fr_auto_2.5rem]`,Jn=12;function Yn(e,t=Jn){return e.length<=t?{head:e,tail:``}:{head:e.slice(0,e.length-t),tail:e.slice(e.length-t)}}function Xn(e){switch(e){case`green`:return`green`;case`pending`:return`CI running`;case`failing`:return`checks failing`;case`none`:return`no checks`;case`conflicts`:return`conflicts`;default:return``}}function Zn(e,t){if(!t)return e;let n=`PR #${t.number}`;if(!e.startsWith(n))return e;let r=e.slice(n.length),i=r.indexOf(` \xB7 `);return i===-1?``:r.slice(i+3)}function Qn(e){let t=new Map;for(let n of e){let e=t.get(n.plan);e?e.rows.push(n):t.set(n.plan,{plan:n.plan,planFile:n.planFile,rows:[n]})}let n=e=>Math.max(...e.rows.map(e=>e.ageMinutes??-1));return[...t.values()].sort((e,t)=>{let r=n(t)-n(e);return r===0?e.plan.localeCompare(t.plan):r})}function $n(e){let t=new Map;for(let n of e){if(n.wave===``)continue;let e=t.get(n.plan)??new Set;e.add(n.wave),t.set(n.plan,e)}return new Map([...t].map(([e,t])=>[e,t.size]))}function er(e,t){return e.wave===``||(t??0)<=1?null:e.wave}function tr(e,t){let n=[];return e.branches.length>0&&n.push(nr(e.branches,`branch`,`branches`)),e.plans.length>0&&n.push(nr(e.plans,`plan`,`plans`)),`This scan succeeded but describes less than the last one: ${n.length>0?n.join(` and `):`something it had a moment ago`} disappeared in the last ${t}s. The rows below are the NEW answer, not a frozen one \u2014 they may be right, or the scan may have read a moving working tree.`}function nr(e,t,n){let r=e.slice(0,3),i=e.length-r.length,a=e.length===1?t:n,o=i>0?` and ${i} more`:``;return`${a} ${r.join(`, `)}${o}`}function rr(e){return!!e.plan&&e.rows.length>1}function ir(e){return e.group===`not-started`&&e.state===`open`}function ar(e){let t=e.rows.map(e=>e.waitingDays).filter(e=>e!==null);return t.length===0?null:Math.max(...t)}function or(e){return[...e].sort((e,t)=>{let n=(ar(t)??-1)-(ar(e)??-1);return n===0?e.plan.localeCompare(t.plan):n})}function sr(e){let t=e.rows.filter(ir);if(t.length===0)return``;let n=`${t.length} wave${t.length===1?``:`s`}`;return t.some(lr)?`${n}, first eligible`:n}function cr(e){return e.rows.length>1}function lr(e){return e.waitingOn===`click`&&e.state===`open`}function ur(e){switch(e){case`you`:return`text-amber-700 dark:text-amber-400`;case`time`:return`text-slate-400 dark:text-slate-600`;default:return`text-slate-500 dark:text-slate-400`}}function dr(e){return e.group===`working`}function fr(e){return e.state===`merged`?!1:e.localLocked||e.localDirty}function pr(e){switch(e){case`artifact-conflict`:return`artifact conflict`;case`conflict`:return`conflict`;case`ci-failing`:return`CI failed`;case`unpushed`:return`unpushed work`}}function mr(e,t=Date.now()){switch(e.state){case`artifact-conflict`:case`conflict`:return e.conflicts.length>0?[`conflicting: ${e.conflicts.join(`, `)}`]:[`the host reports this branch does not merge \u2014 no file list available`];case`ci-failing`:return[e.failingChecks.length>0?`step: ${e.failingChecks.join(`, `)}`:`failing step unavailable`,e.runHistory.length>0?`recent runs: ${e.runHistory.map(e=>{let n=e.startedAt?an(e.startedAt,t):null;return`${e.conclusion||`unknown`}${n?` ${n}`:``}`}).join(`, `)}`:`run history unavailable`];case`unpushed`:return[`${e.localAhead} commit${e.localAhead===1?``:`s`} only this machine can see`]}}function hr(e){return e?.state===`ci-failing`&&e.changedPaths.length>0}function gr(e){return`Changed ${e} file${e===1?``:`s`}`}function _r(e){return e===`conflict`||e===`ci-failing`}function vr(e,t,n){return _r(e.state)?e.state===`ci-failing`?e.runHistory.some(e=>e.url):!!(t&&n):!1}function yr(e,t){return e&&!t}function br(e){if(!e)return``;if(e.state===`running`)return`repairing \u2014 merge, rebuild, test:board`;switch(e.outcome){case`pushed`:return`repaired automatically \u2014 rebuilt and pushed after test:board passed`;case`abandoned`:return`repair abandoned${e.reason?` \u2014 ${e.reason}`:``}; nothing was pushed`;case`refused`:return`repair refused${e.reason?` \u2014 ${e.reason}`:``}`;default:return`repair finished`}}var xr=6e3,Sr=class{onChange;schedule;timers=new Map;lit=new Set;constructor(e,t=(e,t)=>{let n=setTimeout(e,t);return()=>clearTimeout(n)}){this.onChange=e,this.schedule=t}seen(e){let t=!1;for(let n of e)t=!0,this.timers.get(n)?.(),this.lit.add(n),this.timers.set(n,this.schedule(()=>{this.timers.delete(n),this.lit.delete(n),this.onChange(new Set(this.lit))},xr));t&&this.onChange(new Set(this.lit))}get echoing(){return this.lit}dispose(){for(let e of this.timers.values())e();this.timers.clear(),this.lit.clear()}};function Cr(e,t){let n=new Set;for(let r of e){let e=Tr(r);(fr(r)||t.has(e))&&n.add(e)}return n}var wr=3e3;function Tr(e){return`${e.repo}/${e.branch}`}function Er(e){return{pr:e.pr?.state??null,prNumber:e.pr?.number??null,prDraft:e.pr?.draft??null,state:e.state,group:e.group,wave:e.wave,phase:e.phase,localDirty:e.localDirty,localLocked:e.localLocked,localAhead:e.localAhead,stuck:e.stuck===null?null:JSON.stringify(e.stuck)}}function Dr(e,t){let n=new Set,r=new Map;for(let i of t){let t=Tr(i),a=e.get(t)??null,o=Or(Er(i),a);e.has(t)&&!kr(a,o)&&n.add(t),r.set(t,o)}return{changed:n,next:r}}function Or(e,t){return!Ar(e.pr)||t===null?e:{...e,pr:t.pr,prNumber:t.prNumber,prDraft:t.prDraft}}function kr(e,t){return(!(!Ar(e.pr)&&!Ar(t.pr))||e.pr===t.pr)&&e.prNumber===t.prNumber&&e.prDraft===t.prDraft&&e.state===t.state&&e.group===t.group&&e.wave===t.wave&&e.phase===t.phase&&e.localDirty===t.localDirty&&e.localLocked===t.localLocked&&e.localAhead===t.localAhead&&e.stuck===t.stuck}function Ar(e){return e===`unknown`}var jr=class{onChange;schedule;timers=new Map;constructor(e,t=(e,t)=>{let n=setTimeout(e,t);return()=>clearTimeout(n)}){this.onChange=e,this.schedule=t}lit=new Set;mark(e){let t=!1;for(let n of e)t=!0,this.timers.get(n)?.(),this.lit.add(n),this.timers.set(n,this.schedule(()=>{this.timers.delete(n),this.lit.delete(n),this.onChange(new Set(this.lit))},wr));t&&this.onChange(new Set(this.lit))}dispose(){for(let e of this.timers.values())e();this.timers.clear(),this.lit.clear()}};function Mr(e){let t=(0,y.useRef)(null),[n,r]=(0,y.useState)(()=>new Set),i=(0,y.useRef)(null);return i.current??=new jr(r),(0,y.useEffect)(()=>{let{changed:n,next:r}=Dr(t.current??new Map,e);t.current=r,n.size>0&&i.current.mark(n)},[e]),(0,y.useEffect)(()=>()=>i.current?.dispose(),[]),n}function Nr(e){let[t,n]=(0,y.useState)(()=>new Set),r=(0,y.useRef)(null);return r.current??=new Sr(n),(0,y.useEffect)(()=>{r.current.seen(e.filter(e=>e.localLocked).map(Tr))},[e]),(0,y.useEffect)(()=>()=>r.current?.dispose(),[]),Cr(e,t)}function Pr(e){return fr(e)?`fast`:`slow`}function Fr(e,t){let n=!1;for(let r of e){if(t.has(Tr(r)))return`fast`;dr(r)&&(n=!0)}return n?`slow`:null}var Ir={row:`relative flex w-full shrink-0 flex-col items-center justify-center gap-1 self-stretch`,heading:`relative flex h-3 w-3 shrink-0 items-center self-center`};function Lr({pace:e,place:t=`row`,inTrack:n=!1}){let r=e===`fast`;return(0,x.jsx)(`span`,{"aria-hidden":!0,"data-activity-mark":!0,"data-activity-pace":e,title:r?`A write is in progress in this checkout`:`Claimed, and no write observed in this checkout`,className:n?`relative flex h-2 w-3 shrink-0 items-center`:Ir[t],children:(0,x.jsx)(`span`,{"data-activity-track":!0,className:`relative h-0.5 w-full rounded-full bg-emerald-500/25 dark:bg-emerald-400/25`,children:(0,x.jsx)(`span`,{"data-activity-dot":!0,style:{"--tw-travel":`0.375rem`},className:`absolute -top-0.5 left-0 h-1.5 w-1.5 rounded-full bg-emerald-500 shadow-[0_0_4px_1px_rgba(16,185,129,0.9),0_0_10px_3px_rgba(16,185,129,0.5)] motion-reduce:animate-none dark:bg-emerald-400 dark:shadow-[0_0_4px_1px_rgba(52,211,153,0.9),0_0_12px_4px_rgba(52,211,153,0.55)] ${r?`animate-travel-fast`:`animate-travel-slow`}`})})})}function Rr(e){return(e.localAhead??0)>0}function zr({ahead:e,inTrack:t=!1}){return(0,x.jsx)(`span`,{"aria-hidden":!0,"data-unpushed-mark":!0,title:`${e} commit${e===1?``:`s`} in this checkout that the remote has not seen`,className:t?`relative flex h-1 w-3 shrink-0 items-center`:Ir.row,children:(0,x.jsx)(`span`,{className:`h-0.5 w-full rounded-full bg-emerald-600/70 dark:bg-emerald-400/60`})})}function Br(){return(0,x.jsx)(`span`,{"aria-hidden":!0,"data-change-mark":!0,className:`pointer-events-none absolute inset-0 animate-pulse bg-amber-300/25 motion-reduce:animate-none dark:bg-amber-400/20`})}function Vr(){return(0,x.jsx)(`span`,{"aria-hidden":!0,"data-live-dot":!0,className:`h-1.5 w-1.5 shrink-0 self-center animate-pulse rounded-full bg-emerald-500 motion-reduce:animate-none sm:absolute sm:left-1 sm:top-1/2 sm:-translate-y-1/2 dark:bg-emerald-400`})}function Hr(){return(0,x.jsx)(`span`,{"aria-hidden":!0,"data-stuck-cue":!0,className:`inline-block h-2 w-2 shrink-0 animate-ping rounded-full bg-amber-500 motion-reduce:animate-none dark:bg-amber-400`})}function Ur(e){return e.group===`working`}function Wr(e){return e.note?`No action available \u2014 ${e.note}`:`No action available on this row`}function Gr(e){return e.pr?.url||e.branchUrl||``}function Kr(e){return e.group===`waiting-on-you`&&Gr(e)!==``}function qr(e){return e.waitingOn===`you`&&e.state===`open`}function Jr(e){return e.pr?`Review`:`Open`}function Yr(e){let t=e.stuck?.runHistory[0],n=e.stuck?.state===`ci-failing`&&(!t||(t.conclusion??``)!==`success`);return e.pr?.state===`failing`||n?`Show failure`:`Open last run`}function Xr(){return`a story is a decision you make \u2014 where it lives, whether it is wanted yet \u2014 so it is created with /story-tracking at a terminal, not from a board click`}function Zr(e){let{canStart:t,canApprove:n,canResolve:r,hasRun:i,hasLog:a,hasStatus:o,hasOpen:s,canCommission:c,hasChangedFiles:l,serverWillAct:u,approveWillAct:d,commissionWillAct:f}=e;return{present:t||n||r||i||a||o||s||c||l,enabled:t&&u||n&&d||r&&u||c&&f||i||a||o||s||l}}function Qr({row:e,cue:t}){let n=e.stuck,r=br(e.repair);if(!n&&!r)return null;let i=n?pr(n.state):``,a=n?mr(n):[];return(0,x.jsxs)(`span`,{role:`gridcell`,"data-stuck":n?.state??``,className:`flex w-full flex-wrap items-baseline gap-x-2 gap-y-0.5 text-xs sm:col-start-3 sm:col-end-[-1]`,children:[i&&(0,x.jsx)(`span`,{className:`shrink-0 font-medium text-amber-700 dark:text-amber-500`,children:i}),a.map(e=>(0,x.jsx)(`span`,{"data-stuck-evidence":!0,className:`min-w-0 text-slate-500 max-sm:whitespace-normal dark:text-slate-400`,children:e},e)),r&&(0,x.jsx)(`span`,{"data-repair":e.repair?.state??``,"data-repair-outcome":e.repair?.outcome??``,className:`min-w-0 text-slate-500 max-sm:whitespace-normal dark:text-slate-400`,children:r}),t&&(0,x.jsx)(Hr,{})]})}function $r({row:e,card:t,dispatch:n,approve:r,commission:i,pulse:a,onStarting:o,onTaken:s,onOpenLog:c,onOpenStatus:l,onOpenChangedFiles:u}){let[d,f]=(0,y.useState)(!1),p=(0,y.useRef)(null),m=!!(t&&n&&lr(e)),h=!!(t&&r&&Zt(t)&&e.waitingOn===`you`),g=n?.available??!1,_=r?.available??!1,v=e.stuck?.runHistory.find(e=>e.url)?.url??``,b=!!(e.stuck?.state===`conflict`&&t&&n),S=Kr(e)?Gr(e):``,C=!!(t&&i&&Zt(t)&&qr(e)),w=i?.available??!1,T=Ur(e),E=!!t?.hasDispatchLog,D=hr(e.stuck),{present:te,enabled:O}=Zr({canStart:m,canApprove:h,canResolve:b,hasRun:!!v,hasLog:T,hasStatus:E,hasOpen:!!S,canCommission:C,hasChangedFiles:D,serverWillAct:g,approveWillAct:_,commissionWillAct:w}),A=m&&!g&&n?.reason||b&&!g&&n?.reason?n.reason:C&&!w&&i?.reason?i.reason:Wr(e);return(0,y.useEffect)(()=>{if(!d)return;let e=e=>{e.key===`Escape`&&f(!1)},t=e=>{p.current?.contains(e.target)||f(!1)};return document.addEventListener(`keydown`,e),document.addEventListener(`click`,t,!0),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`click`,t,!0)}},[d]),(0,x.jsxs)(`div`,{role:`gridcell`,className:`relative w-5 shrink-0 text-right`,onClick:e=>e.stopPropagation(),children:[te&&(0,x.jsx)(`button`,{type:`button`,"data-row-actions":!0,"aria-haspopup":`menu`,"aria-expanded":d,"aria-disabled":!O||void 0,"aria-label":O?`Actions for ${e.branch}`:A,title:O?`Actions for ${e.branch}`:A,onClick:()=>{O&&f(e=>!e)},className:O?`text-xs leading-none text-slate-500 hover:text-slate-800 dark:text-slate-400 dark:hover:text-slate-100`:`cursor-default text-xs leading-none text-slate-300 dark:text-slate-700`,children:`\u22EF`}),d&&O&&(0,x.jsxs)(`div`,{role:`menu`,ref:p,className:`absolute right-0 z-10 mt-1 min-w-max rounded-md border border-slate-200 bg-white p-1 shadow-lg dark:border-slate-700 dark:bg-slate-900`,children:[S&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(`a`,{href:S,target:`_blank`,rel:`noreferrer`,"data-open-link":!0,"aria-label":`${Jr(e)} ${e.branch} on the git host`,className:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:Jr(e)})}),m&&n&&t&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(qt,{card:t,dispatch:n,pulse:a,onStarting:o})}),h&&r&&t&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(ee,{card:t,approve:r,onApproving:o})}),C&&i&&t&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(k,{card:t,commission:i,onActing:o})}),b&&t&&n&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(`span`,{onClick:s,children:(0,x.jsx)(qt,{card:t,dispatch:n,pulse:a,onStarting:o})})}),v&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(`a`,{href:v,target:`_blank`,rel:`noreferrer`,"data-stuck-link":!0,onClick:s,"aria-label":`${Yr(e)} for ${e.branch}`,className:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:Yr(e)})}),T&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(`button`,{type:`button`,"data-worker-log-open":!0,onClick:c,"aria-label":`Show the agent working on ${e.branch}`,className:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:`Show the agent`})}),E&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(`button`,{type:`button`,"data-dispatch-log-open":!0,onClick:l,"aria-label":`Show what the dispatcher did for ${e.branch}`,className:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:`Status`})}),D&&e.stuck&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(`button`,{type:`button`,"data-changed-files-open":!0,onClick:u,"aria-label":`Show the files changed on ${e.branch}`,className:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:gr(e.stuck.changedPaths.length)})})]})]})}function ei({plan:e,planFile:t,onOpenPlan:n}){return t?(0,x.jsx)(`a`,{href:`/plan/${encodeURIComponent(t)}`,onClick:e=>{n&&(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button!==0||n(t)&&e.preventDefault())},target:n?void 0:`_blank`,rel:`noreferrer`,className:`text-blue-600 hover:underline dark:text-blue-400`,children:e}):(0,x.jsx)(x.Fragment,{children:e})}function ti({row:e}){let{head:t,tail:n}=Yn(e.branch),r=(0,x.jsxs)(`span`,{"aria-hidden":!0,className:`flex min-w-0 max-sm:flex-wrap max-sm:break-all`,children:[(0,x.jsx)(`span`,{className:`truncate`,children:t}),n&&(0,x.jsx)(`span`,{className:`shrink-0`,children:n})]}),i=`flex min-w-0 font-mono text-[13px]`;return e.branchUrl?(0,x.jsx)(`a`,{href:e.branchUrl,target:`_blank`,rel:`noreferrer`,"data-branch":e.branch,"aria-label":e.branch,className:`${i} text-blue-600 hover:underline dark:text-blue-400`,title:`Branch ${e.branch} on the git host`,children:r}):(0,x.jsx)(`span`,{"data-branch":e.branch,"aria-label":e.branch,className:`${i} text-slate-800 dark:text-slate-200`,title:e.branch,children:r})}function ni(){return(0,x.jsxs)(`li`,{role:`row`,className:`sr-only max-sm:hidden`,children:[(0,x.jsx)(`span`,{role:`columnheader`,children:`Phase`}),(0,x.jsx)(`span`,{role:`columnheader`,children:`Plan`}),(0,x.jsx)(`span`,{role:`columnheader`,children:`Branch`}),(0,x.jsx)(`span`,{role:`columnheader`,children:`Pull request`}),(0,x.jsx)(`span`,{role:`columnheader`,children:`Age`}),(0,x.jsx)(`span`,{role:`columnheader`,children:`Actions`})]})}function ri({group:e,onOpenPlan:t,expanded:n,onToggle:r,active:i}){let a=ar(e),o=sr(e),s=n!==null;return(0,x.jsxs)(`li`,{role:`row`,"data-plan-row":e.plan,className:`relative flex flex-wrap items-baseline gap-x-3 gap-y-1 px-3 py-2 text-sm sm:grid ${qn} sm:items-baseline sm:gap-x-3`,children:[(0,x.jsx)(`span`,{role:`gridcell`,className:Ir.row,children:i&&(0,x.jsx)(Lr,{pace:`fast`,inTrack:!0})}),(0,x.jsxs)(`span`,{role:`gridcell`,className:`flex min-w-0 items-baseline gap-2`,children:[e.rows[0]?.phase&&(0,x.jsx)(`span`,{"data-phase":e.rows[0].phase,title:`Phase: ${e.rows[0].phase}`,className:`shrink-0 text-xs text-slate-500 dark:text-slate-400`,children:e.rows[0].phase}),s?(0,x.jsx)(`button`,{type:`button`,"data-wave-toggle":e.plan,"aria-expanded":n,"aria-label":`${n?`Hide`:`Show`} the branches of ${e.plan}`,onClick:r,className:`shrink-0 text-[10px] leading-none text-slate-400 hover:text-slate-800 dark:text-slate-500 dark:hover:text-slate-100`,children:(0,x.jsx)(`span`,{"aria-hidden":!0,children:n?`\u25BE`:`\u25B8`})}):(0,x.jsx)(`span`,{"aria-hidden":!0,className:`shrink-0 text-[10px] leading-none`,children:`\\xA0`}),(0,x.jsx)(`span`,{className:`min-w-0 truncate text-xs font-medium`,children:(0,x.jsx)(ei,{plan:e.plan,planFile:e.planFile,onOpenPlan:t})})]}),(0,x.jsx)(`span`,{role:`gridcell`,className:`flex w-full min-w-0 items-baseline sm:w-auto`,children:o&&(0,x.jsx)(`span`,{"data-wave-summary":!0,className:`truncate text-xs text-slate-500 dark:text-slate-400`,title:`Waves of this plan that nothing has started \u2014 counted in this section`,children:o})}),(0,x.jsx)(`span`,{role:`gridcell`,className:`shrink-0 text-right text-xs tabular-nums text-amber-700 dark:text-amber-500`,title:a===null?void 0:`Approved this long ago, and nobody has started it`,children:a===null?``:Gn(a)})]})}function ii({row:e,onOpenPlan:t,planInHeading:n=!1,card:r=null,dispatch:i,approve:a,commission:o,continueWith:s,pulse:c=0,onStarting:l,marked:u=!1,active:d=!1,inPlanGroup:f=!1,section:p,waveName:m=null,onRevealBranch:h,highlighted:g=!1}){let _=n=>{t&&(n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.button!==0||t(e.planFile)&&n.preventDefault())},v=Zn(p===`waiting-on-machine`?kn(e):e.note,e.pr),[b,S]=(0,y.useState)(!1),[C,w]=(0,y.useState)(!1),[T,E]=(0,y.useState)(!1),[ee,D]=(0,y.useState)(!1),te=e.stuck?yr(vr(e.stuck,r,i),b):!1;return(0,x.jsxs)(`li`,{role:`row`,"data-agent-row":!0,id:`agent-row-${e.branch}`,"data-highlighted":g?`true`:void 0,className:`relative flex flex-wrap items-baseline gap-x-3 gap-y-1 px-3 py-2 text-sm sm:grid ${Kn} sm:items-baseline sm:gap-x-3 ${f?``:`border-b border-slate-200/60 last:border-0 dark:border-slate-800`} ${g?`rounded-sm ring-2 ring-inset ring-blue-500`:``}`,children:[u&&(0,x.jsx)(Br,{}),(0,x.jsxs)(`span`,{role:`gridcell`,className:Ir.row,children:[(d||dr(e))&&(0,x.jsx)(Lr,{pace:d?`fast`:Pr(e),inTrack:!0}),Rr(e)&&(0,x.jsx)(zr,{ahead:e.localAhead,inTrack:!0}),dr(e)&&(0,x.jsx)(Vr,{})]}),(0,x.jsx)(`span`,{role:`gridcell`,className:`min-w-0 shrink-0 truncate text-xs text-slate-500 dark:text-slate-400`,title:m?`Wave: ${m}`:e.phase?`Phase: ${e.phase}`:void 0,children:m?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`span`,{className:`sr-only sm:hidden`,children:`Wave: `}),(0,x.jsx)(`span`,{"data-wave":m,children:m})]}):(0,x.jsx)(x.Fragment,{children:(!f||e.state===`deferred`)&&e.phase&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`span`,{className:`sr-only sm:hidden`,children:`Phase: `}),(0,x.jsx)(`span`,{"data-phase":e.phase,children:e.phase})]})})}),(0,x.jsx)(`span`,{role:`gridcell`,className:`min-w-0 truncate`,children:n?null:e.planFile?(0,x.jsx)(`a`,{href:`/plan/${encodeURIComponent(e.planFile)}`,onClick:_,target:t?void 0:`_blank`,rel:`noreferrer`,className:`text-xs text-blue-600 hover:underline dark:text-blue-400`,title:e.plan,children:e.plan}):(0,x.jsx)(`span`,{className:`text-xs text-slate-500 dark:text-slate-400`,title:e.plan,children:e.plan})}),(0,x.jsxs)(`span`,{role:`gridcell`,className:`flex w-full min-w-0 items-baseline gap-2 sm:w-auto`,children:[(0,x.jsx)(ti,{row:e}),e.state===`deferred`&&(0,x.jsx)(`span`,{className:`shrink-0 rounded-full bg-slate-100 px-1.5 py-0 text-[11px] font-medium text-slate-600 dark:bg-slate-800 dark:text-slate-300`,title:`Handed back \u2014 the branch was given up deliberately, and the plan can deliver without it`,children:`deferred`})]}),(0,x.jsxs)(`span`,{role:`gridcell`,className:`flex min-w-0 items-baseline gap-2`,children:[(0,x.jsx)(ui,{pr:e.pr}),v&&(0,x.jsx)(`span`,{"data-row-note":!0,"data-waiting-on":e.waitingOn??void 0,className:`min-w-0 truncate text-xs max-sm:whitespace-normal ${ur(e.waitingOn)}`,title:v,children:v})]}),f&&e.ageMinutes===null?(0,x.jsx)(`span`,{role:`gridcell`,className:`shrink-0 text-right text-xs tabular-nums`}):e.ageMinutes===null&&e.waitingDays!==null?(0,x.jsx)(`span`,{role:`gridcell`,className:`shrink-0 text-right text-xs tabular-nums text-amber-700 dark:text-amber-500`,title:`Approved this long ago, and nobody has started it`,children:Gn(e.waitingDays)}):(0,x.jsx)(`span`,{role:`gridcell`,className:`shrink-0 text-right text-xs tabular-nums text-slate-400 dark:text-slate-500`,children:Wn(e)}),(0,x.jsx)($r,{row:e,card:r,dispatch:i,approve:a,commission:o,pulse:c,onStarting:l,onTaken:()=>S(!0),onOpenLog:()=>w(!0),onOpenStatus:()=>E(!0),onOpenChangedFiles:()=>D(!0)}),(0,x.jsx)(Qr,{row:e,cue:te}),C&&(0,x.jsx)(yn,{branch:e.branch,onClose:()=>w(!1),canContinue:s,onOpenPlan:t?e=>void t(e):void 0,onRevealBranch:h}),T&&r&&(0,x.jsx)(wn,{slug:r.slug,onClose:()=>E(!1)}),ee&&e.stuck&&(0,x.jsx)(Tn,{branch:e.branch,paths:e.stuck.changedPaths,onClose:()=>D(!1)})]})}function ai(){return(0,x.jsx)(`svg`,{role:`img`,"aria-label":`Pull request`,viewBox:`0 0 16 16`,className:`inline-block h-3 w-3 shrink-0 align-[-0.1em]`,fill:`currentColor`,children:(0,x.jsx)(`path`,{d:`M4.5 3.25a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5ZM2 4.5a2.5 2.5 0 1 1 3.13 2.42v2.16a2.5 2.5 0 1 1-1.25 0V6.92A2.5 2.5 0 0 1 2 4.5Zm2.5 6.75a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5Zm7-8a2.5 2.5 0 0 1 .63 4.92v2.16a2.5 2.5 0 1 1-1.25 0V6.92A2.5 2.5 0 0 1 11.5 3.25Zm0 1.25a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5Zm0 6.75a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5Z`})})}function oi(e){let t=e.toLowerCase().replace(/^[a-z0-9 ]{1,20}:\\s*/,``).replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``);return t?t.split(`-`).filter(Boolean).slice(0,6).join(`-`):``}function si(){return(0,x.jsxs)(`svg`,{role:`img`,"aria-label":`Issue`,viewBox:`0 0 16 16`,className:`inline-block h-3 w-3 shrink-0 align-[-0.1em]`,fill:`currentColor`,children:[(0,x.jsx)(`path`,{d:`M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z`}),(0,x.jsx)(`path`,{d:`M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm0 1.25a6.75 6.75 0 1 0 0 13.5 6.75 6.75 0 0 0 0-13.5Z`})]})}function ci({issue:e,idea:t,issueAnswer:n}){let[r,i]=(0,y.useState)(!1),a=(0,y.useRef)(null);return(0,y.useEffect)(()=>{if(!r)return;let e=e=>{e.key===`Escape`&&i(!1)},t=e=>{a.current?.contains(e.target)||i(!1)};return document.addEventListener(`keydown`,e),document.addEventListener(`click`,t,!0),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`click`,t,!0)}},[r]),(0,x.jsxs)(`div`,{role:`gridcell`,className:`relative w-5 shrink-0 text-right`,onClick:e=>e.stopPropagation(),children:[(0,x.jsx)(`button`,{type:`button`,"data-issue-actions":e.number,"aria-haspopup":`menu`,"aria-expanded":r,"aria-label":`Actions for issue #${e.number}`,title:`Actions for issue #${e.number}`,onClick:()=>i(e=>!e),className:`text-xs leading-none text-slate-500 hover:text-slate-800 dark:text-slate-400 dark:hover:text-slate-100`,children:`\u22EF`}),r&&(0,x.jsxs)(`div`,{role:`menu`,ref:a,className:`absolute right-0 z-10 mt-1 min-w-max rounded-md border border-slate-200 bg-white p-1 shadow-lg dark:border-slate-700 dark:bg-slate-900`,children:[(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(j,{issue:e,idea:t,issueAnswer:n})}),(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsxs)(`button`,{type:`button`,"data-create-story":e.number,"aria-disabled":!0,title:Xr(),className:`cursor-not-allowed text-xs font-medium text-slate-400 no-underline dark:text-slate-600`,children:[`Create story`,(0,x.jsxs)(`span`,{className:`sr-only`,children:[` \u2014 unavailable: `,Xr()]})]})}),e.url&&(0,x.jsx)(`div`,{role:`menuitem`,className:`px-2 py-1 text-left`,children:(0,x.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`,"data-issue-open":!0,"aria-label":`Open issue #${e.number} on the host`,className:`text-xs font-medium text-blue-600 hover:underline dark:text-blue-400`,children:`Open on host`})})]})]})}function li({issue:e,idea:t,issueAnswer:n}){let r=(0,x.jsxs)(`span`,{className:`tabular-nums`,children:[(0,x.jsx)(si,{}),e.number]});return(0,x.jsxs)(`li`,{role:`row`,"data-issue-row":e.number,className:`relative flex flex-wrap items-baseline gap-x-3 gap-y-1 border-t border-slate-100 px-3 py-2 text-sm dark:border-slate-800 sm:grid ${Kn} sm:items-baseline sm:gap-x-3`,children:[(0,x.jsx)(`span`,{role:`gridcell`,className:Ir.row}),(0,x.jsx)(`span`,{role:`gridcell`,className:`min-w-0 shrink-0 truncate text-xs text-slate-500 dark:text-slate-400`,title:`Not a plan yet \u2014 this row asks whether it should become one`,children:(0,x.jsx)(`span`,{"data-phase":`Discovery`,children:`Discovery`})}),(0,x.jsxs)(`span`,{role:`gridcell`,className:`flex min-w-0 items-baseline gap-1`,children:[(0,x.jsx)(`span`,{"aria-hidden":!0,className:`shrink-0 text-[10px] leading-none`,children:` `}),(0,x.jsx)(`span`,{"data-issue-name":!0,className:`min-w-0 truncate text-xs font-medium text-slate-700 dark:text-slate-300`,title:e.title,children:oi(e.title)})]}),(0,x.jsx)(`span`,{role:`gridcell`,className:`flex w-full min-w-0 items-baseline sm:w-auto`}),(0,x.jsx)(`span`,{role:`gridcell`,className:`flex min-w-0 items-baseline gap-1 text-xs text-slate-500 dark:text-slate-400`,children:e.url?(0,x.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`,"data-issue-link":!0,className:`shrink-0 text-blue-600 hover:underline dark:text-blue-400`,children:r}):(0,x.jsx)(`span`,{"data-issue-number":!0,className:`shrink-0`,children:r})}),(0,x.jsx)(`span`,{role:`gridcell`,className:`shrink-0 text-right text-xs tabular-nums text-slate-500 dark:text-slate-400`,title:e.ageMinutes===null?void 0:`Open this long, and unplanned`,children:e.ageMinutes===null?``:Un(e.ageMinutes)}),(0,x.jsx)(ci,{issue:e,idea:t,issueAnswer:n})]})}function ui({pr:e}){if(!e)return null;let t=Xn(e.state),n=(0,x.jsxs)(`span`,{className:`tabular-nums`,children:[(0,x.jsx)(ai,{}),e.number]});return(0,x.jsxs)(`span`,{className:`flex min-w-0 items-baseline gap-1 text-xs text-slate-500 dark:text-slate-400`,children:[e.url?(0,x.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`,"data-pr-link":!0,className:`shrink-0 text-blue-600 hover:underline dark:text-blue-400`,children:n}):(0,x.jsx)(`span`,{"data-pr-number":!0,className:`shrink-0`,children:n}),e.draft&&(0,x.jsx)(`span`,{"data-pr-draft":!0,className:`shrink-0 rounded-full bg-slate-100 px-1.5 text-[11px] font-medium text-slate-600 dark:bg-slate-800 dark:text-slate-300`,title:`Draft \u2014 not yet offered for review`,children:`draft`}),t&&(0,x.jsx)(`span`,{"data-pr-state":e.state,className:e.state===`conflicts`||e.state===`failing`?`truncate text-rose-700 dark:text-rose-400`:e.state===`green`?`truncate text-emerald-700 dark:text-emerald-500`:`truncate`,children:t})]})}function di({fleet:e,pollSeconds:t,staleSeconds:n=null,onOpenPlan:r,cardForPlanFile:i,dispatch:a,approve:o,commission:s,continueWith:c,idea:l,pulse:u=0,onStarting:d,onRevealBranch:f,highlightBranch:p=``}){let m=n!==null,h=Mr(e.rows),g=Nr(e.rows),[_,v]=(0,y.useState)(()=>Bn()),b=e=>{v(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),Vn(n),n})},[S,C]=(0,y.useState)(()=>new Set),w=e=>{C(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[T,E]=(0,y.useState)(0);if((0,y.useEffect)(()=>{if(E(0),t===null||m)return;let e=setInterval(()=>E(e=>e+1),1e3);return()=>clearInterval(e)},[t,m,e.generatedAt]),!e.ready&&!e.error)return(0,x.jsx)(`p`,{className:`text-sm text-slate-500`,children:`Waiting for the first fleet scan\u2026`});let ee=t===null||m||e.scanNextInSeconds==null?null:Math.max(0,e.scanNextInSeconds-T),D=t===null||m||e.prNextInSeconds==null?null:Math.max(0,e.prNextInSeconds-T),te=$n(e.rows),O=[];m&&O.push({key:`stale`,severity:40,tone:`rose`,text:`Not reaching the board server \u2014 last heard ${n}s ago. The numbers below are frozen at that moment and are no longer being checked.`}),e.error&&O.push({key:`scan-failed`,severity:30,tone:`amber`,text:`Last scan failed: ${e.error}`+(e.ready?` \u2014 showing the last successful pulse below.`:``)}),e.shrink&&O.push({key:`shrink`,severity:20,tone:`amber`,text:tr(e.shrink,e.ageSeconds+T)});let k=Ln(e);return k&&O.push({key:`pr-error`,severity:10,tone:`amber`,text:k}),(0,x.jsxs)(`div`,{className:`space-y-4`,children:[(0,x.jsx)(ce,{statuses:O}),En.map(({key:t,icon:n,label:m,hint:v})=>{let y=t===`waiting-on-machine`?e.rows.filter(jn):e.rows.filter(e=>e.group===t),C=t===`waiting-on-you`&&e.issueAnswer===`answered`?e.issues:[],T=Qn(y),E=t===`not-started`,ee=E?or(T):T,D=Hn(y.length+C.length),O=D&&_.has(t),k=Nn(e),A=t===`waiting-on-machine`?k===`answered`?Mn(e.rows)?On:v:Pn[k]:v,ne=(E?T.length:y.length)+C.length,re=(0,x.jsx)(`span`,{className:`font-normal normal-case tracking-normal text-slate-400 dark:text-slate-600`,children:y.length+C.length>0?`(${ne})`:A}),ie=Fr(y,g),j=ie&&(0,x.jsx)(Lr,{pace:ie,place:`heading`});return(0,x.jsxs)(`section`,{children:[(0,x.jsx)(`h2`,{className:`mb-1 flex items-baseline gap-2 px-3 text-xs font-semibold uppercase tracking-wide text-slate-600 dark:text-slate-400`,children:D?(0,x.jsxs)(`button`,{type:`button`,"data-group-toggle":t,"aria-expanded":!O,onClick:()=>b(t),className:`flex items-baseline gap-2 uppercase tracking-wide hover:text-slate-900 dark:hover:text-slate-100`,children:[(0,x.jsx)(`span`,{"aria-hidden":!0,className:`text-[10px]`,children:O?`\u25B8`:`\u25BE`}),(0,x.jsx)(`span`,{"aria-hidden":!0,children:n}),m,re,j]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`span`,{"aria-hidden":!0,children:n}),m,re,j]})}),!O&&(0,x.jsxs)(`ul`,{role:`grid`,"aria-label":`${m} \u2014 agent branches`,className:`rounded-lg border border-slate-200 bg-white dark:border-slate-800 dark:bg-slate-900/40`,children:[(0,x.jsx)(ni,{}),y.length>0?ee.map(e=>{let n=!E&&rr(e);if(E){let n=cr(e),l=n?S.has(e.plan):null;return(0,x.jsxs)(`li`,{role:`rowgroup`,className:`border-b border-slate-200/60 last:border-0 dark:border-slate-800`,children:[(0,x.jsx)(ri,{group:e,onOpenPlan:r,expanded:l,onToggle:n?()=>w(e.plan):void 0,active:e.rows.some(e=>g.has(Tr(e)))}),(l===null||l)&&(0,x.jsx)(`ul`,{role:`presentation`,children:e.rows.map(e=>(0,x.jsx)(ii,{row:e,onOpenPlan:r,inPlanGroup:!0,planInHeading:!0,card:i?.(e.planFile)??null,dispatch:a,approve:o,commission:s,continueWith:c,pulse:u,onStarting:d,marked:h.has(Tr(e)),active:g.has(Tr(e)),section:t,waveName:er(e,te.get(e.plan)),onRevealBranch:f,highlighted:e.branch===p},Tr(e)))})]},e.plan)}return(0,x.jsxs)(`li`,{role:`rowgroup`,children:[n&&(0,x.jsxs)(`h3`,{className:`border-b border-slate-200/60 bg-slate-50 px-3 py-1 text-[11px] font-medium text-slate-500 dark:border-slate-800 dark:bg-slate-900/60 dark:text-slate-400`,children:[(0,x.jsx)(ei,{plan:e.plan,planFile:e.planFile,onOpenPlan:r}),(0,x.jsxs)(`span`,{className:`ml-1.5 font-normal text-slate-400 dark:text-slate-600`,children:[`(`,e.rows.length,`)`]})]}),(0,x.jsx)(`ul`,{role:`presentation`,children:e.rows.map(e=>(0,x.jsx)(ii,{row:e,onOpenPlan:r,planInHeading:n,card:i?.(e.planFile)??null,dispatch:a,approve:o,commission:s,continueWith:c,pulse:u,onStarting:d,marked:h.has(Tr(e)),active:g.has(Tr(e)),section:t,waveName:er(e,te.get(e.plan)),onRevealBranch:f,highlighted:e.branch===p},Tr(e)))})]},e.plan)}):C.length===0&&(0,x.jsx)(`li`,{role:`row`,className:`px-3 py-2 text-sm text-slate-400 dark:text-slate-600`,children:(0,x.jsx)(`span`,{role:`gridcell`,children:t===`waiting-on-machine`&&k!==`answered`?Pn[k]:`none`})}),C.map(t=>(0,x.jsx)(li,{issue:t,idea:l??{available:!1,reason:`this board has not said whether it can create plans`},issueAnswer:e.issueAnswer},`issue-${t.number}`)),t===`waiting-on-you`&&e.issueAnswer===`failed`&&Rn(e)&&(0,x.jsx)(`li`,{role:`row`,"data-issue-error":!0,className:`border-t border-slate-100 px-3 py-2 text-sm text-amber-700 dark:border-slate-800 dark:text-amber-500`,children:(0,x.jsx)(`span`,{role:`gridcell`,children:Rn(e)})})]})]},t)}),(0,x.jsxs)(`p`,{className:`px-3 text-xs text-slate-400 dark:text-slate-600`,children:[e.rows.length,` branches across`,` `,new Set(e.rows.map(e=>e.plan).filter(Boolean)).size,` plans`,!e.complete&&` so far`,` \xB7 scanned`,` `,e.ageSeconds+T,`s ago`,m&&` (frozen)`,ee!==null&&` \xB7 next in ${ee}s`,e.prAgeSeconds!==null&&` \xB7 PR data ${e.prAgeSeconds+T}s ago`,e.prAgeSeconds!==null&&D!==null&&` \xB7 next in ${D}s`,e.prAgeSeconds===null&&!e.prError&&` \xB7 no PR data yet`]})]})}var fi;function R(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var pi=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},mi=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(fi=globalThis).__zod_globalConfig??(fi.__zod_globalConfig={});var hi=globalThis.__zod_globalConfig;function gi(e){return e&&Object.assign(hi,e),hi}function _i(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function vi(e,t){return typeof t==`bigint`?t.toString():t}function yi(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw Error(`cached value already set`)}}}function bi(e){return e==null}function xi(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Si(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}var Ci=Symbol(`evaluating`);function z(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Ci)return r===void 0&&(r=Ci,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function wi(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ti(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function Ei(e){return JSON.stringify(e)}function Di(e){return e.toLowerCase().trim().replace(/[^\\w\\s-]/g,``).replace(/[\\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var Oi=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function ki(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Ai=yi(()=>{if(hi.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function ji(e){if(ki(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(ki(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Mi(e){return ji(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var Ni=new Set([`string`,`number`,`symbol`]);function B(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,`\\\\$&`)}function Pi(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function V(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Fi(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var Ii={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Li(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Pi(e,Ti(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return wi(this,`shape`,e),e},checks:[]}))}function Ri(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Pi(e,Ti(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return wi(this,`shape`,r),r},checks:[]}))}function zi(e,t){if(!ji(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Pi(e,Ti(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return wi(this,`shape`,n),n}}))}function Bi(e,t){if(!ji(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Pi(e,Ti(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return wi(this,`shape`,n),n}}))}function Vi(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return Pi(e,Ti(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return wi(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Hi(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Pi(t,Ti(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return wi(this,`shape`,i),i},checks:[]}))}function Ui(e,t,n){return Pi(t,Ti(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return wi(this,`shape`,i),i}}))}function Wi(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Gi(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Ki(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function qi(e){return typeof e==`string`?e:e?.message}function Ji(e,t,n){let r=e.message?e.message:qi(e.inst?._zod.def?.error?.(e))??qi(t?.error?.(e))??qi(n.customError?.(e))??qi(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function Yi(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Xi(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var Zi=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,vi,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Qi=R(`$ZodError`,Zi),$i=R(`$ZodError`,Zi,{Parent:Error});function ea(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function ta(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n}var na=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new pi;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>Ji(e,a,gi())));throw Oi(t,i?.callee),t}return o.value},ra=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>Ji(e,a,gi())));throw Oi(t,i?.callee),t}return o.value},ia=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new pi;return a.issues.length?{success:!1,error:new(e??Qi)(a.issues.map(e=>Ji(e,i,gi())))}:{success:!0,data:a.value}},aa=ia($i),oa=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Ji(e,i,gi())))}:{success:!0,data:a.value}},sa=oa($i),ca=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return na(e)(t,n,i)},la=e=>(t,n,r)=>na(e)(t,n,r),ua=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ra(e)(t,n,i)},da=e=>async(t,n,r)=>ra(e)(t,n,r),fa=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ia(e)(t,n,i)},pa=e=>(t,n,r)=>ia(e)(t,n,r),ma=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return oa(e)(t,n,i)},ha=e=>async(t,n,r)=>oa(e)(t,n,r),ga=/^[cC][0-9a-z]{6,}$/,_a=/^[0-9a-z]+$/,va=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ya=/^[0-9a-vA-V]{20}$/,ba=/^[A-Za-z0-9]{27}$/,xa=/^[a-zA-Z0-9_-]{21}$/,Sa=/^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/,Ca=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,wa=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ta=/^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_\'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/,Ea=`^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$`;function Da(){return new RegExp(Ea,`u`)}var Oa=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ka=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Aa=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/([0-9]|[1-2][0-9]|3[0-2])$/,ja=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ma=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Na=/^[A-Za-z0-9_-]*$/,Pa=/^https?$/,Fa=/^\\+[1-9]\\d{6,14}$/,Ia=`(?:(?:\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\\\d|30)|(?:02)-(?:0[1-9]|1\\\\d|2[0-8])))`,La=RegExp(`^${Ia}$`);function Ra(e){let t=`(?:[01]\\\\d|2[0-3]):[0-5]\\\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\\\d`:`${t}:[0-5]\\\\d\\\\.\\\\d{${e.precision}}`:`${t}(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?`}function za(e){return RegExp(`^${Ra(e)}$`)}function Ba(e){let t=Ra({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Ia}T(?:${r})$`)}var Va=e=>{let t=e?`[\\\\s\\\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\\\s\\\\S]*`;return RegExp(`^${t}$`)},Ha=/^-?\\d+$/,Ua=/^-?\\d+(?:\\.\\d+)?$/,Wa=/^(?:true|false)$/i,Ga=/^[^A-Z]*$/,Ka=/^[^a-z]*$/,qa=R(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Ja={number:`number`,bigint:`bigint`,object:`date`},Ya=R(`$ZodCheckLessThan`,(e,t)=>{qa.init(e,t);let n=Ja[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Xa=R(`$ZodCheckGreaterThan`,(e,t)=>{qa.init(e,t);let n=Ja[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Za=R(`$ZodCheckMultipleOf`,(e,t)=>{qa.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):Si(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Qa=R(`$ZodCheckNumberFormat`,(e,t)=>{qa.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Ii[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Ha)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),$a=R(`$ZodCheckMaxLength`,(e,t)=>{var n;qa.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!bi(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=Yi(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),eo=R(`$ZodCheckMinLength`,(e,t)=>{var n;qa.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!bi(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Yi(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),to=R(`$ZodCheckLengthEquals`,(e,t)=>{var n;qa.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!bi(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Yi(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),no=R(`$ZodCheckStringFormat`,(e,t)=>{var n,r;qa.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),ro=R(`$ZodCheckRegex`,(e,t)=>{no.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),io=R(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Ga,no.init(e,t)}),ao=R(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Ka,no.init(e,t)}),oo=R(`$ZodCheckIncludes`,(e,t)=>{qa.init(e,t);let n=B(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),so=R(`$ZodCheckStartsWith`,(e,t)=>{qa.init(e,t);let n=RegExp(`^${B(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),co=R(`$ZodCheckEndsWith`,(e,t)=>{qa.init(e,t);let n=RegExp(`.*${B(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),lo=R(`$ZodCheckOverwrite`,(e,t)=>{qa.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),uo=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`\n`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`\n`))}},H={major:4,minor:4,patch:3},U=R(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=H;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Wi(e),i;for(let a of t){if(a._zod.def.when){if(Gi(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new pi;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Wi(e,t))});else{if(e.issues.length===t)continue;r||=Wi(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Wi(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new pi;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new pi;return o.then(e=>t(e,r,a))}return t(o,r,a)}}z(e,`~standard`,()=>({validate:t=>{try{let n=aa(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return sa(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),fo=R(`$ZodString`,(e,t)=>{U.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Va(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),po=R(`$ZodStringFormat`,(e,t)=>{no.init(e,t),fo.init(e,t)}),mo=R(`$ZodGUID`,(e,t)=>{t.pattern??=Ca,po.init(e,t)}),ho=R(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=wa(e)}else t.pattern??=wa();po.init(e,t)}),go=R(`$ZodEmail`,(e,t)=>{t.pattern??=Ta,po.init(e,t)}),_o=R(`$ZodURL`,(e,t)=>{po.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===Pa.source&&!/^https?:\\/\\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),vo=R(`$ZodEmoji`,(e,t)=>{t.pattern??=Da(),po.init(e,t)}),yo=R(`$ZodNanoID`,(e,t)=>{t.pattern??=xa,po.init(e,t)}),bo=R(`$ZodCUID`,(e,t)=>{t.pattern??=ga,po.init(e,t)}),xo=R(`$ZodCUID2`,(e,t)=>{t.pattern??=_a,po.init(e,t)}),So=R(`$ZodULID`,(e,t)=>{t.pattern??=va,po.init(e,t)}),Co=R(`$ZodXID`,(e,t)=>{t.pattern??=ya,po.init(e,t)}),wo=R(`$ZodKSUID`,(e,t)=>{t.pattern??=ba,po.init(e,t)}),To=R(`$ZodISODateTime`,(e,t)=>{t.pattern??=Ba(t),po.init(e,t)}),Eo=R(`$ZodISODate`,(e,t)=>{t.pattern??=La,po.init(e,t)}),Do=R(`$ZodISOTime`,(e,t)=>{t.pattern??=za(t),po.init(e,t)}),Oo=R(`$ZodISODuration`,(e,t)=>{t.pattern??=Sa,po.init(e,t)}),ko=R(`$ZodIPv4`,(e,t)=>{t.pattern??=Oa,po.init(e,t),e._zod.bag.format=`ipv4`}),Ao=R(`$ZodIPv6`,(e,t)=>{t.pattern??=ka,po.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),jo=R(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Aa,po.init(e,t)}),Mo=R(`$ZodCIDRv6`,(e,t)=>{t.pattern??=ja,po.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function No(e){if(e===``)return!0;if(/\\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Po=R(`$ZodBase64`,(e,t)=>{t.pattern??=Ma,po.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{No(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Fo(e){if(!Na.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return No(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Io=R(`$ZodBase64URL`,(e,t)=>{t.pattern??=Na,po.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Fo(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Lo=R(`$ZodE164`,(e,t)=>{t.pattern??=Fa,po.init(e,t)});function Ro(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var zo=R(`$ZodJWT`,(e,t)=>{po.init(e,t),e._zod.check=n=>{Ro(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Bo=R(`$ZodNumber`,(e,t)=>{U.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ua,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Vo=R(`$ZodNumberFormat`,(e,t)=>{Qa.init(e,t),Bo.init(e,t)}),Ho=R(`$ZodBoolean`,(e,t)=>{U.init(e,t),e._zod.pattern=Wa,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Uo=R(`$ZodUnknown`,(e,t)=>{U.init(e,t),e._zod.parse=e=>e}),Wo=R(`$ZodNever`,(e,t)=>{U.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Go(e,t,n){e.issues.length&&t.issues.push(...Ki(n,e.issues)),t.value[n]=e.value}var Ko=R(`$ZodArray`,(e,t)=>{U.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>Go(t,n,e))):Go(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function qo(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Ki(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function Jo(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Fi(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Yo(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>qo(e,n,i,t,u,d))):qo(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var Xo=R(`$ZodObject`,(e,t)=>{if(U.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=yi(()=>Jo(t));z(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=ki,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>qo(n,t,e,s,r,i))):qo(a,t,e,s,r,i)}return i?Yo(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Zo=R(`$ZodObjectJIT`,(e,t)=>{Xo.init(e,t);let n=e._zod.parse,r=yi(()=>Jo(t)),i=e=>{let t=new uo([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=Ei(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=Ei(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(`\n if (${n}.issues.length) {\n if (${o} in input) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${o}, ...iss.path] : [${o}]\n })));\n }\n }\n \n if (${n}.value === undefined) {\n if (${o} in input) {\n newResult[${o}] = undefined;\n }\n } else {\n newResult[${o}] = ${n}.value;\n }\n \n `):c?t.write(`\n if (${n}.issues.length) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${o}, ...iss.path] : [${o}]\n })));\n }\n \n if (${n}.value === undefined) {\n if (${o} in input) {\n newResult[${o}] = undefined;\n }\n } else {\n newResult[${o}] = ${n}.value;\n }\n \n `):t.write(`\n const ${n}_present = ${o} in input;\n if (${n}.issues.length) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${o}, ...iss.path] : [${o}]\n })));\n }\n if (!${n}_present && !${n}.issues.length) {\n payload.issues.push({\n code: "invalid_type",\n expected: "nonoptional",\n input: undefined,\n path: [${o}]\n });\n }\n\n if (${n}_present) {\n if (${n}.value === undefined) {\n newResult[${o}] = undefined;\n } else {\n newResult[${o}] = ${n}.value;\n }\n }\n\n `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=ki,s=!hi.jitless,c=s&&Ai.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Yo([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Qo(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Wi(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Ji(e,r,gi())))}),t)}var $o=R(`$ZodUnion`,(e,t)=>{U.init(e,t),z(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),z(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),z(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),z(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>xi(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Qo(t,r,e,i)):Qo(o,r,e,i)}}),es=R(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,$o.init(e,t);let n=e._zod.parse;z(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=yi(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!ki(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),ts=R(`$ZodIntersection`,(e,t)=>{U.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>rs(e,t,n)):rs(e,i,a)}});function ns(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ji(e)&&ji(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=ns(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=ns(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function rs(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Wi(e))return e;let o=ns(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var is=R(`$ZodEnum`,(e,t)=>{U.init(e,t);let n=_i(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Ni.has(typeof e)).map(e=>typeof e==`string`?B(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),as=R(`$ZodLiteral`,(e,t)=>{if(U.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?B(e):e?B(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),os=R(`$ZodTransform`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new mi(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new pi;return n.value=i,n.fallback=!0,n}});function ss(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var cs=R(`$ZodOptional`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,z(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),z(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${xi(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>ss(e,r)):ss(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),ls=R(`$ZodExactOptional`,(e,t)=>{cs.init(e,t),z(e._zod,`values`,()=>t.innerType._zod.values),z(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),us=R(`$ZodNullable`,(e,t)=>{U.init(e,t),z(e._zod,`optin`,()=>t.innerType._zod.optin),z(e._zod,`optout`,()=>t.innerType._zod.optout),z(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${xi(e.source)}|null)$`):void 0}),z(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),ds=R(`$ZodDefault`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,z(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>fs(e,t)):fs(r,t)}});function fs(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var ps=R(`$ZodPrefault`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,z(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),ms=R(`$ZodNonOptional`,(e,t)=>{U.init(e,t),z(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>hs(t,e)):hs(i,e)}});function hs(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var gs=R(`$ZodCatch`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,z(e._zod,`optout`,()=>t.innerType._zod.optout),z(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ji(e,n,gi()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ji(e,n,gi()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),_s=R(`$ZodPipe`,(e,t)=>{U.init(e,t),z(e._zod,`values`,()=>t.in._zod.values),z(e._zod,`optin`,()=>t.in._zod.optin),z(e._zod,`optout`,()=>t.out._zod.optout),z(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>vs(e,t.in,n)):vs(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>vs(e,t.out,n)):vs(r,t.out,n)}});function vs(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var ys=R(`$ZodReadonly`,(e,t)=>{U.init(e,t),z(e._zod,`propValues`,()=>t.innerType._zod.propValues),z(e._zod,`values`,()=>t.innerType._zod.values),z(e._zod,`optin`,()=>t.innerType?._zod?.optin),z(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(bs):bs(r)}});function bs(e){return e.value=Object.freeze(e.value),e}var xs=R(`$ZodCustom`,(e,t)=>{qa.init(e,t),U.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Ss(t,n,r,e));Ss(i,n,r,e)}});function Ss(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Xi(e))}}var Cs,ws=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Ts(){return new ws}(Cs=globalThis).__zod_globalRegistry??(Cs.__zod_globalRegistry=Ts());var Es=globalThis.__zod_globalRegistry;function Ds(e,t){return new e({type:`string`,...V(t)})}function Os(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...V(t)})}function ks(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...V(t)})}function As(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...V(t)})}function js(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...V(t)})}function Ms(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...V(t)})}function Ns(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...V(t)})}function Ps(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...V(t)})}function Fs(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...V(t)})}function Is(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...V(t)})}function Ls(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...V(t)})}function Rs(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...V(t)})}function zs(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...V(t)})}function Bs(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...V(t)})}function Vs(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...V(t)})}function Hs(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...V(t)})}function Us(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...V(t)})}function Ws(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...V(t)})}function Gs(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...V(t)})}function Ks(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...V(t)})}function qs(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...V(t)})}function Js(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...V(t)})}function Ys(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...V(t)})}function Xs(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...V(t)})}function Zs(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...V(t)})}function Qs(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...V(t)})}function $s(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...V(t)})}function ec(e,t){return new e({type:`number`,checks:[],...V(t)})}function tc(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...V(t)})}function nc(e,t){return new e({type:`boolean`,...V(t)})}function rc(e){return new e({type:`unknown`})}function ic(e,t){return new e({type:`never`,...V(t)})}function ac(e,t){return new Ya({check:`less_than`,...V(t),value:e,inclusive:!1})}function oc(e,t){return new Ya({check:`less_than`,...V(t),value:e,inclusive:!0})}function sc(e,t){return new Xa({check:`greater_than`,...V(t),value:e,inclusive:!1})}function cc(e,t){return new Xa({check:`greater_than`,...V(t),value:e,inclusive:!0})}function lc(e,t){return new Za({check:`multiple_of`,...V(t),value:e})}function uc(e,t){return new $a({check:`max_length`,...V(t),maximum:e})}function dc(e,t){return new eo({check:`min_length`,...V(t),minimum:e})}function fc(e,t){return new to({check:`length_equals`,...V(t),length:e})}function pc(e,t){return new ro({check:`string_format`,format:`regex`,...V(t),pattern:e})}function mc(e){return new io({check:`string_format`,format:`lowercase`,...V(e)})}function hc(e){return new ao({check:`string_format`,format:`uppercase`,...V(e)})}function gc(e,t){return new oo({check:`string_format`,format:`includes`,...V(t),includes:e})}function _c(e,t){return new so({check:`string_format`,format:`starts_with`,...V(t),prefix:e})}function vc(e,t){return new co({check:`string_format`,format:`ends_with`,...V(t),suffix:e})}function yc(e){return new lo({check:`overwrite`,tx:e})}function bc(e){return yc(t=>t.normalize(e))}function xc(){return yc(e=>e.trim())}function Sc(){return yc(e=>e.toLowerCase())}function Cc(){return yc(e=>e.toUpperCase())}function wc(){return yc(e=>Di(e))}function Tc(e,t,n){return new e({type:`array`,element:t,...V(n)})}function Ec(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...V(n)})}function Dc(e,t){let n=Oc(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Xi(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Xi(r))}},e(t.value,t)),t);return n}function Oc(e,t){let n=new qa({check:`custom`,...V(t)});return n._zod.check=e,n}function kc(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??Es,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 Ac(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Ac(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&Nc(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function jc(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>\n\nSet the \\`cycles\\` parameter to \\`"ref"\\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Mc(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[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 n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Fc(t,`input`,e.processors),output:Fc(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Nc(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Nc(r.element,n);if(r.type===`set`)return Nc(r.valueType,n);if(r.type===`lazy`)return Nc(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return Nc(r.innerType,n);if(r.type===`intersection`)return Nc(r.left,n)||Nc(r.right,n);if(r.type===`record`||r.type===`map`)return Nc(r.keyType,n)||Nc(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Nc(r.in,n)||Nc(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Nc(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Nc(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Nc(e,n))return!0;return!!(r.rest&&Nc(r.rest,n))}return!1}var Pc=(e,t={})=>n=>{let r=kc({...n,processors:t});return Ac(e,r),jc(r,e),Mc(r,e)},Fc=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=kc({...i??{},target:a,io:t,processors:n});return Ac(e,o),jc(o,e),Mc(o,e)},Ic={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Lc=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Ic[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Rc=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},zc=(e,t,n,r)=>{n.type=`boolean`},Bc=(e,t,n,r)=>{n.not={}},Vc=(e,t,n,r)=>{let i=e._zod.def,a=_i(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Hc=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},Uc=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Wc=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Gc=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Ac(a.element,t,{...r,path:[...r.path,`items`]})},Kc=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Ac(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Ac(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},qc=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Ac(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Jc=(e,t,n,r)=>{let i=e._zod.def,a=Ac(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Ac(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Yc=(e,t,n,r)=>{let i=e._zod.def,a=Ac(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Xc=(e,t,n,r)=>{let i=e._zod.def;Ac(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Zc=(e,t,n,r)=>{let i=e._zod.def;Ac(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Qc=(e,t,n,r)=>{let i=e._zod.def;Ac(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},$c=(e,t,n,r)=>{let i=e._zod.def;Ac(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},el=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Ac(o,t,r);let s=t.seen.get(e);s.ref=o},tl=(e,t,n,r)=>{let i=e._zod.def;Ac(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},nl=(e,t,n,r)=>{let i=e._zod.def;Ac(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},rl=R(`ZodISODateTime`,(e,t)=>{To.init(e,t),kl.init(e,t)});function il(e){return Xs(rl,e)}var al=R(`ZodISODate`,(e,t)=>{Eo.init(e,t),kl.init(e,t)});function ol(e){return Zs(al,e)}var sl=R(`ZodISOTime`,(e,t)=>{Do.init(e,t),kl.init(e,t)});function cl(e){return Qs(sl,e)}var ll=R(`ZodISODuration`,(e,t)=>{Oo.init(e,t),kl.init(e,t)});function ul(e){return $s(ll,e)}var dl=R(`ZodError`,(e,t)=>{Qi.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>ta(e,t)},flatten:{value:t=>ea(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,vi,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,vi,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),fl=na(dl),pl=ra(dl),ml=ia(dl),hl=oa(dl),gl=ca(dl),_l=la(dl),vl=ua(dl),yl=da(dl),bl=fa(dl),xl=pa(dl),Sl=ma(dl),Cl=ha(dl),wl=new WeakMap;function Tl(e,t,n){let r=Object.getPrototypeOf(e),i=wl.get(r);if(i||(i=new Set,wl.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var El=R(`ZodType`,(e,t)=>(U.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Fc(e,`input`),output:Fc(e,`output`)}}),e.toJSONSchema=Pc(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>fl(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>ml(e,t,n),e.parseAsync=async(t,n)=>pl(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>hl(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>gl(e,t,n),e.decode=(t,n)=>_l(e,t,n),e.encodeAsync=async(t,n)=>vl(e,t,n),e.decodeAsync=async(t,n)=>yl(e,t,n),e.safeEncode=(t,n)=>bl(e,t,n),e.safeDecode=(t,n)=>xl(e,t,n),e.safeEncodeAsync=async(t,n)=>Sl(e,t,n),e.safeDecodeAsync=async(t,n)=>Cl(e,t,n),Tl(e,`ZodType`,{check(...e){let t=this.def;return this.clone(Ti(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Pi(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Nu(e,t))},superRefine(e,t){return this.check(Pu(e,t))},overwrite(e){return this.check(yc(e))},optional(){return hu(this)},exactOptional(){return _u(this)},nullable(){return yu(this)},nullish(){return hu(yu(this))},nonoptional(e){return Tu(this,e)},array(){return X(this)},or(e){return ru([this,e])},and(e){return su(this,e)},transform(e){return ku(this,pu(e))},default(e){return xu(this,e)},prefault(e){return Cu(this,e)},catch(e){return Du(this,e)},pipe(e){return ku(this,e)},readonly(){return ju(this)},describe(e){let t=this.clone();return Es.add(t,{description:e}),t},meta(...e){if(e.length===0)return Es.get(this);let t=this.clone();return Es.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return Es.get(e)?.description},configurable:!0}),e)),Dl=R(`_ZodString`,(e,t)=>{fo.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lc(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Tl(e,`_ZodString`,{regex(...e){return this.check(pc(...e))},includes(...e){return this.check(gc(...e))},startsWith(...e){return this.check(_c(...e))},endsWith(...e){return this.check(vc(...e))},min(...e){return this.check(dc(...e))},max(...e){return this.check(uc(...e))},length(...e){return this.check(fc(...e))},nonempty(...e){return this.check(dc(1,...e))},lowercase(e){return this.check(mc(e))},uppercase(e){return this.check(hc(e))},trim(){return this.check(xc())},normalize(...e){return this.check(bc(...e))},toLowerCase(){return this.check(Sc())},toUpperCase(){return this.check(Cc())},slugify(){return this.check(wc())}})}),Ol=R(`ZodString`,(e,t)=>{fo.init(e,t),Dl.init(e,t),e.email=t=>e.check(Os(Al,t)),e.url=t=>e.check(Ps(Nl,t)),e.jwt=t=>e.check(Ys(Gl,t)),e.emoji=t=>e.check(Fs(Pl,t)),e.guid=t=>e.check(ks(jl,t)),e.uuid=t=>e.check(As(Ml,t)),e.uuidv4=t=>e.check(js(Ml,t)),e.uuidv6=t=>e.check(Ms(Ml,t)),e.uuidv7=t=>e.check(Ns(Ml,t)),e.nanoid=t=>e.check(Is(Fl,t)),e.guid=t=>e.check(ks(jl,t)),e.cuid=t=>e.check(Ls(Il,t)),e.cuid2=t=>e.check(Rs(Ll,t)),e.ulid=t=>e.check(zs(Rl,t)),e.base64=t=>e.check(Ks(Hl,t)),e.base64url=t=>e.check(qs(Ul,t)),e.xid=t=>e.check(Bs(zl,t)),e.ksuid=t=>e.check(Vs(G,t)),e.ipv4=t=>e.check(Hs(Bl,t)),e.ipv6=t=>e.check(Us(K,t)),e.cidrv4=t=>e.check(Ws(q,t)),e.cidrv6=t=>e.check(Gs(Vl,t)),e.e164=t=>e.check(Js(Wl,t)),e.datetime=t=>e.check(il(t)),e.date=t=>e.check(ol(t)),e.time=t=>e.check(cl(t)),e.duration=t=>e.check(ul(t))});function W(e){return Ds(Ol,e)}var kl=R(`ZodStringFormat`,(e,t)=>{po.init(e,t),Dl.init(e,t)}),Al=R(`ZodEmail`,(e,t)=>{go.init(e,t),kl.init(e,t)}),jl=R(`ZodGUID`,(e,t)=>{mo.init(e,t),kl.init(e,t)}),Ml=R(`ZodUUID`,(e,t)=>{ho.init(e,t),kl.init(e,t)}),Nl=R(`ZodURL`,(e,t)=>{_o.init(e,t),kl.init(e,t)}),Pl=R(`ZodEmoji`,(e,t)=>{vo.init(e,t),kl.init(e,t)}),Fl=R(`ZodNanoID`,(e,t)=>{yo.init(e,t),kl.init(e,t)}),Il=R(`ZodCUID`,(e,t)=>{bo.init(e,t),kl.init(e,t)}),Ll=R(`ZodCUID2`,(e,t)=>{xo.init(e,t),kl.init(e,t)}),Rl=R(`ZodULID`,(e,t)=>{So.init(e,t),kl.init(e,t)}),zl=R(`ZodXID`,(e,t)=>{Co.init(e,t),kl.init(e,t)}),G=R(`ZodKSUID`,(e,t)=>{wo.init(e,t),kl.init(e,t)}),Bl=R(`ZodIPv4`,(e,t)=>{ko.init(e,t),kl.init(e,t)}),K=R(`ZodIPv6`,(e,t)=>{Ao.init(e,t),kl.init(e,t)}),q=R(`ZodCIDRv4`,(e,t)=>{jo.init(e,t),kl.init(e,t)}),Vl=R(`ZodCIDRv6`,(e,t)=>{Mo.init(e,t),kl.init(e,t)}),Hl=R(`ZodBase64`,(e,t)=>{Po.init(e,t),kl.init(e,t)}),Ul=R(`ZodBase64URL`,(e,t)=>{Io.init(e,t),kl.init(e,t)}),Wl=R(`ZodE164`,(e,t)=>{Lo.init(e,t),kl.init(e,t)}),Gl=R(`ZodJWT`,(e,t)=>{zo.init(e,t),kl.init(e,t)}),Kl=R(`ZodNumber`,(e,t)=>{Bo.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rc(e,t,n,r),Tl(e,`ZodNumber`,{gt(e,t){return this.check(sc(e,t))},gte(e,t){return this.check(cc(e,t))},min(e,t){return this.check(cc(e,t))},lt(e,t){return this.check(ac(e,t))},lte(e,t){return this.check(oc(e,t))},max(e,t){return this.check(oc(e,t))},int(e){return this.check(Jl(e))},safe(e){return this.check(Jl(e))},positive(e){return this.check(sc(0,e))},nonnegative(e){return this.check(cc(0,e))},negative(e){return this.check(ac(0,e))},nonpositive(e){return this.check(oc(0,e))},multipleOf(e,t){return this.check(lc(e,t))},step(e,t){return this.check(lc(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function J(e){return ec(Kl,e)}var ql=R(`ZodNumberFormat`,(e,t)=>{Vo.init(e,t),Kl.init(e,t)});function Jl(e){return tc(ql,e)}var Yl=R(`ZodBoolean`,(e,t)=>{Ho.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zc(e,t,n,r)});function Y(e){return nc(Yl,e)}var Xl=R(`ZodUnknown`,(e,t)=>{Uo.init(e,t),El.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Zl(){return rc(Xl)}var Ql=R(`ZodNever`,(e,t)=>{Wo.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bc(e,t,n,r)});function $l(e){return ic(Ql,e)}var eu=R(`ZodArray`,(e,t)=>{Ko.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gc(e,t,n,r),e.element=t.element,Tl(e,`ZodArray`,{min(e,t){return this.check(dc(e,t))},nonempty(e){return this.check(dc(1,e))},max(e,t){return this.check(uc(e,t))},length(e,t){return this.check(fc(e,t))},unwrap(){return this.element}})});function X(e,t){return Tc(eu,e,t)}var tu=R(`ZodObject`,(e,t)=>{Zo.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kc(e,t,n,r),z(e,`shape`,()=>t.shape),Tl(e,`ZodObject`,{keyof(){return lu(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:Zl()})},loose(){return this.clone({...this._zod.def,catchall:Zl()})},strict(){return this.clone({...this._zod.def,catchall:$l()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return zi(this,e)},safeExtend(e){return Bi(this,e)},merge(e){return Vi(this,e)},pick(e){return Li(this,e)},omit(e){return Ri(this,e)},partial(...e){return Hi(mu,this,e[0])},required(...e){return Ui(wu,this,e[0])}})});function Z(e,t){return new tu({type:`object`,shape:e??{},...V(t)})}var nu=R(`ZodUnion`,(e,t)=>{$o.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qc(e,t,n,r),e.options=t.options});function ru(e,t){return new nu({type:`union`,options:e,...V(t)})}var iu=R(`ZodDiscriminatedUnion`,(e,t)=>{nu.init(e,t),es.init(e,t)});function au(e,t,n){return new iu({type:`union`,options:t,discriminator:e,...V(n)})}var ou=R(`ZodIntersection`,(e,t)=>{ts.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jc(e,t,n,r)});function su(e,t){return new ou({type:`intersection`,left:e,right:t})}var cu=R(`ZodEnum`,(e,t)=>{is.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vc(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new cu({...t,checks:[],...V(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new cu({...t,checks:[],...V(r),entries:i})}});function lu(e,t){return new cu({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...V(t)})}var uu=R(`ZodLiteral`,(e,t)=>{as.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hc(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function du(e,t){return new uu({type:`literal`,values:Array.isArray(e)?e:[e],...V(t)})}var fu=R(`ZodTransform`,(e,t)=>{os.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wc(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new mi(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Xi(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Xi(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function pu(e){return new fu({type:`transform`,transform:e})}var mu=R(`ZodOptional`,(e,t)=>{cs.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function hu(e){return new mu({type:`optional`,innerType:e})}var gu=R(`ZodExactOptional`,(e,t)=>{ls.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function _u(e){return new gu({type:`optional`,innerType:e})}var vu=R(`ZodNullable`,(e,t)=>{us.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yc(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function yu(e){return new vu({type:`nullable`,innerType:e})}var bu=R(`ZodDefault`,(e,t)=>{ds.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zc(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function xu(e,t){return new bu({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Mi(t)}})}var Su=R(`ZodPrefault`,(e,t)=>{ps.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qc(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Cu(e,t){return new Su({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Mi(t)}})}var wu=R(`ZodNonOptional`,(e,t)=>{ms.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xc(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Tu(e,t){return new wu({type:`nonoptional`,innerType:e,...V(t)})}var Eu=R(`ZodCatch`,(e,t)=>{gs.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$c(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Du(e,t){return new Eu({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Ou=R(`ZodPipe`,(e,t)=>{_s.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>el(e,t,n,r),e.in=t.in,e.out=t.out});function ku(e,t){return new Ou({type:`pipe`,in:e,out:t})}var Au=R(`ZodReadonly`,(e,t)=>{ys.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ju(e){return new Au({type:`readonly`,innerType:e})}var Mu=R(`ZodCustom`,(e,t)=>{xs.init(e,t),El.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uc(e,t,n,r)});function Nu(e,t={}){return Ec(Mu,e,t)}function Pu(e,t){return Dc(e,t)}Z({file:W(),format:W(),phase:W(),type:W().default(``),title:W().default(``),sprint:W().default(``),story:W().default(``),assignee:W().default(``),branches:X(W()).default([]),waves:X(Z({name:W().default(``),branches:X(Z({branch:W(),deferred:Y().default(!1),claimed:W().default(``)})).default([])})).default([]),prs:X(J()).default([]),review:W().default(`NONE`),impl:W().default(`NONE`),approved_raw:W().default(``),released_raw:W().default(``),delivered_raw:W().default(``),started_raw:X(W()).default([]),rounds:J().optional(),error:W().optional()});var Fu=[`Discovery`,`Design`,`Development`,`Endgame`,`Released`],Iu={Discovery:{icon:`\u{1F464}`,who:`human-led`},Design:{icon:`\u{1F464}`,who:`human-led`},Development:{icon:`\u{1F916}`,who:`agent-led`},Endgame:{icon:`\u{1F464}`,who:`human-led`},Released:{icon:`\u2713`,who:`done`}},Lu=Z({waves:J(),branches:J(),claimed:J().optional(),eligible:J().optional(),deferred:J()}),Ru=Z({number:J(),url:W().default(``)}),zu=Z({slug:W(),title:W(),type:W(),phase:lu(Fu),sprint:W().optional(),story:W().optional(),assignee:W().optional(),started:Y().optional(),rounds:J().optional(),path:W(),prs:X(Ru).default([]),waveSummary:Lu.optional(),worktrees:X(Z({branch:W(),path:W()})).optional(),hasDispatchLog:Y().optional(),phaseDate:W().default(``)}),Bu=Z({phase:lu(Fu),cards:X(zu)}),Vu=Z({slug:W(),title:W(),phase:W()}),Hu=Z({slug:W(),title:W(),status:W(),path:W().default(``)}),Uu=Z({available:Y(),reason:W().default(``)}),Wu=Z({restartCommand:W().default(``),port:J().default(0)});Z({generatedAt:W(),columns:X(Bu),dispatch:Uu.default({available:!1,reason:``}),server:Wu.default({restartCommand:``,port:0}),approve:Uu.default({available:!1,reason:``}),continue:Uu.default({available:!1,reason:``}),idea:Uu.default({available:!1,reason:``}),commission:Uu.default({available:!1,reason:``}),checklist:Z({done:J(),total:J()}).nullable(),sprints:X(Vu),stories:X(Hu)});var Gu=lu([`open`,`wip`,`merged`,`claimed`,`deferred`]),Ku=lu([`complete`,`eligible`,`blocked`]),qu=lu([`running`,`finished`,`failed`,`ended`,`none`,`elsewhere`,`waiting`,`stalled`]),Ju=lu([`you`,`click`,`time`]),Yu=Z({branch:W(),state:Gu,deferred:Y(),claimed:W(),local_dirty:Y().default(!1),local_locked:Y().default(!1),local_worktree:W().default(``),held:Y().default(!1),local_ahead:J().default(0),worker:qu.default(`elsewhere`),worker_pid:W().default(``),worker_exit:W().default(``),worker_dirty_paths:X(W()).default([]),conflicts:X(W()).default([]),conflicts_known:Y().default(!1),changed_paths:X(W()).default([])}),Xu=Z({name:W(),verdict:Ku,branches:X(Yu)}),Zu=Z({file:W(),phase:W().default(``),waves:X(Xu)}),Qu=Z({main:W(),head:W(),read_ref:W().optional(),local_head:W().optional(),plans:X(Zu),summary:Z({plans:J(),waves:J(),branches:J(),claimed:J(),eligible:J(),blocked:J(),deferred:J()})});au(`kind`,[Z({kind:du(`plan`),plan:Zu}),Z({kind:du(`pulse`),pulse:Qu})]);var $u=lu([`waiting-on-you`,`working`,`waiting-on-machine`,`quiet`,`not-started`,`done`]),ed=Z({state:lu([`artifact-conflict`,`conflict`,`unpushed`,`ci-failing`]),conflicts:X(W()).default([]),localAhead:J().default(0),changedPaths:X(W()).default([]),failingChecks:X(W()).default([]),runHistory:X(Z({workflow:W().default(``),conclusion:W().default(``),startedAt:W().default(``),url:W().default(``)})).default([])}),td=Z({branch:W(),state:lu([`running`,`finished`]),outcome:lu([`pushed`,`abandoned`,`refused`]).or(du(``)).default(``),reason:W().default(``),at:J().default(0),log:W().default(``)}),nd=Z({origin:lu([`host`,`local`]),evidence:W().default(``),pid:W().default(``)}),rd=Z({repo:W(),branch:W(),plan:W(),planFile:W().default(``),wave:W(),state:Gu,phase:lu(Fu).nullable().default(null),group:$u,ageMinutes:J().nullable(),note:W(),pr:Z({number:J(),url:W().default(``),draft:Y().default(!1),state:lu([`green`,`pending`,`failing`,`none`,`conflicts`,`unknown`]).default(`unknown`)}).nullable().default(null),branchUrl:W().default(``),waitingDays:J().nullable().default(null),localDirty:Y().default(!1),localLocked:Y().default(!1),localAhead:J().default(0),waitingOn:Ju.nullable().default(null),blockedBy:W().nullable().default(null),verdict:Ku.nullable().default(null),stuck:ed.nullable().default(null),repair:td.nullable().default(null),worker:qu.default(`elsewhere`),processes:X(nd).default([])}),id=Z({plans:X(W()),branches:X(W()),previousAt:J()}),ad=Z({number:J(),title:W(),url:W().default(``),ageMinutes:J().nullable().default(null)}),od=lu([`answered`,`unsupported`,`failed`]);Z({generatedAt:W(),ageSeconds:J(),readRef:W().nullable().default(null),readRefAge:J().nullable().default(null),localHead:W().nullable().default(null),ready:Y(),complete:Y().default(!0),error:W().nullable(),shrink:id.nullable().default(null),rows:X(rd),summary:Qu.shape.summary,stuck:Z({stuck:J(),artifact:J(),conflict:J(),unpushed:J(),ci:J()}).default({stuck:0,artifact:0,conflict:0,unpushed:0,ci:0}),prAgeSeconds:J().nullable(),prNextInSeconds:J().nullable().default(null),scanNextInSeconds:J().nullable().default(null),prError:W().nullable(),issues:X(ad).default([]),issueAnswer:od.default(`unsupported`),issueError:W().nullable().default(null)});var sd=lu([`abandoned`,`unfinished`,`question`,`ci-approval`,`ci-failing`,`conflict`,`review`,`unpushed`,`eligible`]),cd=Z({branch:W().default(``),verdict:sd,action:W(),evidence:W(),pr:J().nullable().default(null),planFile:W().default(``),note:W().default(``)}),ld=Z({branch:W(),plan:W(),wave:W(),brief:W(),briefExists:Y().default(!1),waitingDays:J().nullable().default(null)});Z({generatedAt:W(),ready:Y(),ageSeconds:J().nullable().default(null),readRef:W().nullable().default(null),error:W().nullable().default(null),needsAgent:X(cd).default([]),needsHuman:X(cd).default([]),waiting:X(cd).default([]),claimable:X(ld).default([])}),Z({slug:W(),claimed:Y(),branch:W().nullable().default(null),worktree:W().nullable().default(null),reason:W(),summary:W().default(``)});var ud=lu([`approve`]);Z({slug:W(),transition:ud,applied:Y(),phase:W().nullable().default(null),reason:W()});var dd=`__no_sprint__`,fd=`__no_story__`;function pd(e,t,n,r){return e.map(e=>({...e,count:t.filter(t=>e.value===r?!t[n]:t[n]===e.value).length}))}function md(e){let t=new Map;for(let n of e?.sprints??[])t.set(n.slug,n.title);for(let n of e?.columns??[])for(let e of n.cards)e.sprint&&!t.has(e.sprint)&&t.set(e.sprint,e.sprint);return[...t.entries()].sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>({value:e,label:t}))}function hd(e,t){let n=new Set(t.map(e=>e.value));return e.filter(e=>n.has(e))}function gd(e){let t=new URLSearchParams(window.location.search).get(e);return t?t.split(`,`).map(e=>e.trim()).filter(Boolean):[]}function _d(e,t){let n=new URL(window.location.href);t.length?n.searchParams.set(e,t.join(`,`)):n.searchParams.delete(e),history.replaceState(null,``,n.toString())}function vd(e,t,n,r){if(t.length===0)return!0;let i=e[n];return i?t.includes(i):t.includes(r)}function yd(e){if(!e.phaseDate)return-1/0;let t=Date.parse(`${e.phaseDate}T00:00:00Z`);return Number.isNaN(t)?-1/0:t}function Q(e,{limit:t=5,expanded:n=!1,highlight:r=``}={}){let i=[...e].sort((e,t)=>yd(t)-yd(e));if(n||i.length<=t)return{visible:i,hidden:0,total:i.length};let a=i.slice(0,t),o=r&&i.some(e=>e.slug===r)&&!a.some(e=>e.slug===r)?i.find(e=>e.slug===r):void 0;return o&&a.push(o),{visible:a,hidden:i.length-a.length,total:i.length}}function bd({board:e,sprintSel:t,storySel:n,pulse:r,onStarting:i,onOpenPlan:a,onOpenStory:o,highlight:s=``}){let c=t.length===0,l=n.length===0,[u,d]=(0,y.useState)({}),f=e=>d(t=>({...t,[e]:!t[e]})),p=new Map(e.stories.map(e=>[e.slug,e]));return(0,x.jsx)(`div`,{className:`grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5`,children:e.columns.map(d=>{let m=Q(d.cards.filter(e=>vd(e,t,`sprint`,`__no_sprint__`)&&vd(e,n,`story`,`__no_story__`)),{expanded:u[d.phase],highlight:s});return(0,x.jsxs)(`section`,{className:`flex flex-col rounded-lg bg-slate-100/70 p-3 dark:bg-slate-900/50`,children:[(0,x.jsxs)(`header`,{className:`mb-3 flex items-center justify-between gap-2`,children:[(0,x.jsxs)(`h2`,{className:`flex min-w-0 items-baseline gap-1.5 text-sm font-semibold uppercase tracking-wide text-slate-600 dark:text-slate-300`,title:`${d.phase} \u2014 ${Iu[d.phase].who}`,children:[(0,x.jsx)(`span`,{"aria-hidden":!0,children:Iu[d.phase].icon}),(0,x.jsx)(`span`,{className:`truncate`,children:d.phase})]}),(0,x.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1`,children:[d.phase===`Endgame`&&e.checklist&&(0,x.jsxs)(`span`,{className:`rounded-full bg-violet-100 px-2 py-0.5 text-xs font-medium text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`,title:`Release checklist`,children:[`\u2611 `,e.checklist.done,`/`,e.checklist.total]}),(0,x.jsx)(`span`,{className:`rounded-full bg-slate-200 px-2 py-0.5 text-xs font-medium text-slate-600 dark:bg-slate-800 dark:text-slate-300`,title:m.hidden>0?`${m.total} plans \u2014 ${m.hidden} hidden`:`${m.total} plans`,children:m.total})]})]}),(0,x.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[m.total>0?m.visible.map(t=>(0,x.jsx)(en,{card:t,showSprint:c,showStory:l,dispatch:e.dispatch,approve:e.approve,pulse:r,onStarting:i,onOpen:a,story:t.story?p.get(t.story):void 0,onOpenStory:o,highlighted:t.slug===s},t.path)):(0,x.jsx)(`p`,{className:`px-1 py-4 text-center text-xs text-slate-400 dark:text-slate-600`,children:`No plans in this phase.`}),(m.hidden>0||u[d.phase])&&m.total>5&&(0,x.jsx)(`button`,{type:`button`,onClick:()=>f(d.phase),"aria-expanded":m.hidden===0,className:`rounded-md border border-dashed border-slate-300 px-2 py-1.5 text-xs font-medium text-slate-500 hover:border-slate-400 hover:text-slate-700 dark:border-slate-700 dark:text-slate-400 dark:hover:border-slate-600 dark:hover:text-slate-200`,children:m.hidden>0?`Show ${m.hidden} older`:`Show the 5 most recent`})]})]},d.phase)})})}var xd=Fu;function Sd(e,t){let n=t.map(t=>({key:t.slug,title:t.title||t.slug,subtitle:t.status?`${t.slug} \xB7 ${t.status}`:t.slug,cards:e.filter(e=>e.story===t.slug),story:t})),r=new Set(t.map(e=>e.slug)),i=new Map;for(let t of e){if(!t.story||r.has(t.story))continue;let e=i.get(t.story)??[];e.push(t),i.set(t.story,e)}for(let[e,t]of i)n.push({key:e,title:e,subtitle:`no story file`,cards:t});let a=e.filter(e=>!e.story);return a.length>0&&n.push({key:`__none__`,title:`(no story)`,subtitle:`plans created directly`,cards:a}),n}function Cd({board:e,sprintSel:t,storySel:n,pulse:r,onStarting:i,onOpenPlan:a,onOpenStory:o,highlight:s=``}){let c=t.length===0,l=Sd(e.columns.flatMap(e=>e.cards).filter(e=>vd(e,t,`sprint`,`__no_sprint__`)&&vd(e,n,`story`,`__no_story__`)),e.stories),u=xd;return(0,x.jsx)(`div`,{className:`overflow-x-auto`,children:(0,x.jsxs)(`div`,{className:`min-w-[900px]`,children:[(0,x.jsxs)(`div`,{className:`mb-2 grid gap-3 border-b border-slate-200 pb-2 dark:border-slate-800`,style:{gridTemplateColumns:`14rem repeat(${u.length}, minmax(0, 1fr))`},children:[(0,x.jsx)(`div`,{className:`text-xs font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400`,children:`Story`}),u.map(e=>(0,x.jsxs)(`div`,{className:`flex items-baseline gap-1.5 text-xs font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400`,title:`${e} \u2014 ${Iu[e].who}`,children:[(0,x.jsx)(`span`,{"aria-hidden":!0,children:Iu[e].icon}),e]},e))]}),l.length===0?(0,x.jsx)(`p`,{className:`py-8 text-center text-sm text-slate-400 dark:text-slate-600`,children:`No stories yet \u2014 plans without one appear here once they exist.`}):l.map(t=>(0,x.jsxs)(`div`,{id:`story-${t.key}`,className:`mb-3 grid scroll-mt-4 gap-3 border-b border-slate-100 pb-3 last:border-0 dark:border-slate-900`,style:{gridTemplateColumns:`14rem repeat(${u.length}, minmax(0, 1fr))`},children:[(0,x.jsxs)(`div`,{className:`pr-2`,children:[(0,x.jsx)(`div`,{className:`text-sm font-medium leading-snug text-slate-800 dark:text-slate-200`,children:o&&t.story&&Ht(t.story)?(0,x.jsx)(`a`,{href:Ht(t.story),onClick:e=>{e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button!==0||(e.preventDefault(),o(t.story))},className:`hover:underline`,title:`Open the ${t.story.slug} story`,children:t.title}):t.title}),(0,x.jsx)(`div`,{className:`mt-0.5 font-mono text-[11px] text-slate-400 dark:text-slate-600`,children:t.subtitle}),(0,x.jsx)(`div`,{className:`mt-1 text-xs text-slate-500 dark:text-slate-500`,children:t.cards.length===0?`no plans yet`:`${t.cards.length} plan${t.cards.length===1?``:`s`}`})]}),u.map(n=>(0,x.jsx)(`div`,{className:`flex max-h-72 flex-col gap-2 overflow-y-auto pr-0.5`,children:t.cards.filter(e=>e.phase===n).map(t=>(0,x.jsx)(en,{card:t,showSprint:c,showStory:!1,dispatch:e.dispatch,approve:e.approve,pulse:r,onStarting:i,onOpen:a,highlighted:t.slug===s},t.path))},n))]},t.key))]})})}function wd({label:e,ariaLabel:t,href:n,frameTitle:r,onShowInBoard:i,onClose:a,children:o}){let s=`${n}?embed=1`,[c,l]=(0,y.useState)(null),[u,d]=(0,y.useState)(null);return(0,y.useEffect)(()=>{let e=!1;return l(null),d(null),fetch(s).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.text()}).then(t=>{e||l(t)}).catch(t=>{e||d(t instanceof Error?t.message:String(t))}),()=>{e=!0}},[s]),(0,y.useEffect)(()=>{let e=e=>{e.key===`Escape`&&a()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),(0,x.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-label":t,className:`fixed inset-0 z-50 flex items-center justify-center p-4`,onClick:a,children:[(0,x.jsx)(`div`,{className:`absolute inset-0 bg-black/50`,"aria-hidden":!0}),(0,x.jsxs)(`div`,{className:`relative flex max-h-[90vh] w-full max-w-3xl flex-col overflow-hidden rounded-lg bg-white shadow-xl dark:bg-slate-900`,onClick:e=>e.stopPropagation(),children:[(0,x.jsxs)(`header`,{className:`flex items-center gap-2 border-b border-slate-200 px-4 py-3 dark:border-slate-700`,children:[(0,x.jsx)(`h2`,{className:`mr-auto truncate text-sm font-semibold text-slate-900 dark:text-slate-100`,children:e}),i&&(0,x.jsx)(`button`,{type:`button`,onClick:i,className:`shrink-0 rounded-md border border-slate-300 px-3 py-1.5 text-sm text-slate-700 hover:bg-slate-50 dark:border-slate-700 dark:text-slate-200 dark:hover:bg-slate-800`,children:`Show in board`}),(0,x.jsx)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,className:`shrink-0 rounded-md border border-slate-300 px-3 py-1.5 text-sm text-slate-700 hover:bg-slate-50 dark:border-slate-700 dark:text-slate-200 dark:hover:bg-slate-800`,children:`Open in new tab`}),(0,x.jsx)(`button`,{type:`button`,onClick:a,className:`shrink-0 rounded-md px-3 py-1.5 text-sm text-slate-500 hover:bg-slate-100 dark:text-slate-400 dark:hover:bg-slate-800`,children:`Close`})]}),o,(0,x.jsx)(`div`,{className:`min-h-0 flex-1 bg-white dark:bg-slate-950`,children:u?(0,x.jsxs)(`p`,{className:`p-6 text-sm text-red-600 dark:text-red-400`,children:[`Failed to load `,e.toLowerCase(),`: `,u]}):c===null?(0,x.jsx)(`p`,{className:`p-6 text-sm text-slate-500`,children:`Loading\u2026`}):(0,x.jsx)(`iframe`,{title:r,srcDoc:c,sandbox:`allow-same-origin allow-popups`,className:`h-[70vh] w-full border-0`})})]})]})}function Td({card:e,story:t,onClose:n,onShowInBoard:r,onOpenStory:i}){let a=!!(i&&t&&Ht(t));return(0,x.jsxs)(wd,{label:`Plan`,ariaLabel:`Plan: ${e.title}`,href:Vt(e),frameTitle:`Plan: ${e.slug}`,onShowInBoard:r&&(()=>r(e)),onClose:n,children:[a&&t&&(0,x.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-slate-200 px-4 py-2 dark:border-slate-700`,children:[(0,x.jsx)(`span`,{className:`text-[11px] uppercase tracking-wide text-slate-500 dark:text-slate-400`,children:`Story`}),(0,x.jsx)(`span`,{className:`truncate text-xs text-slate-600 dark:text-slate-300`,children:t.title||t.slug}),(0,x.jsx)(`button`,{type:`button`,onClick:()=>i(t),className:`ml-auto shrink-0 rounded-md border border-slate-300 px-3 py-1 text-xs text-slate-700 hover:bg-slate-50 dark:border-slate-700 dark:text-slate-200 dark:hover:bg-slate-800`,children:`Open story`})]}),e.worktrees&&e.worktrees.length>0&&(0,x.jsxs)(`div`,{className:`border-b border-slate-200 px-4 py-2 dark:border-slate-700`,children:[(0,x.jsx)(`p`,{className:`mb-1 text-[11px] uppercase tracking-wide text-slate-500 dark:text-slate-400`,children:`Checked out on this machine`}),(0,x.jsx)(`ul`,{className:`space-y-1`,children:e.worktrees.map(e=>(0,x.jsxs)(`li`,{className:`flex items-baseline gap-2 text-xs`,children:[(0,x.jsx)(`span`,{className:`shrink-0 font-mono text-slate-500 dark:text-slate-400`,children:e.branch}),(0,x.jsx)(`input`,{readOnly:!0,value:e.path,onFocus:e=>e.currentTarget.select(),"aria-label":`Worktree path for ${e.branch}`,className:`min-w-0 flex-1 rounded border border-slate-200 bg-slate-50 px-2 py-1 font-mono text-[11px] text-slate-700 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-200`})]},e.branch))})]})]})}function Ed(e,t){let n=new Map(Fu.map((e,t)=>[e,t]));return e.filter(e=>e.story===t).slice().sort((e,t)=>(n.get(e.phase)??0)-(n.get(t.phase)??0))}function Dd({story:e,cards:t,onClose:n,onShowInBoard:r,onOpenPlan:i}){let a=Ed(t,e.slug);return(0,x.jsx)(wd,{label:`Story`,ariaLabel:`Story: ${e.title||e.slug}`,href:Ht(e),frameTitle:`Story: ${e.slug}`,onShowInBoard:r&&(()=>r(e)),onClose:n,children:(0,x.jsxs)(`div`,{className:`border-b border-slate-200 px-4 py-2 dark:border-slate-700`,children:[(0,x.jsx)(`p`,{className:`mb-1 text-[11px] uppercase tracking-wide text-slate-500 dark:text-slate-400`,children:`Plans in this story`}),a.length===0?(0,x.jsx)(`p`,{className:`text-xs text-slate-500 dark:text-slate-400`,children:`No plans yet.`}):(0,x.jsx)(`ul`,{className:`space-y-1`,children:a.map(e=>(0,x.jsxs)(`li`,{className:`flex items-baseline gap-2 text-xs`,children:[(0,x.jsx)(`span`,{className:`w-24 shrink-0 text-slate-500 dark:text-slate-400`,children:e.phase}),i?(0,x.jsx)(`button`,{type:`button`,onClick:()=>i(e),className:`min-w-0 truncate text-left text-blue-600 hover:underline dark:text-blue-400`,children:e.title}):(0,x.jsx)(`span`,{className:`min-w-0 truncate text-slate-700 dark:text-slate-200`,children:e.title})]},e.path))})]})})}var Od=`the board server is not answering \u2014 this would post to a server that is not there`;function kd({failures:e,server:t}){let n=t?.restartCommand??``,r=t?.port??0;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`div`,{"data-unreachable-scrim":!0,"aria-hidden":`true`,className:`pointer-events-auto fixed inset-0 z-40 bg-slate-100/70 backdrop-grayscale dark:bg-slate-950/70`}),(0,x.jsx)(`div`,{"data-unreachable-overlay":!0,role:`alert`,"aria-live":`assertive`,className:`pointer-events-none fixed inset-0 z-50 flex items-start justify-center p-4 pt-24`,children:(0,x.jsxs)(`div`,{className:`pointer-events-auto max-w-lg select-text rounded-lg border border-rose-300 bg-white px-5 py-4 shadow-lg dark:border-rose-800 dark:bg-slate-900`,children:[(0,x.jsxs)(`p`,{className:`text-sm font-semibold text-rose-800 dark:text-rose-300`,children:[`No contact with the board server for `,e,` polls`]}),(0,x.jsx)(`p`,{className:`mt-2 text-sm text-slate-700 dark:text-slate-300`,children:`Everything below is the last thing the server said. It is still readable, and it is no longer being checked \u2014 so the board\'s own controls are switched off until it answers again.`}),n&&(0,x.jsxs)(`p`,{className:`mt-3 text-sm text-slate-700 dark:text-slate-300`,children:[`Start it again with`,` `,(0,x.jsx)(`code`,{"data-restart-command":!0,className:`select-all rounded bg-slate-100 px-1.5 py-0.5 font-mono text-xs text-slate-900 dark:bg-slate-800 dark:text-slate-100`,children:n})]}),r>0&&(0,x.jsxs)(`p`,{className:`mt-2 text-xs text-slate-500 dark:text-slate-400`,children:[`This page is served from`,` `,(0,x.jsxs)(`span`,{"data-served-port":!0,className:`font-mono`,children:[`localhost:`,r]}),`. A board that comes back on a different port will not reach this tab \u2014 reload from its own address.`]})]})})]})}typeof window<`u`&&window.document&&window.document.createElement;function Ad(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)}}function jd(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Md(...e){return t=>{let n=!1,r=e.map(e=>{let r=jd(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():jd(e[t],null)}}}}function $(...e){return y.useCallback(Md(...e),e)}function Nd(e,t=[]){let n=[];function r(t,r){let i=y.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=y.useMemo(()=>o,Object.values(o));return(0,x.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=y.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\\`${n}\\` must be used within \\`${t}\\``)}return[o,s]}let i=()=>{let t=n.map(e=>y.createContext(e));return function(n){let r=n?.[e]||t;return y.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Pd(i,...t)]}function Pd(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var Fd=c(m(),1);function Id(e){let t=y.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Ud(r)&&typeof qd==`function`&&(r=qd(r._payload)),y.Children.forEach(r,e=>{if(Vd(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Ud(n)&&typeof qd==`function`&&(n=qd(n._payload)),a=Rd(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=y.cloneElement(a,void 0,s):!o&&y.Children.count(r)===1&&y.isValidElement(r)&&(a=r);let c=a?Bd(a):void 0,l=$(n,c);if(!a){if(r||r===0)throw Error(o?Kd(e):Gd(e));return r}let u=zd(i,a.props??{});return a.type!==y.Fragment&&(u.ref=n?l:c),y.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}var Ld=Symbol.for(`radix.slottable`),Rd=(e,t)=>{if(`child`in e.props){let t=e.props.child;return y.isValidElement(t)?y.cloneElement(t,void 0,e.props.children(t.props.children)):null}return y.isValidElement(t)?t:null};function zd(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Bd(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Vd(e){return y.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Ld}var Hd=Symbol.for(`react.lazy`);function Ud(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Hd&&`_payload`in e&&Wd(e._payload)}function Wd(e){return typeof e==`object`&&!!e&&`then`in e}var Gd=e=>`${e} failed to slot onto its children. Expected a single React element child or \\`Slottable\\`.`,Kd=e=>`${e} failed to slot onto its \\`Slottable\\`. Expected \\`Slottable\\` to receive a single React element child.`,qd=y.use,Jd=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Id(`Primitive.${t}`),r=y.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,x.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Yd(e,t){e&&Fd.flushSync(()=>e.dispatchEvent(t))}function Xd(e){let t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>((...e)=>t.current?.(...e)),[])}var Zd=`DismissableLayer`,Qd=`dismissableLayer.update`,$d=`dismissableLayer.pointerDownOutside`,ef=`dismissableLayer.focusOutside`,tf,nf=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),rf=y.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=y.useContext(nf),[d,f]=y.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=y.useState({}),h=$(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,b=d?g.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,C=b>=v,w=y.useRef(!1),T=cf(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:w,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:y.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return C&&!t},[u.branches,C])}),E=lf(e=>{if(r&&w.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),ee=d?b===g.length-1:!1,D=Xd(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return y.useEffect(()=>{if(ee)return p.addEventListener(`keydown`,D,{capture:!0}),()=>p.removeEventListener(`keydown`,D,{capture:!0})},[p,ee,D]),y.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(tf=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),uf(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=tf))}},[d,p,n,u]),y.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),uf())},[d,u]),y.useEffect(()=>{let e=()=>m({});return document.addEventListener(Qd,e),()=>document.removeEventListener(Qd,e)},[]),(0,x.jsx)(Jd.div,{...l,ref:h,style:{pointerEvents:S?C?`auto`:`none`:void 0,...e.style},onFocusCapture:Ad(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Ad(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Ad(e.onPointerDownCapture,T.onPointerDownCapture)})});rf.displayName=Zd;var af=`DismissableLayerBranch`,of=y.forwardRef((e,t)=>{let n=y.useContext(nf),r=y.useRef(null),i=$(t,r);return y.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,x.jsx)(Jd.div,{...e,ref:i})});of.displayName=af;var sf=()=>!0;function cf(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=sf}=t,s=Xd(e),c=y.useRef(!1),l=y.useRef(!1),u=y.useRef(new Map),d=y.useRef(()=>{});return y.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}function t(){return Array.from(u.current.values()).some(Boolean)}function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}function p(e){l.current&&u.current.set(e.type,!1)}let m=a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||df($d,s,p,{discrete:!0})};if(!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:()=>c.current=!0}}function lf(e,t=globalThis?.document){let n=Xd(e),r=y.useRef(!1);return y.useEffect(()=>{let e=e=>{e.target&&!r.current&&df(ef,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function uf(){let e=new CustomEvent(Qd);document.dispatchEvent(e)}function df(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Yd(i,a):i.dispatchEvent(a)}var ff=0,pf=null;function mf(){y.useEffect(()=>{pf||={start:hf(),end:hf()};let{start:e,end:t}=pf;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),ff++,()=>{ff===1&&(pf?.start.remove(),pf?.end.remove(),pf=null),ff=Math.max(0,ff-1)}},[])}function hf(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var gf=`focusScope.autoFocusOnMount`,_f=`focusScope.autoFocusOnUnmount`,vf={bubbles:!1,cancelable:!0},yf=`FocusScope`,bf=y.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=y.useState(null),l=Xd(i),u=Xd(a),d=y.useRef(null),f=$(t,c),p=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Df(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Df(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Df(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),y.useEffect(()=>{if(s){Of.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(gf,vf);s.addEventListener(gf,l),s.dispatchEvent(t),t.defaultPrevented||(xf(jf(Cf(s)),{select:!0}),document.activeElement===e&&Df(s))}return()=>{s.removeEventListener(gf,l),setTimeout(()=>{let t=new CustomEvent(_f,vf);s.addEventListener(_f,u),s.dispatchEvent(t),t.defaultPrevented||Df(e??document.body,{select:!0}),s.removeEventListener(_f,u),Of.remove(p)},0)}}},[s,l,u,p]);let m=y.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Sf(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Df(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Df(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,x.jsx)(Jd.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});bf.displayName=yf;function xf(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Df(r,{select:t}),document.activeElement!==n)return}function Sf(e){let t=Cf(e);return[wf(t,e),wf(t.reverse(),e)]}function Cf(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function wf(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Tf(r,{upTo:t})))return r}function Tf(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function Ef(e){return e instanceof HTMLInputElement&&`select`in e}function Df(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ef(e)&&t&&e.select()}}var Of=kf();function kf(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Af(e,t),e.unshift(t)},remove(t){e=Af(e,t),e[0]?.resume()}}}function Af(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function jf(e){return e.filter(e=>e.tagName!==`A`)}var Mf=globalThis?.document?y.useLayoutEffect:()=>{},Nf=y.useId||(()=>void 0),Pf=0;function Ff(e){let[t,n]=y.useState(Nf());return Mf(()=>{e||n(e=>e??String(Pf++))},[e]),e||(t?`radix-${t}`:``)}var If=[`top`,`right`,`bottom`,`left`],Lf=Math.min,Rf=Math.max,zf=Math.round,Bf=Math.floor,Vf=e=>({x:e,y:e}),Hf={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Uf(e,t,n){return Rf(e,Lf(t,n))}function Wf(e,t){return typeof e==`function`?e(t):e}function Gf(e){return e.split(`-`)[0]}function Kf(e){return e.split(`-`)[1]}function qf(e){return e===`x`?`y`:`x`}function Jf(e){return e===`y`?`height`:`width`}function Yf(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Xf(e){return qf(Yf(e))}function Zf(e,t,n){n===void 0&&(n=!1);let r=Kf(e),i=Xf(e),a=Jf(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=op(o)),[o,op(o)]}function Qf(e){let t=op(e);return[$f(e),t,$f(t)]}function $f(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ep=[`left`,`right`],tp=[`right`,`left`],np=[`top`,`bottom`],rp=[`bottom`,`top`];function ip(e,t,n){switch(e){case`top`:case`bottom`:return n?t?tp:ep:t?ep:tp;case`left`:case`right`:return t?np:rp;default:return[]}}function ap(e,t,n,r){let i=Kf(e),a=ip(Gf(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map($f)))),a}function op(e){let t=Gf(e);return Hf[t]+e.slice(t.length)}function sp(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function cp(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:sp(e)}function lp(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function up(e,t,n){let{reference:r,floating:i}=e,a=Yf(t),o=Xf(t),s=Jf(o),c=Gf(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Kf(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function dp(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Wf(t,e),p=cp(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=lp(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=lp(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var fp=50,pp=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:dp},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=up(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<fp&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=up(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},mp=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Wf(e,t)||{};if(l==null)return{};let d=cp(u),f={x:n,y:r},p=Xf(i),m=Jf(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Lf(d[_],T),ee=Lf(d[v],T),D=C-h[m]-ee,te=C/2-h[m]/2+w,O=Uf(E,te,D),k=!c.arrow&&Kf(i)!=null&&te!==O&&a.reference[m]/2-(te<E?E:ee)-h[m]/2<0,A=k?te<E?te-E:te-D:0;return{[p]:f[p]+A,data:{[p]:O,centerOffset:te-O-A,...k&&{alignmentOffset:A}},reset:k}}}),hp=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Wf(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Gf(r),_=Yf(o),v=Gf(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[op(o)]:Qf(o)),x=p!==`none`;!d&&x&&b.push(...ap(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Zf(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Yf(t))||T.every(e=>Yf(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Yf(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function gp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _p(e){return If.some(t=>e[t]>=0)}var vp=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Wf(e,t);switch(i){case`referenceHidden`:{let e=gp(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:_p(e)}}}case`escaped`:{let e=gp(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:_p(e)}}}default:return{}}}}},yp=new Set([`left`,`top`]);async function bp(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Gf(n),s=Kf(n),c=Yf(n)===`y`,l=yp.has(o)?-1:1,u=a&&c?-1:1,d=Wf(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var xp=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await bp(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Sp=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Wf(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Yf(i),p=qf(f),m=u[p],h=u[f],g=(e,t)=>Uf(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Cp=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Wf(e,t),u={x:n,y:r},d=Yf(i),f=qf(d),p=u[f],m=u[d],h=Wf(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=yp.has(Gf(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},wp=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Wf(e,t),c=await i.detectOverflow(t,s),l=Gf(n),u=Kf(n),d=Yf(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Lf(p-c[m],g),y=Lf(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Rf(c.left,c.right):S=p-2*Rf(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Tp(){return typeof window<`u`}function Ep(e){return kp(e)?(e.nodeName||``).toLowerCase():`#document`}function Dp(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Op(e){return((kp(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function kp(e){return Tp()?e instanceof Node||e instanceof Dp(e).Node:!1}function Ap(e){return Tp()?e instanceof Element||e instanceof Dp(e).Element:!1}function jp(e){return Tp()?e instanceof HTMLElement||e instanceof Dp(e).HTMLElement:!1}function Mp(e){return!Tp()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Dp(e).ShadowRoot}function Np(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Wp(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Pp(e){return/^(table|td|th)$/.test(Ep(e))}function Fp(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ip=/transform|translate|scale|rotate|perspective|filter/,Lp=/paint|layout|strict|content/,Rp=e=>!!e&&e!==`none`,zp;function Bp(e){let t=Ap(e)?Wp(e):e;return Rp(t.transform)||Rp(t.translate)||Rp(t.scale)||Rp(t.rotate)||Rp(t.perspective)||!Hp()&&(Rp(t.backdropFilter)||Rp(t.filter))||Ip.test(t.willChange||``)||Lp.test(t.contain||``)}function Vp(e){let t=Kp(e);for(;jp(t)&&!Up(t);){if(Bp(t))return t;if(Fp(t))return null;t=Kp(t)}return null}function Hp(){return zp??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),zp}function Up(e){return/^(html|body|#document)$/.test(Ep(e))}function Wp(e){return Dp(e).getComputedStyle(e)}function Gp(e){return Ap(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kp(e){if(Ep(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Mp(e)&&e.host||Op(e);return Mp(t)?t.host:t}function qp(e){let t=Kp(e);return Up(t)?(e.ownerDocument||e).body:jp(t)&&Np(t)?t:qp(t)}function Jp(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=qp(e),i=r===e.ownerDocument?.body,a=Dp(r);if(i){let e=Yp(a);return t.concat(a,a.visualViewport||[],Np(r)?r:[],e&&n?Jp(e):[])}else return t.concat(r,Jp(r,[],n))}function Yp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xp(e){let t=Wp(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=jp(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=zf(n)!==a||zf(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Zp(e){return Ap(e)?e:e.contextElement}function Qp(e){let t=Zp(e);if(!jp(t))return Vf(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Xp(t),o=(a?zf(n.width):n.width)/r,s=(a?zf(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var $p=Vf(0);function em(e){let t=Dp(e);return!Hp()||!t.visualViewport?$p:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tm(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Dp(e)}function nm(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Zp(e),o=Vf(1);t&&(r?Ap(r)&&(o=Qp(r)):o=Qp(e));let s=tm(a,n,r)?em(a):Vf(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Dp(a),t=Ap(r)?Dp(r):r,n=e,i=Yp(n);for(;i&&t!==n;){let e=Qp(i),t=i.getBoundingClientRect(),r=Wp(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Dp(i),i=Yp(n)}}return lp({width:u,height:d,x:c,y:l})}function rm(e,t){let n=Gp(e).scrollLeft;return t?t.left+n:nm(Op(e)).left+n}function im(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-rm(e,n),y:n.top+t.scrollTop}}function am(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Op(r),s=t?Fp(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Vf(1),u=Vf(0),d=jp(r);if((d||!a)&&((Ep(r)!==`body`||Np(o))&&(c=Gp(r)),d)){let e=nm(r);l=Qp(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?im(o,c):Vf(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function om(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function sm(e){let t=Gp(e),n=e.ownerDocument.body,r=Rf(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Rf(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+rm(e),o=-t.scrollTop;return Wp(n).direction===`rtl`&&(a+=Rf(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var cm=25;function lm(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Dp(e),a=Op(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Hp()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(rm(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=cm&&(s-=o)}return{width:s,height:c,x:l,y:u}}function um(e,t){let n=nm(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Qp(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function dm(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=lm(e,n,t);else if(t===`document`)r=sm(Op(e));else if(Ap(t))r=um(t,n);else{let n=em(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return lp(r)}function fm(e,t){let n=t.get(e);if(n)return n;let r=Jp(e,[],!1).filter(e=>Ap(e)&&Ep(e)!==`body`),i=null,a=Wp(e).position===`fixed`,o=a?Kp(e):e;for(;Ap(o)&&!Up(o);){let e=Wp(o),t=Bp(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Kp(o)}return t.set(e,r),r}function pm(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Fp(t)?[]:fm(t,this._c):[].concat(n),r],o=dm(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=dm(t,a[e],i);s=Rf(n.top,s),c=Lf(n.right,c),l=Lf(n.bottom,l),u=Rf(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function mm(e){let{width:t,height:n}=Xp(e);return{width:t,height:n}}function hm(e,t,n){let r=jp(t),i=Op(t),a=n===`fixed`,o=nm(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Vf(0);if((r||!a)&&((Ep(t)!==`body`||Np(i))&&(s=Gp(t)),r)){let e=nm(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=rm(i));let l=i&&!r&&!a?im(i,s):Vf(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function gm(e){return Wp(e).position===`static`}function _m(e,t){if(!jp(e)||Wp(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Op(e)===n&&(n=n.ownerDocument.body),n}function vm(e,t){let n=Dp(e);if(Fp(e))return n;if(!jp(e)){let t=Kp(e);for(;t&&!Up(t);){if(Ap(t)&&!gm(t))return t;t=Kp(t)}return n}let r=_m(e,t);for(;r&&Pp(r)&&gm(r);)r=_m(r,t);return r&&Up(r)&&gm(r)&&!Bp(r)?n:r||Vp(e)||n}var ym=async function(e){let t=this.getOffsetParent||vm,n=this.getDimensions,r=await n(e.floating);return{reference:hm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bm(e){return Wp(e).direction===`rtl`}var xm={convertOffsetParentRelativeRectToViewportRelativeRect:am,getDocumentElement:Op,getClippingRect:pm,getOffsetParent:vm,getElementRects:ym,getClientRects:om,getDimensions:mm,getScale:Qp,isElement:Ap,isRTL:bm};function Sm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Cm(e,t,n){let r=null,i,a=Op(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Bf(d),h=Bf(a.clientWidth-(u+f)),g=Bf(a.clientHeight-(d+p)),_=Bf(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Rf(0,Lf(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Sm(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Dp(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function wm(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Zp(e),u=i||a?[...l?Jp(l):[],...t?Jp(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Cm(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?nm(e):null;c&&g();function g(){let t=nm(e);h&&!Sm(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Tm=xp,Em=Sp,Dm=hp,Om=wp,km=vp,Am=mp,jm=Cp,Mm=(e,t,n)=>{let r=new Map,i=n??{},a={...xm,...i.platform,_c:r};return pp(e,t,{...i,platform:a})},Nm=typeof document<`u`?y.useLayoutEffect:function(){};function Pm(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Pm(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Pm(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Fm(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Im(e,t){let n=Fm(e);return Math.round(t*n)/n}function Lm(e){let t=y.useRef(e);return Nm(()=>{t.current=e}),t}function Rm(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=y.useState(r);Pm(f,r)||p(r);let[m,h]=y.useState(null),[g,_]=y.useState(null),v=y.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=y.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=a||m,S=o||g,C=y.useRef(null),w=y.useRef(null),T=y.useRef(u),E=c!=null,ee=Lm(c),D=Lm(i),te=Lm(l),O=y.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Mm(C.current,w.current,e).then(e=>{let t={...e,isPositioned:te.current!==!1};k.current&&!Pm(T.current,t)&&(T.current=t,Fd.flushSync(()=>{d(t)}))})},[f,t,n,D,te]);Nm(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let k=y.useRef(!1);Nm(()=>(k.current=!0,()=>{k.current=!1}),[]),Nm(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(ee.current)return ee.current(x,S,O);O()}},[x,S,O,ee,E]);let A=y.useMemo(()=>({reference:C,floating:w,setReference:v,setFloating:b}),[v,b]),ne=y.useMemo(()=>({reference:x,floating:S}),[x,S]),re=y.useMemo(()=>{let e={position:n,left:0,top:0};if(!ne.floating)return e;let t=Im(ne.floating,u.x),r=Im(ne.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Fm(ne.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,ne.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:O,refs:A,elements:ne,floatingStyles:re}),[u,O,A,ne,re])}var zm=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Am({element:r.current,padding:i}).fn(n):r?Am({element:r,padding:i}).fn(n):{}}}},Bm=(e,t)=>{let n=Tm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vm=(e,t)=>{let n=Em(e);return{name:n.name,fn:n.fn,options:[e,t]}},Hm=(e,t)=>({fn:jm(e).fn,options:[e,t]}),Um=(e,t)=>{let n=Dm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Wm=(e,t)=>{let n=Om(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gm=(e,t)=>{let n=km(e);return{name:n.name,fn:n.fn,options:[e,t]}},Km=(e,t)=>{let n=zm(e);return{name:n.name,fn:n.fn,options:[e,t]}},qm=`Arrow`,Jm=y.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,x.jsx)(Jd.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,x.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Jm.displayName=qm;var Ym=Jm;function Xm(e){let[t,n]=y.useState(void 0);return Mf(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var Zm=`Popper`,[Qm,$m]=Nd(Zm),[eh,th]=Qm(Zm),nh=e=>{let{__scopePopper:t,children:n}=e,[r,i]=y.useState(null),[a,o]=y.useState(void 0);return(0,x.jsx)(eh,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})};nh.displayName=Zm;var rh=`PopperAnchor`,ih=y.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=th(rh,n),o=y.useRef(null),s=a.onAnchorChange,c=$(t,y.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=y.useRef(null);y.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&mh(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,x.jsx)(Jd.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})});ih.displayName=rh;var ah=`PopperContent`,[oh,sh]=Qm(ah),ch=y.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=th(ah,n),[_,v]=y.useState(null),b=$(t,v),[S,C]=y.useState(null),w=Xm(S),T=w?.width??0,E=w?.height??0,ee=r+(a===`center`?``:`-`+a),D=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},te=Array.isArray(l)?l:[l],O=te.length>0,k={padding:D,boundary:te.filter(fh),altBoundary:O},{refs:A,floatingStyles:ne,placement:re,isPositioned:ie,middlewareData:j}=Rm({strategy:`fixed`,placement:ee,whileElementsMounted:(...e)=>wm(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[Bm({mainAxis:i+E,alignmentAxis:o}),c&&Vm({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?Hm():void 0,...k}),c&&Um({...k}),Wm({...k,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),S&&Km({element:S,padding:s}),ph({arrowWidth:T,arrowHeight:E}),f&&Gm({strategy:`referenceHidden`,...k,boundary:O?k.boundary:void 0})]}),M=g.setPlacementState;Mf(()=>(M(re),()=>{M(void 0)}),[re,M]);let[ae,oe]=mh(re),se=Xd(m);Mf(()=>{ie&&se?.()},[ie,se]);let ce=j.arrow?.x,N=j.arrow?.y,P=j.arrow?.centerOffset!==0,[le,ue]=y.useState();return Mf(()=>{_&&ue(window.getComputedStyle(_).zIndex)},[_]),(0,x.jsx)(`div`,{ref:A.setFloating,"data-radix-popper-content-wrapper":``,style:{...ne,transform:ie?ne.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:le,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(` `),...j.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,x.jsx)(oh,{scope:n,placedSide:ae,placedAlign:oe,onArrowChange:C,arrowX:ce,arrowY:N,shouldHideArrow:P,children:(0,x.jsx)(Jd.div,{"data-side":ae,"data-align":oe,...h,ref:b,style:{...h.style,animation:ie?void 0:`none`}})})})});ch.displayName=ah;var lh=`PopperArrow`,uh={top:`bottom`,right:`left`,bottom:`top`,left:`right`},dh=y.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=sh(lh,n),a=uh[i.placedSide];return(0,x.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,x.jsx)(Ym,{...r,ref:t,style:{...r.style,display:`block`}})})});dh.displayName=lh;function fh(e){return e!==null}var ph=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=mh(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function mh(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var hh=nh,gh=ih,_h=ch,vh=dh,yh=`Portal`,bh=y.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=y.useState(!1);Mf(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Fd.createPortal((0,x.jsx)(Jd.div,{...r,ref:t}),o):null});bh.displayName=yh;function xh(e,t){return y.useReducer((e,n)=>t[e][n]??e,e)}var Sh=e=>{let{present:t,children:n}=e,r=Ch(t),i=typeof n==`function`?n({present:r.isPresent}):y.Children.only(n),a=Th(r.ref,Dh(i));return typeof n==`function`||r.isPresent?y.cloneElement(i,{ref:a}):null};Sh.displayName=`Presence`;function Ch(e){let[t,n]=y.useState(),r=y.useRef(null),i=y.useRef(e),a=y.useRef(`none`),o=y.useRef(void 0),[s,c]=xh(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return y.useEffect(()=>{s===`mounted`?(a.current=o.current??Eh(r.current),o.current=void 0):a.current=`none`},[s]),Mf(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Eh(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),Mf(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=Eh(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},s=e=>{e.target===t&&(a.current=Eh(r.current))};return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:y.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Eh(t)}else r.current=null;n(e)},[])}}function wh(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Th(...e){let t=y.useRef(e);return t.current=e,y.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=wh(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():wh(n[e],null)}}},[])}function Eh(e){return e?.animationName||`none`}function Dh(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Oh=y.useInsertionEffect||Mf;function kh({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=Ah({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=y.useRef(e!==void 0);y.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,y.useCallback(t=>{if(s){let n=jh(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function Ah({defaultProp:e,onChange:t}){let[n,r]=y.useState(e),i=y.useRef(n),a=y.useRef(t);return Oh(()=>{a.current=t},[t]),y.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function jh(e){return typeof e==`function`}var Mh=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Nh=new WeakMap,Ph=new WeakMap,Fh={},Ih=0,Lh=function(e){return e&&(e.host||Lh(e.parentNode))},Rh=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Lh(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},zh=function(e,t,n,r){var i=Rh(t,Array.isArray(e)?e:[e]);Fh[n]||(Fh[n]=new WeakMap);var a=Fh[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Nh.get(e)||0)+1,l=(a.get(e)||0)+1;Nh.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ph.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Ih++,function(){o.forEach(function(e){var t=Nh.get(e)-1,i=a.get(e)-1;Nh.set(e,t),a.set(e,i),t||(Ph.has(e)||e.removeAttribute(r),Ph.delete(e)),i||e.removeAttribute(n)}),Ih--,Ih||(Nh=new WeakMap,Nh=new WeakMap,Ph=new WeakMap,Fh={})}},Bh=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Mh(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),zh(r,i,n,`aria-hidden`)):function(){return null}},Vh=function(){return Vh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Vh.apply(this,arguments)};function Hh(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Uh(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Wh=`right-scroll-bar-position`,Gh=`width-before-scroll-bar`,Kh=`with-scroll-bars-hidden`,qh=`--removed-body-scroll-bar-size`;function Jh(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Yh(e,t){var n=(0,y.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Xh=typeof window<`u`?y.useLayoutEffect:y.useEffect,Zh=new WeakMap;function Qh(e,t){var n=Yh(t||null,function(t){return e.forEach(function(e){return Jh(e,t)})});return Xh(function(){var t=Zh.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Jh(e,null)}),i.forEach(function(e){r.has(e)||Jh(e,a)})}Zh.set(n,e)},[e]),n}function $h(e){return e}function eg(e,t){t===void 0&&(t=$h);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function tg(e){e===void 0&&(e={});var t=eg(null);return t.options=Vh({async:!0,ssr:!1},e),t}var ng=function(e){var t=e.sideCar,n=Hh(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return y.createElement(r,Vh({},n))};ng.isSideCarExport=!0;function rg(e,t){return e.useMedium(t),ng}var ig=tg(),ag=function(){},og=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:ag,onWheelCapture:ag,onTouchMoveCapture:ag}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,b=e.gapMode,x=Hh(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=Qh([n,t]),w=Vh(Vh({},x),i);return y.createElement(y.Fragment,null,u&&y.createElement(S,{sideCar:ig,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),o?y.cloneElement(y.Children.only(s),Vh(Vh({},w),{ref:C})):y.createElement(v,Vh({},w,{className:c,ref:C}),s))});og.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},og.classNames={fullWidth:Gh,zeroRight:Wh};var sg,cg=function(){if(sg)return sg;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function lg(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=cg();return t&&e.setAttribute(`nonce`,t),e}function ug(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function dg(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var fg=function(){var e=0,t=null;return{add:function(n){e==0&&(t=lg())&&(ug(t,n),dg(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},pg=function(){var e=fg();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},mg=function(){var e=pg();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},hg={left:0,top:0,right:0,gap:0},gg=function(e){return parseInt(e||``,10)||0},_g=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[gg(n),gg(r),gg(i)]},vg=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return hg;var t=_g(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},yg=mg(),bg=`data-scroll-locked`,xg=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`\n .${Kh} {\n overflow: hidden ${r};\n padding-right: ${s}px ${r};\n }\n body[${bg}] {\n overflow: hidden ${r};\n overscroll-behavior: contain;\n ${[t&&`position: relative ${r};`,n===`margin`&&`\n padding-left: ${i}px;\n padding-top: ${a}px;\n padding-right: ${o}px;\n margin-left:0;\n margin-top:0;\n margin-right: ${s}px ${r};\n `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}\n }\n \n .${Wh} {\n right: ${s}px ${r};\n }\n \n .${Gh} {\n margin-right: ${s}px ${r};\n }\n \n .${Wh} .${Wh} {\n right: 0 ${r};\n }\n \n .${Gh} .${Gh} {\n margin-right: 0 ${r};\n }\n \n body[${bg}] {\n ${qh}: ${s}px;\n }\n`},Sg=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Cg=function(){y.useEffect(function(){return document.body.setAttribute(bg,(Sg()+1).toString()),function(){var e=Sg()-1;e<=0?document.body.removeAttribute(bg):document.body.setAttribute(bg,e.toString())}},[])},wg=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Cg();var a=y.useMemo(function(){return vg(i)},[i]);return y.createElement(yg,{styles:xg(a,!t,i,n?``:`!important`)})},Tg=!1;if(typeof window<`u`)try{var Eg=Object.defineProperty({},"passive",{get:function(){return Tg=!0,!0}});window.addEventListener(`test`,Eg,Eg),window.removeEventListener(`test`,Eg,Eg)}catch{Tg=!1}var Dg=Tg?{passive:!1}:!1,Og=function(e){return e.tagName===`TEXTAREA`},kg=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Og(e)&&n[t]===`visible`)},Ag=function(e){return kg(e,`overflowY`)},jg=function(e){return kg(e,`overflowX`)},Mg=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Fg(e,r)){var i=Ig(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ng=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Pg=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Fg=function(e,t){return e===`v`?Ag(t):jg(t)},Ig=function(e,t){return e===`v`?Ng(t):Pg(t)},Lg=function(e,t){return e===`h`&&t===`rtl`?-1:1},Rg=function(e,t,n,r,i){var a=Lg(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Ig(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Fg(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},zg=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bg=function(e){return[e.deltaX,e.deltaY]},Vg=function(e){return e&&`current`in e?e.current:e},Hg=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ug=function(e){return`\n .block-interactivity-${e} {pointer-events: none;}\n .allow-interactivity-${e} {pointer-events: all;}\n`},Wg=0,Gg=[];function Kg(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),i=y.useState(Wg++)[0],a=y.useState(mg)[0],o=y.useRef(e);y.useEffect(function(){o.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Uh([e.lockRef.current],(e.shards||[]).map(Vg),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=y.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=zg(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Mg(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Mg(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Rg(h,t,e,h===`h`?s:c,!0)},[]),c=y.useCallback(function(e){var n=e;if(!(!Gg.length||Gg[Gg.length-1]!==a)){var r=`deltaY`in n?Bg(n):zg(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Hg(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Vg).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=y.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:qg(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=y.useCallback(function(e){n.current=zg(e),r.current=void 0},[]),d=y.useCallback(function(t){l(t.type,Bg(t),t.target,s(t,e.lockRef.current))},[]),f=y.useCallback(function(t){l(t.type,zg(t),t.target,s(t,e.lockRef.current))},[]);y.useEffect(function(){return Gg.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Dg),document.addEventListener(`touchmove`,c,Dg),document.addEventListener(`touchstart`,u,Dg),function(){Gg=Gg.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Dg),document.removeEventListener(`touchmove`,c,Dg),document.removeEventListener(`touchstart`,u,Dg)}},[]);var p=e.removeScrollBar,m=e.inert;return y.createElement(y.Fragment,null,m?y.createElement(a,{styles:Ug(i)}):null,p?y.createElement(wg,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function qg(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Jg=rg(ig,Kg),Yg=y.forwardRef(function(e,t){return y.createElement(og,Vh({},e,{ref:t,sideCar:Jg}))});Yg.classNames=og.classNames;var Xg=`Popover`,[Zg,Qg]=Nd(Xg,[$m]),$g=$m(),[e_,t_]=Zg(Xg),n_=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=$g(t),c=y.useRef(null),[l,u]=y.useState(!1),[d,f]=kh({prop:r,defaultProp:i??!1,onChange:a,caller:Xg});return(0,x.jsx)(hh,{...s,children:(0,x.jsx)(e_,{scope:t,contentId:Ff(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:y.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:y.useCallback(()=>u(!0),[]),onCustomAnchorRemove:y.useCallback(()=>u(!1),[]),modal:o,children:n})})};n_.displayName=Xg;var r_=`PopoverAnchor`,i_=y.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=t_(r_,n),a=$g(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return y.useEffect(()=>(o(),()=>s()),[o,s]),(0,x.jsx)(gh,{...a,...r,ref:t})});i_.displayName=r_;var a_=`PopoverTrigger`,o_=y.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=t_(a_,n),a=$g(n),o=$(t,i.triggerRef),s=(0,x.jsx)(Jd.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":x_(i.open),...r,ref:o,onClick:Ad(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,x.jsx)(gh,{asChild:!0,...a,children:s})});o_.displayName=a_;var s_=`PopoverPortal`,[c_,l_]=Zg(s_,{forceMount:void 0}),u_=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=t_(s_,t);return(0,x.jsx)(c_,{scope:t,forceMount:n,children:(0,x.jsx)(Sh,{present:n||a.open,children:(0,x.jsx)(bh,{asChild:!0,container:i,children:r})})})};u_.displayName=s_;var d_=`PopoverContent`,f_=y.forwardRef((e,t)=>{let n=l_(d_,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=t_(d_,e.__scopePopover);return(0,x.jsx)(Sh,{present:r||a.open,children:a.modal?(0,x.jsx)(m_,{...i,ref:t}):(0,x.jsx)(h_,{...i,ref:t})})});f_.displayName=d_;var p_=Id(`PopoverContent.RemoveScroll`),m_=y.forwardRef((e,t)=>{let n=t_(d_,e.__scopePopover),r=y.useRef(null),i=$(t,r),a=y.useRef(!1);return y.useEffect(()=>{let e=r.current;if(e)return Bh(e)},[]),(0,x.jsx)(Yg,{as:p_,allowPinchZoom:!0,children:(0,x.jsx)(g_,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ad(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Ad(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:Ad(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),h_=y.forwardRef((e,t)=>{let n=t_(d_,e.__scopePopover),r=y.useRef(!1),i=y.useRef(!1);return(0,x.jsx)(g_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),g_=y.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=t_(d_,n),p=$g(n);return mf(),(0,x.jsx)(bf,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,x.jsx)(rf,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,x.jsx)(_h,{"data-state":x_(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),__=`PopoverClose`,v_=y.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=t_(__,n);return(0,x.jsx)(Jd.button,{type:`button`,...r,ref:t,onClick:Ad(e.onClick,()=>i.onOpenChange(!1))})});v_.displayName=__;var y_=`PopoverArrow`,b_=y.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=$g(n);return(0,x.jsx)(vh,{...i,...r,ref:t})});b_.displayName=y_;function x_(e){return e?`open`:`closed`}var S_=n_,C_=o_,w_=u_,T_=f_;function E_(e){let t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var D_=`Checkbox`,[O_,k_]=Nd(D_),[A_,j_]=O_(D_);function M_(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,p]=kh({prop:n,defaultProp:i??!1,onChange:c,caller:D_}),[m,h]=y.useState(null),[g,_]=y.useState(null),v=y.useRef(!1),b=!m||!!o||!!m.closest(`form`),S={checked:f,disabled:a,setChecked:p,control:m,setControl:h,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:v,required:l,defaultChecked:!V_(i)&&i,isFormControl:b,bubbleInput:g,setBubbleInput:_};return(0,x.jsx)(A_,{scope:t,...S,children:B_(d)?d(S):r})}var N_=`CheckboxTrigger`,P_=y.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{let{control:a,value:o,disabled:s,checked:c,required:l,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:m}=j_(N_,e),h=$(i,u),g=y.useRef(c);return y.useEffect(()=>{let e=a?.form;if(e){let t=()=>d(g.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,d]),(0,x.jsx)(Jd.button,{type:`button`,role:`checkbox`,"aria-checked":V_(c)?`mixed`:c,"aria-required":l,"data-state":H_(c),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:h,onKeyDown:Ad(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:Ad(n,e=>{d(e=>V_(e)?!0:!e),m&&p&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})});P_.displayName=N_;var F_=y.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,x.jsx)(M_,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(P_,{...d,ref:t,__scopeCheckbox:n}),e&&(0,x.jsx)(z_,{__scopeCheckbox:n})]})})});F_.displayName=D_;var I_=`CheckboxIndicator`,L_=y.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=j_(I_,n);return(0,x.jsx)(Sh,{present:r||V_(a.checked)||a.checked===!0,children:(0,x.jsx)(Jd.span,{"data-state":H_(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})});L_.displayName=I_;var R_=`CheckboxBubbleInput`,z_=y.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:r,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:c,name:l,value:u,form:d,bubbleInput:f,setBubbleInput:p}=j_(R_,e),m=$(n,p),h=E_(a),g=Xm(r);y.useEffect(()=>{let e=f;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!i.current;if(h!==a&&n){let t=new Event(`click`,{bubbles:r});e.indeterminate=V_(a),n.call(e,!V_(a)&&a),e.dispatchEvent(t)}},[f,h,a,i]);let _=y.useRef(!V_(a)&&a);return(0,x.jsx)(Jd.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:o??_.current,required:s,disabled:c,name:l,value:u,form:d,...t,tabIndex:-1,ref:m,style:{...t.style,...g,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});z_.displayName=R_;function B_(e){return typeof e==`function`}function V_(e){return e===`indeterminate`}function H_(e){return V_(e)?`indeterminate`:e?`checked`:`unchecked`}function U_({label:e,options:t,selected:n,onChange:r}){let i=e=>{r(n.includes(e)?n.filter(t=>t!==e):[...n,e])},a=n.length===0?e:`${e.replace(/^All /,``)}: ${n.length}`,o=Lt(`inline-flex items-center gap-1.5 rounded-md border px-3 py-1.5 text-sm`,`border-slate-300 bg-white text-slate-700 hover:bg-slate-50`,`dark:border-slate-700 dark:bg-slate-900 dark:text-slate-200 dark:hover:bg-slate-800`,`focus:outline-none focus-visible:ring-2 focus-visible:ring-green-500`,n.length>0&&`border-green-500 dark:border-green-500`);return(0,x.jsxs)(S_,{children:[(0,x.jsxs)(C_,{className:o,"aria-label":e,children:[(0,x.jsx)(`span`,{children:a}),(0,x.jsx)(`span`,{"aria-hidden":!0,className:`text-slate-400`,children:`\u25BE`})]}),(0,x.jsx)(w_,{children:(0,x.jsxs)(T_,{align:`end`,sideOffset:4,className:Lt(`z-50 min-w-52 rounded-md border p-1 shadow-md`,`border-slate-200 bg-white text-slate-800`,`dark:border-slate-700 dark:bg-slate-900 dark:text-slate-100`),children:[(0,x.jsx)(`ul`,{className:`max-h-72 overflow-y-auto`,children:t.map(e=>{let t=n.includes(e.value);return(0,x.jsx)(`li`,{children:(0,x.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-sm hover:bg-slate-100 dark:hover:bg-slate-800`,children:[(0,x.jsx)(F_,{checked:t,onCheckedChange:()=>i(e.value),className:Lt(`flex h-4 w-4 items-center justify-center rounded border`,`border-slate-400 dark:border-slate-500`,`data-[state=checked]:border-green-600 data-[state=checked]:bg-green-600`),children:(0,x.jsx)(L_,{className:`text-xs leading-none text-white`,children:`\u2713`})}),(0,x.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label}),e.count!==void 0&&(0,x.jsx)(`span`,{"aria-hidden":!0,className:`shrink-0 tabular-nums text-xs text-slate-400 dark:text-slate-500`,children:e.count})]})},e.value)})}),n.length>0&&(0,x.jsx)(`button`,{type:`button`,onClick:()=>r([]),className:`mt-1 w-full rounded px-2 py-1.5 text-left text-sm text-slate-500 hover:bg-slate-100 dark:text-slate-400 dark:hover:bg-slate-800`,children:`Clear`})]})})]})}var W_=3e4,G_=4e3,K_=G_;function q_(){let[e,t]=(0,y.useState)(null),[n,r]=(0,y.useState)(null),[i,a]=(0,y.useState)(()=>new URLSearchParams(location.search).get(`tab`)===`agents`?`agents`:`board`),[o,s]=(0,y.useState)(()=>new URLSearchParams(location.search).get(`lanes`)===`1`),[c,l]=(0,y.useState)(null),[u,d]=(0,y.useState)(()=>gd(`sprint`)),[f,p]=(0,y.useState)(()=>gd(`story`)),[m,h]=(0,y.useState)(null),[g,_]=(0,y.useState)(null),[v,b]=(0,y.useState)(``),[S,C]=(0,y.useState)(()=>new URLSearchParams(location.search).get(`plan`)??``),[w,T]=(0,y.useState)(``),[E,ee]=(0,y.useState)(0),[D,te]=(0,y.useState)(0),[O,k]=(0,y.useState)(0),[A,ne]=(0,y.useState)(null),[re,ie]=(0,y.useState)(!1),[j,M]=(0,y.useState)(0),[ae,oe]=(0,y.useState)(0),se=(0,y.useCallback)(async()=>{let e=!0;try{let n;try{n=await fetch(`/api/board`)}catch(t){throw e=!1,t}if(!n.ok)throw Error(`HTTP ${n.status}`);let r=await n.json();if(`error`in r)throw Error(r.error);t(r),l(null),M(0)}catch(t){l(t instanceof Error?t.message:String(t)),M(t=>e?0:t+1)}finally{te(e=>e+1)}},[]),ce=(0,y.useCallback)(e=>{k(t=>Math.max(0,t+(e?1:-1)))},[]),N=(0,y.useCallback)(async()=>{let e=!0;try{let t;try{t=await fetch(`/api/fleet`)}catch(t){throw e=!1,t}if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json();if(!(`rows`in n))throw Error(n.error);r(n),ne(Date.now()),ie(!1),oe(0)}catch{ie(!e),oe(t=>e?0:t+1)}},[]);(0,y.useEffect)(()=>{se();let e=setInterval(()=>void se(),O>0?K_:W_);return()=>clearInterval(e)},[se,O]),(0,y.useEffect)(()=>{if(i!==`agents`)return;N();let e=setInterval(()=>void N(),G_);return()=>clearInterval(e)},[i,N]);let P=i===`agents`?ae:j,le=P>=8&&(i===`agents`?n:e)!==null,ue=le?{available:!1,reason:Od}:e?.dispatch,de=e=>ue?{...e,dispatch:ue}:e,fe=le?{available:!1,reason:Od}:e?.approve,pe=le?{available:!1,reason:Od}:e?.continue,me=le?{available:!1,reason:Od}:e?.idea,he=le?{available:!1,reason:Od}:e?.commission;(0,y.useEffect)(()=>{let e=()=>{document.visibilityState===`visible`&&(se(),i===`agents`&&N())};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[se,N,i]);let[ge,_e]=(0,y.useState)(null);(0,y.useEffect)(()=>{if(i!==`agents`||!re||A===null){_e(null);return}let e=()=>Math.max(0,Math.round((Date.now()-A)/1e3));_e(e());let t=setInterval(()=>_e(e()),1e3);return()=>clearInterval(t)},[i,re,A]);let ve=e=>{s(e);let t=new URL(location.href);e?t.searchParams.set(`lanes`,`1`):t.searchParams.delete(`lanes`),history.replaceState(null,``,t)},ye=e=>{a(e);let t=new URL(location.href);e===`agents`?t.searchParams.set(`tab`,`agents`):t.searchParams.delete(`tab`),history.replaceState(null,``,t),e!==`agents`&&T(``)},be=(0,y.useCallback)(e=>{s(!0);let t=new URL(location.href);t.searchParams.set(`lanes`,`1`),history.replaceState(null,``,t),requestAnimationFrame(()=>{document.getElementById(`story-${e}`)?.scrollIntoView({block:`start`})})},[]),xe=(0,y.useCallback)(e=>{a(`agents`);let t=new URL(location.href);t.searchParams.set(`tab`,`agents`),history.replaceState(null,``,t),T(e),ee(e=>e+1)},[]),Se=(0,y.useCallback)(t=>{if(!e||!t)return null;let n=e=>e.split(/[/\\\\]/).pop()??``;return e.columns.flatMap(e=>e.cards).find(e=>n(e.path)===n(t))??null},[e]),Ce=(0,y.useCallback)(t=>{let n=Se(t);return n?(h(n),!0):e?!1:(b(t),!0)},[e,Se]);(0,y.useEffect)(()=>{if(!v||!e)return;let t=Se(v);b(``),t&&h(t)},[v,e,Se]);let we=(0,y.useCallback)(e=>{h(null),a(`board`);let t=new URL(location.href);t.searchParams.delete(`tab`),e.story&&(p([e.story]),t.searchParams.set(`story`,e.story)),t.searchParams.set(`plan`,e.slug),history.replaceState(null,``,t),C(e.slug)},[]),Te=(0,y.useCallback)(t=>t?e?.stories.find(e=>e.slug===t):void 0,[e]),Ee=(0,y.useCallback)(e=>{h(null),_(e)},[]),De=(0,y.useCallback)(e=>{_(null),h(e)},[]),Oe=(0,y.useCallback)(e=>{_(null),a(`board`);let t=new URL(location.href);t.searchParams.delete(`tab`),t.searchParams.delete(`plan`),p([e.slug]),t.searchParams.set(`story`,e.slug),history.replaceState(null,``,t),C(``),o&&be(e.slug)},[o,be]),ke=e=>{d(e),_d(`sprint`,e),C(``),_d(`plan`,[])},Ae=e=>{p(e),_d(`story`,e),C(``),_d(`plan`,[])},je=e?e.columns.flatMap(e=>e.cards):[],Me=md(e),Ne=pd([{value:dd,label:`No sprint`},...Me],je,`sprint`,dd),Pe=pd([{value:fd,label:`No story`},...(e?.stories??[]).map(e=>({value:e.slug,label:e.title}))],je,`story`,fd),Fe=hd(u,Ne),Ie=hd(f,Pe),Le=Me.length>0,Re=(e?.stories.length??0)>0,ze=je.some(e=>e.slug===S)?S:``;return(0,y.useEffect)(()=>{if(!ze||i!==`board`)return;let e=!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,t=requestAnimationFrame(()=>{document.getElementById(`plan-${ze}`)?.scrollIntoView({block:`center`,behavior:e?`smooth`:`auto`})});return()=>cancelAnimationFrame(t)},[ze,i,o,e]),(0,y.useEffect)(()=>{if(!w||i!==`agents`)return;let e=!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,t=requestAnimationFrame(()=>{document.getElementById(`agent-row-${w}`)?.scrollIntoView({block:`center`,behavior:e?`smooth`:`auto`})});return()=>cancelAnimationFrame(t)},[w,E,i,n]),(0,x.jsxs)(`div`,{className:`mx-auto min-h-screen max-w-[1600px] px-4 py-4`,children:[(0,x.jsxs)(`header`,{className:`mb-4 flex flex-wrap items-center gap-3`,children:[(0,x.jsx)(`h1`,{className:`text-lg font-bold tracking-tight`,children:`Plot`}),(0,x.jsx)(`nav`,{className:`mr-auto flex gap-1`,"aria-label":`Views`,children:[[`board`,`Board`],[`agents`,`Agents`]].map(([e,t])=>(0,x.jsx)(`button`,{type:`button`,onClick:()=>ye(e),"aria-current":i===e?`page`:void 0,className:i===e?`rounded-md bg-slate-200 px-3 py-1 text-sm font-medium text-slate-900 dark:bg-slate-800 dark:text-slate-100`:`rounded-md px-3 py-1 text-sm text-slate-500 hover:bg-slate-100 dark:text-slate-400 dark:hover:bg-slate-900`,children:t},e))}),i===`board`&&Le&&(0,x.jsx)(U_,{label:`All sprints`,options:Ne,selected:Fe,onChange:ke}),i===`board`&&Re&&(0,x.jsx)(U_,{label:`All stories`,options:Pe,selected:Ie,onChange:Ae}),i===`board`&&Re&&(0,x.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-1.5 text-xs text-slate-500 dark:text-slate-400`,children:[(0,x.jsx)(`input`,{type:`checkbox`,checked:o,onChange:e=>ve(e.target.checked),className:`h-3.5 w-3.5 accent-slate-500`}),`Story lanes`]})]}),(0,x.jsx)(`main`,{children:i===`agents`?n?(0,x.jsx)(di,{fleet:n,pollSeconds:G_/1e3,staleSeconds:ge,onOpenPlan:Ce,cardForPlanFile:Se,dispatch:ue,approve:fe,continueWith:pe,idea:me,commission:he,pulse:D,onStarting:ce,onRevealBranch:xe,highlightBranch:w}):(0,x.jsx)(`p`,{className:`text-sm text-slate-500`,children:`Loading\u2026`}):c&&!e?(0,x.jsxs)(`p`,{className:`rounded-md bg-red-50 px-4 py-3 text-sm text-red-700 dark:bg-red-950/40 dark:text-red-300`,children:[`Failed to load board: `,c]}):e?(0,x.jsxs)(x.Fragment,{children:[j>0&&(0,x.jsxs)(`p`,{role:`status`,className:`mb-4 rounded-md bg-rose-50 px-4 py-3 text-sm text-rose-800 dark:bg-rose-950/40 dark:text-rose-300`,children:[`Not reaching the board server \u2014 `,j,` `,j===1?`poll has`:`polls have`,` gone unanswered. The cards below are frozen at the last answer and are no longer being checked.`]}),c&&j===0&&(0,x.jsxs)(`p`,{className:`mb-4 rounded-md bg-amber-50 px-4 py-3 text-sm text-amber-800 dark:bg-amber-950/40 dark:text-amber-300`,children:[`Last board refresh failed: `,c,` \u2014 showing the last successful one below.`]}),o?(0,x.jsx)(Cd,{board:de(e),sprintSel:Fe,storySel:Ie,pulse:D,onStarting:ce,onOpenPlan:h,onOpenStory:Ee,highlight:ze}):(0,x.jsx)(bd,{board:de(e),sprintSel:Fe,storySel:Ie,pulse:D,onStarting:ce,onOpenPlan:h,onOpenStory:Ee,highlight:ze})]}):(0,x.jsx)(`p`,{className:`text-sm text-slate-500`,children:`Loading\u2026`})}),le&&(0,x.jsx)(kd,{failures:P,server:e?.server}),m&&(0,x.jsx)(Td,{card:m,story:Te(m.story),onClose:()=>h(null),onShowInBoard:we,onOpenStory:Ee}),g&&(0,x.jsx)(Dd,{story:g,cards:je,onClose:()=>_(null),onShowInBoard:Oe,onOpenPlan:De})]})}var J_=document.getElementById(`root`);J_&&(0,b.createRoot)(J_).render((0,x.jsx)(y.StrictMode,{children:(0,x.jsx)(q_,{})}));</script>\n <style rel="stylesheet" crossorigin>/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-orange-500:oklch(70.5% .213 47.604);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-amber-950:oklch(27.9% .077 45.635);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-teal-100:oklch(95.3% .051 180.801);--color-teal-200:oklch(91% .096 180.426);--color-teal-800:oklch(43.7% .078 188.216);--color-teal-900:oklch(38.6% .063 188.416);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-600:oklch(58.8% .158 241.966);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-violet-100:oklch(94.3% .029 294.588);--color-violet-200:oklch(89.4% .057 293.283);--color-violet-300:oklch(81.1% .111 293.571);--color-violet-500:oklch(60.6% .25 292.717);--color-violet-700:oklch(49.1% .27 292.581);--color-violet-800:oklch(43.2% .232 292.759);--color-violet-900:oklch(38% .189 293.745);--color-violet-950:oklch(28.3% .141 291.089);--color-rose-50:oklch(96.9% .015 12.422);--color-rose-300:oklch(81% .117 11.638);--color-rose-400:oklch(71.2% .194 13.428);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-700:oklch(51.4% .222 16.935);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-950:oklch(27.1% .105 12.094);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-slate-950:oklch(12.9% .042 264.695);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-normal:0em;--tracking-wide:.025em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--animate-travel-fast:travel 1.1s ease-in-out infinite;--animate-travel-slow:travel 3.4s ease-in-out infinite}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.-top-0\\.5{top:calc(var(--spacing) * -.5)}.top-1\\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-4\\.5{top:calc(var(--spacing) * 4.5)}.right-0{right:0}.left-0{left:0}.left-1{left:var(--spacing)}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.col-span-2{grid-column:span 2/span 2}.col-span-full{grid-column:1/-1}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mr-auto{margin-right:auto}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-1{margin-left:var(--spacing)}.ml-1\\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-auto{margin-left:auto}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-1{height:var(--spacing)}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-\\[70vh\\]{height:70vh}.h-\\[80vh\\]{height:80vh}.h-full{height:100%}.max-h-40{max-height:calc(var(--spacing) * 40)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[90vh\\]{max-height:90vh}.min-h-0{min-height:0}.min-h-screen{min-height:100vh}.w-0\\.5{width:calc(var(--spacing) * .5)}.w-1{width:var(--spacing)}.w-1\\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-16{width:calc(var(--spacing) * 16)}.w-24{width:calc(var(--spacing) * 24)}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\\[1600px\\]{max-width:1600px}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.min-w-0{min-width:0}.min-w-52{min-width:calc(var(--spacing) * 52)}.min-w-\\[900px\\]{min-width:900px}.min-w-max{min-width:max-content}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-none{animation:none}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.animate-travel-fast{animation:var(--animate-travel-fast)}.animate-travel-slow{animation:var(--animate-travel-slow)}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.scroll-mt-4{scroll-margin-top:calc(var(--spacing) * 4)}.scroll-mt-20{scroll-margin-top:calc(var(--spacing) * 20)}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\\[1rem_1fr_auto_2\\.5rem\\]{grid-template-columns:1rem 1fr auto 2.5rem}.grid-cols-\\[1rem_5rem_10rem_1fr_14rem_2\\.5rem_1\\.25rem\\]{grid-template-columns:1rem 5rem 10rem 1fr 14rem 2.5rem 1.25rem}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-y-0\\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.self-center{align-self:center}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-amber-200{border-color:var(--color-amber-200)}.border-current{border-color:currentColor}.border-green-500{border-color:var(--color-green-500)}.border-rose-300{border-color:var(--color-rose-300)}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-200\\/60{border-color:#e2e8f099}@supports (color:color-mix(in lab, red, red)){.border-slate-200\\/60{border-color:color-mix(in oklab, var(--color-slate-200) 60%, transparent)}}.border-slate-300{border-color:var(--color-slate-300)}.border-slate-400{border-color:var(--color-slate-400)}.border-t-transparent{border-top-color:#0000}.border-l-green-500{border-left-color:var(--color-green-500)}.border-l-orange-500{border-left-color:var(--color-orange-500)}.border-l-sky-400{border-left-color:var(--color-sky-400)}.border-l-slate-400{border-left-color:var(--color-slate-400)}.border-l-violet-500{border-left-color:var(--color-violet-500)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-300\\/25{background-color:#ffd23640}@supports (color:color-mix(in lab, red, red)){.bg-amber-300\\/25{background-color:color-mix(in oklab, var(--color-amber-300) 25%, transparent)}}.bg-amber-500{background-color:var(--color-amber-500)}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\\/50{background-color:color-mix(in oklab, var(--color-black) 50%, transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-500\\/25{background-color:#00bb7f40}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\\/25{background-color:color-mix(in oklab, var(--color-emerald-500) 25%, transparent)}}.bg-emerald-600\\/70{background-color:#009767b3}@supports (color:color-mix(in lab, red, red)){.bg-emerald-600\\/70{background-color:color-mix(in oklab, var(--color-emerald-600) 70%, transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-rose-50{background-color:var(--color-rose-50)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-100\\/70{background-color:#f1f5f9b3}@supports (color:color-mix(in lab, red, red)){.bg-slate-100\\/70{background-color:color-mix(in oklab, var(--color-slate-100) 70%, transparent)}}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-800{background-color:var(--color-slate-800)}.bg-slate-900\\/50{background-color:#0f172b80}@supports (color:color-mix(in lab, red, red)){.bg-slate-900\\/50{background-color:color-mix(in oklab, var(--color-slate-900) 50%, transparent)}}.bg-teal-100{background-color:var(--color-teal-100)}.bg-violet-100{background-color:var(--color-violet-100)}.bg-white{background-color:var(--color-white)}.p-1{padding:var(--spacing)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:var(--spacing)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-0{padding-block:0}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-24{padding-top:calc(var(--spacing) * 24)}.pr-0\\.5{padding-right:calc(var(--spacing) * .5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-\\[-0\\.1em\\]{vertical-align:-.1em}.align-\\[-1px\\]{vertical-align:-1px}.font-mono{font-family:var(--font-mono)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[13px\\]{font-size:13px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-normal{--tw-tracking:var(--tracking-normal);letter-spacing:var(--tracking-normal)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.\\[overflow-wrap\\:anywhere\\]{overflow-wrap:anywhere}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-700{color:var(--color-amber-700)}.text-amber-800{color:var(--color-amber-800)}.text-amber-900{color:var(--color-amber-900)}.text-blue-600{color:var(--color-blue-600)}.text-blue-800{color:var(--color-blue-800)}.text-emerald-700{color:var(--color-emerald-700)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-rose-600{color:var(--color-rose-600)}.text-rose-700{color:var(--color-rose-700)}.text-rose-800{color:var(--color-rose-800)}.text-sky-600{color:var(--color-sky-600)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-slate-900{color:var(--color-slate-900)}.text-teal-800{color:var(--color-teal-800)}.text-violet-700{color:var(--color-violet-700)}.text-violet-800{color:var(--color-violet-800)}.text-white{color:var(--color-white)}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.no-underline{text-decoration-line:none}.accent-slate-500{accent-color:var(--color-slate-500)}.opacity-0{opacity:0}.opacity-60{opacity:.6}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[\\.\\.\\.\\]{--tw-shadow:...;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_0_4px_1px_rgba\\(16\\,185\\,129\\,0\\.9\\)\\,0_0_10px_3px_rgba\\(16\\,185\\,129\\,0\\.5\\)\\]{--tw-shadow:0 0 4px 1px var(--tw-shadow-color,#10b981e6), 0 0 10px 3px var(--tw-shadow-color,#10b98180);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[\u2026\\]{--tw-shadow:\u2026;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-blue-500{--tw-ring-color:var(--color-blue-500)}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.select-all{-webkit-user-select:all;user-select:all}.select-text{-webkit-user-select:text;user-select:text}.ring-inset{--tw-ring-inset:inset}.last\\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}@media (hover:hover){.hover\\:border-slate-400:hover{border-color:var(--color-slate-400)}.hover\\:bg-black\\/5:hover{background-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-black\\/5:hover{background-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\\:text-slate-700:hover{color:var(--color-slate-700)}.hover\\:text-slate-800:hover{color:var(--color-slate-800)}.hover\\:text-slate-900:hover{color:var(--color-slate-900)}.hover\\:underline:hover{text-decoration-line:underline}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\\:ring-green-500:focus-visible{--tw-ring-color:var(--color-green-500)}.focus-visible\\:outline:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\\:outline-offset-1:focus-visible{outline-offset:1px}.disabled\\:opacity-40:disabled{opacity:.4}.data-\\[state\\=checked\\]\\:border-green-600[data-state=checked]{border-color:var(--color-green-600)}.data-\\[state\\=checked\\]\\:bg-green-600[data-state=checked]{background-color:var(--color-green-600)}@media (prefers-reduced-motion:reduce){.motion-reduce\\:hidden{display:none}.motion-reduce\\:animate-none{animation:none}.motion-reduce\\:shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.motion-reduce\\:shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}@media not all and (width>=40rem){.max-sm\\:hidden{display:none}.max-sm\\:flex-wrap{flex-wrap:wrap}.max-sm\\:break-all{word-break:break-all}.max-sm\\:whitespace-normal{white-space:normal}}@media (width>=40rem){.sm\\:absolute{position:absolute}.sm\\:top-1\\/2{top:50%}.sm\\:top-2{top:calc(var(--spacing) * 2)}.sm\\:left-0{left:0}.sm\\:left-1{left:var(--spacing)}.sm\\:col-start-2{grid-column-start:2}.sm\\:col-start-3{grid-column-start:3}.sm\\:col-end-\\[-1\\]{grid-column-end:-1}.sm\\:grid{display:grid}.sm\\:hidden{display:none}.sm\\:h-5{height:calc(var(--spacing) * 5)}.sm\\:w-auto{width:auto}.sm\\:-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:items-baseline{align-items:baseline}.sm\\:gap-x-3{column-gap:calc(var(--spacing) * 3)}}@media (width>=64rem){.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width>=80rem){.xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (prefers-color-scheme:dark){.dark\\:border-amber-900{border-color:var(--color-amber-900)}.dark\\:border-green-500{border-color:var(--color-green-500)}.dark\\:border-rose-800{border-color:var(--color-rose-800)}.dark\\:border-slate-500{border-color:var(--color-slate-500)}.dark\\:border-slate-700{border-color:var(--color-slate-700)}.dark\\:border-slate-800{border-color:var(--color-slate-800)}.dark\\:border-slate-900{border-color:var(--color-slate-900)}.dark\\:bg-amber-400{background-color:var(--color-amber-400)}.dark\\:bg-amber-400\\/20{background-color:#fcbb0033}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-amber-400\\/20{background-color:color-mix(in oklab, var(--color-amber-400) 20%, transparent)}}.dark\\:bg-amber-900\\/40{background-color:#7b330666}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-amber-900\\/40{background-color:color-mix(in oklab, var(--color-amber-900) 40%, transparent)}}.dark\\:bg-amber-950{background-color:var(--color-amber-950)}.dark\\:bg-amber-950\\/40{background-color:#46190166}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-amber-950\\/40{background-color:color-mix(in oklab, var(--color-amber-950) 40%, transparent)}}.dark\\:bg-blue-900\\/40{background-color:#1c398e66}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-blue-900\\/40{background-color:color-mix(in oklab, var(--color-blue-900) 40%, transparent)}}.dark\\:bg-emerald-400{background-color:var(--color-emerald-400)}.dark\\:bg-emerald-400\\/25{background-color:#00d29440}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-emerald-400\\/25{background-color:color-mix(in oklab, var(--color-emerald-400) 25%, transparent)}}.dark\\:bg-emerald-400\\/60{background-color:#00d29499}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-emerald-400\\/60{background-color:color-mix(in oklab, var(--color-emerald-400) 60%, transparent)}}.dark\\:bg-red-900\\/40{background-color:#82181a66}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-red-900\\/40{background-color:color-mix(in oklab, var(--color-red-900) 40%, transparent)}}.dark\\:bg-red-950\\/40{background-color:#46080966}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-red-950\\/40{background-color:color-mix(in oklab, var(--color-red-950) 40%, transparent)}}.dark\\:bg-rose-950\\/40{background-color:#4d021866}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-rose-950\\/40{background-color:color-mix(in oklab, var(--color-rose-950) 40%, transparent)}}.dark\\:bg-slate-200{background-color:var(--color-slate-200)}.dark\\:bg-slate-800{background-color:var(--color-slate-800)}.dark\\:bg-slate-900{background-color:var(--color-slate-900)}.dark\\:bg-slate-900\\/40{background-color:#0f172b66}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-slate-900\\/40{background-color:color-mix(in oklab, var(--color-slate-900) 40%, transparent)}}.dark\\:bg-slate-900\\/50{background-color:#0f172b80}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-slate-900\\/50{background-color:color-mix(in oklab, var(--color-slate-900) 50%, transparent)}}.dark\\:bg-slate-900\\/60{background-color:#0f172b99}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-slate-900\\/60{background-color:color-mix(in oklab, var(--color-slate-900) 60%, transparent)}}.dark\\:bg-slate-950{background-color:var(--color-slate-950)}.dark\\:bg-slate-950\\/70{background-color:#020618b3}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-slate-950\\/70{background-color:color-mix(in oklab, var(--color-slate-950) 70%, transparent)}}.dark\\:bg-teal-900\\/40{background-color:#0b4f4a66}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-teal-900\\/40{background-color:color-mix(in oklab, var(--color-teal-900) 40%, transparent)}}.dark\\:bg-violet-900\\/40{background-color:#4d179a66}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-violet-900\\/40{background-color:color-mix(in oklab, var(--color-violet-900) 40%, transparent)}}.dark\\:bg-violet-950\\/50{background-color:#2f0d6880}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-violet-950\\/50{background-color:color-mix(in oklab, var(--color-violet-950) 50%, transparent)}}.dark\\:text-amber-200{color:var(--color-amber-200)}.dark\\:text-amber-300{color:var(--color-amber-300)}.dark\\:text-amber-400{color:var(--color-amber-400)}.dark\\:text-amber-500{color:var(--color-amber-500)}.dark\\:text-blue-200{color:var(--color-blue-200)}.dark\\:text-blue-400{color:var(--color-blue-400)}.dark\\:text-emerald-400{color:var(--color-emerald-400)}.dark\\:text-emerald-500{color:var(--color-emerald-500)}.dark\\:text-red-200{color:var(--color-red-200)}.dark\\:text-red-300{color:var(--color-red-300)}.dark\\:text-red-400{color:var(--color-red-400)}.dark\\:text-rose-300{color:var(--color-rose-300)}.dark\\:text-rose-400{color:var(--color-rose-400)}.dark\\:text-sky-400{color:var(--color-sky-400)}.dark\\:text-slate-100{color:var(--color-slate-100)}.dark\\:text-slate-200{color:var(--color-slate-200)}.dark\\:text-slate-300{color:var(--color-slate-300)}.dark\\:text-slate-400{color:var(--color-slate-400)}.dark\\:text-slate-500{color:var(--color-slate-500)}.dark\\:text-slate-600{color:var(--color-slate-600)}.dark\\:text-slate-700{color:var(--color-slate-700)}.dark\\:text-slate-900{color:var(--color-slate-900)}.dark\\:text-teal-200{color:var(--color-teal-200)}.dark\\:text-violet-200{color:var(--color-violet-200)}.dark\\:text-violet-300{color:var(--color-violet-300)}.dark\\:shadow-\\[0_0_4px_1px_rgba\\(52\\,211\\,153\\,0\\.9\\)\\,0_0_12px_4px_rgba\\(52\\,211\\,153\\,0\\.55\\)\\]{--tw-shadow:0 0 4px 1px var(--tw-shadow-color,#34d399e6), 0 0 12px 4px var(--tw-shadow-color,#34d3998c);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.dark\\:ring-offset-slate-950{--tw-ring-offset-color:var(--color-slate-950)}@media (hover:hover){.dark\\:hover\\:border-slate-600:hover{border-color:var(--color-slate-600)}.dark\\:hover\\:bg-slate-800:hover{background-color:var(--color-slate-800)}.dark\\:hover\\:bg-slate-900:hover{background-color:var(--color-slate-900)}.dark\\:hover\\:bg-white\\/10:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\\:hover\\:bg-white\\/10:hover{background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.dark\\:hover\\:text-slate-100:hover{color:var(--color-slate-100)}.dark\\:hover\\:text-slate-200:hover{color:var(--color-slate-200)}}}}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}html,body{min-height:100%;margin:0}body{background:var(--color-slate-50);color:var(--color-slate-900)}@media (prefers-color-scheme:dark){body{background:var(--color-slate-950);color:var(--color-slate-100)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes travel{0%{transform:translate(0)}50%{transform:translateX(var(--tw-travel,.75rem))}to{transform:translate(0)}}\n/*$vite$:1*/</style>\n </head>\n <body>\n <div id="root"></div>\n </body>\n</html>\n';var Xx=xh.dirname(Gx(import.meta.url)),Iu=Number(process.env.PORT??7777),$e=process.env.HOST??"localhost",Lt=Iu,fe={repoRoot:process.env.PLOT_REPO_ROOT??process.cwd(),scriptsDir:process.env.PLOT_SCRIPTS_DIR??xh.resolve(Xx,".."),repairEnabled:nm()},Qx=[{prefix:"/plan/",label:"Plan",render:Am},{prefix:"/story/",label:"Story",render:Um}];function Yx(e,n){let r=new URL(e.url??"/",`http://${$e}:${Lt}`),t=[{path:"/api/approve",verb:"approving",handle:eh},{path:"/api/continue",verb:"continuing",handle:Jm},{path:"/api/dispatch",verb:"dispatching",handle:Em},{path:"/api/idea",verb:"creating an idea",handle:fh},{path:"/api/commission",verb:"commissioning design",handle:bh},{path:"/api/claim",verb:"claiming",handle:qm},{path:"/api/transition",verb:"transitioning",handle:rh}].find(a=>a.path===r.pathname);if(t&&e.method==="POST"){if(ah(n,$e))return;t.handle(e,n,{...fe,host:$e,port:Lt}).catch(a=>{console.error(`Error ${t.verb}:`,a),n.headersSent||n.writeHead(500,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:a instanceof Error?a.message:String(a)}))});return}if(e.method!=="GET"){n.writeHead(405),n.end("Method Not Allowed");return}if(r.pathname==="/api/board"){try{let a={...Rm(fe),dispatch:At($e),server:lh(fe,Lt),approve:Gm($e),continue:Hm($e),idea:Ri($e),commission:mh($e)};n.writeHead(200,{"Content-Type":"application/json"}),n.end(JSON.stringify(a))}catch(a){console.error("Error building board:",a),n.writeHead(500,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:a instanceof Error?a.message:String(a)}))}return}if(r.pathname==="/api/fleet"){try{n.writeHead(200,{"Content-Type":"application/json"}),n.end(JSON.stringify(Oi(fe)))}catch(a){console.error("Error building fleet:",a),n.writeHead(500,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:a instanceof Error?a.message:String(a)}))}return}if(r.pathname==="/api/attention"){try{n.writeHead(200,{"Content-Type":"application/json"}),n.end(JSON.stringify(Zm(fe)))}catch(a){console.error("Error building attention:",a),n.writeHead(500,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:a instanceof Error?a.message:String(a)}))}return}if(r.pathname==="/api/worker-log"){let a=r.searchParams.get("branch");if(!a){n.writeHead(400,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:"branch is required"}));return}try{let l=zm(fe,a),s=!l.ok&&l.reason==="no-worktree"?404:200;n.writeHead(s,{"Content-Type":"application/json"}),n.end(JSON.stringify(l))}catch(l){console.error("Error reading worker log:",l),n.writeHead(500,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:l instanceof Error?l.message:String(l)}))}return}if(r.pathname==="/api/dispatch-log"){let a=r.searchParams.get("slug");if(!a||!ee.test(a)){n.writeHead(400,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:"slug must be a plan slug"}));return}try{n.writeHead(200,{"Content-Type":"application/json"}),n.end(JSON.stringify(Pm(fe,a)))}catch(l){console.error("Error reading dispatch log:",l),n.writeHead(500,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:l instanceof Error?l.message:String(l)}))}return}if(r.pathname==="/api/agent-panel"){let a=r.searchParams.get("branch");if(!a){n.writeHead(400,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:"branch is required"}));return}try{let l=Wm(fe,a);n.writeHead(l.ok?200:404,{"Content-Type":"application/json"}),n.end(JSON.stringify(l))}catch(l){console.error("Error building agent panel:",l),n.writeHead(500,{"Content-Type":"application/json"}),n.end(JSON.stringify({error:l instanceof Error?l.message:String(l)}))}return}if(r.pathname.startsWith("/api/approve/")){let a=r.pathname.slice(13);n.writeHead(ee.test(a)?200:400,{"Content-Type":"application/json"}),n.end(ee.test(a)?JSON.stringify(Ym(fe,a)):JSON.stringify({error:"slug must be a plan slug"}));return}if(r.pathname.startsWith("/api/idea/")){let a=r.pathname.slice(10),l=Number(a),s=/^[0-9]{1,9}$/.test(a)&&Number.isInteger(l)&&l>0;n.writeHead(s?200:400,{"Content-Type":"application/json"}),n.end(JSON.stringify(s?ph(fe,l):{error:"number must be an issue number"}));return}if(r.pathname.startsWith("/api/commission/")){let a=r.pathname.slice(16);n.writeHead(ee.test(a)?200:400,{"Content-Type":"application/json"}),n.end(ee.test(a)?JSON.stringify(vh(fe,a)):JSON.stringify({error:"slug must be a plan slug"}));return}let i=Qx.find(a=>r.pathname.startsWith(a.prefix));if(i){let a=r.searchParams.get("embed")==="1";try{let l=decodeURIComponent(r.pathname.slice(i.prefix.length)),s=i.render(fe,l,{embed:a});if(s===null){n.writeHead(404,{"Content-Type":"text/plain; charset=utf-8"}),n.end(`${i.label} not found`);return}n.writeHead(200,{"Content-Type":"text/html; charset=utf-8","Content-Security-Policy":"script-src 'none'"}),n.end(s)}catch(l){if(l instanceof URIError){n.writeHead(400,{"Content-Type":"text/plain; charset=utf-8"}),n.end("Bad request");return}console.error(`Error rendering ${i.label.toLowerCase()}:`,l),n.writeHead(500,{"Content-Type":"text/plain; charset=utf-8"}),n.end(`Error rendering ${i.label.toLowerCase()}`)}return}if(r.pathname==="/"||r.pathname==="/index.html"){n.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),n.end(yh);return}n.writeHead(404),n.end("Not Found")}var Eu=qx.createServer(Yx);Eu.on("error",e=>{throw e.code==="EADDRINUSE"&&(console.log(`Plot board already running at http://localhost:${Iu}`),process.exit(0)),e});sh();Eu.listen(Iu,$e,()=>{let e=Eu.address();if(e&&typeof e=="object"&&(Lt=e.port),console.log(`Plot board: http://localhost:${Lt}`),$e==="0.0.0.0")try{let n=Kx("tailscale",["ip","-4"],{encoding:"utf8"}).trim();n&&console.log(` tailscale: http://${n}:${Lt}`)}catch{}});