diff --git "a/assets/index-wa7lotAc.js" "b/assets/index-wa7lotAc.js" new file mode 100644--- /dev/null +++ "b/assets/index-wa7lotAc.js" @@ -0,0 +1,21 @@ +(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const h of c)if(h.type==="childList")for(const f of h.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(c){const h={};return c.integrity&&(h.integrity=c.integrity),c.referrerPolicy&&(h.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?h.credentials="include":c.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(c){if(c.ep)return;c.ep=!0;const h=r(c);fetch(c.href,h)}})();function Z2(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Uu={exports:{}},cl={};var u0;function K2(){if(u0)return cl;u0=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(o,c,h){var f=null;if(h!==void 0&&(f=""+h),c.key!==void 0&&(f=""+c.key),"key"in c){h={};for(var m in c)m!=="key"&&(h[m]=c[m])}else h=c;return c=h.ref,{$$typeof:i,type:o,key:f,ref:c!==void 0?c:null,props:h}}return cl.Fragment=l,cl.jsx=r,cl.jsxs=r,cl}var c0;function k2(){return c0||(c0=1,Uu.exports=K2()),Uu.exports}var v=k2(),qu={exports:{}},at={};var f0;function F2(){if(f0)return at;f0=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),T=Symbol.iterator;function w(M){return M===null||typeof M!="object"?null:(M=T&&M[T]||M["@@iterator"],typeof M=="function"?M:null)}var V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,Y={};function q(M,N,Q){this.props=M,this.context=N,this.refs=Y,this.updater=Q||V}q.prototype.isReactComponent={},q.prototype.setState=function(M,N){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,N,"setState")},q.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function Z(){}Z.prototype=q.prototype;function X(M,N,Q){this.props=M,this.context=N,this.refs=Y,this.updater=Q||V}var nt=X.prototype=new Z;nt.constructor=X,H(nt,q.prototype),nt.isPureReactComponent=!0;var P=Array.isArray;function tt(){}var K={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function xt(M,N,Q){var F=Q.ref;return{$$typeof:i,type:M,key:N,ref:F!==void 0?F:null,props:Q}}function Rt(M,N){return xt(M.type,N,M.props)}function Kt(M){return typeof M=="object"&&M!==null&&M.$$typeof===i}function Pt(M){var N={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(Q){return N[Q]})}var Ie=/\/+/g;function je(M,N){return typeof M=="object"&&M!==null&&M.key!=null?Pt(""+M.key):N.toString(36)}function oe(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(tt,tt):(M.status="pending",M.then(function(N){M.status==="pending"&&(M.status="fulfilled",M.value=N)},function(N){M.status==="pending"&&(M.status="rejected",M.reason=N)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function R(M,N,Q,F,lt){var ot=typeof M;(ot==="undefined"||ot==="boolean")&&(M=null);var bt=!1;if(M===null)bt=!0;else switch(ot){case"bigint":case"string":case"number":bt=!0;break;case"object":switch(M.$$typeof){case i:case l:bt=!0;break;case y:return bt=M._init,R(bt(M._payload),N,Q,F,lt)}}if(bt)return lt=lt(M),bt=F===""?"."+je(M,0):F,P(lt)?(Q="",bt!=null&&(Q=bt.replace(Ie,"$&/")+"/"),R(lt,N,Q,"",function(ya){return ya})):lt!=null&&(Kt(lt)&&(lt=Rt(lt,Q+(lt.key==null||M&&M.key===lt.key?"":(""+lt.key).replace(Ie,"$&/")+"/")+bt)),N.push(lt)),1;bt=0;var le=F===""?".":F+":";if(P(M))for(var Nt=0;Nt>>1,pt=R[ft];if(0>>1;ftc(Q,J))Fc(lt,Q)?(R[ft]=lt,R[F]=J,ft=F):(R[ft]=Q,R[N]=J,ft=N);else if(Fc(lt,J))R[ft]=lt,R[F]=J,ft=F;else break t}}return U}function c(R,U){var J=R.sortIndex-U.sortIndex;return J!==0?J:R.id-U.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var f=Date,m=f.now();i.unstable_now=function(){return f.now()-m}}var p=[],g=[],y=1,x=null,T=3,w=!1,V=!1,H=!1,Y=!1,q=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function nt(R){for(var U=r(g);U!==null;){if(U.callback===null)o(g);else if(U.startTime<=R)o(g),U.sortIndex=U.expirationTime,l(p,U);else break;U=r(g)}}function P(R){if(H=!1,nt(R),!V)if(r(p)!==null)V=!0,tt||(tt=!0,Pt());else{var U=r(g);U!==null&&oe(P,U.startTime-R)}}var tt=!1,K=-1,I=5,xt=-1;function Rt(){return Y?!0:!(i.unstable_now()-xtR&&Rt());){var ft=x.callback;if(typeof ft=="function"){x.callback=null,T=x.priorityLevel;var pt=ft(x.expirationTime<=R);if(R=i.unstable_now(),typeof pt=="function"){x.callback=pt,nt(R),U=!0;break e}x===r(p)&&o(p),nt(R)}else o(p);x=r(p)}if(x!==null)U=!0;else{var M=r(g);M!==null&&oe(P,M.startTime-R),U=!1}}break t}finally{x=null,T=J,w=!1}U=void 0}}finally{U?Pt():tt=!1}}}var Pt;if(typeof X=="function")Pt=function(){X(Kt)};else if(typeof MessageChannel<"u"){var Ie=new MessageChannel,je=Ie.port2;Ie.port1.onmessage=Kt,Pt=function(){je.postMessage(null)}}else Pt=function(){q(Kt,0)};function oe(R,U){K=q(function(){R(i.unstable_now())},U)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(R){R.callback=null},i.unstable_forceFrameRate=function(R){0>R||125ft?(R.sortIndex=J,l(g,R),r(p)===null&&R===r(g)&&(H?(Z(K),K=-1):H=!0,oe(P,J-ft))):(R.sortIndex=pt,l(p,R),V||w||(V=!0,tt||(tt=!0,Pt()))),R},i.unstable_shouldYield=Rt,i.unstable_wrapCallback=function(R){var U=T;return function(){var J=T;T=U;try{return R.apply(this,arguments)}finally{T=J}}}})(Xu)),Xu}var m0;function W2(){return m0||(m0=1,Gu.exports=J2()),Gu.exports}var Qu={exports:{}},ae={};var p0;function P2(){if(p0)return ae;p0=1;var i=zc();function l(p){var g="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),Qu.exports=P2(),Qu.exports}var y0;function $2(){if(y0)return fl;y0=1;var i=W2(),l=zc(),r=I2();function o(t){var e="https://react.dev/errors/"+t;if(1pt||(t.current=ft[pt],ft[pt]=null,pt--)}function Q(t,e){pt++,ft[pt]=t.current,t.current=e}var F=M(null),lt=M(null),ot=M(null),bt=M(null);function le(t,e){switch(Q(ot,e),Q(lt,t),Q(F,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Rm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Rm(e),t=Vm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}N(F),Q(F,t)}function Nt(){N(F),N(lt),N(ot)}function ya(t){t.memoizedState!==null&&Q(bt,t);var e=F.current,n=Vm(e,t.type);e!==n&&(Q(lt,t),Q(F,n))}function Rl(t){lt.current===t&&(N(F),N(lt)),bt.current===t&&(N(bt),sl._currentValue=J)}var xr,of;function Jn(t){if(xr===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);xr=e&&e[1]||"",of=-1)":-1s||S[a]!==j[s]){var O=` +`+S[a].replace(" at new "," at ");return t.displayName&&O.includes("")&&(O=O.replace("",t.displayName)),O}while(1<=a&&0<=s);break}}}finally{Sr=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Jn(n):""}function Ty(t,e){switch(t.tag){case 26:case 27:case 5:return Jn(t.type);case 16:return Jn("Lazy");case 13:return t.child!==e&&e!==null?Jn("Suspense Fallback"):Jn("Suspense");case 19:return Jn("SuspenseList");case 0:case 15:return Tr(t.type,!1);case 11:return Tr(t.type.render,!1);case 1:return Tr(t.type,!0);case 31:return Jn("Activity");default:return""}}function uf(t){try{var e="",n=null;do e+=Ty(t,n),n=t,t=t.return;while(t);return e}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var Ar=Object.prototype.hasOwnProperty,Mr=i.unstable_scheduleCallback,Er=i.unstable_cancelCallback,Ay=i.unstable_shouldYield,My=i.unstable_requestPaint,ye=i.unstable_now,Ey=i.unstable_getCurrentPriorityLevel,cf=i.unstable_ImmediatePriority,ff=i.unstable_UserBlockingPriority,Vl=i.unstable_NormalPriority,Cy=i.unstable_LowPriority,df=i.unstable_IdlePriority,jy=i.log,zy=i.unstable_setDisableYieldValue,va=null,ve=null;function Sn(t){if(typeof jy=="function"&&zy(t),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(va,t)}catch{}}var be=Math.clz32?Math.clz32:Oy,Dy=Math.log,wy=Math.LN2;function Oy(t){return t>>>=0,t===0?32:31-(Dy(t)/wy|0)|0}var Bl=256,_l=262144,Nl=4194304;function Wn(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Hl(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var s=0,u=t.suspendedLanes,d=t.pingedLanes;t=t.warmLanes;var b=a&134217727;return b!==0?(a=b&~u,a!==0?s=Wn(a):(d&=b,d!==0?s=Wn(d):n||(n=b&~t,n!==0&&(s=Wn(n))))):(b=a&~u,b!==0?s=Wn(b):d!==0?s=Wn(d):n||(n=a&~t,n!==0&&(s=Wn(n)))),s===0?0:e!==0&&e!==s&&(e&u)===0&&(u=s&-s,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:s}function ba(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Ry(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function hf(){var t=Nl;return Nl<<=1,(Nl&62914560)===0&&(Nl=4194304),t}function Cr(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function xa(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Vy(t,e,n,a,s,u){var d=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var b=t.entanglements,S=t.expirationTimes,j=t.hiddenUpdates;for(n=d&~n;0"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Uy=/[\n"\\]/g;function De(t){return t.replace(Uy,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Rr(t,e,n,a,s,u,d,b){t.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?t.type=d:t.removeAttribute("type"),e!=null?d==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ze(e)):t.value!==""+ze(e)&&(t.value=""+ze(e)):d!=="submit"&&d!=="reset"||t.removeAttribute("value"),e!=null?Vr(t,d,ze(e)):n!=null?Vr(t,d,ze(n)):a!=null&&t.removeAttribute("value"),s==null&&u!=null&&(t.defaultChecked=!!u),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+ze(b):t.removeAttribute("name")}function Cf(t,e,n,a,s,u,d,b){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Or(t);return}n=n!=null?""+ze(n):"",e=e!=null?""+ze(e):n,b||e===t.value||(t.value=e),t.defaultValue=e}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=b?t.checked:!!a,t.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(t.name=d),Or(t)}function Vr(t,e,n){e==="number"&&ql(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function ji(t,e,n,a){if(t=t.options,e){e={};for(var s=0;s"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lr=!1;if(en)try{var Ma={};Object.defineProperty(Ma,"passive",{get:function(){Lr=!0}}),window.addEventListener("test",Ma,Ma),window.removeEventListener("test",Ma,Ma)}catch{Lr=!1}var An=null,Ur=null,Gl=null;function Vf(){if(Gl)return Gl;var t,e=Ur,n=e.length,a,s="value"in An?An.value:An.textContent,u=s.length;for(t=0;t=ja),Uf=" ",qf=!1;function Yf(t,e){switch(t){case"keyup":return h1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Oi=!1;function p1(t,e){switch(t){case"compositionend":return Gf(e);case"keypress":return e.which!==32?null:(qf=!0,Uf);case"textInput":return t=e.data,t===Uf&&qf?null:t;default:return null}}function g1(t,e){if(Oi)return t==="compositionend"||!Qr&&Yf(t,e)?(t=Vf(),Gl=Ur=An=null,Oi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Wf(n)}}function If(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?If(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function $f(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ql(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ql(t.document)}return e}function kr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var M1=en&&"documentMode"in document&&11>=document.documentMode,Ri=null,Fr=null,Oa=null,Jr=!1;function td(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jr||Ri==null||Ri!==ql(a)||(a=Ri,"selectionStart"in a&&kr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Oa&&wa(Oa,a)||(Oa=a,a=_s(Fr,"onSelect"),0>=d,s-=d,Ke=1<<32-be(e)+s|n<rt?(ht=W,W=null):ht=W.sibling;var yt=z(E,W,C[rt],B);if(yt===null){W===null&&(W=ht);break}t&&W&&yt.alternate===null&&e(E,W),A=u(yt,A,rt),gt===null?$=yt:gt.sibling=yt,gt=yt,W=ht}if(rt===C.length)return n(E,W),mt&&an(E,rt),$;if(W===null){for(;rtrt?(ht=W,W=null):ht=W.sibling;var Zn=z(E,W,yt.value,B);if(Zn===null){W===null&&(W=ht);break}t&&W&&Zn.alternate===null&&e(E,W),A=u(Zn,A,rt),gt===null?$=Zn:gt.sibling=Zn,gt=Zn,W=ht}if(yt.done)return n(E,W),mt&&an(E,rt),$;if(W===null){for(;!yt.done;rt++,yt=C.next())yt=_(E,yt.value,B),yt!==null&&(A=u(yt,A,rt),gt===null?$=yt:gt.sibling=yt,gt=yt);return mt&&an(E,rt),$}for(W=a(W);!yt.done;rt++,yt=C.next())yt=D(W,E,rt,yt.value,B),yt!==null&&(t&&yt.alternate!==null&&W.delete(yt.key===null?rt:yt.key),A=u(yt,A,rt),gt===null?$=yt:gt.sibling=yt,gt=yt);return t&&W.forEach(function(Q2){return e(E,Q2)}),mt&&an(E,rt),$}function Et(E,A,C,B){if(typeof C=="object"&&C!==null&&C.type===H&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case w:t:{for(var $=C.key;A!==null;){if(A.key===$){if($=C.type,$===H){if(A.tag===7){n(E,A.sibling),B=s(A,C.props.children),B.return=E,E=B;break t}}else if(A.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===I&&ri($)===A.type){n(E,A.sibling),B=s(A,C.props),Ha(B,C),B.return=E,E=B;break t}n(E,A);break}else e(E,A);A=A.sibling}C.type===H?(B=ni(C.props.children,E.mode,B,C.key),B.return=E,E=B):(B=Il(C.type,C.key,C.props,null,E.mode,B),Ha(B,C),B.return=E,E=B)}return d(E);case V:t:{for($=C.key;A!==null;){if(A.key===$)if(A.tag===4&&A.stateNode.containerInfo===C.containerInfo&&A.stateNode.implementation===C.implementation){n(E,A.sibling),B=s(A,C.children||[]),B.return=E,E=B;break t}else{n(E,A);break}else e(E,A);A=A.sibling}B=no(C,E.mode,B),B.return=E,E=B}return d(E);case I:return C=ri(C),Et(E,A,C,B)}if(oe(C))return k(E,A,C,B);if(Pt(C)){if($=Pt(C),typeof $!="function")throw Error(o(150));return C=$.call(C),et(E,A,C,B)}if(typeof C.then=="function")return Et(E,A,ls(C),B);if(C.$$typeof===X)return Et(E,A,es(E,C),B);ss(E,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,A!==null&&A.tag===6?(n(E,A.sibling),B=s(A,C),B.return=E,E=B):(n(E,A),B=eo(C,E.mode,B),B.return=E,E=B),d(E)):n(E,A)}return function(E,A,C,B){try{Na=0;var $=Et(E,A,C,B);return Xi=null,$}catch(W){if(W===Gi||W===is)throw W;var gt=Se(29,W,null,E.mode);return gt.lanes=B,gt.return=E,gt}finally{}}}var ui=Ad(!0),Md=Ad(!1),zn=!1;function po(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function go(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Dn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function wn(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(vt&2)!==0){var s=a.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),a.pending=e,e=Pl(t),rd(t,null,n),e}return Wl(t,a,e,n),Pl(t)}function La(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,pf(t,n)}}function yo(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var s=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?s=u=d:u=u.next=d,n=n.next}while(n!==null);u===null?s=u=e:u=u.next=e}else s=u=e;n={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var vo=!1;function Ua(){if(vo){var t=Yi;if(t!==null)throw t}}function qa(t,e,n,a){vo=!1;var s=t.updateQueue;zn=!1;var u=s.firstBaseUpdate,d=s.lastBaseUpdate,b=s.shared.pending;if(b!==null){s.shared.pending=null;var S=b,j=S.next;S.next=null,d===null?u=j:d.next=j,d=S;var O=t.alternate;O!==null&&(O=O.updateQueue,b=O.lastBaseUpdate,b!==d&&(b===null?O.firstBaseUpdate=j:b.next=j,O.lastBaseUpdate=S))}if(u!==null){var _=s.baseState;d=0,O=j=S=null,b=u;do{var z=b.lane&-536870913,D=z!==b.lane;if(D?(dt&z)===z:(a&z)===z){z!==0&&z===qi&&(vo=!0),O!==null&&(O=O.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var k=t,et=b;z=e;var Et=n;switch(et.tag){case 1:if(k=et.payload,typeof k=="function"){_=k.call(Et,_,z);break t}_=k;break t;case 3:k.flags=k.flags&-65537|128;case 0:if(k=et.payload,z=typeof k=="function"?k.call(Et,_,z):k,z==null)break t;_=x({},_,z);break t;case 2:zn=!0}}z=b.callback,z!==null&&(t.flags|=64,D&&(t.flags|=8192),D=s.callbacks,D===null?s.callbacks=[z]:D.push(z))}else D={lane:z,tag:b.tag,payload:b.payload,callback:b.callback,next:null},O===null?(j=O=D,S=_):O=O.next=D,d|=z;if(b=b.next,b===null){if(b=s.shared.pending,b===null)break;D=b,b=D.next,D.next=null,s.lastBaseUpdate=D,s.shared.pending=null}}while(!0);O===null&&(S=_),s.baseState=S,s.firstBaseUpdate=j,s.lastBaseUpdate=O,u===null&&(s.shared.lanes=0),_n|=d,t.lanes=d,t.memoizedState=_}}function Ed(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Cd(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;tu?u:8;var d=R.T,b={};R.T=b,Ho(t,!1,e,n);try{var S=s(),j=R.S;if(j!==null&&j(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var O=V1(S,a);Xa(t,e,O,Ce(t))}else Xa(t,e,a,Ce(t))}catch(_){Xa(t,e,{then:function(){},status:"rejected",reason:_},Ce())}finally{U.p=u,d!==null&&b.types!==null&&(d.types=b.types),R.T=d}}function U1(){}function _o(t,e,n,a){if(t.tag!==5)throw Error(o(476));var s=ah(t).queue;ih(t,s,e,J,n===null?U1:function(){return lh(t),n(a)})}function ah(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:on,lastRenderedState:J},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:on,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function lh(t){var e=ah(t);e.next===null&&(e=t.alternate.memoizedState),Xa(t,e.next.queue,{},Ce())}function No(){return te(sl)}function sh(){return Lt().memoizedState}function rh(){return Lt().memoizedState}function q1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ce();t=Dn(n);var a=wn(e,t,n);a!==null&&(pe(a,e,n),La(a,e,n)),e={cache:co()},t.payload=e;return}e=e.return}}function Y1(t,e,n){var a=Ce();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},gs(t)?uh(e,n):(n=$r(t,e,n,a),n!==null&&(pe(n,t,a),ch(n,e,a)))}function oh(t,e,n){var a=Ce();Xa(t,e,n,a)}function Xa(t,e,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(gs(t))uh(e,s);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var d=e.lastRenderedState,b=u(d,n);if(s.hasEagerState=!0,s.eagerState=b,xe(b,d))return Wl(t,e,s,0),Ct===null&&Jl(),!1}catch{}finally{}if(n=$r(t,e,s,a),n!==null)return pe(n,t,a),ch(n,e,a),!0}return!1}function Ho(t,e,n,a){if(a={lane:2,revertLane:pu(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},gs(t)){if(e)throw Error(o(479))}else e=$r(t,n,a,2),e!==null&&pe(e,t,2)}function gs(t){var e=t.alternate;return t===st||e!==null&&e===st}function uh(t,e){Zi=us=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function ch(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,pf(t,n)}}var Qa={readContext:te,use:ds,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useLayoutEffect:Vt,useInsertionEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useSyncExternalStore:Vt,useId:Vt,useHostTransitionStatus:Vt,useFormState:Vt,useActionState:Vt,useOptimistic:Vt,useMemoCache:Vt,useCacheRefresh:Vt};Qa.useEffectEvent=Vt;var fh={readContext:te,use:ds,useCallback:function(t,e){return se().memoizedState=[t,e===void 0?null:e],t},useContext:te,useEffect:Fd,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,ms(4194308,4,Id.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ms(4194308,4,t,e)},useInsertionEffect:function(t,e){ms(4,2,t,e)},useMemo:function(t,e){var n=se();e=e===void 0?null:e;var a=t();if(ci){Sn(!0);try{t()}finally{Sn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=se();if(n!==void 0){var s=n(e);if(ci){Sn(!0);try{n(e)}finally{Sn(!1)}}}else s=e;return a.memoizedState=a.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},a.queue=t,t=t.dispatch=Y1.bind(null,st,t),[a.memoizedState,t]},useRef:function(t){var e=se();return t={current:t},e.memoizedState=t},useState:function(t){t=wo(t);var e=t.queue,n=oh.bind(null,st,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Vo,useDeferredValue:function(t,e){var n=se();return Bo(n,t,e)},useTransition:function(){var t=wo(!1);return t=ih.bind(null,st,t.queue,!0,!1),se().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=st,s=se();if(mt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Ct===null)throw Error(o(349));(dt&127)!==0||Rd(a,e,n)}s.memoizedState=n;var u={value:n,getSnapshot:e};return s.queue=u,Fd(Bd.bind(null,a,u,t),[t]),a.flags|=2048,ki(9,{destroy:void 0},Vd.bind(null,a,u,n,e),null),n},useId:function(){var t=se(),e=Ct.identifierPrefix;if(mt){var n=ke,a=Ke;n=(a&~(1<<32-be(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=cs++,0<\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?d.createElement("select",{is:a.is}):d.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?d.createElement(s,{is:a.is}):d.createElement(s)}}u[It]=e,u[ue]=a;t:for(d=e.child;d!==null;){if(d.tag===5||d.tag===6)u.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break t;for(;d.sibling===null;){if(d.return===null||d.return===e)break t;d=d.return}d.sibling.return=d.return,d=d.sibling}e.stateNode=u;t:switch(ne(u,s,a),s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&cn(e)}}return Dt(e),Po(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&cn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=ot.current,Li(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,s=$t,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}t[It]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||wm(t.nodeValue,n)),t||Cn(e,!0)}else t=Ns(t).createTextNode(a),t[It]=e,e.stateNode=t}return Dt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=Li(e),n!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[It]=e}else ii(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Dt(e),t=!1}else n=so(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Ae(e),e):(Ae(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Dt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=Li(e),a!==null&&a.dehydrated!==null){if(t===null){if(!s)throw Error(o(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(o(317));s[It]=e}else ii(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Dt(e),s=!1}else s=so(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(Ae(e),e):(Ae(e),null)}return Ae(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==s&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Ss(e,e.updateQueue),Dt(e),null);case 4:return Nt(),t===null&&bu(e.stateNode.containerInfo),Dt(e),null;case 10:return sn(e.type),Dt(e),null;case 19:if(N(Ht),a=e.memoizedState,a===null)return Dt(e),null;if(s=(e.flags&128)!==0,u=a.rendering,u===null)if(s)Ka(a,!1);else{if(Bt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=os(t),u!==null){for(e.flags|=128,Ka(a,!1),t=u.updateQueue,e.updateQueue=t,Ss(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)od(n,t),n=n.sibling;return Q(Ht,Ht.current&1|2),mt&&an(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ye()>Cs&&(e.flags|=128,s=!0,Ka(a,!1),e.lanes=4194304)}else{if(!s)if(t=os(u),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,Ss(e,t),Ka(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!mt)return Dt(e),null}else 2*ye()-a.renderingStartTime>Cs&&n!==536870912&&(e.flags|=128,s=!0,Ka(a,!1),e.lanes=4194304);a.isBackwards?(u.sibling=e.child,e.child=u):(t=a.last,t!==null?t.sibling=u:e.child=u,a.last=u)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ye(),t.sibling=null,n=Ht.current,Q(Ht,s?n&1|2:n&1),mt&&an(e,a.treeForkCount),t):(Dt(e),null);case 22:case 23:return Ae(e),xo(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(Dt(e),e.subtreeFlags&6&&(e.flags|=8192)):Dt(e),n=e.updateQueue,n!==null&&Ss(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&N(si),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),sn(qt),Dt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function K1(t,e){switch(ao(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return sn(qt),Nt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Rl(e),null;case 31:if(e.memoizedState!==null){if(Ae(e),e.alternate===null)throw Error(o(340));ii()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ae(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));ii()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return N(Ht),null;case 4:return Nt(),null;case 10:return sn(e.type),null;case 22:case 23:return Ae(e),xo(),t!==null&&N(si),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return sn(qt),null;case 25:return null;default:return null}}function _h(t,e){switch(ao(e),e.tag){case 3:sn(qt),Nt();break;case 26:case 27:case 5:Rl(e);break;case 4:Nt();break;case 31:e.memoizedState!==null&&Ae(e);break;case 13:Ae(e);break;case 19:N(Ht);break;case 10:sn(e.type);break;case 22:case 23:Ae(e),xo(),t!==null&&N(si);break;case 24:sn(qt)}}function ka(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;do{if((n.tag&t)===t){a=void 0;var u=n.create,d=n.inst;a=u(),d.destroy=a}n=n.next}while(n!==s)}}catch(b){Tt(e,e.return,b)}}function Vn(t,e,n){try{var a=e.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var u=s.next;a=u;do{if((a.tag&t)===t){var d=a.inst,b=d.destroy;if(b!==void 0){d.destroy=void 0,s=e;var S=n,j=b;try{j()}catch(O){Tt(s,S,O)}}}a=a.next}while(a!==u)}}catch(O){Tt(e,e.return,O)}}function Nh(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Cd(e,n)}catch(a){Tt(t,t.return,a)}}}function Hh(t,e,n){n.props=fi(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Tt(t,e,a)}}function Fa(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(s){Tt(t,e,s)}}function Fe(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){Tt(t,e,s)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Tt(t,e,s)}else n.current=null}function Lh(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(s){Tt(t,t.return,s)}}function Io(t,e,n){try{var a=t.stateNode;m2(a,t.type,n,e),a[ue]=e}catch(s){Tt(t,t.return,s)}}function Uh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&qn(t.type)||t.tag===4}function $o(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Uh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&qn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function tu(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=tn));else if(a!==4&&(a===27&&qn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(tu(t,e,n),t=t.sibling;t!==null;)tu(t,e,n),t=t.sibling}function Ts(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&qn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Ts(t,e,n),t=t.sibling;t!==null;)Ts(t,e,n),t=t.sibling}function qh(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);ne(e,a,n),e[It]=t,e[ue]=n}catch(u){Tt(t,t.return,u)}}var fn=!1,Xt=!1,eu=!1,Yh=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function k1(t,e){if(t=t.containerInfo,Tu=Xs,t=$f(t),kr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var s=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var d=0,b=-1,S=-1,j=0,O=0,_=t,z=null;e:for(;;){for(var D;_!==n||s!==0&&_.nodeType!==3||(b=d+s),_!==u||a!==0&&_.nodeType!==3||(S=d+a),_.nodeType===3&&(d+=_.nodeValue.length),(D=_.firstChild)!==null;)z=_,_=D;for(;;){if(_===t)break e;if(z===n&&++j===s&&(b=d),z===u&&++O===a&&(S=d),(D=_.nextSibling)!==null)break;_=z,z=_.parentNode}_=D}n=b===-1||S===-1?null:{start:b,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(Au={focusedElem:t,selectionRange:n},Xs=!1,Jt=e;Jt!==null;)if(e=Jt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Jt=t;else for(;Jt!==null;){switch(e=Jt,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n title"))),ne(u,a,n),u[It]=t,Ft(u),a=u;break t;case"link":var d=km("link","href",s).get(a+(n.href||""));if(d){for(var b=0;bEt&&(d=Et,Et=et,et=d);var E=Pf(b,et),A=Pf(b,Et);if(E&&A&&(D.rangeCount!==1||D.anchorNode!==E.node||D.anchorOffset!==E.offset||D.focusNode!==A.node||D.focusOffset!==A.offset)){var C=_.createRange();C.setStart(E.node,E.offset),D.removeAllRanges(),et>Et?(D.addRange(C),D.extend(A.node,A.offset)):(C.setEnd(A.node,A.offset),D.addRange(C))}}}}for(_=[],D=b;D=D.parentNode;)D.nodeType===1&&_.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<_.length;b++){var B=_[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Xs=!!Tu,Au=Tu=null}finally{vt=s,U.p=a,R.T=n}}t.current=e,kt=2}}function mm(){if(kt===2){kt=0;var t=Hn,e=Ii,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=R.T,R.T=null;var a=U.p;U.p=2;var s=vt;vt|=4;try{Gh(t,e.alternate,e)}finally{vt=s,U.p=a,R.T=n}}kt=3}}function pm(){if(kt===4||kt===3){kt=0,My();var t=Hn,e=Ii,n=gn,a=em;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?kt=5:(kt=0,Ii=Hn=null,gm(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Nn=null),zr(n),e=e.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot(va,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=R.T,s=U.p,U.p=2,R.T=null;try{for(var u=t.onRecoverableError,d=0;dn?32:n,R.T=null,n=ou,ou=null;var u=Hn,d=gn;if(kt=0,Ii=Hn=null,gn=0,(vt&6)!==0)throw Error(o(331));var b=vt;if(vt|=4,Ih(u.current),Jh(u,u.current,d,n),vt=b,tl(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot(va,u)}catch{}return!0}finally{U.p=s,R.T=a,gm(t,e)}}function vm(t,e,n){e=Oe(n,e),e=Yo(t.stateNode,e,2),t=wn(t,e,2),t!==null&&(xa(t,2),Je(t))}function Tt(t,e,n){if(t.tag===3)vm(t,t,n);else for(;e!==null;){if(e.tag===3){vm(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Nn===null||!Nn.has(a))){t=Oe(n,t),n=bh(2),a=wn(e,n,2),a!==null&&(xh(n,a,e,t),xa(a,2),Je(a));break}}e=e.return}}function du(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new W1;var s=new Set;a.set(e,s)}else s=a.get(e),s===void 0&&(s=new Set,a.set(e,s));s.has(n)||(au=!0,s.add(n),t=e2.bind(null,t,e,n),e.then(t,t))}function e2(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ct===t&&(dt&n)===n&&(Bt===4||Bt===3&&(dt&62914560)===dt&&300>ye()-Es?(vt&2)===0&&$i(t,0):lu|=n,Pi===dt&&(Pi=0)),Je(t)}function bm(t,e){e===0&&(e=hf()),t=ei(t,e),t!==null&&(xa(t,e),Je(t))}function n2(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),bm(t,n)}function i2(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),bm(t,n)}function a2(t,e){return Mr(t,e)}var Rs=null,ea=null,hu=!1,Vs=!1,mu=!1,Un=0;function Je(t){t!==ea&&t.next===null&&(ea===null?Rs=ea=t:ea=ea.next=t),Vs=!0,hu||(hu=!0,s2())}function tl(t,e){if(!mu&&Vs){mu=!0;do for(var n=!1,a=Rs;a!==null;){if(t!==0){var s=a.pendingLanes;if(s===0)var u=0;else{var d=a.suspendedLanes,b=a.pingedLanes;u=(1<<31-be(42|t)+1)-1,u&=s&~(d&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Am(a,u))}else u=dt,u=Hl(a,a===Ct?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||ba(a,u)||(n=!0,Am(a,u));a=a.next}while(n);mu=!1}}function l2(){xm()}function xm(){Vs=hu=!1;var t=0;Un!==0&&g2()&&(t=Un);for(var e=ye(),n=null,a=Rs;a!==null;){var s=a.next,u=Sm(a,e);u===0?(a.next=null,n===null?Rs=s:n.next=s,s===null&&(ea=n)):(n=a,(t!==0||(u&3)!==0)&&(Vs=!0)),a=s}kt!==0&&kt!==5||tl(t),Un!==0&&(Un=0)}function Sm(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,s=t.expirationTimes,u=t.pendingLanes&-62914561;0b)break;var O=S.transferSize,_=S.initiatorType;O&&Om(_)&&(S=S.responseEnd,d+=O*(S"u"?null:document;function Xm(t,e,n){var a=na;if(a&&typeof e=="string"&&e){var s=De(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),Gm.has(s)||(Gm.add(s),t={rel:t,crossOrigin:n,href:e},a.querySelector(s)===null&&(e=a.createElement("link"),ne(e,"link",t),Ft(e),a.head.appendChild(e)))}}function E2(t){yn.D(t),Xm("dns-prefetch",t,null)}function C2(t,e){yn.C(t,e),Xm("preconnect",t,e)}function j2(t,e,n){yn.L(t,e,n);var a=na;if(a&&t&&e){var s='link[rel="preload"][as="'+De(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+De(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+De(n.imageSizes)+'"]')):s+='[href="'+De(t)+'"]';var u=s;switch(e){case"style":u=ia(t);break;case"script":u=aa(t)}He.has(u)||(t=x({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),He.set(u,t),a.querySelector(s)!==null||e==="style"&&a.querySelector(al(u))||e==="script"&&a.querySelector(ll(u))||(e=a.createElement("link"),ne(e,"link",t),Ft(e),a.head.appendChild(e)))}}function z2(t,e){yn.m(t,e);var n=na;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+De(a)+'"][href="'+De(t)+'"]',u=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=aa(t)}if(!He.has(u)&&(t=x({rel:"modulepreload",href:t},e),He.set(u,t),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ll(u)))return}a=n.createElement("link"),ne(a,"link",t),Ft(a),n.head.appendChild(a)}}}function D2(t,e,n){yn.S(t,e,n);var a=na;if(a&&t){var s=Ei(a).hoistableStyles,u=ia(t);e=e||"default";var d=s.get(u);if(!d){var b={loading:0,preload:null};if(d=a.querySelector(al(u)))b.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":e},n),(n=He.get(u))&&wu(t,n);var S=d=a.createElement("link");Ft(S),ne(S,"link",t),S._p=new Promise(function(j,O){S.onload=j,S.onerror=O}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Ls(d,e,a)}d={type:"stylesheet",instance:d,count:1,state:b},s.set(u,d)}}}function w2(t,e){yn.X(t,e);var n=na;if(n&&t){var a=Ei(n).hoistableScripts,s=aa(t),u=a.get(s);u||(u=n.querySelector(ll(s)),u||(t=x({src:t,async:!0},e),(e=He.get(s))&&Ou(t,e),u=n.createElement("script"),Ft(u),ne(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(s,u))}}function O2(t,e){yn.M(t,e);var n=na;if(n&&t){var a=Ei(n).hoistableScripts,s=aa(t),u=a.get(s);u||(u=n.querySelector(ll(s)),u||(t=x({src:t,async:!0,type:"module"},e),(e=He.get(s))&&Ou(t,e),u=n.createElement("script"),Ft(u),ne(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(s,u))}}function Qm(t,e,n,a){var s=(s=ot.current)?Hs(s):null;if(!s)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ia(n.href),n=Ei(s).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ia(n.href);var u=Ei(s).hoistableStyles,d=u.get(t);if(d||(s=s.ownerDocument||s,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,d),(u=s.querySelector(al(t)))&&!u._p&&(d.instance=u,d.state.loading=5),He.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},He.set(t,n),u||R2(s,t,n,d.state))),e&&a===null)throw Error(o(528,""));return d}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=aa(n),n=Ei(s).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function ia(t){return'href="'+De(t)+'"'}function al(t){return'link[rel="stylesheet"]['+t+"]"}function Zm(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function R2(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ne(e,"link",n),Ft(e),t.head.appendChild(e))}function aa(t){return'[src="'+De(t)+'"]'}function ll(t){return"script[async]"+t}function Km(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+De(n.href)+'"]');if(a)return e.instance=a,Ft(a),a;var s=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Ft(a),ne(a,"style",s),Ls(a,n.precedence,t),e.instance=a;case"stylesheet":s=ia(n.href);var u=t.querySelector(al(s));if(u)return e.state.loading|=4,e.instance=u,Ft(u),u;a=Zm(n),(s=He.get(s))&&wu(a,s),u=(t.ownerDocument||t).createElement("link"),Ft(u);var d=u;return d._p=new Promise(function(b,S){d.onload=b,d.onerror=S}),ne(u,"link",a),e.state.loading|=4,Ls(u,n.precedence,t),e.instance=u;case"script":return u=aa(n.src),(s=t.querySelector(ll(u)))?(e.instance=s,Ft(s),s):(a=n,(s=He.get(u))&&(a=x({},n),Ou(a,s)),t=t.ownerDocument||t,s=t.createElement("script"),Ft(s),ne(s,"link",a),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Ls(a,n.precedence,t));return e.instance}function Ls(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,u=s,d=0;d title"):null)}function V2(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Jm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function B2(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=ia(a.href),u=e.querySelector(al(s));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=qs.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,Ft(u);return}u=e.ownerDocument||e,a=Zm(a),(s=He.get(s))&&wu(a,s),u=u.createElement("link"),Ft(u);var d=u;d._p=new Promise(function(b,S){d.onload=b,d.onerror=S}),ne(u,"link",a),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=qs.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Ru=0;function _2(t,e){return t.stylesheets&&t.count===0&&Gs(t,t.stylesheets),0Ru?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function qs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gs(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ys=null;function Gs(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ys=new Map,e.forEach(N2,t),Ys=null,qs.call(t))}function N2(t,e){if(!(e.state.loading&4)){var n=Ys.get(t);if(n)var a=n.get(null);else{n=new Map,Ys.set(t,n);for(var s=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),Yu.exports=$2(),Yu.exports}var ev=tv();const Dc=L.createContext({});function Cl(i){const l=L.useRef(null);return l.current===null&&(l.current=i()),l.current}const wc=typeof window<"u",Oc=wc?L.useLayoutEffect:L.useEffect,pr=L.createContext(null);function Rc(i,l){i.indexOf(l)===-1&&i.push(l)}function Vc(i,l){const r=i.indexOf(l);r>-1&&i.splice(r,1)}const vn=(i,l,r)=>r>l?l:r{};const bn={},Up=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i);function qp(i){return typeof i=="object"&&i!==null}const Yp=i=>/^0[^.\s]+$/u.test(i);function _c(i){let l;return()=>(l===void 0&&(l=i()),l)}const Ye=i=>i,nv=(i,l)=>r=>l(i(r)),jl=(...i)=>i.reduce(nv),xl=(i,l,r)=>{const o=l-i;return o===0?1:(r-i)/o};class Nc{constructor(){this.subscriptions=[]}add(l){return Rc(this.subscriptions,l),()=>Vc(this.subscriptions,l)}notify(l,r,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,r,o);else for(let h=0;hi*1e3,qe=i=>i/1e3;function Gp(i,l){return l?i*(1e3/l):0}const Xp=(i,l,r)=>(((1-3*r+3*l)*i+(3*r-6*l))*i+3*l)*i,iv=1e-7,av=12;function lv(i,l,r,o,c){let h,f,m=0;do f=l+(r-l)/2,h=Xp(f,o,c)-i,h>0?r=f:l=f;while(Math.abs(h)>iv&&++mlv(h,0,1,i,r);return h=>h===0||h===1?h:Xp(c(h),l,o)}const Qp=i=>l=>l<=.5?i(2*l)/2:(2-i(2*(1-l)))/2,Zp=i=>l=>1-i(1-l),Kp=zl(.33,1.53,.69,.99),Hc=Zp(Kp),kp=Qp(Hc),Fp=i=>(i*=2)<1?.5*Hc(i):.5*(2-Math.pow(2,-10*(i-1))),Lc=i=>1-Math.sin(Math.acos(i)),Jp=Zp(Lc),Wp=Qp(Lc),sv=zl(.42,0,1,1),rv=zl(0,0,.58,1),Pp=zl(.42,0,.58,1),ov=i=>Array.isArray(i)&&typeof i[0]!="number",Ip=i=>Array.isArray(i)&&typeof i[0]=="number",uv={linear:Ye,easeIn:sv,easeInOut:Pp,easeOut:rv,circIn:Lc,circInOut:Wp,circOut:Jp,backIn:Hc,backInOut:kp,backOut:Kp,anticipate:Fp},cv=i=>typeof i=="string",b0=i=>{if(Ip(i)){Bc(i.length===4);const[l,r,o,c]=i;return zl(l,r,o,c)}else if(cv(i))return uv[i];return i},Ws=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function fv(i,l){let r=new Set,o=new Set,c=!1,h=!1;const f=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function p(y){f.has(y)&&(g.schedule(y),i()),y(m)}const g={schedule:(y,x=!1,T=!1)=>{const V=T&&c?r:o;return x&&f.add(y),V.has(y)||V.add(y),y},cancel:y=>{o.delete(y),f.delete(y)},process:y=>{if(m=y,c){h=!0;return}c=!0,[r,o]=[o,r],r.forEach(p),r.clear(),c=!1,h&&(h=!1,g.process(y))}};return g}const dv=40;function $p(i,l){let r=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},h=()=>r=!0,f=Ws.reduce((X,nt)=>(X[nt]=fv(h),X),{}),{setup:m,read:p,resolveKeyframes:g,preUpdate:y,update:x,preRender:T,render:w,postRender:V}=f,H=()=>{const X=bn.useManualTiming?c.timestamp:performance.now();r=!1,bn.useManualTiming||(c.delta=o?1e3/60:Math.max(Math.min(X-c.timestamp,dv),1)),c.timestamp=X,c.isProcessing=!0,m.process(c),p.process(c),g.process(c),y.process(c),x.process(c),T.process(c),w.process(c),V.process(c),c.isProcessing=!1,r&&l&&(o=!1,i(H))},Y=()=>{r=!0,o=!0,c.isProcessing||i(H)};return{schedule:Ws.reduce((X,nt)=>{const P=f[nt];return X[nt]=(tt,K=!1,I=!1)=>(r||Y(),P.schedule(tt,K,I)),X},{}),cancel:X=>{for(let nt=0;nt(er===void 0&&ge.set(ie.isProcessing||bn.useManualTiming?ie.timestamp:performance.now()),er),set:i=>{er=i,queueMicrotask(hv)}},tg=i=>l=>typeof l=="string"&&l.startsWith(i),Uc=tg("--"),mv=tg("var(--"),qc=i=>mv(i)?pv.test(i.split("/*")[0].trim()):!1,pv=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ma={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},Sl={...ma,transform:i=>vn(0,1,i)},Ps={...ma,default:1},ml=i=>Math.round(i*1e5)/1e5,Yc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function gv(i){return i==null}const yv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Gc=(i,l)=>r=>!!(typeof r=="string"&&yv.test(r)&&r.startsWith(i)||l&&!gv(r)&&Object.prototype.hasOwnProperty.call(r,l)),eg=(i,l,r)=>o=>{if(typeof o!="string")return o;const[c,h,f,m]=o.match(Yc);return{[i]:parseFloat(c),[l]:parseFloat(h),[r]:parseFloat(f),alpha:m!==void 0?parseFloat(m):1}},vv=i=>vn(0,255,i),Ku={...ma,transform:i=>Math.round(vv(i))},gi={test:Gc("rgb","red"),parse:eg("red","green","blue"),transform:({red:i,green:l,blue:r,alpha:o=1})=>"rgba("+Ku.transform(i)+", "+Ku.transform(l)+", "+Ku.transform(r)+", "+ml(Sl.transform(o))+")"};function bv(i){let l="",r="",o="",c="";return i.length>5?(l=i.substring(1,3),r=i.substring(3,5),o=i.substring(5,7),c=i.substring(7,9)):(l=i.substring(1,2),r=i.substring(2,3),o=i.substring(3,4),c=i.substring(4,5),l+=l,r+=r,o+=o,c+=c),{red:parseInt(l,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const sc={test:Gc("#"),parse:bv,transform:gi.transform},Dl=i=>({test:l=>typeof l=="string"&&l.endsWith(i)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${i}`}),Kn=Dl("deg"),Pe=Dl("%"),it=Dl("px"),xv=Dl("vh"),Sv=Dl("vw"),x0={...Pe,parse:i=>Pe.parse(i)/100,transform:i=>Pe.transform(i*100)},sa={test:Gc("hsl","hue"),parse:eg("hue","saturation","lightness"),transform:({hue:i,saturation:l,lightness:r,alpha:o=1})=>"hsla("+Math.round(i)+", "+Pe.transform(ml(l))+", "+Pe.transform(ml(r))+", "+ml(Sl.transform(o))+")"},Qt={test:i=>gi.test(i)||sc.test(i)||sa.test(i),parse:i=>gi.test(i)?gi.parse(i):sa.test(i)?sa.parse(i):sc.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?gi.transform(i):sa.transform(i),getAnimatableNone:i=>{const l=Qt.parse(i);return l.alpha=0,Qt.transform(l)}},Tv=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Av(i){return isNaN(i)&&typeof i=="string"&&(i.match(Yc)?.length||0)+(i.match(Tv)?.length||0)>0}const ng="number",ig="color",Mv="var",Ev="var(",S0="${}",Cv=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Tl(i){const l=i.toString(),r=[],o={color:[],number:[],var:[]},c=[];let h=0;const m=l.replace(Cv,p=>(Qt.test(p)?(o.color.push(h),c.push(ig),r.push(Qt.parse(p))):p.startsWith(Ev)?(o.var.push(h),c.push(Mv),r.push(p)):(o.number.push(h),c.push(ng),r.push(parseFloat(p))),++h,S0)).split(S0);return{values:r,split:m,indexes:o,types:c}}function ag(i){return Tl(i).values}function lg(i){const{split:l,types:r}=Tl(i),o=l.length;return c=>{let h="";for(let f=0;ftypeof i=="number"?0:Qt.test(i)?Qt.getAnimatableNone(i):i;function zv(i){const l=ag(i);return lg(i)(l.map(jv))}const kn={test:Av,parse:ag,createTransformer:lg,getAnimatableNone:zv};function ku(i,l,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?i+(l-i)*6*r:r<1/2?l:r<2/3?i+(l-i)*(2/3-r)*6:i}function Dv({hue:i,saturation:l,lightness:r,alpha:o}){i/=360,l/=100,r/=100;let c=0,h=0,f=0;if(!l)c=h=f=r;else{const m=r<.5?r*(1+l):r+l-r*l,p=2*r-m;c=ku(p,m,i+1/3),h=ku(p,m,i),f=ku(p,m,i-1/3)}return{red:Math.round(c*255),green:Math.round(h*255),blue:Math.round(f*255),alpha:o}}function lr(i,l){return r=>r>0?l:i}const Ot=(i,l,r)=>i+(l-i)*r,Fu=(i,l,r)=>{const o=i*i,c=r*(l*l-o)+o;return c<0?0:Math.sqrt(c)},wv=[sc,gi,sa],Ov=i=>wv.find(l=>l.test(i));function T0(i){const l=Ov(i);if(!l)return!1;let r=l.parse(i);return l===sa&&(r=Dv(r)),r}const A0=(i,l)=>{const r=T0(i),o=T0(l);if(!r||!o)return lr(i,l);const c={...r};return h=>(c.red=Fu(r.red,o.red,h),c.green=Fu(r.green,o.green,h),c.blue=Fu(r.blue,o.blue,h),c.alpha=Ot(r.alpha,o.alpha,h),gi.transform(c))},rc=new Set(["none","hidden"]);function Rv(i,l){return rc.has(i)?r=>r<=0?i:l:r=>r>=1?l:i}function Vv(i,l){return r=>Ot(i,l,r)}function Xc(i){return typeof i=="number"?Vv:typeof i=="string"?qc(i)?lr:Qt.test(i)?A0:Nv:Array.isArray(i)?sg:typeof i=="object"?Qt.test(i)?A0:Bv:lr}function sg(i,l){const r=[...i],o=r.length,c=i.map((h,f)=>Xc(h)(h,l[f]));return h=>{for(let f=0;f{for(const h in o)r[h]=o[h](c);return r}}function _v(i,l){const r=[],o={color:0,var:0,number:0};for(let c=0;c{const r=kn.createTransformer(l),o=Tl(i),c=Tl(l);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?rc.has(i)&&!c.values.length||rc.has(l)&&!o.values.length?Rv(i,l):jl(sg(_v(o,c),c.values),r):lr(i,l)};function rg(i,l,r){return typeof i=="number"&&typeof l=="number"&&typeof r=="number"?Ot(i,l,r):Xc(i)(i,l)}const Hv=i=>{const l=({timestamp:r})=>i(r);return{start:(r=!0)=>jt.update(l,r),stop:()=>xn(l),now:()=>ie.isProcessing?ie.timestamp:ge.now()}},og=(i,l,r=10)=>{let o="";const c=Math.max(Math.round(l/r),2);for(let h=0;h=sr?1/0:l}function Lv(i,l=100,r){const o=r({...i,keyframes:[0,l]}),c=Math.min(Qc(o),sr);return{type:"keyframes",ease:h=>o.next(c*h).value/l,duration:qe(c)}}const Uv=5;function ug(i,l,r){const o=Math.max(l-Uv,0);return Gp(r-i(o),l-o)}const _t={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ju=.001;function qv({duration:i=_t.duration,bounce:l=_t.bounce,velocity:r=_t.velocity,mass:o=_t.mass}){let c,h,f=1-l;f=vn(_t.minDamping,_t.maxDamping,f),i=vn(_t.minDuration,_t.maxDuration,qe(i)),f<1?(c=g=>{const y=g*f,x=y*i,T=y-r,w=oc(g,f),V=Math.exp(-x);return Ju-T/w*V},h=g=>{const x=g*f*i,T=x*r+r,w=Math.pow(f,2)*Math.pow(g,2)*i,V=Math.exp(-x),H=oc(Math.pow(g,2),f);return(-c(g)+Ju>0?-1:1)*((T-w)*V)/H}):(c=g=>{const y=Math.exp(-g*i),x=(g-r)*i+1;return-Ju+y*x},h=g=>{const y=Math.exp(-g*i),x=(r-g)*(i*i);return y*x});const m=5/i,p=Gv(c,h,m);if(i=We(i),isNaN(p))return{stiffness:_t.stiffness,damping:_t.damping,duration:i};{const g=Math.pow(p,2)*o;return{stiffness:g,damping:f*2*Math.sqrt(o*g),duration:i}}}const Yv=12;function Gv(i,l,r){let o=r;for(let c=1;ci[r]!==void 0)}function Zv(i){let l={velocity:_t.velocity,stiffness:_t.stiffness,damping:_t.damping,mass:_t.mass,isResolvedFromDuration:!1,...i};if(!M0(i,Qv)&&M0(i,Xv))if(i.visualDuration){const r=i.visualDuration,o=2*Math.PI/(r*1.2),c=o*o,h=2*vn(.05,1,1-(i.bounce||0))*Math.sqrt(c);l={...l,mass:_t.mass,stiffness:c,damping:h}}else{const r=qv(i);l={...l,...r,mass:_t.mass},l.isResolvedFromDuration=!0}return l}function rr(i=_t.visualDuration,l=_t.bounce){const r=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:l}:i;let{restSpeed:o,restDelta:c}=r;const h=r.keyframes[0],f=r.keyframes[r.keyframes.length-1],m={done:!1,value:h},{stiffness:p,damping:g,mass:y,duration:x,velocity:T,isResolvedFromDuration:w}=Zv({...r,velocity:-qe(r.velocity||0)}),V=T||0,H=g/(2*Math.sqrt(p*y)),Y=f-h,q=qe(Math.sqrt(p/y)),Z=Math.abs(Y)<5;o||(o=Z?_t.restSpeed.granular:_t.restSpeed.default),c||(c=Z?_t.restDelta.granular:_t.restDelta.default);let X;if(H<1){const P=oc(q,H);X=tt=>{const K=Math.exp(-H*q*tt);return f-K*((V+H*q*Y)/P*Math.sin(P*tt)+Y*Math.cos(P*tt))}}else if(H===1)X=P=>f-Math.exp(-q*P)*(Y+(V+q*Y)*P);else{const P=q*Math.sqrt(H*H-1);X=tt=>{const K=Math.exp(-H*q*tt),I=Math.min(P*tt,300);return f-K*((V+H*q*Y)*Math.sinh(I)+P*Y*Math.cosh(I))/P}}const nt={calculatedDuration:w&&x||null,next:P=>{const tt=X(P);if(w)m.done=P>=x;else{let K=P===0?V:0;H<1&&(K=P===0?We(V):ug(X,P,tt));const I=Math.abs(K)<=o,xt=Math.abs(f-tt)<=c;m.done=I&&xt}return m.value=m.done?f:tt,m},toString:()=>{const P=Math.min(Qc(nt),sr),tt=og(K=>nt.next(P*K).value,P,30);return P+"ms "+tt},toTransition:()=>{}};return nt}rr.applyToOptions=i=>{const l=Lv(i,100,rr);return i.ease=l.ease,i.duration=We(l.duration),i.type="keyframes",i};function uc({keyframes:i,velocity:l=0,power:r=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:h=500,modifyTarget:f,min:m,max:p,restDelta:g=.5,restSpeed:y}){const x=i[0],T={done:!1,value:x},w=I=>m!==void 0&&Ip,V=I=>m===void 0?p:p===void 0||Math.abs(m-I)-H*Math.exp(-I/o),X=I=>q+Z(I),nt=I=>{const xt=Z(I),Rt=X(I);T.done=Math.abs(xt)<=g,T.value=T.done?q:Rt};let P,tt;const K=I=>{w(T.value)&&(P=I,tt=rr({keyframes:[T.value,V(T.value)],velocity:ug(X,I,T.value),damping:c,stiffness:h,restDelta:g,restSpeed:y}))};return K(0),{calculatedDuration:null,next:I=>{let xt=!1;return!tt&&P===void 0&&(xt=!0,nt(I),K(I)),P!==void 0&&I>=P?tt.next(I-P):(!xt&&nt(I),T)}}}function Kv(i,l,r){const o=[],c=r||bn.mix||rg,h=i.length-1;for(let f=0;fl[0];if(h===2&&l[0]===l[1])return()=>l[1];const f=i[0]===i[1];i[0]>i[h-1]&&(i=[...i].reverse(),l=[...l].reverse());const m=Kv(l,o,c),p=m.length,g=y=>{if(f&&y1)for(;xg(vn(i[0],i[h-1],y)):g}function kv(i,l){const r=i[i.length-1];for(let o=1;o<=l;o++){const c=xl(0,l,o);i.push(Ot(r,1,c))}}function Fv(i){const l=[0];return kv(l,i.length-1),l}function Jv(i,l){return i.map(r=>r*l)}function Wv(i,l){return i.map(()=>l||Pp).splice(0,i.length-1)}function pl({duration:i=300,keyframes:l,times:r,ease:o="easeInOut"}){const c=ov(o)?o.map(b0):b0(o),h={done:!1,value:l[0]},f=Jv(r&&r.length===l.length?r:Fv(l),i),m=cg(f,l,{ease:Array.isArray(c)?c:Wv(l,c)});return{calculatedDuration:i,next:p=>(h.value=m(p),h.done=p>=i,h)}}const Pv=i=>i!==null;function Zc(i,{repeat:l,repeatType:r="loop"},o,c=1){const h=i.filter(Pv),m=c<0||l&&r!=="loop"&&l%2===1?0:h.length-1;return!m||o===void 0?h[m]:o}const Iv={decay:uc,inertia:uc,tween:pl,keyframes:pl,spring:rr};function fg(i){typeof i.type=="string"&&(i.type=Iv[i.type])}class Kc{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,r){return this.finished.then(l,r)}}const $v=i=>i/100;class gr extends Kc{constructor(l){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==ge.now()&&this.tick(ge.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=l,this.initAnimation(),this.play(),l.autoplay===!1&&this.pause()}initAnimation(){const{options:l}=this;fg(l);const{type:r=pl,repeat:o=0,repeatDelay:c=0,repeatType:h,velocity:f=0}=l;let{keyframes:m}=l;const p=r||pl;p!==pl&&typeof m[0]!="number"&&(this.mixKeyframes=jl($v,rg(m[0],m[1])),m=[0,100]);const g=p({...l,keyframes:m});h==="mirror"&&(this.mirroredGenerator=p({...l,keyframes:[...m].reverse(),velocity:-f})),g.calculatedDuration===null&&(g.calculatedDuration=Qc(g));const{calculatedDuration:y}=g;this.calculatedDuration=y,this.resolvedDuration=y+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=g}updateTime(l){const r=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(l,r=!1){const{generator:o,totalDuration:c,mixKeyframes:h,mirroredGenerator:f,resolvedDuration:m,calculatedDuration:p}=this;if(this.startTime===null)return o.next(0);const{delay:g=0,keyframes:y,repeat:x,repeatType:T,repeatDelay:w,type:V,onUpdate:H,finalKeyframe:Y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,l):this.speed<0&&(this.startTime=Math.min(l-c/this.speed,this.startTime)),r?this.currentTime=l:this.updateTime(l);const q=this.currentTime-g*(this.playbackSpeed>=0?1:-1),Z=this.playbackSpeed>=0?q<0:q>c;this.currentTime=Math.max(q,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let X=this.currentTime,nt=o;if(x){const I=Math.min(this.currentTime,c)/m;let xt=Math.floor(I),Rt=I%1;!Rt&&I>=1&&(Rt=1),Rt===1&&xt--,xt=Math.min(xt,x+1),!!(xt%2)&&(T==="reverse"?(Rt=1-Rt,w&&(Rt-=w/m)):T==="mirror"&&(nt=f)),X=vn(0,1,Rt)*m}const P=Z?{done:!1,value:y[0]}:nt.next(X);h&&(P.value=h(P.value));let{done:tt}=P;!Z&&p!==null&&(tt=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const K=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&tt);return K&&V!==uc&&(P.value=Zc(y,this.options,Y,this.speed)),H&&H(P.value),K&&this.finish(),P}then(l,r){return this.finished.then(l,r)}get duration(){return qe(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+qe(l)}get time(){return qe(this.currentTime)}set time(l){l=We(l),this.currentTime=l,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=l:this.driver&&(this.startTime=this.driver.now()-l/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(l){this.updateTime(ge.now());const r=this.playbackSpeed!==l;this.playbackSpeed=l,r&&(this.time=qe(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=Hv,startTime:r}=this.options;this.driver||(this.driver=l(c=>this.tick(c))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=r??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ge.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(l){return this.startTime=0,this.tick(l,!0)}attachTimeline(l){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),l.observe(this)}}function t5(i){for(let l=1;li*180/Math.PI,cc=i=>{const l=yi(Math.atan2(i[1],i[0]));return fc(l)},e5={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:cc,rotateZ:cc,skewX:i=>yi(Math.atan(i[1])),skewY:i=>yi(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},fc=i=>(i=i%360,i<0&&(i+=360),i),E0=cc,C0=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),j0=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),n5={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:C0,scaleY:j0,scale:i=>(C0(i)+j0(i))/2,rotateX:i=>fc(yi(Math.atan2(i[6],i[5]))),rotateY:i=>fc(yi(Math.atan2(-i[2],i[0]))),rotateZ:E0,rotate:E0,skewX:i=>yi(Math.atan(i[4])),skewY:i=>yi(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function dc(i){return i.includes("scale")?1:0}function hc(i,l){if(!i||i==="none")return dc(l);const r=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(r)o=n5,c=r;else{const m=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=e5,c=m}if(!c)return dc(l);const h=o[l],f=c[1].split(",").map(a5);return typeof h=="function"?h(f):f[h]}const i5=(i,l)=>{const{transform:r="none"}=getComputedStyle(i);return hc(r,l)};function a5(i){return parseFloat(i.trim())}const pa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ga=new Set(pa),z0=i=>i===ma||i===it,l5=new Set(["x","y","z"]),s5=pa.filter(i=>!l5.has(i));function r5(i){const l=[];return s5.forEach(r=>{const o=i.getValue(r);o!==void 0&&(l.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))}),l}const bi={width:({x:i},{paddingLeft:l="0",paddingRight:r="0"})=>i.max-i.min-parseFloat(l)-parseFloat(r),height:({y:i},{paddingTop:l="0",paddingBottom:r="0"})=>i.max-i.min-parseFloat(l)-parseFloat(r),top:(i,{top:l})=>parseFloat(l),left:(i,{left:l})=>parseFloat(l),bottom:({y:i},{top:l})=>parseFloat(l)+(i.max-i.min),right:({x:i},{left:l})=>parseFloat(l)+(i.max-i.min),x:(i,{transform:l})=>hc(l,"x"),y:(i,{transform:l})=>hc(l,"y")};bi.translateX=bi.x;bi.translateY=bi.y;const xi=new Set;let mc=!1,pc=!1,gc=!1;function dg(){if(pc){const i=Array.from(xi).filter(o=>o.needsMeasurement),l=new Set(i.map(o=>o.element)),r=new Map;l.forEach(o=>{const c=r5(o);c.length&&(r.set(o,c),o.render())}),i.forEach(o=>o.measureInitialState()),l.forEach(o=>{o.render();const c=r.get(o);c&&c.forEach(([h,f])=>{o.getValue(h)?.set(f)})}),i.forEach(o=>o.measureEndState()),i.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}pc=!1,mc=!1,xi.forEach(i=>i.complete(gc)),xi.clear()}function hg(){xi.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(pc=!0)})}function o5(){gc=!0,hg(),dg(),gc=!1}class kc{constructor(l,r,o,c,h,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=r,this.name=o,this.motionValue=c,this.element=h,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(xi.add(this),mc||(mc=!0,jt.read(hg),jt.resolveKeyframes(dg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:r,element:o,motionValue:c}=this;if(l[0]===null){const h=c?.get(),f=l[l.length-1];if(h!==void 0)l[0]=h;else if(o&&r){const m=o.readValue(r,f);m!=null&&(l[0]=m)}l[0]===void 0&&(l[0]=f),c&&h===void 0&&c.set(l[0])}t5(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),xi.delete(this)}cancel(){this.state==="scheduled"&&(xi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const u5=i=>i.startsWith("--");function c5(i,l,r){u5(l)?i.style.setProperty(l,r):i.style[l]=r}const f5=_c(()=>window.ScrollTimeline!==void 0),d5={};function h5(i,l){const r=_c(i);return()=>d5[l]??r()}const mg=h5(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),hl=([i,l,r,o])=>`cubic-bezier(${i}, ${l}, ${r}, ${o})`,D0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:hl([0,.65,.55,1]),circOut:hl([.55,0,1,.45]),backIn:hl([.31,.01,.66,-.59]),backOut:hl([.33,1.53,.69,.99])};function pg(i,l){if(i)return typeof i=="function"?mg()?og(i,l):"ease-out":Ip(i)?hl(i):Array.isArray(i)?i.map(r=>pg(r,l)||D0.easeOut):D0[i]}function m5(i,l,r,{delay:o=0,duration:c=300,repeat:h=0,repeatType:f="loop",ease:m="easeOut",times:p}={},g=void 0){const y={[l]:r};p&&(y.offset=p);const x=pg(m,c);Array.isArray(x)&&(y.easing=x);const T={delay:o,duration:c,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:h+1,direction:f==="reverse"?"alternate":"normal"};return g&&(T.pseudoElement=g),i.animate(y,T)}function gg(i){return typeof i=="function"&&"applyToOptions"in i}function p5({type:i,...l}){return gg(i)&&mg()?i.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class g5 extends Kc{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,!l)return;const{element:r,name:o,keyframes:c,pseudoElement:h,allowFlatten:f=!1,finalKeyframe:m,onComplete:p}=l;this.isPseudoElement=!!h,this.allowFlatten=f,this.options=l,Bc(typeof l.type!="string");const g=p5(l);this.animation=m5(r,o,c,g,h),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!h){const y=Zc(c,this.options,m,this.speed);this.updateMotionValue?this.updateMotionValue(y):c5(r,o,y),this.animation.cancel()}p?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:l}=this;l==="idle"||l==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const l=this.animation.effect?.getComputedTiming?.().duration||0;return qe(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+qe(l)}get time(){return qe(Number(this.animation.currentTime)||0)}set time(l){this.finishedTime=null,this.animation.currentTime=We(l)}get speed(){return this.animation.playbackRate}set speed(l){l<0&&(this.finishedTime=null),this.animation.playbackRate=l}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(l){this.animation.startTime=l}attachTimeline({timeline:l,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,l&&f5()?(this.animation.timeline=l,Ye):r(this)}}const yg={anticipate:Fp,backInOut:kp,circInOut:Wp};function y5(i){return i in yg}function v5(i){typeof i.ease=="string"&&y5(i.ease)&&(i.ease=yg[i.ease])}const w0=10;class b5 extends g5{constructor(l){v5(l),fg(l),super(l),l.startTime&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:r,onUpdate:o,onComplete:c,element:h,...f}=this.options;if(!r)return;if(l!==void 0){r.set(l);return}const m=new gr({...f,autoplay:!1}),p=We(this.finishedTime??this.time);r.setWithVelocity(m.sample(p-w0).value,m.sample(p).value,w0),m.stop()}}const O0=(i,l)=>l==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(kn.test(i)||i==="0")&&!i.startsWith("url("));function x5(i){const l=i[0];if(i.length===1)return!0;for(let r=0;rObject.hasOwnProperty.call(Element.prototype,"animate"));function M5(i){const{motionValue:l,name:r,repeatDelay:o,repeatType:c,damping:h,type:f}=i;if(!(l?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:g}=l.owner.getProps();return A5()&&r&&T5.has(r)&&(r!=="transform"||!g)&&!p&&!o&&c!=="mirror"&&h!==0&&f!=="inertia"}const E5=40;class C5 extends Kc{constructor({autoplay:l=!0,delay:r=0,type:o="keyframes",repeat:c=0,repeatDelay:h=0,repeatType:f="loop",keyframes:m,name:p,motionValue:g,element:y,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ge.now();const T={autoplay:l,delay:r,type:o,repeat:c,repeatDelay:h,repeatType:f,name:p,motionValue:g,element:y,...x},w=y?.KeyframeResolver||kc;this.keyframeResolver=new w(m,(V,H,Y)=>this.onKeyframesResolved(V,H,T,!Y),p,g,y),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,r,o,c){this.keyframeResolver=void 0;const{name:h,type:f,velocity:m,delay:p,isHandoff:g,onUpdate:y}=o;this.resolvedAt=ge.now(),S5(l,h,f,m)||((bn.instantAnimations||!p)&&y?.(Zc(l,o,r)),l[0]=l[l.length-1],yc(o),o.repeat=0);const T={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>E5?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...o,keyframes:l},w=!g&&M5(T)?new b5({...T,element:T.motionValue.owner.current}):new gr(T);w.finished.then(()=>this.notifyFinished()).catch(Ye),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}get finished(){return this._animation?this.animation.finished:this._finished}then(l,r){return this.finished.finally(l).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),o5()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(l){this.animation.time=l}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(l){this.animation.speed=l}get startTime(){return this.animation.startTime}attachTimeline(l){return this._animation?this.stopTimeline=this.animation.attachTimeline(l):this.pendingTimeline=l,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const j5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function z5(i){const l=j5.exec(i);if(!l)return[,];const[,r,o,c]=l;return[`--${r??o}`,c]}function vg(i,l,r=1){const[o,c]=z5(i);if(!o)return;const h=window.getComputedStyle(l).getPropertyValue(o);if(h){const f=h.trim();return Up(f)?parseFloat(f):f}return qc(c)?vg(c,l,r+1):c}function Fc(i,l){return i?.[l]??i?.default??i}const bg=new Set(["width","height","top","left","right","bottom",...pa]),D5={test:i=>i==="auto",parse:i=>i},xg=i=>l=>l.test(i),Sg=[ma,it,Pe,Kn,Sv,xv,D5],R0=i=>Sg.find(xg(i));function w5(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||Yp(i):!0}const O5=new Set(["brightness","contrast","saturate","opacity"]);function R5(i){const[l,r]=i.slice(0,-1).split("(");if(l==="drop-shadow")return i;const[o]=r.match(Yc)||[];if(!o)return i;const c=r.replace(o,"");let h=O5.has(l)?1:0;return o!==r&&(h*=100),l+"("+h+c+")"}const V5=/\b([a-z-]*)\(.*?\)/gu,vc={...kn,getAnimatableNone:i=>{const l=i.match(V5);return l?l.map(R5).join(" "):i}},V0={...ma,transform:Math.round},B5={rotate:Kn,rotateX:Kn,rotateY:Kn,rotateZ:Kn,scale:Ps,scaleX:Ps,scaleY:Ps,scaleZ:Ps,skew:Kn,skewX:Kn,skewY:Kn,distance:it,translateX:it,translateY:it,translateZ:it,x:it,y:it,z:it,perspective:it,transformPerspective:it,opacity:Sl,originX:x0,originY:x0,originZ:it},Jc={borderWidth:it,borderTopWidth:it,borderRightWidth:it,borderBottomWidth:it,borderLeftWidth:it,borderRadius:it,radius:it,borderTopLeftRadius:it,borderTopRightRadius:it,borderBottomRightRadius:it,borderBottomLeftRadius:it,width:it,maxWidth:it,height:it,maxHeight:it,top:it,right:it,bottom:it,left:it,padding:it,paddingTop:it,paddingRight:it,paddingBottom:it,paddingLeft:it,margin:it,marginTop:it,marginRight:it,marginBottom:it,marginLeft:it,backgroundPositionX:it,backgroundPositionY:it,...B5,zIndex:V0,fillOpacity:Sl,strokeOpacity:Sl,numOctaves:V0},_5={...Jc,color:Qt,backgroundColor:Qt,outlineColor:Qt,fill:Qt,stroke:Qt,borderColor:Qt,borderTopColor:Qt,borderRightColor:Qt,borderBottomColor:Qt,borderLeftColor:Qt,filter:vc,WebkitFilter:vc},Tg=i=>_5[i];function Ag(i,l){let r=Tg(i);return r!==vc&&(r=kn),r.getAnimatableNone?r.getAnimatableNone(l):void 0}const N5=new Set(["auto","none","0"]);function H5(i,l,r){let o=0,c;for(;o{l.getValue(m).set(p)}),this.resolveNoneKeyframes()}}function Mg(i,l,r){if(i instanceof EventTarget)return[i];if(typeof i=="string"){const c=document.querySelectorAll(i);return c?Array.from(c):[]}return Array.from(i)}const Eg=(i,l)=>l&&typeof i=="number"?l.transform(i):i;function Cg(i){return qp(i)&&"offsetHeight"in i}const B0=30,U5=i=>!isNaN(parseFloat(i)),gl={current:void 0};class q5{constructor(l,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const c=ge.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=r.owner}setCurrent(l){this.current=l,this.updatedAt=ge.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=U5(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,r){this.events[l]||(this.events[l]=new Nc);const o=this.events[l].add(r);return l==="change"?()=>{o(),jt.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const l in this.events)this.events[l].clear()}attach(l,r){this.passiveEffect=l,this.stopPassiveEffect=r}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,r,o){this.set(r),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-o}jump(l,r=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(l){this.dependents||(this.dependents=new Set),this.dependents.add(l)}removeDependent(l){this.dependents&&this.dependents.delete(l)}get(){return gl.current&&gl.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const l=ge.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>B0)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,B0);return Gp(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(l){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=l(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Si(i,l){return new q5(i,l)}const{schedule:Wc}=$p(queueMicrotask,!1),Ze={x:!1,y:!1};function jg(){return Ze.x||Ze.y}function Y5(i){return i==="x"||i==="y"?Ze[i]?null:(Ze[i]=!0,()=>{Ze[i]=!1}):Ze.x||Ze.y?null:(Ze.x=Ze.y=!0,()=>{Ze.x=Ze.y=!1})}function zg(i,l){const r=Mg(i),o=new AbortController,c={passive:!0,...l,signal:o.signal};return[r,c,()=>o.abort()]}function _0(i){return!(i.pointerType==="touch"||jg())}function G5(i,l,r={}){const[o,c,h]=zg(i,r),f=m=>{if(!_0(m))return;const{target:p}=m,g=l(p,m);if(typeof g!="function"||!p)return;const y=x=>{_0(x)&&(g(x),p.removeEventListener("pointerleave",y))};p.addEventListener("pointerleave",y,c)};return o.forEach(m=>{m.addEventListener("pointerenter",f,c)}),h}const Dg=(i,l)=>l?i===l?!0:Dg(i,l.parentElement):!1,Pc=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,X5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Q5(i){return X5.has(i.tagName)||i.tabIndex!==-1}const nr=new WeakSet;function N0(i){return l=>{l.key==="Enter"&&i(l)}}function Wu(i,l){i.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const Z5=(i,l)=>{const r=i.currentTarget;if(!r)return;const o=N0(()=>{if(nr.has(r))return;Wu(r,"down");const c=N0(()=>{Wu(r,"up")}),h=()=>Wu(r,"cancel");r.addEventListener("keyup",c,l),r.addEventListener("blur",h,l)});r.addEventListener("keydown",o,l),r.addEventListener("blur",()=>r.removeEventListener("keydown",o),l)};function H0(i){return Pc(i)&&!jg()}function K5(i,l,r={}){const[o,c,h]=zg(i,r),f=m=>{const p=m.currentTarget;if(!H0(m))return;nr.add(p);const g=l(p,m),y=(w,V)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",T),nr.has(p)&&nr.delete(p),H0(w)&&typeof g=="function"&&g(w,{success:V})},x=w=>{y(w,p===window||p===document||r.useGlobalTarget||Dg(p,w.target))},T=w=>{y(w,!1)};window.addEventListener("pointerup",x,c),window.addEventListener("pointercancel",T,c)};return o.forEach(m=>{(r.useGlobalTarget?window:m).addEventListener("pointerdown",f,c),Cg(m)&&(m.addEventListener("focus",g=>Z5(g,c)),!Q5(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),h}function wg(i){return qp(i)&&"ownerSVGElement"in i}function k5(i){return wg(i)&&i.tagName==="svg"}function F5(...i){const l=!Array.isArray(i[0]),r=l?0:-1,o=i[0+r],c=i[1+r],h=i[2+r],f=i[3+r],m=cg(c,h,f);return l?m(o):m}const Wt=i=>!!(i&&i.getVelocity);function J5(i,l,r){const o=i.get();let c=null,h=o,f;const m=typeof o=="string"?o.replace(/[\d.-]/g,""):void 0,p=()=>{c&&(c.stop(),c=null)},g=()=>{p(),c=new gr({keyframes:[U0(i.get()),U0(h)],velocity:i.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...r,onUpdate:f})};if(i.attach((y,x)=>{h=y,f=T=>x(L0(T,m)),jt.postRender(g)},p),Wt(l)){const y=l.on("change",T=>i.set(L0(T,m))),x=i.on("destroy",y);return()=>{y(),x()}}return p}function L0(i,l){return l?i+l:i}function U0(i){return typeof i=="number"?i:parseFloat(i)}const W5=[...Sg,Qt,kn],P5=i=>W5.find(xg(i)),wl=L.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function q0(i,l){if(typeof i=="function")return i(l);i!=null&&(i.current=l)}function I5(...i){return l=>{let r=!1;const o=i.map(c=>{const h=q0(c,l);return!r&&typeof h=="function"&&(r=!0),h});if(r)return()=>{for(let c=0;c{const{width:g,height:y,top:x,left:T,right:w}=f.current;if(l||!h.current||!g||!y)return;const V=r==="left"?`left: ${T}`:`right: ${w}`;h.current.dataset.motionPopId=c;const H=document.createElement("style");m&&(H.nonce=m);const Y=o??document.head;return Y.appendChild(H),H.sheet&&H.sheet.insertRule(` + [data-motion-pop-id="${c}"] { + position: absolute !important; + width: ${g}px !important; + height: ${y}px !important; + ${V}px !important; + top: ${x}px !important; + } + `),()=>{Y.contains(H)&&Y.removeChild(H)}},[l]),v.jsx(tb,{isPresent:l,childRef:h,sizeRef:f,children:L.cloneElement(i,{ref:p})})}const nb=({children:i,initial:l,isPresent:r,onExitComplete:o,custom:c,presenceAffectsLayout:h,mode:f,anchorX:m,root:p})=>{const g=Cl(ib),y=L.useId();let x=!0,T=L.useMemo(()=>(x=!1,{id:y,initial:l,isPresent:r,custom:c,onExitComplete:w=>{g.set(w,!0);for(const V of g.values())if(!V)return;o&&o()},register:w=>(g.set(w,!1),()=>g.delete(w))}),[r,g,o]);return h&&x&&(T={...T}),L.useMemo(()=>{g.forEach((w,V)=>g.set(V,!1))},[r]),L.useEffect(()=>{!r&&!g.size&&o&&o()},[r]),f==="popLayout"&&(i=v.jsx(eb,{isPresent:r,anchorX:m,root:p,children:i})),v.jsx(pr.Provider,{value:T,children:i})};function ib(){return new Map}function Og(i=!0){const l=L.useContext(pr);if(l===null)return[!0,null];const{isPresent:r,onExitComplete:o,register:c}=l,h=L.useId();L.useEffect(()=>{if(i)return c(h)},[i]);const f=L.useCallback(()=>i&&o&&o(h),[h,o,i]);return!r&&o?[!1,f]:[!0]}const Is=i=>i.key||"";function Y0(i){const l=[];return L.Children.forEach(i,r=>{L.isValidElement(r)&&l.push(r)}),l}const fa=({children:i,custom:l,initial:r=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:h="sync",propagate:f=!1,anchorX:m="left",root:p})=>{const[g,y]=Og(f),x=L.useMemo(()=>Y0(i),[i]),T=f&&!g?[]:x.map(Is),w=L.useRef(!0),V=L.useRef(x),H=Cl(()=>new Map),[Y,q]=L.useState(x),[Z,X]=L.useState(x);Oc(()=>{w.current=!1,V.current=x;for(let tt=0;tt{const K=Is(tt),I=f&&!g?!1:x===Z||T.includes(K),xt=()=>{if(H.has(K))H.set(K,!0);else return;let Rt=!0;H.forEach(Kt=>{Kt||(Rt=!1)}),Rt&&(P?.(),X(V.current),f&&y?.(),o&&o())};return v.jsx(nb,{isPresent:I,initial:!w.current||r?void 0:!1,custom:l,presenceAffectsLayout:c,mode:h,root:p,onExitComplete:I?void 0:xt,anchorX:m,children:tt},K)})})},Rg=L.createContext({strict:!1}),G0={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ha={};for(const i in G0)ha[i]={isEnabled:l=>G0[i].some(r=>!!l[r])};function ab(i){for(const l in i)ha[l]={...ha[l],...i[l]}}const lb=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function or(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||lb.has(i)}let Vg=i=>!or(i);function sb(i){typeof i=="function"&&(Vg=l=>l.startsWith("on")?!or(l):i(l))}try{sb(require("@emotion/is-prop-valid").default)}catch{}function rb(i,l,r){const o={};for(const c in i)c==="values"&&typeof i.values=="object"||(Vg(c)||r===!0&&or(c)||!l&&!or(c)||i.draggable&&c.startsWith("onDrag"))&&(o[c]=i[c]);return o}const yr=L.createContext({});function vr(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function Al(i){return typeof i=="string"||Array.isArray(i)}const Ic=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$c=["initial",...Ic];function br(i){return vr(i.animate)||$c.some(l=>Al(i[l]))}function Bg(i){return!!(br(i)||i.variants)}function ob(i,l){if(br(i)){const{initial:r,animate:o}=i;return{initial:r===!1||Al(r)?r:void 0,animate:Al(o)?o:void 0}}return i.inherit!==!1?l:{}}function ub(i){const{initial:l,animate:r}=ob(i,L.useContext(yr));return L.useMemo(()=>({initial:l,animate:r}),[X0(l),X0(r)])}function X0(i){return Array.isArray(i)?i.join(" "):i}const Ml={};function cb(i){for(const l in i)Ml[l]=i[l],Uc(l)&&(Ml[l].isCSSVariable=!0)}function _g(i,{layout:l,layoutId:r}){return ga.has(i)||i.startsWith("origin")||(l||r!==void 0)&&(!!Ml[i]||i==="opacity")}const fb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},db=pa.length;function hb(i,l,r){let o="",c=!0;for(let h=0;h({style:{},transform:{},transformOrigin:{},vars:{}});function Ng(i,l,r){for(const o in l)!Wt(l[o])&&!_g(o,r)&&(i[o]=l[o])}function mb({transformTemplate:i},l){return L.useMemo(()=>{const r=ef();return tf(r,l,i),Object.assign({},r.vars,r.style)},[l])}function pb(i,l){const r=i.style||{},o={};return Ng(o,r,i),Object.assign(o,mb(i,l)),o}function gb(i,l){const r={},o=pb(i,l);return i.drag&&i.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(r.tabIndex=0),r.style=o,r}const yb={offset:"stroke-dashoffset",array:"stroke-dasharray"},vb={offset:"strokeDashoffset",array:"strokeDasharray"};function bb(i,l,r=1,o=0,c=!0){i.pathLength=1;const h=c?yb:vb;i[h.offset]=it.transform(-o);const f=it.transform(l),m=it.transform(r);i[h.array]=`${f} ${m}`}function Hg(i,{attrX:l,attrY:r,attrScale:o,pathLength:c,pathSpacing:h=1,pathOffset:f=0,...m},p,g,y){if(tf(i,m,g),p){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:x,style:T}=i;x.transform&&(T.transform=x.transform,delete x.transform),(T.transform||x.transformOrigin)&&(T.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),T.transform&&(T.transformBox=y?.transformBox??"fill-box",delete x.transformBox),l!==void 0&&(x.x=l),r!==void 0&&(x.y=r),o!==void 0&&(x.scale=o),c!==void 0&&bb(x,c,h,f,!1)}const Lg=()=>({...ef(),attrs:{}}),Ug=i=>typeof i=="string"&&i.toLowerCase()==="svg";function xb(i,l,r,o){const c=L.useMemo(()=>{const h=Lg();return Hg(h,l,Ug(o),i.transformTemplate,i.style),{...h.attrs,style:{...h.style}}},[l]);if(i.style){const h={};Ng(h,i.style,i),c.style={...h,...c.style}}return c}const Sb=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function nf(i){return typeof i!="string"||i.includes("-")?!1:!!(Sb.indexOf(i)>-1||/[A-Z]/u.test(i))}function Tb(i,l,r,{latestValues:o},c,h=!1){const m=(nf(i)?xb:gb)(l,o,c,i),p=rb(l,typeof i=="string",h),g=i!==L.Fragment?{...p,...m,ref:r}:{},{children:y}=l,x=L.useMemo(()=>Wt(y)?y.get():y,[y]);return L.createElement(i,{...g,children:x})}function Q0(i){const l=[{},{}];return i?.values.forEach((r,o)=>{l[0][o]=r.get(),l[1][o]=r.getVelocity()}),l}function af(i,l,r,o){if(typeof l=="function"){const[c,h]=Q0(o);l=l(r!==void 0?r:i.custom,c,h)}if(typeof l=="string"&&(l=i.variants&&i.variants[l]),typeof l=="function"){const[c,h]=Q0(o);l=l(r!==void 0?r:i.custom,c,h)}return l}function ir(i){return Wt(i)?i.get():i}function Ab({scrapeMotionValuesFromProps:i,createRenderState:l},r,o,c){return{latestValues:Mb(r,o,c,i),renderState:l()}}function Mb(i,l,r,o){const c={},h=o(i,{});for(const T in h)c[T]=ir(h[T]);let{initial:f,animate:m}=i;const p=br(i),g=Bg(i);l&&g&&!p&&i.inherit!==!1&&(f===void 0&&(f=l.initial),m===void 0&&(m=l.animate));let y=r?r.initial===!1:!1;y=y||f===!1;const x=y?m:f;if(x&&typeof x!="boolean"&&!vr(x)){const T=Array.isArray(x)?x:[x];for(let w=0;w(l,r)=>{const o=L.useContext(yr),c=L.useContext(pr),h=()=>Ab(i,l,o,c);return r?h():Cl(h)};function lf(i,l,r){const{style:o}=i,c={};for(const h in o)(Wt(o[h])||l.style&&Wt(l.style[h])||_g(h,i)||r?.getValue(h)?.liveStyle!==void 0)&&(c[h]=o[h]);return c}const Eb=qg({scrapeMotionValuesFromProps:lf,createRenderState:ef});function Yg(i,l,r){const o=lf(i,l,r);for(const c in i)if(Wt(i[c])||Wt(l[c])){const h=pa.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[h]=i[c]}return o}const Cb=qg({scrapeMotionValuesFromProps:Yg,createRenderState:Lg}),jb=Symbol.for("motionComponentSymbol");function ra(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function zb(i,l,r){return L.useCallback(o=>{o&&i.onMount&&i.onMount(o),l&&(o?l.mount(o):l.unmount()),r&&(typeof r=="function"?r(o):ra(r)&&(r.current=o))},[l])}const sf=i=>i.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Db="framerAppearId",Gg="data-"+sf(Db),Xg=L.createContext({});function wb(i,l,r,o,c){const{visualElement:h}=L.useContext(yr),f=L.useContext(Rg),m=L.useContext(pr),p=L.useContext(wl).reducedMotion,g=L.useRef(null);o=o||f.renderer,!g.current&&o&&(g.current=o(i,{visualState:l,parent:h,props:r,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:p}));const y=g.current,x=L.useContext(Xg);y&&!y.projection&&c&&(y.type==="html"||y.type==="svg")&&Ob(g.current,r,c,x);const T=L.useRef(!1);L.useInsertionEffect(()=>{y&&T.current&&y.update(r,m)});const w=r[Gg],V=L.useRef(!!w&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return Oc(()=>{y&&(T.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),V.current&&y.animationState&&y.animationState.animateChanges())}),L.useEffect(()=>{y&&(!V.current&&y.animationState&&y.animationState.animateChanges(),V.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),V.current=!1),y.enteringChildren=void 0)}),y}function Ob(i,l,r,o){const{layoutId:c,layout:h,drag:f,dragConstraints:m,layoutScroll:p,layoutRoot:g,layoutCrossfade:y}=l;i.projection=new r(i.latestValues,l["data-framer-portal-id"]?void 0:Qg(i.parent)),i.projection.setOptions({layoutId:c,layout:h,alwaysMeasureLayout:!!f||m&&ra(m),visualElement:i,animationType:typeof h=="string"?h:"both",initialPromotionConfig:o,crossfade:y,layoutScroll:p,layoutRoot:g})}function Qg(i){if(i)return i.options.allowProjection!==!1?i.projection:Qg(i.parent)}function Pu(i,{forwardMotionProps:l=!1}={},r,o){r&&ab(r);const c=nf(i)?Cb:Eb;function h(m,p){let g;const y={...L.useContext(wl),...m,layoutId:Rb(m)},{isStatic:x}=y,T=ub(m),w=c(m,x);if(!x&&wc){Vb();const V=Bb(y);g=V.MeasureLayout,T.visualElement=wb(i,w,y,o,V.ProjectionNode)}return v.jsxs(yr.Provider,{value:T,children:[g&&T.visualElement?v.jsx(g,{visualElement:T.visualElement,...y}):null,Tb(i,m,zb(w,T.visualElement,p),w,x,l)]})}h.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const f=L.forwardRef(h);return f[jb]=i,f}function Rb({layoutId:i}){const l=L.useContext(Dc).id;return l&&i!==void 0?l+"-"+i:i}function Vb(i,l){L.useContext(Rg).strict}function Bb(i){const{drag:l,layout:r}=ha;if(!l&&!r)return{};const o={...l,...r};return{MeasureLayout:l?.isEnabled(i)||r?.isEnabled(i)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function _b(i,l){if(typeof Proxy>"u")return Pu;const r=new Map,o=(h,f)=>Pu(h,f,i,l),c=(h,f)=>o(h,f);return new Proxy(c,{get:(h,f)=>f==="create"?o:(r.has(f)||r.set(f,Pu(f,void 0,i,l)),r.get(f))})}function Zg({top:i,left:l,right:r,bottom:o}){return{x:{min:l,max:r},y:{min:i,max:o}}}function Nb({x:i,y:l}){return{top:l.min,right:i.max,bottom:l.max,left:i.min}}function Hb(i,l){if(!l)return i;const r=l({x:i.left,y:i.top}),o=l({x:i.right,y:i.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}function Iu(i){return i===void 0||i===1}function bc({scale:i,scaleX:l,scaleY:r}){return!Iu(i)||!Iu(l)||!Iu(r)}function pi(i){return bc(i)||Kg(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function Kg(i){return Z0(i.x)||Z0(i.y)}function Z0(i){return i&&i!=="0%"}function ur(i,l,r){const o=i-r,c=l*o;return r+c}function K0(i,l,r,o,c){return c!==void 0&&(i=ur(i,c,o)),ur(i,r,o)+l}function xc(i,l=0,r=1,o,c){i.min=K0(i.min,l,r,o,c),i.max=K0(i.max,l,r,o,c)}function kg(i,{x:l,y:r}){xc(i.x,l.translate,l.scale,l.originPoint),xc(i.y,r.translate,r.scale,r.originPoint)}const k0=.999999999999,F0=1.0000000000001;function Lb(i,l,r,o=!1){const c=r.length;if(!c)return;l.x=l.y=1;let h,f;for(let m=0;mk0&&(l.x=1),l.yk0&&(l.y=1)}function oa(i,l){i.min=i.min+l,i.max=i.max+l}function J0(i,l,r,o,c=.5){const h=Ot(i.min,i.max,c);xc(i,l,r,h,o)}function ua(i,l){J0(i.x,l.x,l.scaleX,l.scale,l.originX),J0(i.y,l.y,l.scaleY,l.scale,l.originY)}function Fg(i,l){return Zg(Hb(i.getBoundingClientRect(),l))}function Ub(i,l,r){const o=Fg(i,r),{scroll:c}=l;return c&&(oa(o.x,c.offset.x),oa(o.y,c.offset.y)),o}const W0=()=>({translate:0,scale:1,origin:0,originPoint:0}),ca=()=>({x:W0(),y:W0()}),P0=()=>({min:0,max:0}),Ut=()=>({x:P0(),y:P0()}),Sc={current:null},Jg={current:!1};function qb(){if(Jg.current=!0,!!wc)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),l=()=>Sc.current=i.matches;i.addEventListener("change",l),l()}else Sc.current=!1}const Yb=new WeakMap;function Gb(i,l,r){for(const o in l){const c=l[o],h=r[o];if(Wt(c))i.addValue(o,c);else if(Wt(h))i.addValue(o,Si(c,{owner:i}));else if(h!==c)if(i.hasValue(o)){const f=i.getValue(o);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=i.getStaticValue(o);i.addValue(o,Si(f!==void 0?f:c,{owner:i}))}}for(const o in r)l[o]===void 0&&i.removeValue(o);return l}const I0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Xb{scrapeMotionValuesFromProps(l,r,o){return{}}constructor({parent:l,props:r,presenceContext:o,reducedMotionConfig:c,blockInitialAnimation:h,visualState:f},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=kc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const T=ge.now();this.renderScheduledAtthis.bindToMotionValue(o,r)),Jg.current||qb(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Sc.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),xn(this.notifyUpdate),xn(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const l in this.events)this.events[l].clear();for(const l in this.features){const r=this.features[l];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(l){this.children.add(l),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(l)}removeChild(l){this.children.delete(l),this.enteringChildren&&this.enteringChildren.delete(l)}bindToMotionValue(l,r){this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)();const o=ga.has(l);o&&this.onBindTransform&&this.onBindTransform();const c=r.on("change",f=>{this.latestValues[l]=f,this.props.onUpdate&&jt.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let h;window.MotionCheckAppearSync&&(h=window.MotionCheckAppearSync(this,l,r)),this.valueSubscriptions.set(l,()=>{c(),h&&h(),r.owner&&r.stop()})}sortNodePosition(l){return!this.current||!this.sortInstanceNodePosition||this.type!==l.type?0:this.sortInstanceNodePosition(this.current,l.current)}updateFeatures(){let l="animation";for(l in ha){const r=ha[l];if(!r)continue;const{isEnabled:o,Feature:c}=r;if(!this.features[l]&&c&&o(this.props)&&(this.features[l]=new c(this)),this.features[l]){const h=this.features[l];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ut()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,r){this.latestValues[l]=r}update(l,r){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;or.variantChildren.delete(l)}addValue(l,r){const o=this.values.get(l);r!==o&&(o&&this.removeValue(l),this.bindToMotionValue(l,r),this.values.set(l,r),this.latestValues[l]=r.get())}removeValue(l){this.values.delete(l);const r=this.valueSubscriptions.get(l);r&&(r(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,r){if(this.props.values&&this.props.values[l])return this.props.values[l];let o=this.values.get(l);return o===void 0&&r!==void 0&&(o=Si(r===null?void 0:r,{owner:this}),this.addValue(l,o)),o}readValue(l,r){let o=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return o!=null&&(typeof o=="string"&&(Up(o)||Yp(o))?o=parseFloat(o):!P5(o)&&kn.test(r)&&(o=Ag(l,r)),this.setBaseTarget(l,Wt(o)?o.get():o)),Wt(o)?o.get():o}setBaseTarget(l,r){this.baseTarget[l]=r}getBaseTarget(l){const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const h=af(this.props,r,this.presenceContext?.custom);h&&(o=h[l])}if(r&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!Wt(c)?c:this.initialValues[l]!==void 0&&o===void 0?void 0:this.baseTarget[l]}on(l,r){return this.events[l]||(this.events[l]=new Nc),this.events[l].add(r)}notify(l,...r){this.events[l]&&this.events[l].notify(...r)}scheduleRenderMicrotask(){Wc.render(this.render)}}class Wg extends Xb{constructor(){super(...arguments),this.KeyframeResolver=L5}sortInstanceNodePosition(l,r){return l.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(l,r){return l.style?l.style[r]:void 0}removeValueFromRenderState(l,{vars:r,style:o}){delete r[l],delete o[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;Wt(l)&&(this.childSubscription=l.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function Pg(i,{style:l,vars:r},o,c){const h=i.style;let f;for(f in l)h[f]=l[f];c?.applyProjectionStyles(h,o);for(f in r)h.setProperty(f,r[f])}function Qb(i){return window.getComputedStyle(i)}class Zb extends Wg{constructor(){super(...arguments),this.type="html",this.renderInstance=Pg}readValueFromInstance(l,r){if(ga.has(r))return this.projection?.isProjecting?dc(r):i5(l,r);{const o=Qb(l),c=(Uc(r)?o.getPropertyValue(r):o[r])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:r}){return Fg(l,r)}build(l,r,o){tf(l,r,o.transformTemplate)}scrapeMotionValuesFromProps(l,r,o){return lf(l,r,o)}}const Ig=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Kb(i,l,r,o){Pg(i,l,void 0,o);for(const c in l.attrs)i.setAttribute(Ig.has(c)?c:sf(c),l.attrs[c])}class kb extends Wg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ut}getBaseTargetFromProps(l,r){return l[r]}readValueFromInstance(l,r){if(ga.has(r)){const o=Tg(r);return o&&o.default||0}return r=Ig.has(r)?r:sf(r),l.getAttribute(r)}scrapeMotionValuesFromProps(l,r,o){return Yg(l,r,o)}build(l,r,o){Hg(l,r,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(l,r,o,c){Kb(l,r,o,c)}mount(l){this.isSVGTag=Ug(l.tagName),super.mount(l)}}const Fb=(i,l)=>nf(i)?new kb(l):new Zb(l,{allowProjection:i!==L.Fragment});function da(i,l,r){const o=i.getProps();return af(o,l,r!==void 0?r:o.custom,i)}const Tc=i=>Array.isArray(i);function Jb(i,l,r){i.hasValue(l)?i.getValue(l).set(r):i.addValue(l,Si(r))}function Wb(i){return Tc(i)?i[i.length-1]||0:i}function Pb(i,l){const r=da(i,l);let{transitionEnd:o={},transition:c={},...h}=r||{};h={...h,...o};for(const f in h){const m=Wb(h[f]);Jb(i,f,m)}}function Ib(i){return!!(Wt(i)&&i.add)}function Ac(i,l){const r=i.getValue("willChange");if(Ib(r))return r.add(l);if(!r&&bn.WillChange){const o=new bn.WillChange("auto");i.addValue("willChange",o),o.add(l)}}function $g(i){return i.props[Gg]}const $b=i=>i!==null;function tx(i,{repeat:l,repeatType:r="loop"},o){const c=i.filter($b),h=l&&r!=="loop"&&l%2===1?0:c.length-1;return c[h]}const ex={type:"spring",stiffness:500,damping:25,restSpeed:10},nx=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),ix={type:"keyframes",duration:.8},ax={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},lx=(i,{keyframes:l})=>l.length>2?ix:ga.has(i)?i.startsWith("scale")?nx(l[1]):ex:ax;function sx({when:i,delay:l,delayChildren:r,staggerChildren:o,staggerDirection:c,repeat:h,repeatType:f,repeatDelay:m,from:p,elapsed:g,...y}){return!!Object.keys(y).length}const rf=(i,l,r,o={},c,h)=>f=>{const m=Fc(o,i)||{},p=m.delay||o.delay||0;let{elapsed:g=0}=o;g=g-We(p);const y={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:l.getVelocity(),...m,delay:-g,onUpdate:T=>{l.set(T),m.onUpdate&&m.onUpdate(T)},onComplete:()=>{f(),m.onComplete&&m.onComplete()},name:i,motionValue:l,element:h?void 0:c};sx(m)||Object.assign(y,lx(i,y)),y.duration&&(y.duration=We(y.duration)),y.repeatDelay&&(y.repeatDelay=We(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let x=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(yc(y),y.delay===0&&(x=!0)),(bn.instantAnimations||bn.skipAnimations)&&(x=!0,yc(y),y.delay=0),y.allowFlatten=!m.type&&!m.ease,x&&!h&&l.get()!==void 0){const T=tx(y.keyframes,m);if(T!==void 0){jt.update(()=>{y.onUpdate(T),y.onComplete()});return}}return m.isSync?new gr(y):new C5(y)};function rx({protectedKeys:i,needsAnimating:l},r){const o=i.hasOwnProperty(r)&&l[r]!==!0;return l[r]=!1,o}function ty(i,l,{delay:r=0,transitionOverride:o,type:c}={}){let{transition:h=i.getDefaultTransition(),transitionEnd:f,...m}=l;o&&(h=o);const p=[],g=c&&i.animationState&&i.animationState.getState()[c];for(const y in m){const x=i.getValue(y,i.latestValues[y]??null),T=m[y];if(T===void 0||g&&rx(g,y))continue;const w={delay:r,...Fc(h||{},y)},V=x.get();if(V!==void 0&&!x.isAnimating&&!Array.isArray(T)&&T===V&&!w.velocity)continue;let H=!1;if(window.MotionHandoffAnimation){const q=$g(i);if(q){const Z=window.MotionHandoffAnimation(q,y,jt);Z!==null&&(w.startTime=Z,H=!0)}}Ac(i,y),x.start(rf(y,x,T,i.shouldReduceMotion&&bg.has(y)?{type:!1}:w,i,H));const Y=x.animation;Y&&p.push(Y)}return f&&Promise.all(p).then(()=>{jt.update(()=>{f&&Pb(i,f)})}),p}function ey(i,l,r,o=0,c=1){const h=Array.from(i).sort((g,y)=>g.sortNodePosition(y)).indexOf(l),f=i.size,m=(f-1)*o;return typeof r=="function"?r(h,f):c===1?h*o:m-h*o}function Mc(i,l,r={}){const o=da(i,l,r.type==="exit"?i.presenceContext?.custom:void 0);let{transition:c=i.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(c=r.transitionOverride);const h=o?()=>Promise.all(ty(i,o,r)):()=>Promise.resolve(),f=i.variantChildren&&i.variantChildren.size?(p=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:x}=c;return ox(i,l,p,g,y,x,r)}:()=>Promise.resolve(),{when:m}=c;if(m){const[p,g]=m==="beforeChildren"?[h,f]:[f,h];return p().then(()=>g())}else return Promise.all([h(),f(r.delay)])}function ox(i,l,r=0,o=0,c=0,h=1,f){const m=[];for(const p of i.variantChildren)p.notify("AnimationStart",l),m.push(Mc(p,l,{...f,delay:r+(typeof o=="function"?0:o)+ey(i.variantChildren,p,o,c,h)}).then(()=>p.notify("AnimationComplete",l)));return Promise.all(m)}function ux(i,l,r={}){i.notify("AnimationStart",l);let o;if(Array.isArray(l)){const c=l.map(h=>Mc(i,h,r));o=Promise.all(c)}else if(typeof l=="string")o=Mc(i,l,r);else{const c=typeof l=="function"?da(i,l,r.custom):l;o=Promise.all(ty(i,c,r))}return o.then(()=>{i.notify("AnimationComplete",l)})}function ny(i,l){if(!Array.isArray(l))return!1;const r=l.length;if(r!==i.length)return!1;for(let o=0;oPromise.all(l.map(({animation:r,options:o})=>ux(i,r,o)))}function mx(i){let l=hx(i),r=$0(),o=!0;const c=p=>(g,y)=>{const x=da(i,y,p==="exit"?i.presenceContext?.custom:void 0);if(x){const{transition:T,transitionEnd:w,...V}=x;g={...g,...V,...w}}return g};function h(p){l=p(i)}function f(p){const{props:g}=i,y=iy(i.parent)||{},x=[],T=new Set;let w={},V=1/0;for(let Y=0;YV&&nt,xt=!1;const Rt=Array.isArray(X)?X:[X];let Kt=Rt.reduce(c(q),{});P===!1&&(Kt={});const{prevResolvedValues:Pt={}}=Z,Ie={...Pt,...Kt},je=U=>{I=!0,T.has(U)&&(xt=!0,T.delete(U)),Z.needsAnimating[U]=!0;const J=i.getValue(U);J&&(J.liveStyle=!1)};for(const U in Ie){const J=Kt[U],ft=Pt[U];if(w.hasOwnProperty(U))continue;let pt=!1;Tc(J)&&Tc(ft)?pt=!ny(J,ft):pt=J!==ft,pt?J!=null?je(U):T.add(U):J!==void 0&&T.has(U)?je(U):Z.protectedKeys[U]=!0}Z.prevProp=X,Z.prevResolvedValues=Kt,Z.isActive&&(w={...w,...Kt}),o&&i.blockInitialAnimation&&(I=!1);const oe=tt&&K;I&&(!oe||xt)&&x.push(...Rt.map(U=>{const J={type:q};if(typeof U=="string"&&o&&!oe&&i.manuallyAnimateOnMount&&i.parent){const{parent:ft}=i,pt=da(ft,U);if(ft.enteringChildren&&pt){const{delayChildren:M}=pt.transition||{};J.delay=ey(ft.enteringChildren,i,M)}}return{animation:U,options:J}}))}if(T.size){const Y={};if(typeof g.initial!="boolean"){const q=da(i,Array.isArray(g.initial)?g.initial[0]:g.initial);q&&q.transition&&(Y.transition=q.transition)}T.forEach(q=>{const Z=i.getBaseTarget(q),X=i.getValue(q);X&&(X.liveStyle=!0),Y[q]=Z??null}),x.push({animation:Y})}let H=!!x.length;return o&&(g.initial===!1||g.initial===g.animate)&&!i.manuallyAnimateOnMount&&(H=!1),o=!1,H?l(x):Promise.resolve()}function m(p,g){if(r[p].isActive===g)return Promise.resolve();i.variantChildren?.forEach(x=>x.animationState?.setActive(p,g)),r[p].isActive=g;const y=f(p);for(const x in r)r[x].protectedKeys={};return y}return{animateChanges:f,setActive:m,setAnimateFunction:h,getState:()=>r,reset:()=>{r=$0()}}}function px(i,l){return typeof l=="string"?l!==i:Array.isArray(l)?!ny(l,i):!1}function mi(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $0(){return{animate:mi(!0),whileInView:mi(),whileHover:mi(),whileTap:mi(),whileDrag:mi(),whileFocus:mi(),exit:mi()}}class Fn{constructor(l){this.isMounted=!1,this.node=l}update(){}}class gx extends Fn{constructor(l){super(l),l.animationState||(l.animationState=mx(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();vr(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:r}=this.node.prevProps||{};l!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let yx=0;class vx extends Fn{constructor(){super(...arguments),this.id=yx++}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===o)return;const c=this.node.animationState.setActive("exit",!l);r&&!l&&c.then(()=>{r(this.id)})}mount(){const{register:l,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const bx={animation:{Feature:gx},exit:{Feature:vx}};function El(i,l,r,o={passive:!0}){return i.addEventListener(l,r,o),()=>i.removeEventListener(l,r)}function Ol(i){return{point:{x:i.pageX,y:i.pageY}}}const xx=i=>l=>Pc(l)&&i(l,Ol(l));function yl(i,l,r,o){return El(i,l,xx(r),o)}const ay=1e-4,Sx=1-ay,Tx=1+ay,ly=.01,Ax=0-ly,Mx=0+ly;function re(i){return i.max-i.min}function Ex(i,l,r){return Math.abs(i-l)<=r}function tp(i,l,r,o=.5){i.origin=o,i.originPoint=Ot(l.min,l.max,i.origin),i.scale=re(r)/re(l),i.translate=Ot(r.min,r.max,i.origin)-i.originPoint,(i.scale>=Sx&&i.scale<=Tx||isNaN(i.scale))&&(i.scale=1),(i.translate>=Ax&&i.translate<=Mx||isNaN(i.translate))&&(i.translate=0)}function vl(i,l,r,o){tp(i.x,l.x,r.x,o?o.originX:void 0),tp(i.y,l.y,r.y,o?o.originY:void 0)}function ep(i,l,r){i.min=r.min+l.min,i.max=i.min+re(l)}function Cx(i,l,r){ep(i.x,l.x,r.x),ep(i.y,l.y,r.y)}function np(i,l,r){i.min=l.min-r.min,i.max=i.min+re(l)}function bl(i,l,r){np(i.x,l.x,r.x),np(i.y,l.y,r.y)}function Ue(i){return[i("x"),i("y")]}const sy=({current:i})=>i?i.ownerDocument.defaultView:null,ip=(i,l)=>Math.abs(i-l);function jx(i,l){const r=ip(i.x,l.x),o=ip(i.y,l.y);return Math.sqrt(r**2+o**2)}class ry{constructor(l,r,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:h=!1,distanceThreshold:f=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=tc(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,V=jx(T.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!V)return;const{point:H}=T,{timestamp:Y}=ie;this.history.push({...H,timestamp:Y});const{onStart:q,onMove:Z}=this.handlers;w||(q&&q(this.lastMoveEvent,T),this.startEvent=this.lastMoveEvent),Z&&Z(this.lastMoveEvent,T)},this.handlePointerMove=(T,w)=>{this.lastMoveEvent=T,this.lastMoveEventInfo=$u(w,this.transformPagePoint),jt.update(this.updatePoint,!0)},this.handlePointerUp=(T,w)=>{this.end();const{onEnd:V,onSessionEnd:H,resumeAnimation:Y}=this.handlers;if(this.dragSnapToOrigin&&Y&&Y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const q=tc(T.type==="pointercancel"?this.lastMoveEventInfo:$u(w,this.transformPagePoint),this.history);this.startEvent&&V&&V(T,q),H&&H(T,q)},!Pc(l))return;this.dragSnapToOrigin=h,this.handlers=r,this.transformPagePoint=o,this.distanceThreshold=f,this.contextWindow=c||window;const m=Ol(l),p=$u(m,this.transformPagePoint),{point:g}=p,{timestamp:y}=ie;this.history=[{...g,timestamp:y}];const{onSessionStart:x}=r;x&&x(l,tc(p,this.history)),this.removeListeners=jl(yl(this.contextWindow,"pointermove",this.handlePointerMove),yl(this.contextWindow,"pointerup",this.handlePointerUp),yl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),xn(this.updatePoint)}}function $u(i,l){return l?{point:l(i.point)}:i}function ap(i,l){return{x:i.x-l.x,y:i.y-l.y}}function tc({point:i},l){return{point:i,delta:ap(i,oy(l)),offset:ap(i,zx(l)),velocity:Dx(l,.1)}}function zx(i){return i[0]}function oy(i){return i[i.length-1]}function Dx(i,l){if(i.length<2)return{x:0,y:0};let r=i.length-1,o=null;const c=oy(i);for(;r>=0&&(o=i[r],!(c.timestamp-o.timestamp>We(l)));)r--;if(!o)return{x:0,y:0};const h=qe(c.timestamp-o.timestamp);if(h===0)return{x:0,y:0};const f={x:(c.x-o.x)/h,y:(c.y-o.y)/h};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function wx(i,{min:l,max:r},o){return l!==void 0&&ir&&(i=o?Ot(r,i,o.max):Math.min(i,r)),i}function lp(i,l,r){return{min:l!==void 0?i.min+l:void 0,max:r!==void 0?i.max+r-(i.max-i.min):void 0}}function Ox(i,{top:l,left:r,bottom:o,right:c}){return{x:lp(i.x,r,c),y:lp(i.y,l,o)}}function sp(i,l){let r=l.min-i.min,o=l.max-i.max;return l.max-l.mino?r=xl(l.min,l.max-o,i.min):o>c&&(r=xl(i.min,i.max-c,l.min)),vn(0,1,r)}function Bx(i,l){const r={};return l.min!==void 0&&(r.min=l.min-i.min),l.max!==void 0&&(r.max=l.max-i.min),r}const Ec=.35;function _x(i=Ec){return i===!1?i=0:i===!0&&(i=Ec),{x:rp(i,"left","right"),y:rp(i,"top","bottom")}}function rp(i,l,r){return{min:op(i,l),max:op(i,r)}}function op(i,l){return typeof i=="number"?i:i[l]||0}const Nx=new WeakMap;class Hx{constructor(l){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ut(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:r=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const h=x=>{const{dragSnapToOrigin:T}=this.getProps();T?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Ol(x).point)},f=(x,T)=>{const{drag:w,dragPropagation:V,onDragStart:H}=this.getProps();if(w&&!V&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Y5(w),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=T,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ue(q=>{let Z=this.getAxisMotionValue(q).get()||0;if(Pe.test(Z)){const{projection:X}=this.visualElement;if(X&&X.layout){const nt=X.layout.layoutBox[q];nt&&(Z=re(nt)*(parseFloat(Z)/100))}}this.originPoint[q]=Z}),H&&jt.postRender(()=>H(x,T)),Ac(this.visualElement,"transform");const{animationState:Y}=this.visualElement;Y&&Y.setActive("whileDrag",!0)},m=(x,T)=>{this.latestPointerEvent=x,this.latestPanInfo=T;const{dragPropagation:w,dragDirectionLock:V,onDirectionLock:H,onDrag:Y}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:q}=T;if(V&&this.currentDirection===null){this.currentDirection=Lx(q),this.currentDirection!==null&&H&&H(this.currentDirection);return}this.updateAxis("x",T.point,q),this.updateAxis("y",T.point,q),this.visualElement.render(),Y&&Y(x,T)},p=(x,T)=>{this.latestPointerEvent=x,this.latestPanInfo=T,this.stop(x,T),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>Ue(x=>this.getAnimationState(x)==="paused"&&this.getAxisMotionValue(x).animation?.play()),{dragSnapToOrigin:y}=this.getProps();this.panSession=new ry(l,{onSessionStart:h,onStart:f,onMove:m,onSessionEnd:p,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:o,contextWindow:sy(this.visualElement)})}stop(l,r){const o=l||this.latestPointerEvent,c=r||this.latestPanInfo,h=this.isDragging;if(this.cancel(),!h||!c||!o)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:m}=this.getProps();m&&jt.postRender(()=>m(o,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:r}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(l,r,o){const{drag:c}=this.getProps();if(!o||!$s(l,c,this.currentDirection))return;const h=this.getAxisMotionValue(l);let f=this.originPoint[l]+o[l];this.constraints&&this.constraints[l]&&(f=wx(f,this.constraints[l],this.elastic[l])),h.set(f)}resolveConstraints(){const{dragConstraints:l,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;l&&ra(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&o?this.constraints=Ox(o.layoutBox,l):this.constraints=!1,this.elastic=_x(r),c!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ue(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=Bx(o.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:r}=this.getProps();if(!l||!ra(l))return!1;const o=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const h=Ub(o,c.root,this.visualElement.getTransformPagePoint());let f=Rx(c.layout.layoutBox,h);if(r){const m=r(Nb(f));this.hasMutatedConstraints=!!m,m&&(f=Zg(m))}return f}startAnimation(l){const{drag:r,dragMomentum:o,dragElastic:c,dragTransition:h,dragSnapToOrigin:f,onDragTransitionEnd:m}=this.getProps(),p=this.constraints||{},g=Ue(y=>{if(!$s(y,r,this.currentDirection))return;let x=p&&p[y]||{};f&&(x={min:0,max:0});const T=c?200:1e6,w=c?40:1e7,V={type:"inertia",velocity:o?l[y]:0,bounceStiffness:T,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...h,...x};return this.startAxisValueAnimation(y,V)});return Promise.all(g).then(m)}startAxisValueAnimation(l,r){const o=this.getAxisMotionValue(l);return Ac(this.visualElement,l),o.start(rf(l,o,0,r,this.visualElement,!1))}stopAnimation(){Ue(l=>this.getAxisMotionValue(l).stop())}pauseAnimation(){Ue(l=>this.getAxisMotionValue(l).animation?.pause())}getAnimationState(l){return this.getAxisMotionValue(l).animation?.state}getAxisMotionValue(l){const r=`_drag${l.toUpperCase()}`,o=this.visualElement.getProps(),c=o[r];return c||this.visualElement.getValue(l,(o.initial?o.initial[l]:void 0)||0)}snapToCursor(l){Ue(r=>{const{drag:o}=this.getProps();if(!$s(r,o,this.currentDirection))return;const{projection:c}=this.visualElement,h=this.getAxisMotionValue(r);if(c&&c.layout){const{min:f,max:m}=c.layout.layoutBox[r];h.set(l[r]-Ot(f,m,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!ra(r)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Ue(f=>{const m=this.getAxisMotionValue(f);if(m&&this.constraints!==!1){const p=m.get();c[f]=Vx({min:p,max:p},this.constraints[f])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Ue(f=>{if(!$s(f,l,null))return;const m=this.getAxisMotionValue(f),{min:p,max:g}=this.constraints[f];m.set(Ot(p,g,c[f]))})}addListeners(){if(!this.visualElement.current)return;Nx.set(this.visualElement,this);const l=this.visualElement.current,r=yl(l,"pointerdown",p=>{const{drag:g,dragListener:y=!0}=this.getProps();g&&y&&this.start(p)}),o=()=>{const{dragConstraints:p}=this.getProps();ra(p)&&p.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,h=c.addEventListener("measure",o);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),jt.read(o);const f=El(window,"resize",()=>this.scalePositionWithinConstraints()),m=c.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:g})=>{this.isDragging&&g&&(Ue(y=>{const x=this.getAxisMotionValue(y);x&&(this.originPoint[y]+=p[y].translate,x.set(x.get()+p[y].translate))}),this.visualElement.render())}));return()=>{f(),r(),h(),m&&m()}}getProps(){const l=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:h=!1,dragElastic:f=Ec,dragMomentum:m=!0}=l;return{...l,drag:r,dragDirectionLock:o,dragPropagation:c,dragConstraints:h,dragElastic:f,dragMomentum:m}}}function $s(i,l,r){return(l===!0||l===i)&&(r===null||r===i)}function Lx(i,l=10){let r=null;return Math.abs(i.y)>l?r="y":Math.abs(i.x)>l&&(r="x"),r}class Ux extends Fn{constructor(l){super(l),this.removeGroupControls=Ye,this.removeListeners=Ye,this.controls=new Hx(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ye}unmount(){this.removeGroupControls(),this.removeListeners()}}const up=i=>(l,r)=>{i&&jt.postRender(()=>i(l,r))};class qx extends Fn{constructor(){super(...arguments),this.removePointerDownListener=Ye}onPointerDown(l){this.session=new ry(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sy(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:r,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:up(l),onStart:up(r),onMove:o,onEnd:(h,f)=>{delete this.session,c&&jt.postRender(()=>c(h,f))}}}mount(){this.removePointerDownListener=yl(this.node.current,"pointerdown",l=>this.onPointerDown(l))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ar={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function cp(i,l){return l.max===l.min?0:i/(l.max-l.min)*100}const dl={correct:(i,l)=>{if(!l.target)return i;if(typeof i=="string")if(it.test(i))i=parseFloat(i);else return i;const r=cp(i,l.target.x),o=cp(i,l.target.y);return`${r}% ${o}%`}},Yx={correct:(i,{treeScale:l,projectionDelta:r})=>{const o=i,c=kn.parse(i);if(c.length>5)return o;const h=kn.createTransformer(i),f=typeof c[0]!="number"?1:0,m=r.x.scale*l.x,p=r.y.scale*l.y;c[0+f]/=m,c[1+f]/=p;const g=Ot(m,p,.5);return typeof c[2+f]=="number"&&(c[2+f]/=g),typeof c[3+f]=="number"&&(c[3+f]/=g),h(c)}};let ec=!1;class Gx extends L.Component{componentDidMount(){const{visualElement:l,layoutGroup:r,switchLayoutGroup:o,layoutId:c}=this.props,{projection:h}=l;cb(Xx),h&&(r.group&&r.group.add(h),o&&o.register&&c&&o.register(h),ec&&h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,onExitComplete:()=>this.safeToRemove()})),ar.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:r,visualElement:o,drag:c,isPresent:h}=this.props,{projection:f}=o;return f&&(f.isPresent=h,ec=!0,c||l.layoutDependency!==r||r===void 0||l.isPresent!==h?f.willUpdate():this.safeToRemove(),l.isPresent!==h&&(h?f.promote():f.relegate()||jt.postRender(()=>{const m=f.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:l}=this.props.visualElement;l&&(l.root.didUpdate(),Wc.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:c}=l;ec=!0,c&&(c.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function uy(i){const[l,r]=Og(),o=L.useContext(Dc);return v.jsx(Gx,{...i,layoutGroup:o,switchLayoutGroup:L.useContext(Xg),isPresent:l,safeToRemove:r})}const Xx={borderRadius:{...dl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:dl,borderTopRightRadius:dl,borderBottomLeftRadius:dl,borderBottomRightRadius:dl,boxShadow:Yx};function Qx(i,l,r){const o=Wt(i)?i:Si(i);return o.start(rf("",o,l,r)),o.animation}const Zx=(i,l)=>i.depth-l.depth;class Kx{constructor(){this.children=[],this.isDirty=!1}add(l){Rc(this.children,l),this.isDirty=!0}remove(l){Vc(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(Zx),this.isDirty=!1,this.children.forEach(l)}}function kx(i,l){const r=ge.now(),o=({timestamp:c})=>{const h=c-r;h>=l&&(xn(o),i(h-l))};return jt.setup(o,!0),()=>xn(o)}const cy=["TopLeft","TopRight","BottomLeft","BottomRight"],Fx=cy.length,fp=i=>typeof i=="string"?parseFloat(i):i,dp=i=>typeof i=="number"||it.test(i);function Jx(i,l,r,o,c,h){c?(i.opacity=Ot(0,r.opacity??1,Wx(o)),i.opacityExit=Ot(l.opacity??1,0,Px(o))):h&&(i.opacity=Ot(l.opacity??1,r.opacity??1,o));for(let f=0;fol?1:r(xl(i,l,o))}function mp(i,l){i.min=l.min,i.max=l.max}function Le(i,l){mp(i.x,l.x),mp(i.y,l.y)}function pp(i,l){i.translate=l.translate,i.scale=l.scale,i.originPoint=l.originPoint,i.origin=l.origin}function gp(i,l,r,o,c){return i-=l,i=ur(i,1/r,o),c!==void 0&&(i=ur(i,1/c,o)),i}function Ix(i,l=0,r=1,o=.5,c,h=i,f=i){if(Pe.test(l)&&(l=parseFloat(l),l=Ot(f.min,f.max,l/100)-f.min),typeof l!="number")return;let m=Ot(h.min,h.max,o);i===h&&(m-=l),i.min=gp(i.min,l,r,m,c),i.max=gp(i.max,l,r,m,c)}function yp(i,l,[r,o,c],h,f){Ix(i,l[r],l[o],l[c],l.scale,h,f)}const $x=["x","scaleX","originX"],t3=["y","scaleY","originY"];function vp(i,l,r,o){yp(i.x,l,$x,r?r.x:void 0,o?o.x:void 0),yp(i.y,l,t3,r?r.y:void 0,o?o.y:void 0)}function bp(i){return i.translate===0&&i.scale===1}function dy(i){return bp(i.x)&&bp(i.y)}function xp(i,l){return i.min===l.min&&i.max===l.max}function e3(i,l){return xp(i.x,l.x)&&xp(i.y,l.y)}function Sp(i,l){return Math.round(i.min)===Math.round(l.min)&&Math.round(i.max)===Math.round(l.max)}function hy(i,l){return Sp(i.x,l.x)&&Sp(i.y,l.y)}function Tp(i){return re(i.x)/re(i.y)}function Ap(i,l){return i.translate===l.translate&&i.scale===l.scale&&i.originPoint===l.originPoint}class n3{constructor(){this.members=[]}add(l){Rc(this.members,l),l.scheduleRender()}remove(l){if(Vc(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(l){const r=this.members.findIndex(c=>l===c);if(r===0)return!1;let o;for(let c=r;c>=0;c--){const h=this.members[c];if(h.isPresent!==!1){o=h;break}}return o?(this.promote(o),!0):!1}promote(l,r){const o=this.lead;if(l!==o&&(this.prevLead=o,this.lead=l,l.show(),o)){o.instance&&o.scheduleRender(),l.scheduleRender(),l.resumeFrom=o,r&&(l.resumeFrom.preserveOpacity=!0),o.snapshot&&(l.snapshot=o.snapshot,l.snapshot.latestValues=o.animationValues||o.latestValues),l.root&&l.root.isUpdating&&(l.isLayoutDirty=!0);const{crossfade:c}=l.options;c===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(l=>{const{options:r,resumingFrom:o}=l;r.onExitComplete&&r.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(l=>{l.instance&&l.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function i3(i,l,r){let o="";const c=i.x.translate/l.x,h=i.y.translate/l.y,f=r?.z||0;if((c||h||f)&&(o=`translate3d(${c}px, ${h}px, ${f}px) `),(l.x!==1||l.y!==1)&&(o+=`scale(${1/l.x}, ${1/l.y}) `),r){const{transformPerspective:g,rotate:y,rotateX:x,rotateY:T,skewX:w,skewY:V}=r;g&&(o=`perspective(${g}px) ${o}`),y&&(o+=`rotate(${y}deg) `),x&&(o+=`rotateX(${x}deg) `),T&&(o+=`rotateY(${T}deg) `),w&&(o+=`skewX(${w}deg) `),V&&(o+=`skewY(${V}deg) `)}const m=i.x.scale*l.x,p=i.y.scale*l.y;return(m!==1||p!==1)&&(o+=`scale(${m}, ${p})`),o||"none"}const nc=["","X","Y","Z"],a3=1e3;let l3=0;function ic(i,l,r,o){const{latestValues:c}=l;c[i]&&(r[i]=c[i],l.setStaticValue(i,0),o&&(o[i]=0))}function my(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:l}=i.options;if(!l)return;const r=$g(l);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:c,layoutId:h}=i.options;window.MotionCancelOptimisedAnimation(r,"transform",jt,!(c||h))}const{parent:o}=i;o&&!o.hasCheckedOptimisedAppear&&my(o)}function py({attachResizeListener:i,defaultParent:l,measureScroll:r,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(f={},m=l?.()){this.id=l3++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(o3),this.nodes.forEach(d3),this.nodes.forEach(h3),this.nodes.forEach(u3)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let p=0;pthis.root.updateBlockedByResize=!1;jt.read(()=>{x=window.innerWidth}),i(f,()=>{const w=window.innerWidth;w!==x&&(x=w,this.root.updateBlockedByResize=!0,y&&y(),y=kx(T,250),ar.hasAnimatedSinceResize&&(ar.hasAnimatedSinceResize=!1,this.nodes.forEach(Cp)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&g&&(m||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:x,hasRelativeLayoutChanged:T,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const V=this.options.transition||g.getDefaultTransition()||v3,{onLayoutAnimationStart:H,onLayoutAnimationComplete:Y}=g.getProps(),q=!this.targetLayout||!hy(this.targetLayout,w),Z=!x&&T;if(this.options.layoutRoot||this.resumeFrom||Z||x&&(q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const X={...Fc(V,"layout"),onPlay:H,onComplete:Y};(g.shouldReduceMotion||this.options.layoutRoot)&&(X.delay=0,X.type=!1),this.startAnimation(X),this.setAnimationOrigin(y,Z)}else x||Cp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),xn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(m3),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&my(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!re(this.snapshot.measuredBox.x)&&!re(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let p=0;p{const P=nt/1e3;jp(x.x,f.x,P),jp(x.y,f.y,P),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bl(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),g3(this.relativeTarget,this.relativeTargetOrigin,T,P),X&&e3(this.relativeTarget,X)&&(this.isProjectionDirty=!1),X||(X=Ut()),Le(X,this.relativeTarget)),H&&(this.animationValues=y,Jx(y,g,this.latestValues,P,Z,q)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(xn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jt.update(()=>{ar.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Si(0)),this.currentAnimation=Qx(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),f.onUpdate&&f.onUpdate(m)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(a3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:m,target:p,layout:g,latestValues:y}=f;if(!(!m||!p||!g)){if(this!==f&&this.layout&&g&&gy(this.options.animationType,this.layout.layoutBox,g.layoutBox)){p=this.target||Ut();const x=re(this.layout.layoutBox.x);p.x.min=f.target.x.min,p.x.max=p.x.min+x;const T=re(this.layout.layoutBox.y);p.y.min=f.target.y.min,p.y.max=p.y.min+T}Le(m,p),ua(m,y),vl(this.projectionDeltaWithTransform,this.layoutCorrected,m,y)}}registerSharedNode(f,m){this.sharedNodes.has(f)||this.sharedNodes.set(f,new n3),this.sharedNodes.get(f).add(m);const g=m.options.initialPromotionConfig;m.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(m):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){const{layoutId:f}=this.options;return f?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:f}=this.options;return f?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:m,preserveFollowOpacity:p}={}){const g=this.getStack();g&&g.promote(this,p),f&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let m=!1;const{latestValues:p}=f;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(m=!0),!m)return;const g={};p.z&&ic("z",f,g,this.animationValues);for(let y=0;yf.currentAnimation?.stop()),this.root.nodes.forEach(Mp),this.root.sharedNodes.clear()}}}function s3(i){i.updateLayout()}function r3(i){const l=i.resumeFrom?.snapshot||i.snapshot;if(i.isLead()&&i.layout&&l&&i.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=i.layout,{animationType:c}=i.options,h=l.source!==i.layout.source;c==="size"?Ue(y=>{const x=h?l.measuredBox[y]:l.layoutBox[y],T=re(x);x.min=r[y].min,x.max=x.min+T}):gy(c,l.layoutBox,r)&&Ue(y=>{const x=h?l.measuredBox[y]:l.layoutBox[y],T=re(r[y]);x.max=x.min+T,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[y].max=i.relativeTarget[y].min+T)});const f=ca();vl(f,r,l.layoutBox);const m=ca();h?vl(m,i.applyTransform(o,!0),l.measuredBox):vl(m,r,l.layoutBox);const p=!dy(f);let g=!1;if(!i.resumeFrom){const y=i.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:x,layout:T}=y;if(x&&T){const w=Ut();bl(w,l.layoutBox,x.layoutBox);const V=Ut();bl(V,r,T.layoutBox),hy(w,V)||(g=!0),y.options.layoutRoot&&(i.relativeTarget=V,i.relativeTargetOrigin=w,i.relativeParent=y)}}}i.notifyListeners("didUpdate",{layout:r,snapshot:l,delta:m,layoutDelta:f,hasLayoutChanged:p,hasRelativeLayoutChanged:g})}else if(i.isLead()){const{onExitComplete:r}=i.options;r&&r()}i.options.transition=void 0}function o3(i){i.parent&&(i.isProjecting()||(i.isProjectionDirty=i.parent.isProjectionDirty),i.isSharedProjectionDirty||(i.isSharedProjectionDirty=!!(i.isProjectionDirty||i.parent.isProjectionDirty||i.parent.isSharedProjectionDirty)),i.isTransformDirty||(i.isTransformDirty=i.parent.isTransformDirty))}function u3(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function c3(i){i.clearSnapshot()}function Mp(i){i.clearMeasurements()}function Ep(i){i.isLayoutDirty=!1}function f3(i){const{visualElement:l}=i.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),i.resetTransform()}function Cp(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function d3(i){i.resolveTargetDelta()}function h3(i){i.calcProjection()}function m3(i){i.resetSkewAndRotation()}function p3(i){i.removeLeadSnapshot()}function jp(i,l,r){i.translate=Ot(l.translate,0,r),i.scale=Ot(l.scale,1,r),i.origin=l.origin,i.originPoint=l.originPoint}function zp(i,l,r,o){i.min=Ot(l.min,r.min,o),i.max=Ot(l.max,r.max,o)}function g3(i,l,r,o){zp(i.x,l.x,r.x,o),zp(i.y,l.y,r.y,o)}function y3(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const v3={duration:.45,ease:[.4,0,.1,1]},Dp=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),wp=Dp("applewebkit/")&&!Dp("chrome/")?Math.round:Ye;function Op(i){i.min=wp(i.min),i.max=wp(i.max)}function b3(i){Op(i.x),Op(i.y)}function gy(i,l,r){return i==="position"||i==="preserve-aspect"&&!Ex(Tp(l),Tp(r),.2)}function x3(i){return i!==i.root&&i.scroll?.wasRoot}const S3=py({attachResizeListener:(i,l)=>El(i,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ac={current:void 0},yy=py({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!ac.current){const i=new S3({});i.mount(window),i.setOptions({layoutScroll:!0}),ac.current=i}return ac.current},resetTransform:(i,l)=>{i.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),T3={pan:{Feature:qx},drag:{Feature:Ux,ProjectionNode:yy,MeasureLayout:uy}};function Rp(i,l,r){const{props:o}=i;i.animationState&&o.whileHover&&i.animationState.setActive("whileHover",r==="Start");const c="onHover"+r,h=o[c];h&&jt.postRender(()=>h(l,Ol(l)))}class A3 extends Fn{mount(){const{current:l}=this.node;l&&(this.unmount=G5(l,(r,o)=>(Rp(this.node,o,"Start"),c=>Rp(this.node,c,"End"))))}unmount(){}}class M3 extends Fn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let l=!1;try{l=this.node.current.matches(":focus-visible")}catch{l=!0}!l||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=jl(El(this.node.current,"focus",()=>this.onFocus()),El(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Vp(i,l,r){const{props:o}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&o.whileTap&&i.animationState.setActive("whileTap",r==="Start");const c="onTap"+(r==="End"?"":r),h=o[c];h&&jt.postRender(()=>h(l,Ol(l)))}class E3 extends Fn{mount(){const{current:l}=this.node;l&&(this.unmount=K5(l,(r,o)=>(Vp(this.node,o,"Start"),(c,{success:h})=>Vp(this.node,c,h?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Cc=new WeakMap,lc=new WeakMap,C3=i=>{const l=Cc.get(i.target);l&&l(i)},j3=i=>{i.forEach(C3)};function z3({root:i,...l}){const r=i||document;lc.has(r)||lc.set(r,{});const o=lc.get(r),c=JSON.stringify(l);return o[c]||(o[c]=new IntersectionObserver(j3,{root:i,...l})),o[c]}function D3(i,l,r){const o=z3(l);return Cc.set(i,r),o.observe(i),()=>{Cc.delete(i),o.unobserve(i)}}const w3={some:0,all:1};class O3 extends Fn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:l={}}=this.node.getProps(),{root:r,margin:o,amount:c="some",once:h}=l,f={root:r?r.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:w3[c]},m=p=>{const{isIntersecting:g}=p;if(this.isInView===g||(this.isInView=g,h&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:y,onViewportLeave:x}=this.node.getProps(),T=g?y:x;T&&T(p)};return D3(this.node.current,f,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:r}=this.node;["amount","margin","root"].some(R3(l,r))&&this.startObserver()}unmount(){}}function R3({viewport:i={}},{viewport:l={}}={}){return r=>i[r]!==l[r]}const V3={inView:{Feature:O3},tap:{Feature:E3},focus:{Feature:M3},hover:{Feature:A3}},B3={layout:{ProjectionNode:yy,MeasureLayout:uy}},_3={...bx,...V3,...T3,...B3},G=_b(_3,Fb);function cr(i){const l=Cl(()=>Si(i)),{isStatic:r}=L.useContext(wl);if(r){const[,o]=L.useState(i);L.useEffect(()=>l.on("change",o),[])}return l}function vy(i,l){const r=cr(l()),o=()=>r.set(l());return o(),Oc(()=>{const c=()=>jt.preRender(o,!1,!0),h=i.map(f=>f.on("change",c));return()=>{h.forEach(f=>f()),xn(o)}}),r}function N3(i){gl.current=[],i();const l=vy(gl.current,i);return gl.current=void 0,l}function H3(i,l,r,o){if(typeof i=="function")return N3(i);const c=F5(l,r,o);return Array.isArray(i)?Bp(i,c):Bp([i],([h])=>c(h))}function Bp(i,l){const r=Cl(()=>[]);return vy(i,()=>{r.length=0;const o=i.length;for(let c=0;cWt(i)?i.get():i;if(r)return H3(o);const c=cr(o());return L.useInsertionEffect(()=>J5(c,i,l),[c,JSON.stringify(l)]),c}const L3={some:0,all:1};function U3(i,l,{root:r,margin:o,amount:c="some"}={}){const h=Mg(i),f=new WeakMap,m=g=>{g.forEach(y=>{const x=f.get(y.target);if(y.isIntersecting!==!!x)if(y.isIntersecting){const T=l(y.target,y);typeof T=="function"?f.set(y.target,T):p.unobserve(y.target)}else typeof x=="function"&&(x(y),f.delete(y.target))})},p=new IntersectionObserver(m,{root:r,rootMargin:o,threshold:typeof c=="number"?c:L3[c]});return h.forEach(g=>p.observe(g)),()=>p.disconnect()}function q3(i,{root:l,margin:r,amount:o,once:c=!1,initial:h=!1}={}){const[f,m]=L.useState(h);return L.useEffect(()=>{if(!i.current||c&&f)return;const p=()=>(m(!0),c?void 0:()=>m(!1)),g={root:l&&l.current||void 0,margin:r,amount:o};return U3(i.current,p,g)},[l,i,r,c,o]),f}var by={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Np=vi.createContext&&vi.createContext(by),Y3=["attr","size","title"];function G3(i,l){if(i==null)return{};var r=X3(i,l),o,c;if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(i);for(c=0;c=0)&&Object.prototype.propertyIsEnumerable.call(i,o)&&(r[o]=i[o])}return r}function X3(i,l){if(i==null)return{};var r={};for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)){if(l.indexOf(o)>=0)continue;r[o]=i[o]}return r}function fr(){return fr=Object.assign?Object.assign.bind():function(i){for(var l=1;lvi.createElement(l.tag,dr({key:r},l.attr),xy(l.child)))}function Zt(i){return l=>vi.createElement(k3,fr({attr:dr({},i.attr)},l),xy(i.child))}function k3(i){var l=r=>{var{attr:o,size:c,title:h}=i,f=G3(i,Y3),m=c||r.size||"1em",p;return r.className&&(p=r.className),i.className&&(p=(p?p+" ":"")+i.className),vi.createElement("svg",fr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,o,f,{className:p,style:dr(dr({color:i.color||r.color},r.style),i.style),height:m,width:m,xmlns:"http://www.w3.org/2000/svg"}),h&&vi.createElement("title",null,h),i.children)};return Np!==void 0?vi.createElement(Np.Consumer,null,r=>l(r)):l(by)}function hr(i){return Zt({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},child:[]}]})(i)}function Sy(i){return Zt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},child:[]}]})(i)}function F3(i){return Zt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 32v448h448V32H0zm372.2 106.1l-24 23c-2.1 1.6-3.1 4.2-2.7 6.7v169.3c-.4 2.6.6 5.2 2.7 6.7l23.5 23v5.1h-118V367l24.3-23.6c2.4-2.4 2.4-3.1 2.4-6.7V199.8l-67.6 171.6h-9.1L125 199.8v115c-.7 4.8 1 9.7 4.4 13.2l31.6 38.3v5.1H71.2v-5.1l31.6-38.3c3.4-3.5 4.9-8.4 4.1-13.2v-133c.4-3.7-1-7.3-3.8-9.8L75 138.1V133h87.3l67.4 148L289 133.1h83.2v5z"},child:[]}]})(i)}function J3(i){return Zt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},child:[]}]})(i)}function W3(i){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"},child:[]}]})(i)}function P3(i){return Zt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm320-196c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM192 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM64 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"},child:[]}]})(i)}function I3(i){return Zt({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M208 352c-2.39 0-4.78.35-7.06 1.09C187.98 357.3 174.35 360 160 360c-14.35 0-27.98-2.7-40.95-6.91-2.28-.74-4.66-1.09-7.05-1.09C49.94 352-.33 402.48 0 464.62.14 490.88 21.73 512 48 512h224c26.27 0 47.86-21.12 48-47.38.33-62.14-49.94-112.62-112-112.62zm-48-32c53.02 0 96-42.98 96-96s-42.98-96-96-96-96 42.98-96 96 42.98 96 96 96zM592 0H208c-26.47 0-48 22.25-48 49.59V96c23.42 0 45.1 6.78 64 17.8V64h352v288h-64v-64H384v64h-76.24c19.1 16.69 33.12 38.73 39.69 64H592c26.47 0 48-22.25 48-49.59V49.59C640 22.25 618.47 0 592 0z"},child:[]}]})(i)}function tr(i){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},child:[]}]})(i)}function $3(i){return Zt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(i)}function tS(i){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"},child:[]}]})(i)}function eS(i){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},child:[]}]})(i)}function nS(i){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},child:[]}]})(i)}function mr(i){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z"},child:[]}]})(i)}function iS(i){return Zt({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm76.45 211.36l-96.42 95.7c-6.65 6.61-17.39 6.61-24.04 0l-96.42-95.7C73.42 337.29 80.54 320 94.82 320H160v-80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v80h65.18c14.28 0 21.4 17.29 11.27 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"},child:[]}]})(i)}function aS(i){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z"},child:[]}]})(i)}function lS(i){return Zt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M437.2 403.5L320 215V64h8c13.3 0 24-10.7 24-24V24c0-13.3-10.7-24-24-24H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h8v151L10.8 403.5C-18.5 450.6 15.3 512 70.9 512h306.2c55.7 0 89.4-61.5 60.1-108.5zM137.9 320l48.2-77.6c3.7-5.2 5.8-11.6 5.8-18.4V64h64v160c0 6.9 2.2 13.2 5.8 18.4l48.2 77.6h-172z"},child:[]}]})(i)}function sS(i){return Zt({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"},child:[]}]})(i)}function rS(i){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"},child:[]}]})(i)}function oS(i){return Zt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"},child:[]}]})(i)}function jc(i){return Zt({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(i)}const uS=()=>{const[i,l]=L.useState(!1),[r,o]=L.useState(!1);L.useEffect(()=>{const f=()=>{o(window.scrollY>100)};return window.addEventListener("scroll",f),()=>window.removeEventListener("scroll",f)},[]);const c=[{name:"HOME",href:"#home"},{name:"ABOUT",href:"#about"},{name:"EXPERIENCE",href:"#experience"},{name:"PROJECTS",href:"#projects"},{name:"RESEARCH",href:"#research"},{name:"READS",href:"#reads"},{name:"CONTACT",href:"#contact"}],h=(f,m)=>{f.preventDefault(),l(!1),setTimeout(()=>{const p=document.querySelector(m);p&&p.scrollIntoView({behavior:"smooth"})},300)};return v.jsxs(v.Fragment,{children:[v.jsx(fa,{children:r&&v.jsxs(G.button,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.3},onClick:()=>l(!0),style:{position:"fixed",top:"2rem",left:"2rem",zIndex:999,background:"rgba(0, 0, 0, 0.4)",border:"2px solid rgba(255, 255, 255, 0.3)",borderRadius:"8px",padding:"1rem 1.5rem",color:"white",fontSize:"1rem",fontWeight:"600",fontFamily:"var(--font-display)",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.75rem",transition:"all 0.3s",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)"},onMouseOver:f=>{f.currentTarget.style.background="rgba(255, 255, 255, 0.15)",f.currentTarget.style.borderColor="white"},onMouseOut:f=>{f.currentTarget.style.background="rgba(0, 0, 0, 0.4)",f.currentTarget.style.borderColor="rgba(255, 255, 255, 0.3)"},children:["Menu ",v.jsx(J3,{})]})}),v.jsx(fa,{children:i&&v.jsxs(G.div,{initial:{x:"-100%"},animate:{x:0},exit:{x:"-100%"},transition:{duration:.4,ease:"easeInOut"},style:{position:"fixed",top:0,left:0,width:"100%",height:"100vh",background:"rgba(0, 0, 0, 0.98)",zIndex:1e3,display:"flex",flexDirection:"column",justifyContent:"center",padding:"4rem",overflow:"hidden"},children:[v.jsxs(G.button,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.2},onClick:()=>l(!1),style:{position:"absolute",top:"2rem",right:"2rem",background:"transparent",border:"none",color:"white",fontSize:"1.5rem",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.5rem",fontFamily:"var(--font-display)",fontWeight:"600",transition:"color 0.3s"},onMouseOver:f=>f.currentTarget.style.color="var(--text-secondary)",onMouseOut:f=>f.currentTarget.style.color="white",children:["Close ",v.jsx(jc,{})]}),v.jsxs("nav",{style:{maxWidth:"600px",overflowY:"auto",maxHeight:"70vh"},children:[c.slice(0,2).map((f,m)=>v.jsx(G.a,{href:f.href,onClick:p=>h(p,f.href),initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{delay:.1+m*.1},whileTap:{scale:.95,x:20,transition:{duration:.1}},style:{display:"block",fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:"900",color:"white",marginBottom:"1.5rem",textDecoration:"none",fontFamily:"var(--font-display)",transition:"all 0.3s",padding:"0.5rem 0",position:"relative"},onMouseOver:p=>{p.currentTarget.style.paddingLeft="2rem"},onMouseOut:p=>{p.currentTarget.style.paddingLeft="0"},children:f.name},f.name)),v.jsxs(G.a,{href:"/Megh_resume.pdf",target:"_blank",rel:"noopener noreferrer",initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{delay:.3},whileTap:{scale:.95,x:20,transition:{duration:.1}},style:{display:"flex",alignItems:"center",gap:"1rem",fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:"900",color:"white",marginBottom:"1.5rem",textDecoration:"none",fontFamily:"var(--font-display)",transition:"all 0.3s",padding:"1rem 2rem",position:"relative",background:"rgba(255, 255, 255, 0.05)",border:"2px solid rgba(255, 255, 255, 0.2)",borderRadius:"12px",marginLeft:"-2rem",width:"calc(100% + 2rem)"},onMouseOver:f=>{f.currentTarget.style.background="rgba(255, 255, 255, 0.1)",f.currentTarget.style.borderColor="white"},onMouseOut:f=>{f.currentTarget.style.background="rgba(255, 255, 255, 0.05)",f.currentTarget.style.borderColor="rgba(255, 255, 255, 0.2)"},children:["RESUME ",v.jsx(iS,{style:{fontSize:"1.5rem"}})]}),c.slice(2).map((f,m)=>v.jsx(G.a,{href:f.href,onClick:p=>h(p,f.href),initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{delay:.4+m*.1},whileTap:{scale:.95,x:20,transition:{duration:.1}},style:{display:"block",fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:"900",color:"white",marginBottom:"1.5rem",textDecoration:"none",fontFamily:"var(--font-display)",transition:"all 0.3s",padding:"0.5rem 0",position:"relative"},onMouseOver:p=>{p.currentTarget.style.paddingLeft="2rem"},onMouseOut:p=>{p.currentTarget.style.paddingLeft="0"},children:f.name},f.name))]}),v.jsxs(G.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.8},style:{position:"absolute",bottom:"3rem",left:"4rem",display:"flex",gap:"2rem"},children:[v.jsx(G.a,{href:"https://github.com/megh06",target:"_blank",rel:"noopener noreferrer",whileHover:{scale:1.2,rotate:5},whileTap:{scale:.9,rotate:-5},style:{color:"white",fontSize:"1.5rem",transition:"color 0.3s"},onMouseOver:f=>f.currentTarget.style.color="var(--text-secondary)",onMouseOut:f=>f.currentTarget.style.color="white",children:v.jsx(hr,{})}),v.jsx(G.a,{href:"https://www.linkedin.com/in/megh-dave-4a2227314/",target:"_blank",rel:"noopener noreferrer",whileHover:{scale:1.2,rotate:-5},whileTap:{scale:.9,rotate:5},style:{color:"white",fontSize:"1.5rem",transition:"color 0.3s"},onMouseOver:f=>f.currentTarget.style.color="var(--text-secondary)",onMouseOut:f=>f.currentTarget.style.color="white",children:v.jsx(Sy,{})})]}),v.jsx(G.div,{initial:{opacity:0,scale:0},animate:{opacity:.1,scale:1},transition:{delay:.5},style:{position:"absolute",bottom:"3rem",right:"3rem",width:"200px",height:"200px",borderRadius:"50%",background:"radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%)",filter:"blur(40px)",pointerEvents:"none"}})]})})]})},cS=()=>{const i="Innovating practical, scalable solutions that make technology work effortlessly in the real world.",[l,r]=L.useState(""),[o,c]=L.useState(0),[h,f]=L.useState(!0),[m,p]=L.useState(!1);L.useEffect(()=>{if(o{r(x=>x+i[o]),c(x=>x+1)},30);return()=>clearTimeout(y)}},[o,i]),L.useEffect(()=>{const y=setInterval(()=>{f(x=>!x)},500);return()=>clearInterval(y)},[]),L.useEffect(()=>{const y=()=>{p(window.scrollY<100)};return y(),window.addEventListener("scroll",y),()=>window.removeEventListener("scroll",y)},[]);const g=[{name:"AI",level:90},{name:"Machine Learning",level:85},{name:"Deep Learning",level:80},{name:"Data Science",level:75},{name:"Full Stack Dev",level:70}];return v.jsxs("section",{id:"home",className:"section",style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",position:"relative",overflow:"hidden"},children:[v.jsx("div",{className:"dot-pattern",style:{position:"absolute",inset:0,opacity:.2}}),v.jsx(fa,{children:m&&v.jsxs(G.a,{href:"/Megh_resume.pdf",download:!0,initial:{opacity:0,x:50},animate:{opacity:1,x:0},exit:{opacity:0,x:50},whileHover:{scale:1.05,y:-2},whileTap:{scale:.95},style:{position:"fixed",top:"2rem",right:"2rem",zIndex:100,padding:"0.875rem 1.5rem",background:"rgba(255, 255, 255, 0.15)",backdropFilter:"blur(10px)",border:"2px solid rgba(255, 255, 255, 0.3)",borderRadius:"30px",color:"white",fontSize:"0.875rem",fontWeight:"700",fontFamily:"var(--font-display)",textTransform:"uppercase",letterSpacing:"0.05em",display:"flex",alignItems:"center",gap:"0.5rem",cursor:"pointer",textDecoration:"none"},children:[v.jsx(G.div,{animate:{y:[0,-3,0]},transition:{duration:1.5,repeat:1/0,ease:"easeInOut"},children:v.jsx(eS,{})}),"Resume"]})}),v.jsx("div",{className:"container",style:{position:"relative",zIndex:1},children:v.jsxs(G.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:1,ease:"easeOut"},style:{textAlign:"center",maxWidth:"900px",margin:"0 auto"},children:[v.jsx(G.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3,duration:.8},style:{fontSize:"1.125rem",color:"white",marginBottom:"1.5rem",fontWeight:"700",letterSpacing:"0.2em",textTransform:"uppercase",fontFamily:"var(--font-display)"},children:"AI/Ml Researcher & Developer"}),v.jsx(G.h1,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.5,duration:1,type:"spring"},style:{fontSize:"clamp(3.5rem, 10vw, 7rem)",fontWeight:"900",lineHeight:1,marginBottom:"2rem",fontFamily:"var(--font-display)",letterSpacing:"-0.02em"},children:v.jsx("span",{className:"animated-gradient",style:{backgroundClip:"text",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",display:"inline-block",textShadow:"0 0 50px rgba(255, 255, 255, 0.3)"},children:"MEGH DAVE"})}),v.jsx(G.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.8,duration:.8},style:{fontSize:"1.25rem",color:"var(--text-secondary)",marginBottom:"3rem",lineHeight:"1.8",maxWidth:"700px",margin:"0 auto 3rem",minHeight:"4.5rem",display:"flex",alignItems:"center",justifyContent:"center"},children:v.jsxs("span",{children:[l,v.jsx(G.span,{animate:{opacity:h?1:0},style:{borderRight:"2px solid white",marginLeft:"2px"},children:" "})]})}),v.jsxs(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1,duration:.8},style:{display:"flex",gap:"1rem",justifyContent:"center",flexWrap:"wrap",marginBottom:"4rem"},children:[v.jsx(G.a,{href:"#projects",className:"btn btn-primary",animate:{boxShadow:["0 0 20px rgba(255, 255, 255, 0.3)","0 0 40px rgba(255, 255, 255, 0.5)","0 0 20px rgba(255, 255, 255, 0.3)"]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},whileHover:{scale:1.05,boxShadow:"0 0 60px rgba(255, 255, 255, 0.6)"},whileTap:{scale:.95},children:"View Projects"}),v.jsx(G.a,{href:"#contact",className:"btn btn-outline",whileHover:{scale:1.05,borderColor:"white",backgroundColor:"rgba(255, 255, 255, 0.1)"},whileTap:{scale:.95},children:"Contact"})]}),v.jsx(G.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1.2,duration:.8},style:{display:"flex",gap:"1rem",justifyContent:"center",flexWrap:"wrap"},children:g.map((y,x)=>v.jsxs(G.div,{initial:{opacity:0,scale:0},animate:{opacity:1,scale:1},transition:{delay:1.3+x*.1,type:"spring"},whileHover:{scale:1.1,y:-5},style:{position:"relative",padding:"0.625rem 1.5rem",background:"rgba(255, 255, 255, 0.1)",border:"2px solid rgba(255, 255, 255, 0.3)",borderRadius:"25px",cursor:"pointer",overflow:"hidden"},children:[v.jsx(G.div,{initial:{width:"0%"},animate:{width:`${y.level}%`},transition:{delay:1.5+x*.1,duration:1,ease:"easeOut"},style:{position:"absolute",top:0,left:0,height:"100%",background:"linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%)",zIndex:0}}),v.jsx("span",{style:{position:"relative",zIndex:1,fontSize:"0.875rem",color:"white",fontWeight:"700",fontFamily:"var(--font-display)",textTransform:"uppercase",letterSpacing:"0.05em"},children:y.name}),v.jsxs(G.div,{initial:{opacity:0},whileHover:{opacity:1},style:{position:"absolute",bottom:"-1.75rem",left:"50%",transform:"translateX(-50%)",background:"rgba(0, 0, 0, 0.9)",padding:"0.25rem 0.75rem",borderRadius:"12px",border:"1px solid rgba(255, 255, 255, 0.3)",fontSize:"0.75rem",color:"white",fontWeight:"600",whiteSpace:"nowrap",pointerEvents:"none"},children:[y.level,"% Proficiency"]})]},y.name))})]})}),v.jsxs(G.div,{animate:{y:[0,15,0],opacity:[.6,1,.6]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},style:{position:"absolute",bottom:"3rem",left:"50%",transform:"translateX(-50%)",display:"flex",flexDirection:"column",alignItems:"center",gap:"0.5rem",cursor:"pointer"},onClick:()=>document.getElementById("about")?.scrollIntoView({behavior:"smooth"}),whileHover:{scale:1.1},children:[v.jsx("span",{style:{fontSize:"0.75rem",color:"white",fontFamily:"var(--font-display)",fontWeight:"600",letterSpacing:"0.1em"},children:"SCROLL"}),v.jsx(G.div,{animate:{y:[0,5,0]},transition:{duration:1.5,repeat:1/0,ease:"easeInOut"},children:v.jsx($3,{style:{color:"white",fontSize:"1.25rem"}})})]})]})},Lp=({value:i,duration:l=2500})=>{const r=L.useRef(null),o=q3(r,{once:!0,amount:.5}),[c,h]=L.useState(0),f=parseFloat(i.toString().replace(/[^0-9.]/g,""))||0,m=i.toString().replace(/[0-9.]/g,"");return L.useEffect(()=>{if(o){let p=null,g;const y=x=>{p||(p=x);const T=x-p,w=Math.min(T/l,1),H=(1-Math.pow(1-w,4))*f;h(f%1!==0?H.toFixed(2):Math.floor(H)),w<1&&(g=requestAnimationFrame(y))};return g=requestAnimationFrame(y),()=>cancelAnimationFrame(g)}},[o,f,l]),v.jsxs("span",{ref:r,children:[c,m]})},fS=()=>{const[i,l]=L.useState("Overview"),r=[{category:"Languages",items:["Python","JavaScript","C++","C"]},{category:"Soft Skills",items:["Problem Solving","Leadership","Team Work","Communication"]},{category:"AI/ML",items:["Deep Learning","NLP","Computer Vision","Generative AI","TensorFlow"]},{category:"Web Dev",items:["React","Node.js","Express","Tailwind CSS","Flask"]},{category:"DevOps",items:["CI/CD","Git","GitHub","Docker","Kubernetes"]},{category:"Database",items:["MongoDB","MySQL","PostgreSQL","Pinecone","ChromaDB"]}],o=[{id:"Overview",label:"Overview"},{id:"education",label:"Education"},{id:"achievements",label:"Achievements"}],c=L.useRef(null),[h,f]=L.useState(!1),[m,p]=L.useState(0);L.useEffect(()=>{const y=c.current;if(!y||h)return;let x;const T=.5,w=()=>{if(y){y.scrollLeft+y.clientWidth>=y.scrollWidth-1?y.scrollLeft=0:y.scrollLeft+=T;const V=324,H=y.scrollLeft+y.clientWidth/2,Y=Math.round(H/V);p(Y%r.length),x=requestAnimationFrame(w)}};return x=requestAnimationFrame(w),()=>{x&&cancelAnimationFrame(x)}},[h,r.length]);const g=y=>{const x=c.current;if(x){f(!0);const T=324,w=x.clientWidth,V=y*T-w/2+150;x.scrollTo({left:Math.max(0,V),behavior:"smooth"}),p(y),setTimeout(()=>{f(!1)},3e3)}};return v.jsxs("section",{id:"about",className:"section",style:{background:"transparent",paddingTop:"5rem",paddingBottom:"5rem"},children:[v.jsx("style",{children:` + .skills-scroll-container::-webkit-scrollbar { display: none; } + .skills-scroll-container { -ms-overflow-style: none; scrollbar-width: none; } + `}),v.jsx("div",{className:"container",children:v.jsxs(G.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.8,ease:"easeOut"},viewport:{once:!0},children:[v.jsx("h2",{className:"section-title",style:{marginBottom:"3rem"},children:"About Me"}),v.jsxs("div",{style:{display:"grid",gridTemplateColumns:"2fr 1fr",gap:"2rem",marginBottom:"5rem",alignItems:"start"},className:"about-grid",children:[v.jsxs("div",{className:"glass-card",style:{padding:"2.5rem"},children:[v.jsx("div",{style:{display:"flex",gap:"0.75rem",marginBottom:"2.5rem",borderBottom:"1px solid rgba(255, 255, 255, 0.1)",paddingBottom:"1rem",flexWrap:"wrap"},children:o.map(y=>v.jsx("button",{onClick:()=>l(y.id),style:{padding:"0.875rem 1.75rem",background:i===y.id?"rgba(255, 255, 255, 0.15)":"transparent",border:i===y.id?"1px solid rgba(255, 255, 255, 0.3)":"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"10px",color:i===y.id?"white":"var(--text-secondary)",cursor:"pointer",fontSize:"0.9375rem",fontWeight:i===y.id?"600":"500",transition:"all 0.3s ease",fontFamily:"var(--font-body)",flex:"1 1 auto",minWidth:"fit-content"},onMouseEnter:x=>{i!==y.id&&(x.target.style.background="rgba(255, 255, 255, 0.05)",x.target.style.borderColor="rgba(255, 255, 255, 0.2)")},onMouseLeave:x=>{i!==y.id&&(x.target.style.background="transparent",x.target.style.borderColor="rgba(255, 255, 255, 0.1)")},children:y.label},y.id))}),v.jsxs(G.div,{initial:{opacity:0,y:20,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-20,scale:.98},transition:{duration:.6,ease:[.4,0,.2,1]},style:{minHeight:"200px"},children:[i==="Overview"&&v.jsxs("div",{children:[v.jsx(G.p,{style:{color:"var(--text-secondary)",lineHeight:"1.8",marginBottom:"1rem"},initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1},children:"I'm currently pursuing a B.Tech in Computer Science and Engineering (Data Science) at D.J. Sanghvi College of Engineering. I like building practical machine learning solutions and understanding how intelligent systems can be used to solve real problems."}),v.jsx(G.p,{style:{color:"var(--text-secondary)",lineHeight:"1.8",marginBottom:"1rem"},initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},children:"I have worked on medical image preprocessing, document automation, data analytics, and projects in fintech, law, and agriculture."}),v.jsx(G.p,{style:{color:"var(--text-secondary)",lineHeight:"1.8"},initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3},children:"I also enjoy learning through research reading papers, exploring different approaches, and trying out methods to understand what works best. I prefer working end-to-end, from understanding the problem to creating a working and useful solution."})]}),i==="education"&&v.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1.5rem"},children:[v.jsxs(G.div,{style:{display:"flex",alignItems:"start",gap:"1rem"},initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.5,delay:.1},whileHover:{scale:1.02,transition:{duration:.2}},children:[v.jsx(G.div,{style:{padding:"0.75rem",background:"rgba(255, 255, 255, 0.1)",borderRadius:"8px",border:"1px solid rgba(255, 255, 255, 0.2)",flexShrink:0},whileHover:{background:"rgba(255, 255, 255, 0.15)",rotate:[0,-10,10,0],transition:{duration:.5}},children:v.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",style:{color:"white"},children:[v.jsx("path",{d:"M22 10v6M2 10l10-5 10 5-10 5z"}),v.jsx("path",{d:"M6 12v5c3 3 9 3 12 0v-5"})]})}),v.jsxs("div",{style:{flex:1},children:[v.jsx("h4",{style:{color:"white",fontSize:"1rem",fontWeight:"600",marginBottom:"0.375rem"},children:"B.Tech in CSE (Data Science)"}),v.jsx("p",{style:{color:"var(--text-secondary)",fontSize:"0.875rem",marginBottom:"0.25rem"},children:"Dwarkadas J. Sanghvi College of Engineering"}),v.jsx("p",{style:{color:"var(--text-secondary)",fontSize:"0.8125rem",marginBottom:"0.75rem"},children:"2023 - 2027"}),v.jsx("div",{style:{display:"inline-block",padding:"0.375rem 0.875rem",background:"rgba(255, 255, 255, 0.1)",border:"1px solid rgba(255, 255, 255, 0.2)",borderRadius:"6px"},children:v.jsx("span",{style:{color:"white",fontSize:"0.875rem",fontWeight:"600"},children:"CGPA: 8.93"})})]})]}),v.jsxs(G.div,{style:{display:"flex",alignItems:"start",gap:"1rem"},initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.5,delay:.25},whileHover:{scale:1.02,transition:{duration:.2}},children:[v.jsx(G.div,{style:{padding:"0.75rem",background:"rgba(255, 255, 255, 0.1)",borderRadius:"8px",border:"1px solid rgba(255, 255, 255, 0.2)",flexShrink:0},whileHover:{background:"rgba(255, 255, 255, 0.15)",rotate:[0,-10,10,0],transition:{duration:.5}},children:v.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",style:{color:"white"},children:[v.jsx("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),v.jsx("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"})]})}),v.jsxs("div",{style:{flex:1},children:[v.jsx("h4",{style:{color:"white",fontSize:"1rem",fontWeight:"600",marginBottom:"0.375rem"},children:"Higher Secondary Certificate (HSC)"}),v.jsx("p",{style:{color:"var(--text-secondary)",fontSize:"0.875rem",marginBottom:"0.75rem"},children:"Dixit Rd Jr College"}),v.jsx("div",{style:{display:"inline-block",padding:"0.375rem 0.875rem",background:"rgba(255, 255, 255, 0.1)",border:"1px solid rgba(255, 255, 255, 0.2)",borderRadius:"6px"},children:v.jsx("span",{style:{color:"white",fontSize:"0.875rem",fontWeight:"600"},children:"78.00%"})})]})]}),v.jsxs(G.div,{style:{display:"flex",alignItems:"start",gap:"1rem"},initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.5,delay:.4},whileHover:{scale:1.02,transition:{duration:.2}},children:[v.jsx(G.div,{style:{padding:"0.75rem",background:"rgba(255, 255, 255, 0.1)",borderRadius:"8px",border:"1px solid rgba(255, 255, 255, 0.2)",flexShrink:0},whileHover:{background:"rgba(255, 255, 255, 0.15)",rotate:[0,-10,10,0],transition:{duration:.5}},children:v.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",style:{color:"white"},children:[v.jsx("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),v.jsx("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"})]})}),v.jsxs("div",{style:{flex:1},children:[v.jsx("h4",{style:{color:"white",fontSize:"1rem",fontWeight:"600",marginBottom:"0.375rem"},children:"Secondary School Certificate (SSC)"}),v.jsx("p",{style:{color:"var(--text-secondary)",fontSize:"0.875rem",marginBottom:"0.75rem"},children:"Dominic Savio High School"}),v.jsx("div",{style:{display:"inline-block",padding:"0.375rem 0.875rem",background:"rgba(255, 255, 255, 0.1)",border:"1px solid rgba(255, 255, 255, 0.2)",borderRadius:"6px"},children:v.jsx("span",{style:{color:"white",fontSize:"0.875rem",fontWeight:"600"},children:"82.20%"})})]})]})]}),i==="achievements"&&v.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[v.jsxs(G.div,{style:{padding:"1rem",background:"rgba(255, 255, 255, 0.05)",borderRadius:"8px",border:"1px solid rgba(255, 255, 255, 0.1)",display:"flex",alignItems:"start",gap:"1rem"},initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.5,delay:.1},whileHover:{scale:1.02,background:"rgba(255, 255, 255, 0.08)",transition:{duration:.2}},children:[v.jsx(G.div,{style:{padding:"0.5rem",background:"rgba(255, 255, 255, 0.1)",borderRadius:"6px",border:"1px solid rgba(255, 255, 255, 0.2)",flexShrink:0},whileHover:{rotate:[0,-15,15,0],scale:1.1,transition:{duration:.5}},children:v.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",children:[v.jsx("circle",{cx:"12",cy:"8",r:"7"}),v.jsx("path",{d:"M8.21 13.89L7 23l5-3 5 3-1.21-9.12"})]})}),v.jsxs("div",{children:[v.jsx("h4",{style:{color:"white",fontSize:"1rem",fontWeight:"600",marginBottom:"0.25rem"},children:"2nd Runner-Up"}),v.jsx("p",{style:{color:"var(--text-secondary)",fontSize:"0.875rem"},children:"Co-Code Hackathon (Hybrid Mode) at DJ Sanghvi College"})]})]}),v.jsxs(G.div,{style:{padding:"1rem",background:"rgba(255, 255, 255, 0.05)",borderRadius:"8px",border:"1px solid rgba(255, 255, 255, 0.1)",display:"flex",alignItems:"start",gap:"1rem"},initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.5,delay:.25},whileHover:{scale:1.02,background:"rgba(255, 255, 255, 0.08)",transition:{duration:.2}},children:[v.jsx(G.div,{style:{padding:"0.5rem",background:"rgba(255, 255, 255, 0.1)",borderRadius:"6px",border:"1px solid rgba(255, 255, 255, 0.2)",flexShrink:0},whileHover:{rotate:[0,-15,15,0],scale:1.1,transition:{duration:.5}},children:v.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",children:[v.jsx("circle",{cx:"12",cy:"8",r:"7"}),v.jsx("path",{d:"M8.21 13.89L7 23l5-3 5 3-1.21-9.12"})]})}),v.jsxs("div",{children:[v.jsx("h4",{style:{color:"white",fontSize:"1rem",fontWeight:"600",marginBottom:"0.25rem"},children:"2nd Runner-Up"}),v.jsx("p",{style:{color:"var(--text-secondary)",fontSize:"0.875rem"},children:"DJS Sanshodhan 2025"})]})]})]})]},i)]}),v.jsx("div",{className:"glass-card",style:{padding:"2rem",display:"flex",flexDirection:"column",justifyContent:"center",minHeight:"100%"},children:v.jsx(G.div,{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"0",height:"100%"},initial:{opacity:0},whileInView:{opacity:1},transition:{duration:.6},viewport:{once:!0},children:[{label:"Projects",value:"5+",delay:0},{label:"CGPA",value:"8.93",delay:.1},{label:"Experience",value:"1+ yrs",delay:.2},{label:"Students Mentored",value:"40+",delay:.3}].map((y,x)=>v.jsxs(G.div,{style:{textAlign:"center",padding:"1.75rem 1rem",borderRight:x%2===0?"1px solid rgba(255, 255, 255, 0.1)":"none",borderBottom:x<2?"1px solid rgba(255, 255, 255, 0.1)":"none",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",position:"relative",overflow:"hidden"},initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},transition:{duration:.5,delay:y.delay,ease:"easeOut"},whileHover:{scale:1.05,backgroundColor:"rgba(255, 255, 255, 0.05)",transition:{duration:.2}},viewport:{once:!0},children:[v.jsx(G.div,{style:{fontSize:"3rem",fontWeight:"800",background:"linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",fontFamily:"var(--font-display)",marginBottom:"0.75rem",lineHeight:"1",letterSpacing:"-0.02em"},whileHover:{scale:1.1,transition:{duration:.3}},children:y.value.includes("yrs")?v.jsxs(v.Fragment,{children:[v.jsx(Lp,{value:"1",duration:1500}),v.jsx("span",{children:"+ yrs"})]}):v.jsx(Lp,{value:y.value,duration:2e3})}),v.jsx(G.div,{style:{fontSize:"0.75rem",color:"var(--text-secondary)",textTransform:"uppercase",letterSpacing:"0.1em",fontWeight:"600",lineHeight:"1.4",maxWidth:"120px"},initial:{opacity:0},whileInView:{opacity:1},transition:{delay:y.delay+.2,duration:.5},viewport:{once:!0},children:y.label})]},x))})})]}),v.jsxs("div",{children:[v.jsx(G.h3,{style:{fontSize:"2rem",marginBottom:"3rem",color:"var(--text-primary)",fontFamily:"var(--font-display)",textAlign:"center",fontWeight:"700",textTransform:"uppercase",letterSpacing:"0.05em"},initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:v.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"0.75rem"},children:[v.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[v.jsx("path",{d:"M12 2L2 7l10 5 10-5-10-5z"}),v.jsx("path",{d:"M2 17l10 5 10-5M2 12l10 5 10-5"})]}),"My Skills"]})}),v.jsx("div",{ref:c,className:"skills-scroll-container no-scrollbar",onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),style:{display:"flex",gap:"1.5rem",overflowX:"auto",paddingBottom:"1.5rem",scrollSnapType:"x mandatory",padding:"2rem 0.5rem",marginBottom:"2rem"},children:r.map((y,x)=>{const T=m===x;return v.jsxs(G.div,{className:"glass-card",animate:{scale:T?1.08:1,background:T?"linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%)":"linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%)",borderColor:T?"rgba(255, 255, 255, 0.4)":"rgba(255, 255, 255, 0.15)",boxShadow:T?"0 20px 60px rgba(255, 255, 255, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1)":"0 8px 32px rgba(0, 0, 0, 0.3)"},transition:{duration:.4,ease:"easeOut"},style:{padding:"2.5rem",border:"1px solid rgba(255, 255, 255, 0.15)",position:"relative",overflow:"hidden",minWidth:"300px",scrollSnapAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",cursor:"pointer"},initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},whileHover:{y:-12,scale:1.1,background:"linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%)",borderColor:"rgba(255, 255, 255, 0.4)",boxShadow:"0 20px 60px rgba(255, 255, 255, 0.2)",transition:{duration:.3}},onClick:()=>g(x),children:[v.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"0.75rem",marginBottom:"1.5rem",width:"100%"},children:[v.jsxs("div",{style:{width:"48px",height:"48px",borderRadius:"12px",background:"rgba(255, 255, 255, 0.1)",border:"1px solid rgba(255, 255, 255, 0.2)",display:"flex",alignItems:"center",justifyContent:"center"},children:[y.category==="Languages"&&v.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",children:[v.jsx("path",{d:"M4 7h16M4 12h16M4 17h16"}),v.jsx("path",{d:"M7 3v18M17 3v18"})]}),y.category==="Soft Skills"&&v.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",children:[v.jsx("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),v.jsx("circle",{cx:"9",cy:"7",r:"4"}),v.jsx("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75"})]}),y.category==="AI/ML"&&v.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",children:[v.jsx("circle",{cx:"12",cy:"12",r:"3"}),v.jsx("path",{d:"M12 1v6m0 6v6M5.6 5.6l4.2 4.2m4.2 4.2l4.2 4.2M1 12h6m6 0h6M5.6 18.4l4.2-4.2m4.2-4.2l4.2-4.2"})]}),y.category==="Web Dev"&&v.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("path",{d:"M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})]}),y.category==="DevOps"&&v.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",children:[v.jsx("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),v.jsx("path",{d:"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"}),v.jsx("path",{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"})]}),y.category==="Database"&&v.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",children:[v.jsx("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),v.jsx("path",{d:"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"}),v.jsx("path",{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"}),v.jsx("path",{d:"M3 12v7c0 1.66 4 3 9 3s9-1.34 9-3v-7"})]})]}),v.jsx("h4",{style:{fontSize:"1.25rem",fontWeight:"700",color:"white",fontFamily:"var(--font-display)",letterSpacing:"0.05em"},children:y.category})]}),v.jsx("ul",{style:{display:"flex",flexDirection:"column",gap:"0.875rem",width:"100%",alignItems:"flex-start",paddingLeft:"1rem"},children:y.items.map((w,V)=>v.jsxs(G.li,{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.625rem",fontSize:"1rem",color:"var(--text-secondary)",fontWeight:"400",transition:"all 0.2s ease"},initial:{opacity:0,x:-10},whileInView:{opacity:1,x:0},transition:{duration:.3,delay:x*.1+V*.05},viewport:{once:!0},whileHover:{x:5,color:"white",transition:{duration:.2}},children:[v.jsx("span",{style:{width:"5px",height:"5px",background:"var(--accent-white)",borderRadius:"50%",opacity:.6,flexShrink:0}}),w]},V))})]},x)})}),v.jsx("div",{style:{display:"flex",justifyContent:"center",gap:"0.75rem",paddingTop:"1rem"},children:r.map((y,x)=>v.jsx(G.button,{onClick:()=>g(x),animate:{scale:m===x?1.2:1,backgroundColor:m===x?"rgba(255, 255, 255, 0.8)":"rgba(255, 255, 255, 0.3)",width:m===x?"32px":"8px"},whileHover:{scale:1.3,backgroundColor:"rgba(255, 255, 255, 0.6)"},style:{height:"8px",borderRadius:"4px",border:"none",cursor:"pointer",transition:"all 0.3s ease"},"aria-label":`Go to ${r[x].category}`},x))})]})]})})]})},dS=()=>{const i=[{title:"Research Intern",company:"IIT Bombay",period:"2025 - Present",description:"Working on Physics-Informed Neural Network (PINN)–based models for accurate estimation of transpiration across different plant species. The focus is on embedding biological process constraints into the model to achieve precise, plant-specific transpiration calculations under varying environmental conditions, rather than prioritizing broad generalization.",skills:["Deep Learning","Reinforcement Learning"],icon:W3},{title:"ML Mentor",company:"DJS Compute",period:"2025 - Present",description:"Mentoring juniors in Machine Learning and AI by guiding them through core concepts, practical projects, and best practices. This includes helping them understand algorithms, build hands-on applications, improve their research or coding skills, and develop confidence in real-world problem-solving.",skills:["ML","Deep Learning","AI"],icon:I3}];return v.jsx("section",{id:"experience",className:"section",style:{background:"transparent"},children:v.jsx("div",{className:"container",children:v.jsxs(G.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[v.jsx("h2",{className:"section-title",children:"Experience"}),v.jsxs("div",{style:{maxWidth:"900px",margin:"0 auto",position:"relative"},children:[v.jsx("div",{style:{position:"absolute",left:"1.375rem",top:"2rem",bottom:"2rem",width:"2px",background:"linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%)",zIndex:0}}),i.map((l,r)=>{const o=l.icon;return v.jsxs(G.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},transition:{duration:.5,delay:r*.1},viewport:{once:!0},whileHover:{scale:1.02,x:10,transition:{duration:.3}},className:"glass-card",style:{marginBottom:r===i.length-1?"0":"2rem",position:"relative",paddingLeft:"3rem",borderLeft:"3px solid transparent",borderImage:"linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(147, 51, 234, 0.8) 100%)",borderImageSlice:1,cursor:"pointer",transition:"all 0.3s ease"},children:[v.jsx("div",{style:{position:"absolute",left:"0.75rem",top:"2rem",width:"24px",height:"24px",background:"linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(147, 51, 234, 0.8) 100%)",borderRadius:"50%",boxShadow:"0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 20px rgba(59, 130, 246, 0.3)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1},children:v.jsx(o,{style:{fontSize:"0.75rem",color:"white"}})}),v.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"1rem",flexWrap:"wrap",gap:"0.5rem"},children:[v.jsxs("div",{children:[v.jsx("h3",{style:{fontSize:"1.25rem",color:"var(--text-primary)",marginBottom:"0.25rem",fontWeight:"700",fontFamily:"var(--font-display)",textTransform:"uppercase"},children:l.title}),v.jsx("p",{style:{color:"rgba(255, 255, 255, 0.9)",fontSize:"1rem",fontWeight:"600"},children:l.company})]}),v.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"0.5rem",color:"rgba(255, 255, 255, 0.9)",fontSize:"0.875rem",padding:"0.5rem 1rem",background:"rgba(59, 130, 246, 0.15)",border:"1px solid rgba(59, 130, 246, 0.3)",borderRadius:"8px",fontWeight:"600",fontFamily:"var(--font-display)"},children:[v.jsx(P3,{style:{fontSize:"0.875rem"}}),l.period]})]}),v.jsx("p",{style:{color:"var(--text-secondary)",lineHeight:"1.7",marginBottom:"1.5rem"},children:l.description}),v.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.5rem"},children:l.skills.map((c,h)=>v.jsx(G.span,{whileHover:{scale:1.05,y:-2},style:{padding:"0.375rem 0.875rem",background:"rgba(255, 255, 255, 0.1)",border:"1px solid rgba(255, 255, 255, 0.2)",borderRadius:"6px",fontSize:"0.8125rem",color:"rgba(255, 255, 255, 0.8)",fontWeight:"600",cursor:"default",transition:"all 0.2s"},children:c},h))})]},r)})]})]})})})},hS=()=>{const[i,l]=L.useState("All"),r=[{title:"CyberSecure",description:"Full intrusion-detection pipeline analyzing 1M+ network logs with 99%+ recall. Features CSV/PCAP ingestion, real-time Wireshark capture, anomaly detection dashboards, Merkle-tree blockchain for immutable logging, and GenAI-driven threat summaries.",tags:["Next.js","Merkle-tree","Scikit-learn","Groq"],category:"Full Stack",github:"https://github.com/KashishM05/redact_cybersecure.git",demo:"https://redact-cybersecure-tau.vercel.app/",featured:!0,image:"/cybersecure.jpg",gradient:"linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(147, 51, 234, 0.3) 100%)"},{title:"JigyasaAI",description:"Multimodal RAG chatbot for PDF documents. Upload PDFs and ask questions to retrieve both relevant images and text-based answers, combining visual and textual information for a complete interactive experience.",tags:["Python","CLIP Models","Cloudinary","ChromaDB","APIs","Streamlit"],category:"AI/ML",github:"https://github.com/MEGH06/JigyasaAI",demo:"https://jigyasaai.streamlit.app/",featured:!0,image:"/jigyasaa.jpg",gradient:"linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(5, 150, 105, 0.3) 100%)"},{title:"OOPSIDidntStudy",description:"Last-minute study platform with PanicNotes for auto-generating consolidated notes from multiple file types, CramBot for answering queries from notes, and Quizzard for creating tailored quizzes.",tags:["Python","NLP","APIs","React","FastAPI","Vercel","Streamlit"],category:"Full Stack",github:"https://github.com/ketan-2905/ed_app.git",demo:"https://co-code-frontend-web.vercel.app/",featured:!1,gradient:"linear-gradient(135deg, rgba(251, 146, 60, 0.3) 0%, rgba(249, 115, 22, 0.3) 100%)"},{title:"LawTune",description:"Finetuning the Gemma-2B model for legal tasks across 22 Indian languages using Unsloth and free Google Colab resources, while exploring different fine-tuning strategies and finding the right balance between LoRA and QLoRA",tags:["PyTorch","TensorFlow","Llora"],category:"AI",github:"https://github.com/MEGH06/LawTune",demo:"#",featured:!1,gradient:"linear-gradient(135deg, rgba(244, 63, 94, 0.3) 0%, rgba(225, 29, 72, 0.3) 100%)"},{title:"Potato Leaf Detection Model",description:"Neural network implementation for image classification with 99%+ accuracy on Plant datasets.",tags:["PyTorch","TensorFlow","CNN"],category:"ML",github:"https://github.com/MEGH06/Potato-leaf-detection",demo:"#",featured:!1,gradient:"linear-gradient(135deg, rgba(244, 63, 94, 0.3) 0%, rgba(225, 29, 72, 0.3) 100%)"}],o=["All","Full Stack","AI/ML","ML","AI"],c=i==="All"?r:r.filter(h=>h.category===i);return v.jsx("section",{id:"projects",className:"section",style:{background:"transparent"},children:v.jsx("div",{className:"container",children:v.jsxs(G.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[v.jsx("h2",{className:"section-title",children:"Projects"}),v.jsx(G.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.2},viewport:{once:!0},style:{display:"flex",gap:"0.75rem",justifyContent:"center",flexWrap:"wrap",marginBottom:"3rem"},children:o.map(h=>v.jsxs(G.button,{onClick:()=>l(h),whileHover:{scale:1.05,y:-2},whileTap:{scale:.95},style:{padding:"0.625rem 1.5rem",background:i===h?"rgba(255, 255, 255, 0.15)":"rgba(255, 255, 255, 0.05)",border:i===h?"2px solid rgba(255, 255, 255, 0.4)":"2px solid rgba(255, 255, 255, 0.1)",borderRadius:"25px",color:i===h?"white":"var(--text-secondary)",fontSize:"0.875rem",fontWeight:"700",fontFamily:"var(--font-display)",textTransform:"uppercase",letterSpacing:"0.05em",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.5rem",transition:"all 0.3s"},children:[v.jsx(aS,{style:{fontSize:"0.75rem"}}),h]},h))}),v.jsxs("div",{style:{marginBottom:"3rem"},children:[v.jsx("h3",{style:{fontSize:"1.5rem",color:"white",fontFamily:"var(--font-display)",fontWeight:"700",textTransform:"uppercase",letterSpacing:"0.05em",marginBottom:"2rem",textAlign:"center"},children:"Featured Projects"}),v.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(450px, 1fr))",gap:"2rem",marginBottom:"3rem"},children:c.filter(h=>h.featured).map((h,f)=>v.jsxs(G.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:f*.15},viewport:{once:!0},className:"glass-card",style:{display:"flex",flexDirection:"column",position:"relative",overflow:"hidden",padding:0},children:[v.jsx("div",{style:{height:"240px",background:h.gradient,position:"relative",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:h.image?v.jsx("img",{src:h.image,alt:h.title,style:{width:"100%",height:"100%",objectFit:"cover",objectPosition:"center"}}):v.jsxs(v.Fragment,{children:[v.jsx("div",{style:{position:"absolute",inset:0,backgroundImage:`linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px), + linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px)`,backgroundSize:"20px 20px",opacity:.3}}),v.jsxs("svg",{width:"80",height:"80",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"1.5",style:{opacity:.8},children:[v.jsx("path",{d:"M12 2L2 7l10 5 10-5-10-5z"}),v.jsx("path",{d:"M2 17l10 5 10-5M2 12l10 5 10-5"})]})]})}),v.jsxs("div",{style:{padding:"2rem"},children:[v.jsx("div",{style:{display:"inline-block",padding:"0.25rem 0.75rem",background:"rgba(255, 255, 255, 0.1)",border:"1px solid rgba(255, 255, 255, 0.3)",borderRadius:"12px",fontSize:"0.75rem",color:"white",fontWeight:"700",textTransform:"uppercase",letterSpacing:"0.05em",marginBottom:"1rem"},children:"⭐ Featured"}),v.jsx("h3",{style:{fontSize:"1.75rem",color:"var(--text-primary)",marginBottom:"1rem",fontFamily:"var(--font-display)",fontWeight:"700"},children:h.title}),v.jsx("p",{style:{color:"var(--text-secondary)",lineHeight:"1.7",marginBottom:"1.5rem",minHeight:"80px",fontSize:"0.9375rem"},children:h.description}),v.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.5rem",marginBottom:"1.5rem"},children:h.tags.map((m,p)=>v.jsx(G.span,{whileHover:{scale:1.05,y:-2},style:{padding:"0.375rem 0.875rem",background:"rgba(255, 255, 255, 0.1)",border:"1px solid rgba(255, 255, 255, 0.2)",borderRadius:"6px",fontSize:"0.8125rem",color:"rgba(255, 255, 255, 0.9)",fontWeight:"600",cursor:"default"},children:m},p))}),v.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",borderTop:"1px solid rgba(255, 255, 255, 0.1)",paddingTop:"1rem"},children:v.jsxs("div",{style:{display:"flex",gap:"1rem"},children:[v.jsxs(G.a,{href:h.github,target:"_blank",rel:"noopener noreferrer",whileHover:{scale:1.1},whileTap:{scale:.95},style:{display:"flex",alignItems:"center",gap:"0.5rem",color:"var(--text-secondary)",fontSize:"0.875rem",fontWeight:"600",padding:"0.5rem 1rem",background:"rgba(255, 255, 255, 0.05)",border:"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"6px",transition:"all 0.3s"},onMouseOver:m=>{m.currentTarget.style.color="white",m.currentTarget.style.borderColor="rgba(255, 255, 255, 0.3)"},onMouseOut:m=>{m.currentTarget.style.color="var(--text-secondary)",m.currentTarget.style.borderColor="rgba(255, 255, 255, 0.1)"},children:[v.jsx(hr,{})," Code"]}),v.jsxs(G.a,{href:h.demo,target:"_blank",rel:"noopener noreferrer",whileHover:{scale:1.1},whileTap:{scale:.95},style:{display:"flex",alignItems:"center",gap:"0.5rem",color:"black",fontSize:"0.875rem",fontWeight:"700",padding:"0.5rem 1rem",background:"white",borderRadius:"6px",transition:"all 0.3s"},onMouseOver:m=>{m.currentTarget.style.transform="translateY(-2px)",m.currentTarget.style.boxShadow="0 8px 16px rgba(255, 255, 255, 0.2)"},onMouseOut:m=>{m.currentTarget.style.transform="translateY(0)",m.currentTarget.style.boxShadow="none"},children:[v.jsx(mr,{})," Live"]})]})})]})]},f))})]}),c.filter(h=>!h.featured).length>0&&v.jsxs(v.Fragment,{children:[v.jsx("h3",{style:{fontSize:"1.5rem",color:"white",fontFamily:"var(--font-display)",fontWeight:"700",textTransform:"uppercase",letterSpacing:"0.05em",marginBottom:"2rem",textAlign:"center"},children:"More Projects"}),v.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(300px, 1fr))",gap:"1.5rem"},children:c.filter(h=>!h.featured).map((h,f)=>v.jsxs(G.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:f*.1},viewport:{once:!0},className:"glass-card",style:{display:"flex",flexDirection:"column",position:"relative",overflow:"hidden"},children:[v.jsx("h3",{style:{fontSize:"1.25rem",color:"var(--text-primary)",marginBottom:"0.75rem",fontFamily:"var(--font-display)",fontWeight:"600"},children:h.title}),v.jsx("p",{style:{color:"var(--text-secondary)",lineHeight:"1.7",marginBottom:"1.5rem",flex:1,fontSize:"0.9375rem"},children:h.description}),v.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.5rem",marginBottom:"1.5rem"},children:h.tags.slice(0,3).map((m,p)=>v.jsx("span",{style:{padding:"0.25rem 0.75rem",background:"rgba(255, 255, 255, 0.1)",border:"1px solid rgba(255, 255, 255, 0.2)",borderRadius:"6px",fontSize:"0.75rem",color:"rgba(255, 255, 255, 0.8)"},children:m},p))}),v.jsxs("div",{style:{display:"flex",gap:"1rem",marginTop:"auto"},children:[v.jsxs("a",{href:h.github,target:"_blank",rel:"noopener noreferrer",style:{display:"flex",alignItems:"center",gap:"0.5rem",color:"var(--text-secondary)",fontSize:"0.875rem",transition:"color 0.3s"},onMouseOver:m=>m.currentTarget.style.color="white",onMouseOut:m=>m.currentTarget.style.color="var(--text-secondary)",children:[v.jsx(hr,{})," Code"]}),v.jsxs("a",{href:h.demo,target:"_blank",rel:"noopener noreferrer",style:{display:"flex",alignItems:"center",gap:"0.5rem",color:"var(--text-secondary)",fontSize:"0.875rem",transition:"color 0.3s"},onMouseOver:m=>m.currentTarget.style.color="white",onMouseOut:m=>m.currentTarget.style.color="var(--text-secondary)",children:[v.jsx(mr,{})," Demo"]})]})]},f))})]})]})})})},mS=()=>{const i=[{title:"Accurate calculation of Transpiration using PINN-LSTM model",description:"Exploring the intersection of deep learning and physics by developing neural networks that incorporate physical laws and constraints. This research focuses on solving partial differential equations and modeling complex physical systems using data-driven approaches.",status:"Ongoing",tags:["LSTM","PINNs","PDEs","GANs"],link:"#",gradient:"linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%)"},{title:"Explainable ConvNeXt Ensemble for Cervical Cancer Detection",description:"Developing an ensemble-based cervical cancer detection system using ConvNeXt with SHAP and attention-driven explainability. This research focuses on improving the accuracy and interpretability of deep learning models for early and accurate detection of cervical cancer.",status:"Ongoing",tags:["ConvNeXt","XAI","ConvNext","Ensemble Learning"],link:"#",gradient:"linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%)"}];return v.jsx("section",{id:"research",className:"section",style:{background:"transparent"},children:v.jsx("div",{className:"container",children:v.jsxs(G.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[v.jsx("h2",{className:"section-title",children:"Ongoing Research"}),v.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(350px, 1fr))",gap:"2rem",marginBottom:"3rem"},children:i.map((l,r)=>v.jsxs(G.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:r*.15},viewport:{once:!0},className:"glass-card",style:{display:"flex",flexDirection:"column",position:"relative",overflow:"hidden"},children:[v.jsxs("div",{style:{position:"absolute",top:"1.5rem",right:"1.5rem",display:"inline-flex",alignItems:"center",gap:"0.5rem",padding:"0.5rem 1rem",background:"rgba(139, 92, 246, 0.2)",border:"1px solid rgba(139, 92, 246, 0.5)",borderRadius:"20px",fontSize:"0.75rem",color:"rgba(196, 181, 253, 1)",fontWeight:"700",textTransform:"uppercase",letterSpacing:"0.05em"},children:[v.jsx(lS,{style:{fontSize:"0.875rem"}}),l.status]}),v.jsxs("div",{style:{padding:"2rem"},children:[v.jsx("h3",{style:{fontSize:"1.5rem",color:"var(--text-primary)",marginBottom:"1rem",fontFamily:"var(--font-display)",fontWeight:"700",paddingRight:"6rem"},children:l.title}),v.jsx("p",{style:{color:"var(--text-secondary)",lineHeight:"1.7",marginBottom:"1.5rem",fontSize:"0.9375rem",minHeight:"100px"},children:l.description}),v.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.5rem",marginBottom:"1.5rem"},children:l.tags.map((o,c)=>v.jsx(G.span,{whileHover:{scale:1.05,y:-2},style:{padding:"0.375rem 0.875rem",background:"rgba(139, 92, 246, 0.1)",border:"1px solid rgba(139, 92, 246, 0.3)",borderRadius:"6px",fontSize:"0.8125rem",color:"rgba(196, 181, 253, 0.9)",fontWeight:"600",cursor:"default"},children:o},c))}),l.link!=="#"&&v.jsxs(G.a,{href:l.link,target:"_blank",rel:"noopener noreferrer",whileHover:{scale:1.05},whileTap:{scale:.95},style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",color:"white",fontSize:"0.875rem",fontWeight:"600",padding:"0.75rem 1.5rem",background:"rgba(139, 92, 246, 0.2)",border:"1px solid rgba(139, 92, 246, 0.4)",borderRadius:"8px",textDecoration:"none",transition:"all 0.3s"},onMouseOver:o=>{o.currentTarget.style.background="rgba(139, 92, 246, 0.3)",o.currentTarget.style.borderColor="rgba(139, 92, 246, 0.6)"},onMouseOut:o=>{o.currentTarget.style.background="rgba(139, 92, 246, 0.2)",o.currentTarget.style.borderColor="rgba(139, 92, 246, 0.4)"},children:["Learn More ",v.jsx(mr,{style:{fontSize:"0.75rem"}})]})]})]},r))})]})})})},pS=()=>{const i=[{title:"Explained Simply: What Are PINNs and Why They Matter",description:"A simple explanation of PINNs and their importance in the field of artificial intelligence.",link:"https://medium.com/@meghdave2006/explained-simply-what-are-pinns-and-why-they-matter-b9ad1f9a1c5c",date:"2025",readTime:"9 min read",image:"/pinn_medium.jpg"}];return v.jsx("section",{id:"reads",className:"section",style:{background:"transparent"},children:v.jsx("div",{className:"container",children:v.jsxs(G.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[v.jsx("h2",{className:"section-title",children:"Reads & Articles"}),v.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(300px, 1fr))",gap:"1.5rem",marginBottom:"3rem"},children:i.map((l,r)=>v.jsxs(G.a,{href:l.link,target:"_blank",rel:"noopener noreferrer",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:r*.1},viewport:{once:!0},className:"glass-card",style:{display:"flex",flexDirection:"column",textDecoration:"none",height:"100%",padding:0,overflow:"hidden"},children:[l.image&&v.jsx("div",{style:{height:"200px",overflow:"hidden",position:"relative"},children:v.jsx("img",{src:l.image,alt:l.title,style:{width:"100%",height:"100%",objectFit:"cover",objectPosition:"center"}})}),v.jsxs("div",{style:{padding:"2rem"},children:[v.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1rem"},children:[v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[v.jsx(F3,{style:{color:"white",fontSize:"1.25rem"}}),v.jsx("span",{style:{color:"var(--text-muted)",fontSize:"0.875rem"},children:l.date})]}),v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.375rem",color:"var(--text-muted)",fontSize:"0.8125rem"},children:[v.jsx(tS,{style:{fontSize:"0.75rem"}}),l.readTime]})]}),v.jsx("h3",{style:{fontSize:"1.25rem",color:"var(--text-primary)",marginBottom:"0.75rem",fontWeight:"600"},children:l.title}),v.jsx("p",{style:{color:"var(--text-secondary)",lineHeight:"1.7",marginBottom:"1.5rem",flex:1},children:l.description}),v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem",color:"white",fontSize:"0.875rem",fontWeight:"500"},children:["Read on Medium ",v.jsx(mr,{style:{fontSize:"0.75rem"}})]})]})]},r))}),v.jsx("div",{style:{textAlign:"center"},children:v.jsx("a",{href:"https://medium.com/@meghdave2006",target:"_blank",rel:"noopener noreferrer",className:"btn btn-outline",children:"View All Articles"})})]})})})},gS=()=>{const[i,l]=L.useState({name:"",email:"",service:"",message:""}),[r,o]=L.useState(""),[c,h]=L.useState(!1),[f,m]=L.useState({}),p=["Website Revamp","Smart Application Integration","Chatbot Integration","AI/ML Solutions","Data Analysis","Other"],g=500,y=V=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(V),x=V=>{V.preventDefault();const H=`Portfolio Inquiry: ${i.service}`,Y=`Name: ${i.name}%0D%0AEmail: ${i.email}%0D%0AService: ${i.service}%0D%0A%0D%0AMessage:%0D%0A${i.message}`;h(!0),setTimeout(()=>{window.location.href=`mailto:meghdave2006@gmail.com?subject=${H}&body=${Y}`,setTimeout(()=>h(!1),2e3)},1500)},T=V=>{const{name:H,value:Y}=V.target;l({...i,[H]:Y}),H==="email"&&Y?m(q=>({...q,email:!y(Y)})):H==="email"&&m(q=>({...q,email:!1})),H==="name"&&Y&&m(q=>({...q,name:Y.length<2}))},w=V=>{const H=i[V];return H?V==="email"?y(H)?v.jsx(tr,{style:{color:"#10b981",fontSize:"1rem"}}):v.jsx(jc,{style:{color:"#ef4444",fontSize:"1rem"}}):V==="name"?H.length>=2?v.jsx(tr,{style:{color:"#10b981",fontSize:"1rem"}}):v.jsx(jc,{style:{color:"#ef4444",fontSize:"1rem"}}):H?v.jsx(tr,{style:{color:"#10b981",fontSize:"1rem"}}):null:null};return v.jsx("section",{id:"contact",className:"section",style:{background:"transparent"},children:v.jsx("div",{className:"container",children:v.jsxs(G.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},style:{maxWidth:"1200px",margin:"0 auto"},children:[v.jsx("h2",{className:"section-title",style:{textAlign:"center"},children:"Get In Touch"}),v.jsx(fa,{children:c&&v.jsxs(G.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:9999,background:"rgba(0, 0, 0, 0.95)",padding:"3rem",borderRadius:"20px",border:"2px solid rgba(255, 255, 255, 0.3)",textAlign:"center"},children:[v.jsx(G.div,{animate:{scale:[0,1.2,1],rotate:[0,360]},transition:{duration:.6},children:v.jsx(tr,{style:{fontSize:"4rem",color:"#10b981",marginBottom:"1rem"}})}),v.jsx("h3",{style:{color:"white",fontSize:"1.5rem",fontFamily:"var(--font-display)"},children:"Message Sent!"})]})}),v.jsxs(G.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},transition:{duration:.6,delay:.2},viewport:{once:!0},style:{maxWidth:"600px",margin:"0 auto 4rem",padding:"3rem",background:"rgba(255, 255, 255, 0.05)",border:"2px solid rgba(255, 255, 255, 0.2)",borderRadius:"16px",boxShadow:"0 20px 60px rgba(0, 0, 0, 0.3)"},children:[v.jsx("h3",{style:{fontSize:"2rem",marginBottom:"2rem",textAlign:"center",color:"white",fontFamily:"var(--font-display)",fontWeight:"900",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Send Message"}),v.jsxs("form",{onSubmit:x,style:{display:"flex",flexDirection:"column",gap:"1.75rem"},children:[v.jsxs("div",{style:{position:"relative"},children:[v.jsx(G.label,{animate:{top:r==="name"||i.name?"-0.75rem":"0.875rem",fontSize:r==="name"||i.name?"0.75rem":"0.9375rem",color:r==="name"?"white":"var(--text-secondary)"},transition:{duration:.2},style:{position:"absolute",left:"1.25rem",background:r==="name"||i.name?"rgba(0, 0, 0, 0.9)":"transparent",padding:"0 0.5rem",fontWeight:"700",fontFamily:"var(--font-display)",textTransform:"uppercase",letterSpacing:"0.05em",pointerEvents:"none",zIndex:1},children:"Your Name"}),v.jsx("input",{type:"text",name:"name",value:i.name,onChange:T,onFocus:()=>o("name"),onBlur:()=>o(""),required:!0,style:{width:"100%",padding:"0.875rem 3rem 0.875rem 1.25rem",background:"rgba(0, 0, 0, 0.5)",border:`2px solid ${f.name?"#ef4444":r==="name"?"white":"rgba(255, 255, 255, 0.2)"}`,borderRadius:"8px",color:"white",fontSize:"0.9375rem",transition:"all 0.3s",fontFamily:"var(--font-main)"}}),v.jsx("div",{style:{position:"absolute",right:"1rem",top:"50%",transform:"translateY(-50%)"},children:v.jsx(fa,{children:w("name")&&v.jsx(G.div,{initial:{scale:0,rotate:-180},animate:{scale:1,rotate:0},exit:{scale:0,rotate:180},children:w("name")})})})]}),v.jsxs("div",{style:{position:"relative"},children:[v.jsx(G.label,{animate:{top:r==="email"||i.email?"-0.75rem":"0.875rem",fontSize:r==="email"||i.email?"0.75rem":"0.9375rem",color:r==="email"?"white":"var(--text-secondary)"},transition:{duration:.2},style:{position:"absolute",left:"1.25rem",background:r==="email"||i.email?"rgba(0, 0, 0, 0.9)":"transparent",padding:"0 0.5rem",fontWeight:"700",fontFamily:"var(--font-display)",textTransform:"uppercase",letterSpacing:"0.05em",pointerEvents:"none",zIndex:1},children:"Email Address"}),v.jsx("input",{type:"email",name:"email",value:i.email,onChange:T,onFocus:()=>o("email"),onBlur:()=>o(""),required:!0,style:{width:"100%",padding:"0.875rem 3rem 0.875rem 1.25rem",background:"rgba(0, 0, 0, 0.5)",border:`2px solid ${f.email?"#ef4444":r==="email"?"white":"rgba(255, 255, 255, 0.2)"}`,borderRadius:"8px",color:"white",fontSize:"0.9375rem",transition:"all 0.3s",fontFamily:"var(--font-main)"}}),v.jsx("div",{style:{position:"absolute",right:"1rem",top:"50%",transform:"translateY(-50%)"},children:v.jsx(fa,{children:w("email")&&v.jsx(G.div,{initial:{scale:0,rotate:-180},animate:{scale:1,rotate:0},exit:{scale:0,rotate:180},children:w("email")})})})]}),v.jsxs("div",{style:{position:"relative"},children:[v.jsx(G.label,{animate:{top:r==="service"||i.service?"-0.75rem":"0.875rem",fontSize:r==="service"||i.service?"0.75rem":"0.9375rem",color:r==="service"?"white":"var(--text-secondary)"},transition:{duration:.2},style:{position:"absolute",left:"1.25rem",background:r==="service"||i.service?"rgba(0, 0, 0, 0.9)":"transparent",padding:"0 0.5rem",fontWeight:"700",fontFamily:"var(--font-display)",textTransform:"uppercase",letterSpacing:"0.05em",pointerEvents:"none",zIndex:1},children:"Service Needed"}),v.jsxs("select",{name:"service",value:i.service,onChange:T,onFocus:()=>o("service"),onBlur:()=>o(""),required:!0,style:{width:"100%",padding:"0.875rem 1.25rem",background:"rgba(0, 0, 0, 0.5)",border:`2px solid ${r==="service"?"white":"rgba(255, 255, 255, 0.2)"}`,borderRadius:"8px",color:i.service?"white":"var(--text-secondary)",fontSize:"0.9375rem",transition:"all 0.3s",fontFamily:"var(--font-main)",cursor:"pointer"},children:[v.jsx("option",{value:"",style:{background:"#000"},children:"Select a service"}),p.map((V,H)=>v.jsx("option",{value:V,style:{background:"#000"},children:V},H))]})]}),v.jsxs("div",{style:{position:"relative"},children:[v.jsx(G.label,{animate:{top:r==="message"||i.message?"-0.75rem":"0.875rem",fontSize:r==="message"||i.message?"0.75rem":"0.9375rem",color:r==="message"?"white":"var(--text-secondary)"},transition:{duration:.2},style:{position:"absolute",left:"1.25rem",background:r==="message"||i.message?"rgba(0, 0, 0, 0.9)":"transparent",padding:"0 0.5rem",fontWeight:"700",fontFamily:"var(--font-display)",textTransform:"uppercase",letterSpacing:"0.05em",pointerEvents:"none",zIndex:1},children:"Message"}),v.jsx("textarea",{name:"message",value:i.message,onChange:T,onFocus:()=>o("message"),onBlur:()=>o(""),required:!0,rows:"5",maxLength:g,style:{width:"100%",padding:"0.875rem 1.25rem 2.5rem 1.25rem",background:"rgba(0, 0, 0, 0.5)",border:`2px solid ${r==="message"?"white":"rgba(255, 255, 255, 0.2)"}`,borderRadius:"8px",color:"white",fontSize:"0.9375rem",transition:"all 0.3s",fontFamily:"var(--font-main)",resize:"vertical"}}),v.jsxs("div",{style:{position:"absolute",bottom:"0.75rem",right:"1rem",fontSize:"0.75rem",color:i.message.length>g*.9?"#ef4444":"var(--text-muted)",fontWeight:"600"},children:[i.message.length,"/",g]})]}),v.jsxs(G.button,{type:"submit",whileHover:{scale:1.05},whileTap:{scale:.95},className:"btn btn-primary",style:{width:"100%",justifyContent:"center",fontSize:"1rem",marginTop:"1rem"},children:[v.jsx(rS,{})," Send Message"]})]})]}),v.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(280px, 1fr))",gap:"2rem",marginBottom:"3rem"},children:[v.jsxs(G.div,{whileHover:{y:-5},className:"glass-card",style:{display:"flex",alignItems:"center",gap:"1rem"},children:[v.jsx("div",{style:{width:"50px",height:"50px",borderRadius:"12px",background:"rgba(255, 255, 255, 0.2)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.5rem",color:"white"},children:v.jsx(nS,{})}),v.jsxs("div",{children:[v.jsx("h4",{style:{fontSize:"0.75rem",color:"var(--text-muted)",marginBottom:"0.25rem",fontFamily:"var(--font-display)",textTransform:"uppercase"},children:"Email"}),v.jsx("a",{href:"mailto:meghdave2006@gmail.com",style:{color:"var(--text-primary)",fontSize:"0.875rem"},children:"meghdave2006@gmail.com"})]})]}),v.jsxs(G.div,{whileHover:{y:-5},className:"glass-card",style:{display:"flex",alignItems:"center",gap:"1rem"},children:[v.jsx("div",{style:{width:"50px",height:"50px",borderRadius:"12px",background:"rgba(255, 255, 255, 0.2)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.5rem",color:"white"},children:v.jsx(oS,{})}),v.jsxs("div",{children:[v.jsx("h4",{style:{fontSize:"0.75rem",color:"var(--text-muted)",marginBottom:"0.25rem",fontFamily:"var(--font-display)",textTransform:"uppercase"},children:"Phone"}),v.jsx("p",{style:{color:"var(--text-primary)",fontSize:"0.875rem"},children:"+91 9222056520"})]})]}),v.jsxs(G.div,{whileHover:{y:-5},className:"glass-card",style:{display:"flex",alignItems:"center",gap:"1rem"},children:[v.jsx("div",{style:{width:"50px",height:"50px",borderRadius:"12px",background:"rgba(255, 255, 255, 0.2)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.5rem",color:"white"},children:v.jsx(sS,{})}),v.jsxs("div",{children:[v.jsx("h4",{style:{fontSize:"0.75rem",color:"var(--text-muted)",marginBottom:"0.25rem",fontFamily:"var(--font-display)",textTransform:"uppercase"},children:"Location"}),v.jsx("p",{style:{color:"var(--text-primary)",fontSize:"0.875rem"},children:"Mumbai, India"})]})]})]}),v.jsxs("div",{style:{marginBottom:"3rem",textAlign:"center"},children:[v.jsx("h4",{style:{fontSize:"1.5rem",marginBottom:"1.5rem",color:"var(--text-primary)",fontFamily:"var(--font-display)",fontWeight:"700",textTransform:"uppercase"},children:"Services Offered"}),v.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.75rem",justifyContent:"center"},children:p.slice(0,-1).map((V,H)=>v.jsx(G.span,{whileHover:{scale:1.05,y:-3},style:{padding:"0.75rem 1.5rem",background:"rgba(255, 255, 255, 0.1)",border:"2px solid rgba(255, 255, 255, 0.2)",borderRadius:"25px",fontSize:"0.875rem",color:"white",fontWeight:"700",fontFamily:"var(--font-display)",textTransform:"uppercase",letterSpacing:"0.05em",cursor:"pointer"},children:V},H))})]}),v.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"1.5rem",paddingTop:"3rem",borderTop:"1px solid rgba(255, 255, 255, 0.1)"},children:[v.jsxs(G.a,{href:"https://www.linkedin.com/in/megh-dave-4a2227314/",target:"_blank",rel:"noopener noreferrer",whileHover:{scale:1.05,y:-3},className:"btn btn-primary",children:[v.jsx(Sy,{})," LinkedIn"]}),v.jsxs(G.a,{href:"https://github.com/megh06",target:"_blank",rel:"noopener noreferrer",whileHover:{scale:1.05,y:-3},className:"btn btn-outline",children:[v.jsx(hr,{})," GitHub"]})]}),v.jsx("div",{style:{paddingTop:"3rem",textAlign:"center",color:"var(--text-muted)",fontSize:"0.875rem"},children:v.jsxs("p",{children:["© ",new Date().getFullYear()," Megh Dave. Built with React & Framer Motion."]})})]})})})},yS=()=>{const i=L.useRef(null),[l,r]=L.useState(!1),[o,c]=L.useState(0),h=cr(-100),f=cr(-100),m={damping:25,stiffness:200,mass:.5},p=_p(h,m),g=_p(f,m),y=L.useRef({x:0,y:0}),x=L.useRef({x:0,y:0});return L.useEffect(()=>{const T=Y=>{const{clientX:q,clientY:Z}=Y;if(x.current={x:q-y.current.x,y:Z-y.current.y},Math.abs(x.current.x)>1||Math.abs(x.current.y)>1){const X=Math.atan2(x.current.y,x.current.x)*(180/Math.PI);c(X)}y.current={x:q,y:Z},h.set(q-20),f.set(Z-20)},w=()=>r(!0),V=()=>r(!1),H=document.querySelectorAll('a, button, .glass-card, .btn, [role="button"]');return H.forEach(Y=>{Y.addEventListener("mouseenter",w),Y.addEventListener("mouseleave",V)}),window.addEventListener("mousemove",T),()=>{window.removeEventListener("mousemove",T),H.forEach(Y=>{Y.removeEventListener("mouseenter",w),Y.removeEventListener("mouseleave",V)})}},[h,f]),v.jsxs(v.Fragment,{children:[v.jsx(G.div,{ref:i,style:{position:"fixed",left:0,top:0,x:p,y:g,width:"40px",height:"40px",pointerEvents:"none",zIndex:9999,mixBlendMode:"difference"},animate:{rotate:o,scale:l?1.5:1},transition:{rotate:{type:"spring",stiffness:100,damping:15},scale:{duration:.3}},children:v.jsx("img",{src:"/steering-wheel-cursor.svg",alt:"steering wheel",style:{width:"100%",height:"100%",objectFit:"contain",filter:"invert(1) brightness(1.5) drop-shadow(0 0 12px rgba(255, 255, 255, 0.9))"}})}),v.jsx(G.div,{style:{position:"fixed",left:0,top:0,x:p,y:g,width:"40px",height:"40px",pointerEvents:"none",zIndex:9998},animate:{rotate:o-45,scale:l?2:1.2,opacity:l?.3:.15},transition:{rotate:{type:"spring",stiffness:80,damping:20},scale:{duration:.4},opacity:{duration:.3}},children:v.jsx("div",{style:{width:"100%",height:"100%",borderRadius:"50%",background:"radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%)",filter:"blur(8px)"}})}),v.jsx(G.div,{style:{position:"fixed",left:0,top:0,x:p,y:g,width:"40px",height:"40px",pointerEvents:"none",zIndex:9997},animate:{scale:l?2.5:.8,opacity:l?.6:0},transition:{duration:.4},children:v.jsx("div",{style:{width:"100%",height:"100%",border:"2px solid white",borderRadius:"50%",opacity:.5}})})]})},vS="/assets/bg_video-CiXQG19W.mp4";function bS(){return v.jsxs("div",{className:"App",style:{position:"relative"},children:[v.jsx(yS,{}),v.jsxs("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:-1,overflow:"hidden"},children:[v.jsx("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,style:{position:"absolute",top:"50%",left:"50%",minWidth:"100%",minHeight:"100%",width:"auto",height:"auto",transform:"translate(-50%, -50%)",objectFit:"cover",opacity:.6},children:v.jsx("source",{src:vS,type:"video/mp4"})}),v.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"radial-gradient(circle at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.5) 100%)"}})]}),v.jsx(uS,{}),v.jsx(cS,{}),v.jsxs("div",{style:{position:"relative",background:"linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 10%, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0.95) 100%)"},children:[v.jsx(fS,{}),v.jsx(dS,{}),v.jsx(hS,{}),v.jsx(mS,{}),v.jsx(pS,{}),v.jsx(gS,{})]})]})}ev.createRoot(document.getElementById("root")).render(v.jsx(L.StrictMode,{children:v.jsx(bS,{})}));