sonamu 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -115,7 +115,7 @@ Defaulting to \`null\`.`}var XS=US,Die=GS,ZS=`Radio`,[Oie,QS]=y(ZS),[kie,Aie]=Oi
115
115
 
116
116
  `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=rD,s=!jE.jitless,c=s&&iD.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?dA([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function mA(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=>!TD(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=>OD(e,r,ME())))}),t)}var hA=H(`$ZodUnion`,(e,t)=>{_k.init(e,t),KE(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),KE(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),KE(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),KE(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=>UE(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>mA(t,i,e,a)):mA(s,i,e,a)}});function gA(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>OD(e,r,ME())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}var _A=H(`$ZodXor`,(e,t)=>{hA.init(e,t),t.inclusive=!1;let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);t instanceof Promise?(s.push(t),o=!0):s.push(t)}return o?Promise.all(s).then(t=>gA(t,i,e,a)):gA(s,i,e,a)}}),vA=H(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,hA.init(e,t);let n=e._zod.parse;KE(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=VE(()=>{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(!rD(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?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)}}),yA=H(`$ZodIntersection`,(e,t)=>{_k.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])=>xA(e,t,n)):xA(e,i,a)}});function bA(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(aD(e)&&aD(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=bA(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=bA(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 xA(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}),TD(e))return e;let o=bA(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var SA=H(`$ZodTuple`,(e,t)=>{_k.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=[...n].reverse().findIndex(e=>e._zod.optin!==`optional`),c=s===-1?0:n.length-s;if(!t.rest){let t=a.length>n.length,i=a.length<c-1;if(t||i)return r.issues.push({...t?{code:`too_big`,maximum:n.length,inclusive:!0}:{code:`too_small`,minimum:n.length},input:a,inst:e,origin:`array`}),r}let l=-1;for(let e of n){if(l++,l>=a.length&&l>=c)continue;let t=e._zod.run({value:a[l],issues:[]},i);t instanceof Promise?o.push(t.then(e=>CA(e,r,l))):CA(t,r,l)}if(t.rest){let e=a.slice(n.length);for(let n of e){l++;let e=t.rest._zod.run({value:n,issues:[]},i);e instanceof Promise?o.push(e.then(e=>CA(e,r,l))):CA(e,r,l)}}return o.length?Promise.all(o).then(()=>r):r}});function CA(e,t,n){e.issues.length&&t.issues.push(...ED(n,e.issues)),t.value[n]=e.value}var wA=H(`$ZodRecord`,(e,t)=>{_k.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!aD(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let e of o)if(typeof e==`string`||typeof e==`number`||typeof e==`symbol`){s.add(typeof e==`number`?e.toString():e);let o=t.valueType._zod.run({value:i[e],issues:[]},r);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&n.issues.push(...ED(e,t.issues)),n.value[e]=t.value})):(o.issues.length&&n.issues.push(...ED(e,o.issues)),n.value[e]=o.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`)continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&IO.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>OD(e,r,ME())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...ED(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...ED(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),TA=H(`$ZodMap`,(e,t)=>{_k.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{EA(t,a,n,o,i,e,r)})):EA(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}});function EA(e,t,n,r,i,a,o){e.issues.length&&(lD.has(typeof r)?n.issues.push(...ED(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>OD(e,o,ME()))})),t.issues.length&&(lD.has(typeof r)?n.issues.push(...ED(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>OD(e,o,ME()))})),n.value.set(e.value,t.value)}var DA=H(`$ZodSet`,(e,t)=>{_k.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>OA(e,n))):OA(i,n)}return a.length?Promise.all(a).then(()=>n):n}});function OA(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var kA=H(`$ZodEnum`,(e,t)=>{_k.init(e,t);let n=zE(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>lD.has(typeof e)).map(e=>typeof e==`string`?dD(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}}),AA=H(`$ZodLiteral`,(e,t)=>{if(_k.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`?dD(e):e?dD(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}}),jA=H(`$ZodFile`,(e,t)=>{_k.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),MA=H(`$ZodTransform`,(e,t)=>{_k.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new AE(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));if(i instanceof Promise)throw new kE;return n.value=i,n}});function NA(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var PA=H(`$ZodOptional`,(e,t)=>{_k.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,KE(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),KE(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${UE(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>NA(t,e.value)):NA(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),FA=H(`$ZodExactOptional`,(e,t)=>{PA.init(e,t),KE(e._zod,`values`,()=>t.innerType._zod.values),KE(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),IA=H(`$ZodNullable`,(e,t)=>{_k.init(e,t),KE(e._zod,`optin`,()=>t.innerType._zod.optin),KE(e._zod,`optout`,()=>t.innerType._zod.optout),KE(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${UE(e.source)}|null)$`):void 0}),KE(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)}),LA=H(`$ZodDefault`,(e,t)=>{_k.init(e,t),e._zod.optin=`optional`,KE(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=>RA(e,t)):RA(r,t)}});function RA(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var zA=H(`$ZodPrefault`,(e,t)=>{_k.init(e,t),e._zod.optin=`optional`,KE(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))}),BA=H(`$ZodNonOptional`,(e,t)=>{_k.init(e,t),KE(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=>VA(t,e)):VA(i,e)}});function VA(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 HA=H(`$ZodSuccess`,(e,t)=>{_k.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new AE(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),UA=H(`$ZodCatch`,(e,t)=>{_k.init(e,t),KE(e._zod,`optin`,()=>t.innerType._zod.optin),KE(e._zod,`optout`,()=>t.innerType._zod.optout),KE(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=>OD(e,n,ME()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>OD(e,n,ME()))},input:e.value}),e.issues=[]),e)}}),WA=H(`$ZodNaN`,(e,t)=>{_k.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),GA=H(`$ZodPipe`,(e,t)=>{_k.init(e,t),KE(e._zod,`values`,()=>t.in._zod.values),KE(e._zod,`optin`,()=>t.in._zod.optin),KE(e._zod,`optout`,()=>t.out._zod.optout),KE(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=>KA(e,t.in,n)):KA(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>KA(e,t.out,n)):KA(r,t.out,n)}});function KA(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var qA=H(`$ZodCodec`,(e,t)=>{_k.init(e,t),KE(e._zod,`values`,()=>t.in._zod.values),KE(e._zod,`optin`,()=>t.in._zod.optin),KE(e._zod,`optout`,()=>t.out._zod.optout),KE(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>JA(e,t,n)):JA(r,t,n)}else{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>JA(e,t,n)):JA(r,t,n)}}});function JA(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>YA(e,r,t.out,n)):YA(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>YA(e,r,t.in,n)):YA(e,r,t.in,n)}}function YA(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var XA=H(`$ZodReadonly`,(e,t)=>{_k.init(e,t),KE(e._zod,`propValues`,()=>t.innerType._zod.propValues),KE(e._zod,`values`,()=>t.innerType._zod.values),KE(e._zod,`optin`,()=>t.innerType?._zod?.optin),KE(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(ZA):ZA(r)}});function ZA(e){return e.value=Object.freeze(e.value),e}var QA=H(`$ZodTemplateLiteral`,(e,t)=>{_k.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=t.startsWith(`^`)?1:0,i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||uD.has(typeof e))n.push(dD(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),$A=H(`$ZodFunction`,(e,t)=>(_k.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?WD(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?WD(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await KD(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await KD(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(e._def.output&&e._def.output._zod.def.type===`promise`?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new SA({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),ej=H(`$ZodPromise`,(e,t)=>{_k.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),tj=H(`$ZodLazy`,(e,t)=>{_k.init(e,t),KE(e._zod,`innerType`,()=>t.getter()),KE(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),KE(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),KE(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),KE(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),nj=H(`$ZodCustom`,(e,t)=>{GO.init(e,t),_k.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=>rj(t,n,r,e));rj(i,n,r,e)}});function rj(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(MD(e))}}var voe=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${mD(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${U(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}};function yoe(){return{localeError:voe()}}var boe=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${mD(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${U(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}};function xoe(){return{localeError:boe()}}function ij(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}var Soe=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${mD(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=ij(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=ij(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}};function Coe(){return{localeError:Soe()}}var woe=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${mD(e.values[0])}`:`Невалидна опция: очаквано едно от ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}};function Toe(){return{localeError:woe()}}var Eoe=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,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ça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${mD(e.values[0])}`:`Opció invàlida: s'esperava una de ${U(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}};function Doe(){return{localeError:Eoe()}}var Ooe=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová 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 čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${mD(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${U(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}};function koe(){return{localeError:Ooe()}}var Aoe=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-mailadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslæt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,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`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${mD(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}};function joe(){return{localeError:Aoe()}}var Moe=()=>{let e={string:{unit:`Zeichen`,verb:`zu haben`},file:{unit:`Bytes`,verb:`zu haben`},array:{unit:`Elemente`,verb:`zu haben`},set:{unit:`Elemente`,verb:`zu haben`}};function t(t){return e[t]??null}let n={regex:`Eingabe`,email:`E-Mail-Adresse`,url:`URL`,emoji:`Emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-Datum und -Uhrzeit`,date:`ISO-Datum`,time:`ISO-Uhrzeit`,duration:`ISO-Dauer`,ipv4:`IPv4-Adresse`,ipv6:`IPv6-Adresse`,cidrv4:`IPv4-Bereich`,cidrv6:`IPv6-Bereich`,base64:`Base64-codierter String`,base64url:`Base64-URL-codierter String`,json_string:`JSON-String`,e164:`E.164-Nummer`,jwt:`JWT`,template_literal:`Eingabe`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${mD(e.values[0])}`:`Ungültige Option: erwartet eine von ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}};function Noe(){return{localeError:Moe()}}var Poe=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${mD(e.values[0])}`:`Invalid option: expected one of ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function aj(){return{localeError:Poe()}}var Foe=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,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ŭro`,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`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${mD(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}};function Ioe(){return{localeError:Foe()}}var Loe=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,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ón ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${mD(e.values[0])}`:`Opción inválida: se esperaba una de ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}};function Roe(){return{localeError:Loe()}}var zoe=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: می‌بایست instanceof ${e.expected} می‌بود، ${i} دریافت شد`:`ورودی نامعتبر: می‌بایست ${t} می‌بود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: می‌بایست ${mD(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${U(e.values,`|`)} می‌بود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${U(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}};function Boe(){return{localeError:zoe()}}var Voe=()=>{let e={string:{unit:`merkkiä`,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äivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,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äivämäärä`,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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${mD(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${U(e.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öte`}}};function Hoe(){return{localeError:Voe()}}var Uoe=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,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ée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`,number:`nombre`,array:`tableau`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${mD(e.values[0])} attendu`:`Option invalide : une valeur parmi ${U(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Trop grand : ${e.origin??`valeur`} doit ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`élément(s)`}`:`Trop grand : ${e.origin??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Trop petit : ${e.origin} doit ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : ${e.origin} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${U(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}};function Woe(){return{localeError:Uoe()}}var Goe=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,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ée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${mD(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${U(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}};function Koe(){return{localeError:Goe()}}var qoe=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,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:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=jD(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${mD(t.values[0])}`;let e=t.values.map(e=>mD(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${U(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}};function Joe(){return{localeError:qoe()}}var Yoe=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,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őbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${mD(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}};function Xoe(){return{localeError:Yoe()}}function oj(e,t,n){return Math.abs(e)===1?t:n}function sj(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}var Zoe=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${mD(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=oj(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${sj(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${sj(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=oj(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${sj(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${sj(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${U(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${sj(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${sj(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}};function Qoe(){return{localeError:Zoe()}}var $oe=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tanggal dan waktu format ISO`,date:`tanggal format ISO`,time:`jam format ISO`,duration:`durasi format ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`rentang alamat IPv4`,cidrv6:`rentang alamat IPv6`,base64:`string dengan enkode base64`,base64url:`string dengan enkode base64url`,json_string:`string JSON`,e164:`angka E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${mD(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}};function ese(){return{localeError:$oe()}}var tse=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,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ími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,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ölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${mD(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}};function nse(){return{localeError:tse()}}var rse=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={regex:`input`,email:`indirizzo email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e ora ISO`,date:`data ISO`,time:`ora ISO`,duration:`durata ISO`,ipv4:`indirizzo IPv4`,ipv6:`indirizzo IPv6`,cidrv4:`intervallo IPv4`,cidrv6:`intervallo IPv6`,base64:`stringa codificata in base64`,base64url:`URL codificata in base64`,json_string:`stringa JSON`,e164:`numero E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${mD(e.values[0])}`:`Opzione non valida: atteso uno tra ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}};function ise(){return{localeError:rse()}}var ase=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${mD(e.values[0])}が期待されました`:`無効な選択: ${U(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${U(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}};function ose(){return{localeError:ase()}}var sse=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული სტრინგი`,base64url:`base64url-კოდირებული სტრინგი`,json_string:`JSON სტრინგი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`სტრინგი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${mD(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${U(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი სტრინგი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი სტრინგი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${U(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}};function cse(){return{localeError:sse()}}var lse=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${mD(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${U(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}};function cj(){return{localeError:lse()}}function use(){return cj()}var dse=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${mD(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${U(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${U(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}};function fse(){return{localeError:dse()}}var lj=e=>e.charAt(0).toUpperCase()+e.slice(1);function uj(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}var pse=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto 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ė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${mD(e.values[0])}`:`Privalo būti vienas iš ${U(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,uj(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${lj(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${lj(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,uj(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${lj(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${lj(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:return`${lj(r[e.origin]??e.origin??e.origin??`reikšmė`)} turi klaidingą įvestį`;default:return`Klaidinga įvestis`}}};function mse(){return{localeError:pse()}}var hse=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${mD(e.values[0])}`:`Грешана опција: се очекува една ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}};function gse(){return{localeError:hse()}}var _se=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat e-mel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tarikh masa ISO`,date:`tarikh ISO`,time:`masa ISO`,duration:`tempoh ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`julat IPv4`,cidrv6:`julat IPv6`,base64:`string dikodkan base64`,base64url:`string dikodkan base64url`,json_string:`string JSON`,e164:`nombor E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${mD(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${U(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}};function vse(){return{localeError:_se()}}var yse=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={regex:`invoer`,email:`emailadres`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum en tijd`,date:`ISO datum`,time:`ISO tijd`,duration:`ISO duur`,ipv4:`IPv4-adres`,ipv6:`IPv6-adres`,cidrv4:`IPv4-bereik`,cidrv6:`IPv6-bereik`,base64:`base64-gecodeerde tekst`,base64url:`base64 URL-gecodeerde tekst`,json_string:`JSON string`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`invoer`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${mD(e.values[0])}`:`Ongeldige optie: verwacht één van ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}};function bse(){return{localeError:yse()}}var xse=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varighet`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,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`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${mD(e.values[0])}`:`Ugyldig valg: forventet en av ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}};function Sse(){return{localeError:xse()}}var Cse=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,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âmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${mD(e.values[0])}`:`Fâsit tercih: mûteberler ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${U(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}};function wse(){return{localeError:Cse()}}var Tse=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${mD(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${U(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${U(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}};function Ese(){return{localeError:Tse()}}var Dse=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,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ąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${mD(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}};function Ose(){return{localeError:Dse()}}var kse=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço 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ção ISO`,ipv4:`endereço IPv4`,ipv6:`endereço 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úmero E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${mD(e.values[0])}`:`Opção inválida: esperada uma das ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}};function Ase(){return{localeError:kse()}}function dj(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}var jse=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${mD(e.values[0])}`:`Неверный вариант: ожидалось одно из ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=dj(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=dj(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}};function Mse(){return{localeError:jse()}}var Nse=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni 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 čas`,date:`ISO datum`,time:`ISO čas`,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 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${mD(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}};function Pse(){return{localeError:Nse()}}var Fse=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt 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äng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${mD(e.values[0])}`:`Ogiltigt val: förväntade en av ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}};function Ise(){return{localeError:Fse()}}var Lse=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,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 தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${mD(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${U(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${U(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}};function Rse(){return{localeError:Lse()}}var zse=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${mD(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${U(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}};function Bse(){return{localeError:zse()}}var Vse=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={regex:`girdi`,email:`e-posta adresi`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO tarih ve saat`,date:`ISO tarih`,time:`ISO saat`,duration:`ISO süre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${mD(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${U(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}};function Hse(){return{localeError:Vse()}}var Use=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${mD(e.values[0])}`:`Неправильна опція: очікується одне з ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${U(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}};function fj(){return{localeError:Use()}}function Wse(){return fj()}var Gse=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${mD(e.values[0])} متوقع تھا`:`غلط آپشن: ${U(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${U(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}};function Kse(){return{localeError:Gse()}}var qse=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={regex:`kirish`,email:`elektron pochta manzili`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sana va vaqti`,date:`ISO sana`,time:`ISO vaqt`,duration:`ISO davomiylik`,ipv4:`IPv4 manzil`,ipv6:`IPv6 manzil`,mac:`MAC manzil`,cidrv4:`IPv4 diapazon`,cidrv6:`IPv6 diapazon`,base64:`base64 kodlangan satr`,base64url:`base64url kodlangan satr`,json_string:`JSON satr`,e164:`E.164 raqam`,jwt:`JWT`,template_literal:`kirish`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${mD(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${U(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}};function Jse(){return{localeError:qse()}}var Yse=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ 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ày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${mD(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${U(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}};function Xse(){return{localeError:Yse()}}var Zse=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${mD(e.values[0])}`:`无效选项:期望以下之一 ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${U(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}};function Qse(){return{localeError:Zse()}}var $se=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,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 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${mD(e.values[0])}`:`無效的選項:預期為以下其中之一 ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${U(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}};function ece(){return{localeError:$se()}}var tce=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,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:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=jD(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${mD(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${U(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${U(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}};function nce(){return{localeError:tce()}}var pj=c({ar:()=>yoe,az:()=>xoe,be:()=>Coe,bg:()=>Toe,ca:()=>Doe,cs:()=>koe,da:()=>joe,de:()=>Noe,en:()=>aj,eo:()=>Ioe,es:()=>Roe,fa:()=>Boe,fi:()=>Hoe,fr:()=>Woe,frCA:()=>Koe,he:()=>Joe,hu:()=>Xoe,hy:()=>Qoe,id:()=>ese,is:()=>nse,it:()=>ise,ja:()=>ose,ka:()=>cse,kh:()=>use,km:()=>cj,ko:()=>fse,lt:()=>mse,mk:()=>gse,ms:()=>vse,nl:()=>bse,no:()=>Sse,ota:()=>wse,pl:()=>Ose,ps:()=>Ese,pt:()=>Ase,ru:()=>Mse,sl:()=>Pse,sv:()=>Ise,ta:()=>Rse,th:()=>Bse,tr:()=>Hse,ua:()=>Wse,uk:()=>fj,ur:()=>Kse,uz:()=>Jse,vi:()=>Xse,yo:()=>nce,zhCN:()=>Qse,zhTW:()=>ece}),mj,hj=Symbol(`ZodOutput`),gj=Symbol(`ZodInput`),_j=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 vj(){return new _j}(mj=globalThis).__zod_globalRegistry??(mj.__zod_globalRegistry=vj());var yj=globalThis.__zod_globalRegistry;function bj(e,t){return new e({type:`string`,...W(t)})}function xj(e,t){return new e({type:`string`,coerce:!0,...W(t)})}function Sj(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...W(t)})}function Cj(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...W(t)})}function wj(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...W(t)})}function Tj(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...W(t)})}function Ej(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...W(t)})}function Dj(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...W(t)})}function Oj(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...W(t)})}function kj(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...W(t)})}function Aj(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...W(t)})}function jj(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...W(t)})}function Mj(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...W(t)})}function Nj(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...W(t)})}function Pj(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...W(t)})}function Fj(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...W(t)})}function Ij(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...W(t)})}function Lj(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...W(t)})}function Rj(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...W(t)})}function zj(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...W(t)})}function Bj(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...W(t)})}function Vj(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...W(t)})}function Hj(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...W(t)})}function Uj(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...W(t)})}function Wj(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...W(t)})}var Gj={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Kj(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...W(t)})}function qj(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...W(t)})}function Jj(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...W(t)})}function Yj(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...W(t)})}function Xj(e,t){return new e({type:`number`,checks:[],...W(t)})}function Zj(e,t){return new e({type:`number`,coerce:!0,checks:[],...W(t)})}function Qj(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...W(t)})}function $j(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...W(t)})}function eM(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...W(t)})}function tM(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...W(t)})}function nM(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...W(t)})}function rM(e,t){return new e({type:`boolean`,...W(t)})}function iM(e,t){return new e({type:`boolean`,coerce:!0,...W(t)})}function aM(e,t){return new e({type:`bigint`,...W(t)})}function oM(e,t){return new e({type:`bigint`,coerce:!0,...W(t)})}function sM(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...W(t)})}function cM(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...W(t)})}function lM(e,t){return new e({type:`symbol`,...W(t)})}function uM(e,t){return new e({type:`undefined`,...W(t)})}function dM(e,t){return new e({type:`null`,...W(t)})}function fM(e){return new e({type:`any`})}function pM(e){return new e({type:`unknown`})}function mM(e,t){return new e({type:`never`,...W(t)})}function hM(e,t){return new e({type:`void`,...W(t)})}function gM(e,t){return new e({type:`date`,...W(t)})}function _M(e,t){return new e({type:`date`,coerce:!0,...W(t)})}function vM(e,t){return new e({type:`nan`,...W(t)})}function yM(e,t){return new qO({check:`less_than`,...W(t),value:e,inclusive:!1})}function bM(e,t){return new qO({check:`less_than`,...W(t),value:e,inclusive:!0})}function xM(e,t){return new JO({check:`greater_than`,...W(t),value:e,inclusive:!1})}function SM(e,t){return new JO({check:`greater_than`,...W(t),value:e,inclusive:!0})}function CM(e){return xM(0,e)}function wM(e){return yM(0,e)}function TM(e){return bM(0,e)}function EM(e){return SM(0,e)}function DM(e,t){return new YO({check:`multiple_of`,...W(t),value:e})}function OM(e,t){return new QO({check:`max_size`,...W(t),maximum:e})}function kM(e,t){return new $O({check:`min_size`,...W(t),minimum:e})}function AM(e,t){return new ek({check:`size_equals`,...W(t),size:e})}function jM(e,t){return new tk({check:`max_length`,...W(t),maximum:e})}function MM(e,t){return new nk({check:`min_length`,...W(t),minimum:e})}function NM(e,t){return new rk({check:`length_equals`,...W(t),length:e})}function PM(e,t){return new ak({check:`string_format`,format:`regex`,...W(t),pattern:e})}function FM(e){return new ok({check:`string_format`,format:`lowercase`,...W(e)})}function IM(e){return new sk({check:`string_format`,format:`uppercase`,...W(e)})}function LM(e,t){return new ck({check:`string_format`,format:`includes`,...W(t),includes:e})}function RM(e,t){return new lk({check:`string_format`,format:`starts_with`,...W(t),prefix:e})}function zM(e,t){return new uk({check:`string_format`,format:`ends_with`,...W(t),suffix:e})}function BM(e,t,n){return new fk({check:`property`,property:e,schema:t,...W(n)})}function VM(e,t){return new pk({check:`mime_type`,mime:e,...W(t)})}function HM(e){return new mk({check:`overwrite`,tx:e})}function UM(e){return HM(t=>t.normalize(e))}function WM(){return HM(e=>e.trim())}function GM(){return HM(e=>e.toLowerCase())}function KM(){return HM(e=>e.toUpperCase())}function qM(){return HM(e=>tD(e))}function JM(e,t,n){return new e({type:`array`,element:t,...W(n)})}function rce(e,t,n){return new e({type:`union`,options:t,...W(n)})}function ice(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...W(n)})}function YM(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...W(r)})}function XM(e,t,n){return new e({type:`intersection`,left:t,right:n})}function ZM(e,t,n,r){let i=n instanceof _k;return new e({type:`tuple`,items:t,rest:i?n:null,...W(i?r:n)})}function QM(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...W(r)})}function $M(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...W(r)})}function eN(e,t,n){return new e({type:`set`,valueType:t,...W(n)})}function tN(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...W(n)})}function nN(e,t,n){return new e({type:`enum`,entries:t,...W(n)})}function rN(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...W(n)})}function iN(e,t){return new e({type:`file`,...W(t)})}function aN(e,t){return new e({type:`transform`,transform:t})}function oN(e,t){return new e({type:`optional`,innerType:t})}function sN(e,t){return new e({type:`nullable`,innerType:t})}function cN(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():oD(n)}})}function lN(e,t,n){return new e({type:`nonoptional`,innerType:t,...W(n)})}function uN(e,t){return new e({type:`success`,innerType:t})}function dN(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function fN(e,t,n){return new e({type:`pipe`,in:t,out:n})}function pN(e,t){return new e({type:`readonly`,innerType:t})}function mN(e,t,n){return new e({type:`template_literal`,parts:t,...W(n)})}function hN(e,t){return new e({type:`lazy`,getter:t})}function gN(e,t){return new e({type:`promise`,innerType:t})}function _N(e,t,n){let r=W(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function vN(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...W(n)})}function yN(e){let t=bN(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(MD(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(MD(r))}},e(n.value,n)));return t}function bN(e,t){let n=new GO({check:`custom`,...W(t)});return n._zod.check=e,n}function xN(e){let t=new GO({check:`describe`});return t._zod.onattach=[t=>{let n=yj.get(t)??{};yj.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function SN(e){let t=new GO({check:`meta`});return t._zod.onattach=[t=>{let n=yj.get(t)??{};yj.add(t,{...n,...e})}],t._zod.check=()=>{},t}function CN(e,t){let n=W(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??qA,c=e.Boolean??Xk,l=new s({type:`pipe`,in:new(e.String??vk)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:o.has(r)?!1:(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function wN(e,t,n,r={}){let i=W(r),a={...W(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}function TN(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??yj,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 EN(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,EN(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`&&kN(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function DN(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>
117
117
 
118
- Set 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 ON(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.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:jN(t,`input`,e.processors),output:jN(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function kN(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 kN(r.element,n);if(r.type===`set`)return kN(r.valueType,n);if(r.type===`lazy`)return kN(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 kN(r.innerType,n);if(r.type===`intersection`)return kN(r.left,n)||kN(r.right,n);if(r.type===`record`||r.type===`map`)return kN(r.keyType,n)||kN(r.valueType,n);if(r.type===`pipe`)return kN(r.in,n)||kN(r.out,n);if(r.type===`object`){for(let e in r.shape)if(kN(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(kN(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(kN(e,n))return!0;return!!(r.rest&&kN(r.rest,n))}return!1}var AN=(e,t={})=>n=>{let r=TN({...n,processors:t});return EN(e,r),DN(r,e),ON(r,e)},jN=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=TN({...i??{},target:a,io:t,processors:n});return EN(e,o),DN(o,e),ON(o,e)},MN={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},NN=(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=MN[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}))])}},PN=(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`,typeof u==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u),typeof a==`number`&&(i.minimum=a,typeof u==`number`&&t.target!==`draft-04`&&(u>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof l==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l),typeof o==`number`&&(i.maximum=o,typeof l==`number`&&t.target!==`draft-04`&&(l<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof c==`number`&&(i.multipleOf=c)},FN=(e,t,n,r)=>{n.type=`boolean`},IN=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},LN=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},RN=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},zN=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},BN=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},VN=(e,t,n,r)=>{n.not={}},HN=(e,t,n,r)=>{},UN=(e,t,n,r)=>{},WN=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},GN=(e,t,n,r)=>{let i=e._zod.def,a=zE(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},KN=(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},qN=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},JN=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},YN=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},XN=(e,t,n,r)=>{n.type=`boolean`},ZN=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},QN=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},$N=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},eP=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},tP=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},nP=(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=EN(a.element,t,{...r,path:[...r.path,`items`]})},rP=(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]=EN(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=EN(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},iP=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>EN(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},aP=(e,t,n,r)=>{let i=e._zod.def,a=EN(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=EN(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]]},oP=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>EN(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?EN(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},sP=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=EN(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=EN(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=EN(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},cP=(e,t,n,r)=>{let i=e._zod.def,a=EN(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`}]},lP=(e,t,n,r)=>{let i=e._zod.def;EN(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},uP=(e,t,n,r)=>{let i=e._zod.def;EN(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},dP=(e,t,n,r)=>{let i=e._zod.def;EN(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)))},fP=(e,t,n,r)=>{let i=e._zod.def;EN(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},pP=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;EN(a,t,r);let o=t.seen.get(e);o.ref=a},mP=(e,t,n,r)=>{let i=e._zod.def;EN(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},hP=(e,t,n,r)=>{let i=e._zod.def;EN(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},gP=(e,t,n,r)=>{let i=e._zod.def;EN(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},_P=(e,t,n,r)=>{let i=e._zod.innerType;EN(i,t,r);let a=t.seen.get(e);a.ref=i},vP={string:NN,number:PN,boolean:FN,bigint:IN,symbol:LN,null:RN,undefined:zN,void:BN,never:VN,any:HN,unknown:UN,date:WN,enum:GN,literal:KN,nan:qN,template_literal:JN,file:YN,success:XN,custom:ZN,function:QN,transform:$N,map:eP,set:tP,array:nP,object:rP,union:iP,intersection:aP,tuple:oP,record:sP,nullable:cP,nonoptional:lP,default:uP,prefault:dP,catch:fP,pipe:pP,readonly:mP,promise:hP,optional:gP,lazy:_P};function yP(e,t){if(`_idmap`in e){let n=e,r=TN({...t,processors:vP}),i={};for(let e of n._idmap.entries()){let[t,n]=e;EN(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;DN(r,n),a[t]=ON(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=TN({...t,processors:vP});return EN(e,n),DN(n,e),ON(n,e)}var bP=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(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=TN({processors:vP,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return EN(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),DN(this.ctx,e);let{"~standard":n,...r}=ON(this.ctx,e);return r}},xP=c({}),SP=c({$ZodAny:()=>nA,$ZodArray:()=>cA,$ZodAsyncError:()=>kE,$ZodBase64:()=>Vk,$ZodBase64URL:()=>Uk,$ZodBigInt:()=>Zk,$ZodBigIntFormat:()=>Qk,$ZodBoolean:()=>Xk,$ZodCIDRv4:()=>Rk,$ZodCIDRv6:()=>zk,$ZodCUID:()=>Ek,$ZodCUID2:()=>Dk,$ZodCatch:()=>UA,$ZodCheck:()=>GO,$ZodCheckBigIntFormat:()=>ZO,$ZodCheckEndsWith:()=>uk,$ZodCheckGreaterThan:()=>JO,$ZodCheckIncludes:()=>ck,$ZodCheckLengthEquals:()=>rk,$ZodCheckLessThan:()=>qO,$ZodCheckLowerCase:()=>ok,$ZodCheckMaxLength:()=>tk,$ZodCheckMaxSize:()=>QO,$ZodCheckMimeType:()=>pk,$ZodCheckMinLength:()=>nk,$ZodCheckMinSize:()=>$O,$ZodCheckMultipleOf:()=>YO,$ZodCheckNumberFormat:()=>XO,$ZodCheckOverwrite:()=>mk,$ZodCheckProperty:()=>fk,$ZodCheckRegex:()=>ak,$ZodCheckSizeEquals:()=>ek,$ZodCheckStartsWith:()=>lk,$ZodCheckStringFormat:()=>ik,$ZodCheckUpperCase:()=>sk,$ZodCodec:()=>qA,$ZodCustom:()=>nj,$ZodCustomStringFormat:()=>qk,$ZodDate:()=>oA,$ZodDefault:()=>LA,$ZodDiscriminatedUnion:()=>vA,$ZodE164:()=>Wk,$ZodEmail:()=>Sk,$ZodEmoji:()=>wk,$ZodEncodeError:()=>AE,$ZodEnum:()=>kA,$ZodError:()=>ID,$ZodExactOptional:()=>FA,$ZodFile:()=>jA,$ZodFunction:()=>$A,$ZodGUID:()=>bk,$ZodIPv4:()=>Fk,$ZodIPv6:()=>Ik,$ZodISODate:()=>Mk,$ZodISODateTime:()=>jk,$ZodISODuration:()=>Pk,$ZodISOTime:()=>Nk,$ZodIntersection:()=>yA,$ZodJWT:()=>Kk,$ZodKSUID:()=>Ak,$ZodLazy:()=>tj,$ZodLiteral:()=>AA,$ZodMAC:()=>Lk,$ZodMap:()=>TA,$ZodNaN:()=>WA,$ZodNanoID:()=>Tk,$ZodNever:()=>iA,$ZodNonOptional:()=>BA,$ZodNull:()=>tA,$ZodNullable:()=>IA,$ZodNumber:()=>Jk,$ZodNumberFormat:()=>Yk,$ZodObject:()=>fA,$ZodObjectJIT:()=>pA,$ZodOptional:()=>PA,$ZodPipe:()=>GA,$ZodPrefault:()=>zA,$ZodPromise:()=>ej,$ZodReadonly:()=>XA,$ZodRealError:()=>LD,$ZodRecord:()=>wA,$ZodRegistry:()=>_j,$ZodSet:()=>DA,$ZodString:()=>vk,$ZodStringFormat:()=>yk,$ZodSuccess:()=>HA,$ZodSymbol:()=>$k,$ZodTemplateLiteral:()=>QA,$ZodTransform:()=>MA,$ZodTuple:()=>SA,$ZodType:()=>_k,$ZodULID:()=>Ok,$ZodURL:()=>Ck,$ZodUUID:()=>xk,$ZodUndefined:()=>eA,$ZodUnion:()=>hA,$ZodUnknown:()=>rA,$ZodVoid:()=>aA,$ZodXID:()=>kk,$ZodXor:()=>_A,$brand:()=>OE,$constructor:()=>H,$input:()=>gj,$output:()=>hj,Doc:()=>hk,JSONSchema:()=>xP,JSONSchemaGenerator:()=>bP,NEVER:()=>DE,TimePrecision:()=>Gj,_any:()=>fM,_array:()=>JM,_base64:()=>Vj,_base64url:()=>Hj,_bigint:()=>aM,_boolean:()=>rM,_catch:()=>dN,_check:()=>bN,_cidrv4:()=>zj,_cidrv6:()=>Bj,_coercedBigint:()=>oM,_coercedBoolean:()=>iM,_coercedDate:()=>_M,_coercedNumber:()=>Zj,_coercedString:()=>xj,_cuid:()=>jj,_cuid2:()=>Mj,_custom:()=>_N,_date:()=>gM,_decode:()=>QD,_decodeAsync:()=>eO,_default:()=>cN,_discriminatedUnion:()=>YM,_e164:()=>Uj,_email:()=>Sj,_emoji:()=>kj,_encode:()=>ZD,_encodeAsync:()=>$D,_endsWith:()=>zM,_enum:()=>tN,_file:()=>iN,_float32:()=>$j,_float64:()=>eM,_gt:()=>xM,_gte:()=>SM,_guid:()=>Cj,_includes:()=>LM,_int:()=>Qj,_int32:()=>tM,_int64:()=>sM,_intersection:()=>XM,_ipv4:()=>Ij,_ipv6:()=>Lj,_isoDate:()=>qj,_isoDateTime:()=>Kj,_isoDuration:()=>Yj,_isoTime:()=>Jj,_jwt:()=>Wj,_ksuid:()=>Fj,_lazy:()=>hN,_length:()=>NM,_literal:()=>rN,_lowercase:()=>FM,_lt:()=>yM,_lte:()=>bM,_mac:()=>Rj,_map:()=>$M,_max:()=>bM,_maxLength:()=>jM,_maxSize:()=>OM,_mime:()=>VM,_min:()=>SM,_minLength:()=>MM,_minSize:()=>kM,_multipleOf:()=>DM,_nan:()=>vM,_nanoid:()=>Aj,_nativeEnum:()=>nN,_negative:()=>wM,_never:()=>mM,_nonnegative:()=>EM,_nonoptional:()=>lN,_nonpositive:()=>TM,_normalize:()=>UM,_null:()=>dM,_nullable:()=>sN,_number:()=>Xj,_optional:()=>oN,_overwrite:()=>HM,_parse:()=>UD,_parseAsync:()=>GD,_pipe:()=>fN,_positive:()=>CM,_promise:()=>gN,_property:()=>BM,_readonly:()=>pN,_record:()=>QM,_refine:()=>vN,_regex:()=>PM,_safeDecode:()=>nO,_safeDecodeAsync:()=>iO,_safeEncode:()=>tO,_safeEncodeAsync:()=>rO,_safeParse:()=>qD,_safeParseAsync:()=>YD,_set:()=>eN,_size:()=>AM,_slugify:()=>qM,_startsWith:()=>RM,_string:()=>bj,_stringFormat:()=>wN,_stringbool:()=>CN,_success:()=>uN,_superRefine:()=>yN,_symbol:()=>lM,_templateLiteral:()=>mN,_toLowerCase:()=>GM,_toUpperCase:()=>KM,_transform:()=>aN,_trim:()=>WM,_tuple:()=>ZM,_uint32:()=>nM,_uint64:()=>cM,_ulid:()=>Nj,_undefined:()=>uM,_union:()=>rce,_unknown:()=>pM,_uppercase:()=>IM,_url:()=>Oj,_uuid:()=>wj,_uuidv4:()=>Tj,_uuidv6:()=>Ej,_uuidv7:()=>Dj,_void:()=>hM,_xid:()=>Pj,_xor:()=>ice,clone:()=>fD,config:()=>ME,createStandardJSONSchemaMethod:()=>jN,createToJSONSchemaMethod:()=>AN,decode:()=>Vae,decodeAsync:()=>Uae,describe:()=>xN,encode:()=>Bae,encodeAsync:()=>Hae,extractDefs:()=>DN,finalize:()=>ON,flattenError:()=>RD,formatError:()=>zD,globalConfig:()=>jE,globalRegistry:()=>yj,initializeContext:()=>TN,isValidBase64:()=>Bk,isValidBase64URL:()=>Hk,isValidJWT:()=>Gk,locales:()=>pj,meta:()=>SN,parse:()=>WD,parseAsync:()=>KD,prettifyError:()=>HD,process:()=>EN,regexes:()=>aO,registry:()=>vj,safeDecode:()=>Gae,safeDecodeAsync:()=>qae,safeEncode:()=>Wae,safeEncodeAsync:()=>Kae,safeParse:()=>JD,safeParseAsync:()=>XD,toDotPath:()=>VD,toJSONSchema:()=>yP,treeifyError:()=>BD,util:()=>NE,version:()=>gk}),CP=c({endsWith:()=>zM,gt:()=>xM,gte:()=>SM,includes:()=>LM,length:()=>NM,lowercase:()=>FM,lt:()=>yM,lte:()=>bM,maxLength:()=>jM,maxSize:()=>OM,mime:()=>VM,minLength:()=>MM,minSize:()=>kM,multipleOf:()=>DM,negative:()=>wM,nonnegative:()=>EM,nonpositive:()=>TM,normalize:()=>UM,overwrite:()=>HM,positive:()=>CM,property:()=>BM,regex:()=>PM,size:()=>AM,slugify:()=>qM,startsWith:()=>RM,toLowerCase:()=>GM,toUpperCase:()=>KM,trim:()=>WM,uppercase:()=>IM}),wP=c({ZodISODate:()=>DP,ZodISODateTime:()=>TP,ZodISODuration:()=>jP,ZodISOTime:()=>kP,date:()=>OP,datetime:()=>EP,duration:()=>MP,time:()=>AP}),TP=H(`ZodISODateTime`,(e,t)=>{jk.init(e,t),QP.init(e,t)});function EP(e){return Kj(TP,e)}var DP=H(`ZodISODate`,(e,t)=>{Mk.init(e,t),QP.init(e,t)});function OP(e){return qj(DP,e)}var kP=H(`ZodISOTime`,(e,t)=>{Nk.init(e,t),QP.init(e,t)});function AP(e){return Jj(kP,e)}var jP=H(`ZodISODuration`,(e,t)=>{Pk.init(e,t),QP.init(e,t)});function MP(e){return Yj(jP,e)}var NP=(e,t)=>{ID.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>zD(e,t)},flatten:{value:t=>RD(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,BE,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,BE,2)}},isEmpty:{get(){return e.issues.length===0}}})},PP=H(`ZodError`,NP),FP=H(`ZodError`,NP,{Parent:Error}),IP=UD(FP),LP=GD(FP),RP=qD(FP),zP=YD(FP),BP=ZD(FP),VP=QD(FP),HP=$D(FP),UP=eO(FP),WP=tO(FP),GP=nO(FP),KP=rO(FP),qP=iO(FP),JP=c({ZodAny:()=>hI,ZodArray:()=>TI,ZodBase64:()=>FF,ZodBase64URL:()=>LF,ZodBigInt:()=>iI,ZodBigIntFormat:()=>oI,ZodBoolean:()=>nI,ZodCIDRv4:()=>jF,ZodCIDRv6:()=>NF,ZodCUID:()=>hF,ZodCUID2:()=>_F,ZodCatch:()=>yL,ZodCodec:()=>TL,ZodCustom:()=>LL,ZodCustomStringFormat:()=>UF,ZodDate:()=>CI,ZodDefault:()=>dL,ZodDiscriminatedUnion:()=>II,ZodE164:()=>zF,ZodEmail:()=>$P,ZodEmoji:()=>dF,ZodEnum:()=>XI,ZodExactOptional:()=>oL,ZodFile:()=>eL,ZodFunction:()=>FL,ZodGUID:()=>tF,ZodIPv4:()=>TF,ZodIPv6:()=>kF,ZodIntersection:()=>RI,ZodJWT:()=>VF,ZodKSUID:()=>CF,ZodLazy:()=>jL,ZodLiteral:()=>$I,ZodMAC:()=>DF,ZodMap:()=>KI,ZodNaN:()=>xL,ZodNanoID:()=>pF,ZodNever:()=>yI,ZodNonOptional:()=>hL,ZodNull:()=>pI,ZodNullable:()=>cL,ZodNumber:()=>JF,ZodNumberFormat:()=>XF,ZodObject:()=>OI,ZodOptional:()=>iL,ZodPipe:()=>CL,ZodPrefault:()=>pL,ZodPromise:()=>NL,ZodReadonly:()=>DL,ZodRecord:()=>HI,ZodSet:()=>JI,ZodString:()=>ZP,ZodStringFormat:()=>QP,ZodSuccess:()=>_L,ZodSymbol:()=>lI,ZodTemplateLiteral:()=>kL,ZodTransform:()=>nL,ZodTuple:()=>BI,ZodType:()=>YP,ZodULID:()=>yF,ZodURL:()=>cF,ZodUUID:()=>rF,ZodUndefined:()=>dI,ZodUnion:()=>MI,ZodUnknown:()=>_I,ZodVoid:()=>xI,ZodXID:()=>xF,ZodXor:()=>PI,_ZodString:()=>XP,_default:()=>fL,_function:()=>IL,any:()=>gI,array:()=>EI,base64:()=>IF,base64url:()=>RF,bigint:()=>aI,boolean:()=>rI,catch:()=>bL,check:()=>RL,cidrv4:()=>MF,cidrv6:()=>PF,codec:()=>EL,cuid:()=>gF,cuid2:()=>vF,custom:()=>zL,date:()=>wI,describe:()=>HL,discriminatedUnion:()=>LI,e164:()=>BF,email:()=>eF,emoji:()=>fF,enum:()=>ZI,exactOptional:()=>sL,file:()=>tL,float32:()=>QF,float64:()=>$F,function:()=>IL,guid:()=>nF,hash:()=>qF,hex:()=>KF,hostname:()=>GF,httpUrl:()=>uF,instanceof:()=>WL,int:()=>ZF,int32:()=>eI,int64:()=>sI,intersection:()=>zI,ipv4:()=>EF,ipv6:()=>AF,json:()=>KL,jwt:()=>HF,keyof:()=>DI,ksuid:()=>wF,lazy:()=>ML,literal:()=>K,looseObject:()=>jI,looseRecord:()=>GI,mac:()=>OF,map:()=>qI,meta:()=>UL,nan:()=>SL,nanoid:()=>mF,nativeEnum:()=>QI,never:()=>bI,nonoptional:()=>gL,null:()=>mI,nullable:()=>lL,nullish:()=>uL,number:()=>YF,object:()=>kI,optional:()=>aL,partialRecord:()=>WI,pipe:()=>wL,prefault:()=>mL,preprocess:()=>qL,promise:()=>PL,readonly:()=>OL,record:()=>UI,refine:()=>BL,set:()=>YI,strictObject:()=>AI,string:()=>G,stringFormat:()=>WF,stringbool:()=>GL,success:()=>vL,superRefine:()=>VL,symbol:()=>uI,templateLiteral:()=>AL,transform:()=>rL,tuple:()=>VI,uint32:()=>tI,uint64:()=>cI,ulid:()=>bF,undefined:()=>fI,union:()=>NI,unknown:()=>vI,url:()=>lF,uuid:()=>iF,uuidv4:()=>aF,uuidv6:()=>oF,uuidv7:()=>sF,void:()=>SI,xid:()=>SF,xor:()=>FI}),YP=H(`ZodType`,(e,t)=>(_k.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:jN(e,`input`),output:jN(e,`output`)}}),e.toJSONSchema=AN(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(YE(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>fD(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>IP(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>RP(e,t,n),e.parseAsync=async(t,n)=>LP(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>zP(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>BP(e,t,n),e.decode=(t,n)=>VP(e,t,n),e.encodeAsync=async(t,n)=>HP(e,t,n),e.decodeAsync=async(t,n)=>UP(e,t,n),e.safeEncode=(t,n)=>WP(e,t,n),e.safeDecode=(t,n)=>GP(e,t,n),e.safeEncodeAsync=async(t,n)=>KP(e,t,n),e.safeDecodeAsync=async(t,n)=>qP(e,t,n),e.refine=(t,n)=>e.check(BL(t,n)),e.superRefine=t=>e.check(VL(t)),e.overwrite=t=>e.check(HM(t)),e.optional=()=>aL(e),e.exactOptional=()=>sL(e),e.nullable=()=>lL(e),e.nullish=()=>aL(lL(e)),e.nonoptional=t=>gL(e,t),e.array=()=>EI(e),e.or=t=>NI([e,t]),e.and=t=>zI(e,t),e.transform=t=>wL(e,rL(t)),e.default=t=>fL(e,t),e.prefault=t=>mL(e,t),e.catch=t=>bL(e,t),e.pipe=t=>wL(e,t),e.readonly=()=>OL(e),e.describe=t=>{let n=e.clone();return yj.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return yj.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return yj.get(e);let n=e.clone();return yj.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),XP=H(`_ZodString`,(e,t)=>{vk.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>NN(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(PM(...t)),e.includes=(...t)=>e.check(LM(...t)),e.startsWith=(...t)=>e.check(RM(...t)),e.endsWith=(...t)=>e.check(zM(...t)),e.min=(...t)=>e.check(MM(...t)),e.max=(...t)=>e.check(jM(...t)),e.length=(...t)=>e.check(NM(...t)),e.nonempty=(...t)=>e.check(MM(1,...t)),e.lowercase=t=>e.check(FM(t)),e.uppercase=t=>e.check(IM(t)),e.trim=()=>e.check(WM()),e.normalize=(...t)=>e.check(UM(...t)),e.toLowerCase=()=>e.check(GM()),e.toUpperCase=()=>e.check(KM()),e.slugify=()=>e.check(qM())}),ZP=H(`ZodString`,(e,t)=>{vk.init(e,t),XP.init(e,t),e.email=t=>e.check(Sj($P,t)),e.url=t=>e.check(Oj(cF,t)),e.jwt=t=>e.check(Wj(VF,t)),e.emoji=t=>e.check(kj(dF,t)),e.guid=t=>e.check(Cj(tF,t)),e.uuid=t=>e.check(wj(rF,t)),e.uuidv4=t=>e.check(Tj(rF,t)),e.uuidv6=t=>e.check(Ej(rF,t)),e.uuidv7=t=>e.check(Dj(rF,t)),e.nanoid=t=>e.check(Aj(pF,t)),e.guid=t=>e.check(Cj(tF,t)),e.cuid=t=>e.check(jj(hF,t)),e.cuid2=t=>e.check(Mj(_F,t)),e.ulid=t=>e.check(Nj(yF,t)),e.base64=t=>e.check(Vj(FF,t)),e.base64url=t=>e.check(Hj(LF,t)),e.xid=t=>e.check(Pj(xF,t)),e.ksuid=t=>e.check(Fj(CF,t)),e.ipv4=t=>e.check(Ij(TF,t)),e.ipv6=t=>e.check(Lj(kF,t)),e.cidrv4=t=>e.check(zj(jF,t)),e.cidrv6=t=>e.check(Bj(NF,t)),e.e164=t=>e.check(Uj(zF,t)),e.datetime=t=>e.check(EP(t)),e.date=t=>e.check(OP(t)),e.time=t=>e.check(AP(t)),e.duration=t=>e.check(MP(t))});function G(e){return bj(ZP,e)}var QP=H(`ZodStringFormat`,(e,t)=>{yk.init(e,t),XP.init(e,t)}),$P=H(`ZodEmail`,(e,t)=>{Sk.init(e,t),QP.init(e,t)});function eF(e){return Sj($P,e)}var tF=H(`ZodGUID`,(e,t)=>{bk.init(e,t),QP.init(e,t)});function nF(e){return Cj(tF,e)}var rF=H(`ZodUUID`,(e,t)=>{xk.init(e,t),QP.init(e,t)});function iF(e){return wj(rF,e)}function aF(e){return Tj(rF,e)}function oF(e){return Ej(rF,e)}function sF(e){return Dj(rF,e)}var cF=H(`ZodURL`,(e,t)=>{Ck.init(e,t),QP.init(e,t)});function lF(e){return Oj(cF,e)}function uF(e){return Oj(cF,{protocol:/^https?$/,hostname:EO,...W(e)})}var dF=H(`ZodEmoji`,(e,t)=>{wk.init(e,t),QP.init(e,t)});function fF(e){return kj(dF,e)}var pF=H(`ZodNanoID`,(e,t)=>{Tk.init(e,t),QP.init(e,t)});function mF(e){return Aj(pF,e)}var hF=H(`ZodCUID`,(e,t)=>{Ek.init(e,t),QP.init(e,t)});function gF(e){return jj(hF,e)}var _F=H(`ZodCUID2`,(e,t)=>{Dk.init(e,t),QP.init(e,t)});function vF(e){return Mj(_F,e)}var yF=H(`ZodULID`,(e,t)=>{Ok.init(e,t),QP.init(e,t)});function bF(e){return Nj(yF,e)}var xF=H(`ZodXID`,(e,t)=>{kk.init(e,t),QP.init(e,t)});function SF(e){return Pj(xF,e)}var CF=H(`ZodKSUID`,(e,t)=>{Ak.init(e,t),QP.init(e,t)});function wF(e){return Fj(CF,e)}var TF=H(`ZodIPv4`,(e,t)=>{Fk.init(e,t),QP.init(e,t)});function EF(e){return Ij(TF,e)}var DF=H(`ZodMAC`,(e,t)=>{Lk.init(e,t),QP.init(e,t)});function OF(e){return Rj(DF,e)}var kF=H(`ZodIPv6`,(e,t)=>{Ik.init(e,t),QP.init(e,t)});function AF(e){return Lj(kF,e)}var jF=H(`ZodCIDRv4`,(e,t)=>{Rk.init(e,t),QP.init(e,t)});function MF(e){return zj(jF,e)}var NF=H(`ZodCIDRv6`,(e,t)=>{zk.init(e,t),QP.init(e,t)});function PF(e){return Bj(NF,e)}var FF=H(`ZodBase64`,(e,t)=>{Vk.init(e,t),QP.init(e,t)});function IF(e){return Vj(FF,e)}var LF=H(`ZodBase64URL`,(e,t)=>{Uk.init(e,t),QP.init(e,t)});function RF(e){return Hj(LF,e)}var zF=H(`ZodE164`,(e,t)=>{Wk.init(e,t),QP.init(e,t)});function BF(e){return Uj(zF,e)}var VF=H(`ZodJWT`,(e,t)=>{Kk.init(e,t),QP.init(e,t)});function HF(e){return Wj(VF,e)}var UF=H(`ZodCustomStringFormat`,(e,t)=>{qk.init(e,t),QP.init(e,t)});function WF(e,t,n={}){return wN(UF,e,t,n)}function GF(e){return wN(UF,`hostname`,TO,e)}function KF(e){return wN(UF,`hex`,HO,e)}function qF(e,t){let n=`${e}_${t?.enc??`hex`}`,r=aO[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return wN(UF,n,r,t)}var JF=H(`ZodNumber`,(e,t)=>{Jk.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>PN(e,t,n,r),e.gt=(t,n)=>e.check(xM(t,n)),e.gte=(t,n)=>e.check(SM(t,n)),e.min=(t,n)=>e.check(SM(t,n)),e.lt=(t,n)=>e.check(yM(t,n)),e.lte=(t,n)=>e.check(bM(t,n)),e.max=(t,n)=>e.check(bM(t,n)),e.int=t=>e.check(ZF(t)),e.safe=t=>e.check(ZF(t)),e.positive=t=>e.check(xM(0,t)),e.nonnegative=t=>e.check(SM(0,t)),e.negative=t=>e.check(yM(0,t)),e.nonpositive=t=>e.check(bM(0,t)),e.multipleOf=(t,n)=>e.check(DM(t,n)),e.step=(t,n)=>e.check(DM(t,n)),e.finite=()=>e;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 YF(e){return Xj(JF,e)}var XF=H(`ZodNumberFormat`,(e,t)=>{Yk.init(e,t),JF.init(e,t)});function ZF(e){return Qj(XF,e)}function QF(e){return $j(XF,e)}function $F(e){return eM(XF,e)}function eI(e){return tM(XF,e)}function tI(e){return nM(XF,e)}var nI=H(`ZodBoolean`,(e,t)=>{Xk.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>FN(e,t,n,r)});function rI(e){return rM(nI,e)}var iI=H(`ZodBigInt`,(e,t)=>{Zk.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>IN(e,t,n,r),e.gte=(t,n)=>e.check(SM(t,n)),e.min=(t,n)=>e.check(SM(t,n)),e.gt=(t,n)=>e.check(xM(t,n)),e.gte=(t,n)=>e.check(SM(t,n)),e.min=(t,n)=>e.check(SM(t,n)),e.lt=(t,n)=>e.check(yM(t,n)),e.lte=(t,n)=>e.check(bM(t,n)),e.max=(t,n)=>e.check(bM(t,n)),e.positive=t=>e.check(xM(BigInt(0),t)),e.negative=t=>e.check(yM(BigInt(0),t)),e.nonpositive=t=>e.check(bM(BigInt(0),t)),e.nonnegative=t=>e.check(SM(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(DM(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function aI(e){return aM(iI,e)}var oI=H(`ZodBigIntFormat`,(e,t)=>{Qk.init(e,t),iI.init(e,t)});function sI(e){return sM(oI,e)}function cI(e){return cM(oI,e)}var lI=H(`ZodSymbol`,(e,t)=>{$k.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>LN(e,t,n,r)});function uI(e){return lM(lI,e)}var dI=H(`ZodUndefined`,(e,t)=>{eA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zN(e,t,n,r)});function fI(e){return uM(dI,e)}var pI=H(`ZodNull`,(e,t)=>{tA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>RN(e,t,n,r)});function mI(e){return dM(pI,e)}var hI=H(`ZodAny`,(e,t)=>{nA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function gI(){return fM(hI)}var _I=H(`ZodUnknown`,(e,t)=>{rA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function vI(){return pM(_I)}var yI=H(`ZodNever`,(e,t)=>{iA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>VN(e,t,n,r)});function bI(e){return mM(yI,e)}var xI=H(`ZodVoid`,(e,t)=>{aA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>BN(e,t,n,r)});function SI(e){return hM(xI,e)}var CI=H(`ZodDate`,(e,t)=>{oA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>WN(e,t,n,r),e.min=(t,n)=>e.check(SM(t,n)),e.max=(t,n)=>e.check(bM(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function wI(e){return gM(CI,e)}var TI=H(`ZodArray`,(e,t)=>{cA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nP(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(MM(t,n)),e.nonempty=t=>e.check(MM(1,t)),e.max=(t,n)=>e.check(jM(t,n)),e.length=(t,n)=>e.check(NM(t,n)),e.unwrap=()=>e.element});function EI(e,t){return JM(TI,e,t)}function DI(e){let t=e._zod.def.shape;return ZI(Object.keys(t))}var OI=H(`ZodObject`,(e,t)=>{pA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rP(e,t,n,r),KE(e,`shape`,()=>t.shape),e.keyof=()=>ZI(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:vI()}),e.loose=()=>e.clone({...e._zod.def,catchall:vI()}),e.strict=()=>e.clone({...e._zod.def,catchall:bI()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>bD(e,t),e.safeExtend=t=>xD(e,t),e.merge=t=>SD(e,t),e.pick=t=>vD(e,t),e.omit=t=>yD(e,t),e.partial=(...t)=>CD(iL,e,t[0]),e.required=(...t)=>wD(hL,e,t[0])});function kI(e,t){return new OI({type:`object`,shape:e??{},...W(t)})}function AI(e,t){return new OI({type:`object`,shape:e,catchall:bI(),...W(t)})}function jI(e,t){return new OI({type:`object`,shape:e,catchall:vI(),...W(t)})}var MI=H(`ZodUnion`,(e,t)=>{hA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iP(e,t,n,r),e.options=t.options});function NI(e,t){return new MI({type:`union`,options:e,...W(t)})}var PI=H(`ZodXor`,(e,t)=>{MI.init(e,t),_A.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iP(e,t,n,r),e.options=t.options});function FI(e,t){return new PI({type:`union`,options:e,inclusive:!1,...W(t)})}var II=H(`ZodDiscriminatedUnion`,(e,t)=>{MI.init(e,t),vA.init(e,t)});function LI(e,t,n){return new II({type:`union`,options:t,discriminator:e,...W(n)})}var RI=H(`ZodIntersection`,(e,t)=>{yA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>aP(e,t,n,r)});function zI(e,t){return new RI({type:`intersection`,left:e,right:t})}var BI=H(`ZodTuple`,(e,t)=>{SA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oP(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})});function VI(e,t,n){let r=t instanceof _k;return new BI({type:`tuple`,items:e,rest:r?t:null,...W(r?n:t)})}var HI=H(`ZodRecord`,(e,t)=>{wA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sP(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function UI(e,t,n){return new HI({type:`record`,keyType:e,valueType:t,...W(n)})}function WI(e,t,n){let r=fD(e);return r._zod.values=void 0,new HI({type:`record`,keyType:r,valueType:t,...W(n)})}function GI(e,t,n){return new HI({type:`record`,keyType:e,valueType:t,mode:`loose`,...W(n)})}var KI=H(`ZodMap`,(e,t)=>{TA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eP(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(kM(...t)),e.nonempty=t=>e.check(kM(1,t)),e.max=(...t)=>e.check(OM(...t)),e.size=(...t)=>e.check(AM(...t))});function qI(e,t,n){return new KI({type:`map`,keyType:e,valueType:t,...W(n)})}var JI=H(`ZodSet`,(e,t)=>{DA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tP(e,t,n,r),e.min=(...t)=>e.check(kM(...t)),e.nonempty=t=>e.check(kM(1,t)),e.max=(...t)=>e.check(OM(...t)),e.size=(...t)=>e.check(AM(...t))});function YI(e,t){return new JI({type:`set`,valueType:e,...W(t)})}var XI=H(`ZodEnum`,(e,t)=>{kA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>GN(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 XI({...t,checks:[],...W(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 XI({...t,checks:[],...W(r),entries:i})}});function ZI(e,t){return new XI({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...W(t)})}function QI(e,t){return new XI({type:`enum`,entries:e,...W(t)})}var $I=H(`ZodLiteral`,(e,t)=>{AA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KN(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 K(e,t){return new $I({type:`literal`,values:Array.isArray(e)?e:[e],...W(t)})}var eL=H(`ZodFile`,(e,t)=>{jA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>YN(e,t,n,r),e.min=(t,n)=>e.check(kM(t,n)),e.max=(t,n)=>e.check(OM(t,n)),e.mime=(t,n)=>e.check(VM(Array.isArray(t)?t:[t],n))});function tL(e){return iN(eL,e)}var nL=H(`ZodTransform`,(e,t)=>{MA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$N(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new AE(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(MD(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(MD(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function rL(e){return new nL({type:`transform`,transform:e})}var iL=H(`ZodOptional`,(e,t)=>{PA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function aL(e){return new iL({type:`optional`,innerType:e})}var oL=H(`ZodExactOptional`,(e,t)=>{FA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function sL(e){return new oL({type:`optional`,innerType:e})}var cL=H(`ZodNullable`,(e,t)=>{IA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function lL(e){return new cL({type:`nullable`,innerType:e})}function uL(e){return aL(lL(e))}var dL=H(`ZodDefault`,(e,t)=>{LA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function fL(e,t){return new dL({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():oD(t)}})}var pL=H(`ZodPrefault`,(e,t)=>{zA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function mL(e,t){return new pL({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():oD(t)}})}var hL=H(`ZodNonOptional`,(e,t)=>{BA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function gL(e,t){return new hL({type:`nonoptional`,innerType:e,...W(t)})}var _L=H(`ZodSuccess`,(e,t)=>{HA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>XN(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function vL(e){return new _L({type:`success`,innerType:e})}var yL=H(`ZodCatch`,(e,t)=>{UA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function bL(e,t){return new yL({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var xL=H(`ZodNaN`,(e,t)=>{WA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qN(e,t,n,r)});function SL(e){return vM(xL,e)}var CL=H(`ZodPipe`,(e,t)=>{GA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pP(e,t,n,r),e.in=t.in,e.out=t.out});function wL(e,t){return new CL({type:`pipe`,in:e,out:t})}var TL=H(`ZodCodec`,(e,t)=>{CL.init(e,t),qA.init(e,t)});function EL(e,t,n){return new TL({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}var DL=H(`ZodReadonly`,(e,t)=>{XA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function OL(e){return new DL({type:`readonly`,innerType:e})}var kL=H(`ZodTemplateLiteral`,(e,t)=>{QA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JN(e,t,n,r)});function AL(e,t){return new kL({type:`template_literal`,parts:e,...W(t)})}var jL=H(`ZodLazy`,(e,t)=>{tj.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_P(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function ML(e){return new jL({type:`lazy`,getter:e})}var NL=H(`ZodPromise`,(e,t)=>{ej.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function PL(e){return new NL({type:`promise`,innerType:e})}var FL=H(`ZodFunction`,(e,t)=>{$A.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>QN(e,t,n,r)});function IL(e){return new FL({type:`function`,input:Array.isArray(e?.input)?VI(e?.input):e?.input??EI(vI()),output:e?.output??vI()})}var LL=H(`ZodCustom`,(e,t)=>{nj.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ZN(e,t,n,r)});function RL(e){let t=new GO({check:`custom`});return t._zod.check=e,t}function zL(e,t){return _N(LL,e??(()=>!0),t)}function BL(e,t={}){return vN(LL,e,t)}function VL(e){return yN(e)}var HL=xN,UL=SN;function WL(e,t={}){let n=new LL({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...W(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}var GL=(...e)=>CN({Codec:TL,Boolean:nI,String:ZP},...e);function KL(e){let t=ML(()=>NI([G(e),YF(),rI(),mI(),EI(t),UI(G(),t)]));return t}function qL(e,t){return wL(rL(e),t)}var ace={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 oce(e){ME({customError:e})}function sce(){return ME().customError}var JL;(function(e){})(JL||={});var YL={...JP,...CP,iso:wP},cce=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`.split(`.`));function lce(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function uce(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function XL(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return YL.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return YL.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=ZL(uce(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return YL.null();if(n.length===0)return YL.never();if(n.length===1)return YL.literal(n[0]);if(n.every(e=>typeof e==`string`))return YL.enum(n);let r=n.map(e=>YL.literal(e));return r.length<2?r[0]:YL.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return YL.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>XL({...e,type:n},t));return r.length===0?YL.never():r.length===1?r[0]:YL.union(r)}if(!n)return YL.any();let r;switch(n){case`string`:{let t=YL.string();if(e.format){let n=e.format;n===`email`?t=t.check(YL.email()):n===`uri`||n===`uri-reference`?t=t.check(YL.url()):n===`uuid`||n===`guid`?t=t.check(YL.uuid()):n===`date-time`?t=t.check(YL.iso.datetime()):n===`date`?t=t.check(YL.iso.date()):n===`time`?t=t.check(YL.iso.time()):n===`duration`?t=t.check(YL.iso.duration()):n===`ipv4`?t=t.check(YL.ipv4()):n===`ipv6`?t=t.check(YL.ipv6()):n===`mac`?t=t.check(YL.mac()):n===`cidr`?t=t.check(YL.cidrv4()):n===`cidr-v6`?t=t.check(YL.cidrv6()):n===`base64`?t=t.check(YL.base64()):n===`base64url`?t=t.check(YL.base64url()):n===`e164`?t=t.check(YL.e164()):n===`jwt`?t=t.check(YL.jwt()):n===`emoji`?t=t.check(YL.emoji()):n===`nanoid`?t=t.check(YL.nanoid()):n===`cuid`?t=t.check(YL.cuid()):n===`cuid2`?t=t.check(YL.cuid2()):n===`ulid`?t=t.check(YL.ulid()):n===`xid`?t=t.check(YL.xid()):n===`ksuid`&&(t=t.check(YL.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))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?YL.number().int():YL.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)),r=t;break}case`boolean`:r=YL.boolean();break;case`null`:r=YL.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=ZL(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=ZL(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?ZL(e.additionalProperties,t):YL.any();if(Object.keys(n).length===0){r=YL.record(i,a);break}let o=YL.object(n).passthrough(),s=YL.looseRecord(i,a);r=YL.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=ZL(i[e],t),r=YL.string().regex(new RegExp(e));o.push(YL.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push(YL.object(n).passthrough()),s.push(...o),s.length===0)r=YL.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=YL.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=YL.intersection(e,s[t]);r=e}break}let o=YL.object(n);r=e.additionalProperties===!1?o.strict():typeof e.additionalProperties==`object`?o.catchall(ZL(e.additionalProperties,t)):o.passthrough();break}case`array`:{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(e=>ZL(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?ZL(i,t):void 0;r=o?YL.tuple(a).rest(o):YL.tuple(a),typeof e.minItems==`number`&&(r=r.check(YL.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(YL.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>ZL(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?ZL(e.additionalItems,t):void 0;r=a?YL.tuple(n).rest(a):YL.tuple(n),typeof e.minItems==`number`&&(r=r.check(YL.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(YL.maxLength(e.maxItems)))}else if(i!==void 0){let n=ZL(i,t),a=YL.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=YL.array(YL.any());break}default:throw Error(`Unsupported type: ${n}`)}return e.description&&(r=r.describe(e.description)),e.default!==void 0&&(r=r.default(e.default)),r}function ZL(e,t){if(typeof e==`boolean`)return e?YL.any():YL.never();let n=XL(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>ZL(e,t)),a=YL.union(i);n=r?YL.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>ZL(e,t)),a=YL.xor(i);n=r?YL.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:YL.any();else{let i=r?n:ZL(e.allOf[0],t),a=r?0:1;for(let n=a;n<e.allOf.length;n++)i=YL.intersection(i,ZL(e.allOf[n],t));n=i}e.nullable===!0&&t.version===`openapi-3.0`&&(n=YL.nullable(n)),e.readOnly===!0&&(n=YL.readonly(n));let i={};for(let t of[`$id`,`id`,`$comment`,`$anchor`,`$vocabulary`,`$dynamicRef`,`$dynamicAnchor`])t in e&&(i[t]=e[t]);for(let t of[`contentEncoding`,`contentMediaType`,`contentSchema`])t in e&&(i[t]=e[t]);for(let t of Object.keys(e))cce.has(t)||(i[t]=e[t]);return Object.keys(i).length>0&&t.registry.add(n,i),n}function dce(e,t){return typeof e==`boolean`?e?YL.any():YL.never():ZL(e,{version:lce(e,t?.defaultTarget),defs:e.$defs||e.definitions||{},refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??yj})}var fce=c({bigint:()=>gce,boolean:()=>hce,date:()=>_ce,number:()=>mce,string:()=>pce});function pce(e){return xj(ZP,e)}function mce(e){return Zj(JF,e)}function hce(e){return iM(nI,e)}function gce(e){return oM(iI,e)}function _ce(e){return _M(CI,e)}var vce=c({$brand:()=>OE,$input:()=>gj,$output:()=>hj,NEVER:()=>DE,TimePrecision:()=>Gj,ZodAny:()=>hI,ZodArray:()=>TI,ZodBase64:()=>FF,ZodBase64URL:()=>LF,ZodBigInt:()=>iI,ZodBigIntFormat:()=>oI,ZodBoolean:()=>nI,ZodCIDRv4:()=>jF,ZodCIDRv6:()=>NF,ZodCUID:()=>hF,ZodCUID2:()=>_F,ZodCatch:()=>yL,ZodCodec:()=>TL,ZodCustom:()=>LL,ZodCustomStringFormat:()=>UF,ZodDate:()=>CI,ZodDefault:()=>dL,ZodDiscriminatedUnion:()=>II,ZodE164:()=>zF,ZodEmail:()=>$P,ZodEmoji:()=>dF,ZodEnum:()=>XI,ZodError:()=>PP,ZodExactOptional:()=>oL,ZodFile:()=>eL,ZodFirstPartyTypeKind:()=>JL,ZodFunction:()=>FL,ZodGUID:()=>tF,ZodIPv4:()=>TF,ZodIPv6:()=>kF,ZodISODate:()=>DP,ZodISODateTime:()=>TP,ZodISODuration:()=>jP,ZodISOTime:()=>kP,ZodIntersection:()=>RI,ZodIssueCode:()=>ace,ZodJWT:()=>VF,ZodKSUID:()=>CF,ZodLazy:()=>jL,ZodLiteral:()=>$I,ZodMAC:()=>DF,ZodMap:()=>KI,ZodNaN:()=>xL,ZodNanoID:()=>pF,ZodNever:()=>yI,ZodNonOptional:()=>hL,ZodNull:()=>pI,ZodNullable:()=>cL,ZodNumber:()=>JF,ZodNumberFormat:()=>XF,ZodObject:()=>OI,ZodOptional:()=>iL,ZodPipe:()=>CL,ZodPrefault:()=>pL,ZodPromise:()=>NL,ZodReadonly:()=>DL,ZodRealError:()=>FP,ZodRecord:()=>HI,ZodSet:()=>JI,ZodString:()=>ZP,ZodStringFormat:()=>QP,ZodSuccess:()=>_L,ZodSymbol:()=>lI,ZodTemplateLiteral:()=>kL,ZodTransform:()=>nL,ZodTuple:()=>BI,ZodType:()=>YP,ZodULID:()=>yF,ZodURL:()=>cF,ZodUUID:()=>rF,ZodUndefined:()=>dI,ZodUnion:()=>MI,ZodUnknown:()=>_I,ZodVoid:()=>xI,ZodXID:()=>xF,ZodXor:()=>PI,_ZodString:()=>XP,_default:()=>fL,_function:()=>IL,any:()=>gI,array:()=>EI,base64:()=>IF,base64url:()=>RF,bigint:()=>aI,boolean:()=>rI,catch:()=>bL,check:()=>RL,cidrv4:()=>MF,cidrv6:()=>PF,clone:()=>fD,codec:()=>EL,coerce:()=>fce,config:()=>ME,core:()=>SP,cuid:()=>gF,cuid2:()=>vF,custom:()=>zL,date:()=>wI,decode:()=>VP,decodeAsync:()=>UP,describe:()=>HL,discriminatedUnion:()=>LI,e164:()=>BF,email:()=>eF,emoji:()=>fF,encode:()=>BP,encodeAsync:()=>HP,endsWith:()=>zM,enum:()=>ZI,exactOptional:()=>sL,file:()=>tL,flattenError:()=>RD,float32:()=>QF,float64:()=>$F,formatError:()=>zD,fromJSONSchema:()=>dce,function:()=>IL,getErrorMap:()=>sce,globalRegistry:()=>yj,gt:()=>xM,gte:()=>SM,guid:()=>nF,hash:()=>qF,hex:()=>KF,hostname:()=>GF,httpUrl:()=>uF,includes:()=>LM,instanceof:()=>WL,int:()=>ZF,int32:()=>eI,int64:()=>sI,intersection:()=>zI,ipv4:()=>EF,ipv6:()=>AF,iso:()=>wP,json:()=>KL,jwt:()=>HF,keyof:()=>DI,ksuid:()=>wF,lazy:()=>ML,length:()=>NM,literal:()=>K,locales:()=>pj,looseObject:()=>jI,looseRecord:()=>GI,lowercase:()=>FM,lt:()=>yM,lte:()=>bM,mac:()=>OF,map:()=>qI,maxLength:()=>jM,maxSize:()=>OM,meta:()=>UL,mime:()=>VM,minLength:()=>MM,minSize:()=>kM,multipleOf:()=>DM,nan:()=>SL,nanoid:()=>mF,nativeEnum:()=>QI,negative:()=>wM,never:()=>bI,nonnegative:()=>EM,nonoptional:()=>gL,nonpositive:()=>TM,normalize:()=>UM,null:()=>mI,nullable:()=>lL,nullish:()=>uL,number:()=>YF,object:()=>kI,optional:()=>aL,overwrite:()=>HM,parse:()=>IP,parseAsync:()=>LP,partialRecord:()=>WI,pipe:()=>wL,positive:()=>CM,prefault:()=>mL,preprocess:()=>qL,prettifyError:()=>HD,promise:()=>PL,property:()=>BM,readonly:()=>OL,record:()=>UI,refine:()=>BL,regex:()=>PM,regexes:()=>aO,registry:()=>vj,safeDecode:()=>GP,safeDecodeAsync:()=>qP,safeEncode:()=>WP,safeEncodeAsync:()=>KP,safeParse:()=>RP,safeParseAsync:()=>zP,set:()=>YI,setErrorMap:()=>oce,size:()=>AM,slugify:()=>qM,startsWith:()=>RM,strictObject:()=>AI,string:()=>G,stringFormat:()=>WF,stringbool:()=>GL,success:()=>vL,superRefine:()=>VL,symbol:()=>uI,templateLiteral:()=>AL,toJSONSchema:()=>yP,toLowerCase:()=>GM,toUpperCase:()=>KM,transform:()=>rL,treeifyError:()=>BD,trim:()=>WM,tuple:()=>VI,uint32:()=>tI,uint64:()=>cI,ulid:()=>bF,undefined:()=>fI,union:()=>NI,unknown:()=>vI,uppercase:()=>IM,url:()=>lF,util:()=>NE,uuid:()=>iF,uuidv4:()=>aF,uuidv6:()=>oF,uuidv7:()=>sF,void:()=>SI,xid:()=>SF,xor:()=>FI});ME(aj());var QL=vce,$L=new WeakMap,yce=new WeakMap,eR={current:[]},tR=!1,nR=0,rR=new Set,iR=new Map;function aR(e){for(let t of e){if(eR.current.includes(t))continue;eR.current.push(t),t.recompute();let e=yce.get(t);if(e)for(let t of e){let e=$L.get(t);e?.length&&aR(e)}}}function bce(e){let t={prevVal:e.prevState,currentVal:e.state};for(let n of e.listeners)n(t)}function xce(e){let t={prevVal:e.prevState,currentVal:e.state};for(let n of e.listeners)n(t)}function oR(e){if(nR>0&&!iR.has(e)&&iR.set(e,e.prevState),rR.add(e),!(nR>0)&&!tR)try{for(tR=!0;rR.size>0;){let e=Array.from(rR);rR.clear();for(let t of e)t.prevState=iR.get(t)??t.prevState,bce(t);for(let t of e){let e=$L.get(t);e&&(eR.current.push(t),aR(e))}for(let t of e){let e=$L.get(t);if(e)for(let t of e)xce(t)}}}finally{tR=!1,eR.current=[],iR.clear()}}function sR(e){nR++;try{e()}finally{if(nR--,nR===0){let e=rR.values().next().value;e&&oR(e)}}}function Sce(e){return typeof e==`function`}var Cce=class{constructor(e,t){this.listeners=new Set,this.subscribe=e=>{var t;this.listeners.add(e);let n=((t=this.options)?.onSubscribe)?.call(t,e,this);return()=>{this.listeners.delete(e),n?.()}},this.prevState=e,this.state=e,this.options=t}setState(e){var t,n;this.prevState=this.state,this.options?.updateFn?this.state=this.options.updateFn(this.prevState)(e):Sce(e)?this.state=e(this.prevState):this.state=e,(n=(t=this.options)?.onUpdate)==null||n.call(t),oR(this)}},cR=`__TSR_index`,lR=`popstate`,uR=`beforeunload`;function wce(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=fR(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[cR];i=dR(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[cR];i=dR(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[cR]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function dR(e,t){t||={};let n=pR();return{...t,key:n,__TSR_key:n,[cR]:e}}function Tce(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>fR(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=pR();t.history.replaceState({[cR]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=fR(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[cR]-l.state[cR],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=wce({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(uR,S,{capture:!0}),t.removeEventListener(lR,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(uR,S,{capture:!0}),t.addEventListener(lR,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function fR(e,t){let n=e.indexOf(`#`),r=e.indexOf(`?`),i=pR();return{href:e,pathname:e.substring(0,n>0?r>0?Math.min(n,r):n:r>0?r:e.length),hash:n>-1?e.substring(n):``,search:r>-1?e.slice(r,n===-1?void 0:n):``,state:t||{[cR]:0,key:i,__TSR_key:i}}}function pR(){return(Math.random()+1).toString(36).substring(7)}function mR(e){return e[e.length-1]}function Ece(e){return typeof e==`function`}function hR(e,t){return Ece(e)?e(t):e}var Dce=Object.prototype.hasOwnProperty;function gR(e,t){if(e===t)return e;let n=t,r=bR(e)&&bR(n);if(!r&&!(vR(e)&&vR(n)))return n;let i=r?e:_R(e);if(!i)return n;let a=r?n:_R(n);if(!a)return n;let o=i.length,s=a.length,c=r?Array(s):{},l=0;for(let t=0;t<s;t++){let i=r?t:a[t],s=e[i],u=n[i];if(s===u){c[i]=s,(r?t<o:Dce.call(e,i))&&l++;continue}if(s===null||u===null||typeof s!=`object`||typeof u!=`object`){c[i]=u;continue}let d=gR(s,u);c[i]=d,d===s&&l++}return o===s&&l===o?e:c}function _R(e){let t=[],n=Object.getOwnPropertyNames(e);for(let r of n){if(!Object.prototype.propertyIsEnumerable.call(e,r))return!1;t.push(r)}let r=Object.getOwnPropertySymbols(e);for(let n of r){if(!Object.prototype.propertyIsEnumerable.call(e,n))return!1;t.push(n)}return t}function vR(e){if(!yR(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!yR(n)||!n.hasOwnProperty(`isPrototypeOf`))}function yR(e){return Object.prototype.toString.call(e)===`[object Object]`}function bR(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function xR(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!xR(e[r],t[r],n))return!1;return!0}if(vR(e)&&vR(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!xR(e[i],t[i],n))return!1;return!0}let i=0;if(!r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;let a=0;for(let o in t)if((!r||t[o]!==void 0)&&(a++,a>i||!xR(e[o],t[o],n)))return!1;return i===a}return!1}function SR(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function CR(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}function wR(e){try{return decodeURI(e)}catch{return e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}}function TR(e,t){if(!e)return e;let n=t?RegExp(`${t.join(`|`)}`,`gi`):/%25|%5C/gi,r=0,i=``,a;for(;(a=n.exec(e))!==null;)i+=wR(e.slice(r,a.index))+a[0],r=n.lastIndex;return i+wR(r?e.slice(r):e)}var Oce=!0,ER=`Invariant failed`;function DR(e,t){if(!e){if(Oce)throw Error(ER);var n=typeof t==`function`?t():t,r=n?`${ER}: ${n}`:ER;throw Error(r)}}function OR(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var kR=4,kce=/^([^{]*)\{\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,Ace=/^([^{]*)\{-\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,jce=/^([^{]*)\{\$\}([^}]*)$/;function AR(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=a.match(jce);if(o){let r=o[1].length;return n[0]=2,n[1]=t+r,n[2]=t+r+1,n[3]=t+r+2,n[4]=t+r+3,n[5]=e.length,n}let s=a.match(Ace);if(s){let e=s[1],r=s[2],a=s[3],o=e.length;return n[0]=3,n[1]=t+o,n[2]=t+o+3,n[3]=t+o+3+r.length,n[4]=i-a.length,n[5]=i,n}let c=a.match(kce);if(c){let e=c[1],r=c[2],a=c[3],o=e.length;return n[0]=1,n[1]=t+o,n[2]=t+o+2,n[3]=t+o+2+r.length,n[4]=i-a.length,n[5]=i,n}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function jR(e,t,n,r,i,a,o){o?.(n);let s=r;{let r=n.fullPath??n.from,o=r.length,c=n.options?.caseSensitive??e;for(;s<o;){let e=AR(r,s,t),o,l=s,u=e[5];switch(s=u+1,a++,e[0]){case 0:{let t=r.substring(e[2],e[3]);if(c){let e=i.static?.get(t);if(e)o=e;else{i.static??=new Map;let e=PR(n.fullPath??n.from);e.parent=i,e.depth=a,o=e,i.static.set(t,e)}}else{let e=t.toLowerCase(),r=i.staticInsensitive?.get(e);if(r)o=r;else{i.staticInsensitive??=new Map;let t=PR(n.fullPath??n.from);t.parent=i,t.depth=a,o=t,i.staticInsensitive.set(e,t)}}break}case 1:{let t=r.substring(l,e[1]),s=r.substring(e[4],u),d=c&&!!(t||s),f=t?d?t:t.toLowerCase():void 0,p=s?d?s:s.toLowerCase():void 0,m=i.dynamic?.find(e=>e.caseSensitive===d&&e.prefix===f&&e.suffix===p);if(m)o=m;else{let e=FR(1,n.fullPath??n.from,d,f,p);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(l,e[1]),s=r.substring(e[4],u),d=c&&!!(t||s),f=t?d?t:t.toLowerCase():void 0,p=s?d?s:s.toLowerCase():void 0,m=i.optional?.find(e=>e.caseSensitive===d&&e.prefix===f&&e.suffix===p);if(m)o=m;else{let e=FR(3,n.fullPath??n.from,d,f,p);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(l,e[1]),s=r.substring(e[4],u),d=c&&!!(t||s),f=t?d?t:t.toLowerCase():void 0,p=s?d?s:s.toLowerCase():void 0,m=FR(2,n.fullPath??n.from,d,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}let l=(n.path||!n.children)&&!n.isRoot;if(l&&r.endsWith(`/`)){let e=PR(n.fullPath??n.from);e.kind=kR,e.parent=i,a++,e.depth=a,i.index=e,i=e}l&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)jR(e,t,r,s,i,a,o)}function MR(e,t){if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function NR(e){if(e.static)for(let t of e.static.values())NR(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())NR(t);if(e.dynamic?.length){e.dynamic.sort(MR);for(let t of e.dynamic)NR(t)}if(e.optional?.length){e.optional.sort(MR);for(let t of e.optional)NR(t)}if(e.wildcard?.length){e.wildcard.sort(MR);for(let t of e.wildcard)NR(t)}}function PR(e){return{kind:0,depth:0,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null}}function FR(e,t,n,r,i){return{kind:e,depth:0,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,caseSensitive:n,prefix:r,suffix:i}}function Mce(e,t){let n=PR(`/`),r=new Uint16Array(6);for(let t of e)jR(!1,r,t,1,n,0);NR(n),t.masksTree=n,t.flatCache=OR(1e3)}function Nce(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=IR(e,t.masksTree);return t.flatCache.set(e,r),r}function Pce(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=PR(`/`),jR(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),IR(r,o,n)}function Fce(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a=IR(e,t.segmentTree,n);return a&&(a.branch=zce(a.route)),t.matchCache.set(r,a),a}function Ice(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function Lce(e,t=!1,n){let r=PR(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return jR(t,i,e,1,r,0,e=>{if(n?.(e,s),DR(!(e.id in a),`Duplicate routes found with id: ${String(e.id)}`),a[e.id]=e,s!==0&&e.path){let t=Ice(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),NR(r),{processedTree:{segmentTree:r,singleCache:OR(1e3),matchCache:OR(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function IR(e,t,n=!1){let r=e.split(`/`),i=Vce(e,r,t,n);if(!i)return null;let a=Rce(e,r,i);return`**`in i&&(a[`**`]=i[`**`]),{route:i.node.route,params:a}}function Rce(e,t,n){let r=Bce(n.node),i=null,a={};for(let o=0,s=0,c=0;s<r.length;o++,s++,c++){let l=r[s],u=t[o],d=c;if(u&&(c+=u.length),l.kind===1){i??=n.node.fullPath.split(`/`);let e=i[s],t=l.prefix?.length??0;if(e.charCodeAt(t)===123){let n=l.suffix?.length??0,r=e.substring(t+2,e.length-n-1),i=u.substring(t,u.length-n);a[r]=decodeURIComponent(i)}else{let t=e.substring(1);a[t]=decodeURIComponent(u)}}else if(l.kind===3){if(n.skipped&1<<s){o--;continue}i??=n.node.fullPath.split(`/`);let e=i[s],t=l.prefix?.length??0,r=l.suffix?.length??0,c=e.substring(t+3,e.length-r-1),d=l.suffix||l.prefix?u.substring(t,u.length-r):u;d&&(a[c]=decodeURIComponent(d))}else if(l.kind===2){let t=l,n=e.substring(d+(t.prefix?.length??0),e.length-(t.suffix?.length??0)),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return a}function zce(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Bce(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Vce(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!mR(t),a=i&&e!==`/`,o=t.length-(i?1:0),s=[{node:n,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}],c=null,l=null,u=null;for(;s.length;){let e=s.pop(),{node:n,index:i,skipped:d,depth:f,statics:p,dynamics:m,optionals:h}=e;r&&n.route&&n.kind!==kR&&LR(l,e)&&(l=e);let g=i===o;if(g&&(n.route&&!a&&LR(u,e)&&(u=e),!n.optional&&!n.wildcard&&!n.index))continue;let _=g?void 0:t[i],v;if(g&&n.index){let e={node:n.index,index:i,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h};if(p===o&&!m&&!h&&!d)return e;LR(u,e)&&(u=e)}if(n.wildcard&&LR(c,e))for(let e of n.wildcard){let{prefix:n,suffix:r}=e;if(!(n&&(g||!(e.caseSensitive?_:v??=_.toLowerCase()).startsWith(n)))){if(r){if(g)continue;let n=t.slice(i).join(`/`).slice(-r.length);if((e.caseSensitive?n:n.toLowerCase())!==r)continue}c={node:e,index:o,skipped:d,depth:f,statics:p,dynamics:m,optionals:h};break}}if(n.optional){let e=d|1<<f,t=f+1;for(let r=n.optional.length-1;r>=0;r--){let a=n.optional[r];s.push({node:a,index:i,skipped:e,depth:t,statics:p,dynamics:m,optionals:h})}if(!g)for(let e=n.optional.length-1;e>=0;e--){let r=n.optional[e],{prefix:a,suffix:o}=r;if(a||o){let e=r.caseSensitive?_:v??=_.toLowerCase();if(a&&!e.startsWith(a)||o&&!e.endsWith(o))continue}s.push({node:r,index:i+1,skipped:d,depth:t,statics:p,dynamics:m,optionals:h+1})}}if(!g&&n.dynamic&&_)for(let e=n.dynamic.length-1;e>=0;e--){let t=n.dynamic[e],{prefix:r,suffix:a}=t;if(r||a){let e=t.caseSensitive?_:v??=_.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}s.push({node:t,index:i+1,skipped:d,depth:f+1,statics:p,dynamics:m+1,optionals:h})}if(!g&&n.staticInsensitive){let e=n.staticInsensitive.get(v??=_.toLowerCase());e&&s.push({node:e,index:i+1,skipped:d,depth:f+1,statics:p+1,dynamics:m,optionals:h})}if(!g&&n.static){let e=n.static.get(_);e&&s.push({node:e,index:i+1,skipped:d,depth:f+1,statics:p+1,dynamics:m,optionals:h})}}if(u&&c)return LR(c,u)?u:c;if(u)return u;if(c)return c;if(r&&l){let n=l.index;for(let e=0;e<l.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return{node:l.node,skipped:l.skipped,"**":decodeURIComponent(r)}}return null}function LR(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===kR)>(e.node.kind===kR)||t.node.kind===kR==(e.node.kind===kR)&&t.depth>e.depth))):!0}function RR(e){return zR(e.filter(e=>e!==void 0).join(`/`))}function zR(e){return e.replace(/\/{2,}/g,`/`)}function BR(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function VR(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function HR(e){return VR(BR(e))}function UR(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function Hce(e,t,n){return UR(e,n)===UR(t,n)}function Uce({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else if(i)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&mR(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&s.push(r):s=[r]:r===`..`?s.pop():r===`.`||s.push(r)}}s.length>1&&(mR(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c,l=``;for(let e=0;e<s.length;e++){e>0&&(l+=`/`);let t=s[e];if(!t)continue;c=AR(t,0,c);let n=c[0];if(n===0){l+=t;continue}let r=c[5],i=t.substring(0,c[1]),a=t.substring(c[4],r),o=t.substring(c[2],c[3]);n===1?l+=i||a?`${i}{$${o}}${a}`:`$${o}`:n===2?l+=i||a?`${i}{$}${a}`:`$`:l+=`${i}{-$${o}}${a}`}l=zR(l);let u=l||`/`;return o&&r&&r.set(o,u),u}function WR(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?encodeURI(r):Wce(r,n):r}function GR({path:e,params:t,decodeCharMap:n}){let r=!1,i={};if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:i,isMissingParams:r};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:i,isMissingParams:r};let a=e.length,o=0,s,c=``;for(;o<a;){let a=o;s=AR(e,a,s);let l=s[5];if(o=l+1,a===l)continue;let u=s[0];if(u===0){c+=`/`+e.substring(a,l);continue}if(u===2){let o=t._splat;i._splat=o,i[`*`]=o;let u=e.substring(a,s[1]),d=e.substring(s[4],l);if(!o){r=!0,(u||d)&&(c+=`/`+u+d);continue}let f=WR(`_splat`,t,n);c+=`/`+u+f+d;continue}if(u===1){let o=e.substring(s[2],s[3]);!r&&!(o in t)&&(r=!0),i[o]=t[o];let u=e.substring(a,s[1]),d=e.substring(s[4],l),f=WR(o,t,n)??`undefined`;c+=`/`+u+f+d;continue}if(u===3){let r=e.substring(s[2],s[3]),o=t[r];if(o==null)continue;i[r]=o;let u=e.substring(a,s[1]),d=e.substring(s[4],l),f=WR(r,t,n)??``;c+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(c+=`/`),{usedParams:i,interpolatedPath:c||`/`,isMissingParams:r}}function Wce(e,t){let n=encodeURIComponent(e);if(t)for(let[e,r]of t)n=n.replaceAll(e,r);return n}function KR(e){return!!e?.isNotFound}function Gce(){try{if(typeof window<`u`&&typeof window.sessionStorage==`object`)return window.sessionStorage}catch{}}var qR=`tsr-scroll-restoration-v1_3`,Kce=(e,t)=>{let n;return(...r)=>{n||=setTimeout(()=>{e(...r),n=null},t)}};function qce(){let e=Gce();if(!e)return null;let t=e.getItem(qR),n=t?JSON.parse(t):{};return{state:n,set:t=>(n=hR(t,n)||n,e.setItem(qR,JSON.stringify(n)))}}var JR=qce(),YR=e=>e.state.__TSR_key||e.href;function Jce(e){let t=[],n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(` > `)}`.toLowerCase()}var XR=!1;function ZR({storageKey:e,key:t,behavior:n,shouldScrollRestoration:r,scrollToTopSelectors:i,location:a}){let o;try{o=JSON.parse(sessionStorage.getItem(e)||`{}`)}catch(e){console.error(e);return}let s=t||window.history.state?.__TSR_key,c=o[s];XR=!0;scroll:{if(r&&c&&Object.keys(c).length>0){for(let e in c){let t=c[e];if(e===`window`)window.scrollTo({top:t.scrollY,left:t.scrollX,behavior:n});else if(e){let n=document.querySelector(e);n&&(n.scrollLeft=t.scrollX,n.scrollTop=t.scrollY)}}break scroll}let e=(a??window.location).hash.split(`#`,2)[1];if(e){let t=window.history.state?.__hashScrollIntoViewOptions??!0;if(t){let n=document.getElementById(e);n&&n.scrollIntoView(t)}break scroll}let t={top:0,left:0,behavior:n};if(window.scrollTo(t),i)for(let e of i){if(e===`window`)continue;let n=typeof e==`function`?e():document.querySelector(e);n&&n.scrollTo(t)}}XR=!1}function Yce(e,t){if(!JR&&!e.isServer||((t??e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isServer||e.isScrollRestorationSetup||!JR))return;e.isScrollRestorationSetup=!0,XR=!1;let n=e.options.getScrollRestorationKey||YR;window.history.scrollRestoration=`manual`,typeof document<`u`&&document.addEventListener(`scroll`,Kce(t=>{if(XR||!e.isScrollRestoring)return;let r=``;if(t.target===document||t.target===window)r=`window`;else{let e=t.target.getAttribute(`data-scroll-restoration-id`);r=e?`[data-scroll-restoration-id="${e}"]`:Jce(t.target)}let i=n(e.state.location);JR.set(e=>{let t=e[i]||={},n=t[r]||={};if(r===`window`)n.scrollX=window.scrollX||0,n.scrollY=window.scrollY||0;else if(r){let e=document.querySelector(r);e&&(n.scrollX=e.scrollLeft||0,n.scrollY=e.scrollTop||0)}return e})},100),!0),e.subscribe(`onRendered`,t=>{let r=n(t.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation})||(ZR({storageKey:qR,key:r,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&JR.set(e=>(e[r]||={},e)))})}function Xce(e){if(typeof document<`u`&&document.querySelector){let t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==``){let n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function Zce(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function QR(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function Qce(e){let t=new URLSearchParams(e),n={};for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=QR(r):Array.isArray(t)?t.push(QR(r)):n[e]=[t,QR(r)]}return n}var $ce=tle(JSON.parse),ele=nle(JSON.stringify,JSON.parse);function tle(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=Qce(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function nle(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=Zce(e,r);return t?`?${t}`:``}}var $R=`__root__`;function rle(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function ez(e){return e instanceof Response&&!!e.options}var tz=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},nz=(e,t)=>!!(e.preload&&!e.router.state.matches.some(e=>e.id===t)),rz=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},iz=(e,t)=>{let n=e.router.routesById[t.routeId??``]??e.router.routeTree;!n.options.notFoundComponent&&e.router.options?.defaultNotFoundComponent&&(n.options.notFoundComponent=e.router.options.defaultNotFoundComponent),DR(n.options.notFoundComponent,`No notFoundComponent found. Please set a notFoundComponent on your route or provide a defaultNotFoundComponent to the router.`);let r=e.matches.find(e=>e.routeId===n.id);DR(r,`Could not find match for route: `+n.id),e.updateMatch(r.id,e=>({...e,status:`notFound`,error:t,isFetching:!1})),t.routerCode===`BEFORE_LOAD`&&n.parentRoute&&(t.routeId=n.parentRoute.id,iz(e,t))},az=(e,t,n)=>{if(!(!ez(n)&&!KR(n))){if(ez(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;let r=ez(n)?`redirected`:`notFound`;t._nonReactive.error=n,e.updateMatch(t.id,e=>({...e,status:r,isFetching:!1,error:n})),KR(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()}throw ez(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(iz(e,n),n)}},oz=(e,t)=>{let n=e.router.getMatch(t);return!!(!e.router.isServer&&n._nonReactive.dehydrated||e.router.isServer&&n.ssr===!1)},sz=(e,t,n,r)=>{let{id:i,routeId:a}=e.matches[t],o=e.router.looseRoutesById[a];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,az(e,e.router.getMatch(i),n);try{o.options.onError?.(n)}catch(t){n=t,az(e,e.router.getMatch(i),n)}e.updateMatch(i,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},ile=(e,t,n,r)=>{let i=e.router.getMatch(t),a=e.matches[n-1]?.id,o=a?e.router.getMatch(a):void 0;if(e.router.isShell()){i.ssr=r.id===$R;return}if(o?.ssr===!1){i.ssr=!1;return}let s=e=>e===!0&&o?.ssr===`data-only`?`data-only`:e,c=e.router.options.defaultSsr??!0;if(r.options.ssr===void 0){i.ssr=s(c);return}if(typeof r.options.ssr!=`function`){i.ssr=s(r.options.ssr);return}let{search:l,params:u}=i,d={search:pz(l,i.searchError),params:pz(u,i.paramsError),location:e.location,matches:e.matches.map(e=>({index:e.index,pathname:e.pathname,fullPath:e.fullPath,staticData:e.staticData,id:e.id,routeId:e.routeId,search:pz(e.search,e.searchError),params:pz(e.params,e.paramsError),ssr:e.ssr}))},f=r.options.ssr(d);if(CR(f))return f.then(e=>{i.ssr=s(e??c)});i.ssr=s(f??c)},cz=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!e.router.isServer&&!nz(e,t)&&(n.options.loader||n.options.beforeLoad||mz(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{tz(e)},i);r._nonReactive.pendingTimeout=t}},ale=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;cz(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&az(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},ole=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=SR(()=>{a?.resolve()});let{paramsError:o,searchError:s}=i;o&&sz(e,n,o,`PARSE_PARAMS`),s&&sz(e,n,s,`VALIDATE_SEARCH`),cz(e,t,r,i);let c=new AbortController,l=e.matches[n-1]?.id;(l?e.router.getMatch(l):void 0)?.context??e.router.options.context;let u=!1,d=()=>{u||(u=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},f=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){sR(()=>{d(),f()});return}i._nonReactive.beforeLoadPromise=SR();let p={...rz(e,n,!1),...i.__routeContext},{search:m,params:h,cause:g}=i,_=nz(e,t),v={search:m,abortController:c,params:h,preload:_,context:p,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:_?`preload`:g,matches:e.matches,...e.router.options.additionalContext},y=r=>{if(r===void 0){sR(()=>{d(),f()});return}(ez(r)||KR(r))&&(d(),sz(e,n,r,`BEFORE_LOAD`)),sR(()=>{d(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),f()})},b;try{if(b=r.options.beforeLoad(v),CR(b))return d(),b.catch(t=>{sz(e,n,t,`BEFORE_LOAD`)}).then(y)}catch(t){d(),sz(e,n,t,`BEFORE_LOAD`)}y(b)},sle=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>{if(e.router.isServer){let r=ile(e,n,t,i);if(CR(r))return r.then(s)}return s()},o=()=>ole(e,n,t,i),s=()=>{if(oz(e,n))return;let t=ale(e,n,i);return CR(t)?t.then(o):o()};return a()},cle=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},lz=(e,t,n,r)=>{let i=e.matchPromises[n-1],{params:a,loaderDeps:o,abortController:s,cause:c}=e.router.getMatch(t),l=rz(e,n),u=nz(e,t);return{params:a,deps:o,preload:!!u,parentMatchPromise:i,abortController:s,context:l,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:u?`preload`:c,route:r,...e.router.options.additionalContext}},uz=async(e,t,n,r)=>{try{let i=e.router.getMatch(t);try{(!e.router.isServer||i.ssr===!0)&&fz(r);let a=r.options.loader?.(lz(e,t,n,r)),o=r.options.loader&&CR(a);if((o||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||i._nonReactive.minPendingPromise)&&e.updateMatch(t,e=>({...e,isFetching:`loader`})),r.options.loader){let n=o?await a:a;az(e,e.router.getMatch(t),n),n!==void 0&&e.updateMatch(t,e=>({...e,loaderData:n}))}r._lazyPromise&&await r._lazyPromise;let s=i._nonReactive.minPendingPromise;s&&await s,r._componentsPromise&&await r._componentsPromise,e.updateMatch(t,e=>({...e,error:void 0,status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(n){let a=n,o=i._nonReactive.minPendingPromise;o&&await o,KR(n)&&await r.options.notFoundComponent?.preload?.(),az(e,e.router.getMatch(t),n);try{r.options.onError?.(n)}catch(n){a=n,az(e,e.router.getMatch(t),n)}e.updateMatch(t,e=>({...e,error:a,status:`error`,isFetching:!1}))}}catch(n){let r=e.router.getMatch(t);r&&(r._nonReactive.loaderPromise=void 0),az(e,r,n)}},lle=async(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=!1,a=!1,o=e.router.looseRoutesById[r],s=()=>{e.updateMatch(n,n=>({...n,context:rz(e,t)}))};if(oz(e,n)){if(e.router.isServer)return e.router.getMatch(n)}else{let r=e.router.getMatch(n);if(r._nonReactive.loaderPromise){if(r.status===`success`&&!e.sync&&!r.preload)return r;await r._nonReactive.loaderPromise;let t=e.router.getMatch(n),i=t._nonReactive.error||t.error;i&&az(e,t,i)}else{let c=Date.now()-r.updatedAt,l=nz(e,n),u=l?o.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:o.options.staleTime??e.router.options.defaultStaleTime??0,d=o.options.shouldReload,f=typeof d==`function`?d(lz(e,n,t,o)):d,p=!!l&&!e.router.state.matches.some(e=>e.id===n),m=e.router.getMatch(n);m._nonReactive.loaderPromise=SR(),p!==m.preload&&e.updateMatch(n,e=>({...e,preload:p}));let{status:h,invalid:g}=m;i=h===`success`&&(g||(f??c>u)),l&&o.options.preload===!1||(i&&!e.sync?(a=!0,(async()=>{try{await uz(e,n,t,o),s();let r=e.router.getMatch(n);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0}catch(t){ez(t)&&await e.router.navigate(t.options)}})()):(h!==`success`||i&&e.sync)&&await uz(e,n,t,o))}}let c=e.router.getMatch(n);a||(c._nonReactive.loaderPromise?.resolve(),c._nonReactive.loadPromise?.resolve()),clearTimeout(c._nonReactive.pendingTimeout),c._nonReactive.pendingTimeout=void 0,a||(c._nonReactive.loaderPromise=void 0),c._nonReactive.dehydrated=void 0,a||s();let l=a?c.isFetching:!1;return l!==c.isFetching||c.invalid!==!1?(e.updateMatch(n,e=>({...e,isFetching:l,invalid:!1})),e.router.getMatch(n)):c};async function dz(e){let t=Object.assign(e,{matchPromises:[]});!t.router.isServer&&t.router.state.matches.some(e=>e._forcePending)&&tz(t);try{for(let e=0;e<t.matches.length;e++){let n=sle(t,e);CR(n)&&await n}let e=t.firstBadMatchIndex??t.matches.length;for(let n=0;n<e;n++)t.matchPromises.push(lle(t,n));let n=(await Promise.allSettled(t.matchPromises)).filter(e=>e.status===`rejected`).map(e=>e.reason),r;for(let e of n){if(ez(e))throw e;!r&&KR(e)&&(r=e)}for(let e of t.matches){let{id:n,routeId:r}=e,i=t.router.looseRoutesById[r];try{let e=cle(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}if(r)throw r;let i=tz(t);CR(i)&&await i}catch(e){if(KR(e)&&!t.preload){let n=tz(t);throw CR(n)&&await n,e}if(ez(e))throw e}return t.matches}async function fz(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){let t=()=>{let t=[];for(let n of hz){let r=e.options[n]?.preload;r&&t.push(r())}if(t.length)return Promise.all(t).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function pz(e,t){return t?{status:`error`,error:t}:{status:`success`,value:e}}function mz(e){for(let t of hz)if(e.options[t]?.preload)return!0;return!1}var hz=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function ule(e){return{input:({url:t})=>{for(let n of e)t=gz(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=_z(e[n],t);return t}}}function dle(e){let t=HR(e.basepath),n=`/${t}`,r=`${n}/`,i=e.caseSensitive?n:n.toLowerCase(),a=e.caseSensitive?r:r.toLowerCase();return{input:({url:t})=>{let r=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return r===i?t.pathname=`/`:r.startsWith(a)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=RR([`/`,t,e.pathname]),e)}}function gz(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function _z(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function vz(e){let t=e.resolvedLocation,n=e.location;return{fromLocation:t,toLocation:n,pathChanged:t?.pathname!==n.pathname,hrefChanged:t?.href!==n.href,hashChanged:t?.hash!==n.hash}}var fle=class{constructor(e){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=e=>e(),this.update=e=>{e.notFoundRoute&&console.warn(`The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.`);let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(e=>[encodeURIComponent(e),e])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=Tce())),this.origin=this.options.origin,this.origin||(!this.isServer&&window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new Cce(mle(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(e=>![`redirected`].includes(e.status))}}}),Yce(this));let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[];HR(o)!==``&&e.push(dle({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:ule(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a)`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let{routesById:e,routesByPath:t,processedTree:n}=Lce(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});this.options.routeMasks&&Mce(this.options.routeMasks,n),this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({href:e,state:n})=>{let r=new URL(e,this.origin),i=gz(this.rewrite,r),a=this.options.parseSearch(i.search),o=this.options.stringifySearch(a);return i.search=o,{href:i.href.replace(i.origin,``),publicHref:e,url:i,pathname:TR(i.pathname),searchStr:o,search:gR(t?.search,a),hash:i.hash.split(`#`).reverse()[0]??``,state:gR(t?.state,n)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathCache=OR(1e3),this.resolvePathWithBase=(e,t)=>Uce({base:e,to:zR(t),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>hle({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{let e=this.state.matches.filter(e=>e.status===`pending`),t=this.state.matches.filter(e=>e.isFetching===`loader`);new Set([...this.state.pendingMatches??[],...e,...t]).forEach(e=>{this.cancelMatch(e.id)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=mR(this.matchRoutes(n,{_buildLocation:!0}));t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=this.resolvePathWithBase(i,`.`),o=r.search,s={...r.params},c=t.to?this.resolvePathWithBase(a,`${t.to}`):this.resolvePathWithBase(a,`.`),l=t.params===!1||t.params===null?{}:(t.params??!0)===!0?s:Object.assign(s,hR(t.params,s)),u=GR({path:c,params:l}).interpolatedPath,d=this.matchRoutes(u,void 0,{_buildLocation:!0}).map(e=>this.looseRoutesById[e.routeId]);if(Object.keys(l).length>0)for(let e of d){let t=e.options.params?.stringify??e.options.stringifyParams;t&&Object.assign(l,t(l))}let f=e.leaveParams?c:TR(GR({path:c,params:l,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath),p=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};d.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,bz(t.options.validateSearch,{...e,...p}))}catch{}}),p=e}p=gle({search:p,dest:t,destRoutes:d,_includeValidateSearch:e._includeValidateSearch}),p=gR(o,p);let m=this.options.stringifySearch(p),h=t.hash===!0?n.hash:t.hash?hR(t.hash,n.hash):void 0,g=h?`#${h}`:``,_=t.state===!0?n.state:t.state?hR(t.state,n.state):{};_=gR(n.state,_);let v=`${f}${m}${g}`,y=new URL(v,this.origin),b=_z(this.rewrite,y);return{publicHref:b.pathname+b.search+b.hash,href:v,url:b,pathname:f,search:p,searchStr:m,state:_,hash:h??``,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n={};if(this.options.routeMasks){let o=Nce(i.pathname,this.processedTree);if(o){Object.assign(n,o.params);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?{}:(s??!0)===!0?n:Object.assign(n,hR(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=({viewTransition:e,ignoreBlocker:t,...n})=>{let r=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=xR(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},i=VR(this.latestLocation.href)===VR(n.href),a=this.commitLocationPromise;if(this.commitLocationPromise=SR(()=>{a?.resolve()}),i&&r())this.load();else{let{maskedLocation:r,hashScrollIntoView:i,url:a,...o}=n;r&&(o={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=i??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,this.history[n.replace?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this.resetNextScroll=n.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=fR(a,{__TSR_index:e?t:t+1});o.to=n.pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(!n||!r&&!a){let t=this.buildLocation({to:e,...i});n??=t.url.href,r??=t.url.href}let t=!a&&r?r:n;if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){let e=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(this.latestLocation.publicHref!==e.publicHref||e.url.origin!==this.origin)throw rle({href:this.getParsedLocationHref(e)})}let e=this.matchRoutes(this.latestLocation);this.__store.setState(t=>({...t,status:`pending`,statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:e,cachedMatches:t.cachedMatches.filter(t=>!e.some(e=>e.id===t.id))}))},this.load=async e=>{let t,n,r;for(r=new Promise(i=>{this.startTransition(async()=>{try{this.beforeLoad();let t=this.latestLocation,n=this.state.resolvedLocation;this.state.redirect||this.emit({type:`onBeforeNavigate`,...vz({resolvedLocation:n,location:t})}),this.emit({type:`onBeforeLoad`,...vz({resolvedLocation:n,location:t})}),await dz({router:this,sync:e?.sync,matches:this.state.pendingMatches,location:t,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=[],t=[],n=[];sR(()=>{this.__store.setState(r=>{let i=r.matches,a=r.pendingMatches||r.matches;return e=i.filter(e=>!a.some(t=>t.id===e.id)),t=a.filter(e=>!i.some(t=>t.id===e.id)),n=a.filter(e=>i.some(t=>t.id===e.id)),{...r,isLoading:!1,loadedAt:Date.now(),matches:a,pendingMatches:void 0,cachedMatches:[...r.cachedMatches,...e.filter(e=>e.status!==`error`&&e.status!==`notFound`)]}}),this.clearExpiredCache()}),[[e,`onLeave`],[t,`onEnter`],[n,`onStay`]].forEach(([e,t])=>{e.forEach(e=>{this.looseRoutesById[e.routeId].options[t]?.(e)})})})})}})}catch(e){ez(e)?(t=e,this.isServer||this.navigate({...t.options,replace:!0,ignoreBlocker:!0})):KR(e)&&(n=e),this.__store.setState(e=>({...e,statusCode:t?t.status:n?404:e.matches.some(e=>e.status===`error`)?500:200,redirect:t}))}this.latestLoadPromise===r&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),i()})}),this.latestLoadPromise=r,await r;this.latestLoadPromise&&r!==this.latestLoadPromise;)await this.latestLoadPromise;let i;this.hasNotFoundMatch()?i=404:this.__store.state.matches.some(e=>e.status===`error`)&&(i=500),i!==void 0&&this.__store.setState(e=>({...e,statusCode:i}))},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.state.resolvedLocation,a=typeof t.types==`function`?t.types(vz({resolvedLocation:i,location:r})):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.state.pendingMatches?.some(t=>t.id===e)?`pendingMatches`:this.state.matches.some(t=>t.id===e)?`matches`:this.state.cachedMatches.some(t=>t.id===e)?`cachedMatches`:``;n&&this.__store.setState(r=>({...r,[n]:r[n]?.map(n=>n.id===e?t(n):n)}))})},this.getMatch=e=>{let t=t=>t.id===e;return this.state.cachedMatches.find(t)??this.state.pendingMatches?.find(t)??this.state.matches.find(t)},this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.__store.setState(e=>({...e,matches:e.matches.map(t),cachedMatches:e.cachedMatches.map(t),pendingMatches:e.pendingMatches?.map(t)})),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>{let t=e.url.href;return this.origin&&e.url.origin===this.origin&&(t=t.replace(this.origin,``)||`/`),t},this.resolveRedirect=e=>{if(!e.options.href){let t=this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=t.href,e.headers.set(`Location`,n)}return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.__store.setState(e=>({...e,cachedMatches:[]})):this.__store.setState(e=>({...e,cachedMatches:e.cachedMatches.filter(e=>!t(e))}))},this.clearExpiredCache=()=>{this.clearCache({filter:e=>{let t=this.looseRoutesById[e.routeId];if(!t.options.loader)return!0;let n=(e.preload?t.options.preloadGcTime??this.options.defaultPreloadGcTime:t.options.gcTime??this.options.defaultGcTime)??300*1e3;return e.status===`error`?!0:Date.now()-e.updatedAt>=n}})},this.loadRouteChunk=fz,this.preloadRoute=async e=>{let t=this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(e=>e.id)),i=new Set([...r,...this.state.cachedMatches.map(e=>e.id)]);sR(()=>{n.forEach(e=>{i.has(e.id)||this.__store.setState(t=>({...t,cachedMatches:[...t.cachedMatches,e]}))})});try{return n=await dz({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(ez(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});KR(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.state.status!==`pending`)return!1;let i=(t?.pending===void 0?!this.state.isLoading:t.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,a=Pce(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!xR(a.params,e.params,{partial:!0})?!1:t?.includeSearch??!0?xR(i.search,r.search,{partial:!0})?a.params:!1:a.params},this.hasNotFoundMatch=()=>this.__store.state.matches.some(e=>e.status===`notFound`||e.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??ele,parseSearch:e.parseSearch??$ce}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:VR(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=(()=>{if(o){if(this.options.notFoundMode!==`root`)for(let e=a.length-1;e>=0;e--){let t=a[e];if(t.children)return t.id}return $R}})(),c=[],l=e=>e?.id?e.context??this.options.context??void 0:this.options.context??void 0;return a.forEach((n,r)=>{let a=c[r-1],[o,u,d]=(()=>{let r=a?.search??e.search,i=a?._strictSearch??void 0;try{let e=bz(n.options.validateSearch,{...r})??void 0;return[{...r,...e},{...i,...e},void 0]}catch(e){let n=e;if(e instanceof yz||(n=new yz(e.message,{cause:e})),t?.throwOnError)throw n;return[r,{},n]}})(),f=n.options.loaderDeps?.({search:o})??``,p=f?JSON.stringify(f):``,{interpolatedPath:m,usedParams:h}=GR({path:n.fullPath,params:i,decodeCharMap:this.pathParamsDecodeCharMap}),g=n.id+m+p,_=this.getMatch(g),v=this.state.matches.find(e=>e.routeId===n.id),y=_?._strictParams??h,b;if(!_){let e=n.options.params?.parse??n.options.parseParams;if(e)try{Object.assign(y,e(y))}catch(e){if(b=KR(e)||ez(e)?e:new ple(e.message,{cause:e}),t?.throwOnError)throw b}}Object.assign(i,y);let x=v?`stay`:`enter`,S;if(_)S={..._,cause:x,params:v?gR(v.params,i):i,_strictParams:y,search:gR(v?v.search:_.search,o),_strictSearch:u};else{let e=n.options.loader||n.options.beforeLoad||n.lazyFn||mz(n)?`pending`:`success`;S={id:g,ssr:this.isServer?void 0:n.options.ssr,index:r,routeId:n.id,params:v?gR(v.params,i):i,_strictParams:y,pathname:m,updatedAt:Date.now(),search:v?gR(v.search,o):o,_strictSearch:u,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:b,__routeContext:void 0,_nonReactive:{loadPromise:SR()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:x,loaderDeps:v?gR(v.loaderDeps,f):f,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:n.options.staticData||{},fullPath:n.fullPath}}t?.preload||(S.globalNotFound=s===n.id),S.searchError=d;let C=l(a);S.context={...C,...S.__routeContext,...S.__beforeLoadContext},c.push(S)}),c.forEach((n,r)=>{let i=this.looseRoutesById[n.routeId];if(!this.getMatch(n.id)&&t?._buildLocation!==!0){let t=c[r-1],a=l(t);if(i.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c};n.__routeContext=i.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}),c}},yz=class extends Error{},ple=class extends Error{};function mle(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function bz(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new yz(`Async validation not supported`);if(n.issues)throw new yz(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function hle({pathname:e,routesById:t,processedTree:n}){let r={},i=VR(e),a,o=Fce(i,n,!0);return o&&(a=o.route,Object.assign(r,o.params)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function gle({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){let i=n.reduce((e,t)=>{let n=[];return`search`in t.options?t.options.search?.middlewares&&n.push(...t.options.search.middlewares):(t.options.preSearchFilters||t.options.postSearchFilters)&&n.push(({search:e,next:n})=>{let r=e;`preSearchFilters`in t.options&&t.options.preSearchFilters&&(r=t.options.preSearchFilters.reduce((e,t)=>t(e),e));let i=n(r);return`postSearchFilters`in t.options&&t.options.postSearchFilters?t.options.postSearchFilters.reduce((e,t)=>t(e),i):i}),r&&t.options.validateSearch&&n.push(({search:e,next:n})=>{let r=n(e);try{return{...r,...bz(t.options.validateSearch,r)??void 0}}catch{return r}}),e.concat(n)},[])??[];i.push(({search:e})=>t.search?t.search===!0?e:hR(t.search,e):{});let a=(e,t)=>{if(e>=i.length)return t;let n=i[e];return n({search:t,next:t=>a(e+1,t)})};return a(0,e)}var _le=`Error preloading route! ☝️`,xz=class{constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=$R:this.parentRoute||DR(!1,`Child Route instances must pass a 'getParentRoute: () => ParentRoute' option that returns a Route instance.`);let r=n?$R:t?.path;r&&r!==`/`&&(r=BR(r));let i=t?.id||r,a=n?$R:RR([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=RR([`/`,a]));let o=a===`__root__`?`/`:RR([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=o},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}},vle=class extends xz{constructor(e){super(e)}};function Sz(e){let t=e.errorComponent??Cz;return(0,_.jsx)(yle,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?g.createElement(t,{error:n,reset:r}):e.children})}var yle=class extends g.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(e){return{resetKey:e.getResetKey()}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidUpdate(e,t){t.error&&t.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.resetKey===this.props.getResetKey()?this.state.error:null,reset:()=>{this.reset()}})}};function Cz({error:e}){let[t,n]=g.useState(!1);return(0,_.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,_.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,_.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,_.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,_.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,_.jsx)(`div`,{children:(0,_.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,_.jsx)(`code`,{children:e.message}):null})}):null]})}function ble({children:e,fallback:t=null}){return xle()?(0,_.jsx)(g.Fragment,{children:e}):(0,_.jsx)(g.Fragment,{children:t})}function xle(){return g.useSyncExternalStore(Sle,()=>!0,()=>!1)}function Sle(){return()=>{}}var Cle=!0;function wz(e,t){if(!Cle){if(e)return;var n=`Warning: `+t;typeof console<`u`&&console.warn(n);try{throw Error(n)}catch{}}}var wle=s((e=>{var t=p(),n=yo();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),Tz=u(s(((e,t)=>{t.exports=wle()}))(),1);function Tle(e,t=e=>e,n={}){let r=n.equal??Ele;return(0,Tz.useSyncExternalStoreWithSelector)(e.subscribe,()=>e.state,()=>e.state,t,r)}function Ele(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();let n=Ez(e);if(n.length!==Ez(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}function Ez(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}var Dz=g.createContext(null);function Oz(){return typeof document>`u`?Dz:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Dz,Dz)}function kz(e){let t=g.useContext(Oz());return wz(!((e?.warn??!0)&&!t),`useRouter must be used inside a <RouterProvider> component!`),t}function Az(e){let t=kz({warn:e?.router===void 0}),n=e?.router||t,r=(0,g.useRef)(void 0);return Tle(n.__store,t=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){let n=gR(r.current,e.select(t));return r.current=n,n}return e.select(t)}return t})}var jz=g.createContext(void 0),Dle=g.createContext(void 0);function Mz(e){let t=g.useContext(e.from?Dle:jz);return Az({select:n=>{let r=n.matches.find(n=>e.from?e.from===n.routeId:n.id===t);if(DR(!((e.shouldThrow??!0)&&!r),`Could not find ${e.from?`an active match from "${e.from}"`:`a nearest match!`}`),r!==void 0)return e.select?e.select(r):r},structuralSharing:e.structuralSharing})}function Nz(e){return Mz({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Pz(e){let{select:t,...n}=e;return Mz({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Fz(e){return Mz({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Iz(e){return Mz({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}var Lz=typeof window<`u`?g.useLayoutEffect:g.useEffect;function Rz(e){let t=g.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function Ole(e,t,n={},r={}){g.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!=`function`)return;let i=new IntersectionObserver(([e])=>{t(e)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function kle(e){let t=g.useRef(null);return g.useImperativeHandle(e,()=>t.current,[]),t}function zz(e){let t=kz();return g.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Ale(e,t){let n=kz(),[r,i]=g.useState(!1),a=g.useRef(!1),o=kle(t),{activeProps:s,inactiveProps:c,activeOptions:l,to:u,preload:d,preloadDelay:f,hashScrollIntoView:p,replace:m,startTransition:h,resetScroll:_,viewTransition:v,children:y,target:b,disabled:x,style:S,className:C,onClick:w,onFocus:T,onMouseEnter:E,onMouseLeave:D,onTouchStart:O,ignoreBlocker:k,params:A,search:j,hash:M,state:N,mask:P,reloadDocument:F,unsafeRelative:ee,from:I,_fromLocation:L,...te}=e,z=Az({select:e=>e.location.search,structuralSharing:!0}),B=e.from,ne=g.useMemo(()=>({...e,from:B}),[n,z,B,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),V=g.useMemo(()=>n.buildLocation({...ne}),[n,ne]),re=g.useMemo(()=>{if(x)return;let e=V.maskedLocation?V.maskedLocation.url.href:V.url.href,t=!1;return n.origin&&(e.startsWith(n.origin)?e=n.history.createHref(e.replace(n.origin,``))||`/`:t=!0),{href:e,external:t}},[x,V.maskedLocation,V.url,n.origin,n.history]),ie=g.useMemo(()=>{if(re?.external)return re.href;try{return new URL(u),u}catch{}},[u,re]),ae=e.reloadDocument||ie?!1:d??n.options.defaultPreload,oe=f??n.options.defaultPreloadDelay??0,se=Az({select:e=>{if(ie)return!1;if(l?.exact){if(!Hce(e.location.pathname,V.pathname,n.basepath))return!1}else{let t=UR(e.location.pathname,n.basepath),r=UR(V.pathname,n.basepath);if(!(t.startsWith(r)&&(t.length===r.length||t[r.length]===`/`)))return!1}return(l?.includeSearch??!0)&&!xR(e.location.search,V.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:l?.includeHash?e.location.hash===V.hash:!0}}),ce=g.useCallback(()=>{n.preloadRoute({...ne}).catch(e=>{console.warn(e),console.warn(_le)})},[n,ne]);Ole(o,g.useCallback(e=>{e?.isIntersecting&&ce()},[ce]),Fle,{disabled:!!x||ae!==`viewport`}),g.useEffect(()=>{a.current||!x&&ae===`render`&&(ce(),a.current=!0)},[x,ce,ae]);let le=e=>{let t=e.currentTarget.getAttribute(`target`),r=b===void 0?t:b;if(!x&&!Ile(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,R.flushSync)(()=>{i(!0)});let t=n.subscribe(`onResolved`,()=>{t(),i(!1)});n.navigate({...ne,replace:m,resetScroll:_,hashScrollIntoView:p,startTransition:h,viewTransition:v,ignoreBlocker:k})}};if(ie)return{...te,ref:o,href:ie,...y&&{children:y},...b&&{target:b},...x&&{disabled:x},...S&&{style:S},...C&&{className:C},...w&&{onClick:w},...T&&{onFocus:T},...E&&{onMouseEnter:E},...D&&{onMouseLeave:D},...O&&{onTouchStart:O}};let ue=e=>{x||ae&&ce()},de=ue,fe=e=>{if(!(x||!ae))if(!oe)ce();else{let t=e.target;if(Vz.has(t))return;let n=setTimeout(()=>{Vz.delete(t),ce()},oe);Vz.set(t,n)}},pe=e=>{if(x||!ae||!oe)return;let t=e.target,n=Vz.get(t);n&&(clearTimeout(n),Vz.delete(t))},me=se?hR(s,{})??jle:Bz,he=se?Bz:hR(c,{})??Bz,ge=[C,me.className,he.className].filter(Boolean).join(` `),_e=(S||me.style||he.style)&&{...S,...me.style,...he.style};return{...te,...me,...he,href:re?.href,ref:o,onClick:Hz([w,le]),onFocus:Hz([T,ue]),onMouseEnter:Hz([E,fe]),onMouseLeave:Hz([D,pe]),onTouchStart:Hz([O,de]),disabled:!!x,target:b,..._e&&{style:_e},...ge&&{className:ge},...x&&Mle,...se&&Nle,...r&&Ple}}var Bz={},jle={className:`active`},Mle={role:`link`,"aria-disabled":!0},Nle={"data-status":`active`,"aria-current":`page`},Ple={"data-transitioning":`transitioning`},Vz=new WeakMap,Fle={rootMargin:`100px`},Hz=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}},Uz=g.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,ref:a,...o}=Ale(r,t),s=typeof r.children==`function`?r.children({isActive:o[`data-status`]===`active`}):r.children;return n===void 0&&delete o.disabled,g.createElement(n||`a`,{...o,ref:a},s)});function Ile(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Lle=class extends xz{constructor(e){super(e),this.useMatch=e=>Mz({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Mz({...e,from:this.id,select:t=>e?.select?e.select(t.context):t.context}),this.useSearch=e=>Iz({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Fz({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Pz({...e,from:this.id}),this.useLoaderData=e=>Nz({...e,from:this.id}),this.useNavigate=()=>zz({from:this.fullPath}),this.Link=g.forwardRef((e,t)=>(0,_.jsx)(Uz,{ref:t,from:this.fullPath,...e})),this.$$typeof=Symbol.for(`react.memo`)}};function Rle(e){return new Lle(e)}function zle(){return e=>Vle(e)}var Ble=class extends vle{constructor(e){super(e),this.useMatch=e=>Mz({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Mz({...e,from:this.id,select:t=>e?.select?e.select(t.context):t.context}),this.useSearch=e=>Iz({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Fz({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Pz({...e,from:this.id}),this.useLoaderData=e=>Nz({...e,from:this.id}),this.useNavigate=()=>zz({from:this.fullPath}),this.Link=g.forwardRef((e,t)=>(0,_.jsx)(Uz,{ref:t,from:this.fullPath,...e})),this.$$typeof=Symbol.for(`react.memo`)}};function Vle(e){return new Ble(e)}function Wz(e){return typeof e==`object`?new Gz(e,{silent:!0}).createRoute(e):new Gz(e,{silent:!0}).createRoute}var Gz=class{constructor(e,t){this.path=e,this.createRoute=e=>{wz(this.silent,`FileRoute is deprecated and will be removed in the next major version. Use the createFileRoute(path)(options) function instead.`);let t=Rle(e);return t.isRoot=!1,t},this.silent=t?.silent}},Kz=class{constructor(e){this.useMatch=e=>Mz({select:e?.select,from:this.options.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Mz({from:this.options.id,select:t=>e?.select?e.select(t.context):t.context}),this.useSearch=e=>Iz({select:e?.select,structuralSharing:e?.structuralSharing,from:this.options.id}),this.useParams=e=>Fz({select:e?.select,structuralSharing:e?.structuralSharing,from:this.options.id}),this.useLoaderDeps=e=>Pz({...e,from:this.options.id}),this.useLoaderData=e=>Nz({...e,from:this.options.id}),this.useNavigate=()=>zz({from:kz().routesById[this.options.id].fullPath}),this.options=e,this.$$typeof=Symbol.for(`react.memo`)}};function qz(e){return typeof e==`object`?new Kz(e):t=>new Kz({id:e,...t})}function Hle(){let e=kz(),t=g.useRef({router:e,mounted:!1}),[n,r]=g.useState(!1),{hasPendingMatches:i,isLoading:a}=Az({select:e=>({isLoading:e.isLoading,hasPendingMatches:e.matches.some(e=>e.status===`pending`)}),structuralSharing:!0}),o=Rz(a),s=a||n||i,c=Rz(s),l=a||i,u=Rz(l);return e.startTransition=e=>{r(!0),g.startTransition(()=>{e(),r(!1)})},g.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return VR(e.latestLocation.publicHref)!==VR(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),Lz(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),Lz(()=>{o&&!a&&e.emit({type:`onLoad`,...vz(e.state)})},[o,e,a]),Lz(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...vz(e.state)})},[l,u,e]),Lz(()=>{if(c&&!s){let t=vz(e.state);e.emit({type:`onResolved`,...t}),e.__store.setState(e=>({...e,status:`idle`,resolvedLocation:e.location})),t.hrefChanged&&Xce(e)}},[s,c,e]),null}function Ule(e){let t=Az({select:e=>`not-found-${e.location.pathname}-${e.status}`});return(0,_.jsx)(Sz,{getResetKey:()=>t,onCatch:(t,n)=>{if(KR(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(KR(t))return e.fallback?.(t);throw t},children:e.children})}function Wle(){return(0,_.jsx)(`p`,{children:`Not Found`})}function Jz(e){return(0,_.jsx)(_.Fragment,{children:e.children})}function Yz(e,t,n){return t.options.notFoundComponent?(0,_.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,_.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,_.jsx)(Wle,{})}function Gle({children:e}){let t=kz();return t.isServer?(0,_.jsx)(`script`,{nonce:t.options.ssr?.nonce,dangerouslySetInnerHTML:{__html:e+`;document.currentScript.remove()`}}):null}function Kle(){let e=kz();if(!e.isScrollRestoring||!e.isServer||typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return null;let t=(e.options.getScrollRestorationKey||YR)(e.latestLocation),n=t===YR(e.latestLocation)?void 0:t,r={storageKey:qR,shouldScrollRestoration:!0};return n&&(r.key=n),(0,_.jsx)(Gle,{children:`(${ZR.toString()})(${JSON.stringify(r)})`})}var Xz=g.memo(function({matchId:e}){let t=kz(),n=Az({select:t=>{let n=t.matches.find(t=>t.id===e);return DR(n,`Could not find match for matchId "${e}". Please file an issue!`),{routeId:n.routeId,ssr:n.ssr,_displayPending:n._displayPending}},structuralSharing:!0}),r=t.routesById[n.routeId],i=r.options.pendingComponent??t.options.defaultPendingComponent,a=i?(0,_.jsx)(i,{}):null,o=r.options.errorComponent??t.options.defaultErrorComponent,s=r.options.onCatch??t.options.defaultOnCatch,c=r.isRoot?r.options.notFoundComponent??t.options.notFoundRoute?.options.component:r.options.notFoundComponent,l=n.ssr===!1||n.ssr===`data-only`,u=(!r.isRoot||r.options.wrapInSuspense||l)&&(r.options.wrapInSuspense??i??(r.options.errorComponent?.preload||l))?g.Suspense:Jz,d=o?Sz:Jz,f=c?Ule:Jz,p=Az({select:e=>e.loadedAt}),m=Az({select:t=>{let n=t.matches.findIndex(t=>t.id===e);return t.matches[n-1]?.routeId}});return(0,_.jsxs)(r.isRoot?r.options.shellComponent??Jz:Jz,{children:[(0,_.jsx)(jz.Provider,{value:e,children:(0,_.jsx)(u,{fallback:a,children:(0,_.jsx)(d,{getResetKey:()=>p,errorComponent:o||Cz,onCatch:(t,n)=>{if(KR(t))throw t;wz(!1,`Error in route match: ${e}`),s?.(t,n)},children:(0,_.jsx)(f,{fallback:e=>{if(!c||e.routeId&&e.routeId!==n.routeId||!e.routeId&&!r.isRoot)throw e;return g.createElement(c,e)},children:l||n._displayPending?(0,_.jsx)(ble,{fallback:a,children:(0,_.jsx)(Zz,{matchId:e})}):(0,_.jsx)(Zz,{matchId:e})})})})}),m===`__root__`&&t.options.scrollRestoration?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(qle,{}),(0,_.jsx)(Kle,{})]}):null]})});function qle(){let e=kz(),t=g.useRef(void 0);return(0,_.jsx)(`script`,{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:`onRendered`,...vz(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}var Zz=g.memo(function({matchId:e}){let t=kz(),{match:n,key:r,routeId:i}=Az({select:n=>{let r=n.matches.find(t=>t.id===e),i=r.routeId,a=(t.routesById[i].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:i,loaderDeps:r.loaderDeps,params:r._strictParams,search:r._strictSearch});return{key:a?JSON.stringify(a):void 0,routeId:i,match:{id:r.id,status:r.status,error:r.error,invalid:r.invalid,_forcePending:r._forcePending,_displayPending:r._displayPending}}},structuralSharing:!0}),a=t.routesById[i],o=g.useMemo(()=>{let e=a.options.component??t.options.defaultComponent;return e?(0,_.jsx)(e,{},r):(0,_.jsx)(Qz,{})},[r,a.options.component,t.options.defaultComponent]);if(n._displayPending)throw t.getMatch(n.id)?._nonReactive.displayPendingPromise;if(n._forcePending)throw t.getMatch(n.id)?._nonReactive.minPendingPromise;if(n.status===`pending`){let e=a.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let r=t.getMatch(n.id);if(r&&!r._nonReactive.minPendingPromise&&!t.isServer){let t=SR();r._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),r._nonReactive.minPendingPromise=void 0},e)}}throw t.getMatch(n.id)?._nonReactive.loadPromise}if(n.status===`notFound`)return DR(KR(n.error),`Expected a notFound error`),Yz(t,a,n.error);if(n.status===`redirected`)throw DR(ez(n.error),`Expected a redirect error`),t.getMatch(n.id)?._nonReactive.loadPromise;if(n.status===`error`){if(t.isServer)return(0,_.jsx)((a.options.errorComponent??t.options.defaultErrorComponent)||Cz,{error:n.error,reset:void 0,info:{componentStack:``}});throw n.error}return o}),Qz=g.memo(function(){let e=kz(),t=g.useContext(jz),n=Az({select:e=>e.matches.find(e=>e.id===t)?.routeId}),r=e.routesById[n],i=Az({select:e=>{let n=e.matches.find(e=>e.id===t);return DR(n,`Could not find parent match for matchId "${t}"`),n.globalNotFound}}),a=Az({select:e=>{let n=e.matches;return n[n.findIndex(e=>e.id===t)+1]?.id}}),o=e.options.defaultPendingComponent?(0,_.jsx)(e.options.defaultPendingComponent,{}):null;if(i)return Yz(e,r,void 0);if(!a)return null;let s=(0,_.jsx)(Xz,{matchId:a});return n===`__root__`?(0,_.jsx)(g.Suspense,{fallback:o,children:s}):s});function Jle(){let e=kz(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,_.jsx)(t,{}):null,r=(0,_.jsxs)(e.isServer||typeof document<`u`&&e.ssr?Jz:g.Suspense,{fallback:n,children:[!e.isServer&&(0,_.jsx)(Hle,{}),(0,_.jsx)(Yle,{})]});return e.options.InnerWrap?(0,_.jsx)(e.options.InnerWrap,{children:r}):r}function Yle(){let e=kz(),t=Az({select:e=>e.matches[0]?.id}),n=Az({select:e=>e.loadedAt}),r=t?(0,_.jsx)(Xz,{matchId:t}):null;return(0,_.jsx)(jz.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,_.jsx)(Sz,{getResetKey:()=>n,errorComponent:Cz,onCatch:e=>{wz(!1,`The following error wasn't caught by any route! At the very least, consider setting an 'errorComponent' in your RootRoute!`),wz(!1,e.message||e.toString())},children:r})})}function Xle(e){return Az({select:t=>{let n=t.matches;return e?.select?e.select(n):n},structuralSharing:e?.structuralSharing})}var Zle=e=>new Qle(e),Qle=class extends fle{constructor(e){super(e)}};typeof globalThis<`u`?(globalThis.createFileRoute=Wz,globalThis.createLazyFileRoute=qz):typeof window<`u`&&(window.createFileRoute=Wz,window.createLazyFileRoute=qz);function $le({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,_.jsx)(Oz().Provider,{value:e,children:t});return e.options.Wrap?(0,_.jsx)(e.options.Wrap,{children:r}):r}function eue({router:e,...t}){return(0,_.jsx)($le,{router:e,...t,children:(0,_.jsx)(Jle,{})})}function tue(e){return Az({select:t=>e?.select?e.select(t.location):t.location})}s(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}}))();var $z=`Switch`,[nue,rue]=y($z),[iue,aue]=nue($z),eB=g.forwardRef((e,t)=>{let{__scopeSwitch:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c=`on`,onCheckedChange:l,form:u,...d}=e,[f,p]=g.useState(null),m=C(t,e=>p(e)),h=g.useRef(!1),v=f?u||!!f.closest(`form`):!0,[y,b]=F({prop:i,defaultProp:a??!1,onChange:l,caller:$z});return(0,_.jsxs)(iue,{scope:n,checked:y,disabled:s,children:[(0,_.jsx)(z.button,{type:`button`,role:`switch`,"aria-checked":y,"aria-required":o,"data-state":iB(y),"data-disabled":s?``:void 0,disabled:s,value:c,...d,ref:m,onClick:M(e.onClick,e=>{b(e=>!e),v&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())})}),v&&(0,_.jsx)(rB,{control:f,bubbles:!h.current,name:r,value:c,checked:y,required:o,disabled:s,form:u,style:{transform:`translateX(-100%)`}})]})});eB.displayName=$z;var tB=`SwitchThumb`,nB=g.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,i=aue(tB,n);return(0,_.jsx)(z.span,{"data-state":iB(i.checked),"data-disabled":i.disabled?``:void 0,...r,ref:t})});nB.displayName=tB;var oue=`SwitchBubbleInput`,rB=g.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...i},a)=>{let o=g.useRef(null),s=C(o,a),c=Dd(n),l=Od(t);return g.useEffect(()=>{let e=o.current;if(!e)return;let t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(c!==n&&i){let t=new Event(`click`,{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[c,n,r]),(0,_.jsx)(`input`,{type:`checkbox`,"aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:s,style:{...i.style,...l,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});rB.displayName=oue;function iB(e){return e?`checked`:`unchecked`}var sue=eB,cue=nB,aB=`Tabs`,[lue,uue]=y(aB,[r_]),oB=r_(),[due,sB]=lue(aB),cB=g.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=`automatic`,...l}=e,u=Te(s),[d,f]=F({prop:r,onChange:i,defaultProp:a??``,caller:aB});return(0,_.jsx)(due,{scope:n,baseId:ce(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c,children:(0,_.jsx)(z.div,{dir:u,"data-orientation":o,...l,ref:t})})});cB.displayName=aB;var lB=`TabsList`,uB=g.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=sB(lB,n),o=oB(n);return(0,_.jsx)(c_,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,_.jsx)(z.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})});uB.displayName=lB;var dB=`TabsTrigger`,fB=g.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=sB(dB,n),s=oB(n),c=hB(o.baseId,r),l=gB(o.baseId,r),u=r===o.value;return(0,_.jsx)(l_,{asChild:!0,...s,focusable:!i,active:u,children:(0,_.jsx)(z.button,{type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:M(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:M(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:M(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})})});fB.displayName=dB;var pB=`TabsContent`,mB=g.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=sB(pB,n),c=hB(s.baseId,r),l=gB(s.baseId,r),u=r===s.value,d=g.useRef(u);return g.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,_.jsx)(V,{present:i||u,children:({present:n})=>(0,_.jsx)(z.div,{"data-state":u?`active`:`inactive`,"data-orientation":s.orientation,role:`tabpanel`,"aria-labelledby":c,hidden:!n,id:l,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:d.current?`0s`:void 0},children:n&&a})})});mB.displayName=pB;function hB(e,t){return`${e}-trigger-${t}`}function gB(e,t){return`${e}-content-${t}`}var fue=cB,_B=uB,vB=fB,yB=mB,bB=`ToastProvider`,[xB,pue,mue]=j(`Toast`),[SB,hue]=y(`Toast`,[mue]),[gue,CB]=SB(bB),_ue=e=>{let{__scopeToast:t,label:n=`Notification`,duration:r=5e3,swipeDirection:i=`right`,swipeThreshold:a=50,children:o}=e,[s,c]=g.useState(null),[l,u]=g.useState(0),d=g.useRef(!1),f=g.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${bB}\`. Expected non-empty \`string\`.`),(0,_.jsx)(xB.Provider,{scope:t,children:(0,_.jsx)(gue,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:a,toastCount:l,viewport:s,onViewportChange:c,onToastAdd:g.useCallback(()=>u(e=>e+1),[]),onToastRemove:g.useCallback(()=>u(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:o})})};_ue.displayName=bB;var wB=`ToastViewport`,vue=[`F8`],TB=`toast.viewportPause`,EB=`toast.viewportResume`,DB=g.forwardRef((e,t)=>{let{__scopeToast:n,hotkey:r=vue,label:i=`Notifications ({hotkey})`,...a}=e,o=CB(wB,n),s=pue(n),c=g.useRef(null),l=g.useRef(null),u=g.useRef(null),d=g.useRef(null),f=C(t,d,o.onViewportChange),p=r.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),m=o.toastCount>0;g.useEffect(()=>{let e=e=>{r.length!==0&&r.every(t=>e[t]||e.code===t)&&d.current?.focus()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[r]),g.useEffect(()=>{let e=c.current,t=d.current;if(m&&e&&t){let n=()=>{if(!o.isClosePausedRef.current){let e=new CustomEvent(TB);t.dispatchEvent(e),o.isClosePausedRef.current=!0}},r=()=>{if(o.isClosePausedRef.current){let e=new CustomEvent(EB);t.dispatchEvent(e),o.isClosePausedRef.current=!1}},i=t=>{e.contains(t.relatedTarget)||r()},a=()=>{e.contains(document.activeElement)||r()};return e.addEventListener(`focusin`,n),e.addEventListener(`focusout`,i),e.addEventListener(`pointermove`,n),e.addEventListener(`pointerleave`,a),window.addEventListener(`blur`,n),window.addEventListener(`focus`,r),()=>{e.removeEventListener(`focusin`,n),e.removeEventListener(`focusout`,i),e.removeEventListener(`pointermove`,n),e.removeEventListener(`pointerleave`,a),window.removeEventListener(`blur`,n),window.removeEventListener(`focus`,r)}}},[m,o.isClosePausedRef]);let h=g.useCallback(({tabbingDirection:e})=>{let t=s().map(t=>{let n=t.ref.current,r=[n,...jue(n)];return e===`forwards`?r:r.reverse()});return(e===`forwards`?t.reverse():t).flat()},[s]);return g.useEffect(()=>{let e=d.current;if(e){let t=t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if(t.key===`Tab`&&!n){let n=document.activeElement,r=t.shiftKey;if(t.target===e&&r){l.current?.focus();return}let i=h({tabbingDirection:r?`backwards`:`forwards`}),a=i.findIndex(e=>e===n);HB(i.slice(a+1))?t.preventDefault():r?l.current?.focus():u.current?.focus()}};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)}},[s,h]),(0,_.jsxs)(Yn,{ref:c,role:`region`,"aria-label":i.replace(`{hotkey}`,p),tabIndex:-1,style:{pointerEvents:m?void 0:`none`},children:[m&&(0,_.jsx)(kB,{ref:l,onFocusFromOutsideViewport:()=>{HB(h({tabbingDirection:`forwards`}))}}),(0,_.jsx)(xB.Slot,{scope:n,children:(0,_.jsx)(z.ol,{tabIndex:-1,...a,ref:f})}),m&&(0,_.jsx)(kB,{ref:u,onFocusFromOutsideViewport:()=>{HB(h({tabbingDirection:`backwards`}))}})]})});DB.displayName=wB;var OB=`ToastFocusProxy`,kB=g.forwardRef((e,t)=>{let{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,a=CB(OB,n);return(0,_.jsx)($x,{tabIndex:0,...i,ref:t,style:{position:`fixed`},onFocus:e=>{let t=e.relatedTarget;a.viewport?.contains(t)||r()}})});kB.displayName=OB;var AB=`Toast`,yue=`toast.swipeStart`,bue=`toast.swipeMove`,xue=`toast.swipeCancel`,Sue=`toast.swipeEnd`,jB=g.forwardRef((e,t)=>{let{forceMount:n,open:r,defaultOpen:i,onOpenChange:a,...o}=e,[s,c]=F({prop:r,defaultProp:i??!0,onChange:a,caller:AB});return(0,_.jsx)(V,{present:n||s,children:(0,_.jsx)(Tue,{open:s,...o,ref:t,onClose:()=>c(!1),onPause:Nn(e.onPause),onResume:Nn(e.onResume),onSwipeStart:M(e.onSwipeStart,e=>{e.currentTarget.setAttribute(`data-swipe`,`start`)}),onSwipeMove:M(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`move`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-y`,`${n}px`)}),onSwipeCancel:M(e.onSwipeCancel,e=>{e.currentTarget.setAttribute(`data-swipe`,`cancel`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-y`)}),onSwipeEnd:M(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`end`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-y`,`${n}px`),c(!1)})})})});jB.displayName=AB;var[Cue,wue]=SB(AB,{onClose(){}}),Tue=g.forwardRef((e,t)=>{let{__scopeToast:n,type:r=`foreground`,duration:i,open:a,onClose:o,onEscapeKeyDown:s,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:p,...m}=e,h=CB(AB,n),[v,y]=g.useState(null),b=C(t,e=>y(e)),x=g.useRef(null),S=g.useRef(null),w=i||h.duration,T=g.useRef(0),E=g.useRef(w),D=g.useRef(0),{onToastAdd:O,onToastRemove:k}=h,A=Nn(()=>{v?.contains(document.activeElement)&&h.viewport?.focus(),o()}),j=g.useCallback(e=>{!e||e===1/0||(window.clearTimeout(D.current),T.current=new Date().getTime(),D.current=window.setTimeout(A,e))},[A]);g.useEffect(()=>{let e=h.viewport;if(e){let t=()=>{j(E.current),l?.()},n=()=>{let e=new Date().getTime()-T.current;E.current-=e,window.clearTimeout(D.current),c?.()};return e.addEventListener(TB,n),e.addEventListener(EB,t),()=>{e.removeEventListener(TB,n),e.removeEventListener(EB,t)}}},[h.viewport,w,c,l,j]),g.useEffect(()=>{a&&!h.isClosePausedRef.current&&j(w)},[a,w,h.isClosePausedRef,j]),g.useEffect(()=>(O(),()=>k()),[O,k]);let N=g.useMemo(()=>v?zB(v):null,[v]);return h.viewport?(0,_.jsxs)(_.Fragment,{children:[N&&(0,_.jsx)(Eue,{__scopeToast:n,role:`status`,"aria-live":r===`foreground`?`assertive`:`polite`,children:N}),(0,_.jsx)(Cue,{scope:n,onClose:A,children:R.createPortal((0,_.jsx)(xB.ItemSlot,{scope:n,children:(0,_.jsx)(Jn,{asChild:!0,onEscapeKeyDown:M(s,()=>{h.isFocusedToastEscapeKeyDownRef.current||A(),h.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,_.jsx)(z.li,{tabIndex:0,"data-state":a?`open`:`closed`,"data-swipe-direction":h.swipeDirection,...m,ref:b,style:{userSelect:`none`,touchAction:`none`,...e.style},onKeyDown:M(e.onKeyDown,e=>{e.key===`Escape`&&(s?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,A()))}),onPointerDown:M(e.onPointerDown,e=>{e.button===0&&(x.current={x:e.clientX,y:e.clientY})}),onPointerMove:M(e.onPointerMove,e=>{if(!x.current)return;let t=e.clientX-x.current.x,n=e.clientY-x.current.y,r=!!S.current,i=[`left`,`right`].includes(h.swipeDirection),a=[`left`,`up`].includes(h.swipeDirection)?Math.min:Math.max,o=i?a(0,t):0,s=i?0:a(0,n),c=e.pointerType===`touch`?10:2,l={x:o,y:s},f={originalEvent:e,delta:l};r?(S.current=l,BB(bue,d,f,{discrete:!1})):VB(l,h.swipeDirection,c)?(S.current=l,BB(yue,u,f,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(x.current=null)}),onPointerUp:M(e.onPointerUp,e=>{let t=S.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),S.current=null,x.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};VB(t,h.swipeDirection,h.swipeThreshold)?BB(Sue,p,r,{discrete:!0}):BB(xue,f,r,{discrete:!0}),n.addEventListener(`click`,e=>e.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null}),Eue=e=>{let{__scopeToast:t,children:n,...r}=e,i=CB(AB,t),[a,o]=g.useState(!1),[s,c]=g.useState(!1);return kue(()=>o(!0)),g.useEffect(()=>{let e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),s?null:(0,_.jsx)(pr,{asChild:!0,children:(0,_.jsx)($x,{...r,children:a&&(0,_.jsxs)(_.Fragment,{children:[i.label,` `,n]})})})},Due=`ToastTitle`,MB=g.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,_.jsx)(z.div,{...r,ref:t})});MB.displayName=Due;var Oue=`ToastDescription`,NB=g.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,_.jsx)(z.div,{...r,ref:t})});NB.displayName=Oue;var PB=`ToastAction`,FB=g.forwardRef((e,t)=>{let{altText:n,...r}=e;return n.trim()?(0,_.jsx)(RB,{altText:n,asChild:!0,children:(0,_.jsx)(LB,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${PB}\`. Expected non-empty \`string\`.`),null)});FB.displayName=PB;var IB=`ToastClose`,LB=g.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e,i=wue(IB,n);return(0,_.jsx)(RB,{asChild:!0,children:(0,_.jsx)(z.button,{type:`button`,...r,ref:t,onClick:M(e.onClick,i.onClose)})})});LB.displayName=IB;var RB=g.forwardRef((e,t)=>{let{__scopeToast:n,altText:r,...i}=e;return(0,_.jsx)(z.div,{"data-radix-toast-announce-exclude":``,"data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function zB(e){let t=[];return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),Aue(e)){let n=e.ariaHidden||e.hidden||e.style.display===`none`,r=e.dataset.radixToastAnnounceExclude===``;if(!n)if(r){let n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...zB(e))}}),t}function BB(e,t,n,{discrete:r}){let i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?B(i,a):i.dispatchEvent(a)}var VB=(e,t,n=0)=>{let r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t===`left`||t===`right`?a&&r>n:!a&&i>n};function kue(e=()=>{}){let t=Nn(e);N(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}function Aue(e){return e.nodeType===e.ELEMENT_NODE}function jue(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 HB(e){let t=document.activeElement;return e.some(e=>e===t?!0:(e.focus(),document.activeElement!==t))}var UB=DB,WB=jB,GB=MB,KB=NB,qB=FB,JB=LB,YB=`Toggle`,XB=g.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:i,...a}=e,[o,s]=F({prop:n,onChange:i,defaultProp:r??!1,caller:YB});return(0,_.jsx)(z.button,{type:`button`,"aria-pressed":o,"data-state":o?`on`:`off`,"data-disabled":e.disabled?``:void 0,...a,ref:t,onClick:M(e.onClick,()=>{e.disabled||s(!o)})})});XB.displayName=YB;var ZB=XB,QB=`ToggleGroup`,[$B,Mue]=y(QB,[r_]),eV=r_(),tV=g.forwardRef((e,t)=>{let{type:n,...r}=e;if(n===`single`)return(0,_.jsx)(Nue,{...r,ref:t});if(n===`multiple`)return(0,_.jsx)(Pue,{...r,ref:t});throw Error(`Missing prop \`type\` expected on \`${QB}\``)});tV.displayName=QB;var[nV,rV]=$B(QB),Nue=g.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=F({prop:n,defaultProp:r??``,onChange:i,caller:QB});return(0,_.jsx)(nV,{scope:e.__scopeToggleGroup,type:`single`,value:g.useMemo(()=>o?[o]:[],[o]),onItemActivate:s,onItemDeactivate:g.useCallback(()=>s(``),[s]),children:(0,_.jsx)(iV,{...a,ref:t})})}),Pue=g.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=F({prop:n,defaultProp:r??[],onChange:i,caller:QB}),c=g.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=g.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,_.jsx)(nV,{scope:e.__scopeToggleGroup,type:`multiple`,value:o,onItemActivate:c,onItemDeactivate:l,children:(0,_.jsx)(iV,{...a,ref:t})})});tV.displayName=QB;var[Fue,Iue]=$B(QB),iV=g.forwardRef((e,t)=>{let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:a,dir:o,loop:s=!0,...c}=e,l=eV(n),u=Te(o),d={role:`group`,dir:u,...c};return(0,_.jsx)(Fue,{scope:n,rovingFocus:i,disabled:r,children:i?(0,_.jsx)(c_,{asChild:!0,...l,orientation:a,dir:u,loop:s,children:(0,_.jsx)(z.div,{...d,ref:t})}):(0,_.jsx)(z.div,{...d,ref:t})})}),aV=`ToggleGroupItem`,oV=g.forwardRef((e,t)=>{let n=rV(aV,e.__scopeToggleGroup),r=Iue(aV,e.__scopeToggleGroup),i=eV(e.__scopeToggleGroup),a=n.value.includes(e.value),o=r.disabled||e.disabled,s={...e,pressed:a,disabled:o},c=g.useRef(null);return r.rovingFocus?(0,_.jsx)(l_,{asChild:!0,...i,focusable:!o,active:a,ref:c,children:(0,_.jsx)(sV,{...s,ref:t})}):(0,_.jsx)(sV,{...s,ref:t})});oV.displayName=aV;var sV=g.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...i}=e,a=rV(aV,n),o={role:`radio`,"aria-checked":e.pressed,"aria-pressed":void 0};return(0,_.jsx)(XB,{...a.type===`single`?o:void 0,...i,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})}),cV=tV,lV=oV,uV=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`m6 9l6 6l6-6`})});function q(...e){return kn(ot(e))}function dV(e){return e===void 0?void 0:Array.isArray(e)?e:[e]}var Lue=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(tt,{ref:n,className:q(`border-b`,e),...t}));Lue.displayName=`AccordionItem`;var Rue=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsx)(nt,{className:`flex`,children:(0,_.jsxs)(rt,{ref:r,className:q(`flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180`,e),...n,children:[t,(0,_.jsx)(uV,{className:`h-4 w-4 shrink-0 transition-transform duration-200`})]})}));Rue.displayName=rt.displayName;var zue=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsx)(it,{ref:r,className:`overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`,...n,children:(0,_.jsx)(`div`,{className:q(`pb-4 pt-0`,e),children:t})}));zue.displayName=it.displayName;var Bue=Mn(`relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground`,{variants:{variant:{default:`bg-background text-foreground`,destructive:`border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive`}},defaultVariants:{variant:`default`}}),Vue=g.forwardRef(({className:e,variant:t,...n},r)=>(0,_.jsx)(`div`,{ref:r,role:`alert`,className:q(Bue({variant:t}),e),...n}));Vue.displayName=`Alert`;var Hue=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`h5`,{ref:n,className:q(`mb-1 font-medium leading-none tracking-tight`,e),...t}));Hue.displayName=`AlertTitle`;var Uue=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`div`,{ref:n,className:q(`text-sm [&_p]:leading-relaxed`,e),...t}));Uue.displayName=`AlertDescription`;var Wue=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M21 12a9 9 0 1 1-6.219-8.56`})}),fV=Mn(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-button text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60`,outline:`border bg-background text-foreground hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`,red:`bg-red-500 text-white hover:bg-red-600`,yellow:`bg-yellow-500 text-white hover:bg-yellow-600`,green:`bg-green-500 text-white hover:bg-green-600`,blue:`bg-blue-500 text-white hover:bg-blue-600`,cyan:`bg-cyan-500 text-white hover:bg-cyan-600`,purple:`bg-purple-500 text-white hover:bg-purple-600`,pink:`bg-pink-500 text-white hover:bg-pink-600`,orange:`bg-orange-500 text-white hover:bg-orange-600`},size:{xs:`h-6 px-2 py-1 text-xs [&_svg]:size-3 has-[>svg]:px-1.5 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square`,sm:`h-7 px-3 py-1.5 text-xs [&_svg]:size-3.5 has-[>svg]:px-2 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square`,default:`h-9 px-4 py-2 [&_svg]:size-4 has-[>svg]:px-3 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square`,lg:`h-11 px-6 py-3 text-base [&_svg]:size-5 has-[>svg]:px-4 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square`,xl:`h-13 px-8 py-4 text-lg [&_svg]:size-6 has-[>svg]:px-6 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square`}},defaultVariants:{variant:`default`,size:`default`}}),J=g.forwardRef(({className:e,variant:t,size:n,icon:r,children:i,loading:a,disabled:o,asChild:s=!1,...c},l)=>{let u=s?oo:`button`,d=g.Children.count(i)===0,f=a?(0,_.jsx)(Wue,{className:`animate-spin`}):r;return(0,_.jsx)(u,{"data-slot":`button`,className:q(fV({variant:t,size:n,className:e})),ref:l,disabled:o||a,...c,children:d?f:f?(0,_.jsxs)(`span`,{className:`contents`,children:[f,i]}):i})});J.displayName=`Button`;var Gue=Ja,pV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Ya,{className:q(`fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t,ref:n}));pV.displayName=Ya.displayName;var Kue=g.forwardRef(({className:e,...t},n)=>(0,_.jsxs)(Gue,{children:[(0,_.jsx)(pV,{}),(0,_.jsx)(Xa,{ref:n,className:q(`fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg`,e),...t})]}));Kue.displayName=Xa.displayName;var que=({className:e,...t})=>(0,_.jsx)(`div`,{className:q(`flex flex-col space-y-2 text-center sm:text-left`,e),...t});que.displayName=`AlertDialogHeader`;var Jue=({className:e,...t})=>(0,_.jsx)(`div`,{className:q(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});Jue.displayName=`AlertDialogFooter`;var Yue=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)($a,{ref:n,className:q(`text-lg font-semibold`,e),...t}));Yue.displayName=$a.displayName;var Xue=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(eo,{ref:n,className:q(`text-sm text-muted-foreground`,e),...t}));Xue.displayName=eo.displayName;var Zue=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Za,{ref:n,className:q(fV(),e),...t}));Zue.displayName=Za.displayName;var Que=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Qa,{ref:n,className:q(fV({variant:`outline`}),`mt-2 sm:mt-0`,e),...t}));Que.displayName=Qa.displayName;var $ue=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Fo,{ref:n,className:q(`relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full`,e),...t}));$ue.displayName=Fo.displayName;var ede=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Io,{ref:n,className:q(`aspect-square h-full w-full`,e),...t}));ede.displayName=Io.displayName;var tde=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Lo,{ref:n,className:q(`flex h-full w-full items-center justify-center rounded-full bg-muted`,e),...t}));tde.displayName=Lo.displayName;var nde=Mn(`inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90`,secondary:`border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90`,destructive:`border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60`,outline:`text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground`}},defaultVariants:{variant:`default`}});function rde({className:e,variant:t,asChild:n=!1,...r}){return(0,_.jsx)(n?oo:`span`,{"data-slot":`badge`,className:q(nde({variant:t}),e),...r})}var mV=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`m9 18l6-6l-6-6`})}),ide=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,children:[(0,_.jsx)(`circle`,{cx:12,cy:12,r:1}),(0,_.jsx)(`circle`,{cx:19,cy:12,r:1}),(0,_.jsx)(`circle`,{cx:5,cy:12,r:1})]})}),ade=g.forwardRef(({...e},t)=>(0,_.jsx)(`nav`,{ref:t,"aria-label":`breadcrumb`,...e}));ade.displayName=`Breadcrumb`;var ode=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`ol`,{ref:n,className:q(`flex flex-wrap items-center gap-1.5 overflow-wrap-anywhere text-sm text-muted-foreground sm:gap-2.5`,e),...t}));ode.displayName=`BreadcrumbList`;var sde=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`li`,{ref:n,className:q(`inline-flex items-center gap-1.5`,e),...t}));sde.displayName=`BreadcrumbItem`;var cde=g.forwardRef(({asChild:e,className:t,...n},r)=>(0,_.jsx)(e?oo:`a`,{ref:r,className:q(`transition-colors hover:text-foreground`,t),...n}));cde.displayName=`BreadcrumbLink`;var lde=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`span`,{ref:n,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:q(`font-normal text-foreground`,e),...t}));lde.displayName=`BreadcrumbPage`;var ude=({children:e,className:t,...n})=>(0,_.jsx)(`li`,{role:`presentation`,"aria-hidden":`true`,className:q(`[&>svg]:w-3.5 [&>svg]:h-3.5`,t),...n,children:e??(0,_.jsx)(mV,{})});ude.displayName=`BreadcrumbSeparator`;var dde=({className:e,...t})=>(0,_.jsxs)(`span`,{role:`presentation`,"aria-hidden":`true`,className:q(`flex h-9 w-9 items-center justify-center`,e),...t,children:[(0,_.jsx)(ide,{className:`h-4 w-4`}),(0,_.jsx)(`span`,{className:`sr-only`,children:`More`})]});dde.displayName=`BreadcrumbElipssis`;var fde=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`m15 18l-6-6l6-6`})});function pde({className:e,classNames:t,showOutsideDays:n=!0,...r}){return(0,_.jsx)(xu,{showOutsideDays:n,className:q(`p-3`,e),classNames:{months:`flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0`,month:`space-y-4`,caption:`flex justify-center pt-1 relative items-center w-full`,caption_label:`text-sm font-medium`,nav:`space-x-1 flex items-center`,nav_button:q(fV({variant:`outline`}),`h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100`),nav_button_previous:`absolute left-1`,nav_button_next:`absolute right-1`,table:`w-full border-collapse space-y-1`,head_row:`flex`,head_cell:`text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]`,row:`flex w-full mt-2`,cell:q(`h-9 w-9 text-center text-sm p-0 relative focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent/10`,r.mode===`range`?`[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md`:`[&:has([aria-selected])]:rounded-md`),day:q(fV({variant:`ghost`}),`h-9 w-9 p-0 font-normal aria-selected:opacity-100`),day_range_start:`day-range-start`,day_range_end:`day-range-end`,day_selected:`bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground`,day_today:`bg-accent/10 text-foreground`,day_outside:`day-outside text-muted-foreground opacity-50 aria-selected:bg-transparent aria-selected:opacity-100 aria-selected:text-foreground`,day_disabled:`text-muted-foreground opacity-50`,day_range_middle:`aria-selected:bg-transparent aria-selected:text-foreground`,day_hidden:`invisible`,...t},components:{IconLeft:()=>(0,_.jsx)(fde,{className:`h-4 w-4`}),IconRight:()=>(0,_.jsx)(mV,{className:`h-4 w-4`})},...r})}var mde=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`m12 19l-7-7l7-7m7 7H5`})}),hde=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M5 12h14m-7-7l7 7l-7 7`})}),hV=g.createContext(null);function gV(){let e=g.useContext(hV);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}var gde=g.forwardRef(({orientation:e=`horizontal`,opts:t,setApi:n,plugins:r,className:i,children:a,...o},s)=>{let[c,l]=Ed({...t,axis:e===`horizontal`?`x`:`y`},r),[u,d]=g.useState(!1),[f,p]=g.useState(!1),m=g.useCallback(e=>{e&&(d(e.canScrollPrev()),p(e.canScrollNext()))},[]),h=g.useCallback(()=>{l?.scrollPrev()},[l]),v=g.useCallback(()=>{l?.scrollNext()},[l]),y=g.useCallback(e=>{e.key===`ArrowLeft`?(e.preventDefault(),h()):e.key===`ArrowRight`&&(e.preventDefault(),v())},[h,v]);return g.useEffect(()=>{!l||!n||n(l)},[l,n]),g.useEffect(()=>{if(l)return m(l),l.on(`reInit`,m),l.on(`select`,m),()=>{l?.off(`select`,m)}},[l,m]),(0,_.jsx)(hV.Provider,{value:{carouselRef:c,api:l,opts:t,orientation:e||(t?.axis===`y`?`vertical`:`horizontal`),scrollPrev:h,scrollNext:v,canScrollPrev:u,canScrollNext:f},children:(0,_.jsx)(`div`,{ref:s,onKeyDownCapture:y,className:q(`relative`,i),role:`region`,"aria-roledescription":`carousel`,...o,children:a})})});gde.displayName=`Carousel`;var _de=g.forwardRef(({className:e,...t},n)=>{let{carouselRef:r,orientation:i}=gV();return(0,_.jsx)(`div`,{ref:r,className:`overflow-hidden`,children:(0,_.jsx)(`div`,{ref:n,className:q(`flex`,i===`horizontal`?`-ml-4`:`-mt-4 flex-col`,e),...t})})});_de.displayName=`CarouselContent`;var vde=g.forwardRef(({className:e,...t},n)=>{let{orientation:r}=gV();return(0,_.jsx)(`div`,{ref:n,role:`group`,"aria-roledescription":`slide`,className:q(`min-w-0 shrink-0 grow-0 basis-full`,r===`horizontal`?`pl-4`:`pt-4`,e),...t})});vde.displayName=`CarouselItem`;var yde=g.forwardRef(({className:e,variant:t=`outline`,size:n=`default`,...r},i)=>{let{orientation:a,scrollPrev:o,canScrollPrev:s}=gV();return(0,_.jsxs)(J,{ref:i,variant:t,size:n,className:q(`absolute h-8 w-8 rounded-full`,a===`horizontal`?`-left-12 top-1/2 -translate-y-1/2`:`-top-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!s,onClick:o,...r,children:[(0,_.jsx)(mde,{className:`h-4 w-4`}),(0,_.jsx)(`span`,{className:`sr-only`,children:`Previous slide`})]})});yde.displayName=`CarouselPrevious`;var bde=g.forwardRef(({className:e,variant:t=`outline`,size:n=`default`,...r},i)=>{let{orientation:a,scrollNext:o,canScrollNext:s}=gV();return(0,_.jsxs)(J,{ref:i,variant:t,size:n,className:q(`absolute h-8 w-8 rounded-full`,a===`horizontal`?`-right-12 top-1/2 -translate-y-1/2`:`-bottom-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!s,onClick:o,...r,children:[(0,_.jsx)(hde,{className:`h-4 w-4`}),(0,_.jsx)(`span`,{className:`sr-only`,children:`Next slide`})]})});bde.displayName=`CarouselNext`;var _V=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M20 6L9 17l-5-5`})}),vV=g.forwardRef(({className:e,name:t,checked:n,value:r,defaultChecked:i,onValueChange:a,onBlur:o,label:s,labelClassName:c,disabled:l,...u},d)=>{let f=r===void 0?n:r,p=g.useRef(null),m=g.useRef(null),h=g.useId();g.useImperativeHandle(d,()=>p.current);let v=e=>{a?.(e===`indeterminate`?!1:e)},y=e=>{e.preventDefault(),!l&&m.current?.click()},b=(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`input`,{type:`checkbox`,ref:p,name:t,defaultChecked:i===!0,onBlur:o,className:`sr-only`,tabIndex:-1,"aria-hidden":`true`}),(0,_.jsx)(Ld,{ref:m,"data-slot":`checkbox`,checked:f,defaultChecked:i,onCheckedChange:v,disabled:l,"aria-labelledby":s?h:void 0,className:q(`peer border border-muted-foreground/30 bg-input-background dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50`,e),...u,children:(0,_.jsx)(zd,{"data-slot":`checkbox-indicator`,className:`flex items-center justify-center text-current transition-none`,children:(0,_.jsx)(_V,{className:`size-3.5`})})})]});return s?(0,_.jsxs)(`div`,{className:`flex items-center gap-2`,children:[b,(0,_.jsx)(`label`,{id:h,className:q(`text-sm cursor-pointer select-none`,l&&`cursor-not-allowed opacity-50`,c),onClick:y,children:s})]}):b});vV.displayName=`Checkbox`;var xde=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`m7 15l5 5l5-5M7 9l5-5l5 5`})}),yV=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,children:[(0,_.jsx)(`circle`,{cx:12,cy:12,r:10}),(0,_.jsx)(`path`,{d:`m15 9l-6 6m0-6l6 6`})]})}),Sde={"rc.asyncSelect.loading":`Loading...`,"rc.asyncSelect.noOptions":`No options`,"rc.asyncSelect.noResults":`No results`,"rc.asyncSelect.selectPlaceholder":`Select...`,"rc.combobox.noResults":`No results`,"rc.combobox.selectPlaceholder":`Select...`,"rc.datePicker.pickDate":`Pick date`,"rc.datePicker.placeholder":`Pick date`,"rc.datePicker.selectDate":`Select date`,"rc.dateSelectorMultiple.addDate":`Add date`,"rc.dateSelectorMultiple.dateRange":`Range`,"rc.dateSelectorMultiple.placeholder":`Pick date`,"rc.dateSelectorMultiple.singleDate":`Single`,"rc.fileInput.browseFiles":`Browse files`,"rc.fileInput.dropZone":`Drag files here or click to upload`,"rc.fileInput.filePlaceholder":`File`,"rc.fileInput.imagePlaceholder":`Image`,"rc.fileInput.maxFilesExceeded":e=>`Maximum ${e} files allowed`,"rc.fileInput.pending":`Pending`,"rc.fileInput.remove":`Remove`,"rc.fileInput.uploadFailed":`Upload failed`,"rc.fileInput.uploading":`Uploading...`,"rc.monthPickerMultiple.addMonth":`Add month`,"rc.monthPickerMultiple.dateRange":`Range`,"rc.monthPickerMultiple.endDate":`End date`,"rc.monthPickerMultiple.placeholder":`Pick month`,"rc.monthPickerMultiple.singleDate":`Single`,"rc.monthPickerMultiple.startDate":`Start date`,"rc.multiSelect.clear":`Clear all`,"rc.multiSelect.close":`Close`,"rc.multiSelect.moreItems":e=>`+${e} more`,"rc.multiSelect.noOptions":`No options`,"rc.multiSelect.noOptionsSelected":`No options selected`,"rc.multiSelect.noResults":`No results`,"rc.multiSelect.optionsCount":e=>`${e} options`,"rc.multiSelect.selectAll":`Select all`,"rc.multiSelect.selectPlaceholder":`Select...`,"rc.pagination.next":`Next`,"rc.pagination.previous":`Previous`,"rc.pagination.showing":(e,t,n)=>`Showing ${e}-${t} of ${n}`,"rc.calendar.month.0":`January`,"rc.calendar.month.1":`February`,"rc.calendar.month.2":`March`,"rc.calendar.month.3":`April`,"rc.calendar.month.4":`May`,"rc.calendar.month.5":`June`,"rc.calendar.month.6":`July`,"rc.calendar.month.7":`August`,"rc.calendar.month.8":`September`,"rc.calendar.month.9":`October`,"rc.calendar.month.10":`November`,"rc.calendar.month.11":`December`,"rc.sonamuFilter.title":`Sonamu Filter`,"rc.sonamuFilter.apply":`Apply`,"rc.sonamuFilter.reset":`Reset`,"rc.sonamuFilter.addRule":`Add Rule`,"rc.sonamuFilter.noRulesYet":`No rules yet. Click "+ Add Rule" to start.`,"rc.sonamuFilter.selectField":`Select field`,"rc.sonamuFilter.selectOperator":`Operator`,"rc.sonamuFilter.selectOperatorFirst":`Select operator first`,"rc.sonamuFilter.enterValue":`Enter value`,"rc.sonamuFilter.enterNumber":`Enter number`,"rc.sonamuFilter.notSupported":`Not supported`,"rc.sonamuFilter.startDate":`Start date`,"rc.sonamuFilter.endDate":`End date`,"rc.sonamuFilter.appliedFilters":`🌲 Applied SonamuFilters`,"rc.common.cancel":`Cancel`,"rc.common.save":`Save`},Cde=e=>`[SonamuProvider] ${e} is not configured. Please provide ${e} configuration to SonamuProvider.`,wde=()=>()=>{throw Error(Cde(`uploader`))},Tde=()=>e=>Sde[e],bV=(0,g.createContext)({});function Ede({children:e,authOptions:t,...n}){let r=(0,g.useRef)(void 0);t&&!r.current&&(r.current=Lp(t));let i={uploader:n.uploader??wde(),auth:n.auth??r.current,SD:n.SD??Tde()};return(0,_.jsx)(bV.Provider,{value:i,children:e})}function xV(){return(0,g.useContext)(bV)}var Dde=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,children:[(0,_.jsx)(`path`,{d:`m21 21l-4.34-4.34`}),(0,_.jsx)(`circle`,{cx:11,cy:11,r:8})]})}),SV=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M18 6L6 18M6 6l12 12`})}),CV=ha,Ode=_a,wV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(va,{ref:n,className:q(`fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t}));wV.displayName=va.displayName;var TV=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsxs)(Ode,{children:[(0,_.jsx)(wV,{}),(0,_.jsxs)(ya,{ref:r,className:q(`fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg`,e),...n,children:[t,(0,_.jsxs)(Sa,{className:`absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground`,children:[(0,_.jsx)(SV,{className:`h-4 w-4`}),(0,_.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]}));TV.displayName=ya.displayName;var EV=({className:e,...t})=>(0,_.jsx)(`div`,{className:q(`flex flex-col space-y-1.5 text-center sm:text-left`,e),...t});EV.displayName=`DialogHeader`;var DV=({className:e,...t})=>(0,_.jsx)(`div`,{className:q(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});DV.displayName=`DialogFooter`;var OV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(ba,{ref:n,className:q(`text-lg font-semibold leading-none tracking-tight`,e),...t}));OV.displayName=ba.displayName;var kV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(xa,{ref:n,className:q(`text-sm text-muted-foreground`,e),...t}));kV.displayName=xa.displayName;var AV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(hm,{ref:n,className:q(`flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground`,e),...t}));AV.displayName=hm.displayName;var kde=({children:e,commandProps:t,...n})=>{let{className:r,...i}=t??{};return(0,_.jsx)(CV,{...n,children:(0,_.jsx)(TV,{className:`overflow-hidden p-0 shadow-lg`,children:(0,_.jsx)(AV,{className:q(`**:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 **:[[cmdk-group]]:px-2 **:[[cmdk-input-wrapper]_svg]:size-5 **:[[cmdk-input]]:h-12 **:[[cmdk-item]]:px-2 **:[[cmdk-item]]:py-3 **:[[cmdk-item]_svg]:size-5`,r),...i,children:e})})})},jV=g.forwardRef(({className:e,...t},n)=>(0,_.jsxs)(`div`,{className:`flex items-center border-b px-3`,"cmdk-input-wrapper":``,children:[(0,_.jsx)(Dde,{className:`mr-2 h-4 w-4 shrink-0 opacity-50`}),(0,_.jsx)(hm.Input,{ref:n,className:q(`flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50`,e),...t})]}));jV.displayName=hm.Input.displayName;var MV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(hm.List,{ref:n,className:q(`max-h-[300px] overflow-y-auto overflow-x-hidden`,e),...t}));MV.displayName=hm.List.displayName;var NV=g.forwardRef((e,t)=>(0,_.jsx)(hm.Empty,{ref:t,className:`py-6 text-center text-sm`,...e}));NV.displayName=hm.Empty.displayName;var PV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(hm.Group,{ref:n,className:q(`overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground`,e),...t}));PV.displayName=hm.Group.displayName;var Ade=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(hm.Separator,{ref:n,className:q(`-mx-1 h-px bg-border`,e),...t}));Ade.displayName=hm.Separator.displayName;var FV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(hm.Item,{ref:n,className:q(`relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 **:[svg]:pointer-events-none **:[svg]:size-4 **:[svg]:shrink-0`,e),...t}));FV.displayName=hm.Item.displayName;var jde=({className:e,...t})=>(0,_.jsx)(`span`,{className:q(`ml-auto text-xs tracking-widest text-muted-foreground`,e),...t});jde.displayName=`CommandShortcut`;function IV({...e}){return(0,_.jsx)(gte,{"data-slot":`popover`,...e})}function LV({...e}){return(0,_.jsx)(_te,{"data-slot":`popover-trigger`,...e})}function RV({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,_.jsx)(vte,{children:(0,_.jsx)(yte,{"data-slot":`popover-content`,align:t,sideOffset:n,className:q(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden`,e),...r})})}var Mde=g.forwardRef(({options:e,name:t,value:n,onValueChange:r,onBlur:i,placeholder:a,searchPlaceholder:o,emptyText:s,disabled:c=!1,className:l,clearable:u=!1},d)=>{let{SD:f}=xV(),[p,m]=g.useState(!1),h=g.useRef(null),v=a??f(`rc.combobox.selectPlaceholder`),y=o??f(`common.searchPlaceholder`),b=s??f(`rc.combobox.noResults`);g.useImperativeHandle(d,()=>h.current);let x=e=>{r?.((e===n?``:e)||void 0),m(!1)},S=e=>{e.preventDefault(),e.stopPropagation(),r?.(void 0),m(!1)},C=!!n;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`input`,{type:`hidden`,ref:h,name:t,value:n||``,onBlur:i}),(0,_.jsxs)(IV,{open:p,onOpenChange:m,children:[(0,_.jsx)(LV,{asChild:!0,children:(0,_.jsxs)(J,{variant:`outline`,role:`combobox`,"aria-expanded":p,disabled:c,className:q(`w-full justify-between`,l),children:[(0,_.jsx)(`span`,{className:`flex-1 truncate text-left`,children:n?e.find(e=>e.value===n)?.label:v}),(0,_.jsxs)(`div`,{className:`flex items-center gap-1 shrink-0 pl-2`,children:[u&&C&&(0,_.jsx)(`span`,{className:`flex items-center justify-center`,onMouseDown:e=>e.stopPropagation(),onClick:S,children:(0,_.jsx)(yV,{className:`h-4 w-4 cursor-pointer opacity-50 hover:opacity-100 transition-opacity`})}),(0,_.jsx)(xde,{className:`h-4 w-4 opacity-50`})]})]})}),(0,_.jsx)(RV,{className:`w-full p-0`,children:(0,_.jsxs)(AV,{children:[(0,_.jsx)(jV,{placeholder:y,className:`h-9`}),(0,_.jsxs)(MV,{children:[(0,_.jsx)(NV,{children:b}),(0,_.jsx)(PV,{children:e.map(e=>(0,_.jsxs)(FV,{value:e.value,onSelect:x,children:[e.label,(0,_.jsx)(_V,{className:q(`ml-auto`,n===e.value?`opacity-100`:`opacity-0`)})]},e.value))})]})]})})]})]})});Mde.displayName=`Combobox`;var Nde=Ug({open:!1,reactNode:null});function Pde({className:e}){let[t,n]=Kte(Nde),{open:r,reactNode:i,title:a,description:o,className:s,onControlledOpen:c,onControlledClose:l}=t,u=()=>{l&&l(),n({open:!1,reactNode:null})};return(0,g.useEffect)(()=>{r&&c&&c()},[r]),(0,_.jsx)(CV,{open:r,onOpenChange:e=>{e||u()},children:(0,_.jsxs)(TV,{className:q(`max-w-4xl`,s,e),children:[(0,_.jsxs)(EV,{children:[(0,_.jsx)(OV,{className:a?void 0:`sr-only`,children:a||`Modal`}),(0,_.jsx)(kV,{className:o?void 0:`sr-only`,children:o||`Modal content`})]}),i]})})}var zV=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`circle`,{cx:12,cy:12,r:10,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2})}),Fde=g.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,_.jsxs)(iy,{ref:i,className:q(`flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`,t&&`pl-8`,e),...r,children:[n,(0,_.jsx)(mV,{className:`ml-auto h-4 w-4`})]}));Fde.displayName=iy.displayName;var Ide=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(ay,{ref:n,className:q(`z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]`,e),...t}));Ide.displayName=ay.displayName;var Lde=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Ine,{children:(0,_.jsx)(Zv,{ref:n,className:q(`z-50 max-h-[--radix-context-menu-content-available-height] min-w-32 overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]`,e),...t})}));Lde.displayName=Zv.displayName;var Rde=g.forwardRef(({className:e,inset:t,...n},r)=>(0,_.jsx)($v,{ref:r,className:q(`relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50`,t&&`pl-8`,e),...n}));Rde.displayName=$v.displayName;var zde=g.forwardRef(({className:e,children:t,checked:n,...r},i)=>(0,_.jsxs)(ey,{ref:i,className:q(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50`,e),checked:n,...r,children:[(0,_.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,_.jsx)(ny,{children:(0,_.jsx)(_V,{className:`h-4 w-4`})})}),t]}));zde.displayName=ey.displayName;var Bde=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsxs)(ty,{ref:r,className:q(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50`,e),...n,children:[(0,_.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,_.jsx)(ny,{children:(0,_.jsx)(zV,{className:`h-2 w-2 fill-current`})})}),t]}));Bde.displayName=ty.displayName;var Vde=g.forwardRef(({className:e,inset:t,...n},r)=>(0,_.jsx)(Qv,{ref:r,className:q(`px-2 py-1.5 text-sm font-semibold text-foreground`,t&&`pl-8`,e),...n}));Vde.displayName=Qv.displayName;var Hde=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(ry,{ref:n,className:q(`-mx-1 my-1 h-px bg-border`,e),...t}));Hde.displayName=ry.displayName;var Ude=({className:e,...t})=>(0,_.jsx)(`span`,{className:q(`ml-auto text-xs tracking-widest text-muted-foreground`,e),...t});Ude.displayName=`ContextMenuShortcut`;var BV=g.forwardRef(({className:e,type:t,onValueChange:n,onChange:r,...i},a)=>{let o=e=>{n?.(e.target.value),r?.(e)};return(0,_.jsx)(`input`,{type:t,"data-slot":`input`,className:q(`file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base bg-input-background transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,`focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]`,`aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,e),ref:a,...i,onChange:o})});BV.displayName=`Input`;var Wde=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,children:[(0,_.jsx)(`path`,{d:`M8 2v4m8-4v4`}),(0,_.jsx)(`rect`,{width:18,height:18,x:3,y:4,rx:2}),(0,_.jsx)(`path`,{d:`M3 10h18`})]})});function VV({value:e,onValueChange:t,placeholder:n,disabled:r=!1,className:i}){let{SD:a}=xV(),o=n??a(`rc.datePicker.pickDate`);return(0,_.jsxs)(IV,{children:[(0,_.jsx)(LV,{asChild:!0,children:(0,_.jsxs)(J,{variant:`outline`,disabled:r,"data-empty":!e,className:q(`w-full justify-start text-left font-normal`,`data-[empty=true]:text-muted-foreground`,i),children:[(0,_.jsx)(Wde,{}),e?rc(e,`PPP`):(0,_.jsx)(`span`,{children:o})]})}),(0,_.jsx)(RV,{className:`w-auto p-0`,align:`start`,children:(0,_.jsx)(pde,{mode:`single`,selected:e,onSelect:e=>{t?.(e)},initialFocus:!0})})]})}var Gde=({shouldScaleBackground:e=!0,...t})=>(0,_.jsx)(zy.Root,{shouldScaleBackground:e,...t});Gde.displayName=`Drawer`,zy.Trigger;var Kde=zy.Portal;zy.Close;var HV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(zy.Overlay,{ref:n,className:q(`fixed inset-0 z-50 bg-black/80`,e),...t}));HV.displayName=zy.Overlay.displayName;var qde=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsxs)(Kde,{children:[(0,_.jsx)(HV,{}),(0,_.jsxs)(zy.Content,{ref:r,className:q(`fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background`,e),...n,children:[(0,_.jsx)(`div`,{className:`mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted`}),t]})]}));qde.displayName=`DrawerContent`;var Jde=({className:e,...t})=>(0,_.jsx)(`div`,{className:q(`grid gap-1.5 p-4 text-center sm:text-left`,e),...t});Jde.displayName=`DrawerHeader`;var Yde=({className:e,...t})=>(0,_.jsx)(`div`,{className:q(`mt-auto flex flex-col gap-2 p-4`,e),...t});Yde.displayName=`DrawerFooter`;var Xde=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(zy.Title,{ref:n,className:q(`text-lg font-semibold leading-none tracking-tight`,e),...t}));Xde.displayName=zy.Title.displayName;var Zde=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(zy.Description,{ref:n,className:q(`text-sm text-muted-foreground`,e),...t}));Zde.displayName=zy.Description.displayName;var Qde=g.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,_.jsxs)(lb,{ref:i,className:q(`flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,t&&`pl-8`,e),...r,children:[n,(0,_.jsx)(mV,{className:`ml-auto`})]}));Qde.displayName=lb.displayName;var $de=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(ub,{ref:n,className:q(`z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]`,e),...t}));$de.displayName=ub.displayName;var efe=g.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,_.jsx)(tb,{children:(0,_.jsx)(nb,{ref:r,sideOffset:t,className:q(`z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-32 overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]`,e),...n})}));efe.displayName=nb.displayName;var tfe=g.forwardRef(({className:e,inset:t,...n},r)=>(0,_.jsx)(ib,{ref:r,className:q(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,t&&`pl-8`,e),...n}));tfe.displayName=ib.displayName;var nfe=g.forwardRef(({className:e,children:t,checked:n,...r},i)=>(0,_.jsxs)(ab,{ref:i,className:q(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50`,e),checked:n,...r,children:[(0,_.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,_.jsx)(sb,{children:(0,_.jsx)(_V,{className:`h-4 w-4`})})}),t]}));nfe.displayName=ab.displayName;var rfe=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsxs)(ob,{ref:r,className:q(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50`,e),...n,children:[(0,_.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,_.jsx)(sb,{children:(0,_.jsx)(zV,{className:`h-2 w-2 fill-current`})})}),t]}));rfe.displayName=ob.displayName;var ife=g.forwardRef(({className:e,inset:t,...n},r)=>(0,_.jsx)(rb,{ref:r,className:q(`px-2 py-1.5 text-sm font-semibold`,t&&`pl-8`,e),...n}));ife.displayName=rb.displayName;var afe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(cb,{ref:n,className:q(`-mx-1 my-1 h-px bg-muted`,e),...t}));afe.displayName=cb.displayName;var ofe=({className:e,...t})=>(0,_.jsx)(`span`,{className:q(`ml-auto text-xs tracking-widest opacity-60`,e),...t});ofe.displayName=`DropdownMenuShortcut`;var sfe=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M21 12a9 9 0 1 1-6.219-8.56`})}),cfe=Mn(`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70`),UV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Tb,{ref:n,className:q(cfe(),e),...t}));UV.displayName=Tb.displayName;var lfe=g.createContext(null),WV=()=>{let e=g.useContext(lfe),t=g.useContext(GV),{getFieldState:n,formState:r}=bb();if(!e)throw Error(`useFormField should be used within <FormField>`);if(!t)throw Error(`useFormField should be used within <FormItem>`);let i=n(e.name,r),{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},GV=g.createContext(null),ufe=g.forwardRef(({className:e,...t},n)=>{let r=g.useId();return(0,_.jsx)(GV.Provider,{value:{id:r},children:(0,_.jsx)(`div`,{ref:n,className:q(`space-y-2`,e),...t})})});ufe.displayName=`FormItem`;var dfe=g.forwardRef(({className:e,...t},n)=>{let{error:r,formItemId:i}=WV();return(0,_.jsx)(UV,{ref:n,className:q(r&&`text-destructive`,e),htmlFor:i,...t})});dfe.displayName=`FormLabel`;var ffe=g.forwardRef(({...e},t)=>{let{error:n,formItemId:r,formDescriptionId:i,formMessageId:a}=WV();return(0,_.jsx)(oo,{ref:t,id:r,"aria-describedby":n?`${i} ${a}`:`${i}`,"aria-invalid":!!n,...e})});ffe.displayName=`FormControl`;var pfe=g.forwardRef(({className:e,...t},n)=>{let{formDescriptionId:r}=WV();return(0,_.jsx)(`p`,{ref:n,id:r,className:q(`text-sm text-muted-foreground`,e),...t})});pfe.displayName=`FormDescription`;var mfe=g.forwardRef(({className:e,children:t,...n},r)=>{let{error:i,formMessageId:a}=WV(),o=i?String(i?.message??``):t;return o?(0,_.jsx)(`p`,{ref:r,id:a,className:q(`text-sm font-medium text-destructive`,e),...n,children:o}):null});mfe.displayName=`FormMessage`;var hfe=g.forwardRef(({className:e,align:t=`center`,sideOffset:n=4,...r},i)=>(0,_.jsx)(Kb,{ref:i,align:t,sideOffset:n,className:q(`z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-hover-card-content-transform-origin]`,e),...r}));hfe.displayName=Kb.displayName;var gfe=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`circle`,{cx:12.1,cy:12.1,r:1,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2})}),_fe=g.forwardRef(({className:e,containerClassName:t,...n},r)=>(0,_.jsx)(dx,{ref:r,containerClassName:q(`flex items-center gap-2 has-[:disabled]:opacity-50`,t),className:q(`disabled:cursor-not-allowed`,e),...n}));_fe.displayName=`InputOTP`;var vfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`div`,{ref:n,className:q(`flex items-center`,e),...t}));vfe.displayName=`InputOTPGroup`;var yfe=g.forwardRef(({index:e,className:t,...n},r)=>{let{char:i,hasFakeCaret:a,isActive:o}=g.useContext(ux).slots[e];return(0,_.jsxs)(`div`,{ref:r,className:q(`relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md`,o&&`z-10 ring-2 ring-ring ring-offset-background`,t),...n,children:[i,a&&(0,_.jsx)(`div`,{className:`pointer-events-none absolute inset-0 flex items-center justify-center`,children:(0,_.jsx)(`div`,{className:`h-4 w-px animate-caret-blink bg-foreground duration-1000`})})]})});yfe.displayName=`InputOTPSlot`;var bfe=g.forwardRef(({...e},t)=>(0,_.jsx)(`div`,{ref:t,role:`separator`,...e,children:(0,_.jsx)(gfe,{})}));bfe.displayName=`InputOTPSeparator`;var xfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(zx,{ref:n,className:q(`flex h-10 items-center space-x-1 rounded-md border bg-background p-1`,e),...t}));xfe.displayName=zx.displayName;var Sfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Bx,{ref:n,className:q(`flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`,e),...t}));Sfe.displayName=Bx.displayName;var Cfe=g.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,_.jsxs)(Jx,{ref:i,className:q(`flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`,t&&`pl-8`,e),...r,children:[n,(0,_.jsx)(mV,{className:`ml-auto h-4 w-4`})]}));Cfe.displayName=Jx.displayName;var wfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Yx,{ref:n,className:q(`z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]`,e),...t}));wfe.displayName=Yx.displayName;var Tfe=g.forwardRef(({className:e,align:t=`start`,alignOffset:n=-4,sideOffset:r=8,...i},a)=>(0,_.jsx)(Xre,{children:(0,_.jsx)(Vx,{ref:a,align:t,alignOffset:n,sideOffset:r,className:q(`z-50 min-w-48 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]`,e),...i})}));Tfe.displayName=Vx.displayName;var Efe=g.forwardRef(({className:e,inset:t,...n},r)=>(0,_.jsx)(Ux,{ref:r,className:q(`relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50`,t&&`pl-8`,e),...n}));Efe.displayName=Ux.displayName;var Dfe=g.forwardRef(({className:e,children:t,checked:n,...r},i)=>(0,_.jsxs)(Wx,{ref:i,className:q(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50`,e),checked:n,...r,children:[(0,_.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,_.jsx)(Kx,{children:(0,_.jsx)(_V,{className:`h-4 w-4`})})}),t]}));Dfe.displayName=Wx.displayName;var Ofe=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsxs)(Gx,{ref:r,className:q(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50`,e),...n,children:[(0,_.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,_.jsx)(Kx,{children:(0,_.jsx)(zV,{className:`h-2 w-2 fill-current`})})}),t]}));Ofe.displayName=Gx.displayName;var kfe=g.forwardRef(({className:e,inset:t,...n},r)=>(0,_.jsx)(Hx,{ref:r,className:q(`px-2 py-1.5 text-sm font-semibold`,t&&`pl-8`,e),...n}));kfe.displayName=Hx.displayName;var Afe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(qx,{ref:n,className:q(`-mx-1 my-1 h-px bg-muted`,e),...t}));Afe.displayName=qx.displayName;var jfe=({className:e,...t})=>(0,_.jsx)(`span`,{className:q(`ml-auto text-xs tracking-widest text-muted-foreground`,e),...t});jfe.displayname=`MenubarShortcut`;var KV=g.forwardRef(({className:e,orientation:t=`horizontal`,decorative:n=!0,...r},i)=>(0,_.jsx)(Qx,{ref:i,decorative:n,orientation:t,className:q(`shrink-0 bg-border`,t===`horizontal`?`h-px w-full`:`h-full w-px`,e),...r}));KV.displayName=Qx.displayName;function Mfe(e){return typeof e==`object`&&!!e&&`value`in e}function Nfe(e,t){let n=e.multiple===!0,r=e.async===!0,i=(0,g.useRef)(null);(0,g.useImperativeHandle)(t,()=>i.current);let[a,o]=(0,g.useState)(!1),[s,c]=(0,g.useState)(``),[l,u]=(0,g.useState)(new Map),d=(0,g.useCallback)(t=>t==null?``:e.valueKey?e.valueKey(t):String(t),[e.valueKey]),f=(0,g.useMemo)(()=>e.items.map(e=>Mfe(e)?e:{value:e}),[e.items]),p=(0,g.useMemo)(()=>{let e=new Map;for(let t of f)e.set(d(t.value),t.value);return e},[f,d]),m=(0,g.useCallback)(t=>{if(e.renderItem)return e.renderItem(t);let n=f.find(e=>e.value===t);if(n?.label!==void 0)return n.label;if(r){let e=l.get(d(t));if(e?.label!==void 0)return e.label}return String(t)},[e.renderItem,f,r,l,d]);(0,g.useEffect)(()=>{if(!r)return;let t=n?e.value:[e.value].filter(Boolean),i=new Map;for(let e of t){let t=d(e),n=f.find(t=>t.value===e);n&&i.set(t,n)}u(i)},[r,n,e,f,d]);let h=(0,g.useCallback)(e=>{c(e)},[]),_=r&&`onSearch`in e?e.onSearch:void 0,v=r&&`searchDebounce`in e&&e.searchDebounce!==void 0?e.searchDebounce:300;(0,g.useEffect)(()=>{if(!_||s===``)return;let e=setTimeout(()=>{_(s)},v);return()=>clearTimeout(e)},[s,_,v]);let y=(0,g.useMemo)(()=>{if(r){let e=new Map;for(let[t,n]of l)e.set(t,n);for(let t of f)e.set(d(t.value),t);return Array.from(e.values())}else return s?f.filter(e=>{let t=m(e.value);return String(t).toLowerCase().includes(s.toLowerCase())}):f},[r,f,l,s,d,m]);return(0,g.useEffect)(()=>{a||c(``)},[a]),{isMultiple:n,isAsync:r,selectRef:i,isPopoverOpen:a,setIsPopoverOpen:o,searchValue:s,handleSearchChange:h,filteredOptions:y,normalizedItems:f,getKeyForValue:d,valueByKey:p,getItemLabel:m}}function Pfe(e,t){if(!t||typeof e!=`string`)return e;let n=e.toLowerCase(),r=t.toLowerCase(),i=n.indexOf(r);if(i===-1)return e;let a=e.slice(0,i),o=e.slice(i,i+t.length),s=e.slice(i+t.length);return(0,_.jsxs)(_.Fragment,{children:[a,(0,_.jsx)(`strong`,{className:`font-bold`,children:o}),s]})}function Ffe({props:e,isMultiple:t,isAsync:n,isPopoverOpen:r,setIsPopoverOpen:i,searchValue:a,handleSearchChange:o,filteredOptions:s,getKeyForValue:c,getItemLabel:l}){let{SD:u}=xV(),d=(0,g.useRef)(null),f=n||`searchable`in e&&e.searchable===!0,p=(0,g.useCallback)(e=>{let t=d.current;if(!t)return;let n=t.scrollTop<t.scrollHeight-t.clientHeight,r=t.scrollTop>0;(e.deltaY>0&&n||e.deltaY<0&&r)&&e.stopPropagation()},[]),m=(0,g.useCallback)(n=>{if(!e.disabled)if(t){let t=e.value,r=t.includes(n)?t.filter(e=>e!==n):[...t,n];e.onValueChange(r)}else e.onValueChange?.(n),i(!1)},[t,e,i]),h=(0,g.useCallback)(()=>{if(!t||e.disabled)return;let n=s.filter(e=>!e.disabled);if(e.value.length===n.length)e.onValueChange([]);else{let t=n.map(e=>e.value);e.onValueChange(t)}},[t,e,s]),v=(0,g.useCallback)(()=>{e.disabled||(t?e.onValueChange([]):e.onValueChange?.(void 0))},[t,e]),y=(0,g.useCallback)(n=>t?e.value.includes(n):e.value===n,[t,e]),b=n&&`loading`in e?e.loading:!1,x=n&&`error`in e?e.error:void 0,S=t?e.value.length>0:e.value!==void 0&&e.value!==null&&e.value!==``,C=()=>{if(!t)return null;let n=e.value;return(0,_.jsx)(_.Fragment,{children:n.map(e=>{let t=c(e);return(0,_.jsxs)(rde,{variant:`outline`,className:`m-1 transition-all duration-300 ease-in-out`,children:[l(e),(0,_.jsx)(yV,{className:`ml-2 h-3 w-3 cursor-pointer`,onClick:t=>{t.stopPropagation(),m(e)}})]},t)})})};return(0,_.jsxs)(IV,{open:r,onOpenChange:i,children:[(0,_.jsx)(LV,{asChild:!0,children:(0,_.jsx)(J,{variant:`outline`,role:`combobox`,"aria-expanded":r,disabled:e.disabled||b,className:q(`flex p-1 rounded-md border border-input min-h-10 h-auto items-center justify-between bg-white hover:bg-white hover:text-inherit [&_svg]:pointer-events-auto w-full`,e.className),children:t&&S?(0,_.jsxs)(`div`,{className:`flex justify-between items-center w-full`,children:[(0,_.jsx)(`div`,{className:`flex items-center gap-1 flex-wrap`,children:C()}),(0,_.jsxs)(`div`,{className:`flex items-center justify-between`,children:[e.clearable&&(0,_.jsx)(`div`,{role:`button`,tabIndex:0,onClick:e=>{e.stopPropagation(),v()},className:`flex items-center justify-center h-4 w-4 mx-2 cursor-pointer text-muted-foreground hover:text-foreground`,children:(0,_.jsx)(SV,{className:`h-4 w-4`})}),(0,_.jsx)(KV,{orientation:`vertical`,className:`flex min-h-6 h-full`}),(0,_.jsx)(uV,{className:`h-4 mx-2 cursor-pointer text-muted-foreground`})]})]}):!t&&S?(0,_.jsxs)(`div`,{className:`flex justify-between items-center w-full px-2 py-1`,children:[(()=>{let t=e.value;return t==null?null:(0,_.jsx)(`span`,{className:`flex-1 truncate text-left text-sm`,children:l(t)})})(),(0,_.jsxs)(`div`,{className:`flex items-center gap-1 shrink-0`,children:[e.clearable&&S&&(0,_.jsx)(yV,{className:`h-4 w-4 cursor-pointer opacity-50 hover:opacity-100 transition-opacity`,onPointerDownCapture:v,onMouseDownCapture:v}),(0,_.jsx)(uV,{className:`h-4 w-4 opacity-50`})]})]}):(0,_.jsxs)(`div`,{className:`flex items-center justify-between w-full px-2 py-1`,children:[(0,_.jsx)(`span`,{className:`text-sm text-muted-foreground flex-1 truncate text-left`,children:e.placeholder}),(0,_.jsx)(uV,{className:`h-4 cursor-pointer text-muted-foreground`})]})})}),(0,_.jsx)(RV,{className:`min-w-40 p-0`,align:`start`,style:{width:`var(--radix-popover-trigger-width)`},children:(0,_.jsxs)(AV,{shouldFilter:!1,children:[f&&(0,_.jsx)(jV,{placeholder:u(`common.searchPlaceholder`),value:a,onValueChange:o}),(0,_.jsx)(MV,{ref:d,onWheel:p,children:b?(0,_.jsx)(NV,{children:(0,_.jsx)(`div`,{className:`flex items-center justify-center`,children:(0,_.jsx)(sfe,{className:`h-4 w-4 animate-spin mr-2`})})}):x?(0,_.jsxs)(NV,{children:[`Error: `,x.message]}):s.length===0?(0,_.jsx)(NV,{children:u(`rc.multiSelect.noResults`)}):(0,_.jsxs)(_.Fragment,{children:[t&&!(`hideSelectAll`in e&&e.hideSelectAll)&&(0,_.jsx)(PV,{children:(0,_.jsxs)(FV,{onSelect:h,className:`cursor-pointer`,children:[(0,_.jsx)(`div`,{className:q(`mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary`,e.value.length===s.filter(e=>!e.disabled).length?`bg-primary text-primary-foreground`:`opacity-50 [&_svg]:invisible`),children:(0,_.jsx)(_V,{className:`h-4 w-4`})}),(0,_.jsxs)(`span`,{children:[`(`,u(`rc.multiSelect.selectAll`),`)`]})]})}),(0,_.jsx)(PV,{children:s.map(e=>{let n=c(e.value),r=y(e.value);return(0,_.jsxs)(FV,{onSelect:()=>m(e.value),disabled:e.disabled,className:q(`cursor-pointer`,e.disabled&&`opacity-50 cursor-not-allowed`),children:[t&&(0,_.jsx)(`div`,{className:q(`mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary`,r?`bg-primary text-primary-foreground`:`opacity-50 [&_svg]:invisible`),children:(0,_.jsx)(_V,{className:`h-4 w-4`})}),!t&&(0,_.jsx)(_V,{className:q(`mr-2 h-4 w-4`,r?`opacity-100`:`opacity-0`)}),(0,_.jsx)(`span`,{children:Pfe(l(e.value),a)})]},n)})})]})})]})})]})}var qV=g.forwardRef(function(e,t){let n=Nfe(e,t);return(0,_.jsx)(Ffe,{props:e,isMultiple:n.isMultiple,isAsync:n.isAsync,isPopoverOpen:n.isPopoverOpen,setIsPopoverOpen:n.setIsPopoverOpen,searchValue:n.searchValue,handleSearchChange:n.handleSearchChange,filteredOptions:n.filteredOptions,getKeyForValue:n.getKeyForValue,getItemLabel:n.getItemLabel})}),Ife=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsxs)(FS,{ref:r,className:q(`relative z-10 flex max-w-max flex-1 items-center justify-center`,e),...n,children:[t,(0,_.jsx)(JV,{})]}));Ife.displayName=FS.displayName;var Lfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(IS,{ref:n,className:q(`group flex flex-1 list-none items-center justify-center space-x-1`,e),...t}));Lfe.displayName=IS.displayName;var Rfe=Mn(`group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent`),zfe=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsxs)(LS,{ref:r,className:q(Rfe(),`group`,e),...n,children:[t,` `,(0,_.jsx)(uV,{className:`relative top-px ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180`,"aria-hidden":`true`})]}));zfe.displayName=LS.displayName;var Bfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(zS,{ref:n,className:q(`left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto `,e),...t}));Bfe.displayName=zS.displayName;var JV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`div`,{className:q(`absolute left-0 top-full flex justify-center`),children:(0,_.jsx)(BS,{className:q(`origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-(--radix-navigation-menu-viewport-width)`,e),ref:n,...t})}));JV.displayName=BS.displayName;var Vfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(RS,{ref:n,className:q(`top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in`,e),...t,children:(0,_.jsx)(`div`,{className:`relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md`})}));Vfe.displayName=RS.displayName;var Hfe=g.forwardRef(({value:e,onValueChange:t,total:n,itemsPerPage:r,className:i,maxVisible:a=6},o)=>{let{SD:s}=xV(),c=Math.ceil(n/r),l=e,u=(l-1)*r+1,d=Math.min(l*r,n);return(0,_.jsxs)(`div`,{ref:o,className:q(`flex items-center justify-between pt-6`,i),children:[(0,_.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:s(`rc.pagination.showing`)(u,d,n)}),(0,_.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,_.jsx)(J,{variant:`outline`,size:`sm`,className:`h-8 px-3 text-xs`,disabled:l===1,onClick:()=>t(l-1),children:s(`rc.pagination.previous`)}),(0,_.jsx)(`div`,{className:`flex items-center gap-1`,children:(()=>{let e=Math.max(1,l-Math.floor(a/2)),n=Math.min(c,e+a-1);return n-e+1<a&&(e=Math.max(1,n-a+1)),Array.from({length:n-e+1},(t,n)=>e+n).map(e=>(0,_.jsx)(J,{variant:`outline`,size:`sm`,className:`h-8 w-8 text-xs ${e===l?`bg-primary text-primary-foreground`:``}`,onClick:()=>t(e),children:e},e))})()}),(0,_.jsx)(J,{variant:`outline`,size:`sm`,className:`h-8 px-3 text-xs`,disabled:l===c,onClick:()=>t(l+1),children:s(`rc.pagination.next`)})]})]})});Hfe.displayName=`Pagination`;var Ufe=g.forwardRef(({className:e,value:t,...n},r)=>(0,_.jsx)(XS,{ref:r,className:q(`relative h-4 w-full overflow-hidden rounded-full bg-secondary`,e),...n,children:(0,_.jsx)(Die,{className:`h-full w-full flex-1 bg-primary transition-all`,style:{transform:`translateX(-${100-(t||0)}%)`}})}));Ufe.displayName=XS.displayName;var Wfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(dC,{className:q(`grid gap-2`,e),...t,ref:n}));Wfe.displayName=dC.displayName;var Gfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(fC,{ref:n,className:q(`aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50`,e),...t,children:(0,_.jsx)(Rie,{className:`flex items-center justify-center`,children:(0,_.jsx)(zV,{className:`h-2.5 w-2.5 fill-current text-current`})})}));Gfe.displayName=fC.displayName;var Kfe=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsxs)(qw,{ref:r,className:q(`relative overflow-hidden`,e),...n,children:[(0,_.jsx)(jae,{className:`h-full w-full rounded-[inherit]`,children:t}),(0,_.jsx)(YV,{}),(0,_.jsx)(Jw,{})]}));Kfe.displayName=qw.displayName;var YV=g.forwardRef(({className:e,orientation:t=`vertical`,...n},r)=>(0,_.jsx)(Aw,{ref:r,orientation:t,className:q(`flex touch-none select-none transition-colors`,t===`vertical`&&`h-full w-2.5 border-l border-l-transparent p-px`,t===`horizontal`&&`h-2.5 flex-col border-t border-t-transparent p-px`,e),...n,children:(0,_.jsx)(Iw,{className:`relative flex-1 rounded-full bg-border`})}));YV.displayName=Aw.displayName;function XV({enum:e,labels:t,value:n,onValueChange:r,placeholder:i,textPrefix:a=``,clearable:o=!1,disabled:s=!1,className:c,multiple:l=!1}){let u=g.useMemo(()=>e.options.filter(e=>e!==``),[e]),d=g.useMemo(()=>u.map(e=>({value:e,label:a+t[e]})),[u,t,a]);return l?(0,_.jsx)(qV,{items:d,value:n??[],onValueChange:e=>{r?.(e)},placeholder:i,clearable:o,disabled:s,className:c,multiple:!0,async:!1}):(0,_.jsx)(qV,{items:d,value:n??``,onValueChange:e=>{r?.(e)},placeholder:i,clearable:o,disabled:s,className:c,multiple:!1,async:!1})}var qfe=_a,ZV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(va,{className:q(`fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t,ref:n}));ZV.displayName=va.displayName;var Jfe=Mn(`fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500`,{variants:{side:{top:`inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,bottom:`inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,left:`inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,right:`inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`}},defaultVariants:{side:`right`}}),Yfe=g.forwardRef(({side:e=`right`,className:t,children:n,...r},i)=>(0,_.jsxs)(qfe,{children:[(0,_.jsx)(ZV,{}),(0,_.jsxs)(ya,{ref:i,className:q(Jfe({side:e}),t),...r,children:[n,(0,_.jsxs)(Sa,{className:`absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,_.jsx)(SV,{className:`h-4 w-4`}),(0,_.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]}));Yfe.displayName=ya.displayName;var Xfe=({className:e,...t})=>(0,_.jsx)(`div`,{className:q(`flex flex-col space-y-2 text-center sm:text-left`,e),...t});Xfe.displayName=`SheetHeader`;var Zfe=({className:e,...t})=>(0,_.jsx)(`div`,{className:q(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});Zfe.displayName=`SheetFooter`;var Qfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(ba,{ref:n,className:q(`text-lg font-semibold text-foreground`,e),...t}));Qfe.displayName=ba.displayName;var $fe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(xa,{ref:n,className:q(`text-sm text-muted-foreground`,e),...t}));$fe.displayName=xa.displayName;var epe=OT,QV=kT,$V=AT,eH=g.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,_.jsx)(jT,{ref:r,sideOffset:t,className:q(`z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]`,e),...n}));eH.displayName=jT.displayName,g.createContext(null);var tpe=g.forwardRef(({className:e,name:t,value:n,defaultValue:r,onValueChange:i,onBlur:a,...o},s)=>{let c=g.useRef(null);g.useImperativeHandle(s,()=>c.current);let l=e=>{i?.(e[0])},u=dV(n),d=dV(r);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`input`,{type:`range`,ref:c,name:t,defaultValue:d?.[0],onBlur:a,className:`sr-only`,tabIndex:-1,"aria-hidden":`true`}),(0,_.jsxs)(pE,{value:u,defaultValue:d,onValueChange:l,className:q(`relative flex w-full touch-none select-none items-center`,e),...o,children:[(0,_.jsx)(mE,{className:`relative h-2 w-full grow overflow-hidden rounded-full bg-secondary`,children:(0,_.jsx)(hE,{className:`absolute h-full bg-primary`})}),(0,_.jsx)(gE,{className:`block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50`})]})]})});tpe.displayName=`Slider`;async function tH(e,t){if(e instanceof File){let[n]=await t([e]);return n}if(Array.isArray(e))return e.length>0&&e.every(e=>e instanceof File)?await t(e):await Promise.all(e.map(e=>tH(e,t)));if(typeof e==`object`&&e&&Object.prototype.toString.call(e)===`[object Object]`){let n={};for(let[r,i]of Object.entries(e))n[r]=await tH(i,t);return n}return e}function nH(e,t){let[n,r]=(0,g.useState)(t),[i,a]=(0,g.useState)(new Map),{uploader:o}=xV();function s(e,t){let n=t.replace(/\./g,`.shape.`).replace(/\[[^\]]+\]/g,`.element`).replace(/^\.element/,`element`),r;return e instanceof OI?r=xE(e.shape,n):e instanceof TI&&(r=xE(e,n)),r===void 0?`normal`:r instanceof iL?`optional`:r instanceof cL?`nullable`:`normal`}return{form:n,setForm:r,register:(t,o)=>{let c=o??s(e,t),l=xE(n,t),u=i.get(t),d={value:l??``,onValueChange:e=>{u!==void 0&&a(e=>{let n=new Map(e);return n.delete(t),n});let i=e;c===`nullable`?i=e===``?null:e:c===`optional`&&(i=e===``?void 0:e);let o=t.indexOf(`.`)===-1&&t.indexOf(`[`)===-1;r(i===void 0&&o?{...n,[t]:void 0}:CE(n,t,i))}};return u&&(d.error=u),d},submit:e=>async()=>{let t=await tH(n,o);return r(t),await e(t)},addError:(e,t)=>{a(n=>{let r=new Map(n);return r.set(e,typeof t==`string`?{content:t}:t),r})},removeError:e=>{a(t=>{let n=new Map(t);return n.delete(e),n})},clearError:()=>{a(new Map)},reset:()=>{r(t)}}}var rH=g.forwardRef(({className:e,name:t,checked:n,value:r,defaultChecked:i,onValueChange:a,onBlur:o,...s},c)=>{let l=r===void 0?n:r,u=g.useRef(null);g.useImperativeHandle(c,()=>u.current);let d=e=>{a?.(e)};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`input`,{type:`checkbox`,ref:u,name:t,defaultChecked:i,onBlur:o,className:`sr-only`,tabIndex:-1,"aria-hidden":`true`}),(0,_.jsx)(sue,{checked:l,defaultChecked:i,onCheckedChange:d,className:q(`peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input`,e),...s,children:(0,_.jsx)(cue,{className:q(`pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0`)})})]})});rH.displayName=`Switch`;function iH({className:e,containerClassName:t,...n}){return(0,_.jsx)(`div`,{"data-slot":`table-container`,className:q(`relative w-full overflow-x-auto`,t),children:(0,_.jsx)(`table`,{"data-slot":`table`,className:q(`w-full caption-bottom text-sm`,e),...n})})}function aH({className:e,...t}){return(0,_.jsx)(`thead`,{"data-slot":`table-header`,className:q(`[&_tr]:border-b`,e),...t})}function oH({className:e,...t}){return(0,_.jsx)(`tbody`,{"data-slot":`table-body`,className:q(`[&_tr:last-child]:border-0`,e),...t})}function sH({className:e,...t}){return(0,_.jsx)(`tr`,{"data-slot":`table-row`,className:q(`hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors`,e),...t})}function cH({className:e,fit:t,align:n,...r}){return(0,_.jsx)(`th`,{"data-slot":`table-head`,className:q(`text-foreground h-10 px-2 text-left font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-[2px]`,t&&`w-px`,n===`center`&&`text-center`,n===`right`&&`text-right`,e),style:{verticalAlign:`middle`},...r})}function lH({className:e,fit:t,align:n,...r}){return(0,_.jsx)(`td`,{"data-slot":`table-cell`,className:q(`p-2 whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-[2px]`,t&&`w-px`,n===`center`&&`text-center`,n===`right`&&`text-right`,e),style:{verticalAlign:`middle`},...r})}var npe=fue,uH=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(_B,{ref:n,className:q(`inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground`,e),...t}));uH.displayName=_B.displayName;var dH=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(vB,{ref:n,className:q(`inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm`,e),...t}));dH.displayName=vB.displayName;var fH=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(yB,{ref:n,className:q(`mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`,e),...t}));fH.displayName=yB.displayName;var pH=g.forwardRef(({className:e,onValueChange:t,onChange:n,...r},i)=>{let a=e=>{t?.(e.target.value),n?.(e)};return(0,_.jsx)(`textarea`,{className:q(`flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),ref:i,...r,onChange:a})});pH.displayName=`Textarea`;var rpe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(UB,{ref:n,className:q(`fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]`,e),...t}));rpe.displayName=UB.displayName;var ipe=Mn(`group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full`,{variants:{variant:{default:`border bg-background text-foreground`,destructive:`destructive group border-destructive bg-destructive text-destructive-foreground`}},defaultVariants:{variant:`default`}}),ape=g.forwardRef(({className:e,variant:t,...n},r)=>(0,_.jsx)(WB,{ref:r,className:q(ipe({variant:t}),e),...n}));ape.displayName=WB.displayName;var ope=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(qB,{ref:n,className:q(`inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive`,e),...t}));ope.displayName=qB.displayName;var spe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(JB,{ref:n,className:q(`absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600`,e),"toast-close":``,...t,children:(0,_.jsx)(SV,{className:`h-4 w-4`})}));spe.displayName=JB.displayName;var cpe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(GB,{ref:n,className:q(`text-sm font-semibold`,e),...t}));cpe.displayName=GB.displayName;var lpe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(KB,{ref:n,className:q(`text-sm opacity-90`,e),...t}));lpe.displayName=KB.displayName;var mH=Mn(`inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent hover:bg-accent hover:text-accent-foreground`},size:{default:`h-10 px-3 min-w-10`,sm:`h-9 px-2.5 min-w-9`,lg:`h-11 px-5 min-w-11`}},defaultVariants:{variant:`default`,size:`default`}}),upe=g.forwardRef(({className:e,variant:t,size:n,value:r,pressed:i,onValueChange:a,onPressedChange:o,...s},c)=>{let l=r===void 0?i:r;return(0,_.jsx)(ZB,{ref:c,pressed:l,onPressedChange:e=>{a?.(e),o?.(e)},className:q(mH({variant:t,size:n,className:e})),...s})});upe.displayName=ZB.displayName;var hH=g.createContext({size:`default`,variant:`default`}),dpe=g.forwardRef(({className:e,variant:t,size:n,children:r,...i},a)=>(0,_.jsx)(cV,{ref:a,className:q(`flex items-center justify-center gap-1`,e),...i,children:(0,_.jsx)(hH.Provider,{value:{variant:t,size:n},children:r})}));dpe.displayName=cV.displayName;var fpe=g.forwardRef(({className:e,children:t,variant:n,size:r,...i},a)=>{let o=g.useContext(hH);return(0,_.jsx)(lV,{ref:a,className:q(mH({variant:o.variant||n,size:o.size||r}),e),...i,children:t})});fpe.displayName=lV.displayName;var gH=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ppe={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},_H=new class{#e=ppe;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function mpe(e){setTimeout(e,0)}var vH=typeof window>`u`||`Deno`in globalThis;function yH(){}function hpe(e,t){return typeof e==`function`?e(t):e}function bH(e){return typeof e==`number`&&e>=0&&e!==1/0}function xH(e,t){return Math.max(e+(t||0)-Date.now(),0)}function SH(e,t){return typeof e==`function`?e(t):e}function CH(e,t){return typeof e==`function`?e(t):e}function wH(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==EH(o,t.options))return!1}else if(!OH(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function TH(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(DH(t.options.mutationKey)!==DH(a))return!1}else if(!OH(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function EH(e,t){return(t?.queryKeyHashFn||DH)(e)}function DH(e){return JSON.stringify(e,(e,t)=>MH(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function OH(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>OH(e[n],t[n])):!1}var gpe=Object.prototype.hasOwnProperty;function kH(e,t){if(e===t)return e;let n=jH(e)&&jH(t);if(!n&&!(MH(e)&&MH(t)))return t;let r=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),a=i.length,o=n?Array(a):{},s=0;for(let c=0;c<a;c++){let a=n?c:i[c],l=e[a],u=t[a];if(l===u){o[a]=l,(n?c<r:gpe.call(e,a))&&s++;continue}if(l===null||u===null||typeof l!=`object`||typeof u!=`object`){o[a]=u;continue}let d=kH(l,u);o[a]=d,d===l&&s++}return r===a&&s===r?e:o}function AH(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function jH(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function MH(e){if(!NH(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!NH(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function NH(e){return Object.prototype.toString.call(e)===`[object Object]`}function _pe(e){return new Promise(t=>{_H.setTimeout(t,e)})}function PH(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:kH(e,t)}function vpe(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function ype(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var FH=Symbol();function IH(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===FH?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function bpe(e,t){return typeof e==`function`?e(...t):!!e}var LH=new class extends gH{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!vH&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}};function RH(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var xpe=mpe;function Spe(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=xpe,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var zH=Spe(),BH=new class extends gH{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!vH&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Cpe(e){return Math.min(1e3*2**e,3e4)}function VH(e){return(e??`online`)===`online`?BH.isOnline():!0}var HH=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function UH(e){let t=!1,n=0,r,i=RH(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new HH(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>LH.isFocused()&&(e.networkMode===`always`||BH.isOnline())&&e.canRun(),u=()=>VH(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(vH?0:3),o=e.retryDelay??Cpe,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),_pe(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var WH=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),bH(this.gcTime)&&(this.#e=_H.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(vH?1/0:300*1e3))}clearGcTimeout(){this.#e&&=(_H.clearTimeout(this.#e),void 0)}},wpe=class extends WH{#e;#t;#n;#r;#i;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=qH(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=qH(this.options);e.data!==void 0&&(this.setState(KH(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#n.remove(this)}setData(e,t){let n=PH(this.state.data,e,this.options);return this.#s({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#s({type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(yH).catch(yH):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>CH(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===FH||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>SH(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!xH(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#o?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#i?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{let e=IH(this.options,t),n=(()=>{let e={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#o=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#s({type:`fetch`,meta:a.fetchOptions?.meta}),this.#i=UH({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof HH&&e.revert&&this.setState({...this.#t,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#s({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#s({type:`pause`})},onContinue:()=>{this.#s({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#i.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof HH){if(e.silent)return this.#i.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#s({type:`error`,error:e}),this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#s(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...GH(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...KH(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}})(this.state),zH.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:`updated`,action:e})})}};function GH(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:VH(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function KH(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function qH(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Tpe=class extends gH{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=RH(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),JH(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return YH(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return YH(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof CH(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!AH(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&XH(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||CH(this.options.enabled,this.#t)!==CH(t.enabled,this.#t)||SH(this.options.staleTime,this.#t)!==SH(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||CH(this.options.enabled,this.#t)!==CH(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Dpe(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(yH)),t}#g(){this.#b();let e=SH(this.options.staleTime,this.#t);if(vH||this.#r.isStale||!bH(e))return;let t=xH(this.#r.dataUpdatedAt,e)+1;this.#d=_H.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(vH||CH(this.options.enabled,this.#t)===!1||!bH(this.#p)||this.#p===0)&&(this.#f=_H.setInterval(()=>{(this.options.refetchIntervalInBackground||LH.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d&&=(_H.clearTimeout(this.#d),void 0)}#x(){this.#f&&=(_H.clearInterval(this.#f),void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&JH(e,t),o=i&&XH(e,n,t,r);(a||o)&&(l={...l,...GH(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=PH(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=PH(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:ZH(e,t),refetch:this.refetch,promise:this.#o,isEnabled:CH(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=e=>{x.status===`error`?e.reject(x.error):x.data!==void 0&&e.resolve(x.data)},r=()=>{t(this.#o=x.promise=RH())},i=this.#o;switch(i.status){case`pending`:e.queryHash===n.queryHash&&t(i);break;case`fulfilled`:(x.status===`error`||x.data!==i.value)&&r();break;case`rejected`:(x.status!==`error`||x.error!==i.reason)&&r();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!AH(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){zH.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Epe(e,t){return CH(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&t.retryOnMount===!1)}function JH(e,t){return Epe(e,t)||e.state.data!==void 0&&YH(e,t,t.refetchOnMount)}function YH(e,t,n){if(CH(t.enabled,e)!==!1&&SH(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&ZH(e,t)}return!1}function XH(e,t,n,r){return(e!==t||CH(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&ZH(e,n)}function ZH(e,t){return CH(t.enabled,e)!==!1&&e.isStaleByTime(SH(t.staleTime,e))}function Dpe(e,t){return!AH(e.getCurrentResult(),t)}function QH(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener(`abort`,()=>{n=!0}),t.signal)})},u=IH(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?ype:vpe;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Ope:$H,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:$H(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function $H(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Ope(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var kpe=class extends WH{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Ape(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=UH({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),await this.#n.config.onMutate?.(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{throw await this.#n.config.onError?.(t,e,this.state.context,this,n),await this.options.onError?.(t,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,t,e,this.state.context,n),t}finally{this.#i({type:`error`,error:t})}}finally{this.#n.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}})(this.state),zH.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Ape(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var jpe=class extends gH{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new kpe({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=eU(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=eU(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=eU(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=eU(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){zH.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>TH(t,e))}findAll(e={}){return this.getAll().filter(t=>TH(e,t))}notify(e){zH.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return zH.batch(()=>Promise.all(e.map(e=>e.continue().catch(yH))))}};function eU(e){return e.options.scope?.id}var Mpe=class extends gH{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??EH(r,t),a=this.get(i);return a||(a=new wpe({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){zH.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>wH(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>wH(e,t)):t}notify(e){zH.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){zH.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){zH.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Npe=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Mpe,this.#t=e.mutationCache||new jpe,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=LH.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=BH.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(SH(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=hpe(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return zH.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;zH.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return zH.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=zH.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(yH).catch(yH)}invalidateQueries(e,t={}){return zH.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=zH.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(yH)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(yH)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(SH(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(yH).catch(yH)}fetchInfiniteQuery(e){return e.behavior=QH(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(yH).catch(yH)}ensureInfiniteQueryData(e){return e.behavior=QH(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return BH.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(DH(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{OH(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(DH(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{OH(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=EH(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===FH&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},tU=g.createContext(void 0),Ppe=e=>{let t=g.useContext(tU);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Fpe=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,_.jsx)(tU.Provider,{value:e,children:t})),nU=g.createContext(!1),Ipe=()=>g.useContext(nU);nU.Provider;function Lpe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Rpe=g.createContext(Lpe()),zpe=()=>g.useContext(Rpe),Bpe=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Vpe=e=>{g.useEffect(()=>{e.clearReset()},[e])},Hpe=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||bpe(n,[e.error,r])),Upe=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Wpe=(e,t)=>e.isLoading&&e.isFetching&&!t,Gpe=(e,t)=>e?.suspense&&t.isPending,rU=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Kpe(e,t,n){let r=Ipe(),i=zpe(),a=Ppe(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o),o._optimisticResults=r?`isRestoring`:`optimistic`,Upe(o),Bpe(o,i),Vpe(i);let s=!a.getQueryCache().get(o.queryHash),[c]=g.useState(()=>new t(a,o)),l=c.getOptimisticResult(o),u=!r&&e.subscribed!==!1;if(g.useSyncExternalStore(g.useCallback(e=>{let t=u?c.subscribe(zH.batchCalls(e)):yH;return c.updateResult(),t},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),g.useEffect(()=>{c.setOptions(o)},[o,c]),Gpe(o,l))throw rU(o,c,i);if(Hpe({result:l,errorResetBoundary:i,throwOnError:o.throwOnError,query:a.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw l.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,l),o.experimental_prefetchInRender&&!vH&&Wpe(l,r)&&(s?rU(o,c,i):a.getQueryCache().get(o.queryHash)?.promise)?.catch(yH).finally(()=>{c.updateResult()}),o.notifyOnChangeProps?l:c.trackResult(l)}function iU(e,t){return Kpe(e,Tpe,t)}var qpe=s((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,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){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&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(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,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),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}}}})),Jpe=s(((e,t)=>{t.exports=qpe()})),Ype=s((e=>{var t=Jpe(),n=p(),r=te();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 u(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 d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,m=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=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 j=Symbol.for(`react.client.reference`);function M(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===j?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return t=e.displayName||null,t===null?M(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return M(e(t))}catch{}}return null}var N=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},I=[],L=-1;function R(e){return{current:e}}function z(e){0>L||(e.current=I[L],I[L]=null,L--)}function B(e,t){L++,I[L]=e.current,e.current=t}var ne=R(null),V=R(null),re=R(null),ie=R(null);function ae(e,t){switch(B(re,t),B(V,e),B(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qd(t),e=$d(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}z(ne),B(ne,e)}function oe(){z(ne),z(V),z(re)}function se(e){e.memoizedState!==null&&B(ie,e);var t=ne.current,n=$d(t,e.type);t!==n&&(B(V,e),B(ne,n))}function ce(e){V.current===e&&(z(ne),z(V)),ie.current===e&&(z(ie),lp._currentValue=ee)}var le,ue;function de(e){if(le===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);le=t&&t[1]||``,ue=-1<e.stack.indexOf(`
118
+ Set 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 ON(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.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:jN(t,`input`,e.processors),output:jN(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function kN(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 kN(r.element,n);if(r.type===`set`)return kN(r.valueType,n);if(r.type===`lazy`)return kN(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 kN(r.innerType,n);if(r.type===`intersection`)return kN(r.left,n)||kN(r.right,n);if(r.type===`record`||r.type===`map`)return kN(r.keyType,n)||kN(r.valueType,n);if(r.type===`pipe`)return kN(r.in,n)||kN(r.out,n);if(r.type===`object`){for(let e in r.shape)if(kN(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(kN(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(kN(e,n))return!0;return!!(r.rest&&kN(r.rest,n))}return!1}var AN=(e,t={})=>n=>{let r=TN({...n,processors:t});return EN(e,r),DN(r,e),ON(r,e)},jN=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=TN({...i??{},target:a,io:t,processors:n});return EN(e,o),DN(o,e),ON(o,e)},MN={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},NN=(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=MN[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}))])}},PN=(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`,typeof u==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u),typeof a==`number`&&(i.minimum=a,typeof u==`number`&&t.target!==`draft-04`&&(u>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof l==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l),typeof o==`number`&&(i.maximum=o,typeof l==`number`&&t.target!==`draft-04`&&(l<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof c==`number`&&(i.multipleOf=c)},FN=(e,t,n,r)=>{n.type=`boolean`},IN=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},LN=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},RN=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},zN=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},BN=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},VN=(e,t,n,r)=>{n.not={}},HN=(e,t,n,r)=>{},UN=(e,t,n,r)=>{},WN=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},GN=(e,t,n,r)=>{let i=e._zod.def,a=zE(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},KN=(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},qN=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},JN=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},YN=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},XN=(e,t,n,r)=>{n.type=`boolean`},ZN=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},QN=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},$N=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},eP=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},tP=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},nP=(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=EN(a.element,t,{...r,path:[...r.path,`items`]})},rP=(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]=EN(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=EN(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},iP=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>EN(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},aP=(e,t,n,r)=>{let i=e._zod.def,a=EN(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=EN(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]]},oP=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>EN(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?EN(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},sP=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=EN(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=EN(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=EN(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},cP=(e,t,n,r)=>{let i=e._zod.def,a=EN(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`}]},lP=(e,t,n,r)=>{let i=e._zod.def;EN(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},uP=(e,t,n,r)=>{let i=e._zod.def;EN(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},dP=(e,t,n,r)=>{let i=e._zod.def;EN(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)))},fP=(e,t,n,r)=>{let i=e._zod.def;EN(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},pP=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;EN(a,t,r);let o=t.seen.get(e);o.ref=a},mP=(e,t,n,r)=>{let i=e._zod.def;EN(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},hP=(e,t,n,r)=>{let i=e._zod.def;EN(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},gP=(e,t,n,r)=>{let i=e._zod.def;EN(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},_P=(e,t,n,r)=>{let i=e._zod.innerType;EN(i,t,r);let a=t.seen.get(e);a.ref=i},vP={string:NN,number:PN,boolean:FN,bigint:IN,symbol:LN,null:RN,undefined:zN,void:BN,never:VN,any:HN,unknown:UN,date:WN,enum:GN,literal:KN,nan:qN,template_literal:JN,file:YN,success:XN,custom:ZN,function:QN,transform:$N,map:eP,set:tP,array:nP,object:rP,union:iP,intersection:aP,tuple:oP,record:sP,nullable:cP,nonoptional:lP,default:uP,prefault:dP,catch:fP,pipe:pP,readonly:mP,promise:hP,optional:gP,lazy:_P};function yP(e,t){if(`_idmap`in e){let n=e,r=TN({...t,processors:vP}),i={};for(let e of n._idmap.entries()){let[t,n]=e;EN(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;DN(r,n),a[t]=ON(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=TN({...t,processors:vP});return EN(e,n),DN(n,e),ON(n,e)}var bP=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(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=TN({processors:vP,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return EN(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),DN(this.ctx,e);let{"~standard":n,...r}=ON(this.ctx,e);return r}},xP=c({}),SP=c({$ZodAny:()=>nA,$ZodArray:()=>cA,$ZodAsyncError:()=>kE,$ZodBase64:()=>Vk,$ZodBase64URL:()=>Uk,$ZodBigInt:()=>Zk,$ZodBigIntFormat:()=>Qk,$ZodBoolean:()=>Xk,$ZodCIDRv4:()=>Rk,$ZodCIDRv6:()=>zk,$ZodCUID:()=>Ek,$ZodCUID2:()=>Dk,$ZodCatch:()=>UA,$ZodCheck:()=>GO,$ZodCheckBigIntFormat:()=>ZO,$ZodCheckEndsWith:()=>uk,$ZodCheckGreaterThan:()=>JO,$ZodCheckIncludes:()=>ck,$ZodCheckLengthEquals:()=>rk,$ZodCheckLessThan:()=>qO,$ZodCheckLowerCase:()=>ok,$ZodCheckMaxLength:()=>tk,$ZodCheckMaxSize:()=>QO,$ZodCheckMimeType:()=>pk,$ZodCheckMinLength:()=>nk,$ZodCheckMinSize:()=>$O,$ZodCheckMultipleOf:()=>YO,$ZodCheckNumberFormat:()=>XO,$ZodCheckOverwrite:()=>mk,$ZodCheckProperty:()=>fk,$ZodCheckRegex:()=>ak,$ZodCheckSizeEquals:()=>ek,$ZodCheckStartsWith:()=>lk,$ZodCheckStringFormat:()=>ik,$ZodCheckUpperCase:()=>sk,$ZodCodec:()=>qA,$ZodCustom:()=>nj,$ZodCustomStringFormat:()=>qk,$ZodDate:()=>oA,$ZodDefault:()=>LA,$ZodDiscriminatedUnion:()=>vA,$ZodE164:()=>Wk,$ZodEmail:()=>Sk,$ZodEmoji:()=>wk,$ZodEncodeError:()=>AE,$ZodEnum:()=>kA,$ZodError:()=>ID,$ZodExactOptional:()=>FA,$ZodFile:()=>jA,$ZodFunction:()=>$A,$ZodGUID:()=>bk,$ZodIPv4:()=>Fk,$ZodIPv6:()=>Ik,$ZodISODate:()=>Mk,$ZodISODateTime:()=>jk,$ZodISODuration:()=>Pk,$ZodISOTime:()=>Nk,$ZodIntersection:()=>yA,$ZodJWT:()=>Kk,$ZodKSUID:()=>Ak,$ZodLazy:()=>tj,$ZodLiteral:()=>AA,$ZodMAC:()=>Lk,$ZodMap:()=>TA,$ZodNaN:()=>WA,$ZodNanoID:()=>Tk,$ZodNever:()=>iA,$ZodNonOptional:()=>BA,$ZodNull:()=>tA,$ZodNullable:()=>IA,$ZodNumber:()=>Jk,$ZodNumberFormat:()=>Yk,$ZodObject:()=>fA,$ZodObjectJIT:()=>pA,$ZodOptional:()=>PA,$ZodPipe:()=>GA,$ZodPrefault:()=>zA,$ZodPromise:()=>ej,$ZodReadonly:()=>XA,$ZodRealError:()=>LD,$ZodRecord:()=>wA,$ZodRegistry:()=>_j,$ZodSet:()=>DA,$ZodString:()=>vk,$ZodStringFormat:()=>yk,$ZodSuccess:()=>HA,$ZodSymbol:()=>$k,$ZodTemplateLiteral:()=>QA,$ZodTransform:()=>MA,$ZodTuple:()=>SA,$ZodType:()=>_k,$ZodULID:()=>Ok,$ZodURL:()=>Ck,$ZodUUID:()=>xk,$ZodUndefined:()=>eA,$ZodUnion:()=>hA,$ZodUnknown:()=>rA,$ZodVoid:()=>aA,$ZodXID:()=>kk,$ZodXor:()=>_A,$brand:()=>OE,$constructor:()=>H,$input:()=>gj,$output:()=>hj,Doc:()=>hk,JSONSchema:()=>xP,JSONSchemaGenerator:()=>bP,NEVER:()=>DE,TimePrecision:()=>Gj,_any:()=>fM,_array:()=>JM,_base64:()=>Vj,_base64url:()=>Hj,_bigint:()=>aM,_boolean:()=>rM,_catch:()=>dN,_check:()=>bN,_cidrv4:()=>zj,_cidrv6:()=>Bj,_coercedBigint:()=>oM,_coercedBoolean:()=>iM,_coercedDate:()=>_M,_coercedNumber:()=>Zj,_coercedString:()=>xj,_cuid:()=>jj,_cuid2:()=>Mj,_custom:()=>_N,_date:()=>gM,_decode:()=>QD,_decodeAsync:()=>eO,_default:()=>cN,_discriminatedUnion:()=>YM,_e164:()=>Uj,_email:()=>Sj,_emoji:()=>kj,_encode:()=>ZD,_encodeAsync:()=>$D,_endsWith:()=>zM,_enum:()=>tN,_file:()=>iN,_float32:()=>$j,_float64:()=>eM,_gt:()=>xM,_gte:()=>SM,_guid:()=>Cj,_includes:()=>LM,_int:()=>Qj,_int32:()=>tM,_int64:()=>sM,_intersection:()=>XM,_ipv4:()=>Ij,_ipv6:()=>Lj,_isoDate:()=>qj,_isoDateTime:()=>Kj,_isoDuration:()=>Yj,_isoTime:()=>Jj,_jwt:()=>Wj,_ksuid:()=>Fj,_lazy:()=>hN,_length:()=>NM,_literal:()=>rN,_lowercase:()=>FM,_lt:()=>yM,_lte:()=>bM,_mac:()=>Rj,_map:()=>$M,_max:()=>bM,_maxLength:()=>jM,_maxSize:()=>OM,_mime:()=>VM,_min:()=>SM,_minLength:()=>MM,_minSize:()=>kM,_multipleOf:()=>DM,_nan:()=>vM,_nanoid:()=>Aj,_nativeEnum:()=>nN,_negative:()=>wM,_never:()=>mM,_nonnegative:()=>EM,_nonoptional:()=>lN,_nonpositive:()=>TM,_normalize:()=>UM,_null:()=>dM,_nullable:()=>sN,_number:()=>Xj,_optional:()=>oN,_overwrite:()=>HM,_parse:()=>UD,_parseAsync:()=>GD,_pipe:()=>fN,_positive:()=>CM,_promise:()=>gN,_property:()=>BM,_readonly:()=>pN,_record:()=>QM,_refine:()=>vN,_regex:()=>PM,_safeDecode:()=>nO,_safeDecodeAsync:()=>iO,_safeEncode:()=>tO,_safeEncodeAsync:()=>rO,_safeParse:()=>qD,_safeParseAsync:()=>YD,_set:()=>eN,_size:()=>AM,_slugify:()=>qM,_startsWith:()=>RM,_string:()=>bj,_stringFormat:()=>wN,_stringbool:()=>CN,_success:()=>uN,_superRefine:()=>yN,_symbol:()=>lM,_templateLiteral:()=>mN,_toLowerCase:()=>GM,_toUpperCase:()=>KM,_transform:()=>aN,_trim:()=>WM,_tuple:()=>ZM,_uint32:()=>nM,_uint64:()=>cM,_ulid:()=>Nj,_undefined:()=>uM,_union:()=>rce,_unknown:()=>pM,_uppercase:()=>IM,_url:()=>Oj,_uuid:()=>wj,_uuidv4:()=>Tj,_uuidv6:()=>Ej,_uuidv7:()=>Dj,_void:()=>hM,_xid:()=>Pj,_xor:()=>ice,clone:()=>fD,config:()=>ME,createStandardJSONSchemaMethod:()=>jN,createToJSONSchemaMethod:()=>AN,decode:()=>Vae,decodeAsync:()=>Uae,describe:()=>xN,encode:()=>Bae,encodeAsync:()=>Hae,extractDefs:()=>DN,finalize:()=>ON,flattenError:()=>RD,formatError:()=>zD,globalConfig:()=>jE,globalRegistry:()=>yj,initializeContext:()=>TN,isValidBase64:()=>Bk,isValidBase64URL:()=>Hk,isValidJWT:()=>Gk,locales:()=>pj,meta:()=>SN,parse:()=>WD,parseAsync:()=>KD,prettifyError:()=>HD,process:()=>EN,regexes:()=>aO,registry:()=>vj,safeDecode:()=>Gae,safeDecodeAsync:()=>qae,safeEncode:()=>Wae,safeEncodeAsync:()=>Kae,safeParse:()=>JD,safeParseAsync:()=>XD,toDotPath:()=>VD,toJSONSchema:()=>yP,treeifyError:()=>BD,util:()=>NE,version:()=>gk}),CP=c({endsWith:()=>zM,gt:()=>xM,gte:()=>SM,includes:()=>LM,length:()=>NM,lowercase:()=>FM,lt:()=>yM,lte:()=>bM,maxLength:()=>jM,maxSize:()=>OM,mime:()=>VM,minLength:()=>MM,minSize:()=>kM,multipleOf:()=>DM,negative:()=>wM,nonnegative:()=>EM,nonpositive:()=>TM,normalize:()=>UM,overwrite:()=>HM,positive:()=>CM,property:()=>BM,regex:()=>PM,size:()=>AM,slugify:()=>qM,startsWith:()=>RM,toLowerCase:()=>GM,toUpperCase:()=>KM,trim:()=>WM,uppercase:()=>IM}),wP=c({ZodISODate:()=>DP,ZodISODateTime:()=>TP,ZodISODuration:()=>jP,ZodISOTime:()=>kP,date:()=>OP,datetime:()=>EP,duration:()=>MP,time:()=>AP}),TP=H(`ZodISODateTime`,(e,t)=>{jk.init(e,t),QP.init(e,t)});function EP(e){return Kj(TP,e)}var DP=H(`ZodISODate`,(e,t)=>{Mk.init(e,t),QP.init(e,t)});function OP(e){return qj(DP,e)}var kP=H(`ZodISOTime`,(e,t)=>{Nk.init(e,t),QP.init(e,t)});function AP(e){return Jj(kP,e)}var jP=H(`ZodISODuration`,(e,t)=>{Pk.init(e,t),QP.init(e,t)});function MP(e){return Yj(jP,e)}var NP=(e,t)=>{ID.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>zD(e,t)},flatten:{value:t=>RD(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,BE,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,BE,2)}},isEmpty:{get(){return e.issues.length===0}}})},PP=H(`ZodError`,NP),FP=H(`ZodError`,NP,{Parent:Error}),IP=UD(FP),LP=GD(FP),RP=qD(FP),zP=YD(FP),BP=ZD(FP),VP=QD(FP),HP=$D(FP),UP=eO(FP),WP=tO(FP),GP=nO(FP),KP=rO(FP),qP=iO(FP),JP=c({ZodAny:()=>hI,ZodArray:()=>TI,ZodBase64:()=>FF,ZodBase64URL:()=>LF,ZodBigInt:()=>iI,ZodBigIntFormat:()=>oI,ZodBoolean:()=>nI,ZodCIDRv4:()=>jF,ZodCIDRv6:()=>NF,ZodCUID:()=>hF,ZodCUID2:()=>_F,ZodCatch:()=>yL,ZodCodec:()=>TL,ZodCustom:()=>LL,ZodCustomStringFormat:()=>UF,ZodDate:()=>CI,ZodDefault:()=>dL,ZodDiscriminatedUnion:()=>II,ZodE164:()=>zF,ZodEmail:()=>$P,ZodEmoji:()=>dF,ZodEnum:()=>XI,ZodExactOptional:()=>oL,ZodFile:()=>eL,ZodFunction:()=>FL,ZodGUID:()=>tF,ZodIPv4:()=>TF,ZodIPv6:()=>kF,ZodIntersection:()=>RI,ZodJWT:()=>VF,ZodKSUID:()=>CF,ZodLazy:()=>jL,ZodLiteral:()=>$I,ZodMAC:()=>DF,ZodMap:()=>KI,ZodNaN:()=>xL,ZodNanoID:()=>pF,ZodNever:()=>yI,ZodNonOptional:()=>hL,ZodNull:()=>pI,ZodNullable:()=>cL,ZodNumber:()=>JF,ZodNumberFormat:()=>XF,ZodObject:()=>OI,ZodOptional:()=>iL,ZodPipe:()=>CL,ZodPrefault:()=>pL,ZodPromise:()=>NL,ZodReadonly:()=>DL,ZodRecord:()=>HI,ZodSet:()=>JI,ZodString:()=>ZP,ZodStringFormat:()=>QP,ZodSuccess:()=>_L,ZodSymbol:()=>lI,ZodTemplateLiteral:()=>kL,ZodTransform:()=>nL,ZodTuple:()=>BI,ZodType:()=>YP,ZodULID:()=>yF,ZodURL:()=>cF,ZodUUID:()=>rF,ZodUndefined:()=>dI,ZodUnion:()=>MI,ZodUnknown:()=>_I,ZodVoid:()=>xI,ZodXID:()=>xF,ZodXor:()=>PI,_ZodString:()=>XP,_default:()=>fL,_function:()=>IL,any:()=>gI,array:()=>EI,base64:()=>IF,base64url:()=>RF,bigint:()=>aI,boolean:()=>rI,catch:()=>bL,check:()=>RL,cidrv4:()=>MF,cidrv6:()=>PF,codec:()=>EL,cuid:()=>gF,cuid2:()=>vF,custom:()=>zL,date:()=>wI,describe:()=>HL,discriminatedUnion:()=>LI,e164:()=>BF,email:()=>eF,emoji:()=>fF,enum:()=>ZI,exactOptional:()=>sL,file:()=>tL,float32:()=>QF,float64:()=>$F,function:()=>IL,guid:()=>nF,hash:()=>qF,hex:()=>KF,hostname:()=>GF,httpUrl:()=>uF,instanceof:()=>WL,int:()=>ZF,int32:()=>eI,int64:()=>sI,intersection:()=>zI,ipv4:()=>EF,ipv6:()=>AF,json:()=>KL,jwt:()=>HF,keyof:()=>DI,ksuid:()=>wF,lazy:()=>ML,literal:()=>K,looseObject:()=>jI,looseRecord:()=>GI,mac:()=>OF,map:()=>qI,meta:()=>UL,nan:()=>SL,nanoid:()=>mF,nativeEnum:()=>QI,never:()=>bI,nonoptional:()=>gL,null:()=>mI,nullable:()=>lL,nullish:()=>uL,number:()=>YF,object:()=>kI,optional:()=>aL,partialRecord:()=>WI,pipe:()=>wL,prefault:()=>mL,preprocess:()=>qL,promise:()=>PL,readonly:()=>OL,record:()=>UI,refine:()=>BL,set:()=>YI,strictObject:()=>AI,string:()=>G,stringFormat:()=>WF,stringbool:()=>GL,success:()=>vL,superRefine:()=>VL,symbol:()=>uI,templateLiteral:()=>AL,transform:()=>rL,tuple:()=>VI,uint32:()=>tI,uint64:()=>cI,ulid:()=>bF,undefined:()=>fI,union:()=>NI,unknown:()=>vI,url:()=>lF,uuid:()=>iF,uuidv4:()=>aF,uuidv6:()=>oF,uuidv7:()=>sF,void:()=>SI,xid:()=>SF,xor:()=>FI}),YP=H(`ZodType`,(e,t)=>(_k.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:jN(e,`input`),output:jN(e,`output`)}}),e.toJSONSchema=AN(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(YE(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>fD(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>IP(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>RP(e,t,n),e.parseAsync=async(t,n)=>LP(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>zP(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>BP(e,t,n),e.decode=(t,n)=>VP(e,t,n),e.encodeAsync=async(t,n)=>HP(e,t,n),e.decodeAsync=async(t,n)=>UP(e,t,n),e.safeEncode=(t,n)=>WP(e,t,n),e.safeDecode=(t,n)=>GP(e,t,n),e.safeEncodeAsync=async(t,n)=>KP(e,t,n),e.safeDecodeAsync=async(t,n)=>qP(e,t,n),e.refine=(t,n)=>e.check(BL(t,n)),e.superRefine=t=>e.check(VL(t)),e.overwrite=t=>e.check(HM(t)),e.optional=()=>aL(e),e.exactOptional=()=>sL(e),e.nullable=()=>lL(e),e.nullish=()=>aL(lL(e)),e.nonoptional=t=>gL(e,t),e.array=()=>EI(e),e.or=t=>NI([e,t]),e.and=t=>zI(e,t),e.transform=t=>wL(e,rL(t)),e.default=t=>fL(e,t),e.prefault=t=>mL(e,t),e.catch=t=>bL(e,t),e.pipe=t=>wL(e,t),e.readonly=()=>OL(e),e.describe=t=>{let n=e.clone();return yj.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return yj.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return yj.get(e);let n=e.clone();return yj.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),XP=H(`_ZodString`,(e,t)=>{vk.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>NN(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(PM(...t)),e.includes=(...t)=>e.check(LM(...t)),e.startsWith=(...t)=>e.check(RM(...t)),e.endsWith=(...t)=>e.check(zM(...t)),e.min=(...t)=>e.check(MM(...t)),e.max=(...t)=>e.check(jM(...t)),e.length=(...t)=>e.check(NM(...t)),e.nonempty=(...t)=>e.check(MM(1,...t)),e.lowercase=t=>e.check(FM(t)),e.uppercase=t=>e.check(IM(t)),e.trim=()=>e.check(WM()),e.normalize=(...t)=>e.check(UM(...t)),e.toLowerCase=()=>e.check(GM()),e.toUpperCase=()=>e.check(KM()),e.slugify=()=>e.check(qM())}),ZP=H(`ZodString`,(e,t)=>{vk.init(e,t),XP.init(e,t),e.email=t=>e.check(Sj($P,t)),e.url=t=>e.check(Oj(cF,t)),e.jwt=t=>e.check(Wj(VF,t)),e.emoji=t=>e.check(kj(dF,t)),e.guid=t=>e.check(Cj(tF,t)),e.uuid=t=>e.check(wj(rF,t)),e.uuidv4=t=>e.check(Tj(rF,t)),e.uuidv6=t=>e.check(Ej(rF,t)),e.uuidv7=t=>e.check(Dj(rF,t)),e.nanoid=t=>e.check(Aj(pF,t)),e.guid=t=>e.check(Cj(tF,t)),e.cuid=t=>e.check(jj(hF,t)),e.cuid2=t=>e.check(Mj(_F,t)),e.ulid=t=>e.check(Nj(yF,t)),e.base64=t=>e.check(Vj(FF,t)),e.base64url=t=>e.check(Hj(LF,t)),e.xid=t=>e.check(Pj(xF,t)),e.ksuid=t=>e.check(Fj(CF,t)),e.ipv4=t=>e.check(Ij(TF,t)),e.ipv6=t=>e.check(Lj(kF,t)),e.cidrv4=t=>e.check(zj(jF,t)),e.cidrv6=t=>e.check(Bj(NF,t)),e.e164=t=>e.check(Uj(zF,t)),e.datetime=t=>e.check(EP(t)),e.date=t=>e.check(OP(t)),e.time=t=>e.check(AP(t)),e.duration=t=>e.check(MP(t))});function G(e){return bj(ZP,e)}var QP=H(`ZodStringFormat`,(e,t)=>{yk.init(e,t),XP.init(e,t)}),$P=H(`ZodEmail`,(e,t)=>{Sk.init(e,t),QP.init(e,t)});function eF(e){return Sj($P,e)}var tF=H(`ZodGUID`,(e,t)=>{bk.init(e,t),QP.init(e,t)});function nF(e){return Cj(tF,e)}var rF=H(`ZodUUID`,(e,t)=>{xk.init(e,t),QP.init(e,t)});function iF(e){return wj(rF,e)}function aF(e){return Tj(rF,e)}function oF(e){return Ej(rF,e)}function sF(e){return Dj(rF,e)}var cF=H(`ZodURL`,(e,t)=>{Ck.init(e,t),QP.init(e,t)});function lF(e){return Oj(cF,e)}function uF(e){return Oj(cF,{protocol:/^https?$/,hostname:EO,...W(e)})}var dF=H(`ZodEmoji`,(e,t)=>{wk.init(e,t),QP.init(e,t)});function fF(e){return kj(dF,e)}var pF=H(`ZodNanoID`,(e,t)=>{Tk.init(e,t),QP.init(e,t)});function mF(e){return Aj(pF,e)}var hF=H(`ZodCUID`,(e,t)=>{Ek.init(e,t),QP.init(e,t)});function gF(e){return jj(hF,e)}var _F=H(`ZodCUID2`,(e,t)=>{Dk.init(e,t),QP.init(e,t)});function vF(e){return Mj(_F,e)}var yF=H(`ZodULID`,(e,t)=>{Ok.init(e,t),QP.init(e,t)});function bF(e){return Nj(yF,e)}var xF=H(`ZodXID`,(e,t)=>{kk.init(e,t),QP.init(e,t)});function SF(e){return Pj(xF,e)}var CF=H(`ZodKSUID`,(e,t)=>{Ak.init(e,t),QP.init(e,t)});function wF(e){return Fj(CF,e)}var TF=H(`ZodIPv4`,(e,t)=>{Fk.init(e,t),QP.init(e,t)});function EF(e){return Ij(TF,e)}var DF=H(`ZodMAC`,(e,t)=>{Lk.init(e,t),QP.init(e,t)});function OF(e){return Rj(DF,e)}var kF=H(`ZodIPv6`,(e,t)=>{Ik.init(e,t),QP.init(e,t)});function AF(e){return Lj(kF,e)}var jF=H(`ZodCIDRv4`,(e,t)=>{Rk.init(e,t),QP.init(e,t)});function MF(e){return zj(jF,e)}var NF=H(`ZodCIDRv6`,(e,t)=>{zk.init(e,t),QP.init(e,t)});function PF(e){return Bj(NF,e)}var FF=H(`ZodBase64`,(e,t)=>{Vk.init(e,t),QP.init(e,t)});function IF(e){return Vj(FF,e)}var LF=H(`ZodBase64URL`,(e,t)=>{Uk.init(e,t),QP.init(e,t)});function RF(e){return Hj(LF,e)}var zF=H(`ZodE164`,(e,t)=>{Wk.init(e,t),QP.init(e,t)});function BF(e){return Uj(zF,e)}var VF=H(`ZodJWT`,(e,t)=>{Kk.init(e,t),QP.init(e,t)});function HF(e){return Wj(VF,e)}var UF=H(`ZodCustomStringFormat`,(e,t)=>{qk.init(e,t),QP.init(e,t)});function WF(e,t,n={}){return wN(UF,e,t,n)}function GF(e){return wN(UF,`hostname`,TO,e)}function KF(e){return wN(UF,`hex`,HO,e)}function qF(e,t){let n=`${e}_${t?.enc??`hex`}`,r=aO[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return wN(UF,n,r,t)}var JF=H(`ZodNumber`,(e,t)=>{Jk.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>PN(e,t,n,r),e.gt=(t,n)=>e.check(xM(t,n)),e.gte=(t,n)=>e.check(SM(t,n)),e.min=(t,n)=>e.check(SM(t,n)),e.lt=(t,n)=>e.check(yM(t,n)),e.lte=(t,n)=>e.check(bM(t,n)),e.max=(t,n)=>e.check(bM(t,n)),e.int=t=>e.check(ZF(t)),e.safe=t=>e.check(ZF(t)),e.positive=t=>e.check(xM(0,t)),e.nonnegative=t=>e.check(SM(0,t)),e.negative=t=>e.check(yM(0,t)),e.nonpositive=t=>e.check(bM(0,t)),e.multipleOf=(t,n)=>e.check(DM(t,n)),e.step=(t,n)=>e.check(DM(t,n)),e.finite=()=>e;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 YF(e){return Xj(JF,e)}var XF=H(`ZodNumberFormat`,(e,t)=>{Yk.init(e,t),JF.init(e,t)});function ZF(e){return Qj(XF,e)}function QF(e){return $j(XF,e)}function $F(e){return eM(XF,e)}function eI(e){return tM(XF,e)}function tI(e){return nM(XF,e)}var nI=H(`ZodBoolean`,(e,t)=>{Xk.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>FN(e,t,n,r)});function rI(e){return rM(nI,e)}var iI=H(`ZodBigInt`,(e,t)=>{Zk.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>IN(e,t,n,r),e.gte=(t,n)=>e.check(SM(t,n)),e.min=(t,n)=>e.check(SM(t,n)),e.gt=(t,n)=>e.check(xM(t,n)),e.gte=(t,n)=>e.check(SM(t,n)),e.min=(t,n)=>e.check(SM(t,n)),e.lt=(t,n)=>e.check(yM(t,n)),e.lte=(t,n)=>e.check(bM(t,n)),e.max=(t,n)=>e.check(bM(t,n)),e.positive=t=>e.check(xM(BigInt(0),t)),e.negative=t=>e.check(yM(BigInt(0),t)),e.nonpositive=t=>e.check(bM(BigInt(0),t)),e.nonnegative=t=>e.check(SM(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(DM(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function aI(e){return aM(iI,e)}var oI=H(`ZodBigIntFormat`,(e,t)=>{Qk.init(e,t),iI.init(e,t)});function sI(e){return sM(oI,e)}function cI(e){return cM(oI,e)}var lI=H(`ZodSymbol`,(e,t)=>{$k.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>LN(e,t,n,r)});function uI(e){return lM(lI,e)}var dI=H(`ZodUndefined`,(e,t)=>{eA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zN(e,t,n,r)});function fI(e){return uM(dI,e)}var pI=H(`ZodNull`,(e,t)=>{tA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>RN(e,t,n,r)});function mI(e){return dM(pI,e)}var hI=H(`ZodAny`,(e,t)=>{nA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function gI(){return fM(hI)}var _I=H(`ZodUnknown`,(e,t)=>{rA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function vI(){return pM(_I)}var yI=H(`ZodNever`,(e,t)=>{iA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>VN(e,t,n,r)});function bI(e){return mM(yI,e)}var xI=H(`ZodVoid`,(e,t)=>{aA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>BN(e,t,n,r)});function SI(e){return hM(xI,e)}var CI=H(`ZodDate`,(e,t)=>{oA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>WN(e,t,n,r),e.min=(t,n)=>e.check(SM(t,n)),e.max=(t,n)=>e.check(bM(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function wI(e){return gM(CI,e)}var TI=H(`ZodArray`,(e,t)=>{cA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nP(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(MM(t,n)),e.nonempty=t=>e.check(MM(1,t)),e.max=(t,n)=>e.check(jM(t,n)),e.length=(t,n)=>e.check(NM(t,n)),e.unwrap=()=>e.element});function EI(e,t){return JM(TI,e,t)}function DI(e){let t=e._zod.def.shape;return ZI(Object.keys(t))}var OI=H(`ZodObject`,(e,t)=>{pA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rP(e,t,n,r),KE(e,`shape`,()=>t.shape),e.keyof=()=>ZI(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:vI()}),e.loose=()=>e.clone({...e._zod.def,catchall:vI()}),e.strict=()=>e.clone({...e._zod.def,catchall:bI()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>bD(e,t),e.safeExtend=t=>xD(e,t),e.merge=t=>SD(e,t),e.pick=t=>vD(e,t),e.omit=t=>yD(e,t),e.partial=(...t)=>CD(iL,e,t[0]),e.required=(...t)=>wD(hL,e,t[0])});function kI(e,t){return new OI({type:`object`,shape:e??{},...W(t)})}function AI(e,t){return new OI({type:`object`,shape:e,catchall:bI(),...W(t)})}function jI(e,t){return new OI({type:`object`,shape:e,catchall:vI(),...W(t)})}var MI=H(`ZodUnion`,(e,t)=>{hA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iP(e,t,n,r),e.options=t.options});function NI(e,t){return new MI({type:`union`,options:e,...W(t)})}var PI=H(`ZodXor`,(e,t)=>{MI.init(e,t),_A.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iP(e,t,n,r),e.options=t.options});function FI(e,t){return new PI({type:`union`,options:e,inclusive:!1,...W(t)})}var II=H(`ZodDiscriminatedUnion`,(e,t)=>{MI.init(e,t),vA.init(e,t)});function LI(e,t,n){return new II({type:`union`,options:t,discriminator:e,...W(n)})}var RI=H(`ZodIntersection`,(e,t)=>{yA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>aP(e,t,n,r)});function zI(e,t){return new RI({type:`intersection`,left:e,right:t})}var BI=H(`ZodTuple`,(e,t)=>{SA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oP(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})});function VI(e,t,n){let r=t instanceof _k;return new BI({type:`tuple`,items:e,rest:r?t:null,...W(r?n:t)})}var HI=H(`ZodRecord`,(e,t)=>{wA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sP(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function UI(e,t,n){return new HI({type:`record`,keyType:e,valueType:t,...W(n)})}function WI(e,t,n){let r=fD(e);return r._zod.values=void 0,new HI({type:`record`,keyType:r,valueType:t,...W(n)})}function GI(e,t,n){return new HI({type:`record`,keyType:e,valueType:t,mode:`loose`,...W(n)})}var KI=H(`ZodMap`,(e,t)=>{TA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eP(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(kM(...t)),e.nonempty=t=>e.check(kM(1,t)),e.max=(...t)=>e.check(OM(...t)),e.size=(...t)=>e.check(AM(...t))});function qI(e,t,n){return new KI({type:`map`,keyType:e,valueType:t,...W(n)})}var JI=H(`ZodSet`,(e,t)=>{DA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tP(e,t,n,r),e.min=(...t)=>e.check(kM(...t)),e.nonempty=t=>e.check(kM(1,t)),e.max=(...t)=>e.check(OM(...t)),e.size=(...t)=>e.check(AM(...t))});function YI(e,t){return new JI({type:`set`,valueType:e,...W(t)})}var XI=H(`ZodEnum`,(e,t)=>{kA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>GN(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 XI({...t,checks:[],...W(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 XI({...t,checks:[],...W(r),entries:i})}});function ZI(e,t){return new XI({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...W(t)})}function QI(e,t){return new XI({type:`enum`,entries:e,...W(t)})}var $I=H(`ZodLiteral`,(e,t)=>{AA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KN(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 K(e,t){return new $I({type:`literal`,values:Array.isArray(e)?e:[e],...W(t)})}var eL=H(`ZodFile`,(e,t)=>{jA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>YN(e,t,n,r),e.min=(t,n)=>e.check(kM(t,n)),e.max=(t,n)=>e.check(OM(t,n)),e.mime=(t,n)=>e.check(VM(Array.isArray(t)?t:[t],n))});function tL(e){return iN(eL,e)}var nL=H(`ZodTransform`,(e,t)=>{MA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$N(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new AE(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(MD(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(MD(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function rL(e){return new nL({type:`transform`,transform:e})}var iL=H(`ZodOptional`,(e,t)=>{PA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function aL(e){return new iL({type:`optional`,innerType:e})}var oL=H(`ZodExactOptional`,(e,t)=>{FA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function sL(e){return new oL({type:`optional`,innerType:e})}var cL=H(`ZodNullable`,(e,t)=>{IA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function lL(e){return new cL({type:`nullable`,innerType:e})}function uL(e){return aL(lL(e))}var dL=H(`ZodDefault`,(e,t)=>{LA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function fL(e,t){return new dL({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():oD(t)}})}var pL=H(`ZodPrefault`,(e,t)=>{zA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function mL(e,t){return new pL({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():oD(t)}})}var hL=H(`ZodNonOptional`,(e,t)=>{BA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function gL(e,t){return new hL({type:`nonoptional`,innerType:e,...W(t)})}var _L=H(`ZodSuccess`,(e,t)=>{HA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>XN(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function vL(e){return new _L({type:`success`,innerType:e})}var yL=H(`ZodCatch`,(e,t)=>{UA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function bL(e,t){return new yL({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var xL=H(`ZodNaN`,(e,t)=>{WA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qN(e,t,n,r)});function SL(e){return vM(xL,e)}var CL=H(`ZodPipe`,(e,t)=>{GA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pP(e,t,n,r),e.in=t.in,e.out=t.out});function wL(e,t){return new CL({type:`pipe`,in:e,out:t})}var TL=H(`ZodCodec`,(e,t)=>{CL.init(e,t),qA.init(e,t)});function EL(e,t,n){return new TL({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}var DL=H(`ZodReadonly`,(e,t)=>{XA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function OL(e){return new DL({type:`readonly`,innerType:e})}var kL=H(`ZodTemplateLiteral`,(e,t)=>{QA.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JN(e,t,n,r)});function AL(e,t){return new kL({type:`template_literal`,parts:e,...W(t)})}var jL=H(`ZodLazy`,(e,t)=>{tj.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_P(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function ML(e){return new jL({type:`lazy`,getter:e})}var NL=H(`ZodPromise`,(e,t)=>{ej.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hP(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function PL(e){return new NL({type:`promise`,innerType:e})}var FL=H(`ZodFunction`,(e,t)=>{$A.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>QN(e,t,n,r)});function IL(e){return new FL({type:`function`,input:Array.isArray(e?.input)?VI(e?.input):e?.input??EI(vI()),output:e?.output??vI()})}var LL=H(`ZodCustom`,(e,t)=>{nj.init(e,t),YP.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ZN(e,t,n,r)});function RL(e){let t=new GO({check:`custom`});return t._zod.check=e,t}function zL(e,t){return _N(LL,e??(()=>!0),t)}function BL(e,t={}){return vN(LL,e,t)}function VL(e){return yN(e)}var HL=xN,UL=SN;function WL(e,t={}){let n=new LL({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...W(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}var GL=(...e)=>CN({Codec:TL,Boolean:nI,String:ZP},...e);function KL(e){let t=ML(()=>NI([G(e),YF(),rI(),mI(),EI(t),UI(G(),t)]));return t}function qL(e,t){return wL(rL(e),t)}var ace={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 oce(e){ME({customError:e})}function sce(){return ME().customError}var JL;(function(e){})(JL||={});var YL={...JP,...CP,iso:wP},cce=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`.split(`.`));function lce(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function uce(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function XL(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return YL.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return YL.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=ZL(uce(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return YL.null();if(n.length===0)return YL.never();if(n.length===1)return YL.literal(n[0]);if(n.every(e=>typeof e==`string`))return YL.enum(n);let r=n.map(e=>YL.literal(e));return r.length<2?r[0]:YL.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return YL.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>XL({...e,type:n},t));return r.length===0?YL.never():r.length===1?r[0]:YL.union(r)}if(!n)return YL.any();let r;switch(n){case`string`:{let t=YL.string();if(e.format){let n=e.format;n===`email`?t=t.check(YL.email()):n===`uri`||n===`uri-reference`?t=t.check(YL.url()):n===`uuid`||n===`guid`?t=t.check(YL.uuid()):n===`date-time`?t=t.check(YL.iso.datetime()):n===`date`?t=t.check(YL.iso.date()):n===`time`?t=t.check(YL.iso.time()):n===`duration`?t=t.check(YL.iso.duration()):n===`ipv4`?t=t.check(YL.ipv4()):n===`ipv6`?t=t.check(YL.ipv6()):n===`mac`?t=t.check(YL.mac()):n===`cidr`?t=t.check(YL.cidrv4()):n===`cidr-v6`?t=t.check(YL.cidrv6()):n===`base64`?t=t.check(YL.base64()):n===`base64url`?t=t.check(YL.base64url()):n===`e164`?t=t.check(YL.e164()):n===`jwt`?t=t.check(YL.jwt()):n===`emoji`?t=t.check(YL.emoji()):n===`nanoid`?t=t.check(YL.nanoid()):n===`cuid`?t=t.check(YL.cuid()):n===`cuid2`?t=t.check(YL.cuid2()):n===`ulid`?t=t.check(YL.ulid()):n===`xid`?t=t.check(YL.xid()):n===`ksuid`&&(t=t.check(YL.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))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?YL.number().int():YL.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)),r=t;break}case`boolean`:r=YL.boolean();break;case`null`:r=YL.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=ZL(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=ZL(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?ZL(e.additionalProperties,t):YL.any();if(Object.keys(n).length===0){r=YL.record(i,a);break}let o=YL.object(n).passthrough(),s=YL.looseRecord(i,a);r=YL.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=ZL(i[e],t),r=YL.string().regex(new RegExp(e));o.push(YL.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push(YL.object(n).passthrough()),s.push(...o),s.length===0)r=YL.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=YL.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=YL.intersection(e,s[t]);r=e}break}let o=YL.object(n);r=e.additionalProperties===!1?o.strict():typeof e.additionalProperties==`object`?o.catchall(ZL(e.additionalProperties,t)):o.passthrough();break}case`array`:{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(e=>ZL(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?ZL(i,t):void 0;r=o?YL.tuple(a).rest(o):YL.tuple(a),typeof e.minItems==`number`&&(r=r.check(YL.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(YL.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>ZL(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?ZL(e.additionalItems,t):void 0;r=a?YL.tuple(n).rest(a):YL.tuple(n),typeof e.minItems==`number`&&(r=r.check(YL.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(YL.maxLength(e.maxItems)))}else if(i!==void 0){let n=ZL(i,t),a=YL.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=YL.array(YL.any());break}default:throw Error(`Unsupported type: ${n}`)}return e.description&&(r=r.describe(e.description)),e.default!==void 0&&(r=r.default(e.default)),r}function ZL(e,t){if(typeof e==`boolean`)return e?YL.any():YL.never();let n=XL(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>ZL(e,t)),a=YL.union(i);n=r?YL.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>ZL(e,t)),a=YL.xor(i);n=r?YL.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:YL.any();else{let i=r?n:ZL(e.allOf[0],t),a=r?0:1;for(let n=a;n<e.allOf.length;n++)i=YL.intersection(i,ZL(e.allOf[n],t));n=i}e.nullable===!0&&t.version===`openapi-3.0`&&(n=YL.nullable(n)),e.readOnly===!0&&(n=YL.readonly(n));let i={};for(let t of[`$id`,`id`,`$comment`,`$anchor`,`$vocabulary`,`$dynamicRef`,`$dynamicAnchor`])t in e&&(i[t]=e[t]);for(let t of[`contentEncoding`,`contentMediaType`,`contentSchema`])t in e&&(i[t]=e[t]);for(let t of Object.keys(e))cce.has(t)||(i[t]=e[t]);return Object.keys(i).length>0&&t.registry.add(n,i),n}function dce(e,t){return typeof e==`boolean`?e?YL.any():YL.never():ZL(e,{version:lce(e,t?.defaultTarget),defs:e.$defs||e.definitions||{},refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??yj})}var fce=c({bigint:()=>gce,boolean:()=>hce,date:()=>_ce,number:()=>mce,string:()=>pce});function pce(e){return xj(ZP,e)}function mce(e){return Zj(JF,e)}function hce(e){return iM(nI,e)}function gce(e){return oM(iI,e)}function _ce(e){return _M(CI,e)}var vce=c({$brand:()=>OE,$input:()=>gj,$output:()=>hj,NEVER:()=>DE,TimePrecision:()=>Gj,ZodAny:()=>hI,ZodArray:()=>TI,ZodBase64:()=>FF,ZodBase64URL:()=>LF,ZodBigInt:()=>iI,ZodBigIntFormat:()=>oI,ZodBoolean:()=>nI,ZodCIDRv4:()=>jF,ZodCIDRv6:()=>NF,ZodCUID:()=>hF,ZodCUID2:()=>_F,ZodCatch:()=>yL,ZodCodec:()=>TL,ZodCustom:()=>LL,ZodCustomStringFormat:()=>UF,ZodDate:()=>CI,ZodDefault:()=>dL,ZodDiscriminatedUnion:()=>II,ZodE164:()=>zF,ZodEmail:()=>$P,ZodEmoji:()=>dF,ZodEnum:()=>XI,ZodError:()=>PP,ZodExactOptional:()=>oL,ZodFile:()=>eL,ZodFirstPartyTypeKind:()=>JL,ZodFunction:()=>FL,ZodGUID:()=>tF,ZodIPv4:()=>TF,ZodIPv6:()=>kF,ZodISODate:()=>DP,ZodISODateTime:()=>TP,ZodISODuration:()=>jP,ZodISOTime:()=>kP,ZodIntersection:()=>RI,ZodIssueCode:()=>ace,ZodJWT:()=>VF,ZodKSUID:()=>CF,ZodLazy:()=>jL,ZodLiteral:()=>$I,ZodMAC:()=>DF,ZodMap:()=>KI,ZodNaN:()=>xL,ZodNanoID:()=>pF,ZodNever:()=>yI,ZodNonOptional:()=>hL,ZodNull:()=>pI,ZodNullable:()=>cL,ZodNumber:()=>JF,ZodNumberFormat:()=>XF,ZodObject:()=>OI,ZodOptional:()=>iL,ZodPipe:()=>CL,ZodPrefault:()=>pL,ZodPromise:()=>NL,ZodReadonly:()=>DL,ZodRealError:()=>FP,ZodRecord:()=>HI,ZodSet:()=>JI,ZodString:()=>ZP,ZodStringFormat:()=>QP,ZodSuccess:()=>_L,ZodSymbol:()=>lI,ZodTemplateLiteral:()=>kL,ZodTransform:()=>nL,ZodTuple:()=>BI,ZodType:()=>YP,ZodULID:()=>yF,ZodURL:()=>cF,ZodUUID:()=>rF,ZodUndefined:()=>dI,ZodUnion:()=>MI,ZodUnknown:()=>_I,ZodVoid:()=>xI,ZodXID:()=>xF,ZodXor:()=>PI,_ZodString:()=>XP,_default:()=>fL,_function:()=>IL,any:()=>gI,array:()=>EI,base64:()=>IF,base64url:()=>RF,bigint:()=>aI,boolean:()=>rI,catch:()=>bL,check:()=>RL,cidrv4:()=>MF,cidrv6:()=>PF,clone:()=>fD,codec:()=>EL,coerce:()=>fce,config:()=>ME,core:()=>SP,cuid:()=>gF,cuid2:()=>vF,custom:()=>zL,date:()=>wI,decode:()=>VP,decodeAsync:()=>UP,describe:()=>HL,discriminatedUnion:()=>LI,e164:()=>BF,email:()=>eF,emoji:()=>fF,encode:()=>BP,encodeAsync:()=>HP,endsWith:()=>zM,enum:()=>ZI,exactOptional:()=>sL,file:()=>tL,flattenError:()=>RD,float32:()=>QF,float64:()=>$F,formatError:()=>zD,fromJSONSchema:()=>dce,function:()=>IL,getErrorMap:()=>sce,globalRegistry:()=>yj,gt:()=>xM,gte:()=>SM,guid:()=>nF,hash:()=>qF,hex:()=>KF,hostname:()=>GF,httpUrl:()=>uF,includes:()=>LM,instanceof:()=>WL,int:()=>ZF,int32:()=>eI,int64:()=>sI,intersection:()=>zI,ipv4:()=>EF,ipv6:()=>AF,iso:()=>wP,json:()=>KL,jwt:()=>HF,keyof:()=>DI,ksuid:()=>wF,lazy:()=>ML,length:()=>NM,literal:()=>K,locales:()=>pj,looseObject:()=>jI,looseRecord:()=>GI,lowercase:()=>FM,lt:()=>yM,lte:()=>bM,mac:()=>OF,map:()=>qI,maxLength:()=>jM,maxSize:()=>OM,meta:()=>UL,mime:()=>VM,minLength:()=>MM,minSize:()=>kM,multipleOf:()=>DM,nan:()=>SL,nanoid:()=>mF,nativeEnum:()=>QI,negative:()=>wM,never:()=>bI,nonnegative:()=>EM,nonoptional:()=>gL,nonpositive:()=>TM,normalize:()=>UM,null:()=>mI,nullable:()=>lL,nullish:()=>uL,number:()=>YF,object:()=>kI,optional:()=>aL,overwrite:()=>HM,parse:()=>IP,parseAsync:()=>LP,partialRecord:()=>WI,pipe:()=>wL,positive:()=>CM,prefault:()=>mL,preprocess:()=>qL,prettifyError:()=>HD,promise:()=>PL,property:()=>BM,readonly:()=>OL,record:()=>UI,refine:()=>BL,regex:()=>PM,regexes:()=>aO,registry:()=>vj,safeDecode:()=>GP,safeDecodeAsync:()=>qP,safeEncode:()=>WP,safeEncodeAsync:()=>KP,safeParse:()=>RP,safeParseAsync:()=>zP,set:()=>YI,setErrorMap:()=>oce,size:()=>AM,slugify:()=>qM,startsWith:()=>RM,strictObject:()=>AI,string:()=>G,stringFormat:()=>WF,stringbool:()=>GL,success:()=>vL,superRefine:()=>VL,symbol:()=>uI,templateLiteral:()=>AL,toJSONSchema:()=>yP,toLowerCase:()=>GM,toUpperCase:()=>KM,transform:()=>rL,treeifyError:()=>BD,trim:()=>WM,tuple:()=>VI,uint32:()=>tI,uint64:()=>cI,ulid:()=>bF,undefined:()=>fI,union:()=>NI,unknown:()=>vI,uppercase:()=>IM,url:()=>lF,util:()=>NE,uuid:()=>iF,uuidv4:()=>aF,uuidv6:()=>oF,uuidv7:()=>sF,void:()=>SI,xid:()=>SF,xor:()=>FI});ME(aj());var QL=vce,$L=new WeakMap,yce=new WeakMap,eR={current:[]},tR=!1,nR=0,rR=new Set,iR=new Map;function aR(e){for(let t of e){if(eR.current.includes(t))continue;eR.current.push(t),t.recompute();let e=yce.get(t);if(e)for(let t of e){let e=$L.get(t);e?.length&&aR(e)}}}function bce(e){let t={prevVal:e.prevState,currentVal:e.state};for(let n of e.listeners)n(t)}function xce(e){let t={prevVal:e.prevState,currentVal:e.state};for(let n of e.listeners)n(t)}function oR(e){if(nR>0&&!iR.has(e)&&iR.set(e,e.prevState),rR.add(e),!(nR>0)&&!tR)try{for(tR=!0;rR.size>0;){let e=Array.from(rR);rR.clear();for(let t of e)t.prevState=iR.get(t)??t.prevState,bce(t);for(let t of e){let e=$L.get(t);e&&(eR.current.push(t),aR(e))}for(let t of e){let e=$L.get(t);if(e)for(let t of e)xce(t)}}}finally{tR=!1,eR.current=[],iR.clear()}}function sR(e){nR++;try{e()}finally{if(nR--,nR===0){let e=rR.values().next().value;e&&oR(e)}}}function Sce(e){return typeof e==`function`}var Cce=class{constructor(e,t){this.listeners=new Set,this.subscribe=e=>{var t;this.listeners.add(e);let n=((t=this.options)?.onSubscribe)?.call(t,e,this);return()=>{this.listeners.delete(e),n?.()}},this.prevState=e,this.state=e,this.options=t}setState(e){var t,n;this.prevState=this.state,this.options?.updateFn?this.state=this.options.updateFn(this.prevState)(e):Sce(e)?this.state=e(this.prevState):this.state=e,(n=(t=this.options)?.onUpdate)==null||n.call(t),oR(this)}},cR=`__TSR_index`,lR=`popstate`,uR=`beforeunload`;function wce(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=fR(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[cR];i=dR(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[cR];i=dR(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[cR]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function dR(e,t){t||={};let n=pR();return{...t,key:n,__TSR_key:n,[cR]:e}}function Tce(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>fR(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=pR();t.history.replaceState({[cR]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=fR(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[cR]-l.state[cR],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=wce({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(uR,S,{capture:!0}),t.removeEventListener(lR,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(uR,S,{capture:!0}),t.addEventListener(lR,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function fR(e,t){let n=e.indexOf(`#`),r=e.indexOf(`?`),i=pR();return{href:e,pathname:e.substring(0,n>0?r>0?Math.min(n,r):n:r>0?r:e.length),hash:n>-1?e.substring(n):``,search:r>-1?e.slice(r,n===-1?void 0:n):``,state:t||{[cR]:0,key:i,__TSR_key:i}}}function pR(){return(Math.random()+1).toString(36).substring(7)}function mR(e){return e[e.length-1]}function Ece(e){return typeof e==`function`}function hR(e,t){return Ece(e)?e(t):e}var Dce=Object.prototype.hasOwnProperty;function gR(e,t){if(e===t)return e;let n=t,r=bR(e)&&bR(n);if(!r&&!(vR(e)&&vR(n)))return n;let i=r?e:_R(e);if(!i)return n;let a=r?n:_R(n);if(!a)return n;let o=i.length,s=a.length,c=r?Array(s):{},l=0;for(let t=0;t<s;t++){let i=r?t:a[t],s=e[i],u=n[i];if(s===u){c[i]=s,(r?t<o:Dce.call(e,i))&&l++;continue}if(s===null||u===null||typeof s!=`object`||typeof u!=`object`){c[i]=u;continue}let d=gR(s,u);c[i]=d,d===s&&l++}return o===s&&l===o?e:c}function _R(e){let t=[],n=Object.getOwnPropertyNames(e);for(let r of n){if(!Object.prototype.propertyIsEnumerable.call(e,r))return!1;t.push(r)}let r=Object.getOwnPropertySymbols(e);for(let n of r){if(!Object.prototype.propertyIsEnumerable.call(e,n))return!1;t.push(n)}return t}function vR(e){if(!yR(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!yR(n)||!n.hasOwnProperty(`isPrototypeOf`))}function yR(e){return Object.prototype.toString.call(e)===`[object Object]`}function bR(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function xR(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!xR(e[r],t[r],n))return!1;return!0}if(vR(e)&&vR(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!xR(e[i],t[i],n))return!1;return!0}let i=0;if(!r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;let a=0;for(let o in t)if((!r||t[o]!==void 0)&&(a++,a>i||!xR(e[o],t[o],n)))return!1;return i===a}return!1}function SR(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function CR(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}function wR(e){try{return decodeURI(e)}catch{return e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}}function TR(e,t){if(!e)return e;let n=t?RegExp(`${t.join(`|`)}`,`gi`):/%25|%5C/gi,r=0,i=``,a;for(;(a=n.exec(e))!==null;)i+=wR(e.slice(r,a.index))+a[0],r=n.lastIndex;return i+wR(r?e.slice(r):e)}var Oce=!0,ER=`Invariant failed`;function DR(e,t){if(!e){if(Oce)throw Error(ER);var n=typeof t==`function`?t():t,r=n?`${ER}: ${n}`:ER;throw Error(r)}}function OR(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var kR=4,kce=/^([^{]*)\{\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,Ace=/^([^{]*)\{-\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,jce=/^([^{]*)\{\$\}([^}]*)$/;function AR(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=a.match(jce);if(o){let r=o[1].length;return n[0]=2,n[1]=t+r,n[2]=t+r+1,n[3]=t+r+2,n[4]=t+r+3,n[5]=e.length,n}let s=a.match(Ace);if(s){let e=s[1],r=s[2],a=s[3],o=e.length;return n[0]=3,n[1]=t+o,n[2]=t+o+3,n[3]=t+o+3+r.length,n[4]=i-a.length,n[5]=i,n}let c=a.match(kce);if(c){let e=c[1],r=c[2],a=c[3],o=e.length;return n[0]=1,n[1]=t+o,n[2]=t+o+2,n[3]=t+o+2+r.length,n[4]=i-a.length,n[5]=i,n}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function jR(e,t,n,r,i,a,o){o?.(n);let s=r;{let r=n.fullPath??n.from,o=r.length,c=n.options?.caseSensitive??e;for(;s<o;){let e=AR(r,s,t),o,l=s,u=e[5];switch(s=u+1,a++,e[0]){case 0:{let t=r.substring(e[2],e[3]);if(c){let e=i.static?.get(t);if(e)o=e;else{i.static??=new Map;let e=PR(n.fullPath??n.from);e.parent=i,e.depth=a,o=e,i.static.set(t,e)}}else{let e=t.toLowerCase(),r=i.staticInsensitive?.get(e);if(r)o=r;else{i.staticInsensitive??=new Map;let t=PR(n.fullPath??n.from);t.parent=i,t.depth=a,o=t,i.staticInsensitive.set(e,t)}}break}case 1:{let t=r.substring(l,e[1]),s=r.substring(e[4],u),d=c&&!!(t||s),f=t?d?t:t.toLowerCase():void 0,p=s?d?s:s.toLowerCase():void 0,m=i.dynamic?.find(e=>e.caseSensitive===d&&e.prefix===f&&e.suffix===p);if(m)o=m;else{let e=FR(1,n.fullPath??n.from,d,f,p);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(l,e[1]),s=r.substring(e[4],u),d=c&&!!(t||s),f=t?d?t:t.toLowerCase():void 0,p=s?d?s:s.toLowerCase():void 0,m=i.optional?.find(e=>e.caseSensitive===d&&e.prefix===f&&e.suffix===p);if(m)o=m;else{let e=FR(3,n.fullPath??n.from,d,f,p);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(l,e[1]),s=r.substring(e[4],u),d=c&&!!(t||s),f=t?d?t:t.toLowerCase():void 0,p=s?d?s:s.toLowerCase():void 0,m=FR(2,n.fullPath??n.from,d,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}let l=(n.path||!n.children)&&!n.isRoot;if(l&&r.endsWith(`/`)){let e=PR(n.fullPath??n.from);e.kind=kR,e.parent=i,a++,e.depth=a,i.index=e,i=e}l&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)jR(e,t,r,s,i,a,o)}function MR(e,t){if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function NR(e){if(e.static)for(let t of e.static.values())NR(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())NR(t);if(e.dynamic?.length){e.dynamic.sort(MR);for(let t of e.dynamic)NR(t)}if(e.optional?.length){e.optional.sort(MR);for(let t of e.optional)NR(t)}if(e.wildcard?.length){e.wildcard.sort(MR);for(let t of e.wildcard)NR(t)}}function PR(e){return{kind:0,depth:0,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null}}function FR(e,t,n,r,i){return{kind:e,depth:0,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,caseSensitive:n,prefix:r,suffix:i}}function Mce(e,t){let n=PR(`/`),r=new Uint16Array(6);for(let t of e)jR(!1,r,t,1,n,0);NR(n),t.masksTree=n,t.flatCache=OR(1e3)}function Nce(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=IR(e,t.masksTree);return t.flatCache.set(e,r),r}function Pce(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=PR(`/`),jR(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),IR(r,o,n)}function Fce(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a=IR(e,t.segmentTree,n);return a&&(a.branch=zce(a.route)),t.matchCache.set(r,a),a}function Ice(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function Lce(e,t=!1,n){let r=PR(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return jR(t,i,e,1,r,0,e=>{if(n?.(e,s),DR(!(e.id in a),`Duplicate routes found with id: ${String(e.id)}`),a[e.id]=e,s!==0&&e.path){let t=Ice(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),NR(r),{processedTree:{segmentTree:r,singleCache:OR(1e3),matchCache:OR(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function IR(e,t,n=!1){let r=e.split(`/`),i=Vce(e,r,t,n);if(!i)return null;let a=Rce(e,r,i);return`**`in i&&(a[`**`]=i[`**`]),{route:i.node.route,params:a}}function Rce(e,t,n){let r=Bce(n.node),i=null,a={};for(let o=0,s=0,c=0;s<r.length;o++,s++,c++){let l=r[s],u=t[o],d=c;if(u&&(c+=u.length),l.kind===1){i??=n.node.fullPath.split(`/`);let e=i[s],t=l.prefix?.length??0;if(e.charCodeAt(t)===123){let n=l.suffix?.length??0,r=e.substring(t+2,e.length-n-1),i=u.substring(t,u.length-n);a[r]=decodeURIComponent(i)}else{let t=e.substring(1);a[t]=decodeURIComponent(u)}}else if(l.kind===3){if(n.skipped&1<<s){o--;continue}i??=n.node.fullPath.split(`/`);let e=i[s],t=l.prefix?.length??0,r=l.suffix?.length??0,c=e.substring(t+3,e.length-r-1),d=l.suffix||l.prefix?u.substring(t,u.length-r):u;d&&(a[c]=decodeURIComponent(d))}else if(l.kind===2){let t=l,n=e.substring(d+(t.prefix?.length??0),e.length-(t.suffix?.length??0)),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return a}function zce(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Bce(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Vce(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!mR(t),a=i&&e!==`/`,o=t.length-(i?1:0),s=[{node:n,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}],c=null,l=null,u=null;for(;s.length;){let e=s.pop(),{node:n,index:i,skipped:d,depth:f,statics:p,dynamics:m,optionals:h}=e;r&&n.route&&n.kind!==kR&&LR(l,e)&&(l=e);let g=i===o;if(g&&(n.route&&!a&&LR(u,e)&&(u=e),!n.optional&&!n.wildcard&&!n.index))continue;let _=g?void 0:t[i],v;if(g&&n.index){let e={node:n.index,index:i,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h};if(p===o&&!m&&!h&&!d)return e;LR(u,e)&&(u=e)}if(n.wildcard&&LR(c,e))for(let e of n.wildcard){let{prefix:n,suffix:r}=e;if(!(n&&(g||!(e.caseSensitive?_:v??=_.toLowerCase()).startsWith(n)))){if(r){if(g)continue;let n=t.slice(i).join(`/`).slice(-r.length);if((e.caseSensitive?n:n.toLowerCase())!==r)continue}c={node:e,index:o,skipped:d,depth:f,statics:p,dynamics:m,optionals:h};break}}if(n.optional){let e=d|1<<f,t=f+1;for(let r=n.optional.length-1;r>=0;r--){let a=n.optional[r];s.push({node:a,index:i,skipped:e,depth:t,statics:p,dynamics:m,optionals:h})}if(!g)for(let e=n.optional.length-1;e>=0;e--){let r=n.optional[e],{prefix:a,suffix:o}=r;if(a||o){let e=r.caseSensitive?_:v??=_.toLowerCase();if(a&&!e.startsWith(a)||o&&!e.endsWith(o))continue}s.push({node:r,index:i+1,skipped:d,depth:t,statics:p,dynamics:m,optionals:h+1})}}if(!g&&n.dynamic&&_)for(let e=n.dynamic.length-1;e>=0;e--){let t=n.dynamic[e],{prefix:r,suffix:a}=t;if(r||a){let e=t.caseSensitive?_:v??=_.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}s.push({node:t,index:i+1,skipped:d,depth:f+1,statics:p,dynamics:m+1,optionals:h})}if(!g&&n.staticInsensitive){let e=n.staticInsensitive.get(v??=_.toLowerCase());e&&s.push({node:e,index:i+1,skipped:d,depth:f+1,statics:p+1,dynamics:m,optionals:h})}if(!g&&n.static){let e=n.static.get(_);e&&s.push({node:e,index:i+1,skipped:d,depth:f+1,statics:p+1,dynamics:m,optionals:h})}}if(u&&c)return LR(c,u)?u:c;if(u)return u;if(c)return c;if(r&&l){let n=l.index;for(let e=0;e<l.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return{node:l.node,skipped:l.skipped,"**":decodeURIComponent(r)}}return null}function LR(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===kR)>(e.node.kind===kR)||t.node.kind===kR==(e.node.kind===kR)&&t.depth>e.depth))):!0}function RR(e){return zR(e.filter(e=>e!==void 0).join(`/`))}function zR(e){return e.replace(/\/{2,}/g,`/`)}function BR(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function VR(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function HR(e){return VR(BR(e))}function UR(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function Hce(e,t,n){return UR(e,n)===UR(t,n)}function Uce({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else if(i)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&mR(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&s.push(r):s=[r]:r===`..`?s.pop():r===`.`||s.push(r)}}s.length>1&&(mR(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c,l=``;for(let e=0;e<s.length;e++){e>0&&(l+=`/`);let t=s[e];if(!t)continue;c=AR(t,0,c);let n=c[0];if(n===0){l+=t;continue}let r=c[5],i=t.substring(0,c[1]),a=t.substring(c[4],r),o=t.substring(c[2],c[3]);n===1?l+=i||a?`${i}{$${o}}${a}`:`$${o}`:n===2?l+=i||a?`${i}{$}${a}`:`$`:l+=`${i}{-$${o}}${a}`}l=zR(l);let u=l||`/`;return o&&r&&r.set(o,u),u}function WR(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?encodeURI(r):Wce(r,n):r}function GR({path:e,params:t,decodeCharMap:n}){let r=!1,i={};if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:i,isMissingParams:r};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:i,isMissingParams:r};let a=e.length,o=0,s,c=``;for(;o<a;){let a=o;s=AR(e,a,s);let l=s[5];if(o=l+1,a===l)continue;let u=s[0];if(u===0){c+=`/`+e.substring(a,l);continue}if(u===2){let o=t._splat;i._splat=o,i[`*`]=o;let u=e.substring(a,s[1]),d=e.substring(s[4],l);if(!o){r=!0,(u||d)&&(c+=`/`+u+d);continue}let f=WR(`_splat`,t,n);c+=`/`+u+f+d;continue}if(u===1){let o=e.substring(s[2],s[3]);!r&&!(o in t)&&(r=!0),i[o]=t[o];let u=e.substring(a,s[1]),d=e.substring(s[4],l),f=WR(o,t,n)??`undefined`;c+=`/`+u+f+d;continue}if(u===3){let r=e.substring(s[2],s[3]),o=t[r];if(o==null)continue;i[r]=o;let u=e.substring(a,s[1]),d=e.substring(s[4],l),f=WR(r,t,n)??``;c+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(c+=`/`),{usedParams:i,interpolatedPath:c||`/`,isMissingParams:r}}function Wce(e,t){let n=encodeURIComponent(e);if(t)for(let[e,r]of t)n=n.replaceAll(e,r);return n}function KR(e){return!!e?.isNotFound}function Gce(){try{if(typeof window<`u`&&typeof window.sessionStorage==`object`)return window.sessionStorage}catch{}}var qR=`tsr-scroll-restoration-v1_3`,Kce=(e,t)=>{let n;return(...r)=>{n||=setTimeout(()=>{e(...r),n=null},t)}};function qce(){let e=Gce();if(!e)return null;let t=e.getItem(qR),n=t?JSON.parse(t):{};return{state:n,set:t=>(n=hR(t,n)||n,e.setItem(qR,JSON.stringify(n)))}}var JR=qce(),YR=e=>e.state.__TSR_key||e.href;function Jce(e){let t=[],n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(` > `)}`.toLowerCase()}var XR=!1;function ZR({storageKey:e,key:t,behavior:n,shouldScrollRestoration:r,scrollToTopSelectors:i,location:a}){let o;try{o=JSON.parse(sessionStorage.getItem(e)||`{}`)}catch(e){console.error(e);return}let s=t||window.history.state?.__TSR_key,c=o[s];XR=!0;scroll:{if(r&&c&&Object.keys(c).length>0){for(let e in c){let t=c[e];if(e===`window`)window.scrollTo({top:t.scrollY,left:t.scrollX,behavior:n});else if(e){let n=document.querySelector(e);n&&(n.scrollLeft=t.scrollX,n.scrollTop=t.scrollY)}}break scroll}let e=(a??window.location).hash.split(`#`,2)[1];if(e){let t=window.history.state?.__hashScrollIntoViewOptions??!0;if(t){let n=document.getElementById(e);n&&n.scrollIntoView(t)}break scroll}let t={top:0,left:0,behavior:n};if(window.scrollTo(t),i)for(let e of i){if(e===`window`)continue;let n=typeof e==`function`?e():document.querySelector(e);n&&n.scrollTo(t)}}XR=!1}function Yce(e,t){if(!JR&&!e.isServer||((t??e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isServer||e.isScrollRestorationSetup||!JR))return;e.isScrollRestorationSetup=!0,XR=!1;let n=e.options.getScrollRestorationKey||YR;window.history.scrollRestoration=`manual`,typeof document<`u`&&document.addEventListener(`scroll`,Kce(t=>{if(XR||!e.isScrollRestoring)return;let r=``;if(t.target===document||t.target===window)r=`window`;else{let e=t.target.getAttribute(`data-scroll-restoration-id`);r=e?`[data-scroll-restoration-id="${e}"]`:Jce(t.target)}let i=n(e.state.location);JR.set(e=>{let t=e[i]||={},n=t[r]||={};if(r===`window`)n.scrollX=window.scrollX||0,n.scrollY=window.scrollY||0;else if(r){let e=document.querySelector(r);e&&(n.scrollX=e.scrollLeft||0,n.scrollY=e.scrollTop||0)}return e})},100),!0),e.subscribe(`onRendered`,t=>{let r=n(t.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation})||(ZR({storageKey:qR,key:r,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&JR.set(e=>(e[r]||={},e)))})}function Xce(e){if(typeof document<`u`&&document.querySelector){let t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==``){let n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function Zce(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function QR(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function Qce(e){let t=new URLSearchParams(e),n={};for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=QR(r):Array.isArray(t)?t.push(QR(r)):n[e]=[t,QR(r)]}return n}var $ce=tle(JSON.parse),ele=nle(JSON.stringify,JSON.parse);function tle(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=Qce(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function nle(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=Zce(e,r);return t?`?${t}`:``}}var $R=`__root__`;function rle(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function ez(e){return e instanceof Response&&!!e.options}var tz=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},nz=(e,t)=>!!(e.preload&&!e.router.state.matches.some(e=>e.id===t)),rz=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},iz=(e,t)=>{let n=e.router.routesById[t.routeId??``]??e.router.routeTree;!n.options.notFoundComponent&&e.router.options?.defaultNotFoundComponent&&(n.options.notFoundComponent=e.router.options.defaultNotFoundComponent),DR(n.options.notFoundComponent,`No notFoundComponent found. Please set a notFoundComponent on your route or provide a defaultNotFoundComponent to the router.`);let r=e.matches.find(e=>e.routeId===n.id);DR(r,`Could not find match for route: `+n.id),e.updateMatch(r.id,e=>({...e,status:`notFound`,error:t,isFetching:!1})),t.routerCode===`BEFORE_LOAD`&&n.parentRoute&&(t.routeId=n.parentRoute.id,iz(e,t))},az=(e,t,n)=>{if(!(!ez(n)&&!KR(n))){if(ez(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;let r=ez(n)?`redirected`:`notFound`;t._nonReactive.error=n,e.updateMatch(t.id,e=>({...e,status:r,isFetching:!1,error:n})),KR(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()}throw ez(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(iz(e,n),n)}},oz=(e,t)=>{let n=e.router.getMatch(t);return!!(!e.router.isServer&&n._nonReactive.dehydrated||e.router.isServer&&n.ssr===!1)},sz=(e,t,n,r)=>{let{id:i,routeId:a}=e.matches[t],o=e.router.looseRoutesById[a];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,az(e,e.router.getMatch(i),n);try{o.options.onError?.(n)}catch(t){n=t,az(e,e.router.getMatch(i),n)}e.updateMatch(i,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},ile=(e,t,n,r)=>{let i=e.router.getMatch(t),a=e.matches[n-1]?.id,o=a?e.router.getMatch(a):void 0;if(e.router.isShell()){i.ssr=r.id===$R;return}if(o?.ssr===!1){i.ssr=!1;return}let s=e=>e===!0&&o?.ssr===`data-only`?`data-only`:e,c=e.router.options.defaultSsr??!0;if(r.options.ssr===void 0){i.ssr=s(c);return}if(typeof r.options.ssr!=`function`){i.ssr=s(r.options.ssr);return}let{search:l,params:u}=i,d={search:pz(l,i.searchError),params:pz(u,i.paramsError),location:e.location,matches:e.matches.map(e=>({index:e.index,pathname:e.pathname,fullPath:e.fullPath,staticData:e.staticData,id:e.id,routeId:e.routeId,search:pz(e.search,e.searchError),params:pz(e.params,e.paramsError),ssr:e.ssr}))},f=r.options.ssr(d);if(CR(f))return f.then(e=>{i.ssr=s(e??c)});i.ssr=s(f??c)},cz=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!e.router.isServer&&!nz(e,t)&&(n.options.loader||n.options.beforeLoad||mz(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{tz(e)},i);r._nonReactive.pendingTimeout=t}},ale=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;cz(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&az(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},ole=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=SR(()=>{a?.resolve()});let{paramsError:o,searchError:s}=i;o&&sz(e,n,o,`PARSE_PARAMS`),s&&sz(e,n,s,`VALIDATE_SEARCH`),cz(e,t,r,i);let c=new AbortController,l=e.matches[n-1]?.id;(l?e.router.getMatch(l):void 0)?.context??e.router.options.context;let u=!1,d=()=>{u||(u=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},f=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){sR(()=>{d(),f()});return}i._nonReactive.beforeLoadPromise=SR();let p={...rz(e,n,!1),...i.__routeContext},{search:m,params:h,cause:g}=i,_=nz(e,t),v={search:m,abortController:c,params:h,preload:_,context:p,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:_?`preload`:g,matches:e.matches,...e.router.options.additionalContext},y=r=>{if(r===void 0){sR(()=>{d(),f()});return}(ez(r)||KR(r))&&(d(),sz(e,n,r,`BEFORE_LOAD`)),sR(()=>{d(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),f()})},b;try{if(b=r.options.beforeLoad(v),CR(b))return d(),b.catch(t=>{sz(e,n,t,`BEFORE_LOAD`)}).then(y)}catch(t){d(),sz(e,n,t,`BEFORE_LOAD`)}y(b)},sle=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>{if(e.router.isServer){let r=ile(e,n,t,i);if(CR(r))return r.then(s)}return s()},o=()=>ole(e,n,t,i),s=()=>{if(oz(e,n))return;let t=ale(e,n,i);return CR(t)?t.then(o):o()};return a()},cle=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},lz=(e,t,n,r)=>{let i=e.matchPromises[n-1],{params:a,loaderDeps:o,abortController:s,cause:c}=e.router.getMatch(t),l=rz(e,n),u=nz(e,t);return{params:a,deps:o,preload:!!u,parentMatchPromise:i,abortController:s,context:l,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:u?`preload`:c,route:r,...e.router.options.additionalContext}},uz=async(e,t,n,r)=>{try{let i=e.router.getMatch(t);try{(!e.router.isServer||i.ssr===!0)&&fz(r);let a=r.options.loader?.(lz(e,t,n,r)),o=r.options.loader&&CR(a);if((o||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||i._nonReactive.minPendingPromise)&&e.updateMatch(t,e=>({...e,isFetching:`loader`})),r.options.loader){let n=o?await a:a;az(e,e.router.getMatch(t),n),n!==void 0&&e.updateMatch(t,e=>({...e,loaderData:n}))}r._lazyPromise&&await r._lazyPromise;let s=i._nonReactive.minPendingPromise;s&&await s,r._componentsPromise&&await r._componentsPromise,e.updateMatch(t,e=>({...e,error:void 0,status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(n){let a=n,o=i._nonReactive.minPendingPromise;o&&await o,KR(n)&&await r.options.notFoundComponent?.preload?.(),az(e,e.router.getMatch(t),n);try{r.options.onError?.(n)}catch(n){a=n,az(e,e.router.getMatch(t),n)}e.updateMatch(t,e=>({...e,error:a,status:`error`,isFetching:!1}))}}catch(n){let r=e.router.getMatch(t);r&&(r._nonReactive.loaderPromise=void 0),az(e,r,n)}},lle=async(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=!1,a=!1,o=e.router.looseRoutesById[r],s=()=>{e.updateMatch(n,n=>({...n,context:rz(e,t)}))};if(oz(e,n)){if(e.router.isServer)return e.router.getMatch(n)}else{let r=e.router.getMatch(n);if(r._nonReactive.loaderPromise){if(r.status===`success`&&!e.sync&&!r.preload)return r;await r._nonReactive.loaderPromise;let t=e.router.getMatch(n),i=t._nonReactive.error||t.error;i&&az(e,t,i)}else{let c=Date.now()-r.updatedAt,l=nz(e,n),u=l?o.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:o.options.staleTime??e.router.options.defaultStaleTime??0,d=o.options.shouldReload,f=typeof d==`function`?d(lz(e,n,t,o)):d,p=!!l&&!e.router.state.matches.some(e=>e.id===n),m=e.router.getMatch(n);m._nonReactive.loaderPromise=SR(),p!==m.preload&&e.updateMatch(n,e=>({...e,preload:p}));let{status:h,invalid:g}=m;i=h===`success`&&(g||(f??c>u)),l&&o.options.preload===!1||(i&&!e.sync?(a=!0,(async()=>{try{await uz(e,n,t,o),s();let r=e.router.getMatch(n);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0}catch(t){ez(t)&&await e.router.navigate(t.options)}})()):(h!==`success`||i&&e.sync)&&await uz(e,n,t,o))}}let c=e.router.getMatch(n);a||(c._nonReactive.loaderPromise?.resolve(),c._nonReactive.loadPromise?.resolve()),clearTimeout(c._nonReactive.pendingTimeout),c._nonReactive.pendingTimeout=void 0,a||(c._nonReactive.loaderPromise=void 0),c._nonReactive.dehydrated=void 0,a||s();let l=a?c.isFetching:!1;return l!==c.isFetching||c.invalid!==!1?(e.updateMatch(n,e=>({...e,isFetching:l,invalid:!1})),e.router.getMatch(n)):c};async function dz(e){let t=Object.assign(e,{matchPromises:[]});!t.router.isServer&&t.router.state.matches.some(e=>e._forcePending)&&tz(t);try{for(let e=0;e<t.matches.length;e++){let n=sle(t,e);CR(n)&&await n}let e=t.firstBadMatchIndex??t.matches.length;for(let n=0;n<e;n++)t.matchPromises.push(lle(t,n));let n=(await Promise.allSettled(t.matchPromises)).filter(e=>e.status===`rejected`).map(e=>e.reason),r;for(let e of n){if(ez(e))throw e;!r&&KR(e)&&(r=e)}for(let e of t.matches){let{id:n,routeId:r}=e,i=t.router.looseRoutesById[r];try{let e=cle(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}if(r)throw r;let i=tz(t);CR(i)&&await i}catch(e){if(KR(e)&&!t.preload){let n=tz(t);throw CR(n)&&await n,e}if(ez(e))throw e}return t.matches}async function fz(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){let t=()=>{let t=[];for(let n of hz){let r=e.options[n]?.preload;r&&t.push(r())}if(t.length)return Promise.all(t).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function pz(e,t){return t?{status:`error`,error:t}:{status:`success`,value:e}}function mz(e){for(let t of hz)if(e.options[t]?.preload)return!0;return!1}var hz=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function ule(e){return{input:({url:t})=>{for(let n of e)t=gz(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=_z(e[n],t);return t}}}function dle(e){let t=HR(e.basepath),n=`/${t}`,r=`${n}/`,i=e.caseSensitive?n:n.toLowerCase(),a=e.caseSensitive?r:r.toLowerCase();return{input:({url:t})=>{let r=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return r===i?t.pathname=`/`:r.startsWith(a)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=RR([`/`,t,e.pathname]),e)}}function gz(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function _z(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function vz(e){let t=e.resolvedLocation,n=e.location;return{fromLocation:t,toLocation:n,pathChanged:t?.pathname!==n.pathname,hrefChanged:t?.href!==n.href,hashChanged:t?.hash!==n.hash}}var fle=class{constructor(e){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=e=>e(),this.update=e=>{e.notFoundRoute&&console.warn(`The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.`);let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(e=>[encodeURIComponent(e),e])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=Tce())),this.origin=this.options.origin,this.origin||(!this.isServer&&window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new Cce(mle(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(e=>![`redirected`].includes(e.status))}}}),Yce(this));let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[];HR(o)!==``&&e.push(dle({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:ule(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a)`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let{routesById:e,routesByPath:t,processedTree:n}=Lce(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});this.options.routeMasks&&Mce(this.options.routeMasks,n),this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({href:e,state:n})=>{let r=new URL(e,this.origin),i=gz(this.rewrite,r),a=this.options.parseSearch(i.search),o=this.options.stringifySearch(a);return i.search=o,{href:i.href.replace(i.origin,``),publicHref:e,url:i,pathname:TR(i.pathname),searchStr:o,search:gR(t?.search,a),hash:i.hash.split(`#`).reverse()[0]??``,state:gR(t?.state,n)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathCache=OR(1e3),this.resolvePathWithBase=(e,t)=>Uce({base:e,to:zR(t),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>hle({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{let e=this.state.matches.filter(e=>e.status===`pending`),t=this.state.matches.filter(e=>e.isFetching===`loader`);new Set([...this.state.pendingMatches??[],...e,...t]).forEach(e=>{this.cancelMatch(e.id)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=mR(this.matchRoutes(n,{_buildLocation:!0}));t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=this.resolvePathWithBase(i,`.`),o=r.search,s={...r.params},c=t.to?this.resolvePathWithBase(a,`${t.to}`):this.resolvePathWithBase(a,`.`),l=t.params===!1||t.params===null?{}:(t.params??!0)===!0?s:Object.assign(s,hR(t.params,s)),u=GR({path:c,params:l}).interpolatedPath,d=this.matchRoutes(u,void 0,{_buildLocation:!0}).map(e=>this.looseRoutesById[e.routeId]);if(Object.keys(l).length>0)for(let e of d){let t=e.options.params?.stringify??e.options.stringifyParams;t&&Object.assign(l,t(l))}let f=e.leaveParams?c:TR(GR({path:c,params:l,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath),p=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};d.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,bz(t.options.validateSearch,{...e,...p}))}catch{}}),p=e}p=gle({search:p,dest:t,destRoutes:d,_includeValidateSearch:e._includeValidateSearch}),p=gR(o,p);let m=this.options.stringifySearch(p),h=t.hash===!0?n.hash:t.hash?hR(t.hash,n.hash):void 0,g=h?`#${h}`:``,_=t.state===!0?n.state:t.state?hR(t.state,n.state):{};_=gR(n.state,_);let v=`${f}${m}${g}`,y=new URL(v,this.origin),b=_z(this.rewrite,y);return{publicHref:b.pathname+b.search+b.hash,href:v,url:b,pathname:f,search:p,searchStr:m,state:_,hash:h??``,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n={};if(this.options.routeMasks){let o=Nce(i.pathname,this.processedTree);if(o){Object.assign(n,o.params);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?{}:(s??!0)===!0?n:Object.assign(n,hR(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=({viewTransition:e,ignoreBlocker:t,...n})=>{let r=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=xR(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},i=VR(this.latestLocation.href)===VR(n.href),a=this.commitLocationPromise;if(this.commitLocationPromise=SR(()=>{a?.resolve()}),i&&r())this.load();else{let{maskedLocation:r,hashScrollIntoView:i,url:a,...o}=n;r&&(o={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=i??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,this.history[n.replace?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this.resetNextScroll=n.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=fR(a,{__TSR_index:e?t:t+1});o.to=n.pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(!n||!r&&!a){let t=this.buildLocation({to:e,...i});n??=t.url.href,r??=t.url.href}let t=!a&&r?r:n;if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){let e=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(this.latestLocation.publicHref!==e.publicHref||e.url.origin!==this.origin)throw rle({href:this.getParsedLocationHref(e)})}let e=this.matchRoutes(this.latestLocation);this.__store.setState(t=>({...t,status:`pending`,statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:e,cachedMatches:t.cachedMatches.filter(t=>!e.some(e=>e.id===t.id))}))},this.load=async e=>{let t,n,r;for(r=new Promise(i=>{this.startTransition(async()=>{try{this.beforeLoad();let t=this.latestLocation,n=this.state.resolvedLocation;this.state.redirect||this.emit({type:`onBeforeNavigate`,...vz({resolvedLocation:n,location:t})}),this.emit({type:`onBeforeLoad`,...vz({resolvedLocation:n,location:t})}),await dz({router:this,sync:e?.sync,matches:this.state.pendingMatches,location:t,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=[],t=[],n=[];sR(()=>{this.__store.setState(r=>{let i=r.matches,a=r.pendingMatches||r.matches;return e=i.filter(e=>!a.some(t=>t.id===e.id)),t=a.filter(e=>!i.some(t=>t.id===e.id)),n=a.filter(e=>i.some(t=>t.id===e.id)),{...r,isLoading:!1,loadedAt:Date.now(),matches:a,pendingMatches:void 0,cachedMatches:[...r.cachedMatches,...e.filter(e=>e.status!==`error`&&e.status!==`notFound`)]}}),this.clearExpiredCache()}),[[e,`onLeave`],[t,`onEnter`],[n,`onStay`]].forEach(([e,t])=>{e.forEach(e=>{this.looseRoutesById[e.routeId].options[t]?.(e)})})})})}})}catch(e){ez(e)?(t=e,this.isServer||this.navigate({...t.options,replace:!0,ignoreBlocker:!0})):KR(e)&&(n=e),this.__store.setState(e=>({...e,statusCode:t?t.status:n?404:e.matches.some(e=>e.status===`error`)?500:200,redirect:t}))}this.latestLoadPromise===r&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),i()})}),this.latestLoadPromise=r,await r;this.latestLoadPromise&&r!==this.latestLoadPromise;)await this.latestLoadPromise;let i;this.hasNotFoundMatch()?i=404:this.__store.state.matches.some(e=>e.status===`error`)&&(i=500),i!==void 0&&this.__store.setState(e=>({...e,statusCode:i}))},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.state.resolvedLocation,a=typeof t.types==`function`?t.types(vz({resolvedLocation:i,location:r})):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.state.pendingMatches?.some(t=>t.id===e)?`pendingMatches`:this.state.matches.some(t=>t.id===e)?`matches`:this.state.cachedMatches.some(t=>t.id===e)?`cachedMatches`:``;n&&this.__store.setState(r=>({...r,[n]:r[n]?.map(n=>n.id===e?t(n):n)}))})},this.getMatch=e=>{let t=t=>t.id===e;return this.state.cachedMatches.find(t)??this.state.pendingMatches?.find(t)??this.state.matches.find(t)},this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.__store.setState(e=>({...e,matches:e.matches.map(t),cachedMatches:e.cachedMatches.map(t),pendingMatches:e.pendingMatches?.map(t)})),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>{let t=e.url.href;return this.origin&&e.url.origin===this.origin&&(t=t.replace(this.origin,``)||`/`),t},this.resolveRedirect=e=>{if(!e.options.href){let t=this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=t.href,e.headers.set(`Location`,n)}return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.__store.setState(e=>({...e,cachedMatches:[]})):this.__store.setState(e=>({...e,cachedMatches:e.cachedMatches.filter(e=>!t(e))}))},this.clearExpiredCache=()=>{this.clearCache({filter:e=>{let t=this.looseRoutesById[e.routeId];if(!t.options.loader)return!0;let n=(e.preload?t.options.preloadGcTime??this.options.defaultPreloadGcTime:t.options.gcTime??this.options.defaultGcTime)??300*1e3;return e.status===`error`?!0:Date.now()-e.updatedAt>=n}})},this.loadRouteChunk=fz,this.preloadRoute=async e=>{let t=this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(e=>e.id)),i=new Set([...r,...this.state.cachedMatches.map(e=>e.id)]);sR(()=>{n.forEach(e=>{i.has(e.id)||this.__store.setState(t=>({...t,cachedMatches:[...t.cachedMatches,e]}))})});try{return n=await dz({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(ez(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});KR(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.state.status!==`pending`)return!1;let i=(t?.pending===void 0?!this.state.isLoading:t.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,a=Pce(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!xR(a.params,e.params,{partial:!0})?!1:t?.includeSearch??!0?xR(i.search,r.search,{partial:!0})?a.params:!1:a.params},this.hasNotFoundMatch=()=>this.__store.state.matches.some(e=>e.status===`notFound`||e.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??ele,parseSearch:e.parseSearch??$ce}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:VR(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=(()=>{if(o){if(this.options.notFoundMode!==`root`)for(let e=a.length-1;e>=0;e--){let t=a[e];if(t.children)return t.id}return $R}})(),c=[],l=e=>e?.id?e.context??this.options.context??void 0:this.options.context??void 0;return a.forEach((n,r)=>{let a=c[r-1],[o,u,d]=(()=>{let r=a?.search??e.search,i=a?._strictSearch??void 0;try{let e=bz(n.options.validateSearch,{...r})??void 0;return[{...r,...e},{...i,...e},void 0]}catch(e){let n=e;if(e instanceof yz||(n=new yz(e.message,{cause:e})),t?.throwOnError)throw n;return[r,{},n]}})(),f=n.options.loaderDeps?.({search:o})??``,p=f?JSON.stringify(f):``,{interpolatedPath:m,usedParams:h}=GR({path:n.fullPath,params:i,decodeCharMap:this.pathParamsDecodeCharMap}),g=n.id+m+p,_=this.getMatch(g),v=this.state.matches.find(e=>e.routeId===n.id),y=_?._strictParams??h,b;if(!_){let e=n.options.params?.parse??n.options.parseParams;if(e)try{Object.assign(y,e(y))}catch(e){if(b=KR(e)||ez(e)?e:new ple(e.message,{cause:e}),t?.throwOnError)throw b}}Object.assign(i,y);let x=v?`stay`:`enter`,S;if(_)S={..._,cause:x,params:v?gR(v.params,i):i,_strictParams:y,search:gR(v?v.search:_.search,o),_strictSearch:u};else{let e=n.options.loader||n.options.beforeLoad||n.lazyFn||mz(n)?`pending`:`success`;S={id:g,ssr:this.isServer?void 0:n.options.ssr,index:r,routeId:n.id,params:v?gR(v.params,i):i,_strictParams:y,pathname:m,updatedAt:Date.now(),search:v?gR(v.search,o):o,_strictSearch:u,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:b,__routeContext:void 0,_nonReactive:{loadPromise:SR()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:x,loaderDeps:v?gR(v.loaderDeps,f):f,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:n.options.staticData||{},fullPath:n.fullPath}}t?.preload||(S.globalNotFound=s===n.id),S.searchError=d;let C=l(a);S.context={...C,...S.__routeContext,...S.__beforeLoadContext},c.push(S)}),c.forEach((n,r)=>{let i=this.looseRoutesById[n.routeId];if(!this.getMatch(n.id)&&t?._buildLocation!==!0){let t=c[r-1],a=l(t);if(i.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c};n.__routeContext=i.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}),c}},yz=class extends Error{},ple=class extends Error{};function mle(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function bz(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new yz(`Async validation not supported`);if(n.issues)throw new yz(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function hle({pathname:e,routesById:t,processedTree:n}){let r={},i=VR(e),a,o=Fce(i,n,!0);return o&&(a=o.route,Object.assign(r,o.params)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function gle({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){let i=n.reduce((e,t)=>{let n=[];return`search`in t.options?t.options.search?.middlewares&&n.push(...t.options.search.middlewares):(t.options.preSearchFilters||t.options.postSearchFilters)&&n.push(({search:e,next:n})=>{let r=e;`preSearchFilters`in t.options&&t.options.preSearchFilters&&(r=t.options.preSearchFilters.reduce((e,t)=>t(e),e));let i=n(r);return`postSearchFilters`in t.options&&t.options.postSearchFilters?t.options.postSearchFilters.reduce((e,t)=>t(e),i):i}),r&&t.options.validateSearch&&n.push(({search:e,next:n})=>{let r=n(e);try{return{...r,...bz(t.options.validateSearch,r)??void 0}}catch{return r}}),e.concat(n)},[])??[];i.push(({search:e})=>t.search?t.search===!0?e:hR(t.search,e):{});let a=(e,t)=>{if(e>=i.length)return t;let n=i[e];return n({search:t,next:t=>a(e+1,t)})};return a(0,e)}var _le=`Error preloading route! ☝️`,xz=class{constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=$R:this.parentRoute||DR(!1,`Child Route instances must pass a 'getParentRoute: () => ParentRoute' option that returns a Route instance.`);let r=n?$R:t?.path;r&&r!==`/`&&(r=BR(r));let i=t?.id||r,a=n?$R:RR([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=RR([`/`,a]));let o=a===`__root__`?`/`:RR([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=o},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}},vle=class extends xz{constructor(e){super(e)}};function Sz(e){let t=e.errorComponent??Cz;return(0,_.jsx)(yle,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?g.createElement(t,{error:n,reset:r}):e.children})}var yle=class extends g.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(e){return{resetKey:e.getResetKey()}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidUpdate(e,t){t.error&&t.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.resetKey===this.props.getResetKey()?this.state.error:null,reset:()=>{this.reset()}})}};function Cz({error:e}){let[t,n]=g.useState(!1);return(0,_.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,_.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,_.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,_.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,_.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,_.jsx)(`div`,{children:(0,_.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,_.jsx)(`code`,{children:e.message}):null})}):null]})}function ble({children:e,fallback:t=null}){return xle()?(0,_.jsx)(g.Fragment,{children:e}):(0,_.jsx)(g.Fragment,{children:t})}function xle(){return g.useSyncExternalStore(Sle,()=>!0,()=>!1)}function Sle(){return()=>{}}var Cle=!0;function wz(e,t){if(!Cle){if(e)return;var n=`Warning: `+t;typeof console<`u`&&console.warn(n);try{throw Error(n)}catch{}}}var wle=s((e=>{var t=p(),n=yo();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),Tz=u(s(((e,t)=>{t.exports=wle()}))(),1);function Tle(e,t=e=>e,n={}){let r=n.equal??Ele;return(0,Tz.useSyncExternalStoreWithSelector)(e.subscribe,()=>e.state,()=>e.state,t,r)}function Ele(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();let n=Ez(e);if(n.length!==Ez(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}function Ez(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}var Dz=g.createContext(null);function Oz(){return typeof document>`u`?Dz:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Dz,Dz)}function kz(e){let t=g.useContext(Oz());return wz(!((e?.warn??!0)&&!t),`useRouter must be used inside a <RouterProvider> component!`),t}function Az(e){let t=kz({warn:e?.router===void 0}),n=e?.router||t,r=(0,g.useRef)(void 0);return Tle(n.__store,t=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){let n=gR(r.current,e.select(t));return r.current=n,n}return e.select(t)}return t})}var jz=g.createContext(void 0),Dle=g.createContext(void 0);function Mz(e){let t=g.useContext(e.from?Dle:jz);return Az({select:n=>{let r=n.matches.find(n=>e.from?e.from===n.routeId:n.id===t);if(DR(!((e.shouldThrow??!0)&&!r),`Could not find ${e.from?`an active match from "${e.from}"`:`a nearest match!`}`),r!==void 0)return e.select?e.select(r):r},structuralSharing:e.structuralSharing})}function Nz(e){return Mz({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Pz(e){let{select:t,...n}=e;return Mz({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Fz(e){return Mz({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Iz(e){return Mz({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}var Lz=typeof window<`u`?g.useLayoutEffect:g.useEffect;function Rz(e){let t=g.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function Ole(e,t,n={},r={}){g.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!=`function`)return;let i=new IntersectionObserver(([e])=>{t(e)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function kle(e){let t=g.useRef(null);return g.useImperativeHandle(e,()=>t.current,[]),t}function zz(e){let t=kz();return g.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Ale(e,t){let n=kz(),[r,i]=g.useState(!1),a=g.useRef(!1),o=kle(t),{activeProps:s,inactiveProps:c,activeOptions:l,to:u,preload:d,preloadDelay:f,hashScrollIntoView:p,replace:m,startTransition:h,resetScroll:_,viewTransition:v,children:y,target:b,disabled:x,style:S,className:C,onClick:w,onFocus:T,onMouseEnter:E,onMouseLeave:D,onTouchStart:O,ignoreBlocker:k,params:A,search:j,hash:M,state:N,mask:P,reloadDocument:F,unsafeRelative:ee,from:I,_fromLocation:L,...te}=e,z=Az({select:e=>e.location.search,structuralSharing:!0}),B=e.from,ne=g.useMemo(()=>({...e,from:B}),[n,z,B,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),V=g.useMemo(()=>n.buildLocation({...ne}),[n,ne]),re=g.useMemo(()=>{if(x)return;let e=V.maskedLocation?V.maskedLocation.url.href:V.url.href,t=!1;return n.origin&&(e.startsWith(n.origin)?e=n.history.createHref(e.replace(n.origin,``))||`/`:t=!0),{href:e,external:t}},[x,V.maskedLocation,V.url,n.origin,n.history]),ie=g.useMemo(()=>{if(re?.external)return re.href;try{return new URL(u),u}catch{}},[u,re]),ae=e.reloadDocument||ie?!1:d??n.options.defaultPreload,oe=f??n.options.defaultPreloadDelay??0,se=Az({select:e=>{if(ie)return!1;if(l?.exact){if(!Hce(e.location.pathname,V.pathname,n.basepath))return!1}else{let t=UR(e.location.pathname,n.basepath),r=UR(V.pathname,n.basepath);if(!(t.startsWith(r)&&(t.length===r.length||t[r.length]===`/`)))return!1}return(l?.includeSearch??!0)&&!xR(e.location.search,V.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:l?.includeHash?e.location.hash===V.hash:!0}}),ce=g.useCallback(()=>{n.preloadRoute({...ne}).catch(e=>{console.warn(e),console.warn(_le)})},[n,ne]);Ole(o,g.useCallback(e=>{e?.isIntersecting&&ce()},[ce]),Fle,{disabled:!!x||ae!==`viewport`}),g.useEffect(()=>{a.current||!x&&ae===`render`&&(ce(),a.current=!0)},[x,ce,ae]);let le=e=>{let t=e.currentTarget.getAttribute(`target`),r=b===void 0?t:b;if(!x&&!Ile(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,R.flushSync)(()=>{i(!0)});let t=n.subscribe(`onResolved`,()=>{t(),i(!1)});n.navigate({...ne,replace:m,resetScroll:_,hashScrollIntoView:p,startTransition:h,viewTransition:v,ignoreBlocker:k})}};if(ie)return{...te,ref:o,href:ie,...y&&{children:y},...b&&{target:b},...x&&{disabled:x},...S&&{style:S},...C&&{className:C},...w&&{onClick:w},...T&&{onFocus:T},...E&&{onMouseEnter:E},...D&&{onMouseLeave:D},...O&&{onTouchStart:O}};let ue=e=>{x||ae&&ce()},de=ue,fe=e=>{if(!(x||!ae))if(!oe)ce();else{let t=e.target;if(Vz.has(t))return;let n=setTimeout(()=>{Vz.delete(t),ce()},oe);Vz.set(t,n)}},pe=e=>{if(x||!ae||!oe)return;let t=e.target,n=Vz.get(t);n&&(clearTimeout(n),Vz.delete(t))},me=se?hR(s,{})??jle:Bz,he=se?Bz:hR(c,{})??Bz,ge=[C,me.className,he.className].filter(Boolean).join(` `),_e=(S||me.style||he.style)&&{...S,...me.style,...he.style};return{...te,...me,...he,href:re?.href,ref:o,onClick:Hz([w,le]),onFocus:Hz([T,ue]),onMouseEnter:Hz([E,fe]),onMouseLeave:Hz([D,pe]),onTouchStart:Hz([O,de]),disabled:!!x,target:b,..._e&&{style:_e},...ge&&{className:ge},...x&&Mle,...se&&Nle,...r&&Ple}}var Bz={},jle={className:`active`},Mle={role:`link`,"aria-disabled":!0},Nle={"data-status":`active`,"aria-current":`page`},Ple={"data-transitioning":`transitioning`},Vz=new WeakMap,Fle={rootMargin:`100px`},Hz=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}},Uz=g.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,ref:a,...o}=Ale(r,t),s=typeof r.children==`function`?r.children({isActive:o[`data-status`]===`active`}):r.children;return n===void 0&&delete o.disabled,g.createElement(n||`a`,{...o,ref:a},s)});function Ile(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Lle=class extends xz{constructor(e){super(e),this.useMatch=e=>Mz({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Mz({...e,from:this.id,select:t=>e?.select?e.select(t.context):t.context}),this.useSearch=e=>Iz({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Fz({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Pz({...e,from:this.id}),this.useLoaderData=e=>Nz({...e,from:this.id}),this.useNavigate=()=>zz({from:this.fullPath}),this.Link=g.forwardRef((e,t)=>(0,_.jsx)(Uz,{ref:t,from:this.fullPath,...e})),this.$$typeof=Symbol.for(`react.memo`)}};function Rle(e){return new Lle(e)}function zle(){return e=>Vle(e)}var Ble=class extends vle{constructor(e){super(e),this.useMatch=e=>Mz({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Mz({...e,from:this.id,select:t=>e?.select?e.select(t.context):t.context}),this.useSearch=e=>Iz({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Fz({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Pz({...e,from:this.id}),this.useLoaderData=e=>Nz({...e,from:this.id}),this.useNavigate=()=>zz({from:this.fullPath}),this.Link=g.forwardRef((e,t)=>(0,_.jsx)(Uz,{ref:t,from:this.fullPath,...e})),this.$$typeof=Symbol.for(`react.memo`)}};function Vle(e){return new Ble(e)}function Wz(e){return typeof e==`object`?new Gz(e,{silent:!0}).createRoute(e):new Gz(e,{silent:!0}).createRoute}var Gz=class{constructor(e,t){this.path=e,this.createRoute=e=>{wz(this.silent,`FileRoute is deprecated and will be removed in the next major version. Use the createFileRoute(path)(options) function instead.`);let t=Rle(e);return t.isRoot=!1,t},this.silent=t?.silent}},Kz=class{constructor(e){this.useMatch=e=>Mz({select:e?.select,from:this.options.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Mz({from:this.options.id,select:t=>e?.select?e.select(t.context):t.context}),this.useSearch=e=>Iz({select:e?.select,structuralSharing:e?.structuralSharing,from:this.options.id}),this.useParams=e=>Fz({select:e?.select,structuralSharing:e?.structuralSharing,from:this.options.id}),this.useLoaderDeps=e=>Pz({...e,from:this.options.id}),this.useLoaderData=e=>Nz({...e,from:this.options.id}),this.useNavigate=()=>zz({from:kz().routesById[this.options.id].fullPath}),this.options=e,this.$$typeof=Symbol.for(`react.memo`)}};function qz(e){return typeof e==`object`?new Kz(e):t=>new Kz({id:e,...t})}function Hle(){let e=kz(),t=g.useRef({router:e,mounted:!1}),[n,r]=g.useState(!1),{hasPendingMatches:i,isLoading:a}=Az({select:e=>({isLoading:e.isLoading,hasPendingMatches:e.matches.some(e=>e.status===`pending`)}),structuralSharing:!0}),o=Rz(a),s=a||n||i,c=Rz(s),l=a||i,u=Rz(l);return e.startTransition=e=>{r(!0),g.startTransition(()=>{e(),r(!1)})},g.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return VR(e.latestLocation.publicHref)!==VR(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),Lz(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),Lz(()=>{o&&!a&&e.emit({type:`onLoad`,...vz(e.state)})},[o,e,a]),Lz(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...vz(e.state)})},[l,u,e]),Lz(()=>{if(c&&!s){let t=vz(e.state);e.emit({type:`onResolved`,...t}),e.__store.setState(e=>({...e,status:`idle`,resolvedLocation:e.location})),t.hrefChanged&&Xce(e)}},[s,c,e]),null}function Ule(e){let t=Az({select:e=>`not-found-${e.location.pathname}-${e.status}`});return(0,_.jsx)(Sz,{getResetKey:()=>t,onCatch:(t,n)=>{if(KR(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(KR(t))return e.fallback?.(t);throw t},children:e.children})}function Wle(){return(0,_.jsx)(`p`,{children:`Not Found`})}function Jz(e){return(0,_.jsx)(_.Fragment,{children:e.children})}function Yz(e,t,n){return t.options.notFoundComponent?(0,_.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,_.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,_.jsx)(Wle,{})}function Gle({children:e}){let t=kz();return t.isServer?(0,_.jsx)(`script`,{nonce:t.options.ssr?.nonce,dangerouslySetInnerHTML:{__html:e+`;document.currentScript.remove()`}}):null}function Kle(){let e=kz();if(!e.isScrollRestoring||!e.isServer||typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return null;let t=(e.options.getScrollRestorationKey||YR)(e.latestLocation),n=t===YR(e.latestLocation)?void 0:t,r={storageKey:qR,shouldScrollRestoration:!0};return n&&(r.key=n),(0,_.jsx)(Gle,{children:`(${ZR.toString()})(${JSON.stringify(r)})`})}var Xz=g.memo(function({matchId:e}){let t=kz(),n=Az({select:t=>{let n=t.matches.find(t=>t.id===e);return DR(n,`Could not find match for matchId "${e}". Please file an issue!`),{routeId:n.routeId,ssr:n.ssr,_displayPending:n._displayPending}},structuralSharing:!0}),r=t.routesById[n.routeId],i=r.options.pendingComponent??t.options.defaultPendingComponent,a=i?(0,_.jsx)(i,{}):null,o=r.options.errorComponent??t.options.defaultErrorComponent,s=r.options.onCatch??t.options.defaultOnCatch,c=r.isRoot?r.options.notFoundComponent??t.options.notFoundRoute?.options.component:r.options.notFoundComponent,l=n.ssr===!1||n.ssr===`data-only`,u=(!r.isRoot||r.options.wrapInSuspense||l)&&(r.options.wrapInSuspense??i??(r.options.errorComponent?.preload||l))?g.Suspense:Jz,d=o?Sz:Jz,f=c?Ule:Jz,p=Az({select:e=>e.loadedAt}),m=Az({select:t=>{let n=t.matches.findIndex(t=>t.id===e);return t.matches[n-1]?.routeId}});return(0,_.jsxs)(r.isRoot?r.options.shellComponent??Jz:Jz,{children:[(0,_.jsx)(jz.Provider,{value:e,children:(0,_.jsx)(u,{fallback:a,children:(0,_.jsx)(d,{getResetKey:()=>p,errorComponent:o||Cz,onCatch:(t,n)=>{if(KR(t))throw t;wz(!1,`Error in route match: ${e}`),s?.(t,n)},children:(0,_.jsx)(f,{fallback:e=>{if(!c||e.routeId&&e.routeId!==n.routeId||!e.routeId&&!r.isRoot)throw e;return g.createElement(c,e)},children:l||n._displayPending?(0,_.jsx)(ble,{fallback:a,children:(0,_.jsx)(Zz,{matchId:e})}):(0,_.jsx)(Zz,{matchId:e})})})})}),m===`__root__`&&t.options.scrollRestoration?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(qle,{}),(0,_.jsx)(Kle,{})]}):null]})});function qle(){let e=kz(),t=g.useRef(void 0);return(0,_.jsx)(`script`,{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:`onRendered`,...vz(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}var Zz=g.memo(function({matchId:e}){let t=kz(),{match:n,key:r,routeId:i}=Az({select:n=>{let r=n.matches.find(t=>t.id===e),i=r.routeId,a=(t.routesById[i].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:i,loaderDeps:r.loaderDeps,params:r._strictParams,search:r._strictSearch});return{key:a?JSON.stringify(a):void 0,routeId:i,match:{id:r.id,status:r.status,error:r.error,invalid:r.invalid,_forcePending:r._forcePending,_displayPending:r._displayPending}}},structuralSharing:!0}),a=t.routesById[i],o=g.useMemo(()=>{let e=a.options.component??t.options.defaultComponent;return e?(0,_.jsx)(e,{},r):(0,_.jsx)(Qz,{})},[r,a.options.component,t.options.defaultComponent]);if(n._displayPending)throw t.getMatch(n.id)?._nonReactive.displayPendingPromise;if(n._forcePending)throw t.getMatch(n.id)?._nonReactive.minPendingPromise;if(n.status===`pending`){let e=a.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let r=t.getMatch(n.id);if(r&&!r._nonReactive.minPendingPromise&&!t.isServer){let t=SR();r._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),r._nonReactive.minPendingPromise=void 0},e)}}throw t.getMatch(n.id)?._nonReactive.loadPromise}if(n.status===`notFound`)return DR(KR(n.error),`Expected a notFound error`),Yz(t,a,n.error);if(n.status===`redirected`)throw DR(ez(n.error),`Expected a redirect error`),t.getMatch(n.id)?._nonReactive.loadPromise;if(n.status===`error`){if(t.isServer)return(0,_.jsx)((a.options.errorComponent??t.options.defaultErrorComponent)||Cz,{error:n.error,reset:void 0,info:{componentStack:``}});throw n.error}return o}),Qz=g.memo(function(){let e=kz(),t=g.useContext(jz),n=Az({select:e=>e.matches.find(e=>e.id===t)?.routeId}),r=e.routesById[n],i=Az({select:e=>{let n=e.matches.find(e=>e.id===t);return DR(n,`Could not find parent match for matchId "${t}"`),n.globalNotFound}}),a=Az({select:e=>{let n=e.matches;return n[n.findIndex(e=>e.id===t)+1]?.id}}),o=e.options.defaultPendingComponent?(0,_.jsx)(e.options.defaultPendingComponent,{}):null;if(i)return Yz(e,r,void 0);if(!a)return null;let s=(0,_.jsx)(Xz,{matchId:a});return n===`__root__`?(0,_.jsx)(g.Suspense,{fallback:o,children:s}):s});function Jle(){let e=kz(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,_.jsx)(t,{}):null,r=(0,_.jsxs)(e.isServer||typeof document<`u`&&e.ssr?Jz:g.Suspense,{fallback:n,children:[!e.isServer&&(0,_.jsx)(Hle,{}),(0,_.jsx)(Yle,{})]});return e.options.InnerWrap?(0,_.jsx)(e.options.InnerWrap,{children:r}):r}function Yle(){let e=kz(),t=Az({select:e=>e.matches[0]?.id}),n=Az({select:e=>e.loadedAt}),r=t?(0,_.jsx)(Xz,{matchId:t}):null;return(0,_.jsx)(jz.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,_.jsx)(Sz,{getResetKey:()=>n,errorComponent:Cz,onCatch:e=>{wz(!1,`The following error wasn't caught by any route! At the very least, consider setting an 'errorComponent' in your RootRoute!`),wz(!1,e.message||e.toString())},children:r})})}function Xle(e){return Az({select:t=>{let n=t.matches;return e?.select?e.select(n):n},structuralSharing:e?.structuralSharing})}var Zle=e=>new Qle(e),Qle=class extends fle{constructor(e){super(e)}};typeof globalThis<`u`?(globalThis.createFileRoute=Wz,globalThis.createLazyFileRoute=qz):typeof window<`u`&&(window.createFileRoute=Wz,window.createLazyFileRoute=qz);function $le({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,_.jsx)(Oz().Provider,{value:e,children:t});return e.options.Wrap?(0,_.jsx)(e.options.Wrap,{children:r}):r}function eue({router:e,...t}){return(0,_.jsx)($le,{router:e,...t,children:(0,_.jsx)(Jle,{})})}function tue(e){return Az({select:t=>e?.select?e.select(t.location):t.location})}s(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}}))();var $z=`Switch`,[nue,rue]=y($z),[iue,aue]=nue($z),eB=g.forwardRef((e,t)=>{let{__scopeSwitch:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c=`on`,onCheckedChange:l,form:u,...d}=e,[f,p]=g.useState(null),m=C(t,e=>p(e)),h=g.useRef(!1),v=f?u||!!f.closest(`form`):!0,[y,b]=F({prop:i,defaultProp:a??!1,onChange:l,caller:$z});return(0,_.jsxs)(iue,{scope:n,checked:y,disabled:s,children:[(0,_.jsx)(z.button,{type:`button`,role:`switch`,"aria-checked":y,"aria-required":o,"data-state":iB(y),"data-disabled":s?``:void 0,disabled:s,value:c,...d,ref:m,onClick:M(e.onClick,e=>{b(e=>!e),v&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())})}),v&&(0,_.jsx)(rB,{control:f,bubbles:!h.current,name:r,value:c,checked:y,required:o,disabled:s,form:u,style:{transform:`translateX(-100%)`}})]})});eB.displayName=$z;var tB=`SwitchThumb`,nB=g.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,i=aue(tB,n);return(0,_.jsx)(z.span,{"data-state":iB(i.checked),"data-disabled":i.disabled?``:void 0,...r,ref:t})});nB.displayName=tB;var oue=`SwitchBubbleInput`,rB=g.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...i},a)=>{let o=g.useRef(null),s=C(o,a),c=Dd(n),l=Od(t);return g.useEffect(()=>{let e=o.current;if(!e)return;let t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(c!==n&&i){let t=new Event(`click`,{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[c,n,r]),(0,_.jsx)(`input`,{type:`checkbox`,"aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:s,style:{...i.style,...l,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});rB.displayName=oue;function iB(e){return e?`checked`:`unchecked`}var sue=eB,cue=nB,aB=`Tabs`,[lue,uue]=y(aB,[r_]),oB=r_(),[due,sB]=lue(aB),cB=g.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=`automatic`,...l}=e,u=Te(s),[d,f]=F({prop:r,onChange:i,defaultProp:a??``,caller:aB});return(0,_.jsx)(due,{scope:n,baseId:ce(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c,children:(0,_.jsx)(z.div,{dir:u,"data-orientation":o,...l,ref:t})})});cB.displayName=aB;var lB=`TabsList`,uB=g.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=sB(lB,n),o=oB(n);return(0,_.jsx)(c_,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,_.jsx)(z.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})});uB.displayName=lB;var dB=`TabsTrigger`,fB=g.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=sB(dB,n),s=oB(n),c=hB(o.baseId,r),l=gB(o.baseId,r),u=r===o.value;return(0,_.jsx)(l_,{asChild:!0,...s,focusable:!i,active:u,children:(0,_.jsx)(z.button,{type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:M(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:M(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:M(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})})});fB.displayName=dB;var pB=`TabsContent`,mB=g.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=sB(pB,n),c=hB(s.baseId,r),l=gB(s.baseId,r),u=r===s.value,d=g.useRef(u);return g.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,_.jsx)(V,{present:i||u,children:({present:n})=>(0,_.jsx)(z.div,{"data-state":u?`active`:`inactive`,"data-orientation":s.orientation,role:`tabpanel`,"aria-labelledby":c,hidden:!n,id:l,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:d.current?`0s`:void 0},children:n&&a})})});mB.displayName=pB;function hB(e,t){return`${e}-trigger-${t}`}function gB(e,t){return`${e}-content-${t}`}var fue=cB,_B=uB,vB=fB,yB=mB,bB=`ToastProvider`,[xB,pue,mue]=j(`Toast`),[SB,hue]=y(`Toast`,[mue]),[gue,CB]=SB(bB),_ue=e=>{let{__scopeToast:t,label:n=`Notification`,duration:r=5e3,swipeDirection:i=`right`,swipeThreshold:a=50,children:o}=e,[s,c]=g.useState(null),[l,u]=g.useState(0),d=g.useRef(!1),f=g.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${bB}\`. Expected non-empty \`string\`.`),(0,_.jsx)(xB.Provider,{scope:t,children:(0,_.jsx)(gue,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:a,toastCount:l,viewport:s,onViewportChange:c,onToastAdd:g.useCallback(()=>u(e=>e+1),[]),onToastRemove:g.useCallback(()=>u(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:o})})};_ue.displayName=bB;var wB=`ToastViewport`,vue=[`F8`],TB=`toast.viewportPause`,EB=`toast.viewportResume`,DB=g.forwardRef((e,t)=>{let{__scopeToast:n,hotkey:r=vue,label:i=`Notifications ({hotkey})`,...a}=e,o=CB(wB,n),s=pue(n),c=g.useRef(null),l=g.useRef(null),u=g.useRef(null),d=g.useRef(null),f=C(t,d,o.onViewportChange),p=r.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),m=o.toastCount>0;g.useEffect(()=>{let e=e=>{r.length!==0&&r.every(t=>e[t]||e.code===t)&&d.current?.focus()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[r]),g.useEffect(()=>{let e=c.current,t=d.current;if(m&&e&&t){let n=()=>{if(!o.isClosePausedRef.current){let e=new CustomEvent(TB);t.dispatchEvent(e),o.isClosePausedRef.current=!0}},r=()=>{if(o.isClosePausedRef.current){let e=new CustomEvent(EB);t.dispatchEvent(e),o.isClosePausedRef.current=!1}},i=t=>{e.contains(t.relatedTarget)||r()},a=()=>{e.contains(document.activeElement)||r()};return e.addEventListener(`focusin`,n),e.addEventListener(`focusout`,i),e.addEventListener(`pointermove`,n),e.addEventListener(`pointerleave`,a),window.addEventListener(`blur`,n),window.addEventListener(`focus`,r),()=>{e.removeEventListener(`focusin`,n),e.removeEventListener(`focusout`,i),e.removeEventListener(`pointermove`,n),e.removeEventListener(`pointerleave`,a),window.removeEventListener(`blur`,n),window.removeEventListener(`focus`,r)}}},[m,o.isClosePausedRef]);let h=g.useCallback(({tabbingDirection:e})=>{let t=s().map(t=>{let n=t.ref.current,r=[n,...jue(n)];return e===`forwards`?r:r.reverse()});return(e===`forwards`?t.reverse():t).flat()},[s]);return g.useEffect(()=>{let e=d.current;if(e){let t=t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if(t.key===`Tab`&&!n){let n=document.activeElement,r=t.shiftKey;if(t.target===e&&r){l.current?.focus();return}let i=h({tabbingDirection:r?`backwards`:`forwards`}),a=i.findIndex(e=>e===n);HB(i.slice(a+1))?t.preventDefault():r?l.current?.focus():u.current?.focus()}};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)}},[s,h]),(0,_.jsxs)(Yn,{ref:c,role:`region`,"aria-label":i.replace(`{hotkey}`,p),tabIndex:-1,style:{pointerEvents:m?void 0:`none`},children:[m&&(0,_.jsx)(kB,{ref:l,onFocusFromOutsideViewport:()=>{HB(h({tabbingDirection:`forwards`}))}}),(0,_.jsx)(xB.Slot,{scope:n,children:(0,_.jsx)(z.ol,{tabIndex:-1,...a,ref:f})}),m&&(0,_.jsx)(kB,{ref:u,onFocusFromOutsideViewport:()=>{HB(h({tabbingDirection:`backwards`}))}})]})});DB.displayName=wB;var OB=`ToastFocusProxy`,kB=g.forwardRef((e,t)=>{let{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,a=CB(OB,n);return(0,_.jsx)($x,{tabIndex:0,...i,ref:t,style:{position:`fixed`},onFocus:e=>{let t=e.relatedTarget;a.viewport?.contains(t)||r()}})});kB.displayName=OB;var AB=`Toast`,yue=`toast.swipeStart`,bue=`toast.swipeMove`,xue=`toast.swipeCancel`,Sue=`toast.swipeEnd`,jB=g.forwardRef((e,t)=>{let{forceMount:n,open:r,defaultOpen:i,onOpenChange:a,...o}=e,[s,c]=F({prop:r,defaultProp:i??!0,onChange:a,caller:AB});return(0,_.jsx)(V,{present:n||s,children:(0,_.jsx)(Tue,{open:s,...o,ref:t,onClose:()=>c(!1),onPause:Nn(e.onPause),onResume:Nn(e.onResume),onSwipeStart:M(e.onSwipeStart,e=>{e.currentTarget.setAttribute(`data-swipe`,`start`)}),onSwipeMove:M(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`move`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-y`,`${n}px`)}),onSwipeCancel:M(e.onSwipeCancel,e=>{e.currentTarget.setAttribute(`data-swipe`,`cancel`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-y`)}),onSwipeEnd:M(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`end`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-y`,`${n}px`),c(!1)})})})});jB.displayName=AB;var[Cue,wue]=SB(AB,{onClose(){}}),Tue=g.forwardRef((e,t)=>{let{__scopeToast:n,type:r=`foreground`,duration:i,open:a,onClose:o,onEscapeKeyDown:s,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:p,...m}=e,h=CB(AB,n),[v,y]=g.useState(null),b=C(t,e=>y(e)),x=g.useRef(null),S=g.useRef(null),w=i||h.duration,T=g.useRef(0),E=g.useRef(w),D=g.useRef(0),{onToastAdd:O,onToastRemove:k}=h,A=Nn(()=>{v?.contains(document.activeElement)&&h.viewport?.focus(),o()}),j=g.useCallback(e=>{!e||e===1/0||(window.clearTimeout(D.current),T.current=new Date().getTime(),D.current=window.setTimeout(A,e))},[A]);g.useEffect(()=>{let e=h.viewport;if(e){let t=()=>{j(E.current),l?.()},n=()=>{let e=new Date().getTime()-T.current;E.current-=e,window.clearTimeout(D.current),c?.()};return e.addEventListener(TB,n),e.addEventListener(EB,t),()=>{e.removeEventListener(TB,n),e.removeEventListener(EB,t)}}},[h.viewport,w,c,l,j]),g.useEffect(()=>{a&&!h.isClosePausedRef.current&&j(w)},[a,w,h.isClosePausedRef,j]),g.useEffect(()=>(O(),()=>k()),[O,k]);let N=g.useMemo(()=>v?zB(v):null,[v]);return h.viewport?(0,_.jsxs)(_.Fragment,{children:[N&&(0,_.jsx)(Eue,{__scopeToast:n,role:`status`,"aria-live":r===`foreground`?`assertive`:`polite`,children:N}),(0,_.jsx)(Cue,{scope:n,onClose:A,children:R.createPortal((0,_.jsx)(xB.ItemSlot,{scope:n,children:(0,_.jsx)(Jn,{asChild:!0,onEscapeKeyDown:M(s,()=>{h.isFocusedToastEscapeKeyDownRef.current||A(),h.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,_.jsx)(z.li,{tabIndex:0,"data-state":a?`open`:`closed`,"data-swipe-direction":h.swipeDirection,...m,ref:b,style:{userSelect:`none`,touchAction:`none`,...e.style},onKeyDown:M(e.onKeyDown,e=>{e.key===`Escape`&&(s?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,A()))}),onPointerDown:M(e.onPointerDown,e=>{e.button===0&&(x.current={x:e.clientX,y:e.clientY})}),onPointerMove:M(e.onPointerMove,e=>{if(!x.current)return;let t=e.clientX-x.current.x,n=e.clientY-x.current.y,r=!!S.current,i=[`left`,`right`].includes(h.swipeDirection),a=[`left`,`up`].includes(h.swipeDirection)?Math.min:Math.max,o=i?a(0,t):0,s=i?0:a(0,n),c=e.pointerType===`touch`?10:2,l={x:o,y:s},f={originalEvent:e,delta:l};r?(S.current=l,BB(bue,d,f,{discrete:!1})):VB(l,h.swipeDirection,c)?(S.current=l,BB(yue,u,f,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(x.current=null)}),onPointerUp:M(e.onPointerUp,e=>{let t=S.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),S.current=null,x.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};VB(t,h.swipeDirection,h.swipeThreshold)?BB(Sue,p,r,{discrete:!0}):BB(xue,f,r,{discrete:!0}),n.addEventListener(`click`,e=>e.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null}),Eue=e=>{let{__scopeToast:t,children:n,...r}=e,i=CB(AB,t),[a,o]=g.useState(!1),[s,c]=g.useState(!1);return kue(()=>o(!0)),g.useEffect(()=>{let e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),s?null:(0,_.jsx)(pr,{asChild:!0,children:(0,_.jsx)($x,{...r,children:a&&(0,_.jsxs)(_.Fragment,{children:[i.label,` `,n]})})})},Due=`ToastTitle`,MB=g.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,_.jsx)(z.div,{...r,ref:t})});MB.displayName=Due;var Oue=`ToastDescription`,NB=g.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,_.jsx)(z.div,{...r,ref:t})});NB.displayName=Oue;var PB=`ToastAction`,FB=g.forwardRef((e,t)=>{let{altText:n,...r}=e;return n.trim()?(0,_.jsx)(RB,{altText:n,asChild:!0,children:(0,_.jsx)(LB,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${PB}\`. Expected non-empty \`string\`.`),null)});FB.displayName=PB;var IB=`ToastClose`,LB=g.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e,i=wue(IB,n);return(0,_.jsx)(RB,{asChild:!0,children:(0,_.jsx)(z.button,{type:`button`,...r,ref:t,onClick:M(e.onClick,i.onClose)})})});LB.displayName=IB;var RB=g.forwardRef((e,t)=>{let{__scopeToast:n,altText:r,...i}=e;return(0,_.jsx)(z.div,{"data-radix-toast-announce-exclude":``,"data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function zB(e){let t=[];return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),Aue(e)){let n=e.ariaHidden||e.hidden||e.style.display===`none`,r=e.dataset.radixToastAnnounceExclude===``;if(!n)if(r){let n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...zB(e))}}),t}function BB(e,t,n,{discrete:r}){let i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?B(i,a):i.dispatchEvent(a)}var VB=(e,t,n=0)=>{let r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t===`left`||t===`right`?a&&r>n:!a&&i>n};function kue(e=()=>{}){let t=Nn(e);N(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}function Aue(e){return e.nodeType===e.ELEMENT_NODE}function jue(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 HB(e){let t=document.activeElement;return e.some(e=>e===t?!0:(e.focus(),document.activeElement!==t))}var UB=DB,WB=jB,GB=MB,KB=NB,qB=FB,JB=LB,YB=`Toggle`,XB=g.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:i,...a}=e,[o,s]=F({prop:n,onChange:i,defaultProp:r??!1,caller:YB});return(0,_.jsx)(z.button,{type:`button`,"aria-pressed":o,"data-state":o?`on`:`off`,"data-disabled":e.disabled?``:void 0,...a,ref:t,onClick:M(e.onClick,()=>{e.disabled||s(!o)})})});XB.displayName=YB;var ZB=XB,QB=`ToggleGroup`,[$B,Mue]=y(QB,[r_]),eV=r_(),tV=g.forwardRef((e,t)=>{let{type:n,...r}=e;if(n===`single`)return(0,_.jsx)(Nue,{...r,ref:t});if(n===`multiple`)return(0,_.jsx)(Pue,{...r,ref:t});throw Error(`Missing prop \`type\` expected on \`${QB}\``)});tV.displayName=QB;var[nV,rV]=$B(QB),Nue=g.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=F({prop:n,defaultProp:r??``,onChange:i,caller:QB});return(0,_.jsx)(nV,{scope:e.__scopeToggleGroup,type:`single`,value:g.useMemo(()=>o?[o]:[],[o]),onItemActivate:s,onItemDeactivate:g.useCallback(()=>s(``),[s]),children:(0,_.jsx)(iV,{...a,ref:t})})}),Pue=g.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=F({prop:n,defaultProp:r??[],onChange:i,caller:QB}),c=g.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=g.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,_.jsx)(nV,{scope:e.__scopeToggleGroup,type:`multiple`,value:o,onItemActivate:c,onItemDeactivate:l,children:(0,_.jsx)(iV,{...a,ref:t})})});tV.displayName=QB;var[Fue,Iue]=$B(QB),iV=g.forwardRef((e,t)=>{let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:a,dir:o,loop:s=!0,...c}=e,l=eV(n),u=Te(o),d={role:`group`,dir:u,...c};return(0,_.jsx)(Fue,{scope:n,rovingFocus:i,disabled:r,children:i?(0,_.jsx)(c_,{asChild:!0,...l,orientation:a,dir:u,loop:s,children:(0,_.jsx)(z.div,{...d,ref:t})}):(0,_.jsx)(z.div,{...d,ref:t})})}),aV=`ToggleGroupItem`,oV=g.forwardRef((e,t)=>{let n=rV(aV,e.__scopeToggleGroup),r=Iue(aV,e.__scopeToggleGroup),i=eV(e.__scopeToggleGroup),a=n.value.includes(e.value),o=r.disabled||e.disabled,s={...e,pressed:a,disabled:o},c=g.useRef(null);return r.rovingFocus?(0,_.jsx)(l_,{asChild:!0,...i,focusable:!o,active:a,ref:c,children:(0,_.jsx)(sV,{...s,ref:t})}):(0,_.jsx)(sV,{...s,ref:t})});oV.displayName=aV;var sV=g.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...i}=e,a=rV(aV,n),o={role:`radio`,"aria-checked":e.pressed,"aria-pressed":void 0};return(0,_.jsx)(XB,{...a.type===`single`?o:void 0,...i,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})}),cV=tV,lV=oV,uV=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`m6 9l6 6l6-6`})});function q(...e){return kn(ot(e))}function dV(e){return e===void 0?void 0:Array.isArray(e)?e:[e]}var Lue=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(tt,{ref:n,className:q(`border-b`,e),...t}));Lue.displayName=`AccordionItem`;var Rue=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsx)(nt,{className:`flex`,children:(0,_.jsxs)(rt,{ref:r,className:q(`flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180`,e),...n,children:[t,(0,_.jsx)(uV,{className:`h-4 w-4 shrink-0 transition-transform duration-200`})]})}));Rue.displayName=rt.displayName;var zue=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsx)(it,{ref:r,className:`overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`,...n,children:(0,_.jsx)(`div`,{className:q(`pb-4 pt-0`,e),children:t})}));zue.displayName=it.displayName;var Bue=Mn(`relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground`,{variants:{variant:{default:`bg-background text-foreground`,destructive:`border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive`}},defaultVariants:{variant:`default`}}),Vue=g.forwardRef(({className:e,variant:t,...n},r)=>(0,_.jsx)(`div`,{ref:r,role:`alert`,className:q(Bue({variant:t}),e),...n}));Vue.displayName=`Alert`;var Hue=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`h5`,{ref:n,className:q(`mb-1 font-medium leading-none tracking-tight`,e),...t}));Hue.displayName=`AlertTitle`;var Uue=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`div`,{ref:n,className:q(`text-sm [&_p]:leading-relaxed`,e),...t}));Uue.displayName=`AlertDescription`;var Wue=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M21 12a9 9 0 1 1-6.219-8.56`})}),fV=Mn(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-button text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60`,outline:`border bg-background text-foreground hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`,red:`bg-red-500 text-white hover:bg-red-600`,yellow:`bg-yellow-500 text-white hover:bg-yellow-600`,green:`bg-green-500 text-white hover:bg-green-600`,blue:`bg-blue-500 text-white hover:bg-blue-600`,cyan:`bg-cyan-500 text-white hover:bg-cyan-600`,purple:`bg-purple-500 text-white hover:bg-purple-600`,pink:`bg-pink-500 text-white hover:bg-pink-600`,orange:`bg-orange-500 text-white hover:bg-orange-600`},size:{xs:`h-6 px-2 py-1 text-xs [&_svg]:size-3 has-[>svg]:px-1.5 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square`,sm:`h-7 px-3 py-1.5 text-xs [&_svg]:size-3.5 has-[>svg]:px-2 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square`,default:`h-9 px-4 py-2 [&_svg]:size-4 has-[>svg]:px-3 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square`,lg:`h-11 px-6 py-3 text-base [&_svg]:size-5 has-[>svg]:px-4 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square`,xl:`h-13 px-8 py-4 text-lg [&_svg]:size-6 has-[>svg]:px-6 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square`}},defaultVariants:{variant:`default`,size:`default`}}),J=g.forwardRef(({className:e,variant:t,size:n,icon:r,children:i,loading:a,disabled:o,asChild:s=!1,...c},l)=>{let u=s?oo:`button`,d=g.Children.count(i)===0,f=a?(0,_.jsx)(Wue,{className:`animate-spin`}):r;return(0,_.jsx)(u,{"data-slot":`button`,className:q(fV({variant:t,size:n,className:e})),ref:l,disabled:o||a,...c,children:d?f:f?(0,_.jsxs)(`span`,{className:`contents`,children:[f,i]}):i})});J.displayName=`Button`;var Gue=Ja,pV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Ya,{className:q(`fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t,ref:n}));pV.displayName=Ya.displayName;var Kue=g.forwardRef(({className:e,...t},n)=>(0,_.jsxs)(Gue,{children:[(0,_.jsx)(pV,{}),(0,_.jsx)(Xa,{ref:n,className:q(`fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg`,e),...t})]}));Kue.displayName=Xa.displayName;var que=({className:e,...t})=>(0,_.jsx)(`div`,{className:q(`flex flex-col space-y-2 text-center sm:text-left`,e),...t});que.displayName=`AlertDialogHeader`;var Jue=({className:e,...t})=>(0,_.jsx)(`div`,{className:q(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});Jue.displayName=`AlertDialogFooter`;var Yue=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)($a,{ref:n,className:q(`text-lg font-semibold`,e),...t}));Yue.displayName=$a.displayName;var Xue=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(eo,{ref:n,className:q(`text-sm text-muted-foreground`,e),...t}));Xue.displayName=eo.displayName;var Zue=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Za,{ref:n,className:q(fV(),e),...t}));Zue.displayName=Za.displayName;var Que=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Qa,{ref:n,className:q(fV({variant:`outline`}),`mt-2 sm:mt-0`,e),...t}));Que.displayName=Qa.displayName;var $ue=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Fo,{ref:n,className:q(`relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full`,e),...t}));$ue.displayName=Fo.displayName;var ede=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Io,{ref:n,className:q(`aspect-square h-full w-full`,e),...t}));ede.displayName=Io.displayName;var tde=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Lo,{ref:n,className:q(`flex h-full w-full items-center justify-center rounded-full bg-muted`,e),...t}));tde.displayName=Lo.displayName;var nde=Mn(`inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90`,secondary:`border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90`,destructive:`border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60`,outline:`text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground`}},defaultVariants:{variant:`default`}});function rde({className:e,variant:t,asChild:n=!1,...r}){return(0,_.jsx)(n?oo:`span`,{"data-slot":`badge`,className:q(nde({variant:t}),e),...r})}var mV=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`m9 18l6-6l-6-6`})}),ide=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,children:[(0,_.jsx)(`circle`,{cx:12,cy:12,r:1}),(0,_.jsx)(`circle`,{cx:19,cy:12,r:1}),(0,_.jsx)(`circle`,{cx:5,cy:12,r:1})]})}),ade=g.forwardRef(({...e},t)=>(0,_.jsx)(`nav`,{ref:t,"aria-label":`breadcrumb`,...e}));ade.displayName=`Breadcrumb`;var ode=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`ol`,{ref:n,className:q(`flex flex-wrap items-center gap-1.5 overflow-wrap-anywhere text-sm text-muted-foreground sm:gap-2.5`,e),...t}));ode.displayName=`BreadcrumbList`;var sde=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`li`,{ref:n,className:q(`inline-flex items-center gap-1.5`,e),...t}));sde.displayName=`BreadcrumbItem`;var cde=g.forwardRef(({asChild:e,className:t,...n},r)=>(0,_.jsx)(e?oo:`a`,{ref:r,className:q(`transition-colors hover:text-foreground`,t),...n}));cde.displayName=`BreadcrumbLink`;var lde=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`span`,{ref:n,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:q(`font-normal text-foreground`,e),...t}));lde.displayName=`BreadcrumbPage`;var ude=({children:e,className:t,...n})=>(0,_.jsx)(`li`,{role:`presentation`,"aria-hidden":`true`,className:q(`[&>svg]:w-3.5 [&>svg]:h-3.5`,t),...n,children:e??(0,_.jsx)(mV,{})});ude.displayName=`BreadcrumbSeparator`;var dde=({className:e,...t})=>(0,_.jsxs)(`span`,{role:`presentation`,"aria-hidden":`true`,className:q(`flex h-9 w-9 items-center justify-center`,e),...t,children:[(0,_.jsx)(ide,{className:`h-4 w-4`}),(0,_.jsx)(`span`,{className:`sr-only`,children:`More`})]});dde.displayName=`BreadcrumbElipssis`;var fde=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`m15 18l-6-6l6-6`})});function pde({className:e,classNames:t,showOutsideDays:n=!0,...r}){return(0,_.jsx)(xu,{showOutsideDays:n,className:q(`p-3`,e),classNames:{months:`flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0`,month:`space-y-4`,caption:`flex justify-center pt-1 relative items-center w-full`,caption_label:`text-sm font-medium`,nav:`space-x-1 flex items-center`,nav_button:q(fV({variant:`outline`}),`h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100`),nav_button_previous:`absolute left-1`,nav_button_next:`absolute right-1`,table:`w-full border-collapse space-y-1`,head_row:`flex`,head_cell:`text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]`,row:`flex w-full mt-2`,cell:q(`h-9 w-9 text-center text-sm p-0 relative focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent/10`,r.mode===`range`?`[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md`:`[&:has([aria-selected])]:rounded-md`),day:q(fV({variant:`ghost`}),`h-9 w-9 p-0 font-normal aria-selected:opacity-100`),day_range_start:`day-range-start`,day_range_end:`day-range-end`,day_selected:`bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground`,day_today:`bg-accent/10 text-foreground`,day_outside:`day-outside text-muted-foreground opacity-50 aria-selected:bg-transparent aria-selected:opacity-100 aria-selected:text-foreground`,day_disabled:`text-muted-foreground opacity-50`,day_range_middle:`aria-selected:bg-transparent aria-selected:text-foreground`,day_hidden:`invisible`,...t},components:{IconLeft:()=>(0,_.jsx)(fde,{className:`h-4 w-4`}),IconRight:()=>(0,_.jsx)(mV,{className:`h-4 w-4`})},...r})}var mde=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`m12 19l-7-7l7-7m7 7H5`})}),hde=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M5 12h14m-7-7l7 7l-7 7`})}),hV=g.createContext(null);function gV(){let e=g.useContext(hV);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}var gde=g.forwardRef(({orientation:e=`horizontal`,opts:t,setApi:n,plugins:r,className:i,children:a,...o},s)=>{let[c,l]=Ed({...t,axis:e===`horizontal`?`x`:`y`},r),[u,d]=g.useState(!1),[f,p]=g.useState(!1),m=g.useCallback(e=>{e&&(d(e.canScrollPrev()),p(e.canScrollNext()))},[]),h=g.useCallback(()=>{l?.scrollPrev()},[l]),v=g.useCallback(()=>{l?.scrollNext()},[l]),y=g.useCallback(e=>{e.key===`ArrowLeft`?(e.preventDefault(),h()):e.key===`ArrowRight`&&(e.preventDefault(),v())},[h,v]);return g.useEffect(()=>{!l||!n||n(l)},[l,n]),g.useEffect(()=>{if(l)return m(l),l.on(`reInit`,m),l.on(`select`,m),()=>{l?.off(`select`,m)}},[l,m]),(0,_.jsx)(hV.Provider,{value:{carouselRef:c,api:l,opts:t,orientation:e||(t?.axis===`y`?`vertical`:`horizontal`),scrollPrev:h,scrollNext:v,canScrollPrev:u,canScrollNext:f},children:(0,_.jsx)(`div`,{ref:s,onKeyDownCapture:y,className:q(`relative`,i),role:`region`,"aria-roledescription":`carousel`,...o,children:a})})});gde.displayName=`Carousel`;var _de=g.forwardRef(({className:e,...t},n)=>{let{carouselRef:r,orientation:i}=gV();return(0,_.jsx)(`div`,{ref:r,className:`overflow-hidden`,children:(0,_.jsx)(`div`,{ref:n,className:q(`flex`,i===`horizontal`?`-ml-4`:`-mt-4 flex-col`,e),...t})})});_de.displayName=`CarouselContent`;var vde=g.forwardRef(({className:e,...t},n)=>{let{orientation:r}=gV();return(0,_.jsx)(`div`,{ref:n,role:`group`,"aria-roledescription":`slide`,className:q(`min-w-0 shrink-0 grow-0 basis-full`,r===`horizontal`?`pl-4`:`pt-4`,e),...t})});vde.displayName=`CarouselItem`;var yde=g.forwardRef(({className:e,variant:t=`outline`,size:n=`default`,...r},i)=>{let{orientation:a,scrollPrev:o,canScrollPrev:s}=gV();return(0,_.jsxs)(J,{ref:i,variant:t,size:n,className:q(`absolute h-8 w-8 rounded-full`,a===`horizontal`?`-left-12 top-1/2 -translate-y-1/2`:`-top-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!s,onClick:o,...r,children:[(0,_.jsx)(mde,{className:`h-4 w-4`}),(0,_.jsx)(`span`,{className:`sr-only`,children:`Previous slide`})]})});yde.displayName=`CarouselPrevious`;var bde=g.forwardRef(({className:e,variant:t=`outline`,size:n=`default`,...r},i)=>{let{orientation:a,scrollNext:o,canScrollNext:s}=gV();return(0,_.jsxs)(J,{ref:i,variant:t,size:n,className:q(`absolute h-8 w-8 rounded-full`,a===`horizontal`?`-right-12 top-1/2 -translate-y-1/2`:`-bottom-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!s,onClick:o,...r,children:[(0,_.jsx)(hde,{className:`h-4 w-4`}),(0,_.jsx)(`span`,{className:`sr-only`,children:`Next slide`})]})});bde.displayName=`CarouselNext`;var _V=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M20 6L9 17l-5-5`})}),vV=g.forwardRef(({className:e,name:t,checked:n,value:r,defaultChecked:i,onValueChange:a,onBlur:o,label:s,labelClassName:c,disabled:l,...u},d)=>{let f=r===void 0?n:r,p=g.useRef(null),m=g.useRef(null),h=g.useId();g.useImperativeHandle(d,()=>p.current);let v=e=>{a?.(e===`indeterminate`?!1:e)},y=e=>{e.preventDefault(),!l&&m.current?.click()},b=(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`input`,{type:`checkbox`,ref:p,name:t,defaultChecked:i===!0,onBlur:o,className:`sr-only`,tabIndex:-1,"aria-hidden":`true`}),(0,_.jsx)(Ld,{ref:m,"data-slot":`checkbox`,checked:f,defaultChecked:i,onCheckedChange:v,disabled:l,"aria-labelledby":s?h:void 0,className:q(`peer border border-muted-foreground/30 bg-input-background dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50`,e),...u,children:(0,_.jsx)(zd,{"data-slot":`checkbox-indicator`,className:`flex items-center justify-center text-current transition-none`,children:(0,_.jsx)(_V,{className:`size-3.5`})})})]});return s?(0,_.jsxs)(`div`,{className:`flex items-center gap-2`,children:[b,(0,_.jsx)(`label`,{id:h,className:q(`text-sm cursor-pointer select-none`,l&&`cursor-not-allowed opacity-50`,c),onClick:y,children:s})]}):b});vV.displayName=`Checkbox`;var xde=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`m7 15l5 5l5-5M7 9l5-5l5 5`})}),yV=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,children:[(0,_.jsx)(`circle`,{cx:12,cy:12,r:10}),(0,_.jsx)(`path`,{d:`m15 9l-6 6m0-6l6 6`})]})}),Sde={"rc.asyncSelect.loading":`Loading...`,"rc.asyncSelect.noOptions":`No options`,"rc.asyncSelect.noResults":`No results`,"rc.asyncSelect.selectPlaceholder":`Select...`,"rc.combobox.noResults":`No results`,"rc.combobox.selectPlaceholder":`Select...`,"rc.datePicker.pickDate":`Pick date`,"rc.datePicker.placeholder":`Pick date`,"rc.datePicker.selectDate":`Select date`,"rc.dateSelectorMultiple.addDate":`Add date`,"rc.dateSelectorMultiple.dateRange":`Range`,"rc.dateSelectorMultiple.placeholder":`Pick date`,"rc.dateSelectorMultiple.singleDate":`Single`,"rc.fileInput.browseFiles":`Browse files`,"rc.fileInput.dropZone":`Drag files here or click to upload`,"rc.fileInput.filePlaceholder":`File`,"rc.fileInput.imagePlaceholder":`Image`,"rc.fileInput.maxFilesExceeded":e=>`Maximum ${e} files allowed`,"rc.fileInput.pending":`Pending`,"rc.fileInput.remove":`Remove`,"rc.fileInput.uploadFailed":`Upload failed`,"rc.fileInput.uploading":`Uploading...`,"rc.monthPickerMultiple.addMonth":`Add month`,"rc.monthPickerMultiple.dateRange":`Range`,"rc.monthPickerMultiple.endDate":`End date`,"rc.monthPickerMultiple.placeholder":`Pick month`,"rc.monthPickerMultiple.singleDate":`Single`,"rc.monthPickerMultiple.startDate":`Start date`,"rc.multiSelect.clear":`Clear all`,"rc.multiSelect.close":`Close`,"rc.multiSelect.moreItems":e=>`+${e} more`,"rc.multiSelect.noOptions":`No options`,"rc.multiSelect.noOptionsSelected":`No options selected`,"rc.multiSelect.noResults":`No results`,"rc.multiSelect.optionsCount":e=>`${e} options`,"rc.multiSelect.selectAll":`Select all`,"rc.multiSelect.selectPlaceholder":`Select...`,"rc.pagination.next":`Next`,"rc.pagination.previous":`Previous`,"rc.pagination.showing":(e,t,n)=>`Showing ${e}-${t} of ${n}`,"rc.calendar.month.0":`January`,"rc.calendar.month.1":`February`,"rc.calendar.month.2":`March`,"rc.calendar.month.3":`April`,"rc.calendar.month.4":`May`,"rc.calendar.month.5":`June`,"rc.calendar.month.6":`July`,"rc.calendar.month.7":`August`,"rc.calendar.month.8":`September`,"rc.calendar.month.9":`October`,"rc.calendar.month.10":`November`,"rc.calendar.month.11":`December`,"rc.sonamuFilter.title":`Sonamu Filter`,"rc.sonamuFilter.apply":`Apply`,"rc.sonamuFilter.reset":`Reset`,"rc.sonamuFilter.addRule":`Add Rule`,"rc.sonamuFilter.noRulesYet":`No rules yet. Click "+ Add Rule" to start.`,"rc.sonamuFilter.selectField":`Select field`,"rc.sonamuFilter.selectOperator":`Operator`,"rc.sonamuFilter.selectOperatorFirst":`Select operator first`,"rc.sonamuFilter.enterValue":`Enter value`,"rc.sonamuFilter.enterNumber":`Enter number`,"rc.sonamuFilter.notSupported":`Not supported`,"rc.sonamuFilter.startDate":`Start date`,"rc.sonamuFilter.endDate":`End date`,"rc.sonamuFilter.appliedFilters":`🌲 Applied SonamuFilters`,"rc.common.cancel":`Cancel`,"rc.common.save":`Save`},Cde=e=>`[SonamuProvider] ${e} is not configured. Please provide ${e} configuration to SonamuProvider.`,wde=()=>()=>{throw Error(Cde(`uploader`))},Tde=()=>e=>Sde[e],bV=(0,g.createContext)({});function Ede({children:e,authOptions:t,...n}){let r=(0,g.useRef)(void 0);t&&!r.current&&(r.current=Lp(t));let i={uploader:n.uploader??wde(),auth:n.auth??r.current,SD:n.SD??Tde()};return(0,_.jsx)(bV.Provider,{value:i,children:e})}function xV(){return(0,g.useContext)(bV)}var Dde=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,children:[(0,_.jsx)(`path`,{d:`m21 21l-4.34-4.34`}),(0,_.jsx)(`circle`,{cx:11,cy:11,r:8})]})}),SV=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M18 6L6 18M6 6l12 12`})}),CV=ha,Ode=_a,wV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(va,{ref:n,className:q(`fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t}));wV.displayName=va.displayName;var TV=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsxs)(Ode,{children:[(0,_.jsx)(wV,{}),(0,_.jsxs)(ya,{ref:r,className:q(`fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg`,e),...n,children:[t,(0,_.jsxs)(Sa,{className:`absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground`,children:[(0,_.jsx)(SV,{className:`h-4 w-4`}),(0,_.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]}));TV.displayName=ya.displayName;var EV=({className:e,...t})=>(0,_.jsx)(`div`,{className:q(`flex flex-col space-y-1.5 text-center sm:text-left`,e),...t});EV.displayName=`DialogHeader`;var DV=({className:e,...t})=>(0,_.jsx)(`div`,{className:q(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});DV.displayName=`DialogFooter`;var OV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(ba,{ref:n,className:q(`text-lg font-semibold leading-none tracking-tight`,e),...t}));OV.displayName=ba.displayName;var kV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(xa,{ref:n,className:q(`text-sm text-muted-foreground`,e),...t}));kV.displayName=xa.displayName;var AV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(hm,{ref:n,className:q(`flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground`,e),...t}));AV.displayName=hm.displayName;var kde=({children:e,commandProps:t,...n})=>{let{className:r,...i}=t??{};return(0,_.jsx)(CV,{...n,children:(0,_.jsx)(TV,{className:`overflow-hidden p-0 shadow-lg`,children:(0,_.jsx)(AV,{className:q(`**:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 **:[[cmdk-group]]:px-2 **:[[cmdk-input-wrapper]_svg]:size-5 **:[[cmdk-input]]:h-12 **:[[cmdk-item]]:px-2 **:[[cmdk-item]]:py-3 **:[[cmdk-item]_svg]:size-5`,r),...i,children:e})})})},jV=g.forwardRef(({className:e,...t},n)=>(0,_.jsxs)(`div`,{className:`flex items-center border-b px-3`,"cmdk-input-wrapper":``,children:[(0,_.jsx)(Dde,{className:`mr-2 h-4 w-4 shrink-0 opacity-50`}),(0,_.jsx)(hm.Input,{ref:n,className:q(`flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50`,e),...t})]}));jV.displayName=hm.Input.displayName;var MV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(hm.List,{ref:n,className:q(`max-h-[300px] overflow-y-auto overflow-x-hidden`,e),...t}));MV.displayName=hm.List.displayName;var NV=g.forwardRef((e,t)=>(0,_.jsx)(hm.Empty,{ref:t,className:`py-6 text-center text-sm`,...e}));NV.displayName=hm.Empty.displayName;var PV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(hm.Group,{ref:n,className:q(`overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground`,e),...t}));PV.displayName=hm.Group.displayName;var Ade=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(hm.Separator,{ref:n,className:q(`-mx-1 h-px bg-border`,e),...t}));Ade.displayName=hm.Separator.displayName;var FV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(hm.Item,{ref:n,className:q(`relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 **:[svg]:pointer-events-none **:[svg]:size-4 **:[svg]:shrink-0`,e),...t}));FV.displayName=hm.Item.displayName;var jde=({className:e,...t})=>(0,_.jsx)(`span`,{className:q(`ml-auto text-xs tracking-widest text-muted-foreground`,e),...t});jde.displayName=`CommandShortcut`;function IV({...e}){return(0,_.jsx)(gte,{"data-slot":`popover`,...e})}function LV({...e}){return(0,_.jsx)(_te,{"data-slot":`popover-trigger`,...e})}function RV({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,_.jsx)(vte,{children:(0,_.jsx)(yte,{"data-slot":`popover-content`,align:t,sideOffset:n,className:q(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden`,e),...r})})}var Mde=g.forwardRef(({options:e,name:t,value:n,onValueChange:r,onBlur:i,placeholder:a,searchPlaceholder:o,emptyText:s,disabled:c=!1,className:l,clearable:u=!1},d)=>{let{SD:f}=xV(),[p,m]=g.useState(!1),h=g.useRef(null),v=a??f(`rc.combobox.selectPlaceholder`),y=o??f(`common.searchPlaceholder`),b=s??f(`rc.combobox.noResults`);g.useImperativeHandle(d,()=>h.current);let x=e=>{r?.((e===n?``:e)||void 0),m(!1)},S=e=>{e.preventDefault(),e.stopPropagation(),r?.(void 0),m(!1)},C=!!n;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`input`,{type:`hidden`,ref:h,name:t,value:n||``,onBlur:i}),(0,_.jsxs)(IV,{open:p,onOpenChange:m,children:[(0,_.jsx)(LV,{asChild:!0,children:(0,_.jsxs)(J,{variant:`outline`,role:`combobox`,"aria-expanded":p,disabled:c,className:q(`w-full justify-between`,l),children:[(0,_.jsx)(`span`,{className:`flex-1 truncate text-left`,children:n?e.find(e=>e.value===n)?.label:v}),(0,_.jsxs)(`div`,{className:`flex items-center gap-1 shrink-0 pl-2`,children:[u&&C&&(0,_.jsx)(`span`,{className:`flex items-center justify-center`,onMouseDown:e=>e.stopPropagation(),onClick:S,children:(0,_.jsx)(yV,{className:`h-4 w-4 cursor-pointer opacity-50 hover:opacity-100 transition-opacity`})}),(0,_.jsx)(xde,{className:`h-4 w-4 opacity-50`})]})]})}),(0,_.jsx)(RV,{className:`w-full p-0`,children:(0,_.jsxs)(AV,{children:[(0,_.jsx)(jV,{placeholder:y,className:`h-9`}),(0,_.jsxs)(MV,{children:[(0,_.jsx)(NV,{children:b}),(0,_.jsx)(PV,{children:e.map(e=>(0,_.jsxs)(FV,{value:e.value,onSelect:x,children:[e.label,(0,_.jsx)(_V,{className:q(`ml-auto`,n===e.value?`opacity-100`:`opacity-0`)})]},e.value))})]})]})})]})]})});Mde.displayName=`Combobox`;var Nde=Ug({open:!1,reactNode:null});function Pde({className:e}){let[t,n]=Kte(Nde),{open:r,reactNode:i,title:a,description:o,className:s,onControlledOpen:c,onControlledClose:l}=t,u=()=>{l&&l(),n({open:!1,reactNode:null})};return(0,g.useEffect)(()=>{r&&c&&c()},[r]),(0,_.jsx)(CV,{open:r,onOpenChange:e=>{e||u()},children:(0,_.jsxs)(TV,{className:q(`max-w-4xl`,s,e),children:[(0,_.jsxs)(EV,{children:[(0,_.jsx)(OV,{className:a?void 0:`sr-only`,children:a||`Modal`}),(0,_.jsx)(kV,{className:o?void 0:`sr-only`,children:o||`Modal content`})]}),i]})})}var zV=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`circle`,{cx:12,cy:12,r:10,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2})}),Fde=g.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,_.jsxs)(iy,{ref:i,className:q(`flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`,t&&`pl-8`,e),...r,children:[n,(0,_.jsx)(mV,{className:`ml-auto h-4 w-4`})]}));Fde.displayName=iy.displayName;var Ide=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(ay,{ref:n,className:q(`z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]`,e),...t}));Ide.displayName=ay.displayName;var Lde=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Ine,{children:(0,_.jsx)(Zv,{ref:n,className:q(`z-50 max-h-[--radix-context-menu-content-available-height] min-w-32 overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]`,e),...t})}));Lde.displayName=Zv.displayName;var Rde=g.forwardRef(({className:e,inset:t,...n},r)=>(0,_.jsx)($v,{ref:r,className:q(`relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50`,t&&`pl-8`,e),...n}));Rde.displayName=$v.displayName;var zde=g.forwardRef(({className:e,children:t,checked:n,...r},i)=>(0,_.jsxs)(ey,{ref:i,className:q(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50`,e),checked:n,...r,children:[(0,_.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,_.jsx)(ny,{children:(0,_.jsx)(_V,{className:`h-4 w-4`})})}),t]}));zde.displayName=ey.displayName;var Bde=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsxs)(ty,{ref:r,className:q(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50`,e),...n,children:[(0,_.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,_.jsx)(ny,{children:(0,_.jsx)(zV,{className:`h-2 w-2 fill-current`})})}),t]}));Bde.displayName=ty.displayName;var Vde=g.forwardRef(({className:e,inset:t,...n},r)=>(0,_.jsx)(Qv,{ref:r,className:q(`px-2 py-1.5 text-sm font-semibold text-foreground`,t&&`pl-8`,e),...n}));Vde.displayName=Qv.displayName;var Hde=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(ry,{ref:n,className:q(`-mx-1 my-1 h-px bg-border`,e),...t}));Hde.displayName=ry.displayName;var Ude=({className:e,...t})=>(0,_.jsx)(`span`,{className:q(`ml-auto text-xs tracking-widest text-muted-foreground`,e),...t});Ude.displayName=`ContextMenuShortcut`;var BV=g.forwardRef(({className:e,type:t,onValueChange:n,onChange:r,...i},a)=>{let o=e=>{n?.(e.target.value),r?.(e)};return(0,_.jsx)(`input`,{type:t,"data-slot":`input`,className:q(`file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base bg-input-background transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,`focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]`,`aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,e),ref:a,...i,onChange:o})});BV.displayName=`Input`;var Wde=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,children:[(0,_.jsx)(`path`,{d:`M8 2v4m8-4v4`}),(0,_.jsx)(`rect`,{width:18,height:18,x:3,y:4,rx:2}),(0,_.jsx)(`path`,{d:`M3 10h18`})]})});function VV({value:e,onValueChange:t,placeholder:n,disabled:r=!1,className:i}){let{SD:a}=xV(),o=n??a(`rc.datePicker.pickDate`);return(0,_.jsxs)(IV,{children:[(0,_.jsx)(LV,{asChild:!0,children:(0,_.jsxs)(J,{variant:`outline`,disabled:r,"data-empty":!e,className:q(`w-full justify-start text-left font-normal`,`data-[empty=true]:text-muted-foreground`,i),children:[(0,_.jsx)(Wde,{}),e?rc(e,`PPP`):(0,_.jsx)(`span`,{children:o})]})}),(0,_.jsx)(RV,{className:`w-auto p-0`,align:`start`,children:(0,_.jsx)(pde,{mode:`single`,selected:e,onSelect:e=>{t?.(e)},initialFocus:!0})})]})}var Gde=({shouldScaleBackground:e=!0,...t})=>(0,_.jsx)(zy.Root,{shouldScaleBackground:e,...t});Gde.displayName=`Drawer`,zy.Trigger;var Kde=zy.Portal;zy.Close;var HV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(zy.Overlay,{ref:n,className:q(`fixed inset-0 z-50 bg-black/80`,e),...t}));HV.displayName=zy.Overlay.displayName;var qde=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsxs)(Kde,{children:[(0,_.jsx)(HV,{}),(0,_.jsxs)(zy.Content,{ref:r,className:q(`fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background`,e),...n,children:[(0,_.jsx)(`div`,{className:`mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted`}),t]})]}));qde.displayName=`DrawerContent`;var Jde=({className:e,...t})=>(0,_.jsx)(`div`,{className:q(`grid gap-1.5 p-4 text-center sm:text-left`,e),...t});Jde.displayName=`DrawerHeader`;var Yde=({className:e,...t})=>(0,_.jsx)(`div`,{className:q(`mt-auto flex flex-col gap-2 p-4`,e),...t});Yde.displayName=`DrawerFooter`;var Xde=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(zy.Title,{ref:n,className:q(`text-lg font-semibold leading-none tracking-tight`,e),...t}));Xde.displayName=zy.Title.displayName;var Zde=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(zy.Description,{ref:n,className:q(`text-sm text-muted-foreground`,e),...t}));Zde.displayName=zy.Description.displayName;var Qde=g.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,_.jsxs)(lb,{ref:i,className:q(`flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,t&&`pl-8`,e),...r,children:[n,(0,_.jsx)(mV,{className:`ml-auto`})]}));Qde.displayName=lb.displayName;var $de=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(ub,{ref:n,className:q(`z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]`,e),...t}));$de.displayName=ub.displayName;var efe=g.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,_.jsx)(tb,{children:(0,_.jsx)(nb,{ref:r,sideOffset:t,className:q(`z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-32 overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]`,e),...n})}));efe.displayName=nb.displayName;var tfe=g.forwardRef(({className:e,inset:t,...n},r)=>(0,_.jsx)(ib,{ref:r,className:q(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,t&&`pl-8`,e),...n}));tfe.displayName=ib.displayName;var nfe=g.forwardRef(({className:e,children:t,checked:n,...r},i)=>(0,_.jsxs)(ab,{ref:i,className:q(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50`,e),checked:n,...r,children:[(0,_.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,_.jsx)(sb,{children:(0,_.jsx)(_V,{className:`h-4 w-4`})})}),t]}));nfe.displayName=ab.displayName;var rfe=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsxs)(ob,{ref:r,className:q(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50`,e),...n,children:[(0,_.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,_.jsx)(sb,{children:(0,_.jsx)(zV,{className:`h-2 w-2 fill-current`})})}),t]}));rfe.displayName=ob.displayName;var ife=g.forwardRef(({className:e,inset:t,...n},r)=>(0,_.jsx)(rb,{ref:r,className:q(`px-2 py-1.5 text-sm font-semibold`,t&&`pl-8`,e),...n}));ife.displayName=rb.displayName;var afe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(cb,{ref:n,className:q(`-mx-1 my-1 h-px bg-muted`,e),...t}));afe.displayName=cb.displayName;var ofe=({className:e,...t})=>(0,_.jsx)(`span`,{className:q(`ml-auto text-xs tracking-widest opacity-60`,e),...t});ofe.displayName=`DropdownMenuShortcut`;var sfe=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M21 12a9 9 0 1 1-6.219-8.56`})}),cfe=Mn(`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70`),UV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Tb,{ref:n,className:q(cfe(),e),...t}));UV.displayName=Tb.displayName;var lfe=g.createContext(null),WV=()=>{let e=g.useContext(lfe),t=g.useContext(GV),{getFieldState:n,formState:r}=bb();if(!e)throw Error(`useFormField should be used within <FormField>`);if(!t)throw Error(`useFormField should be used within <FormItem>`);let i=n(e.name,r),{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},GV=g.createContext(null),ufe=g.forwardRef(({className:e,...t},n)=>{let r=g.useId();return(0,_.jsx)(GV.Provider,{value:{id:r},children:(0,_.jsx)(`div`,{ref:n,className:q(`space-y-2`,e),...t})})});ufe.displayName=`FormItem`;var dfe=g.forwardRef(({className:e,...t},n)=>{let{error:r,formItemId:i}=WV();return(0,_.jsx)(UV,{ref:n,className:q(r&&`text-destructive`,e),htmlFor:i,...t})});dfe.displayName=`FormLabel`;var ffe=g.forwardRef(({...e},t)=>{let{error:n,formItemId:r,formDescriptionId:i,formMessageId:a}=WV();return(0,_.jsx)(oo,{ref:t,id:r,"aria-describedby":n?`${i} ${a}`:`${i}`,"aria-invalid":!!n,...e})});ffe.displayName=`FormControl`;var pfe=g.forwardRef(({className:e,...t},n)=>{let{formDescriptionId:r}=WV();return(0,_.jsx)(`p`,{ref:n,id:r,className:q(`text-sm text-muted-foreground`,e),...t})});pfe.displayName=`FormDescription`;var mfe=g.forwardRef(({className:e,children:t,...n},r)=>{let{error:i,formMessageId:a}=WV(),o=i?String(i?.message??``):t;return o?(0,_.jsx)(`p`,{ref:r,id:a,className:q(`text-sm font-medium text-destructive`,e),...n,children:o}):null});mfe.displayName=`FormMessage`;var hfe=g.forwardRef(({className:e,align:t=`center`,sideOffset:n=4,...r},i)=>(0,_.jsx)(Kb,{ref:i,align:t,sideOffset:n,className:q(`z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-hover-card-content-transform-origin]`,e),...r}));hfe.displayName=Kb.displayName;var gfe=e=>(0,_.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...e,children:(0,_.jsx)(`circle`,{cx:12.1,cy:12.1,r:1,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2})}),_fe=g.forwardRef(({className:e,containerClassName:t,...n},r)=>(0,_.jsx)(dx,{ref:r,containerClassName:q(`flex items-center gap-2 has-[:disabled]:opacity-50`,t),className:q(`disabled:cursor-not-allowed`,e),...n}));_fe.displayName=`InputOTP`;var vfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`div`,{ref:n,className:q(`flex items-center`,e),...t}));vfe.displayName=`InputOTPGroup`;var yfe=g.forwardRef(({index:e,className:t,...n},r)=>{let{char:i,hasFakeCaret:a,isActive:o}=g.useContext(ux).slots[e];return(0,_.jsxs)(`div`,{ref:r,className:q(`relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md`,o&&`z-10 ring-2 ring-ring ring-offset-background`,t),...n,children:[i,a&&(0,_.jsx)(`div`,{className:`pointer-events-none absolute inset-0 flex items-center justify-center`,children:(0,_.jsx)(`div`,{className:`h-4 w-px animate-caret-blink bg-foreground duration-1000`})})]})});yfe.displayName=`InputOTPSlot`;var bfe=g.forwardRef(({...e},t)=>(0,_.jsx)(`div`,{ref:t,role:`separator`,...e,children:(0,_.jsx)(gfe,{})}));bfe.displayName=`InputOTPSeparator`;var xfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(zx,{ref:n,className:q(`flex h-10 items-center space-x-1 rounded-md border bg-background p-1`,e),...t}));xfe.displayName=zx.displayName;var Sfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Bx,{ref:n,className:q(`flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`,e),...t}));Sfe.displayName=Bx.displayName;var Cfe=g.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,_.jsxs)(Jx,{ref:i,className:q(`flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`,t&&`pl-8`,e),...r,children:[n,(0,_.jsx)(mV,{className:`ml-auto h-4 w-4`})]}));Cfe.displayName=Jx.displayName;var wfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(Yx,{ref:n,className:q(`z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]`,e),...t}));wfe.displayName=Yx.displayName;var Tfe=g.forwardRef(({className:e,align:t=`start`,alignOffset:n=-4,sideOffset:r=8,...i},a)=>(0,_.jsx)(Xre,{children:(0,_.jsx)(Vx,{ref:a,align:t,alignOffset:n,sideOffset:r,className:q(`z-50 min-w-48 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]`,e),...i})}));Tfe.displayName=Vx.displayName;var Efe=g.forwardRef(({className:e,inset:t,...n},r)=>(0,_.jsx)(Ux,{ref:r,className:q(`relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50`,t&&`pl-8`,e),...n}));Efe.displayName=Ux.displayName;var Dfe=g.forwardRef(({className:e,children:t,checked:n,...r},i)=>(0,_.jsxs)(Wx,{ref:i,className:q(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50`,e),checked:n,...r,children:[(0,_.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,_.jsx)(Kx,{children:(0,_.jsx)(_V,{className:`h-4 w-4`})})}),t]}));Dfe.displayName=Wx.displayName;var Ofe=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsxs)(Gx,{ref:r,className:q(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50`,e),...n,children:[(0,_.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,_.jsx)(Kx,{children:(0,_.jsx)(zV,{className:`h-2 w-2 fill-current`})})}),t]}));Ofe.displayName=Gx.displayName;var kfe=g.forwardRef(({className:e,inset:t,...n},r)=>(0,_.jsx)(Hx,{ref:r,className:q(`px-2 py-1.5 text-sm font-semibold`,t&&`pl-8`,e),...n}));kfe.displayName=Hx.displayName;var Afe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(qx,{ref:n,className:q(`-mx-1 my-1 h-px bg-muted`,e),...t}));Afe.displayName=qx.displayName;var jfe=({className:e,...t})=>(0,_.jsx)(`span`,{className:q(`ml-auto text-xs tracking-widest text-muted-foreground`,e),...t});jfe.displayname=`MenubarShortcut`;var KV=g.forwardRef(({className:e,orientation:t=`horizontal`,decorative:n=!0,...r},i)=>(0,_.jsx)(Qx,{ref:i,decorative:n,orientation:t,className:q(`shrink-0 bg-border`,t===`horizontal`?`h-px w-full`:`h-full w-px`,e),...r}));KV.displayName=Qx.displayName;function Mfe(e){return typeof e==`object`&&!!e&&`value`in e}function Nfe(e,t){let n=e.multiple===!0,r=e.async===!0,i=(0,g.useRef)(null);(0,g.useImperativeHandle)(t,()=>i.current);let[a,o]=(0,g.useState)(!1),[s,c]=(0,g.useState)(``),[l,u]=(0,g.useState)(new Map),d=(0,g.useCallback)(t=>t==null?``:e.valueKey?e.valueKey(t):String(t),[e.valueKey]),f=(0,g.useMemo)(()=>e.items.map(e=>Mfe(e)?e:{value:e}),[e.items]),p=(0,g.useMemo)(()=>{let e=new Map;for(let t of f)e.set(d(t.value),t.value);return e},[f,d]),m=(0,g.useCallback)(t=>{if(e.renderItem)return e.renderItem(t);let n=f.find(e=>e.value===t);if(n?.label!==void 0)return n.label;if(r){let e=l.get(d(t));if(e?.label!==void 0)return e.label}return String(t)},[e.renderItem,f,r,l,d]);(0,g.useEffect)(()=>{if(!r)return;let t=n?e.value:[e.value].filter(Boolean),i=new Map;for(let e of t){let t=d(e),n=f.find(t=>t.value===e);n&&i.set(t,n)}u(i)},[r,n,e,f,d]);let h=(0,g.useCallback)(e=>{c(e)},[]),_=r&&`onSearch`in e?e.onSearch:void 0,v=r&&`searchDebounce`in e&&e.searchDebounce!==void 0?e.searchDebounce:300;(0,g.useEffect)(()=>{if(!_)return;let e=setTimeout(()=>{_(s)},s===``?0:v);return()=>clearTimeout(e)},[s,_,v]);let y=(0,g.useMemo)(()=>{if(r){let e=new Map;for(let[t,n]of l)e.set(t,n);for(let t of f)e.set(d(t.value),t);return Array.from(e.values())}else return s?f.filter(e=>{let t=m(e.value);return String(t).toLowerCase().includes(s.toLowerCase())}):f},[r,f,l,s,d,m]);return(0,g.useEffect)(()=>{a||c(``)},[a]),{isMultiple:n,isAsync:r,selectRef:i,isPopoverOpen:a,setIsPopoverOpen:o,searchValue:s,handleSearchChange:h,filteredOptions:y,normalizedItems:f,getKeyForValue:d,valueByKey:p,getItemLabel:m}}function Pfe(e,t){if(!t||typeof e!=`string`)return e;let n=e.toLowerCase(),r=t.toLowerCase(),i=n.indexOf(r);if(i===-1)return e;let a=e.slice(0,i),o=e.slice(i,i+t.length),s=e.slice(i+t.length);return(0,_.jsxs)(_.Fragment,{children:[a,(0,_.jsx)(`strong`,{className:`font-bold`,children:o}),s]})}function Ffe({props:e,isMultiple:t,isAsync:n,isPopoverOpen:r,setIsPopoverOpen:i,searchValue:a,handleSearchChange:o,filteredOptions:s,getKeyForValue:c,getItemLabel:l}){let{SD:u}=xV(),d=(0,g.useRef)(null),f=n||`searchable`in e&&e.searchable===!0,p=(0,g.useCallback)(e=>{let t=d.current;if(!t)return;let n=t.scrollTop<t.scrollHeight-t.clientHeight,r=t.scrollTop>0;(e.deltaY>0&&n||e.deltaY<0&&r)&&e.stopPropagation()},[]),m=(0,g.useCallback)(n=>{if(!e.disabled)if(t){let t=e.value,r=t.includes(n)?t.filter(e=>e!==n):[...t,n];e.onValueChange(r)}else e.onValueChange?.(n),i(!1)},[t,e,i]),h=(0,g.useCallback)(()=>{if(!t||e.disabled)return;let n=s.filter(e=>!e.disabled);if(e.value.length===n.length)e.onValueChange([]);else{let t=n.map(e=>e.value);e.onValueChange(t)}},[t,e,s]),v=(0,g.useCallback)(()=>{e.disabled||(t?e.onValueChange([]):e.onValueChange?.(void 0))},[t,e]),y=(0,g.useCallback)(n=>t?e.value.includes(n):e.value===n,[t,e]),b=n&&`loading`in e?e.loading:!1,x=n&&`error`in e?e.error:void 0,S=t?e.value.length>0:e.value!==void 0&&e.value!==null&&e.value!==``,C=()=>{if(!t)return null;let n=e.value;return(0,_.jsx)(_.Fragment,{children:n.map(e=>{let t=c(e);return(0,_.jsxs)(rde,{variant:`outline`,className:`m-1 transition-all duration-300 ease-in-out`,children:[l(e),(0,_.jsx)(yV,{className:`ml-2 h-3 w-3 cursor-pointer`,onClick:t=>{t.stopPropagation(),m(e)}})]},t)})})};return(0,_.jsxs)(IV,{open:r,onOpenChange:i,children:[(0,_.jsx)(LV,{asChild:!0,children:(0,_.jsx)(J,{variant:`outline`,role:`combobox`,"aria-expanded":r,disabled:e.disabled||b,className:q(`flex p-1 rounded-md border border-input min-h-10 h-auto items-center justify-between bg-white hover:bg-white hover:text-inherit [&_svg]:pointer-events-auto w-full`,e.className),children:t&&S?(0,_.jsxs)(`div`,{className:`flex justify-between items-center w-full`,children:[(0,_.jsx)(`div`,{className:`flex items-center gap-1 flex-wrap`,children:C()}),(0,_.jsxs)(`div`,{className:`flex items-center justify-between`,children:[e.clearable&&(0,_.jsx)(`div`,{role:`button`,tabIndex:0,onClick:e=>{e.stopPropagation(),v()},className:`flex items-center justify-center h-4 w-4 mx-2 cursor-pointer text-muted-foreground hover:text-foreground`,children:(0,_.jsx)(SV,{className:`h-4 w-4`})}),(0,_.jsx)(KV,{orientation:`vertical`,className:`flex min-h-6 h-full`}),(0,_.jsx)(uV,{className:`h-4 mx-2 cursor-pointer text-muted-foreground`})]})]}):!t&&S?(0,_.jsxs)(`div`,{className:`flex justify-between items-center w-full px-2 py-1`,children:[(()=>{let t=e.value;return t==null?null:(0,_.jsx)(`span`,{className:`flex-1 truncate text-left text-sm`,children:l(t)})})(),(0,_.jsxs)(`div`,{className:`flex items-center gap-1 shrink-0`,children:[e.clearable&&S&&(0,_.jsx)(yV,{className:`h-4 w-4 cursor-pointer opacity-50 hover:opacity-100 transition-opacity`,onPointerDownCapture:v,onMouseDownCapture:v}),(0,_.jsx)(uV,{className:`h-4 w-4 opacity-50`})]})]}):(0,_.jsxs)(`div`,{className:`flex items-center justify-between w-full px-2 py-1`,children:[(0,_.jsx)(`span`,{className:`text-sm text-muted-foreground flex-1 truncate text-left`,children:e.placeholder}),(0,_.jsx)(uV,{className:`h-4 cursor-pointer text-muted-foreground`})]})})}),(0,_.jsx)(RV,{className:`min-w-40 p-0`,align:`start`,style:{width:`var(--radix-popover-trigger-width)`},children:(0,_.jsxs)(AV,{shouldFilter:!1,children:[f&&(0,_.jsx)(jV,{placeholder:u(`common.searchPlaceholder`),value:a,onValueChange:o}),(0,_.jsx)(MV,{ref:d,onWheel:p,children:b?(0,_.jsx)(NV,{children:(0,_.jsx)(`div`,{className:`flex items-center justify-center`,children:(0,_.jsx)(sfe,{className:`h-4 w-4 animate-spin mr-2`})})}):x?(0,_.jsxs)(NV,{children:[`Error: `,x.message]}):s.length===0?(0,_.jsx)(NV,{children:u(`rc.multiSelect.noResults`)}):(0,_.jsxs)(_.Fragment,{children:[t&&!(`hideSelectAll`in e&&e.hideSelectAll)&&(0,_.jsx)(PV,{children:(0,_.jsxs)(FV,{onSelect:h,className:`cursor-pointer`,children:[(0,_.jsx)(`div`,{className:q(`mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary`,e.value.length===s.filter(e=>!e.disabled).length?`bg-primary text-primary-foreground`:`opacity-50 [&_svg]:invisible`),children:(0,_.jsx)(_V,{className:`h-4 w-4`})}),(0,_.jsxs)(`span`,{children:[`(`,u(`rc.multiSelect.selectAll`),`)`]})]})}),(0,_.jsx)(PV,{children:s.map(e=>{let n=c(e.value),r=y(e.value);return(0,_.jsxs)(FV,{onSelect:()=>m(e.value),disabled:e.disabled,className:q(`cursor-pointer`,e.disabled&&`opacity-50 cursor-not-allowed`),children:[t&&(0,_.jsx)(`div`,{className:q(`mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary`,r?`bg-primary text-primary-foreground`:`opacity-50 [&_svg]:invisible`),children:(0,_.jsx)(_V,{className:`h-4 w-4`})}),!t&&(0,_.jsx)(_V,{className:q(`mr-2 h-4 w-4`,r?`opacity-100`:`opacity-0`)}),(0,_.jsx)(`span`,{children:Pfe(l(e.value),a)})]},n)})})]})})]})})]})}var qV=g.forwardRef(function(e,t){let n=Nfe(e,t);return(0,_.jsx)(Ffe,{props:e,isMultiple:n.isMultiple,isAsync:n.isAsync,isPopoverOpen:n.isPopoverOpen,setIsPopoverOpen:n.setIsPopoverOpen,searchValue:n.searchValue,handleSearchChange:n.handleSearchChange,filteredOptions:n.filteredOptions,getKeyForValue:n.getKeyForValue,getItemLabel:n.getItemLabel})}),Ife=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsxs)(FS,{ref:r,className:q(`relative z-10 flex max-w-max flex-1 items-center justify-center`,e),...n,children:[t,(0,_.jsx)(JV,{})]}));Ife.displayName=FS.displayName;var Lfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(IS,{ref:n,className:q(`group flex flex-1 list-none items-center justify-center space-x-1`,e),...t}));Lfe.displayName=IS.displayName;var Rfe=Mn(`group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent`),zfe=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsxs)(LS,{ref:r,className:q(Rfe(),`group`,e),...n,children:[t,` `,(0,_.jsx)(uV,{className:`relative top-px ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180`,"aria-hidden":`true`})]}));zfe.displayName=LS.displayName;var Bfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(zS,{ref:n,className:q(`left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto `,e),...t}));Bfe.displayName=zS.displayName;var JV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(`div`,{className:q(`absolute left-0 top-full flex justify-center`),children:(0,_.jsx)(BS,{className:q(`origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-(--radix-navigation-menu-viewport-width)`,e),ref:n,...t})}));JV.displayName=BS.displayName;var Vfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(RS,{ref:n,className:q(`top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in`,e),...t,children:(0,_.jsx)(`div`,{className:`relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md`})}));Vfe.displayName=RS.displayName;var Hfe=g.forwardRef(({value:e,onValueChange:t,total:n,itemsPerPage:r,className:i,maxVisible:a=6},o)=>{let{SD:s}=xV(),c=Math.ceil(n/r),l=e,u=(l-1)*r+1,d=Math.min(l*r,n);return(0,_.jsxs)(`div`,{ref:o,className:q(`flex items-center justify-between pt-6`,i),children:[(0,_.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:s(`rc.pagination.showing`)(u,d,n)}),(0,_.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,_.jsx)(J,{variant:`outline`,size:`sm`,className:`h-8 px-3 text-xs`,disabled:l===1,onClick:()=>t(l-1),children:s(`rc.pagination.previous`)}),(0,_.jsx)(`div`,{className:`flex items-center gap-1`,children:(()=>{let e=Math.max(1,l-Math.floor(a/2)),n=Math.min(c,e+a-1);return n-e+1<a&&(e=Math.max(1,n-a+1)),Array.from({length:n-e+1},(t,n)=>e+n).map(e=>(0,_.jsx)(J,{variant:`outline`,size:`sm`,className:`h-8 w-8 text-xs ${e===l?`bg-primary text-primary-foreground`:``}`,onClick:()=>t(e),children:e},e))})()}),(0,_.jsx)(J,{variant:`outline`,size:`sm`,className:`h-8 px-3 text-xs`,disabled:l===c,onClick:()=>t(l+1),children:s(`rc.pagination.next`)})]})]})});Hfe.displayName=`Pagination`;var Ufe=g.forwardRef(({className:e,value:t,...n},r)=>(0,_.jsx)(XS,{ref:r,className:q(`relative h-4 w-full overflow-hidden rounded-full bg-secondary`,e),...n,children:(0,_.jsx)(Die,{className:`h-full w-full flex-1 bg-primary transition-all`,style:{transform:`translateX(-${100-(t||0)}%)`}})}));Ufe.displayName=XS.displayName;var Wfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(dC,{className:q(`grid gap-2`,e),...t,ref:n}));Wfe.displayName=dC.displayName;var Gfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(fC,{ref:n,className:q(`aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50`,e),...t,children:(0,_.jsx)(Rie,{className:`flex items-center justify-center`,children:(0,_.jsx)(`div`,{className:`h-2 w-2 rounded-full bg-current`})})}));Gfe.displayName=fC.displayName;var Kfe=g.forwardRef(({className:e,children:t,...n},r)=>(0,_.jsxs)(qw,{ref:r,className:q(`relative overflow-hidden`,e),...n,children:[(0,_.jsx)(jae,{className:`h-full w-full rounded-[inherit]`,children:t}),(0,_.jsx)(YV,{}),(0,_.jsx)(Jw,{})]}));Kfe.displayName=qw.displayName;var YV=g.forwardRef(({className:e,orientation:t=`vertical`,...n},r)=>(0,_.jsx)(Aw,{ref:r,orientation:t,className:q(`flex touch-none select-none transition-colors`,t===`vertical`&&`h-full w-2.5 border-l border-l-transparent p-px`,t===`horizontal`&&`h-2.5 flex-col border-t border-t-transparent p-px`,e),...n,children:(0,_.jsx)(Iw,{className:`relative flex-1 rounded-full bg-border`})}));YV.displayName=Aw.displayName;function XV({enum:e,labels:t,value:n,onValueChange:r,placeholder:i,textPrefix:a=``,clearable:o=!1,disabled:s=!1,className:c,multiple:l=!1}){let u=g.useMemo(()=>e.options.filter(e=>e!==``),[e]),d=g.useMemo(()=>u.map(e=>({value:e,label:a+t[e]})),[u,t,a]);return l?(0,_.jsx)(qV,{items:d,value:n??[],onValueChange:e=>{r?.(e)},placeholder:i,clearable:o,disabled:s,className:c,multiple:!0,async:!1}):(0,_.jsx)(qV,{items:d,value:n??``,onValueChange:e=>{r?.(e)},placeholder:i,clearable:o,disabled:s,className:c,multiple:!1,async:!1})}var qfe=_a,ZV=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(va,{className:q(`fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t,ref:n}));ZV.displayName=va.displayName;var Jfe=Mn(`fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500`,{variants:{side:{top:`inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,bottom:`inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,left:`inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,right:`inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`}},defaultVariants:{side:`right`}}),Yfe=g.forwardRef(({side:e=`right`,className:t,children:n,...r},i)=>(0,_.jsxs)(qfe,{children:[(0,_.jsx)(ZV,{}),(0,_.jsxs)(ya,{ref:i,className:q(Jfe({side:e}),t),...r,children:[n,(0,_.jsxs)(Sa,{className:`absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,_.jsx)(SV,{className:`h-4 w-4`}),(0,_.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]}));Yfe.displayName=ya.displayName;var Xfe=({className:e,...t})=>(0,_.jsx)(`div`,{className:q(`flex flex-col space-y-2 text-center sm:text-left`,e),...t});Xfe.displayName=`SheetHeader`;var Zfe=({className:e,...t})=>(0,_.jsx)(`div`,{className:q(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});Zfe.displayName=`SheetFooter`;var Qfe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(ba,{ref:n,className:q(`text-lg font-semibold text-foreground`,e),...t}));Qfe.displayName=ba.displayName;var $fe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(xa,{ref:n,className:q(`text-sm text-muted-foreground`,e),...t}));$fe.displayName=xa.displayName;var epe=OT,QV=kT,$V=AT,eH=g.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,_.jsx)(jT,{ref:r,sideOffset:t,className:q(`z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]`,e),...n}));eH.displayName=jT.displayName,g.createContext(null);var tpe=g.forwardRef(({className:e,name:t,value:n,defaultValue:r,onValueChange:i,onBlur:a,...o},s)=>{let c=g.useRef(null);g.useImperativeHandle(s,()=>c.current);let l=e=>{i?.(e[0])},u=dV(n),d=dV(r);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`input`,{type:`range`,ref:c,name:t,defaultValue:d?.[0],onBlur:a,className:`sr-only`,tabIndex:-1,"aria-hidden":`true`}),(0,_.jsxs)(pE,{value:u,defaultValue:d,onValueChange:l,className:q(`relative flex w-full touch-none select-none items-center`,e),...o,children:[(0,_.jsx)(mE,{className:`relative h-2 w-full grow overflow-hidden rounded-full bg-secondary`,children:(0,_.jsx)(hE,{className:`absolute h-full bg-primary`})}),(0,_.jsx)(gE,{className:`block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50`})]})]})});tpe.displayName=`Slider`;async function tH(e,t){if(e instanceof File){let[n]=await t([e]);return n}if(Array.isArray(e))return e.length>0&&e.every(e=>e instanceof File)?await t(e):await Promise.all(e.map(e=>tH(e,t)));if(typeof e==`object`&&e&&Object.prototype.toString.call(e)===`[object Object]`){let n={};for(let[r,i]of Object.entries(e))n[r]=await tH(i,t);return n}return e}function nH(e,t){let[n,r]=(0,g.useState)(t),[i,a]=(0,g.useState)(new Map),{uploader:o}=xV();function s(e,t){let n=t.replace(/\./g,`.shape.`).replace(/\[[^\]]+\]/g,`.element`).replace(/^\.element/,`element`),r;return e instanceof OI?r=xE(e.shape,n):e instanceof TI&&(r=xE(e,n)),r===void 0?`normal`:r instanceof iL?`optional`:r instanceof cL?`nullable`:`normal`}return{form:n,setForm:r,register:(t,o)=>{let c=o??s(e,t),l=xE(n,t),u=i.get(t),d={value:l??``,onValueChange:e=>{u!==void 0&&a(e=>{let n=new Map(e);return n.delete(t),n});let i=e;c===`nullable`?i=e===``?null:e:c===`optional`&&(i=e===``?void 0:e);let o=t.indexOf(`.`)===-1&&t.indexOf(`[`)===-1;r(i===void 0&&o?{...n,[t]:void 0}:CE(n,t,i))}};return u&&(d.error=u),d},submit:e=>async()=>{let t=await tH(n,o);return r(t),await e(t)},addError:(e,t)=>{a(n=>{let r=new Map(n);return r.set(e,typeof t==`string`?{content:t}:t),r})},removeError:e=>{a(t=>{let n=new Map(t);return n.delete(e),n})},clearError:()=>{a(new Map)},reset:()=>{r(t)}}}var rH=g.forwardRef(({className:e,name:t,checked:n,value:r,defaultChecked:i,onValueChange:a,onBlur:o,...s},c)=>{let l=r===void 0?n:r,u=g.useRef(null);g.useImperativeHandle(c,()=>u.current);let d=e=>{a?.(e)};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`input`,{type:`checkbox`,ref:u,name:t,defaultChecked:i,onBlur:o,className:`sr-only`,tabIndex:-1,"aria-hidden":`true`}),(0,_.jsx)(sue,{checked:l,defaultChecked:i,onCheckedChange:d,className:q(`peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input`,e),...s,children:(0,_.jsx)(cue,{className:q(`pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0`)})})]})});rH.displayName=`Switch`;function iH({className:e,containerClassName:t,...n}){return(0,_.jsx)(`div`,{"data-slot":`table-container`,className:q(`relative w-full overflow-x-auto`,t),children:(0,_.jsx)(`table`,{"data-slot":`table`,className:q(`w-full caption-bottom text-sm`,e),...n})})}function aH({className:e,...t}){return(0,_.jsx)(`thead`,{"data-slot":`table-header`,className:q(`[&_tr]:border-b`,e),...t})}function oH({className:e,...t}){return(0,_.jsx)(`tbody`,{"data-slot":`table-body`,className:q(`[&_tr:last-child]:border-0`,e),...t})}function sH({className:e,...t}){return(0,_.jsx)(`tr`,{"data-slot":`table-row`,className:q(`hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors`,e),...t})}function cH({className:e,fit:t,align:n,...r}){return(0,_.jsx)(`th`,{"data-slot":`table-head`,className:q(`text-foreground h-10 px-2 text-left font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-[2px]`,t&&`w-px`,n===`center`&&`text-center`,n===`right`&&`text-right`,e),style:{verticalAlign:`middle`},...r})}function lH({className:e,fit:t,align:n,...r}){return(0,_.jsx)(`td`,{"data-slot":`table-cell`,className:q(`p-2 whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-[2px]`,t&&`w-px`,n===`center`&&`text-center`,n===`right`&&`text-right`,e),style:{verticalAlign:`middle`},...r})}var npe=fue,uH=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(_B,{ref:n,className:q(`inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground`,e),...t}));uH.displayName=_B.displayName;var dH=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(vB,{ref:n,className:q(`inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm`,e),...t}));dH.displayName=vB.displayName;var fH=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(yB,{ref:n,className:q(`mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`,e),...t}));fH.displayName=yB.displayName;var pH=g.forwardRef(({className:e,onValueChange:t,onChange:n,...r},i)=>{let a=e=>{t?.(e.target.value),n?.(e)};return(0,_.jsx)(`textarea`,{className:q(`flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),ref:i,...r,onChange:a})});pH.displayName=`Textarea`;var rpe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(UB,{ref:n,className:q(`fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]`,e),...t}));rpe.displayName=UB.displayName;var ipe=Mn(`group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full`,{variants:{variant:{default:`border bg-background text-foreground`,destructive:`destructive group border-destructive bg-destructive text-destructive-foreground`}},defaultVariants:{variant:`default`}}),ape=g.forwardRef(({className:e,variant:t,...n},r)=>(0,_.jsx)(WB,{ref:r,className:q(ipe({variant:t}),e),...n}));ape.displayName=WB.displayName;var ope=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(qB,{ref:n,className:q(`inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive`,e),...t}));ope.displayName=qB.displayName;var spe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(JB,{ref:n,className:q(`absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600`,e),"toast-close":``,...t,children:(0,_.jsx)(SV,{className:`h-4 w-4`})}));spe.displayName=JB.displayName;var cpe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(GB,{ref:n,className:q(`text-sm font-semibold`,e),...t}));cpe.displayName=GB.displayName;var lpe=g.forwardRef(({className:e,...t},n)=>(0,_.jsx)(KB,{ref:n,className:q(`text-sm opacity-90`,e),...t}));lpe.displayName=KB.displayName;var mH=Mn(`inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent hover:bg-accent hover:text-accent-foreground`},size:{default:`h-10 px-3 min-w-10`,sm:`h-9 px-2.5 min-w-9`,lg:`h-11 px-5 min-w-11`}},defaultVariants:{variant:`default`,size:`default`}}),upe=g.forwardRef(({className:e,variant:t,size:n,value:r,pressed:i,onValueChange:a,onPressedChange:o,...s},c)=>{let l=r===void 0?i:r;return(0,_.jsx)(ZB,{ref:c,pressed:l,onPressedChange:e=>{a?.(e),o?.(e)},className:q(mH({variant:t,size:n,className:e})),...s})});upe.displayName=ZB.displayName;var hH=g.createContext({size:`default`,variant:`default`}),dpe=g.forwardRef(({className:e,variant:t,size:n,children:r,...i},a)=>(0,_.jsx)(cV,{ref:a,className:q(`flex items-center justify-center gap-1`,e),...i,children:(0,_.jsx)(hH.Provider,{value:{variant:t,size:n},children:r})}));dpe.displayName=cV.displayName;var fpe=g.forwardRef(({className:e,children:t,variant:n,size:r,...i},a)=>{let o=g.useContext(hH);return(0,_.jsx)(lV,{ref:a,className:q(mH({variant:o.variant||n,size:o.size||r}),e),...i,children:t})});fpe.displayName=lV.displayName;var gH=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ppe={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},_H=new class{#e=ppe;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function mpe(e){setTimeout(e,0)}var vH=typeof window>`u`||`Deno`in globalThis;function yH(){}function hpe(e,t){return typeof e==`function`?e(t):e}function bH(e){return typeof e==`number`&&e>=0&&e!==1/0}function xH(e,t){return Math.max(e+(t||0)-Date.now(),0)}function SH(e,t){return typeof e==`function`?e(t):e}function CH(e,t){return typeof e==`function`?e(t):e}function wH(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==EH(o,t.options))return!1}else if(!OH(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function TH(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(DH(t.options.mutationKey)!==DH(a))return!1}else if(!OH(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function EH(e,t){return(t?.queryKeyHashFn||DH)(e)}function DH(e){return JSON.stringify(e,(e,t)=>MH(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function OH(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>OH(e[n],t[n])):!1}var gpe=Object.prototype.hasOwnProperty;function kH(e,t){if(e===t)return e;let n=jH(e)&&jH(t);if(!n&&!(MH(e)&&MH(t)))return t;let r=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),a=i.length,o=n?Array(a):{},s=0;for(let c=0;c<a;c++){let a=n?c:i[c],l=e[a],u=t[a];if(l===u){o[a]=l,(n?c<r:gpe.call(e,a))&&s++;continue}if(l===null||u===null||typeof l!=`object`||typeof u!=`object`){o[a]=u;continue}let d=kH(l,u);o[a]=d,d===l&&s++}return r===a&&s===r?e:o}function AH(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function jH(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function MH(e){if(!NH(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!NH(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function NH(e){return Object.prototype.toString.call(e)===`[object Object]`}function _pe(e){return new Promise(t=>{_H.setTimeout(t,e)})}function PH(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:kH(e,t)}function vpe(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function ype(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var FH=Symbol();function IH(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===FH?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function bpe(e,t){return typeof e==`function`?e(...t):!!e}var LH=new class extends gH{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!vH&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}};function RH(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var xpe=mpe;function Spe(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=xpe,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var zH=Spe(),BH=new class extends gH{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!vH&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Cpe(e){return Math.min(1e3*2**e,3e4)}function VH(e){return(e??`online`)===`online`?BH.isOnline():!0}var HH=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function UH(e){let t=!1,n=0,r,i=RH(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new HH(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>LH.isFocused()&&(e.networkMode===`always`||BH.isOnline())&&e.canRun(),u=()=>VH(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(vH?0:3),o=e.retryDelay??Cpe,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),_pe(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var WH=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),bH(this.gcTime)&&(this.#e=_H.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(vH?1/0:300*1e3))}clearGcTimeout(){this.#e&&=(_H.clearTimeout(this.#e),void 0)}},wpe=class extends WH{#e;#t;#n;#r;#i;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=qH(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=qH(this.options);e.data!==void 0&&(this.setState(KH(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#n.remove(this)}setData(e,t){let n=PH(this.state.data,e,this.options);return this.#s({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#s({type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(yH).catch(yH):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>CH(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===FH||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>SH(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!xH(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#o?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#i?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{let e=IH(this.options,t),n=(()=>{let e={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#o=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#s({type:`fetch`,meta:a.fetchOptions?.meta}),this.#i=UH({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof HH&&e.revert&&this.setState({...this.#t,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#s({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#s({type:`pause`})},onContinue:()=>{this.#s({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#i.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof HH){if(e.silent)return this.#i.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#s({type:`error`,error:e}),this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#s(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...GH(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...KH(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}})(this.state),zH.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:`updated`,action:e})})}};function GH(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:VH(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function KH(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function qH(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Tpe=class extends gH{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=RH(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),JH(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return YH(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return YH(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof CH(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!AH(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&XH(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||CH(this.options.enabled,this.#t)!==CH(t.enabled,this.#t)||SH(this.options.staleTime,this.#t)!==SH(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||CH(this.options.enabled,this.#t)!==CH(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Dpe(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(yH)),t}#g(){this.#b();let e=SH(this.options.staleTime,this.#t);if(vH||this.#r.isStale||!bH(e))return;let t=xH(this.#r.dataUpdatedAt,e)+1;this.#d=_H.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(vH||CH(this.options.enabled,this.#t)===!1||!bH(this.#p)||this.#p===0)&&(this.#f=_H.setInterval(()=>{(this.options.refetchIntervalInBackground||LH.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d&&=(_H.clearTimeout(this.#d),void 0)}#x(){this.#f&&=(_H.clearInterval(this.#f),void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&JH(e,t),o=i&&XH(e,n,t,r);(a||o)&&(l={...l,...GH(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=PH(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=PH(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:ZH(e,t),refetch:this.refetch,promise:this.#o,isEnabled:CH(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=e=>{x.status===`error`?e.reject(x.error):x.data!==void 0&&e.resolve(x.data)},r=()=>{t(this.#o=x.promise=RH())},i=this.#o;switch(i.status){case`pending`:e.queryHash===n.queryHash&&t(i);break;case`fulfilled`:(x.status===`error`||x.data!==i.value)&&r();break;case`rejected`:(x.status!==`error`||x.error!==i.reason)&&r();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!AH(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){zH.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Epe(e,t){return CH(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&t.retryOnMount===!1)}function JH(e,t){return Epe(e,t)||e.state.data!==void 0&&YH(e,t,t.refetchOnMount)}function YH(e,t,n){if(CH(t.enabled,e)!==!1&&SH(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&ZH(e,t)}return!1}function XH(e,t,n,r){return(e!==t||CH(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&ZH(e,n)}function ZH(e,t){return CH(t.enabled,e)!==!1&&e.isStaleByTime(SH(t.staleTime,e))}function Dpe(e,t){return!AH(e.getCurrentResult(),t)}function QH(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener(`abort`,()=>{n=!0}),t.signal)})},u=IH(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?ype:vpe;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Ope:$H,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:$H(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function $H(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Ope(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var kpe=class extends WH{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Ape(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=UH({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),await this.#n.config.onMutate?.(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{throw await this.#n.config.onError?.(t,e,this.state.context,this,n),await this.options.onError?.(t,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,t,e,this.state.context,n),t}finally{this.#i({type:`error`,error:t})}}finally{this.#n.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}})(this.state),zH.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Ape(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var jpe=class extends gH{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new kpe({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=eU(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=eU(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=eU(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=eU(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){zH.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>TH(t,e))}findAll(e={}){return this.getAll().filter(t=>TH(e,t))}notify(e){zH.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return zH.batch(()=>Promise.all(e.map(e=>e.continue().catch(yH))))}};function eU(e){return e.options.scope?.id}var Mpe=class extends gH{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??EH(r,t),a=this.get(i);return a||(a=new wpe({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){zH.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>wH(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>wH(e,t)):t}notify(e){zH.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){zH.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){zH.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Npe=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Mpe,this.#t=e.mutationCache||new jpe,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=LH.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=BH.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(SH(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=hpe(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return zH.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;zH.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return zH.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=zH.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(yH).catch(yH)}invalidateQueries(e,t={}){return zH.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=zH.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(yH)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(yH)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(SH(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(yH).catch(yH)}fetchInfiniteQuery(e){return e.behavior=QH(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(yH).catch(yH)}ensureInfiniteQueryData(e){return e.behavior=QH(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return BH.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(DH(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{OH(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(DH(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{OH(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=EH(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===FH&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},tU=g.createContext(void 0),Ppe=e=>{let t=g.useContext(tU);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Fpe=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,_.jsx)(tU.Provider,{value:e,children:t})),nU=g.createContext(!1),Ipe=()=>g.useContext(nU);nU.Provider;function Lpe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Rpe=g.createContext(Lpe()),zpe=()=>g.useContext(Rpe),Bpe=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Vpe=e=>{g.useEffect(()=>{e.clearReset()},[e])},Hpe=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||bpe(n,[e.error,r])),Upe=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Wpe=(e,t)=>e.isLoading&&e.isFetching&&!t,Gpe=(e,t)=>e?.suspense&&t.isPending,rU=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Kpe(e,t,n){let r=Ipe(),i=zpe(),a=Ppe(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o),o._optimisticResults=r?`isRestoring`:`optimistic`,Upe(o),Bpe(o,i),Vpe(i);let s=!a.getQueryCache().get(o.queryHash),[c]=g.useState(()=>new t(a,o)),l=c.getOptimisticResult(o),u=!r&&e.subscribed!==!1;if(g.useSyncExternalStore(g.useCallback(e=>{let t=u?c.subscribe(zH.batchCalls(e)):yH;return c.updateResult(),t},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),g.useEffect(()=>{c.setOptions(o)},[o,c]),Gpe(o,l))throw rU(o,c,i);if(Hpe({result:l,errorResetBoundary:i,throwOnError:o.throwOnError,query:a.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw l.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,l),o.experimental_prefetchInRender&&!vH&&Wpe(l,r)&&(s?rU(o,c,i):a.getQueryCache().get(o.queryHash)?.promise)?.catch(yH).finally(()=>{c.updateResult()}),o.notifyOnChangeProps?l:c.trackResult(l)}function iU(e,t){return Kpe(e,Tpe,t)}var qpe=s((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,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){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&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(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,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),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}}}})),Jpe=s(((e,t)=>{t.exports=qpe()})),Ype=s((e=>{var t=Jpe(),n=p(),r=te();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 u(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 d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,m=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=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 j=Symbol.for(`react.client.reference`);function M(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===j?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return t=e.displayName||null,t===null?M(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return M(e(t))}catch{}}return null}var N=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},I=[],L=-1;function R(e){return{current:e}}function z(e){0>L||(e.current=I[L],I[L]=null,L--)}function B(e,t){L++,I[L]=e.current,e.current=t}var ne=R(null),V=R(null),re=R(null),ie=R(null);function ae(e,t){switch(B(re,t),B(V,e),B(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qd(t),e=$d(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}z(ne),B(ne,e)}function oe(){z(ne),z(V),z(re)}function se(e){e.memoizedState!==null&&B(ie,e);var t=ne.current,n=$d(t,e.type);t!==n&&(B(V,e),B(ne,n))}function ce(e){V.current===e&&(z(ne),z(V)),ie.current===e&&(z(ie),lp._currentValue=ee)}var le,ue;function de(e){if(le===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);le=t&&t[1]||``,ue=-1<e.stack.indexOf(`
119
119
  at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
120
120
  `+le+e+ue}var fe=!1;function pe(e,t){if(!e||fe)return``;fe=!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(`
121
121
  `),l=s.split(`