From 61de9928416446aa5041d17f22c4b345f7b059bf Mon Sep 17 00:00:00 2001 From: Fingertips Date: Tue, 3 Sep 2024 07:01:40 +0800 Subject: [PATCH] Updates --- assets/{index-BkbtjiMW.js => index-D4ow8MMv.js} | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename assets/{index-BkbtjiMW.js => index-D4ow8MMv.js} (99%) diff --git a/assets/index-BkbtjiMW.js b/assets/index-D4ow8MMv.js similarity index 99% rename from assets/index-BkbtjiMW.js rename to assets/index-D4ow8MMv.js index 5e58800..2978841 100644 --- a/assets/index-BkbtjiMW.js +++ b/assets/index-D4ow8MMv.js @@ -228,7 +228,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert- ease-in-out cursor-pointer hover:bg-muted-foreground group hover:drop-shadow-foreground-glow`,children:c.jsx(n,{className:"w-4 h-4 ease-in-out group-hover:text-background pointer-events-none"})})},t.href)})})};var Hs=e=>e.type==="checkbox",wi=e=>e instanceof Date,Ft=e=>e==null;const R5=e=>typeof e=="object";var pt=e=>!Ft(e)&&!Array.isArray(e)&&R5(e)&&!wi(e),T5=e=>pt(e)&&e.target?Hs(e.target)?e.target.checked:e.target.value:e,yR=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,M5=(e,t)=>e.has(yR(t)),xR=e=>{const t=e.constructor&&e.constructor.prototype;return pt(t)&&t.hasOwnProperty("isPrototypeOf")},R1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ht(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(R1&&(e instanceof Blob||e instanceof FileList))&&(n||pt(e)))if(t=n?[]:{},!n&&!xR(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Ht(e[r]));else return e;return t}var Nu=e=>Array.isArray(e)?e.filter(Boolean):[],st=e=>e===void 0,q=(e,t,n)=>{if(!t||!pt(e))return n;const r=Nu(t.split(/[,[\].]+?/)).reduce((o,i)=>Ft(o)?o:o[i],e);return st(r)||r===e?st(e[t])?n:e[t]:r},gn=e=>typeof e=="boolean",T1=e=>/^\w*$/.test(e),P5=e=>Nu(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ae=(e,t,n)=>{let r=-1;const o=T1(t)?[t]:P5(t),i=o.length,a=i-1;for(;++rB.useContext(A5),wR=e=>{const{children:t,...n}=e;return B.createElement(A5.Provider,{value:n},t)};var D5=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return t._proxyFormState[a]!==Pn.all&&(t._proxyFormState[a]=!r||Pn.all),n&&(n[a]=!0),e[a]}});return o},Wt=e=>pt(e)&&!Object.keys(e).length,O5=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return Wt(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(a=>t[a]===(!r||Pn.all))},Ba=e=>Array.isArray(e)?e:[e],L5=(e,t,n)=>!e||!t||e===t||Ba(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function M1(e){const t=B.useRef(e);t.current=e,B.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function bR(e){const t=Ru(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[a,s]=B.useState(n._formState),l=B.useRef(!0),u=B.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=B.useRef(o);return d.current=o,M1({disabled:r,next:f=>l.current&&L5(d.current,f.name,i)&&O5(f,u.current,n._updateFormState)&&s({...n._formState,...f}),subject:n._subjects.state}),B.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),D5(a,n,u.current,!1)}var Xn=e=>typeof e=="string",I5=(e,t,n,r,o)=>Xn(e)?(r&&t.watch.add(e),q(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),q(n,i))):(r&&(t.watchAll=!0),n);function SR(e){const t=Ru(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:a}=e||{},s=B.useRef(r);s.current=r,M1({disabled:i,subject:n._subjects.values,next:d=>{L5(s.current,d.name,a)&&u(Ht(I5(s.current,n._names,d.values||n._formValues,!1,o)))}});const[l,u]=B.useState(n._getWatch(r,o));return B.useEffect(()=>n._removeUnmounted()),l}function _R(e){const t=Ru(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i}=e,a=M5(o._names.array,n),s=SR({control:o,name:n,defaultValue:q(o._formValues,n,q(o._defaultValues,n,e.defaultValue)),exact:!0}),l=bR({control:o,name:n,exact:!0}),u=B.useRef(o.register(n,{...e.rules,value:s,...gn(e.disabled)?{disabled:e.disabled}:{}}));return B.useEffect(()=>{const d=o._options.shouldUnregister||i,f=(h,y)=>{const x=q(o._fields,h);x&&x._f&&(x._f.mount=y)};if(f(n,!0),d){const h=Ht(q(o._options.defaultValues,n));Ae(o._defaultValues,n,h),st(q(o._formValues,n))&&Ae(o._formValues,n,h)}return()=>{(a?d&&!o._state.action:d)?o.unregister(n):f(n,!1)}},[n,o,a,i]),B.useEffect(()=>{q(o._fields,n)&&o._updateDisabledField({disabled:r,fields:o._fields,name:n,value:q(o._fields,n)._f.value})},[r,n,o]),{field:{name:n,value:s,...gn(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:B.useCallback(d=>u.current.onChange({target:{value:T5(d),name:n},type:Rc.CHANGE}),[n]),onBlur:B.useCallback(()=>u.current.onBlur({target:{value:q(o._formValues,n),name:n},type:Rc.BLUR}),[n,o]),ref:B.useCallback(d=>{const f=q(o._fields,n);f&&d&&(f._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:h=>d.setCustomValidity(h),reportValidity:()=>d.reportValidity()})},[o._fields,n])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!q(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!q(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!q(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!q(l.validatingFields,n)},error:{enumerable:!0,get:()=>q(l.errors,n)}})}}const CR=e=>e.render(_R(e));var F5=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},om=e=>({isOnSubmit:!e||e===Pn.onSubmit,isOnBlur:e===Pn.onBlur,isOnChange:e===Pn.onChange,isOnAll:e===Pn.all,isOnTouch:e===Pn.onTouched}),im=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Ua=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const i=q(e,o);if(i){const{_f:a,...s}=i;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],o)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(Ua(s,t))break}else if(pt(s)&&Ua(s,t))break}}};var ER=(e,t,n)=>{const r=Ba(q(e,n));return Ae(r,"root",t[n]),Ae(e,n,r),e},P1=e=>e.type==="file",hr=e=>typeof e=="function",Tc=e=>{if(!R1)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Hl=e=>Xn(e),A1=e=>e.type==="radio",Mc=e=>e instanceof RegExp;const am={value:!1,isValid:!1},sm={value:!0,isValid:!0};var z5=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!st(e[0].attributes.value)?st(e[0].value)||e[0].value===""?sm:{value:e[0].value,isValid:!0}:sm:am}return am};const lm={isValid:!1,value:null};var V5=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,lm):lm;function cm(e,t,n="validate"){if(Hl(e)||Array.isArray(e)&&e.every(Hl)||gn(e)&&!e)return{type:n,message:Hl(e)?e:"",ref:t}}var ii=e=>pt(e)&&!Mc(e)?e:{value:e,message:""},um=async(e,t,n,r,o)=>{const{ref:i,refs:a,required:s,maxLength:l,minLength:u,min:d,max:f,pattern:h,validate:y,name:x,valueAsNumber:g,mount:b,disabled:v}=e._f,m=q(t,x);if(!b||v)return{};const w=a?a[0]:i,_=z=>{r&&w.reportValidity&&(w.setCustomValidity(gn(z)?"":z||""),w.reportValidity())},E={},O=A1(i),L=Hs(i),S=O||L,V=(g||P1(i))&&st(i.value)&&st(m)||Tc(i)&&i.value===""||m===""||Array.isArray(m)&&!m.length,$=F5.bind(null,x,n,E),Q=(z,X,P,R=sr.maxLength,A=sr.minLength)=>{const M=z?X:P;E[x]={type:z?R:A,message:M,ref:i,...$(z?R:A,M)}};if(o?!Array.isArray(m)||!m.length:s&&(!S&&(V||Ft(m))||gn(m)&&!m||L&&!z5(a).isValid||O&&!V5(a).isValid)){const{value:z,message:X}=Hl(s)?{value:!!s,message:s}:ii(s);if(z&&(E[x]={type:sr.required,message:X,ref:w,...$(sr.required,X)},!n))return _(X),E}if(!V&&(!Ft(d)||!Ft(f))){let z,X;const P=ii(f),R=ii(d);if(!Ft(m)&&!isNaN(m)){const A=i.valueAsNumber||m&&+m;Ft(P.value)||(z=A>P.value),Ft(R.value)||(X=Anew Date(new Date().toDateString()+" "+W),k=i.type=="time",N=i.type=="week";Xn(P.value)&&m&&(z=k?M(m)>M(P.value):N?m>P.value:A>new Date(P.value)),Xn(R.value)&&m&&(X=k?M(m)+z.value,R=!Ft(X.value)&&m.length<+X.value;if((P||R)&&(Q(P,z.message,X.message),!n))return _(E[x].message),E}if(h&&!V&&Xn(m)){const{value:z,message:X}=ii(h);if(Mc(z)&&!m.match(z)&&(E[x]={type:sr.pattern,message:X,ref:i,...$(sr.pattern,X)},!n))return _(X),E}if(y){if(hr(y)){const z=await y(m,t),X=cm(z,w);if(X&&(E[x]={...X,...$(sr.validate,X.message)},!n))return _(X.message),E}else if(pt(y)){let z={};for(const X in y){if(!Wt(z)&&!n)break;const P=cm(await y[X](m,t),w,X);P&&(z={...P,...$(X,P.message)},_(P.message),n&&(E[x]=z))}if(!Wt(z)&&(E[x]={ref:w,...z},!n))return E}}return _(!0),E};function kR(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}},Pc=e=>Ft(e)||!R5(e);function $r(e,t){if(Pc(e)||Pc(t))return e===t;if(wi(e)&&wi(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const i=e[o];if(!r.includes(o))return!1;if(o!=="ref"){const a=t[o];if(wi(i)&&wi(a)||pt(i)&&pt(a)||Array.isArray(i)&&Array.isArray(a)?!$r(i,a):i!==a)return!1}}return!0}var $5=e=>e.type==="select-multiple",NR=e=>A1(e)||Hs(e),Cd=e=>Tc(e)&&e.isConnected,B5=e=>{for(const t in e)if(hr(e[t]))return!0;return!1};function Ac(e,t={}){const n=Array.isArray(e);if(pt(e)||n)for(const r in e)Array.isArray(e[r])||pt(e[r])&&!B5(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Ac(e[r],t[r])):Ft(e[r])||(t[r]=!0);return t}function U5(e,t,n){const r=Array.isArray(e);if(pt(e)||r)for(const o in e)Array.isArray(e[o])||pt(e[o])&&!B5(e[o])?st(t)||Pc(n[o])?n[o]=Array.isArray(e[o])?Ac(e[o],[]):{...Ac(e[o])}:U5(e[o],Ft(t)?{}:t[o],n[o]):n[o]=!$r(e[o],t[o]);return n}var El=(e,t)=>U5(e,t,Ac(t)),H5=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>st(e)?e:t?e===""?NaN:e&&+e:n&&Xn(e)?new Date(e):r?r(e):e;function Ed(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return P1(t)?t.files:A1(t)?V5(e.refs).value:$5(t)?[...t.selectedOptions].map(({value:n})=>n):Hs(t)?z5(e.refs).value:H5(st(t.value)?e.ref.value:t.value,e)}var RR=(e,t,n,r)=>{const o={};for(const i of e){const a=q(t,i);a&&Ae(o,i,a._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},ga=e=>st(e)?e:Mc(e)?e.source:pt(e)?Mc(e.value)?e.value.source:e.value:e;const dm="AsyncFunction";var TR=e=>(!e||!e.validate)&&!!(hr(e.validate)&&e.validate.constructor.name===dm||pt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===dm)),MR=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function fm(e,t,n){const r=q(e,n);if(r||T1(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const i=o.join("."),a=q(t,i),s=q(e,i);if(a&&!Array.isArray(a)&&n!==i)return{name:n};if(s&&s.type)return{name:i,error:s};o.pop()}return{name:n}}var PR=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,AR=(e,t)=>!Nu(q(e,t)).length&&mt(e,t);const DR={mode:Pn.onSubmit,reValidateMode:Pn.onChange,shouldFocusError:!0};function OR(e={}){let t={...DR,...e},n={submitCount:0,isDirty:!1,isLoading:hr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=pt(t.defaultValues)||pt(t.values)?Ht(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:Ht(o),a={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:_d(),array:_d(),state:_d()},h=om(t.mode),y=om(t.reValidateMode),x=t.criteriaMode===Pn.all,g=C=>D=>{clearTimeout(u),u=setTimeout(C,D)},b=async C=>{if(d.isValid||C){const D=t.resolver?Wt((await S()).errors):await $(r,!0);D!==n.isValid&&f.state.next({isValid:D})}},v=(C,D)=>{(d.isValidating||d.validatingFields)&&((C||Array.from(s.mount)).forEach(F=>{F&&(D?Ae(n.validatingFields,F,D):mt(n.validatingFields,F))}),f.state.next({validatingFields:n.validatingFields,isValidating:!Wt(n.validatingFields)}))},m=(C,D=[],F,te,J=!0,Z=!0)=>{if(te&&F){if(a.action=!0,Z&&Array.isArray(q(r,C))){const se=F(q(r,C),te.argA,te.argB);J&&Ae(r,C,se)}if(Z&&Array.isArray(q(n.errors,C))){const se=F(q(n.errors,C),te.argA,te.argB);J&&Ae(n.errors,C,se),AR(n.errors,C)}if(d.touchedFields&&Z&&Array.isArray(q(n.touchedFields,C))){const se=F(q(n.touchedFields,C),te.argA,te.argB);J&&Ae(n.touchedFields,C,se)}d.dirtyFields&&(n.dirtyFields=El(o,i)),f.state.next({name:C,isDirty:z(C,D),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Ae(i,C,D)},w=(C,D)=>{Ae(n.errors,C,D),f.state.next({errors:n.errors})},_=C=>{n.errors=C,f.state.next({errors:n.errors,isValid:!1})},E=(C,D,F,te)=>{const J=q(r,C);if(J){const Z=q(i,C,st(F)?q(o,C):F);st(Z)||te&&te.defaultChecked||D?Ae(i,C,D?Z:Ed(J._f)):R(C,Z),a.mount&&b()}},O=(C,D,F,te,J)=>{let Z=!1,se=!1;const je={name:C},Ie=!!(q(r,C)&&q(r,C)._f&&q(r,C)._f.disabled);if(!F||te){d.isDirty&&(se=n.isDirty,n.isDirty=je.isDirty=z(),Z=se!==je.isDirty);const Me=Ie||$r(q(o,C),D);se=!!(!Ie&&q(n.dirtyFields,C)),Me||Ie?mt(n.dirtyFields,C):Ae(n.dirtyFields,C,!0),je.dirtyFields=n.dirtyFields,Z=Z||d.dirtyFields&&se!==!Me}if(F){const Me=q(n.touchedFields,C);Me||(Ae(n.touchedFields,C,F),je.touchedFields=n.touchedFields,Z=Z||d.touchedFields&&Me!==F)}return Z&&J&&f.state.next(je),Z?je:{}},L=(C,D,F,te)=>{const J=q(n.errors,C),Z=d.isValid&&gn(D)&&n.isValid!==D;if(e.delayError&&F?(l=g(()=>w(C,F)),l(e.delayError)):(clearTimeout(u),l=null,F?Ae(n.errors,C,F):mt(n.errors,C)),(F?!$r(J,F):J)||!Wt(te)||Z){const se={...te,...Z&&gn(D)?{isValid:D}:{},errors:n.errors,name:C};n={...n,...se},f.state.next(se)}},S=async C=>{v(C,!0);const D=await t.resolver(i,t.context,RR(C||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return v(C),D},V=async C=>{const{errors:D}=await S(C);if(C)for(const F of C){const te=q(D,F);te?Ae(n.errors,F,te):mt(n.errors,F)}else n.errors=D;return D},$=async(C,D,F={valid:!0})=>{for(const te in C){const J=C[te];if(J){const{_f:Z,...se}=J;if(Z){const je=s.array.has(Z.name),Ie=J._f&&TR(J._f);Ie&&d.validatingFields&&v([te],!0);const Me=await um(J,i,x,t.shouldUseNativeValidation&&!D,je);if(Ie&&d.validatingFields&&v([te]),Me[Z.name]&&(F.valid=!1,D))break;!D&&(q(Me,Z.name)?je?ER(n.errors,Me,Z.name):Ae(n.errors,Z.name,Me[Z.name]):mt(n.errors,Z.name))}!Wt(se)&&await $(se,D,F)}}return F.valid},Q=()=>{for(const C of s.unMount){const D=q(r,C);D&&(D._f.refs?D._f.refs.every(F=>!Cd(F)):!Cd(D._f.ref))&&de(C)}s.unMount=new Set},z=(C,D)=>(C&&D&&Ae(i,C,D),!$r(U(),o)),X=(C,D,F)=>I5(C,s,{...a.mount?i:st(D)?o:Xn(C)?{[C]:D}:D},F,D),P=C=>Nu(q(a.mount?i:o,C,e.shouldUnregister?q(o,C,[]):[])),R=(C,D,F={})=>{const te=q(r,C);let J=D;if(te){const Z=te._f;Z&&(!Z.disabled&&Ae(i,C,H5(D,Z)),J=Tc(Z.ref)&&Ft(D)?"":D,$5(Z.ref)?[...Z.ref.options].forEach(se=>se.selected=J.includes(se.value)):Z.refs?Hs(Z.ref)?Z.refs.length>1?Z.refs.forEach(se=>(!se.defaultChecked||!se.disabled)&&(se.checked=Array.isArray(J)?!!J.find(je=>je===se.value):J===se.value)):Z.refs[0]&&(Z.refs[0].checked=!!J):Z.refs.forEach(se=>se.checked=se.value===J):P1(Z.ref)?Z.ref.value="":(Z.ref.value=J,Z.ref.type||f.values.next({name:C,values:{...i}})))}(F.shouldDirty||F.shouldTouch)&&O(C,J,F.shouldTouch,F.shouldDirty,!0),F.shouldValidate&&W(C)},A=(C,D,F)=>{for(const te in D){const J=D[te],Z=`${C}.${te}`,se=q(r,Z);(s.array.has(C)||!Pc(J)||se&&!se._f)&&!wi(J)?A(Z,J,F):R(Z,J,F)}},M=(C,D,F={})=>{const te=q(r,C),J=s.array.has(C),Z=Ht(D);Ae(i,C,Z),J?(f.array.next({name:C,values:{...i}}),(d.isDirty||d.dirtyFields)&&F.shouldDirty&&f.state.next({name:C,dirtyFields:El(o,i),isDirty:z(C,Z)})):te&&!te._f&&!Ft(Z)?A(C,Z,F):R(C,Z,F),im(C,s)&&f.state.next({...n}),f.values.next({name:a.mount?C:void 0,values:{...i}})},k=async C=>{a.mount=!0;const D=C.target;let F=D.name,te=!0;const J=q(r,F),Z=()=>D.type?Ed(J._f):T5(C),se=je=>{te=Number.isNaN(je)||$r(je,q(i,F,je))};if(J){let je,Ie;const Me=Z(),Xt=C.type===Rc.BLUR||C.type===Rc.FOCUS_OUT,mn=!MR(J._f)&&!t.resolver&&!q(n.errors,F)&&!J._f.deps||PR(Xt,q(n.touchedFields,F),n.isSubmitted,y,h),Pt=im(F,s,Xt);Ae(i,F,Me),Xt?(J._f.onBlur&&J._f.onBlur(C),l&&l(0)):J._f.onChange&&J._f.onChange(C);const At=O(F,Me,Xt,!1),yo=!Wt(At)||Pt;if(!Xt&&f.values.next({name:F,type:C.type,values:{...i}}),mn)return d.isValid&&(e.mode==="onBlur"?Xt&&b():b()),yo&&f.state.next({name:F,...Pt?{}:At});if(!Xt&&Pt&&f.state.next({...n}),t.resolver){const{errors:Hn}=await S([F]);if(se(Me),te){const ta=fm(n.errors,r,F),Dt=fm(Hn,r,ta.name||F);je=Dt.error,F=Dt.name,Ie=Wt(Hn)}}else v([F],!0),je=(await um(J,i,x,t.shouldUseNativeValidation))[F],v([F]),se(Me),te&&(je?Ie=!1:d.isValid&&(Ie=await $(r,!0)));te&&(J._f.deps&&W(J._f.deps),L(F,Ie,je,At))}},N=(C,D)=>{if(q(n.errors,D)&&C.focus)return C.focus(),1},W=async(C,D={})=>{let F,te;const J=Ba(C);if(t.resolver){const Z=await V(st(C)?C:J);F=Wt(Z),te=C?!J.some(se=>q(Z,se)):F}else C?(te=(await Promise.all(J.map(async Z=>{const se=q(r,Z);return await $(se&&se._f?{[Z]:se}:se)}))).every(Boolean),!(!te&&!n.isValid)&&b()):te=F=await $(r);return f.state.next({...!Xn(C)||d.isValid&&F!==n.isValid?{}:{name:C},...t.resolver||!C?{isValid:F}:{},errors:n.errors}),D.shouldFocus&&!te&&Ua(r,N,C?J:s.mount),te},U=C=>{const D={...a.mount?i:o};return st(C)?D:Xn(C)?q(D,C):C.map(F=>q(D,F))},Y=(C,D)=>({invalid:!!q((D||n).errors,C),isDirty:!!q((D||n).dirtyFields,C),error:q((D||n).errors,C),isValidating:!!q(n.validatingFields,C),isTouched:!!q((D||n).touchedFields,C)}),ae=C=>{C&&Ba(C).forEach(D=>mt(n.errors,D)),f.state.next({errors:C?n.errors:{}})},he=(C,D,F)=>{const te=(q(r,C,{_f:{}})._f||{}).ref,J=q(n.errors,C)||{},{ref:Z,message:se,type:je,...Ie}=J;Ae(n.errors,C,{...Ie,...D,ref:te}),f.state.next({name:C,errors:n.errors,isValid:!1}),F&&F.shouldFocus&&te&&te.focus&&te.focus()},Ve=(C,D)=>hr(C)?f.values.subscribe({next:F=>C(X(void 0,D),F)}):X(C,D,!0),de=(C,D={})=>{for(const F of C?Ba(C):s.mount)s.mount.delete(F),s.array.delete(F),D.keepValue||(mt(r,F),mt(i,F)),!D.keepError&&mt(n.errors,F),!D.keepDirty&&mt(n.dirtyFields,F),!D.keepTouched&&mt(n.touchedFields,F),!D.keepIsValidating&&mt(n.validatingFields,F),!t.shouldUnregister&&!D.keepDefaultValue&&mt(o,F);f.values.next({values:{...i}}),f.state.next({...n,...D.keepDirty?{isDirty:z()}:{}}),!D.keepIsValid&&b()},Ne=({disabled:C,name:D,field:F,fields:te,value:J})=>{if(gn(C)&&a.mount||C){const Z=C?void 0:st(J)?Ed(F?F._f:q(te,D)._f):J;Ae(i,D,Z),O(D,Z,!1,!1,!0)}},Ue=(C,D={})=>{let F=q(r,C);const te=gn(D.disabled)||gn(e.disabled);return Ae(r,C,{...F||{},_f:{...F&&F._f?F._f:{ref:{name:C}},name:C,mount:!0,...D}}),s.mount.add(C),F?Ne({field:F,disabled:gn(D.disabled)?D.disabled:e.disabled,name:C,value:D.value}):E(C,!0,D.value),{...te?{disabled:D.disabled||e.disabled}:{},...t.progressive?{required:!!D.required,min:ga(D.min),max:ga(D.max),minLength:ga(D.minLength),maxLength:ga(D.maxLength),pattern:ga(D.pattern)}:{},name:C,onChange:k,onBlur:k,ref:J=>{if(J){Ue(C,D),F=q(r,C);const Z=st(J.value)&&J.querySelectorAll&&J.querySelectorAll("input,select,textarea")[0]||J,se=NR(Z),je=F._f.refs||[];if(se?je.find(Ie=>Ie===Z):Z===F._f.ref)return;Ae(r,C,{_f:{...F._f,...se?{refs:[...je.filter(Cd),Z,...Array.isArray(q(o,C))?[{}]:[]],ref:{type:Z.type,name:C}}:{ref:Z}}}),E(C,!1,void 0,Z)}else F=q(r,C,{}),F._f&&(F._f.mount=!1),(t.shouldUnregister||D.shouldUnregister)&&!(M5(s.array,C)&&a.action)&&s.unMount.add(C)}}},qe=()=>t.shouldFocusError&&Ua(r,N,s.mount),wt=C=>{gn(C)&&(f.state.next({disabled:C}),Ua(r,(D,F)=>{const te=q(r,F);te&&(D.disabled=te._f.disabled||C,Array.isArray(te._f.refs)&&te._f.refs.forEach(J=>{J.disabled=te._f.disabled||C}))},0,!1))},or=(C,D)=>async F=>{let te;F&&(F.preventDefault&&F.preventDefault(),F.persist&&F.persist());let J=Ht(i);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:Z,values:se}=await S();n.errors=Z,J=se}else await $(r);if(mt(n.errors,"root"),Wt(n.errors)){f.state.next({errors:{}});try{await C(J,F)}catch(Z){te=Z}}else D&&await D({...n.errors},F),qe(),setTimeout(qe);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Wt(n.errors)&&!te,submitCount:n.submitCount+1,errors:n.errors}),te)throw te},Un=(C,D={})=>{q(r,C)&&(st(D.defaultValue)?M(C,Ht(q(o,C))):(M(C,D.defaultValue),Ae(o,C,Ht(D.defaultValue))),D.keepTouched||mt(n.touchedFields,C),D.keepDirty||(mt(n.dirtyFields,C),n.isDirty=D.defaultValue?z(C,Ht(q(o,C))):z()),D.keepError||(mt(n.errors,C),d.isValid&&b()),f.state.next({...n}))},fn=(C,D={})=>{const F=C?Ht(C):o,te=Ht(F),J=Wt(C),Z=J?o:te;if(D.keepDefaultValues||(o=F),!D.keepValues){if(D.keepDirtyValues)for(const se of s.mount)q(n.dirtyFields,se)?Ae(Z,se,q(i,se)):M(se,q(Z,se));else{if(R1&&st(C))for(const se of s.mount){const je=q(r,se);if(je&&je._f){const Ie=Array.isArray(je._f.refs)?je._f.refs[0]:je._f.ref;if(Tc(Ie)){const Me=Ie.closest("form");if(Me){Me.reset();break}}}}r={}}i=e.shouldUnregister?D.keepDefaultValues?Ht(o):{}:Ht(Z),f.array.next({values:{...Z}}),f.values.next({values:{...Z}})}s={mount:D.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!D.keepIsValid||!!D.keepDirtyValues,a.watch=!!e.shouldUnregister,f.state.next({submitCount:D.keepSubmitCount?n.submitCount:0,isDirty:J?!1:D.keepDirty?n.isDirty:!!(D.keepDefaultValues&&!$r(C,o)),isSubmitted:D.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:J?{}:D.keepDirtyValues?D.keepDefaultValues&&i?El(o,i):n.dirtyFields:D.keepDefaultValues&&C?El(o,C):D.keepDirty?n.dirtyFields:{},touchedFields:D.keepTouched?n.touchedFields:{},errors:D.keepErrors?n.errors:{},isSubmitSuccessful:D.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Ke=(C,D)=>fn(hr(C)?C(i):C,D);return{control:{register:Ue,unregister:de,getFieldState:Y,handleSubmit:or,setError:he,_executeSchema:S,_getWatch:X,_getDirty:z,_updateValid:b,_removeUnmounted:Q,_updateFieldArray:m,_updateDisabledField:Ne,_getFieldArray:P,_reset:fn,_resetDefaultValues:()=>hr(t.defaultValues)&&t.defaultValues().then(C=>{Ke(C,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:C=>{n={...n,...C}},_disableForm:wt,_subjects:f,_proxyFormState:d,_setErrors:_,get _fields(){return r},get _formValues(){return i},get _state(){return a},set _state(C){a=C},get _defaultValues(){return o},get _names(){return s},set _names(C){s=C},get _formState(){return n},set _formState(C){n=C},get _options(){return t},set _options(C){t={...t,...C}}},trigger:W,register:Ue,handleSubmit:or,watch:Ve,setValue:M,getValues:U,reset:Ke,resetField:Un,clearErrors:ae,unregister:de,setError:he,setFocus:(C,D={})=>{const F=q(r,C),te=F&&F._f;if(te){const J=te.refs?te.refs[0]:te.ref;J.focus&&(J.focus(),D.shouldSelect&&J.select())}},getFieldState:Y}}function LR(e={}){const t=B.useRef(),n=B.useRef(),[r,o]=B.useState({isDirty:!1,isValidating:!1,isLoading:hr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:hr(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...OR(e),formState:r});const i=t.current.control;return i._options=e,M1({subject:i._subjects.state,next:a=>{O5(a,i._proxyFormState,i._updateFormState,!0)&&o({...i._formState})}}),B.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),B.useEffect(()=>{if(i._proxyFormState.isDirty){const a=i._getDirty();a!==r.isDirty&&i._subjects.state.next({isDirty:a})}},[i,r.isDirty]),B.useEffect(()=>{e.values&&!$r(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,o(a=>({...a}))):i._resetDefaultValues()},[e.values,i]),B.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),B.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),B.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=D5(r,i),t.current}const hm=(e,t,n)=>{if(e&&"reportValidity"in e){const r=q(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},W5=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?hm(r.ref,n,e):r.refs&&r.refs.forEach(o=>hm(o,n,e))}},IR=(e,t)=>{t.shouldUseNativeValidation&&W5(e,t);const n={};for(const r in e){const o=q(t.fields,r),i=Object.assign(e[r]||{},{ref:o&&o.ref});if(FR(t.names||Object.keys(e),r)){const a=Object.assign({},q(n,r));Ae(a,"root",i),Ae(n,r,a)}else Ae(n,r,i)}return n},FR=(e,t)=>e.some(n=>n.startsWith(t+"."));var zR=function(e,t){for(var n={};e.length;){var r=e[0],o=r.code,i=r.message,a=r.path.join(".");if(!n[a])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[a]={message:s.message,type:s.code}}else n[a]={message:i,type:o};if("unionErrors"in r&&r.unionErrors.forEach(function(d){return d.errors.forEach(function(f){return e.push(f)})}),t){var l=n[a].types,u=l&&l[r.code];n[a]=F5(a,t,n,o,u?[].concat(u,r.message):r.message)}e.shift()}return n},VR=function(e,t,n){return n===void 0&&(n={}),function(r,o,i){try{return Promise.resolve(function(a,s){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(u){return i.shouldUseNativeValidation&&W5({},i),{errors:{},values:n.raw?r:u}})}catch(u){return s(u)}return l&&l.then?l.then(void 0,s):l}(0,function(a){if(function(s){return Array.isArray(s==null?void 0:s.errors)}(a))return{values:{},errors:IR(zR(a.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw a}))}catch(a){return Promise.reject(a)}}};class Ws{constructor(t=0,n="Network Error"){this.status=t,this.text=n}}const $R=()=>{if(!(typeof localStorage>"u"))return{get:e=>Promise.resolve(localStorage.getItem(e)),set:(e,t)=>Promise.resolve(localStorage.setItem(e,t)),remove:e=>Promise.resolve(localStorage.removeItem(e))}},_t={origin:"https://api.emailjs.com",blockHeadless:!1,storageProvider:$R()},D1=e=>e?typeof e=="string"?{publicKey:e}:e.toString()==="[object Object]"?e:{}:{},BR=(e,t="https://api.emailjs.com")=>{if(!e)return;const n=D1(e);_t.publicKey=n.publicKey,_t.blockHeadless=n.blockHeadless,_t.storageProvider=n.storageProvider,_t.blockList=n.blockList,_t.limitRate=n.limitRate,_t.origin=n.origin||t},G5=async(e,t,n={})=>{const r=await fetch(_t.origin+e,{method:"POST",headers:n,body:t}),o=await r.text(),i=new Ws(r.status,o);if(r.ok)return i;throw i},Z5=(e,t,n)=>{if(!e||typeof e!="string")throw"The public key is required. Visit https://dashboard.emailjs.com/admin/account";if(!t||typeof t!="string")throw"The service ID is required. Visit https://dashboard.emailjs.com/admin";if(!n||typeof n!="string")throw"The template ID is required. Visit https://dashboard.emailjs.com/admin/templates"},UR=e=>{if(e&&e.toString()!=="[object Object]")throw"The template params have to be the object. Visit https://www.emailjs.com/docs/sdk/send/"},K5=e=>e.webdriver||!e.languages||e.languages.length===0,Y5=()=>new Ws(451,"Unavailable For Headless Browser"),HR=(e,t)=>{if(!Array.isArray(e))throw"The BlockList list has to be an array";if(typeof t!="string")throw"The BlockList watchVariable has to be a string"},WR=e=>{var t;return!((t=e.list)!=null&&t.length)||!e.watchVariable},GR=(e,t)=>e instanceof FormData?e.get(t):e[t],Q5=(e,t)=>{if(WR(e))return!1;HR(e.list,e.watchVariable);const n=GR(t,e.watchVariable);return typeof n!="string"?!1:e.list.includes(n)},X5=()=>new Ws(403,"Forbidden"),ZR=(e,t)=>{if(typeof e!="number"||e<0)throw"The LimitRate throttle has to be a positive number";if(t&&typeof t!="string")throw"The LimitRate ID has to be a non-empty string"},KR=async(e,t,n)=>{const r=Number(await n.get(e)||0);return t-Date.now()+r},J5=async(e,t,n)=>{if(!t.throttle||!n)return!1;ZR(t.throttle,t.id);const r=t.id||e;return await KR(r,t.throttle,n)>0?!0:(await n.set(r,Date.now().toString()),!1)},q5=()=>new Ws(429,"Too Many Requests"),YR=async(e,t,n,r)=>{const o=D1(r),i=o.publicKey||_t.publicKey,a=o.blockHeadless||_t.blockHeadless,s=o.storageProvider||_t.storageProvider,l={..._t.blockList,...o.blockList},u={..._t.limitRate,...o.limitRate};return a&&K5(navigator)?Promise.reject(Y5()):(Z5(i,e,t),UR(n),n&&Q5(l,n)?Promise.reject(X5()):await J5(location.pathname,u,s)?Promise.reject(q5()):G5("/api/v1.0/email/send",JSON.stringify({lib_version:"4.4.1",user_id:i,service_id:e,template_id:t,template_params:n}),{"Content-type":"application/json"}))},QR=e=>{if(!e||e.nodeName!=="FORM")throw"The 3rd parameter is expected to be the HTML form element or the style selector of the form"},XR=e=>typeof e=="string"?document.querySelector(e):e,JR=async(e,t,n,r)=>{const o=D1(r),i=o.publicKey||_t.publicKey,a=o.blockHeadless||_t.blockHeadless,s=_t.storageProvider||o.storageProvider,l={..._t.blockList,...o.blockList},u={..._t.limitRate,...o.limitRate};if(a&&K5(navigator))return Promise.reject(Y5());const d=XR(n);Z5(i,e,t),QR(d);const f=new FormData(d);return Q5(l,f)?Promise.reject(X5()):await J5(location.pathname,u,s)?Promise.reject(q5()):(f.append("lib_version","4.4.1"),f.append("service_id",e),f.append("template_id",t),f.append("user_id",i),G5("/api/v1.0/email/send-form",f))},qR={init:BR,send:YR,sendForm:JR,EmailJSResponseStatus:Ws};var Re;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const i={};for(const a of o)i[a]=a;return i},e.getValidEnumValues=o=>{const i=e.objectKeys(o).filter(s=>typeof o[o[s]]!="number"),a={};for(const s of i)a[s]=o[s];return e.objectValues(a)},e.objectValues=o=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const i=[];for(const a in o)Object.prototype.hasOwnProperty.call(o,a)&&i.push(a);return i},e.find=(o,i)=>{for(const a of o)if(i(a))return a},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function r(o,i=" | "){return o.map(a=>typeof a=="string"?`'${a}'`:a).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(Re||(Re={}));var Wf;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Wf||(Wf={}));const re=Re.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Br=e=>{switch(typeof e){case"undefined":return re.undefined;case"string":return re.string;case"number":return isNaN(e)?re.nan:re.number;case"boolean":return re.boolean;case"function":return re.function;case"bigint":return re.bigint;case"symbol":return re.symbol;case"object":return Array.isArray(e)?re.array:e===null?re.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?re.promise:typeof Map<"u"&&e instanceof Map?re.map:typeof Set<"u"&&e instanceof Set?re.set:typeof Date<"u"&&e instanceof Date?re.date:re.object;default:return re.unknown}},K=Re.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"]),eT=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class ln extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(i){return i.message},r={_errors:[]},o=i=>{for(const a of i.issues)if(a.code==="invalid_union")a.unionErrors.map(o);else if(a.code==="invalid_return_type")o(a.returnTypeError);else if(a.code==="invalid_arguments")o(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let s=r,l=0;for(;ln.message){const n={},r=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}ln.create=e=>new ln(e);const Hi=(e,t)=>{let n;switch(e.code){case K.invalid_type:e.received===re.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case K.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Re.jsonStringifyReplacer)}`;break;case K.unrecognized_keys:n=`Unrecognized key(s) in object: ${Re.joinValues(e.keys,", ")}`;break;case K.invalid_union:n="Invalid input";break;case K.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Re.joinValues(e.options)}`;break;case K.invalid_enum_value:n=`Invalid enum value. Expected ${Re.joinValues(e.options)}, received '${e.received}'`;break;case K.invalid_arguments:n="Invalid function arguments";break;case K.invalid_return_type:n="Invalid function return type";break;case K.invalid_date:n="Invalid date";break;case K.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Re.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case K.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case K.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case K.custom:n="Invalid input";break;case K.invalid_intersection_types:n="Intersection results could not be merged";break;case K.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case K.not_finite:n="Number must be finite";break;default:n=t.defaultError,Re.assertNever(e)}return{message:n}};let e6=Hi;function tT(e){e6=e}function Dc(){return e6}const Oc=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],a={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let s="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)s=u(a,{data:t,defaultError:s}).message;return{...o,path:i,message:s}},nT=[];function ne(e,t){const n=Dc(),r=Oc({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Hi?void 0:Hi].filter(o=>!!o)});e.common.issues.push(r)}class Mt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const o of n){if(o.status==="aborted")return me;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const o of n){const i=await o.key,a=await o.value;r.push({key:i,value:a})}return Mt.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const o of n){const{key:i,value:a}=o;if(i.status==="aborted"||a.status==="aborted")return me;i.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof a.value<"u"||o.alwaysSet)&&(r[i.value]=a.value)}return{status:t.value,value:r}}}const me=Object.freeze({status:"aborted"}),bi=e=>({status:"dirty",value:e}),Vt=e=>({status:"valid",value:e}),Gf=e=>e.status==="aborted",Zf=e=>e.status==="dirty",ms=e=>e.status==="valid",gs=e=>typeof Promise<"u"&&e instanceof Promise;function Lc(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function t6(e,t,n,r,o){if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var ce;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ce||(ce={}));var ja,Na;class nr{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const pm=(e,t)=>{if(ms(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new ln(e.common.issues);return this._error=n,this._error}}};function we(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(a,s)=>{var l,u;const{message:d}=e;return a.code==="invalid_enum_value"?{message:d??s.defaultError}:typeof s.data>"u"?{message:(l=d??r)!==null&&l!==void 0?l:s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:(u=d??n)!==null&&u!==void 0?u:s.defaultError}},description:o}}class Ee{constructor(t){this.spa=this.safeParseAsync,this._def=t,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)}get description(){return this._def.description}_getType(t){return Br(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Br(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Mt,ctx:{common:t.parent.common,data:t.data,parsedType:Br(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(gs(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const o={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Br(t)},i=this._parseSync({data:t,path:o.path,parent:o});return pm(o,i)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Br(t)},o=this._parse({data:t,path:r.path,parent:r}),i=await(gs(o)?o:Promise.resolve(o));return pm(r,i)}refine(t,n){const r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,i)=>{const a=t(o),s=()=>i.addIssue({code:K.custom,...r(o)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new $n({schema:this,typeName:pe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return er.create(this,this._def)}nullable(){return co.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ln.create(this,this._def)}promise(){return Gi.create(this,this._def)}or(t){return ws.create([this,t],this._def)}and(t){return bs.create(this,t,this._def)}transform(t){return new $n({...we(this._def),schema:this,typeName:pe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new ks({...we(this._def),innerType:this,defaultValue:n,typeName:pe.ZodDefault})}brand(){return new O1({typeName:pe.ZodBranded,type:this,...we(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new js({...we(this._def),innerType:this,catchValue:n,typeName:pe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Gs.create(this,t)}readonly(){return Ns.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const rT=/^c[^\s-]{8,}$/i,oT=/^[0-9a-z]+$/,iT=/^[0-9A-HJKMNP-TV-Z]{26}$/,aT=/^[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,sT=/^[a-z0-9_-]{21}$/i,lT=/^[-+]?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)?)??$/,cT=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,uT="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let kd;const dT=/^(?:(?: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])$/,fT=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,hT=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,n6="((\\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])))",pT=new RegExp(`^${n6}$`);function r6(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function mT(e){return new RegExp(`^${r6(e)}$`)}function o6(e){let t=`${n6}T${r6(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function gT(e,t){return!!((t==="v4"||!t)&&dT.test(e)||(t==="v6"||!t)&&fT.test(e))}class An extends Ee{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==re.string){const i=this._getOrReturnCtx(t);return ne(i,{code:K.invalid_type,expected:re.string,received:i.parsedType}),me}const r=new Mt;let o;for(const i of this._def.checks)if(i.kind==="min")t.data.lengthi.value&&(o=this._getOrReturnCtx(t,o),ne(o,{code:K.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const a=t.data.length>i.value,s=t.data.lengtht.test(o),{validation:n,code:K.invalid_string,...ce.errToObj(r)})}_addCheck(t){return new An({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ce.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ce.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ce.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ce.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ce.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ce.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ce.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ce.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ce.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ce.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...ce.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ce.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ce.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ce.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ce.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ce.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ce.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ce.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ce.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ce.errToObj(n)})}nonempty(t){return this.min(1,ce.errToObj(t))}trim(){return new An({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new An({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new An({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new An({checks:[],typeName:pe.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...we(e)})};function vT(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,i=parseInt(e.toFixed(o).replace(".","")),a=parseInt(t.toFixed(o).replace(".",""));return i%a/Math.pow(10,o)}class ao extends Ee{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==re.number){const i=this._getOrReturnCtx(t);return ne(i,{code:K.invalid_type,expected:re.number,received:i.parsedType}),me}let r;const o=new Mt;for(const i of this._def.checks)i.kind==="int"?Re.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ne(r,{code:K.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ne(r,{code:K.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?vT(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),ne(r,{code:K.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ne(r,{code:K.not_finite,message:i.message}),o.dirty()):Re.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ce.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ce.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ce.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ce.toString(n))}setLimit(t,n,r,o){return new ao({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ce.toString(o)}]})}_addCheck(t){return new ao({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ce.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ce.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ce.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ce.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ce.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ce.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&Re.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew ao({checks:[],typeName:pe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...we(e)});class so extends Ee{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==re.bigint){const i=this._getOrReturnCtx(t);return ne(i,{code:K.invalid_type,expected:re.bigint,received:i.parsedType}),me}let r;const o=new Mt;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ne(r,{code:K.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ne(r,{code:K.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):Re.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ce.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ce.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ce.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ce.toString(n))}setLimit(t,n,r,o){return new so({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ce.toString(o)}]})}_addCheck(t){return new so({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ce.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new so({checks:[],typeName:pe.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...we(e)})};class vs extends Ee{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==re.boolean){const r=this._getOrReturnCtx(t);return ne(r,{code:K.invalid_type,expected:re.boolean,received:r.parsedType}),me}return Vt(t.data)}}vs.create=e=>new vs({typeName:pe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...we(e)});class Bo extends Ee{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==re.date){const i=this._getOrReturnCtx(t);return ne(i,{code:K.invalid_type,expected:re.date,received:i.parsedType}),me}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return ne(i,{code:K.invalid_date}),me}const r=new Mt;let o;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()i.value&&(o=this._getOrReturnCtx(t,o),ne(o,{code:K.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Re.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Bo({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ce.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ce.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew Bo({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:pe.ZodDate,...we(e)});class Ic extends Ee{_parse(t){if(this._getType(t)!==re.symbol){const r=this._getOrReturnCtx(t);return ne(r,{code:K.invalid_type,expected:re.symbol,received:r.parsedType}),me}return Vt(t.data)}}Ic.create=e=>new Ic({typeName:pe.ZodSymbol,...we(e)});class ys extends Ee{_parse(t){if(this._getType(t)!==re.undefined){const r=this._getOrReturnCtx(t);return ne(r,{code:K.invalid_type,expected:re.undefined,received:r.parsedType}),me}return Vt(t.data)}}ys.create=e=>new ys({typeName:pe.ZodUndefined,...we(e)});class xs extends Ee{_parse(t){if(this._getType(t)!==re.null){const r=this._getOrReturnCtx(t);return ne(r,{code:K.invalid_type,expected:re.null,received:r.parsedType}),me}return Vt(t.data)}}xs.create=e=>new xs({typeName:pe.ZodNull,...we(e)});class Wi extends Ee{constructor(){super(...arguments),this._any=!0}_parse(t){return Vt(t.data)}}Wi.create=e=>new Wi({typeName:pe.ZodAny,...we(e)});class Po extends Ee{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Vt(t.data)}}Po.create=e=>new Po({typeName:pe.ZodUnknown,...we(e)});class Sr extends Ee{_parse(t){const n=this._getOrReturnCtx(t);return ne(n,{code:K.invalid_type,expected:re.never,received:n.parsedType}),me}}Sr.create=e=>new Sr({typeName:pe.ZodNever,...we(e)});class Fc extends Ee{_parse(t){if(this._getType(t)!==re.undefined){const r=this._getOrReturnCtx(t);return ne(r,{code:K.invalid_type,expected:re.void,received:r.parsedType}),me}return Vt(t.data)}}Fc.create=e=>new Fc({typeName:pe.ZodVoid,...we(e)});class Ln extends Ee{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==re.array)return ne(n,{code:K.invalid_type,expected:re.array,received:n.parsedType}),me;if(o.exactLength!==null){const a=n.data.length>o.exactLength.value,s=n.data.lengtho.maxLength.value&&(ne(n,{code:K.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((a,s)=>o.type._parseAsync(new nr(n,a,n.path,s)))).then(a=>Mt.mergeArray(r,a));const i=[...n.data].map((a,s)=>o.type._parseSync(new nr(n,a,n.path,s)));return Mt.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Ln({...this._def,minLength:{value:t,message:ce.toString(n)}})}max(t,n){return new Ln({...this._def,maxLength:{value:t,message:ce.toString(n)}})}length(t,n){return new Ln({...this._def,exactLength:{value:t,message:ce.toString(n)}})}nonempty(t){return this.min(1,t)}}Ln.create=(e,t)=>new Ln({type:e,minLength:null,maxLength:null,exactLength:null,typeName:pe.ZodArray,...we(t)});function ai(e){if(e instanceof et){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=er.create(ai(r))}return new et({...e._def,shape:()=>t})}else return e instanceof Ln?new Ln({...e._def,type:ai(e.element)}):e instanceof er?er.create(ai(e.unwrap())):e instanceof co?co.create(ai(e.unwrap())):e instanceof rr?rr.create(e.items.map(t=>ai(t))):e}class et extends Ee{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Re.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==re.object){const u=this._getOrReturnCtx(t);return ne(u,{code:K.invalid_type,expected:re.object,received:u.parsedType}),me}const{status:r,ctx:o}=this._processInputParams(t),{shape:i,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof Sr&&this._def.unknownKeys==="strip"))for(const u in o.data)a.includes(u)||s.push(u);const l=[];for(const u of a){const d=i[u],f=o.data[u];l.push({key:{status:"valid",value:u},value:d._parse(new nr(o,f,o.path,u)),alwaysSet:u in o.data})}if(this._def.catchall instanceof Sr){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of s)l.push({key:{status:"valid",value:d},value:{status:"valid",value:o.data[d]}});else if(u==="strict")s.length>0&&(ne(o,{code:K.unrecognized_keys,keys:s}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of s){const f=o.data[d];l.push({key:{status:"valid",value:d},value:u._parse(new nr(o,f,o.path,d)),alwaysSet:d in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of l){const f=await d.key,h=await d.value;u.push({key:f,value:h,alwaysSet:d.alwaysSet})}return u}).then(u=>Mt.mergeObjectSync(r,u)):Mt.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return ce.errToObj,new et({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,i,a,s;const l=(a=(i=(o=this._def).errorMap)===null||i===void 0?void 0:i.call(o,n,r).message)!==null&&a!==void 0?a:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=ce.errToObj(t).message)!==null&&s!==void 0?s:l}:{message:l}}}:{}})}strip(){return new et({...this._def,unknownKeys:"strip"})}passthrough(){return new et({...this._def,unknownKeys:"passthrough"})}extend(t){return new et({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new et({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:pe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new et({...this._def,catchall:t})}pick(t){const n={};return Re.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new et({...this._def,shape:()=>n})}omit(t){const n={};return Re.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new et({...this._def,shape:()=>n})}deepPartial(){return ai(this)}partial(t){const n={};return Re.objectKeys(this.shape).forEach(r=>{const o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}),new et({...this._def,shape:()=>n})}required(t){const n={};return Re.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof er;)i=i._def.innerType;n[r]=i}}),new et({...this._def,shape:()=>n})}keyof(){return i6(Re.objectKeys(this.shape))}}et.create=(e,t)=>new et({shape:()=>e,unknownKeys:"strip",catchall:Sr.create(),typeName:pe.ZodObject,...we(t)});et.strictCreate=(e,t)=>new et({shape:()=>e,unknownKeys:"strict",catchall:Sr.create(),typeName:pe.ZodObject,...we(t)});et.lazycreate=(e,t)=>new et({shape:e,unknownKeys:"strip",catchall:Sr.create(),typeName:pe.ZodObject,...we(t)});class ws extends Ee{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function o(i){for(const s of i)if(s.result.status==="valid")return s.result;for(const s of i)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const a=i.map(s=>new ln(s.ctx.common.issues));return ne(n,{code:K.invalid_union,unionErrors:a}),me}if(n.common.async)return Promise.all(r.map(async i=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(o);{let i;const a=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},d=l._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:u}),u.common.issues.length&&a.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const s=a.map(l=>new ln(l));return ne(n,{code:K.invalid_union,unionErrors:s}),me}}get options(){return this._def.options}}ws.create=(e,t)=>new ws({options:e,typeName:pe.ZodUnion,...we(t)});const lr=e=>e instanceof _s?lr(e.schema):e instanceof $n?lr(e.innerType()):e instanceof Cs?[e.value]:e instanceof lo?e.options:e instanceof Es?Re.objectValues(e.enum):e instanceof ks?lr(e._def.innerType):e instanceof ys?[void 0]:e instanceof xs?[null]:e instanceof er?[void 0,...lr(e.unwrap())]:e instanceof co?[null,...lr(e.unwrap())]:e instanceof O1||e instanceof Ns?lr(e.unwrap()):e instanceof js?lr(e._def.innerType):[];class Tu extends Ee{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==re.object)return ne(n,{code:K.invalid_type,expected:re.object,received:n.parsedType}),me;const r=this.discriminator,o=n.data[r],i=this.optionsMap.get(o);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(ne(n,{code:K.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),me)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const o=new Map;for(const i of n){const a=lr(i.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of a){if(o.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);o.set(s,i)}}return new Tu({typeName:pe.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...we(r)})}}function Kf(e,t){const n=Br(e),r=Br(t);if(e===t)return{valid:!0,data:e};if(n===re.object&&r===re.object){const o=Re.objectKeys(t),i=Re.objectKeys(e).filter(s=>o.indexOf(s)!==-1),a={...e,...t};for(const s of i){const l=Kf(e[s],t[s]);if(!l.valid)return{valid:!1};a[s]=l.data}return{valid:!0,data:a}}else if(n===re.array&&r===re.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let i=0;i{if(Gf(i)||Gf(a))return me;const s=Kf(i.value,a.value);return s.valid?((Zf(i)||Zf(a))&&n.dirty(),{status:n.value,value:s.data}):(ne(r,{code:K.invalid_intersection_types}),me)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,a])=>o(i,a)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}bs.create=(e,t,n)=>new bs({left:e,right:t,typeName:pe.ZodIntersection,...we(n)});class rr extends Ee{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==re.array)return ne(r,{code:K.invalid_type,expected:re.array,received:r.parsedType}),me;if(r.data.lengththis._def.items.length&&(ne(r,{code:K.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((a,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new nr(r,a,r.path,s)):null}).filter(a=>!!a);return r.common.async?Promise.all(i).then(a=>Mt.mergeArray(n,a)):Mt.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new rr({...this._def,rest:t})}}rr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new rr({items:e,typeName:pe.ZodTuple,rest:null,...we(t)})};class Ss extends Ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==re.object)return ne(r,{code:K.invalid_type,expected:re.object,received:r.parsedType}),me;const o=[],i=this._def.keyType,a=this._def.valueType;for(const s in r.data)o.push({key:i._parse(new nr(r,s,r.path,s)),value:a._parse(new nr(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?Mt.mergeObjectAsync(n,o):Mt.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Ee?new Ss({keyType:t,valueType:n,typeName:pe.ZodRecord,...we(r)}):new Ss({keyType:An.create(),valueType:t,typeName:pe.ZodRecord,...we(n)})}}class zc extends Ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==re.map)return ne(r,{code:K.invalid_type,expected:re.map,received:r.parsedType}),me;const o=this._def.keyType,i=this._def.valueType,a=[...r.data.entries()].map(([s,l],u)=>({key:o._parse(new nr(r,s,r.path,[u,"key"])),value:i._parse(new nr(r,l,r.path,[u,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of a){const u=await l.key,d=await l.value;if(u.status==="aborted"||d.status==="aborted")return me;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),s.set(u.value,d.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const l of a){const u=l.key,d=l.value;if(u.status==="aborted"||d.status==="aborted")return me;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),s.set(u.value,d.value)}return{status:n.value,value:s}}}}zc.create=(e,t,n)=>new zc({valueType:t,keyType:e,typeName:pe.ZodMap,...we(n)});class Uo extends Ee{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==re.set)return ne(r,{code:K.invalid_type,expected:re.set,received:r.parsedType}),me;const o=this._def;o.minSize!==null&&r.data.sizeo.maxSize.value&&(ne(r,{code:K.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const i=this._def.valueType;function a(l){const u=new Set;for(const d of l){if(d.status==="aborted")return me;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}const s=[...r.data.values()].map((l,u)=>i._parse(new nr(r,l,r.path,u)));return r.common.async?Promise.all(s).then(l=>a(l)):a(s)}min(t,n){return new Uo({...this._def,minSize:{value:t,message:ce.toString(n)}})}max(t,n){return new Uo({...this._def,maxSize:{value:t,message:ce.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Uo.create=(e,t)=>new Uo({valueType:e,minSize:null,maxSize:null,typeName:pe.ZodSet,...we(t)});class Pi extends Ee{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==re.function)return ne(n,{code:K.invalid_type,expected:re.function,received:n.parsedType}),me;function r(s,l){return Oc({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Dc(),Hi].filter(u=>!!u),issueData:{code:K.invalid_arguments,argumentsError:l}})}function o(s,l){return Oc({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Dc(),Hi].filter(u=>!!u),issueData:{code:K.invalid_return_type,returnTypeError:l}})}const i={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof Gi){const s=this;return Vt(async function(...l){const u=new ln([]),d=await s._def.args.parseAsync(l,i).catch(y=>{throw u.addIssue(r(l,y)),u}),f=await Reflect.apply(a,this,d);return await s._def.returns._def.type.parseAsync(f,i).catch(y=>{throw u.addIssue(o(f,y)),u})})}else{const s=this;return Vt(function(...l){const u=s._def.args.safeParse(l,i);if(!u.success)throw new ln([r(l,u.error)]);const d=Reflect.apply(a,this,u.data),f=s._def.returns.safeParse(d,i);if(!f.success)throw new ln([o(d,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Pi({...this._def,args:rr.create(t).rest(Po.create())})}returns(t){return new Pi({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Pi({args:t||rr.create([]).rest(Po.create()),returns:n||Po.create(),typeName:pe.ZodFunction,...we(r)})}}class _s extends Ee{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}_s.create=(e,t)=>new _s({getter:e,typeName:pe.ZodLazy,...we(t)});class Cs extends Ee{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ne(n,{received:n.data,code:K.invalid_literal,expected:this._def.value}),me}return{status:"valid",value:t.data}}get value(){return this._def.value}}Cs.create=(e,t)=>new Cs({value:e,typeName:pe.ZodLiteral,...we(t)});function i6(e,t){return new lo({values:e,typeName:pe.ZodEnum,...we(t)})}class lo extends Ee{constructor(){super(...arguments),ja.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ne(n,{expected:Re.joinValues(r),received:n.parsedType,code:K.invalid_type}),me}if(Lc(this,ja)||t6(this,ja,new Set(this._def.values)),!Lc(this,ja).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ne(n,{received:n.data,code:K.invalid_enum_value,options:r}),me}return Vt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return lo.create(t,{...this._def,...n})}exclude(t,n=this._def){return lo.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}ja=new WeakMap;lo.create=i6;class Es extends Ee{constructor(){super(...arguments),Na.set(this,void 0)}_parse(t){const n=Re.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==re.string&&r.parsedType!==re.number){const o=Re.objectValues(n);return ne(r,{expected:Re.joinValues(o),received:r.parsedType,code:K.invalid_type}),me}if(Lc(this,Na)||t6(this,Na,new Set(Re.getValidEnumValues(this._def.values))),!Lc(this,Na).has(t.data)){const o=Re.objectValues(n);return ne(r,{received:r.data,code:K.invalid_enum_value,options:o}),me}return Vt(t.data)}get enum(){return this._def.values}}Na=new WeakMap;Es.create=(e,t)=>new Es({values:e,typeName:pe.ZodNativeEnum,...we(t)});class Gi extends Ee{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==re.promise&&n.common.async===!1)return ne(n,{code:K.invalid_type,expected:re.promise,received:n.parsedType}),me;const r=n.parsedType===re.promise?n.data:Promise.resolve(n.data);return Vt(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Gi.create=(e,t)=>new Gi({type:e,typeName:pe.ZodPromise,...we(t)});class $n extends Ee{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===pe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,i={addIssue:a=>{ne(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){const a=o.transform(r.data,i);if(r.common.async)return Promise.resolve(a).then(async s=>{if(n.value==="aborted")return me;const l=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return l.status==="aborted"?me:l.status==="dirty"||n.value==="dirty"?bi(l.value):l});{if(n.value==="aborted")return me;const s=this._def.schema._parseSync({data:a,path:r.path,parent:r});return s.status==="aborted"?me:s.status==="dirty"||n.value==="dirty"?bi(s.value):s}}if(o.type==="refinement"){const a=s=>{const l=o.refinement(s,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?me:(s.status==="dirty"&&n.dirty(),a(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?me:(s.status==="dirty"&&n.dirty(),a(s.value).then(()=>({status:n.value,value:s.value}))))}if(o.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ms(a))return a;const s=o.transform(a.value,i);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>ms(a)?Promise.resolve(o.transform(a.value,i)).then(s=>({status:n.value,value:s})):a);Re.assertNever(o)}}$n.create=(e,t,n)=>new $n({schema:e,typeName:pe.ZodEffects,effect:t,...we(n)});$n.createWithPreprocess=(e,t,n)=>new $n({schema:t,effect:{type:"preprocess",transform:e},typeName:pe.ZodEffects,...we(n)});class er extends Ee{_parse(t){return this._getType(t)===re.undefined?Vt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}er.create=(e,t)=>new er({innerType:e,typeName:pe.ZodOptional,...we(t)});class co extends Ee{_parse(t){return this._getType(t)===re.null?Vt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}co.create=(e,t)=>new co({innerType:e,typeName:pe.ZodNullable,...we(t)});class ks extends Ee{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===re.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ks.create=(e,t)=>new ks({innerType:e,typeName:pe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...we(t)});class js extends Ee{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return gs(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ln(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ln(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}js.create=(e,t)=>new js({innerType:e,typeName:pe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...we(t)});class Vc extends Ee{_parse(t){if(this._getType(t)!==re.nan){const r=this._getOrReturnCtx(t);return ne(r,{code:K.invalid_type,expected:re.nan,received:r.parsedType}),me}return{status:"valid",value:t.data}}}Vc.create=e=>new Vc({typeName:pe.ZodNaN,...we(e)});const yT=Symbol("zod_brand");class O1 extends Ee{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Gs extends Ee{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?me:i.status==="dirty"?(n.dirty(),bi(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?me:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new Gs({in:t,out:n,typeName:pe.ZodPipeline})}}class Ns extends Ee{_parse(t){const n=this._def.innerType._parse(t),r=o=>(ms(o)&&(o.value=Object.freeze(o.value)),o);return gs(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}}Ns.create=(e,t)=>new Ns({innerType:e,typeName:pe.ZodReadonly,...we(t)});function a6(e,t={},n){return e?Wi.create().superRefine((r,o)=>{var i,a;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(a=(i=s.fatal)!==null&&i!==void 0?i:n)!==null&&a!==void 0?a:!0,u=typeof s=="string"?{message:s}:s;o.addIssue({code:"custom",...u,fatal:l})}}):Wi.create()}const xT={object:et.lazycreate};var pe;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(pe||(pe={}));const wT=(e,t={message:`Input not instance of ${e.name}`})=>a6(n=>n instanceof e,t),s6=An.create,l6=ao.create,bT=Vc.create,ST=so.create,c6=vs.create,_T=Bo.create,CT=Ic.create,ET=ys.create,kT=xs.create,jT=Wi.create,NT=Po.create,RT=Sr.create,TT=Fc.create,MT=Ln.create,PT=et.create,AT=et.strictCreate,DT=ws.create,OT=Tu.create,LT=bs.create,IT=rr.create,FT=Ss.create,zT=zc.create,VT=Uo.create,$T=Pi.create,BT=_s.create,UT=Cs.create,HT=lo.create,WT=Es.create,GT=Gi.create,mm=$n.create,ZT=er.create,KT=co.create,YT=$n.createWithPreprocess,QT=Gs.create,XT=()=>s6().optional(),JT=()=>l6().optional(),qT=()=>c6().optional(),eM={string:e=>An.create({...e,coerce:!0}),number:e=>ao.create({...e,coerce:!0}),boolean:e=>vs.create({...e,coerce:!0}),bigint:e=>so.create({...e,coerce:!0}),date:e=>Bo.create({...e,coerce:!0})},tM=me;var va=Object.freeze({__proto__:null,defaultErrorMap:Hi,setErrorMap:tT,getErrorMap:Dc,makeIssue:Oc,EMPTY_PATH:nT,addIssueToContext:ne,ParseStatus:Mt,INVALID:me,DIRTY:bi,OK:Vt,isAborted:Gf,isDirty:Zf,isValid:ms,isAsync:gs,get util(){return Re},get objectUtil(){return Wf},ZodParsedType:re,getParsedType:Br,ZodType:Ee,datetimeRegex:o6,ZodString:An,ZodNumber:ao,ZodBigInt:so,ZodBoolean:vs,ZodDate:Bo,ZodSymbol:Ic,ZodUndefined:ys,ZodNull:xs,ZodAny:Wi,ZodUnknown:Po,ZodNever:Sr,ZodVoid:Fc,ZodArray:Ln,ZodObject:et,ZodUnion:ws,ZodDiscriminatedUnion:Tu,ZodIntersection:bs,ZodTuple:rr,ZodRecord:Ss,ZodMap:zc,ZodSet:Uo,ZodFunction:Pi,ZodLazy:_s,ZodLiteral:Cs,ZodEnum:lo,ZodNativeEnum:Es,ZodPromise:Gi,ZodEffects:$n,ZodTransformer:$n,ZodOptional:er,ZodNullable:co,ZodDefault:ks,ZodCatch:js,ZodNaN:Vc,BRAND:yT,ZodBranded:O1,ZodPipeline:Gs,ZodReadonly:Ns,custom:a6,Schema:Ee,ZodSchema:Ee,late:xT,get ZodFirstPartyTypeKind(){return pe},coerce:eM,any:jT,array:MT,bigint:ST,boolean:c6,date:_T,discriminatedUnion:OT,effect:mm,enum:HT,function:$T,instanceof:wT,intersection:LT,lazy:BT,literal:UT,map:zT,nan:bT,nativeEnum:WT,never:RT,null:kT,nullable:KT,number:l6,object:PT,oboolean:qT,onumber:JT,optional:ZT,ostring:XT,pipeline:QT,preprocess:YT,promise:GT,record:FT,set:VT,strictObject:AT,string:s6,symbol:CT,transformer:mm,tuple:IT,undefined:ET,union:DT,unknown:NT,void:TT,NEVER:tM,ZodIssueCode:K,quotelessJson:eT,ZodError:ln}),nM="Label",u6=p.forwardRef((e,t)=>c.jsx(Je.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));u6.displayName=nM;var d6=u6;const rM=cu("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),f6=p.forwardRef(({className:e,...t},n)=>c.jsx(d6,{ref:n,className:ue(rM(),e),...t}));f6.displayName=d6.displayName;const oM=wR,h6=p.createContext({}),kl=({...e})=>c.jsx(h6.Provider,{value:{name:e.name},children:c.jsx(CR,{...e})}),Mu=()=>{const e=p.useContext(h6),t=p.useContext(p6),{getFieldState:n,formState:r}=Ru(),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within ");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...o}},p6=p.createContext({}),Ra=p.forwardRef(({className:e,...t},n)=>{const r=p.useId();return c.jsx(p6.Provider,{value:{id:r},children:c.jsx("div",{ref:n,className:ue("space-y-2",e),...t})})});Ra.displayName="FormItem";const Ta=p.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:o}=Mu();return c.jsx(f6,{ref:n,className:ue(r&&"text-destructive",e),htmlFor:o,...t})});Ta.displayName="FormLabel";const Ma=p.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:i}=Mu();return c.jsx(to,{ref:t,id:r,"aria-describedby":n?`${o} ${i}`:`${o}`,"aria-invalid":!!n,...e})});Ma.displayName="FormControl";const iM=p.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=Mu();return c.jsx("p",{ref:n,id:r,className:ue("text-sm text-muted-foreground",e),...t})});iM.displayName="FormDescription";const Pa=p.forwardRef(({className:e,children:t,...n},r)=>{const{error:o,formMessageId:i}=Mu(),a=o?String(o==null?void 0:o.message):t;return a?c.jsx("p",{ref:r,id:i,className:ue("text-sm font-medium text-destructive",e),...n,children:a}):null});Pa.displayName="FormMessage";const m6=p.forwardRef(({className:e,...t},n)=>c.jsx("textarea",{className:ue("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));m6.displayName="Textarea";const Wl=p.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:ue("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Wl.displayName="Input";const aM=va.object({email:va.string().min(1,{message:"Email address is required"}).email({message:"Invalid email address"}),name:va.string().min(1,{message:"Name is required"}),subject:va.string().min(1,{message:"Subject is required"}),message:va.string().max(500,{message:"Message must be 500 characters long"}).optional()}),sM=()=>{const e=LR({resolver:VR(aM),defaultValues:{email:"",name:"",subject:"",message:""}}),[t,n]=p.useState(!1),r=async o=>{n(!0),await qR.send("service_1mmxvvr","template_09zmdug",o,{publicKey:"LR1efBVhST8xvbETv"}).then(()=>{e.reset(),Cp.success("Message sent. Thanks for reaching out!")}).catch(()=>Cp.error("Something went wrong. Please try again later.")),n(!1)};return c.jsx(oM,{...e,children:c.jsxs("form",{onSubmit:e.handleSubmit(r),className:`border border-primary/50 rounded-md w-full lg:w-3/5 bg-primary/10\r p-4 lg:p-6 transition-all duration-500 ease-in-out hover:shadow-2xl hover:shadow-primary/50 space-y-4`,children:[c.jsx(kl,{control:e.control,name:"email",render:({field:o})=>c.jsxs(Ra,{children:[c.jsx(Ta,{htmlFor:"email",children:"Email Address"}),c.jsx(Ma,{children:c.jsx(Wl,{placeholder:"example@domain.com",...o,id:"email",autoComplete:"email"})}),c.jsx(Pa,{})]})}),c.jsx(kl,{control:e.control,name:"name",render:({field:o})=>c.jsxs(Ra,{children:[c.jsx(Ta,{htmlFor:"name",children:"Name"}),c.jsx(Ma,{children:c.jsx(Wl,{placeholder:"John Doe",...o,id:"name",autoComplete:"name"})}),c.jsx(Pa,{})]})}),c.jsx(kl,{control:e.control,name:"subject",render:({field:o})=>c.jsxs(Ra,{children:[c.jsx(Ta,{htmlFor:"subject",children:"Subject"}),c.jsx(Ma,{children:c.jsx(Wl,{placeholder:"Subject of Your Inquiry",...o,id:"subject",name:"subject"})}),c.jsx(Pa,{})]})}),c.jsx(kl,{control:e.control,name:"message",render:({field:o})=>c.jsxs(Ra,{children:[c.jsx(Ta,{htmlFor:"message",children:"Message"}),c.jsx(Ma,{children:c.jsx(m6,{placeholder:"What's on your mind?",...o,id:"message",name:"message",className:"resize-none",rows:6})}),c.jsx(Pa,{})]})}),c.jsx("button",{type:"submit",disabled:t,className:`py-2 w-full bg-gradient-to-r from-[#310055] to-[#DC97FF]\r hover:brightness-125 transition-all rounded-md active:scale-95 flex-center\r - hover:drop-shadow-purple-glow font-semibold text-white disabled:brightness-90`,children:t?c.jsx(nb,{className:"w-5 h-5 animate-spin"}):"Submit"})]})})},lM=()=>c.jsxs("section",{className:ue("min-h-dvh pt-14 pb-6 flex-between flex-col gap-y-6 px-4 xl:px-0 overflow-hidden",vo.rootSection),id:lt.contact,children:[c.jsxs("div",{className:"leading-none flex-center flex-col",children:[c.jsx("h4",{className:"text-xs lg:text-sm font-bold text-center tracking-widest pt-6 lg:pb-2",children:"CONTACT"}),c.jsxs("p",{className:"text-xl lg:text-5xl text-center",children:["Connect, Collaborate, ",c.jsx("span",{className:"text-primary",children:"Create."})]}),c.jsx("p",{className:"text-xs lg:text-sm text-muted-foreground text-center lg:mt-2 w-3/4 lg:w-full",children:"Building meaningful connections to inspire innovation and growth."})]}),c.jsx(sM,{}),c.jsxs("div",{className:"flex-center w-full gap-x-4",children:[c.jsx(Hf,{}),c.jsx("p",{className:"whitespace-nowrap text-xs font-semibold text-muted-foreground",children:"or via"}),c.jsx(Hf,{})]}),c.jsx(vR,{})]}),cM=()=>c.jsx("span",{className:"absolute pointer-events-none top-0 w-full h-full bg-gradient-to-r from-background via-transparent to-background"}),gm=[{icon:_k,hexColor:A3,label:"HTML"},{icon:dk,hexColor:b3,label:"CSS"},{icon:Ck,hexColor:D3,label:"Javascript"},{icon:Qk,hexColor:ry,label:"Typescript"},{icon:fk,hexColor:S3,label:"Dart"},{icon:Ik,hexColor:Z3,label:"React JS"},{icon:Tk,hexColor:V3,label:"Next JS"},{icon:gk,hexColor:k3,label:"Flutter"},{icon:$k,hexColor:X3,label:"Shadcnui"},{icon:Gk,hexColor:ey,label:"TailwindCSS"},{icon:ik,hexColor:x3,label:"Bootstrap"},{icon:zk,hexColor:Y3,label:"Redux"},{icon:ej,hexColor:sy,label:"Zod"},{icon:Fk,hexColor:K3,label:"React Hook Form"},{icon:lk,hexColor:w3,label:"Clerk"},{icon:qk,hexColor:ay,label:"Vite"}],vm=[{icon:Mk,hexColor:$3,label:"Node JS"},{icon:hk,hexColor:_3,label:"Express JS"},{icon:bk,hexColor:M3,label:"Go"},{icon:jk,hexColor:I3,label:"MongoDB"},{icon:Hk,hexColor:J3,label:"Supabase"},{icon:mk,hexColor:E3,label:"Firebase"},{icon:Ok,hexColor:W3,label:"Prisma ORM"},{icon:Nk,hexColor:F3,label:"MySQL"},{icon:Ak,hexColor:U3,label:"PostgreSQL"},{icon:Wk,hexColor:q3,label:"Swagger"}],ym=[{icon:vk,hexColor:j3,label:"Git"},{icon:R3,hexColor:N3,label:"GitHub"},{icon:ok,hexColor:y3,label:"Bitbucket"},{icon:Jk,hexColor:iy,label:"Vercel"},{icon:Rk,hexColor:z3,label:"Netlify"},{icon:yk,hexColor:T3,label:"Github Pages"},{icon:Lk,hexColor:G3,label:"Python"},{icon:Zk,hexColor:ty,label:"Tensorflow"},{icon:Xk,hexColor:oy,label:"Unity"},{icon:rk,hexColor:v3,label:"Android Studio"}],xm=[{icon:Sk,hexColor:P3,label:"Google Colab"},{icon:Ek,hexColor:O3,label:"Jupyter"},{icon:pk,hexColor:C3,label:"Figma"},{icon:Vk,hexColor:Q3,label:"Rive"},{icon:nk,hexColor:g3,label:"Adobo Photoshop"},{icon:Kk,hexColor:ny,label:"Trello"},{icon:Pk,hexColor:B3,label:"Notion"},{icon:Dk,hexColor:H3,label:"Postman"}],Pu=({Icon:e,hexColor:t})=>{const[n,r]=p.useState(!1);return c.jsx("li",{className:ue("rounded-full p-4 border",n?"border-foreground/15":"border-border"),onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:c.jsx(e,{color:n?t:void 0,className:ue("w-6 lg:w-12 h-6 lg:h-12",!n&&"opacity-50")})})},uM=()=>c.jsx("div",{className:"max-w-screen-lg overflow-hidden group",children:c.jsx("ul",{className:"flex gap-x-4 animate-loop-scroll group-hover:paused w-max",children:gm.concat(gm).map((e,t)=>c.jsx(Pu,{Icon:e.icon,hexColor:e.hexColor},`frontend-${e.label}-${t}`))})}),dM=()=>c.jsx("div",{className:"max-w-screen-lg overflow-hidden group",children:c.jsx("ul",{className:"flex gap-x-4 animate-loop-scroll direction-reverse group-hover:paused w-max",children:vm.concat(vm).map((e,t)=>c.jsx(Pu,{Icon:e.icon,hexColor:e.hexColor},`backend-${e.label}-${t}`))})}),fM=()=>c.jsx("div",{className:"max-w-screen-lg overflow-hidden group",children:c.jsx("ul",{className:"flex gap-x-4 animate-loop-scroll group-hover:paused w-max",children:ym.concat(ym).map((e,t)=>c.jsx(Pu,{Icon:e.icon,hexColor:e.hexColor},`others-${e.label}-${t}`))})}),hM=()=>c.jsx("div",{className:"max-w-screen-lg overflow-hidden group",children:c.jsx("ul",{className:"flex gap-x-4 animate-loop-scroll direction-reverse group-hover:paused w-max",children:xm.concat(xm).map((e,t)=>c.jsx(Pu,{Icon:e.icon,hexColor:e.hexColor},`tools-${e.label}-${t}`))})}),pM=()=>c.jsxs("section",{className:ue("min-h-dvh h-dvh pt-14 flex-between flex-col gap-y-6 border-b",vo.rootSection),id:lt.skills,children:[c.jsxs("div",{className:"leading-none flex-center flex-col",children:[c.jsx("h4",{className:"text-xs lg:text-sm font-bold text-center tracking-widest pt-6 lg:pb-2",children:"SKILLS"}),c.jsxs("p",{className:"text-xl lg:text-5xl text-center",children:["Innovate, Implement, ",c.jsx("span",{className:"text-primary",children:"Repeat."})]}),c.jsx("p",{className:"text-xs lg:text-sm text-muted-foreground text-center lg:mt-2 w-3/4 lg:w-full",children:"Showcasing the skills I've developed and refined over the past 3 years."})]}),c.jsxs("div",{className:"w-full flex-center flex-col gap-y-4 relative",children:[c.jsx(uM,{}),c.jsx(dM,{}),c.jsx(fM,{}),c.jsx(hM,{}),c.jsx(cM,{})]}),c.jsxs("p",{className:"text-xs text-muted-foreground text-center max-w-screen-sm mx-auto w-4/5 lg:w-full lg:mt-6 pb-6",children:["Currently expanding my skill set by delving into"," ",c.jsx("span",{className:"text-foreground/80",children:"DevOps"})," practices, focusing on automation, CI/CD, and infrastructure management to enhance development and operational efficiency."]})]}),mM=()=>c.jsx("div",{className:"w-[424px] lg:w-[512px] h-[424px] lg:h-[512px] absolute pointer-events-none",children:c.jsxs("svg",{className:"BgAnimation__svg",viewBox:"0 0 602 602",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{opacity:"0.15",children:[c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M201.337 87.437C193.474 79.5738 180.725 79.5738 172.862 87.437L87.437 172.862C79.5739 180.725 79.5739 193.474 87.437 201.337L400.663 514.563C408.526 522.426 421.275 522.426 429.138 514.563L514.563 429.138C522.426 421.275 522.426 408.526 514.563 400.663L201.337 87.437ZM30.4869 115.912C-8.82897 155.228 -8.82897 218.972 30.4869 258.287L343.713 571.513C383.028 610.829 446.772 610.829 486.088 571.513L571.513 486.088C610.829 446.772 610.829 383.028 571.513 343.713L258.287 30.4869C218.972 -8.82896 155.228 -8.82896 115.912 30.4869L30.4869 115.912Z",stroke:"url(#paint0_radial)",id:"path_0"}),c.jsx("path",{d:"M514.563 201.337C522.426 193.474 522.426 180.725 514.563 172.862L429.138 87.437C421.275 79.5738 408.526 79.5739 400.663 87.437L358.098 130.002L301.148 73.0516L343.713 30.4869C383.028 -8.82896 446.772 -8.82896 486.088 30.4869L571.513 115.912C610.829 155.228 610.829 218.972 571.513 258.287L357.802 471.999L300.852 415.049L514.563 201.337Z",stroke:"url(#paint1_radial)",id:"path_1"}),c.jsx("path",{d:"M243.901 471.999L201.337 514.563C193.474 522.426 180.725 522.426 172.862 514.563L87.437 429.138C79.5739 421.275 79.5739 408.526 87.437 400.663L301.148 186.952L244.198 130.002L30.4869 343.713C-8.82897 383.028 -8.82897 446.772 30.4869 486.088L115.912 571.513C155.228 610.829 218.972 610.829 258.287 571.513L300.852 528.949L243.901 471.999Z",stroke:"url(#paint2_radial)",id:"path_2"})]}),c.jsx("ellipse",{cx:"295.027",cy:"193.118",transform:"translate(-295.027 -193.118)",rx:"1.07306",ry:"1.07433",fill:"#945DD6",children:c.jsx("animateMotion",{dur:"10s",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_2"})})}),c.jsx("path",{d:"M294.685 193.474L268.932 219.258",transform:"translate(-294.685 -193.474) rotate(45 294.685 193.474)",stroke:"url(#paint3_linear)",children:c.jsx("animateMotion",{dur:"10s",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_2"})})}),c.jsx("ellipse",{cx:"295.027",cy:"193.118",transform:"translate(-295.027 -193.118)",rx:"1.07306",ry:"1.07433",fill:"#46737",children:c.jsx("animateMotion",{dur:"5s",begin:"1",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_2"})})}),c.jsx("path",{d:"M294.685 193.474L268.932 219.258",transform:"translate(-294.685 -193.474) rotate(45 294.685 193.474)",stroke:"url(#paint7_linear)",children:c.jsx("animateMotion",{dur:"5s",begin:"1",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_2"})})}),c.jsx("ellipse",{cx:"476.525",cy:"363.313",rx:"1.07433",ry:"1.07306",transform:"translate(-476.525 -363.313) rotate(90 476.525 363.313)",fill:"#945DD6",children:c.jsx("animateMotion",{dur:"10s",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_0"})})}),c.jsx("path",{d:"M476.171 362.952L450.417 337.168",transform:"translate(-476.525 -363.313) rotate(-45 476.171 362.952)",stroke:"url(#paint4_linear)",children:c.jsx("animateMotion",{dur:"10s",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_0"})})}),c.jsx("ellipse",{cx:"382.164",cy:"155.029",rx:"1.07433",ry:"1.07306",transform:"translate(-382.164 -155.029) rotate(90 382.164 155.029)",fill:"#F46737",children:c.jsx("animateMotion",{dur:"10s",begin:"1",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_0"})})}),c.jsx("path",{d:"M381.81 154.669L356.057 128.885",transform:"translate(-381.81 -154.669) rotate(-45 381.81 154.669)",stroke:"url(#paint5_linear)",children:c.jsx("animateMotion",{dur:"10s",begin:"1",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_0"})})}),c.jsx("ellipse",{cx:"333.324",cy:"382.691",rx:"1.07306",ry:"1.07433",transform:"translate(-333.324 -382.691) rotate(-180 333.324 382.691)",fill:"#F46737",children:c.jsx("animateMotion",{dur:"5s",begin:"0",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_1"})})}),c.jsx("path",{d:"M333.667 382.335L359.42 356.551",transform:"scale(-1 1) translate(-333.667 -382.335) rotate(45 333.667 382.335)",stroke:"url(#paint6_linear)",children:c.jsx("animateMotion",{dur:"5s",begin:"0",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_1"})})}),c.jsx("ellipse",{cx:"165.524",cy:"93.9596",rx:"1.07306",ry:"1.07433",transform:"translate(-165.524 -93.9596)",fill:"#F46737",children:c.jsx("animateMotion",{dur:"10s",begin:"3",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_0"})})}),c.jsx("path",{d:"M165.182 94.3159L139.429 120.1",transform:"translate(-165.182 -94.3159) rotate(45 165.182 94.3159)",stroke:"url(#paint7_linear)",children:c.jsx("animateMotion",{dur:"10s",begin:"3",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_0"})})}),c.jsx("ellipse",{cx:"476.525",cy:"363.313",rx:"1.07433",ry:"1.07306",transform:"translate(-476.525 -363.313) rotate(90 476.525 363.313)",fill:"#13ADC7",children:c.jsx("animateMotion",{dur:"12s",begin:"4",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_0"})})}),c.jsx("path",{d:"M476.171 362.952L450.417 337.168",transform:"translate(-476.525 -363.313) rotate(-45 476.171 362.952)",stroke:"url(#paint11_linear)",children:c.jsx("animateMotion",{dur:"12s",begin:"4",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_0"})})}),c.jsxs("defs",{children:[c.jsxs("radialGradient",{id:"paint0_radial",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(301 301) rotate(90) scale(300)",children:[c.jsx("stop",{offset:"0.333333",stopColor:"#FBFBFB"}),c.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),c.jsxs("radialGradient",{id:"paint1_radial",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(301 301) rotate(90) scale(300)",children:[c.jsx("stop",{offset:"0.333333",stopColor:"#FBFBFB"}),c.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),c.jsxs("radialGradient",{id:"paint2_radial",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(301 301) rotate(90) scale(300)",children:[c.jsx("stop",{offset:"0.333333",stopColor:"#FBFBFB"}),c.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),c.jsxs("linearGradient",{id:"paint3_linear",x1:"295.043",y1:"193.116",x2:"269.975",y2:"218.154",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#945DD6"}),c.jsx("stop",{offset:"1",stopColor:"#945DD6",stopOpacity:"0"})]}),c.jsxs("linearGradient",{id:"paint4_linear",x1:"476.529",y1:"363.31",x2:"451.461",y2:"338.272",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#945DD6"}),c.jsx("stop",{offset:"1",stopColor:"#945DD6",stopOpacity:"0"})]}),c.jsxs("linearGradient",{id:"paint5_linear",x1:"382.168",y1:"155.027",x2:"357.1",y2:"129.989",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#F46737"}),c.jsx("stop",{offset:"1",stopColor:"#F46737",stopOpacity:"0"})]}),c.jsxs("linearGradient",{id:"paint6_linear",x1:"333.309",y1:"382.693",x2:"358.376",y2:"357.655",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#F46737"}),c.jsx("stop",{offset:"1",stopColor:"#F46737",stopOpacity:"0"})]}),c.jsxs("linearGradient",{id:"paint7_linear",x1:"165.54",y1:"93.9578",x2:"140.472",y2:"118.996",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#F46737"}),c.jsx("stop",{offset:"1",stopColor:"#F46737",stopOpacity:"0"})]}),c.jsxs("linearGradient",{id:"paint8_linear",x1:"414.367",y1:"301.156",x2:"439.435",y2:"276.118",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#13ADC7"}),c.jsx("stop",{offset:"1",stopColor:"#13ADC7",stopOpacity:"0"})]}),c.jsxs("linearGradient",{id:"paint9_linear",x1:"515.943",y1:"288.238",x2:"541.339",y2:"291.454",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#13ADC7"}),c.jsx("stop",{offset:"1",stopColor:"#13ADC7",stopOpacity:"0"})]}),c.jsxs("linearGradient",{id:"paint10_linear",x1:"117.001",y1:"230.619",x2:"117.36",y2:"258.193",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#945DD6"}),c.jsx("stop",{offset:"1",stopColor:"#945DD6",stopOpacity:"0"})]}),c.jsxs("linearGradient",{id:"paint11_linear",x1:"476.529",y1:"363.31",x2:"451.461",y2:"338.272",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#13ADC7"}),c.jsx("stop",{offset:"1",stopColor:"#13ADC7",stopOpacity:"0"})]})]})]})}),gM=()=>{const[e,t]=p.useState(!1);return c.jsxs("div",{className:"relative rounded-full w-[256px] lg:min-w-[364px] h-[256px] lg:min-h-[364px] cursor-pointer flex-center",onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),style:{perspective:"1000px"},children:[c.jsx(mM,{}),c.jsxs("div",{className:"absolute w-full h-full transition-transform duration-500 ease-in-out border lg:border-4 rounded-full border-secondary",style:{transformStyle:"preserve-3d",transform:`rotateY(${e?180:0}deg)`},children:[c.jsx("div",{className:"absolute w-full h-full flex-center rounded-full",style:{backfaceVisibility:"hidden"},children:c.jsx(Nc,{src:Ij,alt:"Me",hash:TN,className:"w-full h-full object-cover rounded-full"})}),c.jsx("div",{className:"absolute w-full h-full flex-center rounded-full",style:{backfaceVisibility:"hidden",transform:"rotateY(180deg)"},children:c.jsx(Nc,{src:Fj,alt:"Fingertips",hash:RN,className:"w-full h-full object-cover rounded-full"})})]})]})},vM=()=>c.jsx(Rt,{to:"https://drive.google.com/file/d/1ywkfqZul3nNBCcz4u2HPbgM7o5GLs0Sr/view?usp=sharing",target:"_blank",children:c.jsx("button",{className:`py-4 w-[256px] bg-gradient-to-r from-[#310055] to-[#DC97FF]\r + hover:drop-shadow-purple-glow font-semibold text-white disabled:brightness-90`,children:t?c.jsx(nb,{className:"w-5 h-5 animate-spin"}):"Submit"})]})})},lM=()=>c.jsxs("section",{className:ue("min-h-dvh pt-14 pb-6 flex-between flex-col gap-y-6 px-4 xl:px-0 overflow-hidden",vo.rootSection),id:lt.contact,children:[c.jsxs("div",{className:"leading-none flex-center flex-col",children:[c.jsx("h4",{className:"text-xs lg:text-sm font-bold text-center tracking-widest pt-6 lg:pb-2",children:"CONTACT"}),c.jsxs("p",{className:"text-xl lg:text-5xl text-center",children:["Connect, Collaborate, ",c.jsx("span",{className:"text-primary",children:"Create."})]}),c.jsx("p",{className:"text-xs lg:text-sm text-muted-foreground text-center lg:mt-2 w-3/4 lg:w-full",children:"Building meaningful connections to inspire innovation and growth."})]}),c.jsx(sM,{}),c.jsxs("div",{className:"flex-center w-full gap-x-4",children:[c.jsx(Hf,{}),c.jsx("p",{className:"whitespace-nowrap text-xs font-semibold text-muted-foreground",children:"or via"}),c.jsx(Hf,{})]}),c.jsx(vR,{})]}),cM=()=>c.jsx("span",{className:"absolute pointer-events-none top-0 w-full h-full bg-gradient-to-r from-background via-transparent to-background"}),gm=[{icon:_k,hexColor:A3,label:"HTML"},{icon:dk,hexColor:b3,label:"CSS"},{icon:Ck,hexColor:D3,label:"Javascript"},{icon:Qk,hexColor:ry,label:"Typescript"},{icon:fk,hexColor:S3,label:"Dart"},{icon:Ik,hexColor:Z3,label:"React JS"},{icon:Tk,hexColor:V3,label:"Next JS"},{icon:gk,hexColor:k3,label:"Flutter"},{icon:$k,hexColor:X3,label:"Shadcnui"},{icon:Gk,hexColor:ey,label:"TailwindCSS"},{icon:ik,hexColor:x3,label:"Bootstrap"},{icon:zk,hexColor:Y3,label:"Redux"},{icon:ej,hexColor:sy,label:"Zod"},{icon:Fk,hexColor:K3,label:"React Hook Form"},{icon:lk,hexColor:w3,label:"Clerk"},{icon:qk,hexColor:ay,label:"Vite"}],vm=[{icon:Mk,hexColor:$3,label:"Node JS"},{icon:hk,hexColor:_3,label:"Express JS"},{icon:bk,hexColor:M3,label:"Go"},{icon:jk,hexColor:I3,label:"MongoDB"},{icon:Hk,hexColor:J3,label:"Supabase"},{icon:mk,hexColor:E3,label:"Firebase"},{icon:Ok,hexColor:W3,label:"Prisma ORM"},{icon:Nk,hexColor:F3,label:"MySQL"},{icon:Ak,hexColor:U3,label:"PostgreSQL"},{icon:Wk,hexColor:q3,label:"Swagger"}],ym=[{icon:vk,hexColor:j3,label:"Git"},{icon:R3,hexColor:N3,label:"GitHub"},{icon:ok,hexColor:y3,label:"Bitbucket"},{icon:Jk,hexColor:iy,label:"Vercel"},{icon:Rk,hexColor:z3,label:"Netlify"},{icon:yk,hexColor:T3,label:"Github Pages"},{icon:Lk,hexColor:G3,label:"Python"},{icon:Zk,hexColor:ty,label:"Tensorflow"},{icon:Xk,hexColor:oy,label:"Unity"},{icon:rk,hexColor:v3,label:"Android Studio"}],xm=[{icon:Sk,hexColor:P3,label:"Google Colab"},{icon:Ek,hexColor:O3,label:"Jupyter"},{icon:pk,hexColor:C3,label:"Figma"},{icon:Vk,hexColor:Q3,label:"Rive"},{icon:nk,hexColor:g3,label:"Adobo Photoshop"},{icon:Kk,hexColor:ny,label:"Trello"},{icon:Pk,hexColor:B3,label:"Notion"},{icon:Dk,hexColor:H3,label:"Postman"}],Pu=({Icon:e,hexColor:t})=>{const[n,r]=p.useState(!1);return c.jsx("li",{className:ue("rounded-full p-4 border",n?"border-foreground/15":"border-border"),onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:c.jsx(e,{color:n?t:void 0,className:ue("w-6 lg:w-12 h-6 lg:h-12",!n&&"opacity-50")})})},uM=()=>c.jsx("div",{className:"max-w-screen-lg overflow-hidden group",children:c.jsx("ul",{className:"flex gap-x-4 animate-loop-scroll group-hover:paused w-max",children:gm.concat(gm).map((e,t)=>c.jsx(Pu,{Icon:e.icon,hexColor:e.hexColor},`frontend-${e.label}-${t}`))})}),dM=()=>c.jsx("div",{className:"max-w-screen-lg overflow-hidden group",children:c.jsx("ul",{className:"flex gap-x-4 animate-loop-scroll direction-reverse group-hover:paused w-max",children:vm.concat(vm).map((e,t)=>c.jsx(Pu,{Icon:e.icon,hexColor:e.hexColor},`backend-${e.label}-${t}`))})}),fM=()=>c.jsx("div",{className:"max-w-screen-lg overflow-hidden group",children:c.jsx("ul",{className:"flex gap-x-4 animate-loop-scroll group-hover:paused w-max",children:ym.concat(ym).map((e,t)=>c.jsx(Pu,{Icon:e.icon,hexColor:e.hexColor},`others-${e.label}-${t}`))})}),hM=()=>c.jsx("div",{className:"max-w-screen-lg overflow-hidden group",children:c.jsx("ul",{className:"flex gap-x-4 animate-loop-scroll direction-reverse group-hover:paused w-max",children:xm.concat(xm).map((e,t)=>c.jsx(Pu,{Icon:e.icon,hexColor:e.hexColor},`tools-${e.label}-${t}`))})}),pM=()=>c.jsxs("section",{className:ue("min-h-dvh h-dvh pt-14 flex-between flex-col gap-y-6 border-b",vo.rootSection),id:lt.skills,children:[c.jsxs("div",{className:"leading-none flex-center flex-col",children:[c.jsx("h4",{className:"text-xs lg:text-sm font-bold text-center tracking-widest pt-6 lg:pb-2",children:"SKILLS"}),c.jsxs("p",{className:"text-xl lg:text-5xl text-center",children:["Innovate, Implement, ",c.jsx("span",{className:"text-primary",children:"Repeat."})]}),c.jsx("p",{className:"text-xs lg:text-sm text-muted-foreground text-center lg:mt-2 w-3/4 lg:w-full",children:"Showcasing the skills I've developed and refined over the past 3 years."})]}),c.jsxs("div",{className:"w-full flex-center flex-col gap-y-4 relative",children:[c.jsx(uM,{}),c.jsx(dM,{}),c.jsx(fM,{}),c.jsx(hM,{}),c.jsx(cM,{})]}),c.jsxs("p",{className:"text-xs text-muted-foreground text-center max-w-screen-sm mx-auto w-4/5 lg:w-full lg:mt-6 pb-6",children:["Currently expanding my skill set by delving into"," ",c.jsx("span",{className:"text-foreground/80",children:"DevOps"})," practices, focusing on automation, CI/CD, and infrastructure management to enhance development and operational efficiency."]})]}),mM=()=>c.jsx("div",{className:"w-[424px] lg:w-[512px] h-[424px] lg:h-[512px] absolute pointer-events-none",children:c.jsxs("svg",{className:"BgAnimation__svg",viewBox:"0 0 602 602",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{opacity:"0.15",children:[c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M201.337 87.437C193.474 79.5738 180.725 79.5738 172.862 87.437L87.437 172.862C79.5739 180.725 79.5739 193.474 87.437 201.337L400.663 514.563C408.526 522.426 421.275 522.426 429.138 514.563L514.563 429.138C522.426 421.275 522.426 408.526 514.563 400.663L201.337 87.437ZM30.4869 115.912C-8.82897 155.228 -8.82897 218.972 30.4869 258.287L343.713 571.513C383.028 610.829 446.772 610.829 486.088 571.513L571.513 486.088C610.829 446.772 610.829 383.028 571.513 343.713L258.287 30.4869C218.972 -8.82896 155.228 -8.82896 115.912 30.4869L30.4869 115.912Z",stroke:"url(#paint0_radial)",id:"path_0"}),c.jsx("path",{d:"M514.563 201.337C522.426 193.474 522.426 180.725 514.563 172.862L429.138 87.437C421.275 79.5738 408.526 79.5739 400.663 87.437L358.098 130.002L301.148 73.0516L343.713 30.4869C383.028 -8.82896 446.772 -8.82896 486.088 30.4869L571.513 115.912C610.829 155.228 610.829 218.972 571.513 258.287L357.802 471.999L300.852 415.049L514.563 201.337Z",stroke:"url(#paint1_radial)",id:"path_1"}),c.jsx("path",{d:"M243.901 471.999L201.337 514.563C193.474 522.426 180.725 522.426 172.862 514.563L87.437 429.138C79.5739 421.275 79.5739 408.526 87.437 400.663L301.148 186.952L244.198 130.002L30.4869 343.713C-8.82897 383.028 -8.82897 446.772 30.4869 486.088L115.912 571.513C155.228 610.829 218.972 610.829 258.287 571.513L300.852 528.949L243.901 471.999Z",stroke:"url(#paint2_radial)",id:"path_2"})]}),c.jsx("ellipse",{cx:"295.027",cy:"193.118",transform:"translate(-295.027 -193.118)",rx:"1.07306",ry:"1.07433",fill:"#945DD6",children:c.jsx("animateMotion",{dur:"10s",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_2"})})}),c.jsx("path",{d:"M294.685 193.474L268.932 219.258",transform:"translate(-294.685 -193.474) rotate(45 294.685 193.474)",stroke:"url(#paint3_linear)",children:c.jsx("animateMotion",{dur:"10s",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_2"})})}),c.jsx("ellipse",{cx:"295.027",cy:"193.118",transform:"translate(-295.027 -193.118)",rx:"1.07306",ry:"1.07433",fill:"#46737",children:c.jsx("animateMotion",{dur:"5s",begin:"1",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_2"})})}),c.jsx("path",{d:"M294.685 193.474L268.932 219.258",transform:"translate(-294.685 -193.474) rotate(45 294.685 193.474)",stroke:"url(#paint7_linear)",children:c.jsx("animateMotion",{dur:"5s",begin:"1",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_2"})})}),c.jsx("ellipse",{cx:"476.525",cy:"363.313",rx:"1.07433",ry:"1.07306",transform:"translate(-476.525 -363.313) rotate(90 476.525 363.313)",fill:"#945DD6",children:c.jsx("animateMotion",{dur:"10s",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_0"})})}),c.jsx("path",{d:"M476.171 362.952L450.417 337.168",transform:"translate(-476.525 -363.313) rotate(-45 476.171 362.952)",stroke:"url(#paint4_linear)",children:c.jsx("animateMotion",{dur:"10s",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_0"})})}),c.jsx("ellipse",{cx:"382.164",cy:"155.029",rx:"1.07433",ry:"1.07306",transform:"translate(-382.164 -155.029) rotate(90 382.164 155.029)",fill:"#F46737",children:c.jsx("animateMotion",{dur:"10s",begin:"1",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_0"})})}),c.jsx("path",{d:"M381.81 154.669L356.057 128.885",transform:"translate(-381.81 -154.669) rotate(-45 381.81 154.669)",stroke:"url(#paint5_linear)",children:c.jsx("animateMotion",{dur:"10s",begin:"1",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_0"})})}),c.jsx("ellipse",{cx:"333.324",cy:"382.691",rx:"1.07306",ry:"1.07433",transform:"translate(-333.324 -382.691) rotate(-180 333.324 382.691)",fill:"#F46737",children:c.jsx("animateMotion",{dur:"5s",begin:"0",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_1"})})}),c.jsx("path",{d:"M333.667 382.335L359.42 356.551",transform:"scale(-1 1) translate(-333.667 -382.335) rotate(45 333.667 382.335)",stroke:"url(#paint6_linear)",children:c.jsx("animateMotion",{dur:"5s",begin:"0",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_1"})})}),c.jsx("ellipse",{cx:"165.524",cy:"93.9596",rx:"1.07306",ry:"1.07433",transform:"translate(-165.524 -93.9596)",fill:"#F46737",children:c.jsx("animateMotion",{dur:"10s",begin:"3",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_0"})})}),c.jsx("path",{d:"M165.182 94.3159L139.429 120.1",transform:"translate(-165.182 -94.3159) rotate(45 165.182 94.3159)",stroke:"url(#paint7_linear)",children:c.jsx("animateMotion",{dur:"10s",begin:"3",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_0"})})}),c.jsx("ellipse",{cx:"476.525",cy:"363.313",rx:"1.07433",ry:"1.07306",transform:"translate(-476.525 -363.313) rotate(90 476.525 363.313)",fill:"#13ADC7",children:c.jsx("animateMotion",{dur:"12s",begin:"4",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_0"})})}),c.jsx("path",{d:"M476.171 362.952L450.417 337.168",transform:"translate(-476.525 -363.313) rotate(-45 476.171 362.952)",stroke:"url(#paint11_linear)",children:c.jsx("animateMotion",{dur:"12s",begin:"4",repeatCount:"indefinite",rotate:"auto",children:c.jsx("mpath",{xlinkHref:"#path_0"})})}),c.jsxs("defs",{children:[c.jsxs("radialGradient",{id:"paint0_radial",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(301 301) rotate(90) scale(300)",children:[c.jsx("stop",{offset:"0.333333",stopColor:"#FBFBFB"}),c.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),c.jsxs("radialGradient",{id:"paint1_radial",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(301 301) rotate(90) scale(300)",children:[c.jsx("stop",{offset:"0.333333",stopColor:"#FBFBFB"}),c.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),c.jsxs("radialGradient",{id:"paint2_radial",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(301 301) rotate(90) scale(300)",children:[c.jsx("stop",{offset:"0.333333",stopColor:"#FBFBFB"}),c.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),c.jsxs("linearGradient",{id:"paint3_linear",x1:"295.043",y1:"193.116",x2:"269.975",y2:"218.154",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#945DD6"}),c.jsx("stop",{offset:"1",stopColor:"#945DD6",stopOpacity:"0"})]}),c.jsxs("linearGradient",{id:"paint4_linear",x1:"476.529",y1:"363.31",x2:"451.461",y2:"338.272",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#945DD6"}),c.jsx("stop",{offset:"1",stopColor:"#945DD6",stopOpacity:"0"})]}),c.jsxs("linearGradient",{id:"paint5_linear",x1:"382.168",y1:"155.027",x2:"357.1",y2:"129.989",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#F46737"}),c.jsx("stop",{offset:"1",stopColor:"#F46737",stopOpacity:"0"})]}),c.jsxs("linearGradient",{id:"paint6_linear",x1:"333.309",y1:"382.693",x2:"358.376",y2:"357.655",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#F46737"}),c.jsx("stop",{offset:"1",stopColor:"#F46737",stopOpacity:"0"})]}),c.jsxs("linearGradient",{id:"paint7_linear",x1:"165.54",y1:"93.9578",x2:"140.472",y2:"118.996",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#F46737"}),c.jsx("stop",{offset:"1",stopColor:"#F46737",stopOpacity:"0"})]}),c.jsxs("linearGradient",{id:"paint8_linear",x1:"414.367",y1:"301.156",x2:"439.435",y2:"276.118",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#13ADC7"}),c.jsx("stop",{offset:"1",stopColor:"#13ADC7",stopOpacity:"0"})]}),c.jsxs("linearGradient",{id:"paint9_linear",x1:"515.943",y1:"288.238",x2:"541.339",y2:"291.454",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#13ADC7"}),c.jsx("stop",{offset:"1",stopColor:"#13ADC7",stopOpacity:"0"})]}),c.jsxs("linearGradient",{id:"paint10_linear",x1:"117.001",y1:"230.619",x2:"117.36",y2:"258.193",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#945DD6"}),c.jsx("stop",{offset:"1",stopColor:"#945DD6",stopOpacity:"0"})]}),c.jsxs("linearGradient",{id:"paint11_linear",x1:"476.529",y1:"363.31",x2:"451.461",y2:"338.272",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#13ADC7"}),c.jsx("stop",{offset:"1",stopColor:"#13ADC7",stopOpacity:"0"})]})]})]})}),gM=()=>{const[e,t]=p.useState(!1);return c.jsxs("div",{className:"relative rounded-full w-[256px] lg:min-w-[364px] h-[256px] lg:min-h-[364px] cursor-pointer flex-center",onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),style:{perspective:"1000px"},children:[c.jsx(mM,{}),c.jsxs("div",{className:"absolute w-full h-full transition-transform duration-500 ease-in-out border lg:border-4 rounded-full border-secondary",style:{transformStyle:"preserve-3d",transform:`rotateY(${e?180:0}deg)`},children:[c.jsx("div",{className:"absolute w-full h-full flex-center rounded-full",style:{backfaceVisibility:"hidden"},children:c.jsx(Nc,{src:Ij,alt:"Me",hash:TN,className:"w-full h-full object-cover rounded-full"})}),c.jsx("div",{className:"absolute w-full h-full flex-center rounded-full",style:{backfaceVisibility:"hidden",transform:"rotateY(180deg)"},children:c.jsx(Nc,{src:Fj,alt:"Fingertips",hash:RN,className:"w-full h-full object-cover rounded-full"})})]})]})},vM=()=>c.jsx(Rt,{to:"https://drive.google.com/file/d/1kS_OEN015F7EtHYZjqu7W2viITWOCquE/view?usp=sharing",target:"_blank",children:c.jsx("button",{className:`py-4 w-[256px] bg-gradient-to-r from-[#310055] to-[#DC97FF]\r hover:scale-95 transition-all duration-500 ease-in-out rounded-full \r hover:drop-shadow-purple-glow font-semibold text-lg mt-8 text-white`,children:"Check Resume"})}),yM=()=>{const[e,t]=p.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return p.useEffect(()=>(n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}),[]),e},xM=()=>{const{width:e}=yM();return e>1024?c.jsxs(c.Fragment,{children:[c.jsxs("p",{className:"text-muted-foreground text-sm mt-2",children:["I am a dedicated"," ",c.jsx("span",{className:"text-foreground/80",children:"software developer"})," with a strong foundation in both"," ",c.jsx("span",{className:"text-foreground/80",children:"web"})," and"," ",c.jsx("span",{className:"text-foreground/80",children:"mobile technologies."})," ","Leveraging a"," ",c.jsx("span",{className:"text-foreground/80",children:"Bachelor's degree in Computer Science"})," ","and ",c.jsx("span",{className:"text-foreground/80",children:"at least 2"})," ",c.jsx("span",{className:"text-foreground/80",children:"years"})," of"," ",c.jsx("span",{className:"text-foreground/80",children:"experience"}),"."]}),c.jsxs("p",{className:"text-muted-foreground text-sm",children:["I specialize in creating robust, scalable solutions using"," ",c.jsx("span",{className:"text-foreground/80",children:"React.js"}),","," ",c.jsx("span",{className:"text-foreground/80",children:"React Native"}),", and"," ",c.jsx("span",{className:"text-foreground/80",children:"Flutter"})," for front-end development, coupled with"," ",c.jsx("span",{className:"text-foreground/80",children:"Express.js"})," for backend services. My expertise extends to working with databases and cloud platforms, including ",c.jsx("span",{className:"text-foreground/80",children:"MongoDB"}),", ",c.jsx("span",{className:"text-foreground/80",children:"Supabase"}),", and"," ",c.jsx("span",{className:"text-foreground/80",children:"Firebase"}),", as well as utilizing ",c.jsx("span",{className:"text-foreground/80",children:"Prisma"})," for ORM and"," ",c.jsx("span",{className:"text-foreground/80",children:"TensorFlow"})," for machine learning applications."]}),c.jsxs("p",{className:"text-muted-foreground text-sm",children:["In addition to my primary focus on building user-centric web and mobile applications, I am also passionate about"," ",c.jsx("span",{className:"text-foreground/80",children:"game development"}),". I create games using ",c.jsx("span",{className:"text-foreground/80",children:"Unity"}),","," ",c.jsx("span",{className:"text-foreground/80",children:"Flutter"})," and"," ",c.jsx("span",{className:"text-foreground/80",children:"Vanilla JavaScript"})," as a hobby, which enhances my problem-solving skills and creativity in software design."]})]}):c.jsxs("p",{className:"text-center text-muted-foreground text-xs sm:text-sm mt-2 max-w-screen-sm",children:["I am a ",c.jsx("span",{className:"text-foreground/80",children:"full-stack developer"})," ","with a"," ",c.jsx("span",{className:"text-foreground/80",children:"Bachelor's degree in Computer Science"})," ","and ",c.jsx("span",{className:"text-foreground/80",children:"at least 2"})," ",c.jsx("span",{className:"text-foreground/80",children:"years"})," of"," ",c.jsx("span",{className:"text-foreground/80",children:"experience"}),". I excel in creating scalable solutions using"," ",c.jsx("span",{className:"text-foreground/80",children:"React.js"}),","," ",c.jsx("span",{className:"text-foreground/80",children:"React Native"}),","," ",c.jsx("span",{className:"text-foreground/80",children:"Flutter"}),", and"," ",c.jsx("span",{className:"text-foreground/80",children:"Express.js"}),". My skills include working with ",c.jsx("span",{className:"text-foreground/80",children:"MongoDB"}),","," ",c.jsx("span",{className:"text-foreground/80",children:"Supabase"}),","," ",c.jsx("span",{className:"text-foreground/80",children:"Firebase"}),", and"," ",c.jsx("span",{className:"text-foreground/80",children:"Prisma"}),". Additionally, I am passionate about game development, creating games with"," ",c.jsx("span",{className:"text-foreground/80",children:"Unity"}),","," ",c.jsx("span",{className:"text-foreground/80",children:"Flutter"}),", and"," ",c.jsx("span",{className:"text-foreground/80",children:"Vanilla JavaScript"})," to enhance my problem-solving and design skills."]})},wM=({texts:e,speedForward:t=120,speedBackward:n=50,delayForward:r=2500,delayBackward:o=800})=>{const[i,a]=p.useState(""),[s,l]=p.useState(0),[u,d]=p.useState(0),[f,h]=p.useState(!0);return p.useEffect(()=>{const y=e[s];if(f)if(u{a(g=>g+y[u]),d(g=>g+1)},t);return()=>clearTimeout(x)}else{const x=setTimeout(()=>h(!1),r);return()=>clearTimeout(x)}else if(u>0){const x=setTimeout(()=>{a(g=>g.slice(0,-1)),d(g=>g-1)},n);return()=>clearTimeout(x)}else{const x=setTimeout(()=>{h(!0),l(g=>(g+1)%e.length),d(0)},o);return()=>clearTimeout(x)}},[u,f,s,e,t,n,r,o]),c.jsxs("div",{className:"flex items-start justify-center font-semibold text-lg lg:text-2xl",children:["I create",c.jsxs("div",{className:"text-[#8B2FC9] ml-1.5",children:[i,c.jsx("span",{className:"inline-block w-0.5 h-[1em] animate-blink ease-in-out",children:"|"})]})]})},bM=({isMounted:e})=>c.jsx("ul",{className:ue("flex-center gap-x-6 transition-opacity duration-500 ease-in-out",e?"opacity-100":"opacity-0"),children:cy.map(t=>{const n=t.icon;return c.jsx(zs,{asChild:!0,label:t.label,side:"top",children:c.jsx(Rt,{to:t.href,target:"_blank",className:`rounded-full border border-muted-foreground p-2.5\r hover:scale-105 hover:-translate-y-2 transition-all\r diff --git a/index.html b/index.html index 0e9085d..00dfca6 100644 --- a/index.html +++ b/index.html @@ -46,7 +46,7 @@ })(window.location); - +