diff --git a/dist/assets/js/form-vendor-vQotxSmE.js b/dist/assets/js/form-vendor-vQotxSmE.js deleted file mode 100644 index d0bbff6..0000000 --- a/dist/assets/js/form-vendor-vQotxSmE.js +++ /dev/null @@ -1 +0,0 @@ -import{R as J}from"./router-vendor-D4by-_6Z.js";var $e=t=>t.type==="checkbox",ke=t=>t instanceof Date,W=t=>t==null;const nr=t=>typeof t=="object";var $=t=>!W(t)&&!Array.isArray(t)&&nr(t)&&!ke(t),Cr=t=>$(t)&&t.target?$e(t.target)?t.target.checked:t.target.value:t,Tr=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,Or=(t,e)=>t.has(Tr(e)),Vr=t=>{const e=t.constructor&&t.constructor.prototype;return $(e)&&e.hasOwnProperty("isPrototypeOf")},mt=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function B(t){let e;const r=Array.isArray(t),s=typeof FileList<"u"?t instanceof FileList:!1;if(t instanceof Date)e=new Date(t);else if(!(mt&&(t instanceof Blob||s))&&(r||$(t)))if(e=r?[]:Object.create(Object.getPrototypeOf(t)),!r&&!Vr(t))e=t;else for(const a in t)t.hasOwnProperty(a)&&(e[a]=B(t[a]));else return t;return e}var Qe=t=>/^\w*$/.test(t),M=t=>t===void 0,yt=t=>Array.isArray(t)?t.filter(Boolean):[],pt=t=>yt(t.replace(/["|']|\]/g,"").split(/\.|\[/)),_=(t,e,r)=>{if(!e||!$(t))return r;const s=(Qe(e)?[e]:pt(e)).reduce((a,i)=>W(a)?a:a[i],t);return M(s)||s===t?M(t[e])?r:t[e]:s},ie=t=>typeof t=="boolean",F=(t,e,r)=>{let s=-1;const a=Qe(e)?[e]:pt(e),i=a.length,o=i-1;for(;++s{const a={defaultValues:e._defaultValues};for(const i in t)Object.defineProperty(a,i,{get:()=>{const o=i;return e._proxyFormState[o]!==ee.all&&(e._proxyFormState[o]=!s||ee.all),t[o]}});return a};const Rr=typeof window<"u"?J.useLayoutEffect:J.useEffect;var Y=t=>typeof t=="string",Fr=(t,e,r,s,a)=>Y(t)?(s&&e.watch.add(t),_(r,t,a)):Array.isArray(t)?t.map(i=>(s&&e.watch.add(i),_(r,i))):(s&&(e.watchAll=!0),r),ot=t=>W(t)||!nr(t);function ye(t,e,r=new WeakSet){if(ot(t)||ot(e))return t===e;if(ke(t)&&ke(e))return t.getTime()===e.getTime();const s=Object.keys(t),a=Object.keys(e);if(s.length!==a.length)return!1;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);for(const i of s){const o=t[i];if(!a.includes(i))return!1;if(i!=="ref"){const d=e[i];if(ke(o)&&ke(d)||$(o)&&$(d)||Array.isArray(o)&&Array.isArray(d)?!ye(o,d,r):o!==d)return!1}}return!0}var Ir=(t,e,r,s,a)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[s]:a||!0}}:{},Ze=t=>Array.isArray(t)?t:[t],Nt=()=>{let t=[];return{get observers(){return t},next:a=>{for(const i of t)i.next&&i.next(a)},subscribe:a=>(t.push(a),{unsubscribe:()=>{t=t.filter(i=>i!==a)}}),unsubscribe:()=>{t=[]}}};function or(t,e){const r={};for(const s in t)if(t.hasOwnProperty(s)){const a=t[s],i=e[s];if(a&&$(a)&&i){const o=or(a,i);$(o)&&(r[s]=o)}else t[s]&&(r[s]=i)}return r}var H=t=>$(t)&&!Object.keys(t).length,gt=t=>t.type==="file",te=t=>typeof t=="function",ze=t=>{if(!mt)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},dr=t=>t.type==="select-multiple",_t=t=>t.type==="radio",Zr=t=>_t(t)||$e(t),it=t=>ze(t)&&t.isConnected;function Dr(t,e){const r=e.slice(0,-1).length;let s=0;for(;s{for(const e in t)if(te(t[e]))return!0;return!1};function ur(t){return Array.isArray(t)||$(t)&&!Lr(t)}function dt(t,e={}){for(const r in t)ur(t[r])?(e[r]=Array.isArray(t[r])?[]:{},dt(t[r],e[r])):W(t[r])||(e[r]=!0);return e}function Se(t,e,r){r||(r=dt(e));for(const s in t)ur(t[s])?M(e)||ot(r[s])?r[s]=dt(t[s],Array.isArray(t[s])?[]:{}):Se(t[s],W(e)?{}:e[s],r[s]):r[s]=!ye(t[s],e[s]);return r}const Rt={value:!1,isValid:!1},Ft={value:!0,isValid:!0};var lr=t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!M(t[0].attributes.value)?M(t[0].value)||t[0].value===""?Ft:{value:t[0].value,isValid:!0}:Ft:Rt}return Rt},cr=(t,{valueAsNumber:e,valueAsDate:r,setValueAs:s})=>M(t)?t:e?t===""?NaN:t&&+t:r&&Y(t)?new Date(t):s?s(t):t;const It={isValid:!1,value:null};var fr=t=>Array.isArray(t)?t.reduce((e,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:e,It):It;function Zt(t){const e=t.ref;return gt(e)?e.files:_t(e)?fr(t.refs).value:dr(e)?[...e.selectedOptions].map(({value:r})=>r):$e(e)?lr(t.refs).value:cr(M(e.value)?t.ref.value:e.value,t)}var Mr=(t,e,r,s)=>{const a={};for(const i of t){const o=_(e,i);o&&F(a,i,o._f)}return{criteriaMode:r,names:[...t],fields:a,shouldUseNativeValidation:s}},We=t=>t instanceof RegExp,Fe=t=>M(t)?t:We(t)?t.source:$(t)?We(t.value)?t.value.source:t.value:t,Dt=t=>({isOnSubmit:!t||t===ee.onSubmit,isOnBlur:t===ee.onBlur,isOnChange:t===ee.onChange,isOnAll:t===ee.all,isOnTouch:t===ee.onTouched});const jt="AsyncFunction";var $r=t=>!!t&&!!t.validate&&!!(te(t.validate)&&t.validate.constructor.name===jt||$(t.validate)&&Object.values(t.validate).find(e=>e.constructor.name===jt)),Pr=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate),Lt=(t,e,r)=>!r&&(e.watchAll||e.watch.has(t)||[...e.watch].some(s=>t.startsWith(s)&&/^\.\w+/.test(t.slice(s.length))));const De=(t,e,r,s)=>{for(const a of r||Object.keys(t)){const i=_(t,a);if(i){const{_f:o,...d}=i;if(o){if(o.refs&&o.refs[0]&&e(o.refs[0],a)&&!s)return!0;if(o.ref&&e(o.ref,o.name)&&!s)return!0;if(De(d,e))break}else if($(d)&&De(d,e))break}}};function Mt(t,e,r){const s=_(t,r);if(s||Qe(r))return{error:s,name:r};const a=r.split(".");for(;a.length;){const i=a.join("."),o=_(e,i),d=_(t,i);if(o&&!Array.isArray(o)&&r!==i)return{name:r};if(d&&d.type)return{name:i,error:d};if(d&&d.root&&d.root.type)return{name:`${i}.root`,error:d.root};a.pop()}return{name:r}}var Ur=(t,e,r,s)=>{r(t);const{name:a,...i}=t;return H(i)||Object.keys(i).length>=Object.keys(e).length||Object.keys(i).find(o=>e[o]===(!s||ee.all))},Br=(t,e,r)=>!t||!e||t===e||Ze(t).some(s=>s&&(r?s===e:s.startsWith(e)||e.startsWith(s))),zr=(t,e,r,s,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(e||t):(r?s.isOnBlur:a.isOnBlur)?!t:(r?s.isOnChange:a.isOnChange)?t:!0,Wr=(t,e)=>!yt(_(t,e)).length&&j(t,e),qr=(t,e,r)=>{const s=Ze(_(t,r));return F(s,"root",e[r]),F(t,r,s),t};function $t(t,e,r="validate"){if(Y(t)||Array.isArray(t)&&t.every(Y)||ie(t)&&!t)return{type:r,message:Y(t)?t:"",ref:e}}var Ae=t=>$(t)&&!We(t)?t:{value:t,message:""},Pt=async(t,e,r,s,a,i)=>{const{ref:o,refs:d,required:y,maxLength:g,minLength:k,min:I,max:C,pattern:Ne,validate:le,name:P,valueAsNumber:ce,mount:Xe}=t._f,E=_(r,P);if(!Xe||e.has(P))return{};const oe=d?d[0]:o,re=O=>{a&&oe.reportValidity&&(oe.setCustomValidity(ie(O)?"":O||""),oe.reportValidity())},U={},Pe=_t(o),fe=$e(o),Ke=Pe||fe,K=(ce||gt(o))&&M(o.value)&&M(E)||ze(o)&&o.value===""||E===""||Array.isArray(E)&&!E.length,xe=Ir.bind(null,P,s,U),se=(O,R,D,z=de.maxLength,q=de.minLength)=>{const ae=O?R:D;U[P]={type:O?z:q,message:ae,ref:o,...xe(O?z:q,ae)}};if(i?!Array.isArray(E)||!E.length:y&&(!Ke&&(K||W(E))||ie(E)&&!E||fe&&!lr(d).isValid||Pe&&!fr(d).isValid)){const{value:O,message:R}=Y(y)?{value:!!y,message:y}:Ae(y);if(O&&(U[P]={type:de.required,message:R,ref:oe,...xe(de.required,R)},!s))return re(R),U}if(!K&&(!W(I)||!W(C))){let O,R;const D=Ae(C),z=Ae(I);if(!W(E)&&!isNaN(E)){const q=o.valueAsNumber||E&&+E;W(D.value)||(O=q>D.value),W(z.value)||(R=qnew Date(new Date().toDateString()+" "+Ue),Re=o.type=="time",we=o.type=="week";Y(D.value)&&E&&(O=Re?ae(E)>ae(D.value):we?E>D.value:q>new Date(D.value)),Y(z.value)&&E&&(R=Re?ae(E)+O.value,z=!W(R.value)&&E.length<+R.value;if((D||z)&&(se(D,O.message,R.message),!s))return re(U[P].message),U}if(Ne&&!K&&Y(E)){const{value:O,message:R}=Ae(Ne);if(We(O)&&!E.match(O)&&(U[P]={type:de.pattern,message:R,ref:o,...xe(de.pattern,R)},!s))return re(R),U}if(le){if(te(le)){const O=await le(E,r),R=$t(O,oe);if(R&&(U[P]={...R,...xe(de.validate,R.message)},!s))return re(R.message),U}else if($(le)){let O={};for(const R in le){if(!H(O)&&!s)break;const D=$t(await le[R](E,r),oe,R);D&&(O={...D,...xe(R,D.message)},re(D.message),s&&(U[P]=O))}if(!H(O)&&(U[P]={ref:oe,...O},!s))return U}}return re(!0),U};const Hr={mode:ee.onSubmit,reValidateMode:ee.onChange,shouldFocusError:!0};function Jr(t={}){let e={...Hr,...t},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:te(e.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1},s={},a=$(e.defaultValues)||$(e.values)?B(e.defaultValues||e.values)||{}:{},i=e.shouldUnregister?{}:B(a),o={action:!1,mount:!1,watch:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},y,g=0;const k={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let I={...k};const C={array:Nt(),state:Nt()},Ne=e.criteriaMode===ee.all,le=n=>u=>{clearTimeout(g),g=setTimeout(n,u)},P=async n=>{if(!e.disabled&&(k.isValid||I.isValid||n)){const u=e.resolver?H((await fe()).errors):await K(s,!0);u!==r.isValid&&C.state.next({isValid:u})}},ce=(n,u)=>{!e.disabled&&(k.isValidating||k.validatingFields||I.isValidating||I.validatingFields)&&((n||Array.from(d.mount)).forEach(l=>{l&&(u?F(r.validatingFields,l,u):j(r.validatingFields,l))}),C.state.next({validatingFields:r.validatingFields,isValidating:!H(r.validatingFields)}))},Xe=(n,u=[],l,p,h=!0,f=!0)=>{if(p&&l&&!e.disabled){if(o.action=!0,f&&Array.isArray(_(s,n))){const b=l(_(s,n),p.argA,p.argB);h&&F(s,n,b)}if(f&&Array.isArray(_(r.errors,n))){const b=l(_(r.errors,n),p.argA,p.argB);h&&F(r.errors,n,b),Wr(r.errors,n)}if((k.touchedFields||I.touchedFields)&&f&&Array.isArray(_(r.touchedFields,n))){const b=l(_(r.touchedFields,n),p.argA,p.argB);h&&F(r.touchedFields,n,b)}(k.dirtyFields||I.dirtyFields)&&(r.dirtyFields=Se(a,i)),C.state.next({name:n,isDirty:se(n,u),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else F(i,n,u)},E=(n,u)=>{F(r.errors,n,u),C.state.next({errors:r.errors})},oe=n=>{r.errors=n,C.state.next({errors:r.errors,isValid:!1})},re=(n,u,l,p)=>{const h=_(s,n);if(h){const f=_(i,n,M(l)?_(a,n):l);M(f)||p&&p.defaultChecked||u?F(i,n,u?f:Zt(h._f)):D(n,f),o.mount&&P()}},U=(n,u,l,p,h)=>{let f=!1,b=!1;const N={name:n};if(!e.disabled){if(!l||p){(k.isDirty||I.isDirty)&&(b=r.isDirty,r.isDirty=N.isDirty=se(),f=b!==N.isDirty);const Z=ye(_(a,n),u);b=!!_(r.dirtyFields,n),Z?j(r.dirtyFields,n):F(r.dirtyFields,n,!0),N.dirtyFields=r.dirtyFields,f=f||(k.dirtyFields||I.dirtyFields)&&b!==!Z}if(l){const Z=_(r.touchedFields,n);Z||(F(r.touchedFields,n,l),N.touchedFields=r.touchedFields,f=f||(k.touchedFields||I.touchedFields)&&Z!==l)}f&&h&&C.state.next(N)}return f?N:{}},Pe=(n,u,l,p)=>{const h=_(r.errors,n),f=(k.isValid||I.isValid)&&ie(u)&&r.isValid!==u;if(e.delayError&&l?(y=le(()=>E(n,l)),y(e.delayError)):(clearTimeout(g),y=null,l?F(r.errors,n,l):j(r.errors,n)),(l?!ye(h,l):h)||!H(p)||f){const b={...p,...f&&ie(u)?{isValid:u}:{},errors:r.errors,name:n};r={...r,...b},C.state.next(b)}},fe=async n=>{ce(n,!0);const u=await e.resolver(i,e.context,Mr(n||d.mount,s,e.criteriaMode,e.shouldUseNativeValidation));return ce(n),u},Ke=async n=>{const{errors:u}=await fe(n);if(n)for(const l of n){const p=_(u,l);p?F(r.errors,l,p):j(r.errors,l)}else r.errors=u;return u},K=async(n,u,l={valid:!0})=>{for(const p in n){const h=n[p];if(h){const{_f:f,...b}=h;if(f){const N=d.array.has(f.name),Z=h._f&&$r(h._f);Z&&k.validatingFields&&ce([f.name],!0);const Q=await Pt(h,d.disabled,i,Ne,e.shouldUseNativeValidation&&!u,N);if(Z&&k.validatingFields&&ce([f.name]),Q[f.name]&&(l.valid=!1,u))break;!u&&(_(Q,f.name)?N?qr(r.errors,Q,f.name):F(r.errors,f.name,Q[f.name]):j(r.errors,f.name))}!H(b)&&await K(b,u,l)}}return l.valid},xe=()=>{for(const n of d.unMount){const u=_(s,n);u&&(u._f.refs?u._f.refs.every(l=>!it(l)):!it(u._f.ref))&&et(n)}d.unMount=new Set},se=(n,u)=>!e.disabled&&(n&&u&&F(i,n,u),!ye(Ue(),a)),O=(n,u,l)=>Fr(n,d,{...o.mount?i:M(u)?a:Y(n)?{[n]:u}:u},l,u),R=n=>yt(_(o.mount?i:a,n,e.shouldUnregister?_(a,n,[]):[])),D=(n,u,l={})=>{const p=_(s,n);let h=u;if(p){const f=p._f;f&&(!f.disabled&&F(i,n,cr(u,f)),h=ze(f.ref)&&W(u)?"":u,dr(f.ref)?[...f.ref.options].forEach(b=>b.selected=h.includes(b.value)):f.refs?$e(f.ref)?f.refs.forEach(b=>{(!b.defaultChecked||!b.disabled)&&(Array.isArray(h)?b.checked=!!h.find(N=>N===b.value):b.checked=h===b.value||!!h)}):f.refs.forEach(b=>b.checked=b.value===h):gt(f.ref)?f.ref.value="":(f.ref.value=h,f.ref.type||C.state.next({name:n,values:B(i)})))}(l.shouldDirty||l.shouldTouch)&&U(n,h,l.shouldTouch,l.shouldDirty,!0),l.shouldValidate&&we(n)},z=(n,u,l)=>{for(const p in u){if(!u.hasOwnProperty(p))return;const h=u[p],f=n+"."+p,b=_(s,f);(d.array.has(n)||$(h)||b&&!b._f)&&!ke(h)?z(f,h,l):D(f,h,l)}},q=(n,u,l={})=>{const p=_(s,n),h=d.array.has(n),f=B(u);F(i,n,f),h?(C.array.next({name:n,values:B(i)}),(k.isDirty||k.dirtyFields||I.isDirty||I.dirtyFields)&&l.shouldDirty&&C.state.next({name:n,dirtyFields:Se(a,i),isDirty:se(n,f)})):p&&!p._f&&!W(f)?z(n,f,l):D(n,f,l),Lt(n,d)&&C.state.next({...r,name:n}),C.state.next({name:o.mount?n:void 0,values:B(i)})},ae=async n=>{o.mount=!0;const u=n.target;let l=u.name,p=!0;const h=_(s,l),f=Z=>{p=Number.isNaN(Z)||ke(Z)&&isNaN(Z.getTime())||ye(Z,_(i,l,Z))},b=Dt(e.mode),N=Dt(e.reValidateMode);if(h){let Z,Q;const Be=u.type?Zt(h._f):Cr(n),he=n.type===Et.BLUR||n.type===Et.FOCUS_OUT,wr=!Pr(h._f)&&!e.resolver&&!_(r.errors,l)&&!h._f.deps||zr(he,_(r.touchedFields,l),r.isSubmitted,N,b),st=Lt(l,d,he);F(i,l,Be),he?(!u||!u.readOnly)&&(h._f.onBlur&&h._f.onBlur(n),y&&y(0)):h._f.onChange&&h._f.onChange(n);const at=U(l,Be,he),Ar=!H(at)||st;if(!he&&C.state.next({name:l,type:n.type,values:B(i)}),wr)return(k.isValid||I.isValid)&&(e.mode==="onBlur"?he&&P():he||P()),Ar&&C.state.next({name:l,...st?{}:at});if(!he&&st&&C.state.next({...r}),e.resolver){const{errors:Ot}=await fe([l]);if(f(Be),p){const Sr=Mt(r.errors,s,l),Vt=Mt(Ot,s,Sr.name||l);Z=Vt.error,l=Vt.name,Q=H(Ot)}}else ce([l],!0),Z=(await Pt(h,d.disabled,i,Ne,e.shouldUseNativeValidation))[l],ce([l]),f(Be),p&&(Z?Q=!1:(k.isValid||I.isValid)&&(Q=await K(s,!0)));p&&(h._f.deps&&(!Array.isArray(h._f.deps)||h._f.deps.length>0)&&we(h._f.deps),Pe(l,Q,Z,at))}},Re=(n,u)=>{if(_(r.errors,u)&&n.focus)return n.focus(),1},we=async(n,u={})=>{let l,p;const h=Ze(n);if(e.resolver){const f=await Ke(M(n)?n:h);l=H(f),p=n?!h.some(b=>_(f,b)):l}else n?(p=(await Promise.all(h.map(async f=>{const b=_(s,f);return await K(b&&b._f?{[f]:b}:b)}))).every(Boolean),!(!p&&!r.isValid)&&P()):p=l=await K(s);return C.state.next({...!Y(n)||(k.isValid||I.isValid)&&l!==r.isValid?{}:{name:n},...e.resolver||!n?{isValid:l}:{},errors:r.errors}),u.shouldFocus&&!p&&De(s,Re,n?h:d.mount),p},Ue=(n,u)=>{let l={...o.mount?i:a};return u&&(l=or(u.dirtyFields?r.dirtyFields:r.touchedFields,l)),M(n)?l:Y(n)?_(l,n):n.map(p=>_(l,p))},xt=(n,u)=>({invalid:!!_((u||r).errors,n),isDirty:!!_((u||r).dirtyFields,n),error:_((u||r).errors,n),isValidating:!!_(r.validatingFields,n),isTouched:!!_((u||r).touchedFields,n)}),pr=n=>{n&&Ze(n).forEach(u=>j(r.errors,u)),C.state.next({errors:n?r.errors:{}})},kt=(n,u,l)=>{const p=(_(s,n,{_f:{}})._f||{}).ref,h=_(r.errors,n)||{},{ref:f,message:b,type:N,...Z}=h;F(r.errors,n,{...Z,...u,ref:p}),C.state.next({name:n,errors:r.errors,isValid:!1}),l&&l.shouldFocus&&p&&p.focus&&p.focus()},gr=(n,u)=>te(n)?C.state.subscribe({next:l=>"values"in l&&n(O(void 0,u),l)}):O(n,u,!0),bt=n=>C.state.subscribe({next:u=>{Br(n.name,u.name,n.exact)&&Ur(u,n.formState||k,br,n.reRenderRoot)&&n.callback({values:{...i},...r,...u,defaultValues:a})}}).unsubscribe,_r=n=>(o.mount=!0,I={...I,...n.formState},bt({...n,formState:I})),et=(n,u={})=>{for(const l of n?Ze(n):d.mount)d.mount.delete(l),d.array.delete(l),u.keepValue||(j(s,l),j(i,l)),!u.keepError&&j(r.errors,l),!u.keepDirty&&j(r.dirtyFields,l),!u.keepTouched&&j(r.touchedFields,l),!u.keepIsValidating&&j(r.validatingFields,l),!e.shouldUnregister&&!u.keepDefaultValue&&j(a,l);C.state.next({values:B(i)}),C.state.next({...r,...u.keepDirty?{isDirty:se()}:{}}),!u.keepIsValid&&P()},wt=({disabled:n,name:u})=>{(ie(n)&&o.mount||n||d.disabled.has(u))&&(n?d.disabled.add(u):d.disabled.delete(u))},tt=(n,u={})=>{let l=_(s,n);const p=ie(u.disabled)||ie(e.disabled);return F(s,n,{...l||{},_f:{...l&&l._f?l._f:{ref:{name:n}},name:n,mount:!0,...u}}),d.mount.add(n),l?wt({disabled:ie(u.disabled)?u.disabled:e.disabled,name:n}):re(n,!0,u.value),{...p?{disabled:u.disabled||e.disabled}:{},...e.progressive?{required:!!u.required,min:Fe(u.min),max:Fe(u.max),minLength:Fe(u.minLength),maxLength:Fe(u.maxLength),pattern:Fe(u.pattern)}:{},name:n,onChange:ae,onBlur:ae,ref:h=>{if(h){tt(n,u),l=_(s,n);const f=M(h.value)&&h.querySelectorAll&&h.querySelectorAll("input,select,textarea")[0]||h,b=Zr(f),N=l._f.refs||[];if(b?N.find(Z=>Z===f):f===l._f.ref)return;F(s,n,{_f:{...l._f,...b?{refs:[...N.filter(it),f,...Array.isArray(_(a,n))?[{}]:[]],ref:{type:f.type,name:n}}:{ref:f}}}),re(n,!1,void 0,f)}else l=_(s,n,{}),l._f&&(l._f.mount=!1),(e.shouldUnregister||u.shouldUnregister)&&!(Or(d.array,n)&&o.action)&&d.unMount.add(n)}}},rt=()=>e.shouldFocusError&&De(s,Re,d.mount),vr=n=>{ie(n)&&(C.state.next({disabled:n}),De(s,(u,l)=>{const p=_(s,l);p&&(u.disabled=p._f.disabled||n,Array.isArray(p._f.refs)&&p._f.refs.forEach(h=>{h.disabled=p._f.disabled||n}))},0,!1))},At=(n,u)=>async l=>{let p;l&&(l.preventDefault&&l.preventDefault(),l.persist&&l.persist());let h=B(i);if(C.state.next({isSubmitting:!0}),e.resolver){const{errors:f,values:b}=await fe();r.errors=f,h=B(b)}else await K(s);if(d.disabled.size)for(const f of d.disabled)j(h,f);if(j(r.errors,"root"),H(r.errors)){C.state.next({errors:{}});try{await n(h,l)}catch(f){p=f}}else u&&await u({...r.errors},l),rt(),setTimeout(rt);if(C.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:H(r.errors)&&!p,submitCount:r.submitCount+1,errors:r.errors}),p)throw p},xr=(n,u={})=>{_(s,n)&&(M(u.defaultValue)?q(n,B(_(a,n))):(q(n,u.defaultValue),F(a,n,B(u.defaultValue))),u.keepTouched||j(r.touchedFields,n),u.keepDirty||(j(r.dirtyFields,n),r.isDirty=u.defaultValue?se(n,B(_(a,n))):se()),u.keepError||(j(r.errors,n),k.isValid&&P()),C.state.next({...r}))},St=(n,u={})=>{const l=n?B(n):a,p=B(l),h=H(n),f=h?a:p;if(u.keepDefaultValues||(a=l),!u.keepValues){if(u.keepDirtyValues){const b=new Set([...d.mount,...Object.keys(Se(a,i))]);for(const N of Array.from(b))_(r.dirtyFields,N)?F(f,N,_(i,N)):q(N,_(f,N))}else{if(mt&&M(n))for(const b of d.mount){const N=_(s,b);if(N&&N._f){const Z=Array.isArray(N._f.refs)?N._f.refs[0]:N._f.ref;if(ze(Z)){const Q=Z.closest("form");if(Q){Q.reset();break}}}}if(u.keepFieldsRef)for(const b of d.mount)q(b,_(f,b));else s={}}i=e.shouldUnregister?u.keepDefaultValues?B(a):{}:B(f),C.array.next({values:{...f}}),C.state.next({values:{...f}})}d={mount:u.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!k.isValid||!!u.keepIsValid||!!u.keepDirtyValues,o.watch=!!e.shouldUnregister,C.state.next({submitCount:u.keepSubmitCount?r.submitCount:0,isDirty:h?!1:u.keepDirty?r.isDirty:!!(u.keepDefaultValues&&!ye(n,a)),isSubmitted:u.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:h?{}:u.keepDirtyValues?u.keepDefaultValues&&i?Se(a,i):r.dirtyFields:u.keepDefaultValues&&n?Se(a,n):u.keepDirty?r.dirtyFields:{},touchedFields:u.keepTouched?r.touchedFields:{},errors:u.keepErrors?r.errors:{},isSubmitSuccessful:u.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:a})},Ct=(n,u)=>St(te(n)?n(i):n,u),kr=(n,u={})=>{const l=_(s,n),p=l&&l._f;if(p){const h=p.refs?p.refs[0]:p.ref;h.focus&&(h.focus(),u.shouldSelect&&te(h.select)&&h.select())}},br=n=>{r={...r,...n}},Tt={control:{register:tt,unregister:et,getFieldState:xt,handleSubmit:At,setError:kt,_subscribe:bt,_runSchema:fe,_focusError:rt,_getWatch:O,_getDirty:se,_setValid:P,_setFieldArray:Xe,_setDisabledField:wt,_setErrors:oe,_getFieldArray:R,_reset:St,_resetDefaultValues:()=>te(e.defaultValues)&&e.defaultValues().then(n=>{Ct(n,e.resetOptions),C.state.next({isLoading:!1})}),_removeUnmounted:xe,_disableForm:vr,_subjects:C,_proxyFormState:k,get _fields(){return s},get _formValues(){return i},get _state(){return o},set _state(n){o=n},get _defaultValues(){return a},get _names(){return d},set _names(n){d=n},get _formState(){return r},get _options(){return e},set _options(n){e={...e,...n}}},subscribe:_r,trigger:we,register:tt,handleSubmit:At,watch:gr,setValue:q,getValues:Ue,reset:Ct,resetField:xr,clearErrors:pr,unregister:et,setError:kt,setFocus:kr,getFieldState:xt};return{...Tt,formControl:Tt}}function Ss(t={}){const e=J.useRef(void 0),r=J.useRef(void 0),[s,a]=J.useState({isDirty:!1,isValidating:!1,isLoading:te(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1,isReady:!1,defaultValues:te(t.defaultValues)?void 0:t.defaultValues});if(!e.current)if(t.formControl)e.current={...t.formControl,formState:s},t.defaultValues&&!te(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions);else{const{formControl:o,...d}=Jr(t);e.current={...d,formState:s}}const i=e.current.control;return i._options=t,Rr(()=>{const o=i._subscribe({formState:i._proxyFormState,callback:()=>a({...i._formState}),reRenderRoot:!0});return a(d=>({...d,isReady:!0})),i._formState.isReady=!0,o},[i]),J.useEffect(()=>i._disableForm(t.disabled),[i,t.disabled]),J.useEffect(()=>{t.mode&&(i._options.mode=t.mode),t.reValidateMode&&(i._options.reValidateMode=t.reValidateMode)},[i,t.mode,t.reValidateMode]),J.useEffect(()=>{t.errors&&(i._setErrors(t.errors),i._focusError())},[i,t.errors]),J.useEffect(()=>{t.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,t.shouldUnregister]),J.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==s.isDirty&&i._subjects.state.next({isDirty:o})}},[i,s.isDirty]),J.useEffect(()=>{t.values&&!ye(t.values,r.current)?(i._reset(t.values,{keepFieldsRef:!0,...i._options.resetOptions}),r.current=t.values,a(o=>({...o}))):i._resetDefaultValues()},[i,t.values]),J.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),e.current.formState=Nr(s,i),e.current}const Ut=(t,e,r)=>{if(t&&"reportValidity"in t){const s=_(r,e);t.setCustomValidity(s&&s.message||""),t.reportValidity()}},Yr=(t,e)=>{for(const r in e.fields){const s=e.fields[r];s&&s.ref&&"reportValidity"in s.ref?Ut(s.ref,r,t):s&&s.refs&&s.refs.forEach(a=>Ut(a,r,t))}},Cs=(t,e)=>{e.shouldUseNativeValidation&&Yr(t,e);const r={};for(const s in t){const a=_(e.fields,s),i=Object.assign(t[s]||{},{ref:a&&a.ref});if(Gr(e.names||Object.keys(t),s)){const o=Object.assign({},_(r,s));F(o,"root",i),F(r,s,o)}else F(r,s,i)}return r},Gr=(t,e)=>{const r=Bt(e);return t.some(s=>Bt(s).match(`^${r}\\.\\d+`))};function Bt(t){return t.replace(/\]|\[/g,"")}var V;(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function r(a){throw new Error}t.assertNever=r,t.arrayToEnum=a=>{const i={};for(const o of a)i[o]=o;return i},t.getValidEnumValues=a=>{const i=t.objectKeys(a).filter(d=>typeof a[a[d]]!="number"),o={};for(const d of i)o[d]=a[d];return t.objectValues(o)},t.objectValues=a=>t.objectKeys(a).map(function(i){return a[i]}),t.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&i.push(o);return i},t.find=(a,i)=>{for(const o of a)if(i(o))return o},t.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function s(a,i=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}t.joinValues=s,t.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(V||(V={}));var zt;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(zt||(zt={}));const v=V.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),me=t=>{switch(typeof t){case"undefined":return v.undefined;case"string":return v.string;case"number":return Number.isNaN(t)?v.nan:v.number;case"boolean":return v.boolean;case"function":return v.function;case"bigint":return v.bigint;case"symbol":return v.symbol;case"object":return Array.isArray(t)?v.array:t===null?v.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?v.promise:typeof Map<"u"&&t instanceof Map?v.map:typeof Set<"u"&&t instanceof Set?v.set:typeof Date<"u"&&t instanceof Date?v.date:v.object;default:return v.unknown}},c=V.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ue extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){const r=e||function(i){return i.message},s={_errors:[]},a=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)s._errors.push(r(o));else{let d=s,y=0;for(;yr.message){const r={},s=[];for(const a of this.issues)if(a.path.length>0){const i=a.path[0];r[i]=r[i]||[],r[i].push(e(a))}else s.push(e(a));return{formErrors:s,fieldErrors:r}}get formErrors(){return this.flatten()}}ue.create=t=>new ue(t);const ut=(t,e)=>{let r;switch(t.code){case c.invalid_type:t.received===v.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case c.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,V.jsonStringifyReplacer)}`;break;case c.unrecognized_keys:r=`Unrecognized key(s) in object: ${V.joinValues(t.keys,", ")}`;break;case c.invalid_union:r="Invalid input";break;case c.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${V.joinValues(t.options)}`;break;case c.invalid_enum_value:r=`Invalid enum value. Expected ${V.joinValues(t.options)}, received '${t.received}'`;break;case c.invalid_arguments:r="Invalid function arguments";break;case c.invalid_return_type:r="Invalid function return type";break;case c.invalid_date:r="Invalid date";break;case c.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:V.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case c.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case c.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case c.custom:r="Invalid input";break;case c.invalid_intersection_types:r="Intersection results could not be merged";break;case c.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case c.not_finite:r="Number must be finite";break;default:r=e.defaultError,V.assertNever(t)}return{message:r}};let Qr=ut;function Xr(){return Qr}const Kr=t=>{const{data:e,path:r,errorMaps:s,issueData:a}=t,i=[...r,...a.path||[]],o={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let d="";const y=s.filter(g=>!!g).slice().reverse();for(const g of y)d=g(o,{data:e,defaultError:d}).message;return{...a,path:i,message:d}};function m(t,e){const r=Xr(),s=Kr({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===ut?void 0:ut].filter(a=>!!a)});t.common.issues.push(s)}class G{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){const s=[];for(const a of r){if(a.status==="aborted")return w;a.status==="dirty"&&e.dirty(),s.push(a.value)}return{status:e.value,value:s}}static async mergeObjectAsync(e,r){const s=[];for(const a of r){const i=await a.key,o=await a.value;s.push({key:i,value:o})}return G.mergeObjectSync(e,s)}static mergeObjectSync(e,r){const s={};for(const a of r){const{key:i,value:o}=a;if(i.status==="aborted"||o.status==="aborted")return w;i.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(s[i.value]=o.value)}return{status:e.value,value:s}}}const w=Object.freeze({status:"aborted"}),Ie=t=>({status:"dirty",value:t}),X=t=>({status:"valid",value:t}),Wt=t=>t.status==="aborted",qt=t=>t.status==="dirty",Te=t=>t.status==="valid",qe=t=>typeof Promise<"u"&&t instanceof Promise;var x;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(x||(x={}));class _e{constructor(e,r,s,a){this._cachedPath=[],this.parent=e,this.data=r,this._path=s,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Ht=(t,e)=>{if(Te(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new ue(t.common.issues);return this._error=r,this._error}}};function S(t){if(!t)return{};const{errorMap:e,invalid_type_error:r,required_error:s,description:a}=t;if(e&&(r||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(o,d)=>{const{message:y}=t;return o.code==="invalid_enum_value"?{message:y??d.defaultError}:typeof d.data>"u"?{message:y??s??d.defaultError}:o.code!=="invalid_type"?{message:d.defaultError}:{message:y??r??d.defaultError}},description:a}}class T{get description(){return this._def.description}_getType(e){return me(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:me(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new G,ctx:{common:e.parent.common,data:e.data,parsedType:me(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const r=this._parse(e);if(qe(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){const r=this._parse(e);return Promise.resolve(r)}parse(e,r){const s=this.safeParse(e,r);if(s.success)return s.data;throw s.error}safeParse(e,r){const s={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:me(e)},a=this._parseSync({data:e,path:s.path,parent:s});return Ht(s,a)}"~validate"(e){const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:me(e)};if(!this["~standard"].async)try{const s=this._parseSync({data:e,path:[],parent:r});return Te(s)?{value:s.value}:{issues:r.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(s=>Te(s)?{value:s.value}:{issues:r.common.issues})}async parseAsync(e,r){const s=await this.safeParseAsync(e,r);if(s.success)return s.data;throw s.error}async safeParseAsync(e,r){const s={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:me(e)},a=this._parse({data:e,path:s.path,parent:s}),i=await(qe(a)?a:Promise.resolve(a));return Ht(s,i)}refine(e,r){const s=a=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(a):r;return this._refinement((a,i)=>{const o=e(a),d=()=>i.addIssue({code:c.custom,...s(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(y=>y?!0:(d(),!1)):o?!0:(d(),!1)})}refinement(e,r){return this._refinement((s,a)=>e(s)?!0:(a.addIssue(typeof r=="function"?r(s,a):r),!1))}_refinement(e){return new Ve({schema:this,typeName:A.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return ge.create(this,this._def)}nullable(){return Ee.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ne.create(this)}promise(){return Ge.create(this,this._def)}or(e){return Je.create([this,e],this._def)}and(e){return Ye.create(this,e,this._def)}transform(e){return new Ve({...S(this._def),schema:this,typeName:A.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new ct({...S(this._def),innerType:this,defaultValue:r,typeName:A.ZodDefault})}brand(){return new bs({typeName:A.ZodBranded,type:this,...S(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new ft({...S(this._def),innerType:this,catchValue:r,typeName:A.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return vt.create(this,e)}readonly(){return ht.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const es=/^c[^\s-]{8,}$/i,ts=/^[0-9a-z]+$/,rs=/^[0-9A-HJKMNP-TV-Z]{26}$/i,ss=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,as=/^[a-z0-9_-]{21}$/i,is=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ns=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,os=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ds="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let nt;const us=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ls=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,cs=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,fs=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,hs=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ms=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,hr="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ys=new RegExp(`^${hr}$`);function mr(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function ps(t){return new RegExp(`^${mr(t)}$`)}function gs(t){let e=`${hr}T${mr(t)}`;const r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function _s(t,e){return!!((e==="v4"||!e)&&us.test(t)||(e==="v6"||!e)&&cs.test(t))}function vs(t,e){if(!is.test(t))return!1;try{const[r]=t.split(".");if(!r)return!1;const s=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),a=JSON.parse(atob(s));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function xs(t,e){return!!((e==="v4"||!e)&&ls.test(t)||(e==="v6"||!e)&&fs.test(t))}class pe extends T{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==v.string){const i=this._getOrReturnCtx(e);return m(i,{code:c.invalid_type,expected:v.string,received:i.parsedType}),w}const s=new G;let a;for(const i of this._def.checks)if(i.kind==="min")e.data.lengthi.value&&(a=this._getOrReturnCtx(e,a),m(a,{code:c.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="length"){const o=e.data.length>i.value,d=e.data.lengthe.test(a),{validation:r,code:c.invalid_string,...x.errToObj(s)})}_addCheck(e){return new pe({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...x.errToObj(e)})}url(e){return this._addCheck({kind:"url",...x.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...x.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...x.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...x.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...x.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...x.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...x.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...x.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...x.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...x.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...x.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...x.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...x.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...x.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...x.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...x.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...x.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...x.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...x.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...x.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...x.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...x.errToObj(r)})}nonempty(e){return this.min(1,x.errToObj(e))}trim(){return new pe({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new pe({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new pe({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew pe({checks:[],typeName:A.ZodString,coerce:t?.coerce??!1,...S(t)});function ks(t,e){const r=(t.toString().split(".")[1]||"").length,s=(e.toString().split(".")[1]||"").length,a=r>s?r:s,i=Number.parseInt(t.toFixed(a).replace(".","")),o=Number.parseInt(e.toFixed(a).replace(".",""));return i%o/10**a}class je extends T{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==v.number){const i=this._getOrReturnCtx(e);return m(i,{code:c.invalid_type,expected:v.number,received:i.parsedType}),w}let s;const a=new G;for(const i of this._def.checks)i.kind==="int"?V.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),m(s,{code:c.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?e.datai.value:e.data>=i.value)&&(s=this._getOrReturnCtx(e,s),m(s,{code:c.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?ks(e.data,i.value)!==0&&(s=this._getOrReturnCtx(e,s),m(s,{code:c.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(s=this._getOrReturnCtx(e,s),m(s,{code:c.not_finite,message:i.message}),a.dirty()):V.assertNever(i);return{status:a.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,x.toString(r))}gt(e,r){return this.setLimit("min",e,!1,x.toString(r))}lte(e,r){return this.setLimit("max",e,!0,x.toString(r))}lt(e,r){return this.setLimit("max",e,!1,x.toString(r))}setLimit(e,r,s,a){return new je({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:s,message:x.toString(a)}]})}_addCheck(e){return new je({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:x.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:x.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:x.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:x.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:x.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:x.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:x.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:x.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:x.toString(e)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.valuee.kind==="int"||e.kind==="multipleOf"&&V.isInteger(e.value))}get isFinite(){let e=null,r=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(r===null||s.value>r)&&(r=s.value):s.kind==="max"&&(e===null||s.valuenew je({checks:[],typeName:A.ZodNumber,coerce:t?.coerce||!1,...S(t)});class Le extends T{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==v.bigint)return this._getInvalidInput(e);let s;const a=new G;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?e.datai.value:e.data>=i.value)&&(s=this._getOrReturnCtx(e,s),m(s,{code:c.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(s=this._getOrReturnCtx(e,s),m(s,{code:c.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):V.assertNever(i);return{status:a.value,value:e.data}}_getInvalidInput(e){const r=this._getOrReturnCtx(e);return m(r,{code:c.invalid_type,expected:v.bigint,received:r.parsedType}),w}gte(e,r){return this.setLimit("min",e,!0,x.toString(r))}gt(e,r){return this.setLimit("min",e,!1,x.toString(r))}lte(e,r){return this.setLimit("max",e,!0,x.toString(r))}lt(e,r){return this.setLimit("max",e,!1,x.toString(r))}setLimit(e,r,s,a){return new Le({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:s,message:x.toString(a)}]})}_addCheck(e){return new Le({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:x.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:x.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:x.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:x.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:x.toString(r)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew Le({checks:[],typeName:A.ZodBigInt,coerce:t?.coerce??!1,...S(t)});class Jt extends T{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==v.boolean){const s=this._getOrReturnCtx(e);return m(s,{code:c.invalid_type,expected:v.boolean,received:s.parsedType}),w}return X(e.data)}}Jt.create=t=>new Jt({typeName:A.ZodBoolean,coerce:t?.coerce||!1,...S(t)});class He extends T{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==v.date){const i=this._getOrReturnCtx(e);return m(i,{code:c.invalid_type,expected:v.date,received:i.parsedType}),w}if(Number.isNaN(e.data.getTime())){const i=this._getOrReturnCtx(e);return m(i,{code:c.invalid_date}),w}const s=new G;let a;for(const i of this._def.checks)i.kind==="min"?e.data.getTime()i.value&&(a=this._getOrReturnCtx(e,a),m(a,{code:c.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),s.dirty()):V.assertNever(i);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new He({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:x.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:x.toString(r)})}get minDate(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew He({checks:[],coerce:t?.coerce||!1,typeName:A.ZodDate,...S(t)});class Yt extends T{_parse(e){if(this._getType(e)!==v.symbol){const s=this._getOrReturnCtx(e);return m(s,{code:c.invalid_type,expected:v.symbol,received:s.parsedType}),w}return X(e.data)}}Yt.create=t=>new Yt({typeName:A.ZodSymbol,...S(t)});class Gt extends T{_parse(e){if(this._getType(e)!==v.undefined){const s=this._getOrReturnCtx(e);return m(s,{code:c.invalid_type,expected:v.undefined,received:s.parsedType}),w}return X(e.data)}}Gt.create=t=>new Gt({typeName:A.ZodUndefined,...S(t)});class Qt extends T{_parse(e){if(this._getType(e)!==v.null){const s=this._getOrReturnCtx(e);return m(s,{code:c.invalid_type,expected:v.null,received:s.parsedType}),w}return X(e.data)}}Qt.create=t=>new Qt({typeName:A.ZodNull,...S(t)});class Xt extends T{constructor(){super(...arguments),this._any=!0}_parse(e){return X(e.data)}}Xt.create=t=>new Xt({typeName:A.ZodAny,...S(t)});class Kt extends T{constructor(){super(...arguments),this._unknown=!0}_parse(e){return X(e.data)}}Kt.create=t=>new Kt({typeName:A.ZodUnknown,...S(t)});class ve extends T{_parse(e){const r=this._getOrReturnCtx(e);return m(r,{code:c.invalid_type,expected:v.never,received:r.parsedType}),w}}ve.create=t=>new ve({typeName:A.ZodNever,...S(t)});class er extends T{_parse(e){if(this._getType(e)!==v.undefined){const s=this._getOrReturnCtx(e);return m(s,{code:c.invalid_type,expected:v.void,received:s.parsedType}),w}return X(e.data)}}er.create=t=>new er({typeName:A.ZodVoid,...S(t)});class ne extends T{_parse(e){const{ctx:r,status:s}=this._processInputParams(e),a=this._def;if(r.parsedType!==v.array)return m(r,{code:c.invalid_type,expected:v.array,received:r.parsedType}),w;if(a.exactLength!==null){const o=r.data.length>a.exactLength.value,d=r.data.lengtha.maxLength.value&&(m(r,{code:c.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),s.dirty()),r.common.async)return Promise.all([...r.data].map((o,d)=>a.type._parseAsync(new _e(r,o,r.path,d)))).then(o=>G.mergeArray(s,o));const i=[...r.data].map((o,d)=>a.type._parseSync(new _e(r,o,r.path,d)));return G.mergeArray(s,i)}get element(){return this._def.type}min(e,r){return new ne({...this._def,minLength:{value:e,message:x.toString(r)}})}max(e,r){return new ne({...this._def,maxLength:{value:e,message:x.toString(r)}})}length(e,r){return new ne({...this._def,exactLength:{value:e,message:x.toString(r)}})}nonempty(e){return this.min(1,e)}}ne.create=(t,e)=>new ne({type:t,minLength:null,maxLength:null,exactLength:null,typeName:A.ZodArray,...S(e)});function Ce(t){if(t instanceof L){const e={};for(const r in t.shape){const s=t.shape[r];e[r]=ge.create(Ce(s))}return new L({...t._def,shape:()=>e})}else return t instanceof ne?new ne({...t._def,type:Ce(t.element)}):t instanceof ge?ge.create(Ce(t.unwrap())):t instanceof Ee?Ee.create(Ce(t.unwrap())):t instanceof be?be.create(t.items.map(e=>Ce(e))):t}class L extends T{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),r=V.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==v.object){const g=this._getOrReturnCtx(e);return m(g,{code:c.invalid_type,expected:v.object,received:g.parsedType}),w}const{status:s,ctx:a}=this._processInputParams(e),{shape:i,keys:o}=this._getCached(),d=[];if(!(this._def.catchall instanceof ve&&this._def.unknownKeys==="strip"))for(const g in a.data)o.includes(g)||d.push(g);const y=[];for(const g of o){const k=i[g],I=a.data[g];y.push({key:{status:"valid",value:g},value:k._parse(new _e(a,I,a.path,g)),alwaysSet:g in a.data})}if(this._def.catchall instanceof ve){const g=this._def.unknownKeys;if(g==="passthrough")for(const k of d)y.push({key:{status:"valid",value:k},value:{status:"valid",value:a.data[k]}});else if(g==="strict")d.length>0&&(m(a,{code:c.unrecognized_keys,keys:d}),s.dirty());else if(g!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const g=this._def.catchall;for(const k of d){const I=a.data[k];y.push({key:{status:"valid",value:k},value:g._parse(new _e(a,I,a.path,k)),alwaysSet:k in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const g=[];for(const k of y){const I=await k.key,C=await k.value;g.push({key:I,value:C,alwaysSet:k.alwaysSet})}return g}).then(g=>G.mergeObjectSync(s,g)):G.mergeObjectSync(s,y)}get shape(){return this._def.shape()}strict(e){return x.errToObj,new L({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,s)=>{const a=this._def.errorMap?.(r,s).message??s.defaultError;return r.code==="unrecognized_keys"?{message:x.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new L({...this._def,unknownKeys:"strip"})}passthrough(){return new L({...this._def,unknownKeys:"passthrough"})}extend(e){return new L({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new L({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:A.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new L({...this._def,catchall:e})}pick(e){const r={};for(const s of V.objectKeys(e))e[s]&&this.shape[s]&&(r[s]=this.shape[s]);return new L({...this._def,shape:()=>r})}omit(e){const r={};for(const s of V.objectKeys(this.shape))e[s]||(r[s]=this.shape[s]);return new L({...this._def,shape:()=>r})}deepPartial(){return Ce(this)}partial(e){const r={};for(const s of V.objectKeys(this.shape)){const a=this.shape[s];e&&!e[s]?r[s]=a:r[s]=a.optional()}return new L({...this._def,shape:()=>r})}required(e){const r={};for(const s of V.objectKeys(this.shape))if(e&&!e[s])r[s]=this.shape[s];else{let i=this.shape[s];for(;i instanceof ge;)i=i._def.innerType;r[s]=i}return new L({...this._def,shape:()=>r})}keyof(){return yr(V.objectKeys(this.shape))}}L.create=(t,e)=>new L({shape:()=>t,unknownKeys:"strip",catchall:ve.create(),typeName:A.ZodObject,...S(e)});L.strictCreate=(t,e)=>new L({shape:()=>t,unknownKeys:"strict",catchall:ve.create(),typeName:A.ZodObject,...S(e)});L.lazycreate=(t,e)=>new L({shape:t,unknownKeys:"strip",catchall:ve.create(),typeName:A.ZodObject,...S(e)});class Je extends T{_parse(e){const{ctx:r}=this._processInputParams(e),s=this._def.options;function a(i){for(const d of i)if(d.result.status==="valid")return d.result;for(const d of i)if(d.result.status==="dirty")return r.common.issues.push(...d.ctx.common.issues),d.result;const o=i.map(d=>new ue(d.ctx.common.issues));return m(r,{code:c.invalid_union,unionErrors:o}),w}if(r.common.async)return Promise.all(s.map(async i=>{const o={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(a);{let i;const o=[];for(const y of s){const g={...r,common:{...r.common,issues:[]},parent:null},k=y._parseSync({data:r.data,path:r.path,parent:g});if(k.status==="valid")return k;k.status==="dirty"&&!i&&(i={result:k,ctx:g}),g.common.issues.length&&o.push(g.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;const d=o.map(y=>new ue(y));return m(r,{code:c.invalid_union,unionErrors:d}),w}}get options(){return this._def.options}}Je.create=(t,e)=>new Je({options:t,typeName:A.ZodUnion,...S(e)});function lt(t,e){const r=me(t),s=me(e);if(t===e)return{valid:!0,data:t};if(r===v.object&&s===v.object){const a=V.objectKeys(e),i=V.objectKeys(t).filter(d=>a.indexOf(d)!==-1),o={...t,...e};for(const d of i){const y=lt(t[d],e[d]);if(!y.valid)return{valid:!1};o[d]=y.data}return{valid:!0,data:o}}else if(r===v.array&&s===v.array){if(t.length!==e.length)return{valid:!1};const a=[];for(let i=0;i{if(Wt(i)||Wt(o))return w;const d=lt(i.value,o.value);return d.valid?((qt(i)||qt(o))&&r.dirty(),{status:r.value,value:d.data}):(m(s,{code:c.invalid_intersection_types}),w)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>a(i,o)):a(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}Ye.create=(t,e,r)=>new Ye({left:t,right:e,typeName:A.ZodIntersection,...S(r)});class be extends T{_parse(e){const{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==v.array)return m(s,{code:c.invalid_type,expected:v.array,received:s.parsedType}),w;if(s.data.lengththis._def.items.length&&(m(s,{code:c.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const i=[...s.data].map((o,d)=>{const y=this._def.items[d]||this._def.rest;return y?y._parse(new _e(s,o,s.path,d)):null}).filter(o=>!!o);return s.common.async?Promise.all(i).then(o=>G.mergeArray(r,o)):G.mergeArray(r,i)}get items(){return this._def.items}rest(e){return new be({...this._def,rest:e})}}be.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new be({items:t,typeName:A.ZodTuple,rest:null,...S(e)})};class tr extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==v.map)return m(s,{code:c.invalid_type,expected:v.map,received:s.parsedType}),w;const a=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([d,y],g)=>({key:a._parse(new _e(s,d,s.path,[g,"key"])),value:i._parse(new _e(s,y,s.path,[g,"value"]))}));if(s.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const y of o){const g=await y.key,k=await y.value;if(g.status==="aborted"||k.status==="aborted")return w;(g.status==="dirty"||k.status==="dirty")&&r.dirty(),d.set(g.value,k.value)}return{status:r.value,value:d}})}else{const d=new Map;for(const y of o){const g=y.key,k=y.value;if(g.status==="aborted"||k.status==="aborted")return w;(g.status==="dirty"||k.status==="dirty")&&r.dirty(),d.set(g.value,k.value)}return{status:r.value,value:d}}}}tr.create=(t,e,r)=>new tr({valueType:e,keyType:t,typeName:A.ZodMap,...S(r)});class Me extends T{_parse(e){const{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==v.set)return m(s,{code:c.invalid_type,expected:v.set,received:s.parsedType}),w;const a=this._def;a.minSize!==null&&s.data.sizea.maxSize.value&&(m(s,{code:c.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());const i=this._def.valueType;function o(y){const g=new Set;for(const k of y){if(k.status==="aborted")return w;k.status==="dirty"&&r.dirty(),g.add(k.value)}return{status:r.value,value:g}}const d=[...s.data.values()].map((y,g)=>i._parse(new _e(s,y,s.path,g)));return s.common.async?Promise.all(d).then(y=>o(y)):o(d)}min(e,r){return new Me({...this._def,minSize:{value:e,message:x.toString(r)}})}max(e,r){return new Me({...this._def,maxSize:{value:e,message:x.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}}Me.create=(t,e)=>new Me({valueType:t,minSize:null,maxSize:null,typeName:A.ZodSet,...S(e)});class rr extends T{get schema(){return this._def.getter()}_parse(e){const{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}rr.create=(t,e)=>new rr({getter:t,typeName:A.ZodLazy,...S(e)});class sr extends T{_parse(e){if(e.data!==this._def.value){const r=this._getOrReturnCtx(e);return m(r,{received:r.data,code:c.invalid_literal,expected:this._def.value}),w}return{status:"valid",value:e.data}}get value(){return this._def.value}}sr.create=(t,e)=>new sr({value:t,typeName:A.ZodLiteral,...S(e)});function yr(t,e){return new Oe({values:t,typeName:A.ZodEnum,...S(e)})}class Oe extends T{_parse(e){if(typeof e.data!="string"){const r=this._getOrReturnCtx(e),s=this._def.values;return m(r,{expected:V.joinValues(s),received:r.parsedType,code:c.invalid_type}),w}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const r=this._getOrReturnCtx(e),s=this._def.values;return m(r,{received:r.data,code:c.invalid_enum_value,options:s}),w}return X(e.data)}get options(){return this._def.values}get enum(){const e={};for(const r of this._def.values)e[r]=r;return e}get Values(){const e={};for(const r of this._def.values)e[r]=r;return e}get Enum(){const e={};for(const r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return Oe.create(e,{...this._def,...r})}exclude(e,r=this._def){return Oe.create(this.options.filter(s=>!e.includes(s)),{...this._def,...r})}}Oe.create=yr;class ar extends T{_parse(e){const r=V.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==v.string&&s.parsedType!==v.number){const a=V.objectValues(r);return m(s,{expected:V.joinValues(a),received:s.parsedType,code:c.invalid_type}),w}if(this._cache||(this._cache=new Set(V.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const a=V.objectValues(r);return m(s,{received:s.data,code:c.invalid_enum_value,options:a}),w}return X(e.data)}get enum(){return this._def.values}}ar.create=(t,e)=>new ar({values:t,typeName:A.ZodNativeEnum,...S(e)});class Ge extends T{unwrap(){return this._def.type}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==v.promise&&r.common.async===!1)return m(r,{code:c.invalid_type,expected:v.promise,received:r.parsedType}),w;const s=r.parsedType===v.promise?r.data:Promise.resolve(r.data);return X(s.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Ge.create=(t,e)=>new Ge({type:t,typeName:A.ZodPromise,...S(e)});class Ve extends T{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===A.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:r,ctx:s}=this._processInputParams(e),a=this._def.effect||null,i={addIssue:o=>{m(s,o),o.fatal?r.abort():r.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const o=a.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async d=>{if(r.value==="aborted")return w;const y=await this._def.schema._parseAsync({data:d,path:s.path,parent:s});return y.status==="aborted"?w:y.status==="dirty"||r.value==="dirty"?Ie(y.value):y});{if(r.value==="aborted")return w;const d=this._def.schema._parseSync({data:o,path:s.path,parent:s});return d.status==="aborted"?w:d.status==="dirty"||r.value==="dirty"?Ie(d.value):d}}if(a.type==="refinement"){const o=d=>{const y=a.refinement(d,i);if(s.common.async)return Promise.resolve(y);if(y instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return d.status==="aborted"?w:(d.status==="dirty"&&r.dirty(),o(d.value),{status:r.value,value:d.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>d.status==="aborted"?w:(d.status==="dirty"&&r.dirty(),o(d.value).then(()=>({status:r.value,value:d.value}))))}if(a.type==="transform")if(s.common.async===!1){const o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Te(o))return w;const d=a.transform(o.value,i);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:d}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>Te(o)?Promise.resolve(a.transform(o.value,i)).then(d=>({status:r.value,value:d})):w);V.assertNever(a)}}Ve.create=(t,e,r)=>new Ve({schema:t,typeName:A.ZodEffects,effect:e,...S(r)});Ve.createWithPreprocess=(t,e,r)=>new Ve({schema:e,effect:{type:"preprocess",transform:t},typeName:A.ZodEffects,...S(r)});class ge extends T{_parse(e){return this._getType(e)===v.undefined?X(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ge.create=(t,e)=>new ge({innerType:t,typeName:A.ZodOptional,...S(e)});class Ee extends T{_parse(e){return this._getType(e)===v.null?X(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ee.create=(t,e)=>new Ee({innerType:t,typeName:A.ZodNullable,...S(e)});class ct extends T{_parse(e){const{ctx:r}=this._processInputParams(e);let s=r.data;return r.parsedType===v.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}ct.create=(t,e)=>new ct({innerType:t,typeName:A.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...S(e)});class ft extends T{_parse(e){const{ctx:r}=this._processInputParams(e),s={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return qe(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ue(s.common.issues)},input:s.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ue(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}ft.create=(t,e)=>new ft({innerType:t,typeName:A.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...S(e)});class ir extends T{_parse(e){if(this._getType(e)!==v.nan){const s=this._getOrReturnCtx(e);return m(s,{code:c.invalid_type,expected:v.nan,received:s.parsedType}),w}return{status:"valid",value:e.data}}}ir.create=t=>new ir({typeName:A.ZodNaN,...S(t)});class bs extends T{_parse(e){const{ctx:r}=this._processInputParams(e),s=r.data;return this._def.type._parse({data:s,path:r.path,parent:r})}unwrap(){return this._def.type}}class vt extends T{_parse(e){const{status:r,ctx:s}=this._processInputParams(e);if(s.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?w:i.status==="dirty"?(r.dirty(),Ie(i.value)):this._def.out._parseAsync({data:i.value,path:s.path,parent:s})})();{const a=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?w:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:s.path,parent:s})}}static create(e,r){return new vt({in:e,out:r,typeName:A.ZodPipeline})}}class ht extends T{_parse(e){const r=this._def.innerType._parse(e),s=a=>(Te(a)&&(a.value=Object.freeze(a.value)),a);return qe(r)?r.then(a=>s(a)):s(r)}unwrap(){return this._def.innerType}}ht.create=(t,e)=>new ht({innerType:t,typeName:A.ZodReadonly,...S(e)});var A;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(A||(A={}));const Ts=pe.create;ve.create;ne.create;const Os=L.create;Je.create;Ye.create;be.create;Oe.create;Ge.create;ge.create;Ee.create;export{Yr as a,Cs as b,Ir as c,Os as o,Ts as s,Ss as u}; diff --git a/dist/assets/js/react-vendor-CqRd3GwO.js b/dist/assets/js/react-vendor-CqRd3GwO.js deleted file mode 100644 index 87e0831..0000000 --- a/dist/assets/js/react-vendor-CqRd3GwO.js +++ /dev/null @@ -1,32 +0,0 @@ -var Pc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nc(T){return T&&T.__esModule&&Object.prototype.hasOwnProperty.call(T,"default")?T.default:T}function zc(T){if(Object.prototype.hasOwnProperty.call(T,"__esModule"))return T;var $=T.default;if(typeof $=="function"){var m=function ge(){return this instanceof ge?Reflect.construct($,arguments,this.constructor):$.apply(this,arguments)};m.prototype=$.prototype}else m={};return Object.defineProperty(m,"__esModule",{value:!0}),Object.keys(T).forEach(function(ge){var we=Object.getOwnPropertyDescriptor(T,ge);Object.defineProperty(m,ge,we.get?we:{enumerable:!0,get:function(){return T[ge]}})}),m}var wo={exports:{}},M={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ya;function Sc(){if(ya)return M;ya=1;var T=Symbol.for("react.element"),$=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ge=Symbol.for("react.strict_mode"),we=Symbol.for("react.profiler"),Ye=Symbol.for("react.provider"),Xe=Symbol.for("react.context"),Re=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),Ue=Symbol.for("react.memo"),ln=Symbol.for("react.lazy"),oe=Symbol.iterator;function ne(f){return f===null||typeof f!="object"?null:(f=oe&&f[oe]||f["@@iterator"],typeof f=="function"?f:null)}var pt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ve=Object.assign,Y={};function B(f,h,O){this.props=f,this.context=h,this.refs=Y,this.updater=O||pt}B.prototype.isReactComponent={},B.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},B.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function mt(){}mt.prototype=B.prototype;function ut(f,h,O){this.props=f,this.context=h,this.refs=Y,this.updater=O||pt}var Ge=ut.prototype=new mt;Ge.constructor=ut,Ve(Ge,B.prototype),Ge.isPureReactComponent=!0;var pe=Array.isArray,Ze=Object.prototype.hasOwnProperty,Se={current:null},_e={key:!0,ref:!0,__self:!0,__source:!0};function Ae(f,h,O){var D,F={},j=null,H=null;if(h!=null)for(D in h.ref!==void 0&&(H=h.ref),h.key!==void 0&&(j=""+h.key),h)Ze.call(h,D)&&!_e.hasOwnProperty(D)&&(F[D]=h[D]);var V=arguments.length-2;if(V===1)F.children=O;else if(1>>1,h=S[f];if(0>>1;fwe(F,_))jwe(H,F)?(S[f]=H,S[j]=_,f=j):(S[f]=F,S[D]=_,f=D);else if(jwe(H,_))S[f]=H,S[j]=_,f=j;else break e}}return L}function we(S,L){var _=S.sortIndex-L.sortIndex;return _!==0?_:S.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var Ye=performance;T.unstable_now=function(){return Ye.now()}}else{var Xe=Date,Re=Xe.now();T.unstable_now=function(){return Xe.now()-Re}}var de=[],Ue=[],ln=1,oe=null,ne=3,pt=!1,Ve=!1,Y=!1,B=typeof setTimeout=="function"?setTimeout:null,mt=typeof clearTimeout=="function"?clearTimeout:null,ut=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ge(S){for(var L=m(Ue);L!==null;){if(L.callback===null)ge(Ue);else if(L.startTime<=S)ge(Ue),L.sortIndex=L.expirationTime,$(de,L);else break;L=m(Ue)}}function pe(S){if(Y=!1,Ge(S),!Ve)if(m(de)!==null)Ve=!0,Ce(Ze);else{var L=m(Ue);L!==null&&q(pe,L.startTime-S)}}function Ze(S,L){Ve=!1,Y&&(Y=!1,mt(Ae),Ae=-1),pt=!0;var _=ne;try{for(Ge(L),oe=m(de);oe!==null&&(!(oe.expirationTime>L)||S&&!$t());){var f=oe.callback;if(typeof f=="function"){oe.callback=null,ne=oe.priorityLevel;var h=f(oe.expirationTime<=L);L=T.unstable_now(),typeof h=="function"?oe.callback=h:oe===m(de)&&ge(de),Ge(L)}else ge(de);oe=m(de)}if(oe!==null)var O=!0;else{var D=m(Ue);D!==null&&q(pe,D.startTime-L),O=!1}return O}finally{oe=null,ne=_,pt=!1}}var Se=!1,_e=null,Ae=-1,Ct=5,vt=-1;function $t(){return!(T.unstable_now()-vtS||125f?(S.sortIndex=_,$(Ue,S),m(de)===null&&S===m(Ue)&&(Y?(mt(Ae),Ae=-1):Y=!0,q(pe,_-f))):(S.sortIndex=h,$(de,S),Ve||pt||(Ve=!0,Ce(Ze))),S},T.unstable_shouldYield=$t,T.unstable_wrapCallback=function(S){var L=ne;return function(){var _=ne;ne=L;try{return S.apply(this,arguments)}finally{ne=_}}}})(Eo)),Eo}var Sa;function _c(){return Sa||(Sa=1,ko.exports=Ec()),ko.exports}/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ka;function Cc(){if(ka)return Le;ka=1;var T=kc(),$=_c();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),de=Object.prototype.hasOwnProperty,Ue=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ln={},oe={};function ne(e){return de.call(oe,e)?!0:de.call(ln,e)?!1:Ue.test(e)?oe[e]=!0:(ln[e]=!0,!1)}function pt(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ve(e,t,n,r){if(t===null||typeof t>"u"||pt(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Y(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var B={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){B[e]=new Y(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];B[t]=new Y(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){B[e]=new Y(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){B[e]=new Y(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){B[e]=new Y(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){B[e]=new Y(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){B[e]=new Y(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){B[e]=new Y(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){B[e]=new Y(e,5,!1,e.toLowerCase(),null,!1,!1)});var mt=/[\-:]([a-z])/g;function ut(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(mt,ut);B[t]=new Y(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(mt,ut);B[t]=new Y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(mt,ut);B[t]=new Y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){B[e]=new Y(e,1,!1,e.toLowerCase(),null,!1,!1)}),B.xlinkHref=new Y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){B[e]=new Y(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ge(e,t,n,r){var l=B.hasOwnProperty(t)?B[t]:null;(l!==null?l.type!==0:r||!(2i||l[o]!==u[i]){var s=` -`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function F(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function j(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _e:return"Fragment";case Se:return"Portal";case Ct:return"Profiler";case Ae:return"StrictMode";case Oe:return"Suspense";case Je:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $t:return(e.displayName||"Context")+".Consumer";case vt:return(e._context.displayName||"Context")+".Provider";case ot:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case it:return t=e.displayName||null,t!==null?t:j(e.type)||"Memo";case Ce:t=e._payload,e=e._init;try{return j(e(t))}catch{}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return j(t);case 8:return t===Ae?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function X(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Me(e){var t=X(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hr(e){e._valueTracker||(e._valueTracker=Me(e))}function _o(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=X(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Pl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Co(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=V(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function xo(e,t){t=t.checked,t!=null&&Ge(e,"checked",t,!1)}function Nl(e,t){xo(e,t);var n=V(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?zl(e,t.type,n):t.hasOwnProperty("defaultValue")&&zl(e,t.type,V(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Po(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function zl(e,t,n){(t!=="number"||yr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=gr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function On(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Mn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_a=["Webkit","ms","Moz","O"];Object.keys(Mn).forEach(function(e){_a.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Mn[t]=Mn[e]})});function Oo(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Mn.hasOwnProperty(e)&&Mn[e]?(""+t).trim():t+"px"}function Mo(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Oo(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Ca=_({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Rl(e,t){if(t){if(Ca[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(m(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(m(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(m(61))}if(t.style!=null&&typeof t.style!="object")throw Error(m(62))}}function Ol(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ml=null;function Dl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Il=null,on=null,sn=null;function Do(e){if(e=tr(e)){if(typeof Il!="function")throw Error(m(280));var t=e.stateNode;t&&(t=Br(t),Il(e.stateNode,e.type,t))}}function Io(e){on?sn?sn.push(e):sn=[e]:on=e}function Fo(){if(on){var e=on,t=sn;if(sn=on=null,Do(e),t)for(e=0;e>>=0,e===0?32:31-(Ia(e)/Fa|0)|0}var _r=64,Cr=4194304;function jn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function xr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,u=e.pingedLanes,o=n&268435455;if(o!==0){var i=o&~l;i!==0?r=jn(i):(u&=o,u!==0&&(r=jn(u)))}else o=n&~l,o!==0?r=jn(o):u!==0&&(r=jn(u));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,u=t&-t,l>=u||l===16&&(u&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Un(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qe(t),e[t]=n}function Aa(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Kn),fi=" ",ci=!1;function di(e,t){switch(e){case"keyup":return vf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pi(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var cn=!1;function yf(e,t){switch(e){case"compositionend":return pi(t);case"keypress":return t.which!==32?null:(ci=!0,fi);case"textInput":return e=t.data,e===fi&&ci?null:e;default:return null}}function gf(e,t){if(cn)return e==="compositionend"||!bl&&di(e,t)?(e=li(),Lr=Yl=Tt=null,cn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Si(n)}}function Ei(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ei(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _i(){for(var e=window,t=yr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yr(e.document)}return t}function nu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Nf(e){var t=_i(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ei(n.ownerDocument.documentElement,n)){if(r!==null&&nu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,u=Math.min(r.start,l);r=r.end===void 0?u:Math.min(r.end,l),!e.extend&&u>r&&(l=r,r=u,u=l),l=ki(n,u);var o=ki(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),u>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,dn=null,ru=null,Zn=null,lu=!1;function Ci(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;lu||dn==null||dn!==yr(r)||(r=dn,"selectionStart"in r&&nu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Zn&&Gn(Zn,r)||(Zn=r,r=Ur(ru,"onSelect"),0yn||(e.current=hu[yn],hu[yn]=null,yn--)}function W(e,t){yn++,hu[yn]=e.current,e.current=t}var Mt={},me=Ot(Mt),xe=Ot(!1),Yt=Mt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Mt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Pe(e){return e=e.childContextTypes,e!=null}function Hr(){K(xe),K(me)}function Vi(e,t,n){if(me.current!==Mt)throw Error(m(168));W(me,t),W(xe,n)}function Ai(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,H(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mt,Yt=me.current,W(me,e),W(xe,xe.current),!0}function Bi(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Ai(e,t,Yt),r.__reactInternalMemoizedMergedChildContext=e,K(xe),K(me),W(me,e)):K(xe),W(xe,n)}var yt=null,$r=!1,yu=!1;function Hi(e){yt===null?yt=[e]:yt.push(e)}function Vf(e){$r=!0,Hi(e)}function Dt(){if(!yu&&yt!==null){yu=!0;var e=0,t=A;try{var n=yt;for(A=1;e>=o,l-=o,gt=1<<32-qe(t)+l|n<R?(ae=z,z=null):ae=z.sibling;var U=v(c,z,d[R],w);if(U===null){z===null&&(z=ae);break}e&&z&&U.alternate===null&&t(c,z),a=u(U,a,R),N===null?P=U:N.sibling=U,N=U,z=ae}if(R===d.length)return n(c,z),G&&Gt(c,R),P;if(z===null){for(;RR?(ae=z,z=null):ae=z.sibling;var Wt=v(c,z,U.value,w);if(Wt===null){z===null&&(z=ae);break}e&&z&&Wt.alternate===null&&t(c,z),a=u(Wt,a,R),N===null?P=Wt:N.sibling=Wt,N=Wt,z=ae}if(U.done)return n(c,z),G&&Gt(c,R),P;if(z===null){for(;!U.done;R++,U=d.next())U=g(c,U.value,w),U!==null&&(a=u(U,a,R),N===null?P=U:N.sibling=U,N=U);return G&&Gt(c,R),P}for(z=r(c,z);!U.done;R++,U=d.next())U=k(z,c,R,U.value,w),U!==null&&(e&&U.alternate!==null&&z.delete(U.key===null?R:U.key),a=u(U,a,R),N===null?P=U:N.sibling=U,N=U);return e&&z.forEach(function(wc){return t(c,wc)}),G&&Gt(c,R),P}function te(c,a,d,w){if(typeof d=="object"&&d!==null&&d.type===_e&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case Ze:e:{for(var P=d.key,N=a;N!==null;){if(N.key===P){if(P=d.type,P===_e){if(N.tag===7){n(c,N.sibling),a=l(N,d.props.children),a.return=c,c=a;break e}}else if(N.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Ce&&Xi(P)===N.type){n(c,N.sibling),a=l(N,d.props),a.ref=nr(c,N,d),a.return=c,c=a;break e}n(c,N);break}else t(c,N);N=N.sibling}d.type===_e?(a=rn(d.props.children,c.mode,w,d.key),a.return=c,c=a):(w=gl(d.type,d.key,d.props,null,c.mode,w),w.ref=nr(c,a,d),w.return=c,c=w)}return o(c);case Se:e:{for(N=d.key;a!==null;){if(a.key===N)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){n(c,a.sibling),a=l(a,d.children||[]),a.return=c,c=a;break e}else{n(c,a);break}else t(c,a);a=a.sibling}a=mo(d,c.mode,w),a.return=c,c=a}return o(c);case Ce:return N=d._init,te(c,a,N(d._payload),w)}if(Rn(d))return C(c,a,d,w);if(L(d))return x(c,a,d,w);Xr(c,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(n(c,a.sibling),a=l(a,d),a.return=c,c=a):(n(c,a),a=po(d,c.mode,w),a.return=c,c=a),o(c)):n(c,a)}return te}var En=Gi(!0),Zi=Gi(!1),Gr=Ot(null),Zr=null,_n=null,_u=null;function Cu(){_u=_n=Zr=null}function xu(e){var t=Gr.current;K(Gr),e._currentValue=t}function Pu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Cn(e,t){Zr=e,_u=_n=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ne=!0),e.firstContext=null)}function We(e){var t=e._currentValue;if(_u!==e)if(e={context:e,memoizedValue:t,next:null},_n===null){if(Zr===null)throw Error(m(308));_n=e,Zr.dependencies={lanes:0,firstContext:e}}else _n=_n.next=e;return t}var Zt=null;function Nu(e){Zt===null?Zt=[e]:Zt.push(e)}function Ji(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Nu(t)):(n.next=l.next,l.next=n),t.interleaved=n,St(e,r)}function St(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var It=!1;function zu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ft(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(I&2)!==0){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,St(e,n)}return l=r.interleaved,l===null?(t.next=t,Nu(r)):(t.next=l.next,l.next=t),r.interleaved=t,St(e,n)}function Jr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hl(e,n)}}function bi(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?l=u=o:u=u.next=o,n=n.next}while(n!==null);u===null?l=u=t:u=u.next=t}else l=u=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:u,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function qr(e,t,n,r){var l=e.updateQueue;It=!1;var u=l.firstBaseUpdate,o=l.lastBaseUpdate,i=l.shared.pending;if(i!==null){l.shared.pending=null;var s=i,p=s.next;s.next=null,o===null?u=p:o.next=p,o=s;var y=e.alternate;y!==null&&(y=y.updateQueue,i=y.lastBaseUpdate,i!==o&&(i===null?y.firstBaseUpdate=p:i.next=p,y.lastBaseUpdate=s))}if(u!==null){var g=l.baseState;o=0,y=p=s=null,i=u;do{var v=i.lane,k=i.eventTime;if((r&v)===v){y!==null&&(y=y.next={eventTime:k,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var C=e,x=i;switch(v=t,k=n,x.tag){case 1:if(C=x.payload,typeof C=="function"){g=C.call(k,g,v);break e}g=C;break e;case 3:C.flags=C.flags&-65537|128;case 0:if(C=x.payload,v=typeof C=="function"?C.call(k,g,v):C,v==null)break e;g=_({},g,v);break e;case 2:It=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,v=l.effects,v===null?l.effects=[i]:v.push(i))}else k={eventTime:k,lane:v,tag:i.tag,payload:i.payload,callback:i.callback,next:null},y===null?(p=y=k,s=g):y=y.next=k,o|=v;if(i=i.next,i===null){if(i=l.shared.pending,i===null)break;v=i,i=v.next,v.next=null,l.lastBaseUpdate=v,l.shared.pending=null}}while(!0);if(y===null&&(s=g),l.baseState=s,l.firstBaseUpdate=p,l.lastBaseUpdate=y,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else u===null&&(l.shared.lanes=0);bt|=o,e.lanes=o,e.memoizedState=g}}function es(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Mu.transition;Mu.transition={};try{e(!1),t()}finally{A=n,Mu.transition=r}}function ws(){return $e().memoizedState}function Wf(e,t,n){var r=At(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ss(e))ks(t,n);else if(n=Ji(e,t,n,r),n!==null){var l=Ee();lt(n,e,r,l),Es(n,t,r)}}function $f(e,t,n){var r=At(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ss(e))ks(t,l);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var o=t.lastRenderedState,i=u(o,n);if(l.hasEagerState=!0,l.eagerState=i,be(i,o)){var s=t.interleaved;s===null?(l.next=l,Nu(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=Ji(e,t,l,r),n!==null&&(l=Ee(),lt(n,e,r,l),Es(n,t,r))}}function Ss(e){var t=e.alternate;return e===J||t!==null&&t===J}function ks(e,t){or=tl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Es(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hl(e,n)}}var ll={readContext:We,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},Qf={readContext:We,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:We,useEffect:cs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,nl(4194308,4,ms.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nl(4194308,4,e,t)},useInsertionEffect:function(e,t){return nl(4,2,e,t)},useMemo:function(e,t){var n=ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ct();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Wf.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:as,useDebugValue:Au,useDeferredValue:function(e){return ct().memoizedState=e},useTransition:function(){var e=as(!1),t=e[0];return e=Hf.bind(null,e[1]),ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=J,l=ct();if(G){if(n===void 0)throw Error(m(407));n=n()}else{if(n=t(),se===null)throw Error(m(349));(qt&30)!==0||ls(r,t,n)}l.memoizedState=n;var u={value:n,getSnapshot:t};return l.queue=u,cs(os.bind(null,r,u,e),[e]),r.flags|=2048,ar(9,us.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=ct(),t=se.identifierPrefix;if(G){var n=wt,r=gt;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ir++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[at]=t,e[er]=r,Hs(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ol(n,r),n){case"dialog":Q("cancel",e),Q("close",e),l=r;break;case"iframe":case"object":case"embed":Q("load",e),l=r;break;case"video":case"audio":for(l=0;lTn&&(t.flags|=128,r=!0,fr(u,!1),t.lanes=4194304)}else{if(!r)if(e=br(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fr(u,!0),u.tail===null&&u.tailMode==="hidden"&&!o.alternate&&!G)return he(t),null}else 2*ee()-u.renderingStartTime>Tn&&n!==1073741824&&(t.flags|=128,r=!0,fr(u,!1),t.lanes=4194304);u.isBackwards?(o.sibling=t.child,t.child=o):(n=u.last,n!==null?n.sibling=o:t.child=o,u.last=o)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=ee(),t.sibling=null,n=Z.current,W(Z,r?n&1|2:n&1),t):(he(t),null);case 22:case 23:return ao(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(je&1073741824)!==0&&(he(t),t.subtreeFlags&6&&(t.flags|=8192)):he(t),null;case 24:return null;case 25:return null}throw Error(m(156,t.tag))}function bf(e,t){switch(wu(t),t.tag){case 1:return Pe(t.type)&&Hr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xn(),K(xe),K(me),Ou(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Lu(t),null;case 13:if(K(Z),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(m(340));kn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(Z),null;case 4:return xn(),null;case 10:return xu(t.type._context),null;case 22:case 23:return ao(),null;case 24:return null;default:return null}}var sl=!1,ye=!1,ec=typeof WeakSet=="function"?WeakSet:Set,E=null;function Nn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){b(e,t,r)}else n.current=null}function Ju(e,t,n){try{n()}catch(r){b(e,t,r)}}var Qs=!1;function tc(e,t){if(fu=zr,e=_i(),nu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var o=0,i=-1,s=-1,p=0,y=0,g=e,v=null;t:for(;;){for(var k;g!==n||l!==0&&g.nodeType!==3||(i=o+l),g!==u||r!==0&&g.nodeType!==3||(s=o+r),g.nodeType===3&&(o+=g.nodeValue.length),(k=g.firstChild)!==null;)v=g,g=k;for(;;){if(g===e)break t;if(v===n&&++p===l&&(i=o),v===u&&++y===r&&(s=o),(k=g.nextSibling)!==null)break;g=v,v=g.parentNode}g=k}n=i===-1||s===-1?null:{start:i,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(cu={focusedElem:e,selectionRange:n},zr=!1,E=t;E!==null;)if(t=E,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,E=e;else for(;E!==null;){t=E;try{var C=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(C!==null){var x=C.memoizedProps,te=C.memoizedState,c=t.stateNode,a=c.getSnapshotBeforeUpdate(t.elementType===t.type?x:tt(t.type,x),te);c.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(m(163))}}catch(w){b(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,E=e;break}E=t.return}return C=Qs,Qs=!1,C}function cr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var u=l.destroy;l.destroy=void 0,u!==void 0&&Ju(t,n,u)}l=l.next}while(l!==r)}}function al(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function qu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ks(e){var t=e.alternate;t!==null&&(e.alternate=null,Ks(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[at],delete t[er],delete t[vu],delete t[jf],delete t[Uf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ys(e){return e.tag===5||e.tag===3||e.tag===4}function Xs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ys(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function bu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ar));else if(r!==4&&(e=e.child,e!==null))for(bu(e,t,n),e=e.sibling;e!==null;)bu(e,t,n),e=e.sibling}function eo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(eo(e,t,n),e=e.sibling;e!==null;)eo(e,t,n),e=e.sibling}var fe=null,nt=!1;function jt(e,t,n){for(n=n.child;n!==null;)Gs(e,t,n),n=n.sibling}function Gs(e,t,n){if(st&&typeof st.onCommitFiberUnmount=="function")try{st.onCommitFiberUnmount(Er,n)}catch{}switch(n.tag){case 5:ye||Nn(n,t);case 6:var r=fe,l=nt;fe=null,jt(e,t,n),fe=r,nt=l,fe!==null&&(nt?(e=fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fe.removeChild(n.stateNode));break;case 18:fe!==null&&(nt?(e=fe,n=n.stateNode,e.nodeType===8?mu(e.parentNode,n):e.nodeType===1&&mu(e,n),Wn(e)):mu(fe,n.stateNode));break;case 4:r=fe,l=nt,fe=n.stateNode.containerInfo,nt=!0,jt(e,t,n),fe=r,nt=l;break;case 0:case 11:case 14:case 15:if(!ye&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var u=l,o=u.destroy;u=u.tag,o!==void 0&&((u&2)!==0||(u&4)!==0)&&Ju(n,t,o),l=l.next}while(l!==r)}jt(e,t,n);break;case 1:if(!ye&&(Nn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){b(n,t,i)}jt(e,t,n);break;case 21:jt(e,t,n);break;case 22:n.mode&1?(ye=(r=ye)||n.memoizedState!==null,jt(e,t,n),ye=r):jt(e,t,n);break;default:jt(e,t,n)}}function Zs(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ec),t.forEach(function(r){var l=fc.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function rt(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~u}if(r=l,r=ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rc(r/1960))-r,10e?16:e,Vt===null)var r=!1;else{if(e=Vt,Vt=null,ml=0,(I&6)!==0)throw Error(m(331));var l=I;for(I|=4,E=e.current;E!==null;){var u=E,o=u.child;if((E.flags&16)!==0){var i=u.deletions;if(i!==null){for(var s=0;see()-ro?tn(e,0):no|=n),Te(e,t)}function aa(e,t){t===0&&((e.mode&1)===0?t=1:(t=Cr,Cr<<=1,(Cr&130023424)===0&&(Cr=4194304)));var n=Ee();e=St(e,t),e!==null&&(Un(e,t,n),Te(e,n))}function ac(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),aa(e,n)}function fc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(m(314))}r!==null&&r.delete(t),aa(e,n)}var fa;fa=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xe.current)Ne=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Ne=!1,Jf(e,t,n);Ne=(e.flags&131072)!==0}else Ne=!1,G&&(t.flags&1048576)!==0&&Wi(t,Kr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;il(e,t),e=t.pendingProps;var l=gn(t,me.current);Cn(t,n),l=Iu(null,t,r,e,l,n);var u=Fu();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pe(r)?(u=!0,Wr(t)):u=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,zu(t),l.updater=ul,t.stateNode=l,l._reactInternals=t,Hu(t,r,e,n),t=Qu(null,t,r,!0,u,n)):(t.tag=0,G&&u&&gu(t),ke(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(il(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=dc(r),e=tt(r,e),l){case 0:t=$u(null,t,r,e,n);break e;case 1:t=Fs(null,t,r,e,n);break e;case 11:t=Rs(null,t,r,e,n);break e;case 14:t=Os(null,t,r,tt(r.type,e),n);break e}throw Error(m(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:tt(r,l),$u(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:tt(r,l),Fs(e,t,r,l,n);case 3:e:{if(js(t),e===null)throw Error(m(387));r=t.pendingProps,u=t.memoizedState,l=u.element,qi(e,t),qr(t,r,null,n);var o=t.memoizedState;if(r=o.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){l=Pn(Error(m(423)),t),t=Us(e,t,r,n,l);break e}else if(r!==l){l=Pn(Error(m(424)),t),t=Us(e,t,r,n,l);break e}else for(Fe=Rt(t.stateNode.containerInfo.firstChild),Ie=t,G=!0,et=null,n=Zi(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(kn(),r===l){t=Et(e,t,n);break e}ke(e,t,r,n)}t=t.child}return t;case 5:return ts(t),e===null&&ku(t),r=t.type,l=t.pendingProps,u=e!==null?e.memoizedProps:null,o=l.children,du(r,l)?o=null:u!==null&&du(r,u)&&(t.flags|=32),Is(e,t),ke(e,t,o,n),t.child;case 6:return e===null&&ku(t),null;case 13:return Vs(e,t,n);case 4:return Tu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=En(t,null,r,n):ke(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:tt(r,l),Rs(e,t,r,l,n);case 7:return ke(e,t,t.pendingProps,n),t.child;case 8:return ke(e,t,t.pendingProps.children,n),t.child;case 12:return ke(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,u=t.memoizedProps,o=l.value,W(Gr,r._currentValue),r._currentValue=o,u!==null)if(be(u.value,o)){if(u.children===l.children&&!xe.current){t=Et(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var i=u.dependencies;if(i!==null){o=u.child;for(var s=i.firstContext;s!==null;){if(s.context===r){if(u.tag===1){s=kt(-1,n&-n),s.tag=2;var p=u.updateQueue;if(p!==null){p=p.shared;var y=p.pending;y===null?s.next=s:(s.next=y.next,y.next=s),p.pending=s}}u.lanes|=n,s=u.alternate,s!==null&&(s.lanes|=n),Pu(u.return,n,t),i.lanes|=n;break}s=s.next}}else if(u.tag===10)o=u.type===t.type?null:u.child;else if(u.tag===18){if(o=u.return,o===null)throw Error(m(341));o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),Pu(o,n,t),o=u.sibling}else o=u.child;if(o!==null)o.return=u;else for(o=u;o!==null;){if(o===t){o=null;break}if(u=o.sibling,u!==null){u.return=o.return,o=u;break}o=o.return}u=o}ke(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Cn(t,n),l=We(l),r=r(l),t.flags|=1,ke(e,t,r,n),t.child;case 14:return r=t.type,l=tt(r,t.pendingProps),l=tt(r.type,l),Os(e,t,r,l,n);case 15:return Ms(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:tt(r,l),il(e,t),t.tag=1,Pe(r)?(e=!0,Wr(t)):e=!1,Cn(t,n),Cs(t,r,l),Hu(t,r,l,n),Qu(null,t,r,!0,e,n);case 19:return Bs(e,t,n);case 22:return Ds(e,t,n)}throw Error(m(156,t.tag))};function ca(e,t){return $o(e,t)}function cc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ke(e,t,n,r){return new cc(e,t,n,r)}function co(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dc(e){if(typeof e=="function")return co(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ot)return 11;if(e===it)return 14}return 2}function Ht(e,t){var n=e.alternate;return n===null?(n=Ke(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function gl(e,t,n,r,l,u){var o=2;if(r=e,typeof e=="function")co(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case _e:return rn(n.children,l,u,t);case Ae:o=8,l|=8;break;case Ct:return e=Ke(12,n,t,l|2),e.elementType=Ct,e.lanes=u,e;case Oe:return e=Ke(13,n,t,l),e.elementType=Oe,e.lanes=u,e;case Je:return e=Ke(19,n,t,l),e.elementType=Je,e.lanes=u,e;case q:return wl(n,l,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case vt:o=10;break e;case $t:o=9;break e;case ot:o=11;break e;case it:o=14;break e;case Ce:o=16,r=null;break e}throw Error(m(130,e==null?e:typeof e,""))}return t=Ke(o,n,t,l),t.elementType=e,t.type=r,t.lanes=u,t}function rn(e,t,n,r){return e=Ke(7,e,r,t),e.lanes=n,e}function wl(e,t,n,r){return e=Ke(22,e,r,t),e.elementType=q,e.lanes=n,e.stateNode={isHidden:!1},e}function po(e,t,n){return e=Ke(6,e,null,t),e.lanes=n,e}function mo(e,t,n){return t=Ke(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pc(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Bl(0),this.expirationTimes=Bl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function vo(e,t,n,r,l,u,o,i,s){return e=new pc(e,t,n,i,s),t===1?(t=1,u===!0&&(t|=8)):t=0,u=Ke(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zu(u),e}function mc(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(T)}catch{}}return T(),So.exports=Cc(),So.exports}export{Tc as a,zc as b,Pc as c,Nc as g,kc as r}; diff --git a/dist/assets/js/router-vendor-D4by-_6Z.js b/dist/assets/js/router-vendor-D4by-_6Z.js deleted file mode 100644 index a583834..0000000 --- a/dist/assets/js/router-vendor-D4by-_6Z.js +++ /dev/null @@ -1,12 +0,0 @@ -import{r as Le,g as ke,a as $e}from"./react-vendor-CqRd3GwO.js";var i=Le();const Qt=ke(i);/** - * react-router v7.9.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */var le="popstate";function Fe(e={}){function t(n,a){let{pathname:o,search:l,hash:s}=n.location;return G("",{pathname:o,search:l,hash:s},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:O(a)}return De(t,r,null,e)}function x(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function P(e,t){if(!e)try{throw new Error(t)}catch{}}function Ne(){return Math.random().toString(36).substring(2,10)}function ie(e,t){return{usr:e.state,key:e.key,idx:t}}function G(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?D(t):t,state:r,key:t&&t.key||n||Ne()}}function O({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function D(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function De(e,t,r,n={}){let{window:a=document.defaultView,v5Compat:o=!1}=n,l=a.history,s="POP",u=null,c=f();c==null&&(c=0,l.replaceState({...l.state,idx:c},""));function f(){return(l.state||{idx:null}).idx}function d(){s="POP";let p=f(),m=p==null?null:p-c;c=p,u&&u({action:s,location:w.location,delta:m})}function y(p,m){s="PUSH";let h=G(w.location,p,m);c=f()+1;let R=ie(h,c),E=w.createHref(h);try{l.pushState(R,"",E)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(E)}o&&u&&u({action:s,location:w.location,delta:1})}function g(p,m){s="REPLACE";let h=G(w.location,p,m);c=f();let R=ie(h,c),E=w.createHref(h);l.replaceState(R,"",E),o&&u&&u({action:s,location:w.location,delta:0})}function v(p){return Ie(p)}let w={get action(){return s},get location(){return e(a,l)},listen(p){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(le,d),u=p,()=>{a.removeEventListener(le,d),u=null}},createHref(p){return t(a,p)},createURL:v,encodeLocation(p){let m=v(p);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:y,replace:g,go(p){return l.go(p)}};return w}function Ie(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),x(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:O(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function fe(e,t,r="/"){return Te(e,t,r,!1)}function Te(e,t,r,n){let a=typeof t=="string"?D(t):t,o=$(a.pathname||"/",r);if(o==null)return null;let l=de(e);Be(l);let s=null;for(let u=0;s==null&&u{let f={relativePath:c===void 0?l.path||"":c,caseSensitive:l.caseSensitive===!0,childrenIndex:s,route:l};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(n)&&u)return;x(f.relativePath.startsWith(n),`Absolute route path "${f.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(n.length)}let d=k([n,f.relativePath]),y=r.concat(f);l.children&&l.children.length>0&&(x(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),de(l.children,t,y,d,u)),!(l.path==null&&!l.index)&&t.push({path:d,score:_e(d,l.index),routesMeta:y})};return e.forEach((l,s)=>{if(l.path===""||!l.path?.includes("?"))o(l,s);else for(let u of he(l.path))o(l,s,!0,u)}),t}function he(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let l=he(n.join("/")),s=[];return s.push(...l.map(u=>u===""?o:[o,u].join("/"))),a&&s.push(...l),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function Be(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Ve(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var Me=/^:[\w-]+$/,Oe=3,Ae=2,We=1,Ue=10,He=-2,ue=e=>e==="*";function _e(e,t){let r=e.split("/"),n=r.length;return r.some(ue)&&(n+=He),t&&(n+=Ae),r.filter(a=>!ue(a)).reduce((a,o)=>a+(Me.test(o)?Oe:o===""?We:Ue),n)}function Ve(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function ze(e,t,r=!1){let{routesMeta:n}=e,a={},o="/",l=[];for(let s=0;s{if(f==="*"){let v=s[y]||"";l=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const g=s[y];return d&&!g?c[f]=void 0:c[f]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:l,pattern:e}}function je(e,t=!1,r=!0){P(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function Je(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return P(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function $(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Ke(e,t="/"){let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?D(e):e;return{pathname:r?r.startsWith("/")?r:Ye(r,t):t,search:Xe(n),hash:Qe(a)}}function Ye(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Y(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function qe(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Q(e){let t=qe(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function Z(e,t,r,n=!1){let a;typeof e=="string"?a=D(e):(a={...e},x(!a.pathname||!a.pathname.includes("?"),Y("?","pathname","search",a)),x(!a.pathname||!a.pathname.includes("#"),Y("#","pathname","hash",a)),x(!a.search||!a.search.includes("#"),Y("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.pathname,s;if(l==null)s=r;else{let d=t.length-1;if(!n&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),d-=1;a.pathname=y.join("/")}s=d>=0?t[d]:"/"}let u=Ke(a,s),c=l&&l!=="/"&&l.endsWith("/"),f=(o||l===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}var k=e=>e.join("/").replace(/\/\/+/g,"/"),Ge=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Xe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Qe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Ze(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var pe=["POST","PUT","PATCH","DELETE"];new Set(pe);var et=["GET",...pe];new Set(et);var I=i.createContext(null);I.displayName="DataRouter";var J=i.createContext(null);J.displayName="DataRouterState";i.createContext(!1);var me=i.createContext({isTransitioning:!1});me.displayName="ViewTransition";var tt=i.createContext(new Map);tt.displayName="Fetchers";var rt=i.createContext(null);rt.displayName="Await";var S=i.createContext(null);S.displayName="Navigation";var A=i.createContext(null);A.displayName="Location";var L=i.createContext({outlet:null,matches:[],isDataRoute:!1});L.displayName="Route";var ee=i.createContext(null);ee.displayName="RouteError";function nt(e,{relative:t}={}){x(T(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:n}=i.useContext(S),{hash:a,pathname:o,search:l}=W(e,{relative:t}),s=o;return r!=="/"&&(s=o==="/"?r:k([r,o])),n.createHref({pathname:s,search:l,hash:a})}function T(){return i.useContext(A)!=null}function F(){return x(T(),"useLocation() may be used only in the context of a component."),i.useContext(A).location}var ye="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ge(e){i.useContext(S).static||i.useLayoutEffect(e)}function ve(){let{isDataRoute:e}=i.useContext(L);return e?yt():at()}function at(){x(T(),"useNavigate() may be used only in the context of a component.");let e=i.useContext(I),{basename:t,navigator:r}=i.useContext(S),{matches:n}=i.useContext(L),{pathname:a}=F(),o=JSON.stringify(Q(n)),l=i.useRef(!1);return ge(()=>{l.current=!0}),i.useCallback((u,c={})=>{if(P(l.current,ye),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=Z(u,JSON.parse(o),a,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:k([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,o,a,e])}i.createContext(null);function Zt(){let{matches:e}=i.useContext(L),t=e[e.length-1];return t?t.params:{}}function W(e,{relative:t}={}){let{matches:r}=i.useContext(L),{pathname:n}=F(),a=JSON.stringify(Q(r));return i.useMemo(()=>Z(e,JSON.parse(a),n,t==="path"),[e,a,n,t])}function ot(e,t){return we(e,t)}function we(e,t,r,n,a){x(T(),"useRoutes() may be used only in the context of a component.");let{navigator:o}=i.useContext(S),{matches:l}=i.useContext(L),s=l[l.length-1],u=s?s.params:{},c=s?s.pathname:"/",f=s?s.pathnameBase:"/",d=s&&s.route;{let h=d&&d.path||"";Re(c,!d||h.endsWith("*")||h.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${c}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. - -Please change the parent to .`)}let y=F(),g;if(t){let h=typeof t=="string"?D(t):t;x(f==="/"||h.pathname?.startsWith(f),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${h.pathname}" was given in the \`location\` prop.`),g=h}else g=y;let v=g.pathname||"/",w=v;if(f!=="/"){let h=f.replace(/^\//,"").split("/");w="/"+v.replace(/^\//,"").split("/").slice(h.length).join("/")}let p=fe(e,{pathname:w});P(d||p!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),P(p==null||p[p.length-1].route.element!==void 0||p[p.length-1].route.Component!==void 0||p[p.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let m=ct(p&&p.map(h=>Object.assign({},h,{params:Object.assign({},u,h.params),pathname:k([f,o.encodeLocation?o.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?f:k([f,o.encodeLocation?o.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),l,r,n,a);return t&&m?i.createElement(A.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},m):m}function lt(){let e=mt(),t=Ze(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n},l=null;return l=i.createElement(i.Fragment,null,i.createElement("p",null,"💿 Hey developer 👋"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",i.createElement("code",{style:o},"ErrorBoundary")," or"," ",i.createElement("code",{style:o},"errorElement")," prop on your route.")),i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:a},r):null,l)}var it=i.createElement(lt,null),ut=class extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError&&this.props.unstable_onError(e,t)}render(){return this.state.error!==void 0?i.createElement(L.Provider,{value:this.props.routeContext},i.createElement(ee.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function st({routeContext:e,match:t,children:r}){let n=i.useContext(I);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),i.createElement(L.Provider,{value:e},r)}function ct(e,t=[],r=null,n=null,a=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,l=r?.errors;if(l!=null){let c=o.findIndex(f=>f.route.id&&l?.[f.route.id]!==void 0);x(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),o=o.slice(0,Math.min(o.length,c+1))}let s=!1,u=-1;if(r)for(let c=0;c=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,f,d)=>{let y,g=!1,v=null,w=null;r&&(y=l&&f.route.id?l[f.route.id]:void 0,v=f.route.errorElement||it,s&&(u<0&&d===0?(Re("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,w=null):u===d&&(g=!0,w=f.route.hydrateFallbackElement||null)));let p=t.concat(o.slice(0,d+1)),m=()=>{let h;return y?h=v:g?h=w:f.route.Component?h=i.createElement(f.route.Component,null):f.route.element?h=f.route.element:h=c,i.createElement(st,{match:f,routeContext:{outlet:c,matches:p,isDataRoute:r!=null},children:h})};return r&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?i.createElement(ut,{location:r.location,revalidation:r.revalidation,component:v,error:y,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0},unstable_onError:n}):m()},null)}function te(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ft(e){let t=i.useContext(I);return x(t,te(e)),t}function dt(e){let t=i.useContext(J);return x(t,te(e)),t}function ht(e){let t=i.useContext(L);return x(t,te(e)),t}function re(e){let t=ht(e),r=t.matches[t.matches.length-1];return x(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function pt(){return re("useRouteId")}function mt(){let e=i.useContext(ee),t=dt("useRouteError"),r=re("useRouteError");return e!==void 0?e:t.errors?.[r]}function yt(){let{router:e}=ft("useNavigate"),t=re("useNavigate"),r=i.useRef(!1);return ge(()=>{r.current=!0}),i.useCallback(async(a,o={})=>{P(r.current,ye),r.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var se={};function Re(e,t,r){!t&&!se[e]&&(se[e]=!0,P(!1,r))}i.memo(gt);function gt({routes:e,future:t,state:r,unstable_onError:n}){return we(e,void 0,r,n,t)}function er({to:e,replace:t,state:r,relative:n}){x(T()," may be used only in the context of a component.");let{static:a}=i.useContext(S);P(!a," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:o}=i.useContext(L),{pathname:l}=F(),s=ve(),u=Z(e,Q(o),l,n==="path"),c=JSON.stringify(u);return i.useEffect(()=>{s(JSON.parse(c),{replace:t,state:r,relative:n})},[s,c,n,t,r]),null}function vt(e){x(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function wt({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:a,static:o=!1}){x(!T(),"You cannot render a inside another . You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),s=i.useMemo(()=>({basename:l,navigator:a,static:o,future:{}}),[l,a,o]);typeof r=="string"&&(r=D(r));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:y="default"}=r,g=i.useMemo(()=>{let v=$(u,l);return v==null?null:{location:{pathname:v,search:c,hash:f,state:d,key:y},navigationType:n}},[l,u,c,f,d,y,n]);return P(g!=null,` is not able to match the URL "${u}${c}${f}" because it does not start with the basename, so the won't render anything.`),g==null?null:i.createElement(S.Provider,{value:s},i.createElement(A.Provider,{children:t,value:g}))}function tr({children:e,location:t}){return ot(X(e),t)}function X(e,t=[]){let r=[];return i.Children.forEach(e,(n,a)=>{if(!i.isValidElement(n))return;let o=[...t,a];if(n.type===i.Fragment){r.push.apply(r,X(n.props.children,o));return}x(n.type===vt,`[${typeof n.type=="string"?n.type:n.type.name}] is not a component. All component children of must be a or `),x(!n.props.index||!n.props.children,"An index route cannot have child routes.");let l={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(l.children=X(n.props.children,o)),r.push(l)}),r}var V="get",z="application/x-www-form-urlencoded";function K(e){return e!=null&&typeof e.tagName=="string"}function Rt(e){return K(e)&&e.tagName.toLowerCase()==="button"}function xt(e){return K(e)&&e.tagName.toLowerCase()==="form"}function Et(e){return K(e)&&e.tagName.toLowerCase()==="input"}function Ct(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function bt(e,t){return e.button===0&&(!t||t==="_self")&&!Ct(e)}var _=null;function Pt(){if(_===null)try{new FormData(document.createElement("form"),0),_=!1}catch{_=!0}return _}var St=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function q(e){return e!=null&&!St.has(e)?(P(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${z}"`),null):e}function Lt(e,t){let r,n,a,o,l;if(xt(e)){let s=e.getAttribute("action");n=s?$(s,t):null,r=e.getAttribute("method")||V,a=q(e.getAttribute("enctype"))||z,o=new FormData(e)}else if(Rt(e)||Et(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a