frankenstyle 0.1.0-aardvark.1 → 0.1.0-aardvark.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,17 @@
1
+ (function(){"use strict";function zx(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var lu={exports:{}},at={};var Ud;function Ox(){if(Ud)return at;Ud=1;var n=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function x(_){return _===null||typeof _!="object"?null:(_=S&&_[S]||_["@@iterator"],typeof _=="function"?_:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,A={};function R(_,j,Z){this.props=_,this.context=j,this.refs=A,this.updater=Z||w}R.prototype.isReactComponent={},R.prototype.setState=function(_,j){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,j,"setState")},R.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function L(){}L.prototype=R.prototype;function B(_,j,Z){this.props=_,this.context=j,this.refs=A,this.updater=Z||w}var H=B.prototype=new L;H.constructor=B,C(H,R.prototype),H.isPureReactComponent=!0;var Y=Array.isArray;function K(){}var G={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function st(_,j,Z){var I=Z.ref;return{$$typeof:n,type:_,key:j,ref:I!==void 0?I:null,props:Z}}function dt(_,j){return st(_.type,j,_.props)}function Rt(_){return typeof _=="object"&&_!==null&&_.$$typeof===n}function Lt(_){var j={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(Z){return j[Z]})}var qe=/\/+/g;function Ee(_,j){return typeof _=="object"&&_!==null&&_.key!=null?Lt(""+_.key):j.toString(36)}function Ae(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(K,K):(_.status="pending",_.then(function(j){_.status==="pending"&&(_.status="fulfilled",_.value=j)},function(j){_.status==="pending"&&(_.status="rejected",_.reason=j)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function U(_,j,Z,I,ot){var ut=typeof _;(ut==="undefined"||ut==="boolean")&&(_=null);var wt=!1;if(_===null)wt=!0;else switch(ut){case"bigint":case"string":case"number":wt=!0;break;case"object":switch(_.$$typeof){case n:case t:wt=!0;break;case y:return wt=_._init,U(wt(_._payload),j,Z,I,ot)}}if(wt)return ot=ot(_),wt=I===""?"."+Ee(_,0):I,Y(ot)?(Z="",wt!=null&&(Z=wt.replace(qe,"$&/")+"/"),U(ot,j,Z,"",function(ro){return ro})):ot!=null&&(Rt(ot)&&(ot=dt(ot,Z+(ot.key==null||_&&_.key===ot.key?"":(""+ot.key).replace(qe,"$&/")+"/")+wt)),j.push(ot)),1;wt=0;var Me=I===""?".":I+":";if(Y(_))for(var Yt=0;Yt<_.length;Yt++)I=_[Yt],ut=Me+Ee(I,Yt),wt+=U(I,j,Z,ut,ot);else if(Yt=x(_),typeof Yt=="function")for(_=Yt.call(_),Yt=0;!(I=_.next()).done;)I=I.value,ut=Me+Ee(I,Yt++),wt+=U(I,j,Z,ut,ot);else if(ut==="object"){if(typeof _.then=="function")return U(Ae(_),j,Z,I,ot);throw j=String(_),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return wt}function P(_,j,Z){if(_==null)return _;var I=[],ot=0;return U(_,I,"","",function(ut){return j.call(Z,ut,ot++)}),I}function W(_){if(_._status===-1){var j=_._result;j=j(),j.then(function(Z){(_._status===0||_._status===-1)&&(_._status=1,_._result=Z)},function(Z){(_._status===0||_._status===-1)&&(_._status=2,_._result=Z)}),_._status===-1&&(_._status=0,_._result=j)}if(_._status===1)return _._result.default;throw _._result}var mt=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},vt={map:P,forEach:function(_,j,Z){P(_,function(){j.apply(this,arguments)},Z)},count:function(_){var j=0;return P(_,function(){j++}),j},toArray:function(_){return P(_,function(j){return j})||[]},only:function(_){if(!Rt(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return at.Activity=v,at.Children=vt,at.Component=R,at.Fragment=a,at.Profiler=r,at.PureComponent=B,at.StrictMode=o,at.Suspense=m,at.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,at.__COMPILER_RUNTIME={__proto__:null,c:function(_){return G.H.useMemoCache(_)}},at.cache=function(_){return function(){return _.apply(null,arguments)}},at.cacheSignal=function(){return null},at.cloneElement=function(_,j,Z){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var I=C({},_.props),ot=_.key;if(j!=null)for(ut in j.key!==void 0&&(ot=""+j.key),j)!Q.call(j,ut)||ut==="key"||ut==="__self"||ut==="__source"||ut==="ref"&&j.ref===void 0||(I[ut]=j[ut]);var ut=arguments.length-2;if(ut===1)I.children=Z;else if(1<ut){for(var wt=Array(ut),Me=0;Me<ut;Me++)wt[Me]=arguments[Me+2];I.children=wt}return st(_.type,ot,I)},at.createContext=function(_){return _={$$typeof:c,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:u,_context:_},_},at.createElement=function(_,j,Z){var I,ot={},ut=null;if(j!=null)for(I in j.key!==void 0&&(ut=""+j.key),j)Q.call(j,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ot[I]=j[I]);var wt=arguments.length-2;if(wt===1)ot.children=Z;else if(1<wt){for(var Me=Array(wt),Yt=0;Yt<wt;Yt++)Me[Yt]=arguments[Yt+2];ot.children=Me}if(_&&_.defaultProps)for(I in wt=_.defaultProps,wt)ot[I]===void 0&&(ot[I]=wt[I]);return st(_,ut,ot)},at.createRef=function(){return{current:null}},at.forwardRef=function(_){return{$$typeof:d,render:_}},at.isValidElement=Rt,at.lazy=function(_){return{$$typeof:y,_payload:{_status:-1,_result:_},_init:W}},at.memo=function(_,j){return{$$typeof:p,type:_,compare:j===void 0?null:j}},at.startTransition=function(_){var j=G.T,Z={};G.T=Z;try{var I=_(),ot=G.S;ot!==null&&ot(Z,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(K,mt)}catch(ut){mt(ut)}finally{j!==null&&Z.types!==null&&(j.types=Z.types),G.T=j}},at.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},at.use=function(_){return G.H.use(_)},at.useActionState=function(_,j,Z){return G.H.useActionState(_,j,Z)},at.useCallback=function(_,j){return G.H.useCallback(_,j)},at.useContext=function(_){return G.H.useContext(_)},at.useDebugValue=function(){},at.useDeferredValue=function(_,j){return G.H.useDeferredValue(_,j)},at.useEffect=function(_,j){return G.H.useEffect(_,j)},at.useEffectEvent=function(_){return G.H.useEffectEvent(_)},at.useId=function(){return G.H.useId()},at.useImperativeHandle=function(_,j,Z){return G.H.useImperativeHandle(_,j,Z)},at.useInsertionEffect=function(_,j){return G.H.useInsertionEffect(_,j)},at.useLayoutEffect=function(_,j){return G.H.useLayoutEffect(_,j)},at.useMemo=function(_,j){return G.H.useMemo(_,j)},at.useOptimistic=function(_,j){return G.H.useOptimistic(_,j)},at.useReducer=function(_,j,Z){return G.H.useReducer(_,j,Z)},at.useRef=function(_){return G.H.useRef(_)},at.useState=function(_){return G.H.useState(_)},at.useSyncExternalStore=function(_,j,Z){return G.H.useSyncExternalStore(_,j,Z)},at.useTransition=function(){return G.H.useTransition()},at.version="19.2.3",at}var Nd;function ru(){return Nd||(Nd=1,lu.exports=Ox()),lu.exports}var F=ru();const Rx=zx(F);var uu={exports:{}},Ua={},cu={exports:{}},fu={};var Hd;function Vx(){return Hd||(Hd=1,(function(n){function t(U,P){var W=U.length;U.push(P);t:for(;0<W;){var mt=W-1>>>1,vt=U[mt];if(0<r(vt,P))U[mt]=P,U[W]=vt,W=mt;else break t}}function a(U){return U.length===0?null:U[0]}function o(U){if(U.length===0)return null;var P=U[0],W=U.pop();if(W!==P){U[0]=W;t:for(var mt=0,vt=U.length,_=vt>>>1;mt<_;){var j=2*(mt+1)-1,Z=U[j],I=j+1,ot=U[I];if(0>r(Z,W))I<vt&&0>r(ot,Z)?(U[mt]=ot,U[I]=W,mt=I):(U[mt]=Z,U[j]=W,mt=j);else if(I<vt&&0>r(ot,W))U[mt]=ot,U[I]=W,mt=I;else break t}}return P}function r(U,P){var W=U.sortIndex-P.sortIndex;return W!==0?W:U.id-P.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();n.unstable_now=function(){return c.now()-d}}var m=[],p=[],y=1,v=null,S=3,x=!1,w=!1,C=!1,A=!1,R=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function H(U){for(var P=a(p);P!==null;){if(P.callback===null)o(p);else if(P.startTime<=U)o(p),P.sortIndex=P.expirationTime,t(m,P);else break;P=a(p)}}function Y(U){if(C=!1,H(U),!w)if(a(m)!==null)w=!0,K||(K=!0,Lt());else{var P=a(p);P!==null&&Ae(Y,P.startTime-U)}}var K=!1,G=-1,Q=5,st=-1;function dt(){return A?!0:!(n.unstable_now()-st<Q)}function Rt(){if(A=!1,K){var U=n.unstable_now();st=U;var P=!0;try{t:{w=!1,C&&(C=!1,L(G),G=-1),x=!0;var W=S;try{e:{for(H(U),v=a(m);v!==null&&!(v.expirationTime>U&&dt());){var mt=v.callback;if(typeof mt=="function"){v.callback=null,S=v.priorityLevel;var vt=mt(v.expirationTime<=U);if(U=n.unstable_now(),typeof vt=="function"){v.callback=vt,H(U),P=!0;break e}v===a(m)&&o(m),H(U)}else o(m);v=a(m)}if(v!==null)P=!0;else{var _=a(p);_!==null&&Ae(Y,_.startTime-U),P=!1}}break t}finally{v=null,S=W,x=!1}P=void 0}}finally{P?Lt():K=!1}}}var Lt;if(typeof B=="function")Lt=function(){B(Rt)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,Ee=qe.port2;qe.port1.onmessage=Rt,Lt=function(){Ee.postMessage(null)}}else Lt=function(){R(Rt,0)};function Ae(U,P){G=R(function(){U(n.unstable_now())},P)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(U){U.callback=null},n.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<U?Math.floor(1e3/U):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(U){switch(S){case 1:case 2:case 3:var P=3;break;default:P=S}var W=S;S=P;try{return U()}finally{S=W}},n.unstable_requestPaint=function(){A=!0},n.unstable_runWithPriority=function(U,P){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var W=S;S=U;try{return P()}finally{S=W}},n.unstable_scheduleCallback=function(U,P,W){var mt=n.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?mt+W:mt):W=mt,U){case 1:var vt=-1;break;case 2:vt=250;break;case 5:vt=1073741823;break;case 4:vt=1e4;break;default:vt=5e3}return vt=W+vt,U={id:y++,callback:P,priorityLevel:U,startTime:W,expirationTime:vt,sortIndex:-1},W>mt?(U.sortIndex=W,t(p,U),a(m)===null&&U===a(p)&&(C?(L(G),G=-1):C=!0,Ae(Y,W-mt))):(U.sortIndex=vt,t(m,U),w||x||(w=!0,K||(K=!0,Lt()))),U},n.unstable_shouldYield=dt,n.unstable_wrapCallback=function(U){var P=S;return function(){var W=S;S=P;try{return U.apply(this,arguments)}finally{S=W}}}})(fu)),fu}var qd;function Bx(){return qd||(qd=1,cu.exports=Vx()),cu.exports}var hu={exports:{}},he={};var jd;function Lx(){if(jd)return he;jd=1;var n=ru();function t(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var o={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},r=Symbol.for("react.portal");function u(m,p,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:v==null?null:""+v,children:m,containerInfo:p,implementation:y}}var c=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return he.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,he.createPortal=function(m,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return u(m,p,null,y)},he.flushSync=function(m){var p=c.T,y=o.p;try{if(c.T=null,o.p=2,m)return m()}finally{c.T=p,o.p=y,o.d.f()}},he.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(m,p))},he.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},he.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var y=p.as,v=d(y,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?o.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:x}):y==="script"&&o.d.X(m,{crossOrigin:v,integrity:S,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},he.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=d(p.as,p.crossOrigin);o.d.M(m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(m)},he.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,v=d(y,p.crossOrigin);o.d.L(m,y,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},he.preloadModule=function(m,p){if(typeof m=="string")if(p){var y=d(p.as,p.crossOrigin);o.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(m)},he.requestFormReset=function(m){o.d.r(m)},he.unstable_batchedUpdates=function(m,p){return m(p)},he.useFormState=function(m,p,y){return c.H.useFormState(m,p,y)},he.useFormStatus=function(){return c.H.useHostTransitionStatus()},he.version="19.2.3",he}var Pd;function kx(){if(Pd)return hu.exports;Pd=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(t){console.error(t)}}return n(),hu.exports=Lx(),hu.exports}var Yd;function Ux(){if(Yd)return Ua;Yd=1;var n=Bx(),t=ru(),a=kx();function o(e){var i="https://react.dev/errors/"+e;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+e+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var i=e,s=e;if(e.alternate)for(;i.return;)i=i.return;else{e=i;do i=e,(i.flags&4098)!==0&&(s=i.return),e=i.return;while(e)}return i.tag===3?s:null}function c(e){if(e.tag===13){var i=e.memoizedState;if(i===null&&(e=e.alternate,e!==null&&(i=e.memoizedState)),i!==null)return i.dehydrated}return null}function d(e){if(e.tag===31){var i=e.memoizedState;if(i===null&&(e=e.alternate,e!==null&&(i=e.memoizedState)),i!==null)return i.dehydrated}return null}function m(e){if(u(e)!==e)throw Error(o(188))}function p(e){var i=e.alternate;if(!i){if(i=u(e),i===null)throw Error(o(188));return i!==e?null:e}for(var s=e,l=i;;){var f=s.return;if(f===null)break;var h=f.alternate;if(h===null){if(l=f.return,l!==null){s=l;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===s)return m(f),e;if(h===l)return m(f),i;h=h.sibling}throw Error(o(188))}if(s.return!==l.return)s=f,l=h;else{for(var g=!1,b=f.child;b;){if(b===s){g=!0,s=f,l=h;break}if(b===l){g=!0,l=f,s=h;break}b=b.sibling}if(!g){for(b=h.child;b;){if(b===s){g=!0,s=h,l=f;break}if(b===l){g=!0,l=h,s=f;break}b=b.sibling}if(!g)throw Error(o(189))}}if(s.alternate!==l)throw Error(o(190))}if(s.tag!==3)throw Error(o(188));return s.stateNode.current===s?e:i}function y(e){var i=e.tag;if(i===5||i===26||i===27||i===6)return e;for(e=e.child;e!==null;){if(i=y(e),i!==null)return i;e=e.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),B=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),st=Symbol.for("react.activity"),dt=Symbol.for("react.memo_cache_sentinel"),Rt=Symbol.iterator;function Lt(e){return e===null||typeof e!="object"?null:(e=Rt&&e[Rt]||e["@@iterator"],typeof e=="function"?e:null)}var qe=Symbol.for("react.client.reference");function Ee(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===qe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case R:return"Profiler";case A:return"StrictMode";case Y:return"Suspense";case K:return"SuspenseList";case st:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case B:return e.displayName||"Context";case L:return(e._context.displayName||"Context")+".Consumer";case H:var i=e.render;return e=e.displayName,e||(e=i.displayName||i.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G:return i=e.displayName||null,i!==null?i:Ee(e.type)||"Memo";case Q:i=e._payload,e=e._init;try{return Ee(e(i))}catch{}}return null}var Ae=Array.isArray,U=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},mt=[],vt=-1;function _(e){return{current:e}}function j(e){0>vt||(e.current=mt[vt],mt[vt]=null,vt--)}function Z(e,i){vt++,mt[vt]=e.current,e.current=i}var I=_(null),ot=_(null),ut=_(null),wt=_(null);function Me(e,i){switch(Z(ut,i),Z(ot,e),Z(I,null),i.nodeType){case 9:case 11:e=(e=i.documentElement)&&(e=e.namespaceURI)?WS(e):0;break;default:if(e=i.tagName,i=i.namespaceURI)i=WS(i),e=tx(i,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}j(I),Z(I,e)}function Yt(){j(I),j(ot),j(ut)}function ro(e){e.memoizedState!==null&&Z(wt,e);var i=I.current,s=tx(i,e.type);i!==s&&(Z(ot,e),Z(I,s))}function Yl(e){ot.current===e&&(j(I),j(ot)),wt.current===e&&(j(wt),Io._currentValue=W)}var bf,Dv;function us(e){if(bf===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);bf=i&&i[1]||"",Dv=-1<s.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+bf+e+Dv}var Sf=!1;function xf(e,i){if(!e||Sf)return"";Sf=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(i){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(V){var O=V}Reflect.construct(e,[],q)}else{try{q.call()}catch(V){O=V}e.call(q.prototype)}}else{try{throw Error()}catch(V){O=V}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(V){if(V&&O&&typeof V.stack=="string")return[V.stack,O.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=l.DetermineComponentFrameRoot(),g=h[0],b=h[1];if(g&&b){var T=g.split(`
4
+ `),z=b.split(`
5
+ `);for(f=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;f<z.length&&!z[f].includes("DetermineComponentFrameRoot");)f++;if(l===T.length||f===z.length)for(l=T.length-1,f=z.length-1;1<=l&&0<=f&&T[l]!==z[f];)f--;for(;1<=l&&0<=f;l--,f--)if(T[l]!==z[f]){if(l!==1||f!==1)do if(l--,f--,0>f||T[l]!==z[f]){var k=`
6
+ `+T[l].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=l&&0<=f);break}}}finally{Sf=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?us(s):""}function d2(e,i){switch(e.tag){case 26:case 27:case 5:return us(e.type);case 16:return us("Lazy");case 13:return e.child!==i&&i!==null?us("Suspense Fallback"):us("Suspense");case 19:return us("SuspenseList");case 0:case 15:return xf(e.type,!1);case 11:return xf(e.type.render,!1);case 1:return xf(e.type,!0);case 31:return us("Activity");default:return""}}function zv(e){try{var i="",s=null;do i+=d2(e,s),s=e,e=e.return;while(e);return i}catch(l){return`
7
+ Error generating stack: `+l.message+`
8
+ `+l.stack}}var Tf=Object.prototype.hasOwnProperty,wf=n.unstable_scheduleCallback,Mf=n.unstable_cancelCallback,m2=n.unstable_shouldYield,p2=n.unstable_requestPaint,je=n.unstable_now,y2=n.unstable_getCurrentPriorityLevel,Ov=n.unstable_ImmediatePriority,Rv=n.unstable_UserBlockingPriority,Gl=n.unstable_NormalPriority,g2=n.unstable_LowPriority,Vv=n.unstable_IdlePriority,v2=n.log,b2=n.unstable_setDisableYieldValue,uo=null,Pe=null;function gn(e){if(typeof v2=="function"&&b2(e),Pe&&typeof Pe.setStrictMode=="function")try{Pe.setStrictMode(uo,e)}catch{}}var Ye=Math.clz32?Math.clz32:T2,S2=Math.log,x2=Math.LN2;function T2(e){return e>>>=0,e===0?32:31-(S2(e)/x2|0)|0}var Xl=256,Ql=262144,Zl=4194304;function cs(e){var i=e&42;if(i!==0)return i;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Kl(e,i,s){var l=e.pendingLanes;if(l===0)return 0;var f=0,h=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var b=l&134217727;return b!==0?(l=b&~h,l!==0?f=cs(l):(g&=b,g!==0?f=cs(g):s||(s=b&~e,s!==0&&(f=cs(s))))):(b=l&~h,b!==0?f=cs(b):g!==0?f=cs(g):s||(s=l&~e,s!==0&&(f=cs(s)))),f===0?0:i!==0&&i!==f&&(i&h)===0&&(h=f&-f,s=i&-i,h>=s||h===32&&(s&4194048)!==0)?i:f}function co(e,i){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&i)===0}function w2(e,i){switch(e){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 Bv(){var e=Zl;return Zl<<=1,(Zl&62914560)===0&&(Zl=4194304),e}function _f(e){for(var i=[],s=0;31>s;s++)i.push(e);return i}function fo(e,i){e.pendingLanes|=i,i!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function M2(e,i,s,l,f,h){var g=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var b=e.entanglements,T=e.expirationTimes,z=e.hiddenUpdates;for(s=g&~s;0<s;){var k=31-Ye(s),q=1<<k;b[k]=0,T[k]=-1;var O=z[k];if(O!==null)for(z[k]=null,k=0;k<O.length;k++){var V=O[k];V!==null&&(V.lane&=-536870913)}s&=~q}l!==0&&Lv(e,l,0),h!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=h&~(g&~i))}function Lv(e,i,s){e.pendingLanes|=i,e.suspendedLanes&=~i;var l=31-Ye(i);e.entangledLanes|=i,e.entanglements[l]=e.entanglements[l]|1073741824|s&261930}function kv(e,i){var s=e.entangledLanes|=i;for(e=e.entanglements;s;){var l=31-Ye(s),f=1<<l;f&i|e[l]&i&&(e[l]|=i),s&=~f}}function Uv(e,i){var s=i&-i;return s=(s&42)!==0?1:Cf(s),(s&(e.suspendedLanes|i))!==0?0:s}function Cf(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ef(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Nv(){var e=P.p;return e!==0?e:(e=window.event,e===void 0?32:wx(e.type))}function Hv(e,i){var s=P.p;try{return P.p=e,i()}finally{P.p=s}}var vn=Math.random().toString(36).slice(2),le="__reactFiber$"+vn,De="__reactProps$"+vn,Ws="__reactContainer$"+vn,Af="__reactEvents$"+vn,_2="__reactListeners$"+vn,C2="__reactHandles$"+vn,qv="__reactResources$"+vn,ho="__reactMarker$"+vn;function Df(e){delete e[le],delete e[De],delete e[Af],delete e[_2],delete e[C2]}function ta(e){var i=e[le];if(i)return i;for(var s=e.parentNode;s;){if(i=s[Ws]||s[le]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(e=lx(e);e!==null;){if(s=e[le])return s;e=lx(e)}return i}e=s,s=e.parentNode}return null}function ea(e){if(e=e[le]||e[Ws]){var i=e.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return e}return null}function mo(e){var i=e.tag;if(i===5||i===26||i===27||i===6)return e.stateNode;throw Error(o(33))}function ia(e){var i=e[qv];return i||(i=e[qv]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function ne(e){e[ho]=!0}var jv=new Set,Pv={};function fs(e,i){na(e,i),na(e+"Capture",i)}function na(e,i){for(Pv[e]=i,e=0;e<i.length;e++)jv.add(i[e])}var E2=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Yv={},Gv={};function A2(e){return Tf.call(Gv,e)?!0:Tf.call(Yv,e)?!1:E2.test(e)?Gv[e]=!0:(Yv[e]=!0,!1)}function Fl(e,i,s){if(A2(i))if(s===null)e.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":e.removeAttribute(i);return;case"boolean":var l=i.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(i);return}}e.setAttribute(i,""+s)}}function Jl(e,i,s){if(s===null)e.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttribute(i,""+s)}}function ji(e,i,s,l){if(l===null)e.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(i,s,""+l)}}function si(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xv(e){var i=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function D2(e,i,s){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,i);if(!e.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,h=l.set;return Object.defineProperty(e,i,{configurable:!0,get:function(){return f.call(this)},set:function(g){s=""+g,h.call(this,g)}}),Object.defineProperty(e,i,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(g){s=""+g},stopTracking:function(){e._valueTracker=null,delete e[i]}}}}function zf(e){if(!e._valueTracker){var i=Xv(e)?"checked":"value";e._valueTracker=D2(e,i,""+e[i])}}function Qv(e){if(!e)return!1;var i=e._valueTracker;if(!i)return!0;var s=i.getValue(),l="";return e&&(l=Xv(e)?e.checked?"true":"false":e.value),e=l,e!==s?(i.setValue(e),!0):!1}function $l(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var z2=/[\n"\\]/g;function ai(e){return e.replace(z2,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Of(e,i,s,l,f,h,g,b){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),i!=null?g==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+si(i)):e.value!==""+si(i)&&(e.value=""+si(i)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),i!=null?Rf(e,g,si(i)):s!=null?Rf(e,g,si(s)):l!=null&&e.removeAttribute("value"),f==null&&h!=null&&(e.defaultChecked=!!h),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+si(b):e.removeAttribute("name")}function Zv(e,i,s,l,f,h,g,b){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),i!=null||s!=null){if(!(h!=="submit"&&h!=="reset"||i!=null)){zf(e);return}s=s!=null?""+si(s):"",i=i!=null?""+si(i):s,b||i===e.value||(e.value=i),e.defaultValue=i}l=l??f,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=b?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),zf(e)}function Rf(e,i,s){i==="number"&&$l(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function sa(e,i,s,l){if(e=e.options,i){i={};for(var f=0;f<s.length;f++)i["$"+s[f]]=!0;for(s=0;s<e.length;s++)f=i.hasOwnProperty("$"+e[s].value),e[s].selected!==f&&(e[s].selected=f),f&&l&&(e[s].defaultSelected=!0)}else{for(s=""+si(s),i=null,f=0;f<e.length;f++){if(e[f].value===s){e[f].selected=!0,l&&(e[f].defaultSelected=!0);return}i!==null||e[f].disabled||(i=e[f])}i!==null&&(i.selected=!0)}}function Kv(e,i,s){if(i!=null&&(i=""+si(i),i!==e.value&&(e.value=i),s==null)){e.defaultValue!==i&&(e.defaultValue=i);return}e.defaultValue=s!=null?""+si(s):""}function Fv(e,i,s,l){if(i==null){if(l!=null){if(s!=null)throw Error(o(92));if(Ae(l)){if(1<l.length)throw Error(o(93));l=l[0]}s=l}s==null&&(s=""),i=s}s=si(i),e.defaultValue=s,l=e.textContent,l===s&&l!==""&&l!==null&&(e.value=l),zf(e)}function aa(e,i){if(i){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=i;return}}e.textContent=i}var O2=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Jv(e,i,s){var l=i.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?l?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="":l?e.setProperty(i,s):typeof s!="number"||s===0||O2.has(i)?i==="float"?e.cssFloat=s:e[i]=(""+s).trim():e[i]=s+"px"}function $v(e,i,s){if(i!=null&&typeof i!="object")throw Error(o(62));if(e=e.style,s!=null){for(var l in s)!s.hasOwnProperty(l)||i!=null&&i.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var f in i)l=i[f],i.hasOwnProperty(f)&&s[f]!==l&&Jv(e,f,l)}else for(var h in i)i.hasOwnProperty(h)&&Jv(e,h,i[h])}function Vf(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var R2=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),V2=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Il(e){return V2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Pi(){}var Bf=null;function Lf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oa=null,la=null;function Iv(e){var i=ea(e);if(i&&(e=i.stateNode)){var s=e[De]||null;t:switch(e=i.stateNode,i.type){case"input":if(Of(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),i=s.name,s.type==="radio"&&i!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+ai(""+i)+'"][type="radio"]'),i=0;i<s.length;i++){var l=s[i];if(l!==e&&l.form===e.form){var f=l[De]||null;if(!f)throw Error(o(90));Of(l,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(i=0;i<s.length;i++)l=s[i],l.form===e.form&&Qv(l)}break t;case"textarea":Kv(e,s.value,s.defaultValue);break t;case"select":i=s.value,i!=null&&sa(e,!!s.multiple,i,!1)}}}var kf=!1;function Wv(e,i,s){if(kf)return e(i,s);kf=!0;try{var l=e(i);return l}finally{if(kf=!1,(oa!==null||la!==null)&&(Hr(),oa&&(i=oa,e=la,la=oa=null,Iv(i),e)))for(i=0;i<e.length;i++)Iv(e[i])}}function po(e,i){var s=e.stateNode;if(s===null)return null;var l=s[De]||null;if(l===null)return null;s=l[i];t:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break t;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(o(231,i,typeof s));return s}var Yi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uf=!1;if(Yi)try{var yo={};Object.defineProperty(yo,"passive",{get:function(){Uf=!0}}),window.addEventListener("test",yo,yo),window.removeEventListener("test",yo,yo)}catch{Uf=!1}var bn=null,Nf=null,Wl=null;function t0(){if(Wl)return Wl;var e,i=Nf,s=i.length,l,f="value"in bn?bn.value:bn.textContent,h=f.length;for(e=0;e<s&&i[e]===f[e];e++);var g=s-e;for(l=1;l<=g&&i[s-l]===f[h-l];l++);return Wl=f.slice(e,1<l?1-l:void 0)}function tr(e){var i=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&i===13&&(e=13)):e=i,e===10&&(e=13),32<=e||e===13?e:0}function er(){return!0}function e0(){return!1}function ze(e){function i(s,l,f,h,g){this._reactName=s,this._targetInst=f,this.type=l,this.nativeEvent=h,this.target=g,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(s=e[b],this[b]=s?s(h):h[b]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?er:e0,this.isPropagationStopped=e0,this}return v(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=er)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=er)},persist:function(){},isPersistent:er}),i}var hs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ir=ze(hs),go=v({},hs,{view:0,detail:0}),B2=ze(go),Hf,qf,vo,nr=v({},go,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==vo&&(vo&&e.type==="mousemove"?(Hf=e.screenX-vo.screenX,qf=e.screenY-vo.screenY):qf=Hf=0,vo=e),Hf)},movementY:function(e){return"movementY"in e?e.movementY:qf}}),i0=ze(nr),L2=v({},nr,{dataTransfer:0}),k2=ze(L2),U2=v({},go,{relatedTarget:0}),jf=ze(U2),N2=v({},hs,{animationName:0,elapsedTime:0,pseudoElement:0}),H2=ze(N2),q2=v({},hs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),j2=ze(q2),P2=v({},hs,{data:0}),n0=ze(P2),Y2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},G2={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},X2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Q2(e){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(e):(e=X2[e])?!!i[e]:!1}function Pf(){return Q2}var Z2=v({},go,{key:function(e){if(e.key){var i=Y2[e.key]||e.key;if(i!=="Unidentified")return i}return e.type==="keypress"?(e=tr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?G2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pf,charCode:function(e){return e.type==="keypress"?tr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),K2=ze(Z2),F2=v({},nr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),s0=ze(F2),J2=v({},go,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pf}),$2=ze(J2),I2=v({},hs,{propertyName:0,elapsedTime:0,pseudoElement:0}),W2=ze(I2),tR=v({},nr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),eR=ze(tR),iR=v({},hs,{newState:0,oldState:0}),nR=ze(iR),sR=[9,13,27,32],Yf=Yi&&"CompositionEvent"in window,bo=null;Yi&&"documentMode"in document&&(bo=document.documentMode);var aR=Yi&&"TextEvent"in window&&!bo,a0=Yi&&(!Yf||bo&&8<bo&&11>=bo),o0=" ",l0=!1;function r0(e,i){switch(e){case"keyup":return sR.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function u0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ra=!1;function oR(e,i){switch(e){case"compositionend":return u0(i);case"keypress":return i.which!==32?null:(l0=!0,o0);case"textInput":return e=i.data,e===o0&&l0?null:e;default:return null}}function lR(e,i){if(ra)return e==="compositionend"||!Yf&&r0(e,i)?(e=t0(),Wl=Nf=bn=null,ra=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return a0&&i.locale!=="ko"?null:i.data;default:return null}}var rR={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function c0(e){var i=e&&e.nodeName&&e.nodeName.toLowerCase();return i==="input"?!!rR[e.type]:i==="textarea"}function f0(e,i,s,l){oa?la?la.push(l):la=[l]:oa=l,i=Qr(i,"onChange"),0<i.length&&(s=new ir("onChange","change",null,s,l),e.push({event:s,listeners:i}))}var So=null,xo=null;function uR(e){ZS(e,0)}function sr(e){var i=mo(e);if(Qv(i))return e}function h0(e,i){if(e==="change")return i}var d0=!1;if(Yi){var Gf;if(Yi){var Xf="oninput"in document;if(!Xf){var m0=document.createElement("div");m0.setAttribute("oninput","return;"),Xf=typeof m0.oninput=="function"}Gf=Xf}else Gf=!1;d0=Gf&&(!document.documentMode||9<document.documentMode)}function p0(){So&&(So.detachEvent("onpropertychange",y0),xo=So=null)}function y0(e){if(e.propertyName==="value"&&sr(xo)){var i=[];f0(i,xo,e,Lf(e)),Wv(uR,i)}}function cR(e,i,s){e==="focusin"?(p0(),So=i,xo=s,So.attachEvent("onpropertychange",y0)):e==="focusout"&&p0()}function fR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return sr(xo)}function hR(e,i){if(e==="click")return sr(i)}function dR(e,i){if(e==="input"||e==="change")return sr(i)}function mR(e,i){return e===i&&(e!==0||1/e===1/i)||e!==e&&i!==i}var Ge=typeof Object.is=="function"?Object.is:mR;function To(e,i){if(Ge(e,i))return!0;if(typeof e!="object"||e===null||typeof i!="object"||i===null)return!1;var s=Object.keys(e),l=Object.keys(i);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var f=s[l];if(!Tf.call(i,f)||!Ge(e[f],i[f]))return!1}return!0}function g0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function v0(e,i){var s=g0(e);e=0;for(var l;s;){if(s.nodeType===3){if(l=e+s.textContent.length,e<=i&&l>=i)return{node:s,offset:i-e};e=l}t:{for(;s;){if(s.nextSibling){s=s.nextSibling;break t}s=s.parentNode}s=void 0}s=g0(s)}}function b0(e,i){return e&&i?e===i?!0:e&&e.nodeType===3?!1:i&&i.nodeType===3?b0(e,i.parentNode):"contains"in e?e.contains(i):e.compareDocumentPosition?!!(e.compareDocumentPosition(i)&16):!1:!1}function S0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var i=$l(e.document);i instanceof e.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)e=i.contentWindow;else break;i=$l(e.document)}return i}function Qf(e){var i=e&&e.nodeName&&e.nodeName.toLowerCase();return i&&(i==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||i==="textarea"||e.contentEditable==="true")}var pR=Yi&&"documentMode"in document&&11>=document.documentMode,ua=null,Zf=null,wo=null,Kf=!1;function x0(e,i,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Kf||ua==null||ua!==$l(l)||(l=ua,"selectionStart"in l&&Qf(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),wo&&To(wo,l)||(wo=l,l=Qr(Zf,"onSelect"),0<l.length&&(i=new ir("onSelect","select",null,i,s),e.push({event:i,listeners:l}),i.target=ua)))}function ds(e,i){var s={};return s[e.toLowerCase()]=i.toLowerCase(),s["Webkit"+e]="webkit"+i,s["Moz"+e]="moz"+i,s}var ca={animationend:ds("Animation","AnimationEnd"),animationiteration:ds("Animation","AnimationIteration"),animationstart:ds("Animation","AnimationStart"),transitionrun:ds("Transition","TransitionRun"),transitionstart:ds("Transition","TransitionStart"),transitioncancel:ds("Transition","TransitionCancel"),transitionend:ds("Transition","TransitionEnd")},Ff={},T0={};Yi&&(T0=document.createElement("div").style,"AnimationEvent"in window||(delete ca.animationend.animation,delete ca.animationiteration.animation,delete ca.animationstart.animation),"TransitionEvent"in window||delete ca.transitionend.transition);function ms(e){if(Ff[e])return Ff[e];if(!ca[e])return e;var i=ca[e],s;for(s in i)if(i.hasOwnProperty(s)&&s in T0)return Ff[e]=i[s];return e}var w0=ms("animationend"),M0=ms("animationiteration"),_0=ms("animationstart"),yR=ms("transitionrun"),gR=ms("transitionstart"),vR=ms("transitioncancel"),C0=ms("transitionend"),E0=new Map,Jf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Jf.push("scrollEnd");function Ti(e,i){E0.set(e,i),fs(i,[e])}var ar=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},oi=[],fa=0,$f=0;function or(){for(var e=fa,i=$f=fa=0;i<e;){var s=oi[i];oi[i++]=null;var l=oi[i];oi[i++]=null;var f=oi[i];oi[i++]=null;var h=oi[i];if(oi[i++]=null,l!==null&&f!==null){var g=l.pending;g===null?f.next=f:(f.next=g.next,g.next=f),l.pending=f}h!==0&&A0(s,f,h)}}function lr(e,i,s,l){oi[fa++]=e,oi[fa++]=i,oi[fa++]=s,oi[fa++]=l,$f|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function If(e,i,s,l){return lr(e,i,s,l),rr(e)}function ps(e,i){return lr(e,null,null,i),rr(e)}function A0(e,i,s){e.lanes|=s;var l=e.alternate;l!==null&&(l.lanes|=s);for(var f=!1,h=e.return;h!==null;)h.childLanes|=s,l=h.alternate,l!==null&&(l.childLanes|=s),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(f=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,f&&i!==null&&(f=31-Ye(s),e=h.hiddenUpdates,l=e[f],l===null?e[f]=[i]:l.push(i),i.lane=s|536870912),h):null}function rr(e){if(50<Xo)throw Xo=0,ld=null,Error(o(185));for(var i=e.return;i!==null;)e=i,i=e.return;return e.tag===3?e.stateNode:null}var ha={};function bR(e,i,s,l){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xe(e,i,s,l){return new bR(e,i,s,l)}function Wf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gi(e,i){var s=e.alternate;return s===null?(s=Xe(e.tag,i,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=i,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&65011712,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,i=e.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function D0(e,i){e.flags&=65011714;var s=e.alternate;return s===null?(e.childLanes=0,e.lanes=i,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type,i=s.dependencies,e.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),e}function ur(e,i,s,l,f,h){var g=0;if(l=e,typeof e=="function")Wf(e)&&(g=1);else if(typeof e=="string")g=M3(e,s,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else t:switch(e){case st:return e=Xe(31,s,i,f),e.elementType=st,e.lanes=h,e;case C:return ys(s.children,f,h,i);case A:g=8,f|=24;break;case R:return e=Xe(12,s,i,f|2),e.elementType=R,e.lanes=h,e;case Y:return e=Xe(13,s,i,f),e.elementType=Y,e.lanes=h,e;case K:return e=Xe(19,s,i,f),e.elementType=K,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:g=10;break t;case L:g=9;break t;case H:g=11;break t;case G:g=14;break t;case Q:g=16,l=null;break t}g=29,s=Error(o(130,e===null?"null":typeof e,"")),l=null}return i=Xe(g,s,i,f),i.elementType=e,i.type=l,i.lanes=h,i}function ys(e,i,s,l){return e=Xe(7,e,l,i),e.lanes=s,e}function th(e,i,s){return e=Xe(6,e,null,i),e.lanes=s,e}function z0(e){var i=Xe(18,null,null,0);return i.stateNode=e,i}function eh(e,i,s){return i=Xe(4,e.children!==null?e.children:[],e.key,i),i.lanes=s,i.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},i}var O0=new WeakMap;function li(e,i){if(typeof e=="object"&&e!==null){var s=O0.get(e);return s!==void 0?s:(i={value:e,source:i,stack:zv(i)},O0.set(e,i),i)}return{value:e,source:i,stack:zv(i)}}var da=[],ma=0,cr=null,Mo=0,ri=[],ui=0,Sn=null,Ri=1,Vi="";function Xi(e,i){da[ma++]=Mo,da[ma++]=cr,cr=e,Mo=i}function R0(e,i,s){ri[ui++]=Ri,ri[ui++]=Vi,ri[ui++]=Sn,Sn=e;var l=Ri;e=Vi;var f=32-Ye(l)-1;l&=~(1<<f),s+=1;var h=32-Ye(i)+f;if(30<h){var g=f-f%5;h=(l&(1<<g)-1).toString(32),l>>=g,f-=g,Ri=1<<32-Ye(i)+f|s<<f|l,Vi=h+e}else Ri=1<<h|s<<f|l,Vi=e}function ih(e){e.return!==null&&(Xi(e,1),R0(e,1,0))}function nh(e){for(;e===cr;)cr=da[--ma],da[ma]=null,Mo=da[--ma],da[ma]=null;for(;e===Sn;)Sn=ri[--ui],ri[ui]=null,Vi=ri[--ui],ri[ui]=null,Ri=ri[--ui],ri[ui]=null}function V0(e,i){ri[ui++]=Ri,ri[ui++]=Vi,ri[ui++]=Sn,Ri=i.id,Vi=i.overflow,Sn=e}var re=null,Vt=null,gt=!1,xn=null,ci=!1,sh=Error(o(519));function Tn(e){var i=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _o(li(i,e)),sh}function B0(e){var i=e.stateNode,s=e.type,l=e.memoizedProps;switch(i[le]=e,i[De]=l,s){case"dialog":ft("cancel",i),ft("close",i);break;case"iframe":case"object":case"embed":ft("load",i);break;case"video":case"audio":for(s=0;s<Zo.length;s++)ft(Zo[s],i);break;case"source":ft("error",i);break;case"img":case"image":case"link":ft("error",i),ft("load",i);break;case"details":ft("toggle",i);break;case"input":ft("invalid",i),Zv(i,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ft("invalid",i);break;case"textarea":ft("invalid",i),Fv(i,l.value,l.defaultValue,l.children)}s=l.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||i.textContent===""+s||l.suppressHydrationWarning===!0||$S(i.textContent,s)?(l.popover!=null&&(ft("beforetoggle",i),ft("toggle",i)),l.onScroll!=null&&ft("scroll",i),l.onScrollEnd!=null&&ft("scrollend",i),l.onClick!=null&&(i.onclick=Pi),i=!0):i=!1,i||Tn(e,!0)}function L0(e){for(re=e.return;re;)switch(re.tag){case 5:case 31:case 13:ci=!1;return;case 27:case 3:ci=!0;return;default:re=re.return}}function pa(e){if(e!==re)return!1;if(!gt)return L0(e),gt=!0,!1;var i=e.tag,s;if((s=i!==3&&i!==27)&&((s=i===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||Td(e.type,e.memoizedProps)),s=!s),s&&Vt&&Tn(e),L0(e),i===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Vt=ox(e)}else if(i===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Vt=ox(e)}else i===27?(i=Vt,kn(e.type)?(e=Ed,Ed=null,Vt=e):Vt=i):Vt=re?hi(e.stateNode.nextSibling):null;return!0}function gs(){Vt=re=null,gt=!1}function ah(){var e=xn;return e!==null&&(Be===null?Be=e:Be.push.apply(Be,e),xn=null),e}function _o(e){xn===null?xn=[e]:xn.push(e)}var oh=_(null),vs=null,Qi=null;function wn(e,i,s){Z(oh,i._currentValue),i._currentValue=s}function Zi(e){e._currentValue=oh.current,j(oh)}function lh(e,i,s){for(;e!==null;){var l=e.alternate;if((e.childLanes&i)!==i?(e.childLanes|=i,l!==null&&(l.childLanes|=i)):l!==null&&(l.childLanes&i)!==i&&(l.childLanes|=i),e===s)break;e=e.return}}function rh(e,i,s,l){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var h=f.dependencies;if(h!==null){var g=f.child;h=h.firstContext;t:for(;h!==null;){var b=h;h=f;for(var T=0;T<i.length;T++)if(b.context===i[T]){h.lanes|=s,b=h.alternate,b!==null&&(b.lanes|=s),lh(h.return,s,e),l||(g=null);break t}h=b.next}}else if(f.tag===18){if(g=f.return,g===null)throw Error(o(341));g.lanes|=s,h=g.alternate,h!==null&&(h.lanes|=s),lh(g,s,e),g=null}else g=f.child;if(g!==null)g.return=f;else for(g=f;g!==null;){if(g===e){g=null;break}if(f=g.sibling,f!==null){f.return=g.return,g=f;break}g=g.return}f=g}}function ya(e,i,s,l){e=null;for(var f=i,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var g=f.alternate;if(g===null)throw Error(o(387));if(g=g.memoizedProps,g!==null){var b=f.type;Ge(f.pendingProps.value,g.value)||(e!==null?e.push(b):e=[b])}}else if(f===wt.current){if(g=f.alternate,g===null)throw Error(o(387));g.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(Io):e=[Io])}f=f.return}e!==null&&rh(i,e,s,l),i.flags|=262144}function fr(e){for(e=e.firstContext;e!==null;){if(!Ge(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function bs(e){vs=e,Qi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ue(e){return k0(vs,e)}function hr(e,i){return vs===null&&bs(e),k0(e,i)}function k0(e,i){var s=i._currentValue;if(i={context:i,memoizedValue:s,next:null},Qi===null){if(e===null)throw Error(o(308));Qi=i,e.dependencies={lanes:0,firstContext:i},e.flags|=524288}else Qi=Qi.next=i;return s}var SR=typeof AbortController<"u"?AbortController:function(){var e=[],i=this.signal={aborted:!1,addEventListener:function(s,l){e.push(l)}};this.abort=function(){i.aborted=!0,e.forEach(function(s){return s()})}},xR=n.unstable_scheduleCallback,TR=n.unstable_NormalPriority,Ft={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function uh(){return{controller:new SR,data:new Map,refCount:0}}function Co(e){e.refCount--,e.refCount===0&&xR(TR,function(){e.controller.abort()})}var Eo=null,ch=0,ga=0,va=null;function wR(e,i){if(Eo===null){var s=Eo=[];ch=0,ga=dd(),va={status:"pending",value:void 0,then:function(l){s.push(l)}}}return ch++,i.then(U0,U0),i}function U0(){if(--ch===0&&Eo!==null){va!==null&&(va.status="fulfilled");var e=Eo;Eo=null,ga=0,va=null;for(var i=0;i<e.length;i++)(0,e[i])()}}function MR(e,i){var s=[],l={status:"pending",value:null,reason:null,then:function(f){s.push(f)}};return e.then(function(){l.status="fulfilled",l.value=i;for(var f=0;f<s.length;f++)(0,s[f])(i)},function(f){for(l.status="rejected",l.reason=f,f=0;f<s.length;f++)(0,s[f])(void 0)}),l}var N0=U.S;U.S=function(e,i){xS=je(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&wR(e,i),N0!==null&&N0(e,i)};var Ss=_(null);function fh(){var e=Ss.current;return e!==null?e:zt.pooledCache}function dr(e,i){i===null?Z(Ss,Ss.current):Z(Ss,i.pool)}function H0(){var e=fh();return e===null?null:{parent:Ft._currentValue,pool:e}}var ba=Error(o(460)),hh=Error(o(474)),mr=Error(o(542)),pr={then:function(){}};function q0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function j0(e,i,s){switch(s=e[s],s===void 0?e.push(i):s!==i&&(i.then(Pi,Pi),i=s),i.status){case"fulfilled":return i.value;case"rejected":throw e=i.reason,Y0(e),e;default:if(typeof i.status=="string")i.then(Pi,Pi);else{if(e=zt,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=i,e.status="pending",e.then(function(l){if(i.status==="pending"){var f=i;f.status="fulfilled",f.value=l}},function(l){if(i.status==="pending"){var f=i;f.status="rejected",f.reason=l}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw e=i.reason,Y0(e),e}throw Ts=i,ba}}function xs(e){try{var i=e._init;return i(e._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Ts=s,ba):s}}var Ts=null;function P0(){if(Ts===null)throw Error(o(459));var e=Ts;return Ts=null,e}function Y0(e){if(e===ba||e===mr)throw Error(o(483))}var Sa=null,Ao=0;function yr(e){var i=Ao;return Ao+=1,Sa===null&&(Sa=[]),j0(Sa,e,i)}function Do(e,i){i=i.props.ref,e.ref=i!==void 0?i:null}function gr(e,i){throw i.$$typeof===S?Error(o(525)):(e=Object.prototype.toString.call(i),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":e)))}function G0(e){function i(E,M){if(e){var D=E.deletions;D===null?(E.deletions=[M],E.flags|=16):D.push(M)}}function s(E,M){if(!e)return null;for(;M!==null;)i(E,M),M=M.sibling;return null}function l(E){for(var M=new Map;E!==null;)E.key!==null?M.set(E.key,E):M.set(E.index,E),E=E.sibling;return M}function f(E,M){return E=Gi(E,M),E.index=0,E.sibling=null,E}function h(E,M,D){return E.index=D,e?(D=E.alternate,D!==null?(D=D.index,D<M?(E.flags|=67108866,M):D):(E.flags|=67108866,M)):(E.flags|=1048576,M)}function g(E){return e&&E.alternate===null&&(E.flags|=67108866),E}function b(E,M,D,N){return M===null||M.tag!==6?(M=th(D,E.mode,N),M.return=E,M):(M=f(M,D),M.return=E,M)}function T(E,M,D,N){var it=D.type;return it===C?k(E,M,D.props.children,N,D.key):M!==null&&(M.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===Q&&xs(it)===M.type)?(M=f(M,D.props),Do(M,D),M.return=E,M):(M=ur(D.type,D.key,D.props,null,E.mode,N),Do(M,D),M.return=E,M)}function z(E,M,D,N){return M===null||M.tag!==4||M.stateNode.containerInfo!==D.containerInfo||M.stateNode.implementation!==D.implementation?(M=eh(D,E.mode,N),M.return=E,M):(M=f(M,D.children||[]),M.return=E,M)}function k(E,M,D,N,it){return M===null||M.tag!==7?(M=ys(D,E.mode,N,it),M.return=E,M):(M=f(M,D),M.return=E,M)}function q(E,M,D){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=th(""+M,E.mode,D),M.return=E,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case x:return D=ur(M.type,M.key,M.props,null,E.mode,D),Do(D,M),D.return=E,D;case w:return M=eh(M,E.mode,D),M.return=E,M;case Q:return M=xs(M),q(E,M,D)}if(Ae(M)||Lt(M))return M=ys(M,E.mode,D,null),M.return=E,M;if(typeof M.then=="function")return q(E,yr(M),D);if(M.$$typeof===B)return q(E,hr(E,M),D);gr(E,M)}return null}function O(E,M,D,N){var it=M!==null?M.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return it!==null?null:b(E,M,""+D,N);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return D.key===it?T(E,M,D,N):null;case w:return D.key===it?z(E,M,D,N):null;case Q:return D=xs(D),O(E,M,D,N)}if(Ae(D)||Lt(D))return it!==null?null:k(E,M,D,N,null);if(typeof D.then=="function")return O(E,M,yr(D),N);if(D.$$typeof===B)return O(E,M,hr(E,D),N);gr(E,D)}return null}function V(E,M,D,N,it){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return E=E.get(D)||null,b(M,E,""+N,it);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case x:return E=E.get(N.key===null?D:N.key)||null,T(M,E,N,it);case w:return E=E.get(N.key===null?D:N.key)||null,z(M,E,N,it);case Q:return N=xs(N),V(E,M,D,N,it)}if(Ae(N)||Lt(N))return E=E.get(D)||null,k(M,E,N,it,null);if(typeof N.then=="function")return V(E,M,D,yr(N),it);if(N.$$typeof===B)return V(E,M,D,hr(M,N),it);gr(M,N)}return null}function J(E,M,D,N){for(var it=null,St=null,tt=M,rt=M=0,yt=null;tt!==null&&rt<D.length;rt++){tt.index>rt?(yt=tt,tt=null):yt=tt.sibling;var xt=O(E,tt,D[rt],N);if(xt===null){tt===null&&(tt=yt);break}e&&tt&&xt.alternate===null&&i(E,tt),M=h(xt,M,rt),St===null?it=xt:St.sibling=xt,St=xt,tt=yt}if(rt===D.length)return s(E,tt),gt&&Xi(E,rt),it;if(tt===null){for(;rt<D.length;rt++)tt=q(E,D[rt],N),tt!==null&&(M=h(tt,M,rt),St===null?it=tt:St.sibling=tt,St=tt);return gt&&Xi(E,rt),it}for(tt=l(tt);rt<D.length;rt++)yt=V(tt,E,rt,D[rt],N),yt!==null&&(e&&yt.alternate!==null&&tt.delete(yt.key===null?rt:yt.key),M=h(yt,M,rt),St===null?it=yt:St.sibling=yt,St=yt);return e&&tt.forEach(function(jn){return i(E,jn)}),gt&&Xi(E,rt),it}function nt(E,M,D,N){if(D==null)throw Error(o(151));for(var it=null,St=null,tt=M,rt=M=0,yt=null,xt=D.next();tt!==null&&!xt.done;rt++,xt=D.next()){tt.index>rt?(yt=tt,tt=null):yt=tt.sibling;var jn=O(E,tt,xt.value,N);if(jn===null){tt===null&&(tt=yt);break}e&&tt&&jn.alternate===null&&i(E,tt),M=h(jn,M,rt),St===null?it=jn:St.sibling=jn,St=jn,tt=yt}if(xt.done)return s(E,tt),gt&&Xi(E,rt),it;if(tt===null){for(;!xt.done;rt++,xt=D.next())xt=q(E,xt.value,N),xt!==null&&(M=h(xt,M,rt),St===null?it=xt:St.sibling=xt,St=xt);return gt&&Xi(E,rt),it}for(tt=l(tt);!xt.done;rt++,xt=D.next())xt=V(tt,E,rt,xt.value,N),xt!==null&&(e&&xt.alternate!==null&&tt.delete(xt.key===null?rt:xt.key),M=h(xt,M,rt),St===null?it=xt:St.sibling=xt,St=xt);return e&&tt.forEach(function(L3){return i(E,L3)}),gt&&Xi(E,rt),it}function Dt(E,M,D,N){if(typeof D=="object"&&D!==null&&D.type===C&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case x:t:{for(var it=D.key;M!==null;){if(M.key===it){if(it=D.type,it===C){if(M.tag===7){s(E,M.sibling),N=f(M,D.props.children),N.return=E,E=N;break t}}else if(M.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===Q&&xs(it)===M.type){s(E,M.sibling),N=f(M,D.props),Do(N,D),N.return=E,E=N;break t}s(E,M);break}else i(E,M);M=M.sibling}D.type===C?(N=ys(D.props.children,E.mode,N,D.key),N.return=E,E=N):(N=ur(D.type,D.key,D.props,null,E.mode,N),Do(N,D),N.return=E,E=N)}return g(E);case w:t:{for(it=D.key;M!==null;){if(M.key===it)if(M.tag===4&&M.stateNode.containerInfo===D.containerInfo&&M.stateNode.implementation===D.implementation){s(E,M.sibling),N=f(M,D.children||[]),N.return=E,E=N;break t}else{s(E,M);break}else i(E,M);M=M.sibling}N=eh(D,E.mode,N),N.return=E,E=N}return g(E);case Q:return D=xs(D),Dt(E,M,D,N)}if(Ae(D))return J(E,M,D,N);if(Lt(D)){if(it=Lt(D),typeof it!="function")throw Error(o(150));return D=it.call(D),nt(E,M,D,N)}if(typeof D.then=="function")return Dt(E,M,yr(D),N);if(D.$$typeof===B)return Dt(E,M,hr(E,D),N);gr(E,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,M!==null&&M.tag===6?(s(E,M.sibling),N=f(M,D),N.return=E,E=N):(s(E,M),N=th(D,E.mode,N),N.return=E,E=N),g(E)):s(E,M)}return function(E,M,D,N){try{Ao=0;var it=Dt(E,M,D,N);return Sa=null,it}catch(tt){if(tt===ba||tt===mr)throw tt;var St=Xe(29,tt,null,E.mode);return St.lanes=N,St.return=E,St}finally{}}}var ws=G0(!0),X0=G0(!1),Mn=!1;function dh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mh(e,i){e=e.updateQueue,i.updateQueue===e&&(i.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function _n(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Cn(e,i,s){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Tt&2)!==0){var f=l.pending;return f===null?i.next=i:(i.next=f.next,f.next=i),l.pending=i,i=rr(e),A0(e,null,s),i}return lr(e,l,i,s),rr(e)}function zo(e,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194048)!==0)){var l=i.lanes;l&=e.pendingLanes,s|=l,i.lanes=s,kv(e,s)}}function ph(e,i){var s=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var f=null,h=null;if(s=s.firstBaseUpdate,s!==null){do{var g={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};h===null?f=h=g:h=h.next=g,s=s.next}while(s!==null);h===null?f=h=i:h=h.next=i}else f=h=i;s={baseState:l.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:l.shared,callbacks:l.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=i:e.next=i,s.lastBaseUpdate=i}var yh=!1;function Oo(){if(yh){var e=va;if(e!==null)throw e}}function Ro(e,i,s,l){yh=!1;var f=e.updateQueue;Mn=!1;var h=f.firstBaseUpdate,g=f.lastBaseUpdate,b=f.shared.pending;if(b!==null){f.shared.pending=null;var T=b,z=T.next;T.next=null,g===null?h=z:g.next=z,g=T;var k=e.alternate;k!==null&&(k=k.updateQueue,b=k.lastBaseUpdate,b!==g&&(b===null?k.firstBaseUpdate=z:b.next=z,k.lastBaseUpdate=T))}if(h!==null){var q=f.baseState;g=0,k=z=T=null,b=h;do{var O=b.lane&-536870913,V=O!==b.lane;if(V?(pt&O)===O:(l&O)===O){O!==0&&O===ga&&(yh=!0),k!==null&&(k=k.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var J=e,nt=b;O=i;var Dt=s;switch(nt.tag){case 1:if(J=nt.payload,typeof J=="function"){q=J.call(Dt,q,O);break t}q=J;break t;case 3:J.flags=J.flags&-65537|128;case 0:if(J=nt.payload,O=typeof J=="function"?J.call(Dt,q,O):J,O==null)break t;q=v({},q,O);break t;case 2:Mn=!0}}O=b.callback,O!==null&&(e.flags|=64,V&&(e.flags|=8192),V=f.callbacks,V===null?f.callbacks=[O]:V.push(O))}else V={lane:O,tag:b.tag,payload:b.payload,callback:b.callback,next:null},k===null?(z=k=V,T=q):k=k.next=V,g|=O;if(b=b.next,b===null){if(b=f.shared.pending,b===null)break;V=b,b=V.next,V.next=null,f.lastBaseUpdate=V,f.shared.pending=null}}while(!0);k===null&&(T=q),f.baseState=T,f.firstBaseUpdate=z,f.lastBaseUpdate=k,h===null&&(f.shared.lanes=0),On|=g,e.lanes=g,e.memoizedState=q}}function Q0(e,i){if(typeof e!="function")throw Error(o(191,e));e.call(i)}function Z0(e,i){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)Q0(s[e],i)}var xa=_(null),vr=_(0);function K0(e,i){e=nn,Z(vr,e),Z(xa,i),nn=e|i.baseLanes}function gh(){Z(vr,nn),Z(xa,xa.current)}function vh(){nn=vr.current,j(xa),j(vr)}var Qe=_(null),fi=null;function En(e){var i=e.alternate;Z(Gt,Gt.current&1),Z(Qe,e),fi===null&&(i===null||xa.current!==null||i.memoizedState!==null)&&(fi=e)}function bh(e){Z(Gt,Gt.current),Z(Qe,e),fi===null&&(fi=e)}function F0(e){e.tag===22?(Z(Gt,Gt.current),Z(Qe,e),fi===null&&(fi=e)):An()}function An(){Z(Gt,Gt.current),Z(Qe,Qe.current)}function Ze(e){j(Qe),fi===e&&(fi=null),j(Gt)}var Gt=_(0);function br(e){for(var i=e;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||_d(s)||Cd(s)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Ki=0,lt=null,Et=null,Jt=null,Sr=!1,Ta=!1,Ms=!1,xr=0,Vo=0,wa=null,_R=0;function qt(){throw Error(o(321))}function Sh(e,i){if(i===null)return!1;for(var s=0;s<i.length&&s<e.length;s++)if(!Ge(e[s],i[s]))return!1;return!0}function xh(e,i,s,l,f,h){return Ki=h,lt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,U.H=e===null||e.memoizedState===null?Rb:kh,Ms=!1,h=s(l,f),Ms=!1,Ta&&(h=$0(i,s,l,f)),J0(e),h}function J0(e){U.H=ko;var i=Et!==null&&Et.next!==null;if(Ki=0,Jt=Et=lt=null,Sr=!1,Vo=0,wa=null,i)throw Error(o(300));e===null||$t||(e=e.dependencies,e!==null&&fr(e)&&($t=!0))}function $0(e,i,s,l){lt=e;var f=0;do{if(Ta&&(wa=null),Vo=0,Ta=!1,25<=f)throw Error(o(301));if(f+=1,Jt=Et=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}U.H=Vb,h=i(s,l)}while(Ta);return h}function CR(){var e=U.H,i=e.useState()[0];return i=typeof i.then=="function"?Bo(i):i,e=e.useState()[0],(Et!==null?Et.memoizedState:null)!==e&&(lt.flags|=1024),i}function Th(){var e=xr!==0;return xr=0,e}function wh(e,i,s){i.updateQueue=e.updateQueue,i.flags&=-2053,e.lanes&=~s}function Mh(e){if(Sr){for(e=e.memoizedState;e!==null;){var i=e.queue;i!==null&&(i.pending=null),e=e.next}Sr=!1}Ki=0,Jt=Et=lt=null,Ta=!1,Vo=xr=0,wa=null}function _e(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jt===null?lt.memoizedState=Jt=e:Jt=Jt.next=e,Jt}function Xt(){if(Et===null){var e=lt.alternate;e=e!==null?e.memoizedState:null}else e=Et.next;var i=Jt===null?lt.memoizedState:Jt.next;if(i!==null)Jt=i,Et=e;else{if(e===null)throw lt.alternate===null?Error(o(467)):Error(o(310));Et=e,e={memoizedState:Et.memoizedState,baseState:Et.baseState,baseQueue:Et.baseQueue,queue:Et.queue,next:null},Jt===null?lt.memoizedState=Jt=e:Jt=Jt.next=e}return Jt}function Tr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bo(e){var i=Vo;return Vo+=1,wa===null&&(wa=[]),e=j0(wa,e,i),i=lt,(Jt===null?i.memoizedState:Jt.next)===null&&(i=i.alternate,U.H=i===null||i.memoizedState===null?Rb:kh),e}function wr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Bo(e);if(e.$$typeof===B)return ue(e)}throw Error(o(438,String(e)))}function _h(e){var i=null,s=lt.updateQueue;if(s!==null&&(i=s.memoCache),i==null){var l=lt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(i={data:l.data.map(function(f){return f.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),s===null&&(s=Tr(),lt.updateQueue=s),s.memoCache=i,s=i.data[i.index],s===void 0)for(s=i.data[i.index]=Array(e),l=0;l<e;l++)s[l]=dt;return i.index++,s}function Fi(e,i){return typeof i=="function"?i(e):i}function Mr(e){var i=Xt();return Ch(i,Et,e)}function Ch(e,i,s){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=s;var f=e.baseQueue,h=l.pending;if(h!==null){if(f!==null){var g=f.next;f.next=h.next,h.next=g}i.baseQueue=f=h,l.pending=null}if(h=e.baseState,f===null)e.memoizedState=h;else{i=f.next;var b=g=null,T=null,z=i,k=!1;do{var q=z.lane&-536870913;if(q!==z.lane?(pt&q)===q:(Ki&q)===q){var O=z.revertLane;if(O===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),q===ga&&(k=!0);else if((Ki&O)===O){z=z.next,O===ga&&(k=!0);continue}else q={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},T===null?(b=T=q,g=h):T=T.next=q,lt.lanes|=O,On|=O;q=z.action,Ms&&s(h,q),h=z.hasEagerState?z.eagerState:s(h,q)}else O={lane:q,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},T===null?(b=T=O,g=h):T=T.next=O,lt.lanes|=q,On|=q;z=z.next}while(z!==null&&z!==i);if(T===null?g=h:T.next=b,!Ge(h,e.memoizedState)&&($t=!0,k&&(s=va,s!==null)))throw s;e.memoizedState=h,e.baseState=g,e.baseQueue=T,l.lastRenderedState=h}return f===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Eh(e){var i=Xt(),s=i.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=e;var l=s.dispatch,f=s.pending,h=i.memoizedState;if(f!==null){s.pending=null;var g=f=f.next;do h=e(h,g.action),g=g.next;while(g!==f);Ge(h,i.memoizedState)||($t=!0),i.memoizedState=h,i.baseQueue===null&&(i.baseState=h),s.lastRenderedState=h}return[h,l]}function I0(e,i,s){var l=lt,f=Xt(),h=gt;if(h){if(s===void 0)throw Error(o(407));s=s()}else s=i();var g=!Ge((Et||f).memoizedState,s);if(g&&(f.memoizedState=s,$t=!0),f=f.queue,zh(eb.bind(null,l,f,e),[e]),f.getSnapshot!==i||g||Jt!==null&&Jt.memoizedState.tag&1){if(l.flags|=2048,Ma(9,{destroy:void 0},tb.bind(null,l,f,s,i),null),zt===null)throw Error(o(349));h||(Ki&127)!==0||W0(l,i,s)}return s}function W0(e,i,s){e.flags|=16384,e={getSnapshot:i,value:s},i=lt.updateQueue,i===null?(i=Tr(),lt.updateQueue=i,i.stores=[e]):(s=i.stores,s===null?i.stores=[e]:s.push(e))}function tb(e,i,s,l){i.value=s,i.getSnapshot=l,ib(i)&&nb(e)}function eb(e,i,s){return s(function(){ib(i)&&nb(e)})}function ib(e){var i=e.getSnapshot;e=e.value;try{var s=i();return!Ge(e,s)}catch{return!0}}function nb(e){var i=ps(e,2);i!==null&&Le(i,e,2)}function Ah(e){var i=_e();if(typeof e=="function"){var s=e;if(e=s(),Ms){gn(!0);try{s()}finally{gn(!1)}}}return i.memoizedState=i.baseState=e,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:e},i}function sb(e,i,s,l){return e.baseState=s,Ch(e,Et,typeof l=="function"?l:Fi)}function ER(e,i,s,l,f){if(Er(e))throw Error(o(485));if(e=i.action,e!==null){var h={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){h.listeners.push(g)}};U.T!==null?s(!0):h.isTransition=!1,l(h),s=i.pending,s===null?(h.next=i.pending=h,ab(i,h)):(h.next=s.next,i.pending=s.next=h)}}function ab(e,i){var s=i.action,l=i.payload,f=e.state;if(i.isTransition){var h=U.T,g={};U.T=g;try{var b=s(f,l),T=U.S;T!==null&&T(g,b),ob(e,i,b)}catch(z){Dh(e,i,z)}finally{h!==null&&g.types!==null&&(h.types=g.types),U.T=h}}else try{h=s(f,l),ob(e,i,h)}catch(z){Dh(e,i,z)}}function ob(e,i,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){lb(e,i,l)},function(l){return Dh(e,i,l)}):lb(e,i,s)}function lb(e,i,s){i.status="fulfilled",i.value=s,rb(i),e.state=s,i=e.pending,i!==null&&(s=i.next,s===i?e.pending=null:(s=s.next,i.next=s,ab(e,s)))}function Dh(e,i,s){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do i.status="rejected",i.reason=s,rb(i),i=i.next;while(i!==l)}e.action=null}function rb(e){e=e.listeners;for(var i=0;i<e.length;i++)(0,e[i])()}function ub(e,i){return i}function cb(e,i){if(gt){var s=zt.formState;if(s!==null){t:{var l=lt;if(gt){if(Vt){e:{for(var f=Vt,h=ci;f.nodeType!==8;){if(!h){f=null;break e}if(f=hi(f.nextSibling),f===null){f=null;break e}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){Vt=hi(f.nextSibling),l=f.data==="F!";break t}}Tn(l)}l=!1}l&&(i=s[0])}}return s=_e(),s.memoizedState=s.baseState=i,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ub,lastRenderedState:i},s.queue=l,s=Db.bind(null,lt,l),l.dispatch=s,l=Ah(!1),h=Lh.bind(null,lt,!1,l.queue),l=_e(),f={state:i,dispatch:null,action:e,pending:null},l.queue=f,s=ER.bind(null,lt,f,h,s),f.dispatch=s,l.memoizedState=e,[i,s,!1]}function fb(e){var i=Xt();return hb(i,Et,e)}function hb(e,i,s){if(i=Ch(e,i,ub)[0],e=Mr(Fi)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var l=Bo(i)}catch(g){throw g===ba?mr:g}else l=i;i=Xt();var f=i.queue,h=f.dispatch;return s!==i.memoizedState&&(lt.flags|=2048,Ma(9,{destroy:void 0},AR.bind(null,f,s),null)),[l,h,e]}function AR(e,i){e.action=i}function db(e){var i=Xt(),s=Et;if(s!==null)return hb(i,s,e);Xt(),i=i.memoizedState,s=Xt();var l=s.queue.dispatch;return s.memoizedState=e,[i,l,!1]}function Ma(e,i,s,l){return e={tag:e,create:s,deps:l,inst:i,next:null},i=lt.updateQueue,i===null&&(i=Tr(),lt.updateQueue=i),s=i.lastEffect,s===null?i.lastEffect=e.next=e:(l=s.next,s.next=e,e.next=l,i.lastEffect=e),e}function mb(){return Xt().memoizedState}function _r(e,i,s,l){var f=_e();lt.flags|=e,f.memoizedState=Ma(1|i,{destroy:void 0},s,l===void 0?null:l)}function Cr(e,i,s,l){var f=Xt();l=l===void 0?null:l;var h=f.memoizedState.inst;Et!==null&&l!==null&&Sh(l,Et.memoizedState.deps)?f.memoizedState=Ma(i,h,s,l):(lt.flags|=e,f.memoizedState=Ma(1|i,h,s,l))}function pb(e,i){_r(8390656,8,e,i)}function zh(e,i){Cr(2048,8,e,i)}function DR(e){lt.flags|=4;var i=lt.updateQueue;if(i===null)i=Tr(),lt.updateQueue=i,i.events=[e];else{var s=i.events;s===null?i.events=[e]:s.push(e)}}function yb(e){var i=Xt().memoizedState;return DR({ref:i,nextImpl:e}),function(){if((Tt&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}function gb(e,i){return Cr(4,2,e,i)}function vb(e,i){return Cr(4,4,e,i)}function bb(e,i){if(typeof i=="function"){e=e();var s=i(e);return function(){typeof s=="function"?s():i(null)}}if(i!=null)return e=e(),i.current=e,function(){i.current=null}}function Sb(e,i,s){s=s!=null?s.concat([e]):null,Cr(4,4,bb.bind(null,i,e),s)}function Oh(){}function xb(e,i){var s=Xt();i=i===void 0?null:i;var l=s.memoizedState;return i!==null&&Sh(i,l[1])?l[0]:(s.memoizedState=[e,i],e)}function Tb(e,i){var s=Xt();i=i===void 0?null:i;var l=s.memoizedState;if(i!==null&&Sh(i,l[1]))return l[0];if(l=e(),Ms){gn(!0);try{e()}finally{gn(!1)}}return s.memoizedState=[l,i],l}function Rh(e,i,s){return s===void 0||(Ki&1073741824)!==0&&(pt&261930)===0?e.memoizedState=i:(e.memoizedState=s,e=wS(),lt.lanes|=e,On|=e,s)}function wb(e,i,s,l){return Ge(s,i)?s:xa.current!==null?(e=Rh(e,s,l),Ge(e,i)||($t=!0),e):(Ki&42)===0||(Ki&1073741824)!==0&&(pt&261930)===0?($t=!0,e.memoizedState=s):(e=wS(),lt.lanes|=e,On|=e,i)}function Mb(e,i,s,l,f){var h=P.p;P.p=h!==0&&8>h?h:8;var g=U.T,b={};U.T=b,Lh(e,!1,i,s);try{var T=f(),z=U.S;if(z!==null&&z(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var k=MR(T,l);Lo(e,i,k,Je(e))}else Lo(e,i,l,Je(e))}catch(q){Lo(e,i,{then:function(){},status:"rejected",reason:q},Je())}finally{P.p=h,g!==null&&b.types!==null&&(g.types=b.types),U.T=g}}function zR(){}function Vh(e,i,s,l){if(e.tag!==5)throw Error(o(476));var f=_b(e).queue;Mb(e,f,i,W,s===null?zR:function(){return Cb(e),s(l)})}function _b(e){var i=e.memoizedState;if(i!==null)return i;i={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:W},next:null};var s={};return i.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:s},next:null},e.memoizedState=i,e=e.alternate,e!==null&&(e.memoizedState=i),i}function Cb(e){var i=_b(e);i.next===null&&(i=e.alternate.memoizedState),Lo(e,i.next.queue,{},Je())}function Bh(){return ue(Io)}function Eb(){return Xt().memoizedState}function Ab(){return Xt().memoizedState}function OR(e){for(var i=e.return;i!==null;){switch(i.tag){case 24:case 3:var s=Je();e=_n(s);var l=Cn(i,e,s);l!==null&&(Le(l,i,s),zo(l,i,s)),i={cache:uh()},e.payload=i;return}i=i.return}}function RR(e,i,s){var l=Je();s={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Er(e)?zb(i,s):(s=If(e,i,s,l),s!==null&&(Le(s,e,l),Ob(s,i,l)))}function Db(e,i,s){var l=Je();Lo(e,i,s,l)}function Lo(e,i,s,l){var f={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Er(e))zb(i,f);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=i.lastRenderedReducer,h!==null))try{var g=i.lastRenderedState,b=h(g,s);if(f.hasEagerState=!0,f.eagerState=b,Ge(b,g))return lr(e,i,f,0),zt===null&&or(),!1}catch{}finally{}if(s=If(e,i,f,l),s!==null)return Le(s,e,l),Ob(s,i,l),!0}return!1}function Lh(e,i,s,l){if(l={lane:2,revertLane:dd(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Er(e)){if(i)throw Error(o(479))}else i=If(e,s,l,2),i!==null&&Le(i,e,2)}function Er(e){var i=e.alternate;return e===lt||i!==null&&i===lt}function zb(e,i){Ta=Sr=!0;var s=e.pending;s===null?i.next=i:(i.next=s.next,s.next=i),e.pending=i}function Ob(e,i,s){if((s&4194048)!==0){var l=i.lanes;l&=e.pendingLanes,s|=l,i.lanes=s,kv(e,s)}}var ko={readContext:ue,use:wr,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};ko.useEffectEvent=qt;var Rb={readContext:ue,use:wr,useCallback:function(e,i){return _e().memoizedState=[e,i===void 0?null:i],e},useContext:ue,useEffect:pb,useImperativeHandle:function(e,i,s){s=s!=null?s.concat([e]):null,_r(4194308,4,bb.bind(null,i,e),s)},useLayoutEffect:function(e,i){return _r(4194308,4,e,i)},useInsertionEffect:function(e,i){_r(4,2,e,i)},useMemo:function(e,i){var s=_e();i=i===void 0?null:i;var l=e();if(Ms){gn(!0);try{e()}finally{gn(!1)}}return s.memoizedState=[l,i],l},useReducer:function(e,i,s){var l=_e();if(s!==void 0){var f=s(i);if(Ms){gn(!0);try{s(i)}finally{gn(!1)}}}else f=i;return l.memoizedState=l.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},l.queue=e,e=e.dispatch=RR.bind(null,lt,e),[l.memoizedState,e]},useRef:function(e){var i=_e();return e={current:e},i.memoizedState=e},useState:function(e){e=Ah(e);var i=e.queue,s=Db.bind(null,lt,i);return i.dispatch=s,[e.memoizedState,s]},useDebugValue:Oh,useDeferredValue:function(e,i){var s=_e();return Rh(s,e,i)},useTransition:function(){var e=Ah(!1);return e=Mb.bind(null,lt,e.queue,!0,!1),_e().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,i,s){var l=lt,f=_e();if(gt){if(s===void 0)throw Error(o(407));s=s()}else{if(s=i(),zt===null)throw Error(o(349));(pt&127)!==0||W0(l,i,s)}f.memoizedState=s;var h={value:s,getSnapshot:i};return f.queue=h,pb(eb.bind(null,l,h,e),[e]),l.flags|=2048,Ma(9,{destroy:void 0},tb.bind(null,l,h,s,i),null),s},useId:function(){var e=_e(),i=zt.identifierPrefix;if(gt){var s=Vi,l=Ri;s=(l&~(1<<32-Ye(l)-1)).toString(32)+s,i="_"+i+"R_"+s,s=xr++,0<s&&(i+="H"+s.toString(32)),i+="_"}else s=_R++,i="_"+i+"r_"+s.toString(32)+"_";return e.memoizedState=i},useHostTransitionStatus:Bh,useFormState:cb,useActionState:cb,useOptimistic:function(e){var i=_e();i.memoizedState=i.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=s,i=Lh.bind(null,lt,!0,s),s.dispatch=i,[e,i]},useMemoCache:_h,useCacheRefresh:function(){return _e().memoizedState=OR.bind(null,lt)},useEffectEvent:function(e){var i=_e(),s={impl:e};return i.memoizedState=s,function(){if((Tt&2)!==0)throw Error(o(440));return s.impl.apply(void 0,arguments)}}},kh={readContext:ue,use:wr,useCallback:xb,useContext:ue,useEffect:zh,useImperativeHandle:Sb,useInsertionEffect:gb,useLayoutEffect:vb,useMemo:Tb,useReducer:Mr,useRef:mb,useState:function(){return Mr(Fi)},useDebugValue:Oh,useDeferredValue:function(e,i){var s=Xt();return wb(s,Et.memoizedState,e,i)},useTransition:function(){var e=Mr(Fi)[0],i=Xt().memoizedState;return[typeof e=="boolean"?e:Bo(e),i]},useSyncExternalStore:I0,useId:Eb,useHostTransitionStatus:Bh,useFormState:fb,useActionState:fb,useOptimistic:function(e,i){var s=Xt();return sb(s,Et,e,i)},useMemoCache:_h,useCacheRefresh:Ab};kh.useEffectEvent=yb;var Vb={readContext:ue,use:wr,useCallback:xb,useContext:ue,useEffect:zh,useImperativeHandle:Sb,useInsertionEffect:gb,useLayoutEffect:vb,useMemo:Tb,useReducer:Eh,useRef:mb,useState:function(){return Eh(Fi)},useDebugValue:Oh,useDeferredValue:function(e,i){var s=Xt();return Et===null?Rh(s,e,i):wb(s,Et.memoizedState,e,i)},useTransition:function(){var e=Eh(Fi)[0],i=Xt().memoizedState;return[typeof e=="boolean"?e:Bo(e),i]},useSyncExternalStore:I0,useId:Eb,useHostTransitionStatus:Bh,useFormState:db,useActionState:db,useOptimistic:function(e,i){var s=Xt();return Et!==null?sb(s,Et,e,i):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:_h,useCacheRefresh:Ab};Vb.useEffectEvent=yb;function Uh(e,i,s,l){i=e.memoizedState,s=s(l,i),s=s==null?i:v({},i,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var Nh={enqueueSetState:function(e,i,s){e=e._reactInternals;var l=Je(),f=_n(l);f.payload=i,s!=null&&(f.callback=s),i=Cn(e,f,l),i!==null&&(Le(i,e,l),zo(i,e,l))},enqueueReplaceState:function(e,i,s){e=e._reactInternals;var l=Je(),f=_n(l);f.tag=1,f.payload=i,s!=null&&(f.callback=s),i=Cn(e,f,l),i!==null&&(Le(i,e,l),zo(i,e,l))},enqueueForceUpdate:function(e,i){e=e._reactInternals;var s=Je(),l=_n(s);l.tag=2,i!=null&&(l.callback=i),i=Cn(e,l,s),i!==null&&(Le(i,e,s),zo(i,e,s))}};function Bb(e,i,s,l,f,h,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,h,g):i.prototype&&i.prototype.isPureReactComponent?!To(s,l)||!To(f,h):!0}function Lb(e,i,s,l){e=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,l),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,l),i.state!==e&&Nh.enqueueReplaceState(i,i.state,null)}function _s(e,i){var s=i;if("ref"in i){s={};for(var l in i)l!=="ref"&&(s[l]=i[l])}if(e=e.defaultProps){s===i&&(s=v({},s));for(var f in e)s[f]===void 0&&(s[f]=e[f])}return s}function kb(e){ar(e)}function Ub(e){console.error(e)}function Nb(e){ar(e)}function Ar(e,i){try{var s=e.onUncaughtError;s(i.value,{componentStack:i.stack})}catch(l){setTimeout(function(){throw l})}}function Hb(e,i,s){try{var l=e.onCaughtError;l(s.value,{componentStack:s.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Hh(e,i,s){return s=_n(s),s.tag=3,s.payload={element:null},s.callback=function(){Ar(e,i)},s}function qb(e){return e=_n(e),e.tag=3,e}function jb(e,i,s,l){var f=s.type.getDerivedStateFromError;if(typeof f=="function"){var h=l.value;e.payload=function(){return f(h)},e.callback=function(){Hb(i,s,l)}}var g=s.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Hb(i,s,l),typeof f!="function"&&(Rn===null?Rn=new Set([this]):Rn.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function VR(e,i,s,l,f){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(i=s.alternate,i!==null&&ya(i,s,f,!0),s=Qe.current,s!==null){switch(s.tag){case 31:case 13:return fi===null?qr():s.alternate===null&&jt===0&&(jt=3),s.flags&=-257,s.flags|=65536,s.lanes=f,l===pr?s.flags|=16384:(i=s.updateQueue,i===null?s.updateQueue=new Set([l]):i.add(l),cd(e,l,f)),!1;case 22:return s.flags|=65536,l===pr?s.flags|=16384:(i=s.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([l])},s.updateQueue=i):(s=i.retryQueue,s===null?i.retryQueue=new Set([l]):s.add(l)),cd(e,l,f)),!1}throw Error(o(435,s.tag))}return cd(e,l,f),qr(),!1}if(gt)return i=Qe.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=f,l!==sh&&(e=Error(o(422),{cause:l}),_o(li(e,s)))):(l!==sh&&(i=Error(o(423),{cause:l}),_o(li(i,s))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,l=li(l,s),f=Hh(e.stateNode,l,f),ph(e,f),jt!==4&&(jt=2)),!1;var h=Error(o(520),{cause:l});if(h=li(h,s),Go===null?Go=[h]:Go.push(h),jt!==4&&(jt=2),i===null)return!0;l=li(l,s),s=i;do{switch(s.tag){case 3:return s.flags|=65536,e=f&-f,s.lanes|=e,e=Hh(s.stateNode,l,e),ph(s,e),!1;case 1:if(i=s.type,h=s.stateNode,(s.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Rn===null||!Rn.has(h))))return s.flags|=65536,f&=-f,s.lanes|=f,f=qb(f),jb(f,e,s,l),ph(s,f),!1}s=s.return}while(s!==null);return!1}var qh=Error(o(461)),$t=!1;function ce(e,i,s,l){i.child=e===null?X0(i,null,s,l):ws(i,e.child,s,l)}function Pb(e,i,s,l,f){s=s.render;var h=i.ref;if("ref"in l){var g={};for(var b in l)b!=="ref"&&(g[b]=l[b])}else g=l;return bs(i),l=xh(e,i,s,g,h,f),b=Th(),e!==null&&!$t?(wh(e,i,f),Ji(e,i,f)):(gt&&b&&ih(i),i.flags|=1,ce(e,i,l,f),i.child)}function Yb(e,i,s,l,f){if(e===null){var h=s.type;return typeof h=="function"&&!Wf(h)&&h.defaultProps===void 0&&s.compare===null?(i.tag=15,i.type=h,Gb(e,i,h,l,f)):(e=ur(s.type,null,l,i,i.mode,f),e.ref=i.ref,e.return=i,i.child=e)}if(h=e.child,!Kh(e,f)){var g=h.memoizedProps;if(s=s.compare,s=s!==null?s:To,s(g,l)&&e.ref===i.ref)return Ji(e,i,f)}return i.flags|=1,e=Gi(h,l),e.ref=i.ref,e.return=i,i.child=e}function Gb(e,i,s,l,f){if(e!==null){var h=e.memoizedProps;if(To(h,l)&&e.ref===i.ref)if($t=!1,i.pendingProps=l=h,Kh(e,f))(e.flags&131072)!==0&&($t=!0);else return i.lanes=e.lanes,Ji(e,i,f)}return jh(e,i,s,l,f)}function Xb(e,i,s,l){var f=l.children,h=e!==null?e.memoizedState:null;if(e===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((i.flags&128)!==0){if(h=h!==null?h.baseLanes|s:s,e!==null){for(l=i.child=e.child,f=0;l!==null;)f=f|l.lanes|l.childLanes,l=l.sibling;l=f&~h}else l=0,i.child=null;return Qb(e,i,h,s,l)}if((s&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},e!==null&&dr(i,h!==null?h.cachePool:null),h!==null?K0(i,h):gh(),F0(i);else return l=i.lanes=536870912,Qb(e,i,h!==null?h.baseLanes|s:s,s,l)}else h!==null?(dr(i,h.cachePool),K0(i,h),An(),i.memoizedState=null):(e!==null&&dr(i,null),gh(),An());return ce(e,i,f,s),i.child}function Uo(e,i){return e!==null&&e.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function Qb(e,i,s,l,f){var h=fh();return h=h===null?null:{parent:Ft._currentValue,pool:h},i.memoizedState={baseLanes:s,cachePool:h},e!==null&&dr(i,null),gh(),F0(i),e!==null&&ya(e,i,l,!0),i.childLanes=f,null}function Dr(e,i){return i=Or({mode:i.mode,children:i.children},e.mode),i.ref=e.ref,e.child=i,i.return=e,i}function Zb(e,i,s){return ws(i,e.child,null,s),e=Dr(i,i.pendingProps),e.flags|=2,Ze(i),i.memoizedState=null,e}function BR(e,i,s){var l=i.pendingProps,f=(i.flags&128)!==0;if(i.flags&=-129,e===null){if(gt){if(l.mode==="hidden")return e=Dr(i,l),i.lanes=536870912,Uo(null,e);if(bh(i),(e=Vt)?(e=ax(e,ci),e=e!==null&&e.data==="&"?e:null,e!==null&&(i.memoizedState={dehydrated:e,treeContext:Sn!==null?{id:Ri,overflow:Vi}:null,retryLane:536870912,hydrationErrors:null},s=z0(e),s.return=i,i.child=s,re=i,Vt=null)):e=null,e===null)throw Tn(i);return i.lanes=536870912,null}return Dr(i,l)}var h=e.memoizedState;if(h!==null){var g=h.dehydrated;if(bh(i),f)if(i.flags&256)i.flags&=-257,i=Zb(e,i,s);else if(i.memoizedState!==null)i.child=e.child,i.flags|=128,i=null;else throw Error(o(558));else if($t||ya(e,i,s,!1),f=(s&e.childLanes)!==0,$t||f){if(l=zt,l!==null&&(g=Uv(l,s),g!==0&&g!==h.retryLane))throw h.retryLane=g,ps(e,g),Le(l,e,g),qh;qr(),i=Zb(e,i,s)}else e=h.treeContext,Vt=hi(g.nextSibling),re=i,gt=!0,xn=null,ci=!1,e!==null&&V0(i,e),i=Dr(i,l),i.flags|=4096;return i}return e=Gi(e.child,{mode:l.mode,children:l.children}),e.ref=i.ref,i.child=e,e.return=i,e}function zr(e,i){var s=i.ref;if(s===null)e!==null&&e.ref!==null&&(i.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(o(284));(e===null||e.ref!==s)&&(i.flags|=4194816)}}function jh(e,i,s,l,f){return bs(i),s=xh(e,i,s,l,void 0,f),l=Th(),e!==null&&!$t?(wh(e,i,f),Ji(e,i,f)):(gt&&l&&ih(i),i.flags|=1,ce(e,i,s,f),i.child)}function Kb(e,i,s,l,f,h){return bs(i),i.updateQueue=null,s=$0(i,l,s,f),J0(e),l=Th(),e!==null&&!$t?(wh(e,i,h),Ji(e,i,h)):(gt&&l&&ih(i),i.flags|=1,ce(e,i,s,h),i.child)}function Fb(e,i,s,l,f){if(bs(i),i.stateNode===null){var h=ha,g=s.contextType;typeof g=="object"&&g!==null&&(h=ue(g)),h=new s(l,h),i.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Nh,i.stateNode=h,h._reactInternals=i,h=i.stateNode,h.props=l,h.state=i.memoizedState,h.refs={},dh(i),g=s.contextType,h.context=typeof g=="object"&&g!==null?ue(g):ha,h.state=i.memoizedState,g=s.getDerivedStateFromProps,typeof g=="function"&&(Uh(i,s,g,l),h.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(g=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),g!==h.state&&Nh.enqueueReplaceState(h,h.state,null),Ro(i,l,h,f),Oo(),h.state=i.memoizedState),typeof h.componentDidMount=="function"&&(i.flags|=4194308),l=!0}else if(e===null){h=i.stateNode;var b=i.memoizedProps,T=_s(s,b);h.props=T;var z=h.context,k=s.contextType;g=ha,typeof k=="object"&&k!==null&&(g=ue(k));var q=s.getDerivedStateFromProps;k=typeof q=="function"||typeof h.getSnapshotBeforeUpdate=="function",b=i.pendingProps!==b,k||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b||z!==g)&&Lb(i,h,l,g),Mn=!1;var O=i.memoizedState;h.state=O,Ro(i,l,h,f),Oo(),z=i.memoizedState,b||O!==z||Mn?(typeof q=="function"&&(Uh(i,s,q,l),z=i.memoizedState),(T=Mn||Bb(i,s,T,l,O,z,g))?(k||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(i.flags|=4194308)):(typeof h.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=l,i.memoizedState=z),h.props=l,h.state=z,h.context=g,l=T):(typeof h.componentDidMount=="function"&&(i.flags|=4194308),l=!1)}else{h=i.stateNode,mh(e,i),g=i.memoizedProps,k=_s(s,g),h.props=k,q=i.pendingProps,O=h.context,z=s.contextType,T=ha,typeof z=="object"&&z!==null&&(T=ue(z)),b=s.getDerivedStateFromProps,(z=typeof b=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(g!==q||O!==T)&&Lb(i,h,l,T),Mn=!1,O=i.memoizedState,h.state=O,Ro(i,l,h,f),Oo();var V=i.memoizedState;g!==q||O!==V||Mn||e!==null&&e.dependencies!==null&&fr(e.dependencies)?(typeof b=="function"&&(Uh(i,s,b,l),V=i.memoizedState),(k=Mn||Bb(i,s,k,l,O,V,T)||e!==null&&e.dependencies!==null&&fr(e.dependencies))?(z||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(l,V,T),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(l,V,T)),typeof h.componentDidUpdate=="function"&&(i.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof h.componentDidUpdate!="function"||g===e.memoizedProps&&O===e.memoizedState||(i.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&O===e.memoizedState||(i.flags|=1024),i.memoizedProps=l,i.memoizedState=V),h.props=l,h.state=V,h.context=T,l=k):(typeof h.componentDidUpdate!="function"||g===e.memoizedProps&&O===e.memoizedState||(i.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&O===e.memoizedState||(i.flags|=1024),l=!1)}return h=l,zr(e,i),l=(i.flags&128)!==0,h||l?(h=i.stateNode,s=l&&typeof s.getDerivedStateFromError!="function"?null:h.render(),i.flags|=1,e!==null&&l?(i.child=ws(i,e.child,null,f),i.child=ws(i,null,s,f)):ce(e,i,s,f),i.memoizedState=h.state,e=i.child):e=Ji(e,i,f),e}function Jb(e,i,s,l){return gs(),i.flags|=256,ce(e,i,s,l),i.child}var Ph={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yh(e){return{baseLanes:e,cachePool:H0()}}function Gh(e,i,s){return e=e!==null?e.childLanes&~s:0,i&&(e|=Fe),e}function $b(e,i,s){var l=i.pendingProps,f=!1,h=(i.flags&128)!==0,g;if((g=h)||(g=e!==null&&e.memoizedState===null?!1:(Gt.current&2)!==0),g&&(f=!0,i.flags&=-129),g=(i.flags&32)!==0,i.flags&=-33,e===null){if(gt){if(f?En(i):An(),(e=Vt)?(e=ax(e,ci),e=e!==null&&e.data!=="&"?e:null,e!==null&&(i.memoizedState={dehydrated:e,treeContext:Sn!==null?{id:Ri,overflow:Vi}:null,retryLane:536870912,hydrationErrors:null},s=z0(e),s.return=i,i.child=s,re=i,Vt=null)):e=null,e===null)throw Tn(i);return Cd(e)?i.lanes=32:i.lanes=536870912,null}var b=l.children;return l=l.fallback,f?(An(),f=i.mode,b=Or({mode:"hidden",children:b},f),l=ys(l,f,s,null),b.return=i,l.return=i,b.sibling=l,i.child=b,l=i.child,l.memoizedState=Yh(s),l.childLanes=Gh(e,g,s),i.memoizedState=Ph,Uo(null,l)):(En(i),Xh(i,b))}var T=e.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(h)i.flags&256?(En(i),i.flags&=-257,i=Qh(e,i,s)):i.memoizedState!==null?(An(),i.child=e.child,i.flags|=128,i=null):(An(),b=l.fallback,f=i.mode,l=Or({mode:"visible",children:l.children},f),b=ys(b,f,s,null),b.flags|=2,l.return=i,b.return=i,l.sibling=b,i.child=l,ws(i,e.child,null,s),l=i.child,l.memoizedState=Yh(s),l.childLanes=Gh(e,g,s),i.memoizedState=Ph,i=Uo(null,l));else if(En(i),Cd(b)){if(g=b.nextSibling&&b.nextSibling.dataset,g)var z=g.dgst;g=z,l=Error(o(419)),l.stack="",l.digest=g,_o({value:l,source:null,stack:null}),i=Qh(e,i,s)}else if($t||ya(e,i,s,!1),g=(s&e.childLanes)!==0,$t||g){if(g=zt,g!==null&&(l=Uv(g,s),l!==0&&l!==T.retryLane))throw T.retryLane=l,ps(e,l),Le(g,e,l),qh;_d(b)||qr(),i=Qh(e,i,s)}else _d(b)?(i.flags|=192,i.child=e.child,i=null):(e=T.treeContext,Vt=hi(b.nextSibling),re=i,gt=!0,xn=null,ci=!1,e!==null&&V0(i,e),i=Xh(i,l.children),i.flags|=4096);return i}return f?(An(),b=l.fallback,f=i.mode,T=e.child,z=T.sibling,l=Gi(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,z!==null?b=Gi(z,b):(b=ys(b,f,s,null),b.flags|=2),b.return=i,l.return=i,l.sibling=b,i.child=l,Uo(null,l),l=i.child,b=e.child.memoizedState,b===null?b=Yh(s):(f=b.cachePool,f!==null?(T=Ft._currentValue,f=f.parent!==T?{parent:T,pool:T}:f):f=H0(),b={baseLanes:b.baseLanes|s,cachePool:f}),l.memoizedState=b,l.childLanes=Gh(e,g,s),i.memoizedState=Ph,Uo(e.child,l)):(En(i),s=e.child,e=s.sibling,s=Gi(s,{mode:"visible",children:l.children}),s.return=i,s.sibling=null,e!==null&&(g=i.deletions,g===null?(i.deletions=[e],i.flags|=16):g.push(e)),i.child=s,i.memoizedState=null,s)}function Xh(e,i){return i=Or({mode:"visible",children:i},e.mode),i.return=e,e.child=i}function Or(e,i){return e=Xe(22,e,null,i),e.lanes=0,e}function Qh(e,i,s){return ws(i,e.child,null,s),e=Xh(i,i.pendingProps.children),e.flags|=2,i.memoizedState=null,e}function Ib(e,i,s){e.lanes|=i;var l=e.alternate;l!==null&&(l.lanes|=i),lh(e.return,i,s)}function Zh(e,i,s,l,f,h){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:f,treeForkCount:h}:(g.isBackwards=i,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=s,g.tailMode=f,g.treeForkCount=h)}function Wb(e,i,s){var l=i.pendingProps,f=l.revealOrder,h=l.tail;l=l.children;var g=Gt.current,b=(g&2)!==0;if(b?(g=g&1|2,i.flags|=128):g&=1,Z(Gt,g),ce(e,i,l,s),l=gt?Mo:0,!b&&e!==null&&(e.flags&128)!==0)t:for(e=i.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ib(e,s,i);else if(e.tag===19)Ib(e,s,i);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===i)break t;for(;e.sibling===null;){if(e.return===null||e.return===i)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(s=i.child,f=null;s!==null;)e=s.alternate,e!==null&&br(e)===null&&(f=s),s=s.sibling;s=f,s===null?(f=i.child,i.child=null):(f=s.sibling,s.sibling=null),Zh(i,!1,f,s,h,l);break;case"backwards":case"unstable_legacy-backwards":for(s=null,f=i.child,i.child=null;f!==null;){if(e=f.alternate,e!==null&&br(e)===null){i.child=f;break}e=f.sibling,f.sibling=s,s=f,f=e}Zh(i,!0,s,null,h,l);break;case"together":Zh(i,!1,null,null,void 0,l);break;default:i.memoizedState=null}return i.child}function Ji(e,i,s){if(e!==null&&(i.dependencies=e.dependencies),On|=i.lanes,(s&i.childLanes)===0)if(e!==null){if(ya(e,i,s,!1),(s&i.childLanes)===0)return null}else return null;if(e!==null&&i.child!==e.child)throw Error(o(153));if(i.child!==null){for(e=i.child,s=Gi(e,e.pendingProps),i.child=s,s.return=i;e.sibling!==null;)e=e.sibling,s=s.sibling=Gi(e,e.pendingProps),s.return=i;s.sibling=null}return i.child}function Kh(e,i){return(e.lanes&i)!==0?!0:(e=e.dependencies,!!(e!==null&&fr(e)))}function LR(e,i,s){switch(i.tag){case 3:Me(i,i.stateNode.containerInfo),wn(i,Ft,e.memoizedState.cache),gs();break;case 27:case 5:ro(i);break;case 4:Me(i,i.stateNode.containerInfo);break;case 10:wn(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,bh(i),null;break;case 13:var l=i.memoizedState;if(l!==null)return l.dehydrated!==null?(En(i),i.flags|=128,null):(s&i.child.childLanes)!==0?$b(e,i,s):(En(i),e=Ji(e,i,s),e!==null?e.sibling:null);En(i);break;case 19:var f=(e.flags&128)!==0;if(l=(s&i.childLanes)!==0,l||(ya(e,i,s,!1),l=(s&i.childLanes)!==0),f){if(l)return Wb(e,i,s);i.flags|=128}if(f=i.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Z(Gt,Gt.current),l)break;return null;case 22:return i.lanes=0,Xb(e,i,s,i.pendingProps);case 24:wn(i,Ft,e.memoizedState.cache)}return Ji(e,i,s)}function tS(e,i,s){if(e!==null)if(e.memoizedProps!==i.pendingProps)$t=!0;else{if(!Kh(e,s)&&(i.flags&128)===0)return $t=!1,LR(e,i,s);$t=(e.flags&131072)!==0}else $t=!1,gt&&(i.flags&1048576)!==0&&R0(i,Mo,i.index);switch(i.lanes=0,i.tag){case 16:t:{var l=i.pendingProps;if(e=xs(i.elementType),i.type=e,typeof e=="function")Wf(e)?(l=_s(e,l),i.tag=1,i=Fb(null,i,e,l,s)):(i.tag=0,i=jh(null,i,e,l,s));else{if(e!=null){var f=e.$$typeof;if(f===H){i.tag=11,i=Pb(null,i,e,l,s);break t}else if(f===G){i.tag=14,i=Yb(null,i,e,l,s);break t}}throw i=Ee(e)||e,Error(o(306,i,""))}}return i;case 0:return jh(e,i,i.type,i.pendingProps,s);case 1:return l=i.type,f=_s(l,i.pendingProps),Fb(e,i,l,f,s);case 3:t:{if(Me(i,i.stateNode.containerInfo),e===null)throw Error(o(387));l=i.pendingProps;var h=i.memoizedState;f=h.element,mh(e,i),Ro(i,l,null,s);var g=i.memoizedState;if(l=g.cache,wn(i,Ft,l),l!==h.cache&&rh(i,[Ft],s,!0),Oo(),l=g.element,h.isDehydrated)if(h={element:l,isDehydrated:!1,cache:g.cache},i.updateQueue.baseState=h,i.memoizedState=h,i.flags&256){i=Jb(e,i,l,s);break t}else if(l!==f){f=li(Error(o(424)),i),_o(f),i=Jb(e,i,l,s);break t}else{switch(e=i.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Vt=hi(e.firstChild),re=i,gt=!0,xn=null,ci=!0,s=X0(i,null,l,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(gs(),l===f){i=Ji(e,i,s);break t}ce(e,i,l,s)}i=i.child}return i;case 26:return zr(e,i),e===null?(s=fx(i.type,null,i.pendingProps,null))?i.memoizedState=s:gt||(s=i.type,e=i.pendingProps,l=Zr(ut.current).createElement(s),l[le]=i,l[De]=e,fe(l,s,e),ne(l),i.stateNode=l):i.memoizedState=fx(i.type,e.memoizedProps,i.pendingProps,e.memoizedState),null;case 27:return ro(i),e===null&&gt&&(l=i.stateNode=rx(i.type,i.pendingProps,ut.current),re=i,ci=!0,f=Vt,kn(i.type)?(Ed=f,Vt=hi(l.firstChild)):Vt=f),ce(e,i,i.pendingProps.children,s),zr(e,i),e===null&&(i.flags|=4194304),i.child;case 5:return e===null&&gt&&((f=l=Vt)&&(l=f3(l,i.type,i.pendingProps,ci),l!==null?(i.stateNode=l,re=i,Vt=hi(l.firstChild),ci=!1,f=!0):f=!1),f||Tn(i)),ro(i),f=i.type,h=i.pendingProps,g=e!==null?e.memoizedProps:null,l=h.children,Td(f,h)?l=null:g!==null&&Td(f,g)&&(i.flags|=32),i.memoizedState!==null&&(f=xh(e,i,CR,null,null,s),Io._currentValue=f),zr(e,i),ce(e,i,l,s),i.child;case 6:return e===null&&gt&&((e=s=Vt)&&(s=h3(s,i.pendingProps,ci),s!==null?(i.stateNode=s,re=i,Vt=null,e=!0):e=!1),e||Tn(i)),null;case 13:return $b(e,i,s);case 4:return Me(i,i.stateNode.containerInfo),l=i.pendingProps,e===null?i.child=ws(i,null,l,s):ce(e,i,l,s),i.child;case 11:return Pb(e,i,i.type,i.pendingProps,s);case 7:return ce(e,i,i.pendingProps,s),i.child;case 8:return ce(e,i,i.pendingProps.children,s),i.child;case 12:return ce(e,i,i.pendingProps.children,s),i.child;case 10:return l=i.pendingProps,wn(i,i.type,l.value),ce(e,i,l.children,s),i.child;case 9:return f=i.type._context,l=i.pendingProps.children,bs(i),f=ue(f),l=l(f),i.flags|=1,ce(e,i,l,s),i.child;case 14:return Yb(e,i,i.type,i.pendingProps,s);case 15:return Gb(e,i,i.type,i.pendingProps,s);case 19:return Wb(e,i,s);case 31:return BR(e,i,s);case 22:return Xb(e,i,s,i.pendingProps);case 24:return bs(i),l=ue(Ft),e===null?(f=fh(),f===null&&(f=zt,h=uh(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=s),f=h),i.memoizedState={parent:l,cache:f},dh(i),wn(i,Ft,f)):((e.lanes&s)!==0&&(mh(e,i),Ro(i,null,null,s),Oo()),f=e.memoizedState,h=i.memoizedState,f.parent!==l?(f={parent:l,cache:l},i.memoizedState=f,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=f),wn(i,Ft,l)):(l=h.cache,wn(i,Ft,l),l!==f.cache&&rh(i,[Ft],s,!0))),ce(e,i,i.pendingProps.children,s),i.child;case 29:throw i.pendingProps}throw Error(o(156,i.tag))}function $i(e){e.flags|=4}function Fh(e,i,s,l,f){if((i=(e.mode&32)!==0)&&(i=!1),i){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(ES())e.flags|=8192;else throw Ts=pr,hh}else e.flags&=-16777217}function eS(e,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!yx(i))if(ES())e.flags|=8192;else throw Ts=pr,hh}function Rr(e,i){i!==null&&(e.flags|=4),e.flags&16384&&(i=e.tag!==22?Bv():536870912,e.lanes|=i,Aa|=i)}function No(e,i){if(!gt)switch(e.tailMode){case"hidden":i=e.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?i||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Bt(e){var i=e.alternate!==null&&e.alternate.child===e.child,s=0,l=0;if(i)for(var f=e.child;f!==null;)s|=f.lanes|f.childLanes,l|=f.subtreeFlags&65011712,l|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)s|=f.lanes|f.childLanes,l|=f.subtreeFlags,l|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=l,e.childLanes=s,i}function kR(e,i,s){var l=i.pendingProps;switch(nh(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(i),null;case 1:return Bt(i),null;case 3:return s=i.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),Zi(Ft),Yt(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(pa(i)?$i(i):e===null||e.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,ah())),Bt(i),null;case 26:var f=i.type,h=i.memoizedState;return e===null?($i(i),h!==null?(Bt(i),eS(i,h)):(Bt(i),Fh(i,f,null,l,s))):h?h!==e.memoizedState?($i(i),Bt(i),eS(i,h)):(Bt(i),i.flags&=-16777217):(e=e.memoizedProps,e!==l&&$i(i),Bt(i),Fh(i,f,e,l,s)),null;case 27:if(Yl(i),s=ut.current,f=i.type,e!==null&&i.stateNode!=null)e.memoizedProps!==l&&$i(i);else{if(!l){if(i.stateNode===null)throw Error(o(166));return Bt(i),null}e=I.current,pa(i)?B0(i):(e=rx(f,l,s),i.stateNode=e,$i(i))}return Bt(i),null;case 5:if(Yl(i),f=i.type,e!==null&&i.stateNode!=null)e.memoizedProps!==l&&$i(i);else{if(!l){if(i.stateNode===null)throw Error(o(166));return Bt(i),null}if(h=I.current,pa(i))B0(i);else{var g=Zr(ut.current);switch(h){case 1:h=g.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=g.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=g.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=g.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=g.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof l.is=="string"?g.createElement("select",{is:l.is}):g.createElement("select"),l.multiple?h.multiple=!0:l.size&&(h.size=l.size);break;default:h=typeof l.is=="string"?g.createElement(f,{is:l.is}):g.createElement(f)}}h[le]=i,h[De]=l;t:for(g=i.child;g!==null;){if(g.tag===5||g.tag===6)h.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===i)break t;for(;g.sibling===null;){if(g.return===null||g.return===i)break t;g=g.return}g.sibling.return=g.return,g=g.sibling}i.stateNode=h;t:switch(fe(h,f,l),f){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&$i(i)}}return Bt(i),Fh(i,i.type,e===null?null:e.memoizedProps,i.pendingProps,s),null;case 6:if(e&&i.stateNode!=null)e.memoizedProps!==l&&$i(i);else{if(typeof l!="string"&&i.stateNode===null)throw Error(o(166));if(e=ut.current,pa(i)){if(e=i.stateNode,s=i.memoizedProps,l=null,f=re,f!==null)switch(f.tag){case 27:case 5:l=f.memoizedProps}e[le]=i,e=!!(e.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||$S(e.nodeValue,s)),e||Tn(i,!0)}else e=Zr(e).createTextNode(l),e[le]=i,i.stateNode=e}return Bt(i),null;case 31:if(s=i.memoizedState,e===null||e.memoizedState!==null){if(l=pa(i),s!==null){if(e===null){if(!l)throw Error(o(318));if(e=i.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[le]=i}else gs(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Bt(i),e=!1}else s=ah(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return i.flags&256?(Ze(i),i):(Ze(i),null);if((i.flags&128)!==0)throw Error(o(558))}return Bt(i),null;case 13:if(l=i.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=pa(i),l!==null&&l.dehydrated!==null){if(e===null){if(!f)throw Error(o(318));if(f=i.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(o(317));f[le]=i}else gs(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Bt(i),f=!1}else f=ah(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return i.flags&256?(Ze(i),i):(Ze(i),null)}return Ze(i),(i.flags&128)!==0?(i.lanes=s,i):(s=l!==null,e=e!==null&&e.memoizedState!==null,s&&(l=i.child,f=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(f=l.alternate.memoizedState.cachePool.pool),h=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==f&&(l.flags|=2048)),s!==e&&s&&(i.child.flags|=8192),Rr(i,i.updateQueue),Bt(i),null);case 4:return Yt(),e===null&&gd(i.stateNode.containerInfo),Bt(i),null;case 10:return Zi(i.type),Bt(i),null;case 19:if(j(Gt),l=i.memoizedState,l===null)return Bt(i),null;if(f=(i.flags&128)!==0,h=l.rendering,h===null)if(f)No(l,!1);else{if(jt!==0||e!==null&&(e.flags&128)!==0)for(e=i.child;e!==null;){if(h=br(e),h!==null){for(i.flags|=128,No(l,!1),e=h.updateQueue,i.updateQueue=e,Rr(i,e),i.subtreeFlags=0,e=s,s=i.child;s!==null;)D0(s,e),s=s.sibling;return Z(Gt,Gt.current&1|2),gt&&Xi(i,l.treeForkCount),i.child}e=e.sibling}l.tail!==null&&je()>Ur&&(i.flags|=128,f=!0,No(l,!1),i.lanes=4194304)}else{if(!f)if(e=br(h),e!==null){if(i.flags|=128,f=!0,e=e.updateQueue,i.updateQueue=e,Rr(i,e),No(l,!0),l.tail===null&&l.tailMode==="hidden"&&!h.alternate&&!gt)return Bt(i),null}else 2*je()-l.renderingStartTime>Ur&&s!==536870912&&(i.flags|=128,f=!0,No(l,!1),i.lanes=4194304);l.isBackwards?(h.sibling=i.child,i.child=h):(e=l.last,e!==null?e.sibling=h:i.child=h,l.last=h)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=je(),e.sibling=null,s=Gt.current,Z(Gt,f?s&1|2:s&1),gt&&Xi(i,l.treeForkCount),e):(Bt(i),null);case 22:case 23:return Ze(i),vh(),l=i.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(i.flags|=8192):l&&(i.flags|=8192),l?(s&536870912)!==0&&(i.flags&128)===0&&(Bt(i),i.subtreeFlags&6&&(i.flags|=8192)):Bt(i),s=i.updateQueue,s!==null&&Rr(i,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),l=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),l!==s&&(i.flags|=2048),e!==null&&j(Ss),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),Zi(Ft),Bt(i),null;case 25:return null;case 30:return null}throw Error(o(156,i.tag))}function UR(e,i){switch(nh(i),i.tag){case 1:return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 3:return Zi(Ft),Yt(),e=i.flags,(e&65536)!==0&&(e&128)===0?(i.flags=e&-65537|128,i):null;case 26:case 27:case 5:return Yl(i),null;case 31:if(i.memoizedState!==null){if(Ze(i),i.alternate===null)throw Error(o(340));gs()}return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 13:if(Ze(i),e=i.memoizedState,e!==null&&e.dehydrated!==null){if(i.alternate===null)throw Error(o(340));gs()}return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 19:return j(Gt),null;case 4:return Yt(),null;case 10:return Zi(i.type),null;case 22:case 23:return Ze(i),vh(),e!==null&&j(Ss),e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 24:return Zi(Ft),null;case 25:return null;default:return null}}function iS(e,i){switch(nh(i),i.tag){case 3:Zi(Ft),Yt();break;case 26:case 27:case 5:Yl(i);break;case 4:Yt();break;case 31:i.memoizedState!==null&&Ze(i);break;case 13:Ze(i);break;case 19:j(Gt);break;case 10:Zi(i.type);break;case 22:case 23:Ze(i),vh(),e!==null&&j(Ss);break;case 24:Zi(Ft)}}function Ho(e,i){try{var s=i.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var f=l.next;s=f;do{if((s.tag&e)===e){l=void 0;var h=s.create,g=s.inst;l=h(),g.destroy=l}s=s.next}while(s!==f)}}catch(b){_t(i,i.return,b)}}function Dn(e,i,s){try{var l=i.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var h=f.next;l=h;do{if((l.tag&e)===e){var g=l.inst,b=g.destroy;if(b!==void 0){g.destroy=void 0,f=i;var T=s,z=b;try{z()}catch(k){_t(f,T,k)}}}l=l.next}while(l!==h)}}catch(k){_t(i,i.return,k)}}function nS(e){var i=e.updateQueue;if(i!==null){var s=e.stateNode;try{Z0(i,s)}catch(l){_t(e,e.return,l)}}}function sS(e,i,s){s.props=_s(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(l){_t(e,i,l)}}function qo(e,i){try{var s=e.ref;if(s!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof s=="function"?e.refCleanup=s(l):s.current=l}}catch(f){_t(e,i,f)}}function Bi(e,i){var s=e.ref,l=e.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(f){_t(e,i,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(f){_t(e,i,f)}else s.current=null}function aS(e){var i=e.type,s=e.memoizedProps,l=e.stateNode;try{t:switch(i){case"button":case"input":case"select":case"textarea":s.autoFocus&&l.focus();break t;case"img":s.src?l.src=s.src:s.srcSet&&(l.srcset=s.srcSet)}}catch(f){_t(e,e.return,f)}}function Jh(e,i,s){try{var l=e.stateNode;a3(l,e.type,s,i),l[De]=i}catch(f){_t(e,e.return,f)}}function oS(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&kn(e.type)||e.tag===4}function $h(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||oS(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&kn(e.type)||e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ih(e,i,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,i?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,i):(i=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,i.appendChild(e),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Pi));else if(l!==4&&(l===27&&kn(e.type)&&(s=e.stateNode,i=null),e=e.child,e!==null))for(Ih(e,i,s),e=e.sibling;e!==null;)Ih(e,i,s),e=e.sibling}function Vr(e,i,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,i?s.insertBefore(e,i):s.appendChild(e);else if(l!==4&&(l===27&&kn(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(Vr(e,i,s),e=e.sibling;e!==null;)Vr(e,i,s),e=e.sibling}function lS(e){var i=e.stateNode,s=e.memoizedProps;try{for(var l=e.type,f=i.attributes;f.length;)i.removeAttributeNode(f[0]);fe(i,l,s),i[le]=e,i[De]=s}catch(h){_t(e,e.return,h)}}var Ii=!1,It=!1,Wh=!1,rS=typeof WeakSet=="function"?WeakSet:Set,se=null;function NR(e,i){if(e=e.containerInfo,Sd=tu,e=S0(e),Qf(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else t:{s=(s=e.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var f=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{s.nodeType,h.nodeType}catch{s=null;break t}var g=0,b=-1,T=-1,z=0,k=0,q=e,O=null;e:for(;;){for(var V;q!==s||f!==0&&q.nodeType!==3||(b=g+f),q!==h||l!==0&&q.nodeType!==3||(T=g+l),q.nodeType===3&&(g+=q.nodeValue.length),(V=q.firstChild)!==null;)O=q,q=V;for(;;){if(q===e)break e;if(O===s&&++z===f&&(b=g),O===h&&++k===l&&(T=g),(V=q.nextSibling)!==null)break;q=O,O=q.parentNode}q=V}s=b===-1||T===-1?null:{start:b,end:T}}else s=null}s=s||{start:0,end:0}}else s=null;for(xd={focusedElem:e,selectionRange:s},tu=!1,se=i;se!==null;)if(i=se,e=i.child,(i.subtreeFlags&1028)!==0&&e!==null)e.return=i,se=e;else for(;se!==null;){switch(i=se,h=i.alternate,e=i.flags,i.tag){case 0:if((e&4)!==0&&(e=i.updateQueue,e=e!==null?e.events:null,e!==null))for(s=0;s<e.length;s++)f=e[s],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,s=i,f=h.memoizedProps,h=h.memoizedState,l=s.stateNode;try{var J=_s(s.type,f);e=l.getSnapshotBeforeUpdate(J,h),l.__reactInternalSnapshotBeforeUpdate=e}catch(nt){_t(s,s.return,nt)}}break;case 3:if((e&1024)!==0){if(e=i.stateNode.containerInfo,s=e.nodeType,s===9)Md(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Md(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=i.sibling,e!==null){e.return=i.return,se=e;break}se=i.return}}function uS(e,i,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:tn(e,s),l&4&&Ho(5,s);break;case 1:if(tn(e,s),l&4)if(e=s.stateNode,i===null)try{e.componentDidMount()}catch(g){_t(s,s.return,g)}else{var f=_s(s.type,i.memoizedProps);i=i.memoizedState;try{e.componentDidUpdate(f,i,e.__reactInternalSnapshotBeforeUpdate)}catch(g){_t(s,s.return,g)}}l&64&&nS(s),l&512&&qo(s,s.return);break;case 3:if(tn(e,s),l&64&&(e=s.updateQueue,e!==null)){if(i=null,s.child!==null)switch(s.child.tag){case 27:case 5:i=s.child.stateNode;break;case 1:i=s.child.stateNode}try{Z0(e,i)}catch(g){_t(s,s.return,g)}}break;case 27:i===null&&l&4&&lS(s);case 26:case 5:tn(e,s),i===null&&l&4&&aS(s),l&512&&qo(s,s.return);break;case 12:tn(e,s);break;case 31:tn(e,s),l&4&&hS(e,s);break;case 13:tn(e,s),l&4&&dS(e,s),l&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=ZR.bind(null,s),d3(e,s))));break;case 22:if(l=s.memoizedState!==null||Ii,!l){i=i!==null&&i.memoizedState!==null||It,f=Ii;var h=It;Ii=l,(It=i)&&!h?en(e,s,(s.subtreeFlags&8772)!==0):tn(e,s),Ii=f,It=h}break;case 30:break;default:tn(e,s)}}function cS(e){var i=e.alternate;i!==null&&(e.alternate=null,cS(i)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(i=e.stateNode,i!==null&&Df(i)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var kt=null,Oe=!1;function Wi(e,i,s){for(s=s.child;s!==null;)fS(e,i,s),s=s.sibling}function fS(e,i,s){if(Pe&&typeof Pe.onCommitFiberUnmount=="function")try{Pe.onCommitFiberUnmount(uo,s)}catch{}switch(s.tag){case 26:It||Bi(s,i),Wi(e,i,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:It||Bi(s,i);var l=kt,f=Oe;kn(s.type)&&(kt=s.stateNode,Oe=!1),Wi(e,i,s),Fo(s.stateNode),kt=l,Oe=f;break;case 5:It||Bi(s,i);case 6:if(l=kt,f=Oe,kt=null,Wi(e,i,s),kt=l,Oe=f,kt!==null)if(Oe)try{(kt.nodeType===9?kt.body:kt.nodeName==="HTML"?kt.ownerDocument.body:kt).removeChild(s.stateNode)}catch(h){_t(s,i,h)}else try{kt.removeChild(s.stateNode)}catch(h){_t(s,i,h)}break;case 18:kt!==null&&(Oe?(e=kt,nx(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),ka(e)):nx(kt,s.stateNode));break;case 4:l=kt,f=Oe,kt=s.stateNode.containerInfo,Oe=!0,Wi(e,i,s),kt=l,Oe=f;break;case 0:case 11:case 14:case 15:Dn(2,s,i),It||Dn(4,s,i),Wi(e,i,s);break;case 1:It||(Bi(s,i),l=s.stateNode,typeof l.componentWillUnmount=="function"&&sS(s,i,l)),Wi(e,i,s);break;case 21:Wi(e,i,s);break;case 22:It=(l=It)||s.memoizedState!==null,Wi(e,i,s),It=l;break;default:Wi(e,i,s)}}function hS(e,i){if(i.memoizedState===null&&(e=i.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ka(e)}catch(s){_t(i,i.return,s)}}}function dS(e,i){if(i.memoizedState===null&&(e=i.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ka(e)}catch(s){_t(i,i.return,s)}}function HR(e){switch(e.tag){case 31:case 13:case 19:var i=e.stateNode;return i===null&&(i=e.stateNode=new rS),i;case 22:return e=e.stateNode,i=e._retryCache,i===null&&(i=e._retryCache=new rS),i;default:throw Error(o(435,e.tag))}}function Br(e,i){var s=HR(e);i.forEach(function(l){if(!s.has(l)){s.add(l);var f=KR.bind(null,e,l);l.then(f,f)}})}function Re(e,i){var s=i.deletions;if(s!==null)for(var l=0;l<s.length;l++){var f=s[l],h=e,g=i,b=g;t:for(;b!==null;){switch(b.tag){case 27:if(kn(b.type)){kt=b.stateNode,Oe=!1;break t}break;case 5:kt=b.stateNode,Oe=!1;break t;case 3:case 4:kt=b.stateNode.containerInfo,Oe=!0;break t}b=b.return}if(kt===null)throw Error(o(160));fS(h,g,f),kt=null,Oe=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)mS(i,e),i=i.sibling}var wi=null;function mS(e,i){var s=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Re(i,e),Ve(e),l&4&&(Dn(3,e,e.return),Ho(3,e),Dn(5,e,e.return));break;case 1:Re(i,e),Ve(e),l&512&&(It||s===null||Bi(s,s.return)),l&64&&Ii&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?l:s.concat(l))));break;case 26:var f=wi;if(Re(i,e),Ve(e),l&512&&(It||s===null||Bi(s,s.return)),l&4){var h=s!==null?s.memoizedState:null;if(l=e.memoizedState,s===null)if(l===null)if(e.stateNode===null){t:{l=e.type,s=e.memoizedProps,f=f.ownerDocument||f;e:switch(l){case"title":h=f.getElementsByTagName("title")[0],(!h||h[ho]||h[le]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(l),f.head.insertBefore(h,f.querySelector("head > title"))),fe(h,l,s),h[le]=e,ne(h),l=h;break t;case"link":var g=mx("link","href",f).get(l+(s.href||""));if(g){for(var b=0;b<g.length;b++)if(h=g[b],h.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&h.getAttribute("rel")===(s.rel==null?null:s.rel)&&h.getAttribute("title")===(s.title==null?null:s.title)&&h.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){g.splice(b,1);break e}}h=f.createElement(l),fe(h,l,s),f.head.appendChild(h);break;case"meta":if(g=mx("meta","content",f).get(l+(s.content||""))){for(b=0;b<g.length;b++)if(h=g[b],h.getAttribute("content")===(s.content==null?null:""+s.content)&&h.getAttribute("name")===(s.name==null?null:s.name)&&h.getAttribute("property")===(s.property==null?null:s.property)&&h.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&h.getAttribute("charset")===(s.charSet==null?null:s.charSet)){g.splice(b,1);break e}}h=f.createElement(l),fe(h,l,s),f.head.appendChild(h);break;default:throw Error(o(468,l))}h[le]=e,ne(h),l=h}e.stateNode=l}else px(f,e.type,e.stateNode);else e.stateNode=dx(f,l,e.memoizedProps);else h!==l?(h===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):h.count--,l===null?px(f,e.type,e.stateNode):dx(f,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Jh(e,e.memoizedProps,s.memoizedProps)}break;case 27:Re(i,e),Ve(e),l&512&&(It||s===null||Bi(s,s.return)),s!==null&&l&4&&Jh(e,e.memoizedProps,s.memoizedProps);break;case 5:if(Re(i,e),Ve(e),l&512&&(It||s===null||Bi(s,s.return)),e.flags&32){f=e.stateNode;try{aa(f,"")}catch(J){_t(e,e.return,J)}}l&4&&e.stateNode!=null&&(f=e.memoizedProps,Jh(e,f,s!==null?s.memoizedProps:f)),l&1024&&(Wh=!0);break;case 6:if(Re(i,e),Ve(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,s=e.stateNode;try{s.nodeValue=l}catch(J){_t(e,e.return,J)}}break;case 3:if(Jr=null,f=wi,wi=Kr(i.containerInfo),Re(i,e),wi=f,Ve(e),l&4&&s!==null&&s.memoizedState.isDehydrated)try{ka(i.containerInfo)}catch(J){_t(e,e.return,J)}Wh&&(Wh=!1,pS(e));break;case 4:l=wi,wi=Kr(e.stateNode.containerInfo),Re(i,e),Ve(e),wi=l;break;case 12:Re(i,e),Ve(e);break;case 31:Re(i,e),Ve(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Br(e,l)));break;case 13:Re(i,e),Ve(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(kr=je()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Br(e,l)));break;case 22:f=e.memoizedState!==null;var T=s!==null&&s.memoizedState!==null,z=Ii,k=It;if(Ii=z||f,It=k||T,Re(i,e),It=k,Ii=z,Ve(e),l&8192)t:for(i=e.stateNode,i._visibility=f?i._visibility&-2:i._visibility|1,f&&(s===null||T||Ii||It||Cs(e)),s=null,i=e;;){if(i.tag===5||i.tag===26){if(s===null){T=s=i;try{if(h=T.stateNode,f)g=h.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{b=T.stateNode;var q=T.memoizedProps.style,O=q!=null&&q.hasOwnProperty("display")?q.display:null;b.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(J){_t(T,T.return,J)}}}else if(i.tag===6){if(s===null){T=i;try{T.stateNode.nodeValue=f?"":T.memoizedProps}catch(J){_t(T,T.return,J)}}}else if(i.tag===18){if(s===null){T=i;try{var V=T.stateNode;f?sx(V,!0):sx(T.stateNode,!1)}catch(J){_t(T,T.return,J)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===e)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break t;for(;i.sibling===null;){if(i.return===null||i.return===e)break t;s===i&&(s=null),i=i.return}s===i&&(s=null),i.sibling.return=i.return,i=i.sibling}l&4&&(l=e.updateQueue,l!==null&&(s=l.retryQueue,s!==null&&(l.retryQueue=null,Br(e,s))));break;case 19:Re(i,e),Ve(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Br(e,l)));break;case 30:break;case 21:break;default:Re(i,e),Ve(e)}}function Ve(e){var i=e.flags;if(i&2){try{for(var s,l=e.return;l!==null;){if(oS(l)){s=l;break}l=l.return}if(s==null)throw Error(o(160));switch(s.tag){case 27:var f=s.stateNode,h=$h(e);Vr(e,h,f);break;case 5:var g=s.stateNode;s.flags&32&&(aa(g,""),s.flags&=-33);var b=$h(e);Vr(e,b,g);break;case 3:case 4:var T=s.stateNode.containerInfo,z=$h(e);Ih(e,z,T);break;default:throw Error(o(161))}}catch(k){_t(e,e.return,k)}e.flags&=-3}i&4096&&(e.flags&=-4097)}function pS(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var i=e;pS(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),e=e.sibling}}function tn(e,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)uS(e,i.alternate,i),i=i.sibling}function Cs(e){for(e=e.child;e!==null;){var i=e;switch(i.tag){case 0:case 11:case 14:case 15:Dn(4,i,i.return),Cs(i);break;case 1:Bi(i,i.return);var s=i.stateNode;typeof s.componentWillUnmount=="function"&&sS(i,i.return,s),Cs(i);break;case 27:Fo(i.stateNode);case 26:case 5:Bi(i,i.return),Cs(i);break;case 22:i.memoizedState===null&&Cs(i);break;case 30:Cs(i);break;default:Cs(i)}e=e.sibling}}function en(e,i,s){for(s=s&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var l=i.alternate,f=e,h=i,g=h.flags;switch(h.tag){case 0:case 11:case 15:en(f,h,s),Ho(4,h);break;case 1:if(en(f,h,s),l=h,f=l.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(z){_t(l,l.return,z)}if(l=h,f=l.updateQueue,f!==null){var b=l.stateNode;try{var T=f.shared.hiddenCallbacks;if(T!==null)for(f.shared.hiddenCallbacks=null,f=0;f<T.length;f++)Q0(T[f],b)}catch(z){_t(l,l.return,z)}}s&&g&64&&nS(h),qo(h,h.return);break;case 27:lS(h);case 26:case 5:en(f,h,s),s&&l===null&&g&4&&aS(h),qo(h,h.return);break;case 12:en(f,h,s);break;case 31:en(f,h,s),s&&g&4&&hS(f,h);break;case 13:en(f,h,s),s&&g&4&&dS(f,h);break;case 22:h.memoizedState===null&&en(f,h,s),qo(h,h.return);break;case 30:break;default:en(f,h,s)}i=i.sibling}}function td(e,i){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(e=i.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&Co(s))}function ed(e,i){e=null,i.alternate!==null&&(e=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==e&&(i.refCount++,e!=null&&Co(e))}function Mi(e,i,s,l){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)yS(e,i,s,l),i=i.sibling}function yS(e,i,s,l){var f=i.flags;switch(i.tag){case 0:case 11:case 15:Mi(e,i,s,l),f&2048&&Ho(9,i);break;case 1:Mi(e,i,s,l);break;case 3:Mi(e,i,s,l),f&2048&&(e=null,i.alternate!==null&&(e=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==e&&(i.refCount++,e!=null&&Co(e)));break;case 12:if(f&2048){Mi(e,i,s,l),e=i.stateNode;try{var h=i.memoizedProps,g=h.id,b=h.onPostCommit;typeof b=="function"&&b(g,i.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){_t(i,i.return,T)}}else Mi(e,i,s,l);break;case 31:Mi(e,i,s,l);break;case 13:Mi(e,i,s,l);break;case 23:break;case 22:h=i.stateNode,g=i.alternate,i.memoizedState!==null?h._visibility&2?Mi(e,i,s,l):jo(e,i):h._visibility&2?Mi(e,i,s,l):(h._visibility|=2,_a(e,i,s,l,(i.subtreeFlags&10256)!==0||!1)),f&2048&&td(g,i);break;case 24:Mi(e,i,s,l),f&2048&&ed(i.alternate,i);break;default:Mi(e,i,s,l)}}function _a(e,i,s,l,f){for(f=f&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var h=e,g=i,b=s,T=l,z=g.flags;switch(g.tag){case 0:case 11:case 15:_a(h,g,b,T,f),Ho(8,g);break;case 23:break;case 22:var k=g.stateNode;g.memoizedState!==null?k._visibility&2?_a(h,g,b,T,f):jo(h,g):(k._visibility|=2,_a(h,g,b,T,f)),f&&z&2048&&td(g.alternate,g);break;case 24:_a(h,g,b,T,f),f&&z&2048&&ed(g.alternate,g);break;default:_a(h,g,b,T,f)}i=i.sibling}}function jo(e,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var s=e,l=i,f=l.flags;switch(l.tag){case 22:jo(s,l),f&2048&&td(l.alternate,l);break;case 24:jo(s,l),f&2048&&ed(l.alternate,l);break;default:jo(s,l)}i=i.sibling}}var Po=8192;function Ca(e,i,s){if(e.subtreeFlags&Po)for(e=e.child;e!==null;)gS(e,i,s),e=e.sibling}function gS(e,i,s){switch(e.tag){case 26:Ca(e,i,s),e.flags&Po&&e.memoizedState!==null&&_3(s,wi,e.memoizedState,e.memoizedProps);break;case 5:Ca(e,i,s);break;case 3:case 4:var l=wi;wi=Kr(e.stateNode.containerInfo),Ca(e,i,s),wi=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Po,Po=16777216,Ca(e,i,s),Po=l):Ca(e,i,s));break;default:Ca(e,i,s)}}function vS(e){var i=e.alternate;if(i!==null&&(e=i.child,e!==null)){i.child=null;do i=e.sibling,e.sibling=null,e=i;while(e!==null)}}function Yo(e){var i=e.deletions;if((e.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var l=i[s];se=l,SS(l,e)}vS(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)bS(e),e=e.sibling}function bS(e){switch(e.tag){case 0:case 11:case 15:Yo(e),e.flags&2048&&Dn(9,e,e.return);break;case 3:Yo(e);break;case 12:Yo(e);break;case 22:var i=e.stateNode;e.memoizedState!==null&&i._visibility&2&&(e.return===null||e.return.tag!==13)?(i._visibility&=-3,Lr(e)):Yo(e);break;default:Yo(e)}}function Lr(e){var i=e.deletions;if((e.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var l=i[s];se=l,SS(l,e)}vS(e)}for(e=e.child;e!==null;){switch(i=e,i.tag){case 0:case 11:case 15:Dn(8,i,i.return),Lr(i);break;case 22:s=i.stateNode,s._visibility&2&&(s._visibility&=-3,Lr(i));break;default:Lr(i)}e=e.sibling}}function SS(e,i){for(;se!==null;){var s=se;switch(s.tag){case 0:case 11:case 15:Dn(8,s,i);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var l=s.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Co(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,se=l;else t:for(s=e;se!==null;){l=se;var f=l.sibling,h=l.return;if(cS(l),l===s){se=null;break t}if(f!==null){f.return=h,se=f;break t}se=h}}}var qR={getCacheForType:function(e){var i=ue(Ft),s=i.data.get(e);return s===void 0&&(s=e(),i.data.set(e,s)),s},cacheSignal:function(){return ue(Ft).controller.signal}},jR=typeof WeakMap=="function"?WeakMap:Map,Tt=0,zt=null,ct=null,pt=0,Mt=0,Ke=null,zn=!1,Ea=!1,id=!1,nn=0,jt=0,On=0,Es=0,nd=0,Fe=0,Aa=0,Go=null,Be=null,sd=!1,kr=0,xS=0,Ur=1/0,Nr=null,Rn=null,ee=0,Vn=null,Da=null,sn=0,ad=0,od=null,TS=null,Xo=0,ld=null;function Je(){return(Tt&2)!==0&&pt!==0?pt&-pt:U.T!==null?dd():Nv()}function wS(){if(Fe===0)if((pt&536870912)===0||gt){var e=Ql;Ql<<=1,(Ql&3932160)===0&&(Ql=262144),Fe=e}else Fe=536870912;return e=Qe.current,e!==null&&(e.flags|=32),Fe}function Le(e,i,s){(e===zt&&(Mt===2||Mt===9)||e.cancelPendingCommit!==null)&&(za(e,0),Bn(e,pt,Fe,!1)),fo(e,s),((Tt&2)===0||e!==zt)&&(e===zt&&((Tt&2)===0&&(Es|=s),jt===4&&Bn(e,pt,Fe,!1)),Li(e))}function MS(e,i,s){if((Tt&6)!==0)throw Error(o(327));var l=!s&&(i&127)===0&&(i&e.expiredLanes)===0||co(e,i),f=l?GR(e,i):ud(e,i,!0),h=l;do{if(f===0){Ea&&!l&&Bn(e,i,0,!1);break}else{if(s=e.current.alternate,h&&!PR(s)){f=ud(e,i,!1),h=!1;continue}if(f===2){if(h=i,e.errorRecoveryDisabledLanes&h)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){i=g;t:{var b=e;f=Go;var T=b.current.memoizedState.isDehydrated;if(T&&(za(b,g).flags|=256),g=ud(b,g,!1),g!==2){if(id&&!T){b.errorRecoveryDisabledLanes|=h,Es|=h,f=4;break t}h=Be,Be=f,h!==null&&(Be===null?Be=h:Be.push.apply(Be,h))}f=g}if(h=!1,f!==2)continue}}if(f===1){za(e,0),Bn(e,i,0,!0);break}t:{switch(l=e,h=f,h){case 0:case 1:throw Error(o(345));case 4:if((i&4194048)!==i)break;case 6:Bn(l,i,Fe,!zn);break t;case 2:Be=null;break;case 3:case 5:break;default:throw Error(o(329))}if((i&62914560)===i&&(f=kr+300-je(),10<f)){if(Bn(l,i,Fe,!zn),Kl(l,0,!0)!==0)break t;sn=i,l.timeoutHandle=ex(_S.bind(null,l,s,Be,Nr,sd,i,Fe,Es,Aa,zn,h,"Throttled",-0,0),f);break t}_S(l,s,Be,Nr,sd,i,Fe,Es,Aa,zn,h,null,-0,0)}}break}while(!0);Li(e)}function _S(e,i,s,l,f,h,g,b,T,z,k,q,O,V){if(e.timeoutHandle=-1,q=i.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Pi},gS(i,h,q);var J=(h&62914560)===h?kr-je():(h&4194048)===h?xS-je():0;if(J=C3(q,J),J!==null){sn=h,e.cancelPendingCommit=J(VS.bind(null,e,i,h,s,l,f,g,b,T,k,q,null,O,V)),Bn(e,h,g,!z);return}}VS(e,i,h,s,l,f,g,b,T)}function PR(e){for(var i=e;;){var s=i.tag;if((s===0||s===11||s===15)&&i.flags&16384&&(s=i.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var l=0;l<s.length;l++){var f=s[l],h=f.getSnapshot;f=f.value;try{if(!Ge(h(),f))return!1}catch{return!1}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Bn(e,i,s,l){i&=~nd,i&=~Es,e.suspendedLanes|=i,e.pingedLanes&=~i,l&&(e.warmLanes|=i),l=e.expirationTimes;for(var f=i;0<f;){var h=31-Ye(f),g=1<<h;l[h]=-1,f&=~g}s!==0&&Lv(e,s,i)}function Hr(){return(Tt&6)===0?(Qo(0),!1):!0}function rd(){if(ct!==null){if(Mt===0)var e=ct.return;else e=ct,Qi=vs=null,Mh(e),Sa=null,Ao=0,e=ct;for(;e!==null;)iS(e.alternate,e),e=e.return;ct=null}}function za(e,i){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,r3(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),sn=0,rd(),zt=e,ct=s=Gi(e.current,null),pt=i,Mt=0,Ke=null,zn=!1,Ea=co(e,i),id=!1,Aa=Fe=nd=Es=On=jt=0,Be=Go=null,sd=!1,(i&8)!==0&&(i|=i&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=i;0<l;){var f=31-Ye(l),h=1<<f;i|=e[f],l&=~h}return nn=i,or(),s}function CS(e,i){lt=null,U.H=ko,i===ba||i===mr?(i=P0(),Mt=3):i===hh?(i=P0(),Mt=4):Mt=i===qh?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Ke=i,ct===null&&(jt=1,Ar(e,li(i,e.current)))}function ES(){var e=Qe.current;return e===null?!0:(pt&4194048)===pt?fi===null:(pt&62914560)===pt||(pt&536870912)!==0?e===fi:!1}function AS(){var e=U.H;return U.H=ko,e===null?ko:e}function DS(){var e=U.A;return U.A=qR,e}function qr(){jt=4,zn||(pt&4194048)!==pt&&Qe.current!==null||(Ea=!0),(On&134217727)===0&&(Es&134217727)===0||zt===null||Bn(zt,pt,Fe,!1)}function ud(e,i,s){var l=Tt;Tt|=2;var f=AS(),h=DS();(zt!==e||pt!==i)&&(Nr=null,za(e,i)),i=!1;var g=jt;t:do try{if(Mt!==0&&ct!==null){var b=ct,T=Ke;switch(Mt){case 8:rd(),g=6;break t;case 3:case 2:case 9:case 6:Qe.current===null&&(i=!0);var z=Mt;if(Mt=0,Ke=null,Oa(e,b,T,z),s&&Ea){g=0;break t}break;default:z=Mt,Mt=0,Ke=null,Oa(e,b,T,z)}}YR(),g=jt;break}catch(k){CS(e,k)}while(!0);return i&&e.shellSuspendCounter++,Qi=vs=null,Tt=l,U.H=f,U.A=h,ct===null&&(zt=null,pt=0,or()),g}function YR(){for(;ct!==null;)zS(ct)}function GR(e,i){var s=Tt;Tt|=2;var l=AS(),f=DS();zt!==e||pt!==i?(Nr=null,Ur=je()+500,za(e,i)):Ea=co(e,i);t:do try{if(Mt!==0&&ct!==null){i=ct;var h=Ke;e:switch(Mt){case 1:Mt=0,Ke=null,Oa(e,i,h,1);break;case 2:case 9:if(q0(h)){Mt=0,Ke=null,OS(i);break}i=function(){Mt!==2&&Mt!==9||zt!==e||(Mt=7),Li(e)},h.then(i,i);break t;case 3:Mt=7;break t;case 4:Mt=5;break t;case 7:q0(h)?(Mt=0,Ke=null,OS(i)):(Mt=0,Ke=null,Oa(e,i,h,7));break;case 5:var g=null;switch(ct.tag){case 26:g=ct.memoizedState;case 5:case 27:var b=ct;if(g?yx(g):b.stateNode.complete){Mt=0,Ke=null;var T=b.sibling;if(T!==null)ct=T;else{var z=b.return;z!==null?(ct=z,jr(z)):ct=null}break e}}Mt=0,Ke=null,Oa(e,i,h,5);break;case 6:Mt=0,Ke=null,Oa(e,i,h,6);break;case 8:rd(),jt=6;break t;default:throw Error(o(462))}}XR();break}catch(k){CS(e,k)}while(!0);return Qi=vs=null,U.H=l,U.A=f,Tt=s,ct!==null?0:(zt=null,pt=0,or(),jt)}function XR(){for(;ct!==null&&!m2();)zS(ct)}function zS(e){var i=tS(e.alternate,e,nn);e.memoizedProps=e.pendingProps,i===null?jr(e):ct=i}function OS(e){var i=e,s=i.alternate;switch(i.tag){case 15:case 0:i=Kb(s,i,i.pendingProps,i.type,void 0,pt);break;case 11:i=Kb(s,i,i.pendingProps,i.type.render,i.ref,pt);break;case 5:Mh(i);default:iS(s,i),i=ct=D0(i,nn),i=tS(s,i,nn)}e.memoizedProps=e.pendingProps,i===null?jr(e):ct=i}function Oa(e,i,s,l){Qi=vs=null,Mh(i),Sa=null,Ao=0;var f=i.return;try{if(VR(e,f,i,s,pt)){jt=1,Ar(e,li(s,e.current)),ct=null;return}}catch(h){if(f!==null)throw ct=f,h;jt=1,Ar(e,li(s,e.current)),ct=null;return}i.flags&32768?(gt||l===1?e=!0:Ea||(pt&536870912)!==0?e=!1:(zn=e=!0,(l===2||l===9||l===3||l===6)&&(l=Qe.current,l!==null&&l.tag===13&&(l.flags|=16384))),RS(i,e)):jr(i)}function jr(e){var i=e;do{if((i.flags&32768)!==0){RS(i,zn);return}e=i.return;var s=kR(i.alternate,i,nn);if(s!==null){ct=s;return}if(i=i.sibling,i!==null){ct=i;return}ct=i=e}while(i!==null);jt===0&&(jt=5)}function RS(e,i){do{var s=UR(e.alternate,e);if(s!==null){s.flags&=32767,ct=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!i&&(e=e.sibling,e!==null)){ct=e;return}ct=e=s}while(e!==null);jt=6,ct=null}function VS(e,i,s,l,f,h,g,b,T){e.cancelPendingCommit=null;do Pr();while(ee!==0);if((Tt&6)!==0)throw Error(o(327));if(i!==null){if(i===e.current)throw Error(o(177));if(h=i.lanes|i.childLanes,h|=$f,M2(e,s,h,g,b,T),e===zt&&(ct=zt=null,pt=0),Da=i,Vn=e,sn=s,ad=h,od=f,TS=l,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,FR(Gl,function(){return NS(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||l){l=U.T,U.T=null,f=P.p,P.p=2,g=Tt,Tt|=4;try{NR(e,i,s)}finally{Tt=g,P.p=f,U.T=l}}ee=1,BS(),LS(),kS()}}function BS(){if(ee===1){ee=0;var e=Vn,i=Da,s=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||s){s=U.T,U.T=null;var l=P.p;P.p=2;var f=Tt;Tt|=4;try{mS(i,e);var h=xd,g=S0(e.containerInfo),b=h.focusedElem,T=h.selectionRange;if(g!==b&&b&&b.ownerDocument&&b0(b.ownerDocument.documentElement,b)){if(T!==null&&Qf(b)){var z=T.start,k=T.end;if(k===void 0&&(k=z),"selectionStart"in b)b.selectionStart=z,b.selectionEnd=Math.min(k,b.value.length);else{var q=b.ownerDocument||document,O=q&&q.defaultView||window;if(O.getSelection){var V=O.getSelection(),J=b.textContent.length,nt=Math.min(T.start,J),Dt=T.end===void 0?nt:Math.min(T.end,J);!V.extend&&nt>Dt&&(g=Dt,Dt=nt,nt=g);var E=v0(b,nt),M=v0(b,Dt);if(E&&M&&(V.rangeCount!==1||V.anchorNode!==E.node||V.anchorOffset!==E.offset||V.focusNode!==M.node||V.focusOffset!==M.offset)){var D=q.createRange();D.setStart(E.node,E.offset),V.removeAllRanges(),nt>Dt?(V.addRange(D),V.extend(M.node,M.offset)):(D.setEnd(M.node,M.offset),V.addRange(D))}}}}for(q=[],V=b;V=V.parentNode;)V.nodeType===1&&q.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<q.length;b++){var N=q[b];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}tu=!!Sd,xd=Sd=null}finally{Tt=f,P.p=l,U.T=s}}e.current=i,ee=2}}function LS(){if(ee===2){ee=0;var e=Vn,i=Da,s=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||s){s=U.T,U.T=null;var l=P.p;P.p=2;var f=Tt;Tt|=4;try{uS(e,i.alternate,i)}finally{Tt=f,P.p=l,U.T=s}}ee=3}}function kS(){if(ee===4||ee===3){ee=0,p2();var e=Vn,i=Da,s=sn,l=TS;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?ee=5:(ee=0,Da=Vn=null,US(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(Rn=null),Ef(s),i=i.stateNode,Pe&&typeof Pe.onCommitFiberRoot=="function")try{Pe.onCommitFiberRoot(uo,i,void 0,(i.current.flags&128)===128)}catch{}if(l!==null){i=U.T,f=P.p,P.p=2,U.T=null;try{for(var h=e.onRecoverableError,g=0;g<l.length;g++){var b=l[g];h(b.value,{componentStack:b.stack})}}finally{U.T=i,P.p=f}}(sn&3)!==0&&Pr(),Li(e),f=e.pendingLanes,(s&261930)!==0&&(f&42)!==0?e===ld?Xo++:(Xo=0,ld=e):Xo=0,Qo(0)}}function US(e,i){(e.pooledCacheLanes&=i)===0&&(i=e.pooledCache,i!=null&&(e.pooledCache=null,Co(i)))}function Pr(){return BS(),LS(),kS(),NS()}function NS(){if(ee!==5)return!1;var e=Vn,i=ad;ad=0;var s=Ef(sn),l=U.T,f=P.p;try{P.p=32>s?32:s,U.T=null,s=od,od=null;var h=Vn,g=sn;if(ee=0,Da=Vn=null,sn=0,(Tt&6)!==0)throw Error(o(331));var b=Tt;if(Tt|=4,bS(h.current),yS(h,h.current,g,s),Tt=b,Qo(0,!1),Pe&&typeof Pe.onPostCommitFiberRoot=="function")try{Pe.onPostCommitFiberRoot(uo,h)}catch{}return!0}finally{P.p=f,U.T=l,US(e,i)}}function HS(e,i,s){i=li(s,i),i=Hh(e.stateNode,i,2),e=Cn(e,i,2),e!==null&&(fo(e,2),Li(e))}function _t(e,i,s){if(e.tag===3)HS(e,e,s);else for(;i!==null;){if(i.tag===3){HS(i,e,s);break}else if(i.tag===1){var l=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Rn===null||!Rn.has(l))){e=li(s,e),s=qb(2),l=Cn(i,s,2),l!==null&&(jb(s,l,i,e),fo(l,2),Li(l));break}}i=i.return}}function cd(e,i,s){var l=e.pingCache;if(l===null){l=e.pingCache=new jR;var f=new Set;l.set(i,f)}else f=l.get(i),f===void 0&&(f=new Set,l.set(i,f));f.has(s)||(id=!0,f.add(s),e=QR.bind(null,e,i,s),i.then(e,e))}function QR(e,i,s){var l=e.pingCache;l!==null&&l.delete(i),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,zt===e&&(pt&s)===s&&(jt===4||jt===3&&(pt&62914560)===pt&&300>je()-kr?(Tt&2)===0&&za(e,0):nd|=s,Aa===pt&&(Aa=0)),Li(e)}function qS(e,i){i===0&&(i=Bv()),e=ps(e,i),e!==null&&(fo(e,i),Li(e))}function ZR(e){var i=e.memoizedState,s=0;i!==null&&(s=i.retryLane),qS(e,s)}function KR(e,i){var s=0;switch(e.tag){case 31:case 13:var l=e.stateNode,f=e.memoizedState;f!==null&&(s=f.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(i),qS(e,s)}function FR(e,i){return wf(e,i)}var Yr=null,Ra=null,fd=!1,Gr=!1,hd=!1,Ln=0;function Li(e){e!==Ra&&e.next===null&&(Ra===null?Yr=Ra=e:Ra=Ra.next=e),Gr=!0,fd||(fd=!0,$R())}function Qo(e,i){if(!hd&&Gr){hd=!0;do for(var s=!1,l=Yr;l!==null;){if(e!==0){var f=l.pendingLanes;if(f===0)var h=0;else{var g=l.suspendedLanes,b=l.pingedLanes;h=(1<<31-Ye(42|e)+1)-1,h&=f&~(g&~b),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(s=!0,GS(l,h))}else h=pt,h=Kl(l,l===zt?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(h&3)===0||co(l,h)||(s=!0,GS(l,h));l=l.next}while(s);hd=!1}}function JR(){jS()}function jS(){Gr=fd=!1;var e=0;Ln!==0&&l3()&&(e=Ln);for(var i=je(),s=null,l=Yr;l!==null;){var f=l.next,h=PS(l,i);h===0?(l.next=null,s===null?Yr=f:s.next=f,f===null&&(Ra=s)):(s=l,(e!==0||(h&3)!==0)&&(Gr=!0)),l=f}ee!==0&&ee!==5||Qo(e),Ln!==0&&(Ln=0)}function PS(e,i){for(var s=e.suspendedLanes,l=e.pingedLanes,f=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var g=31-Ye(h),b=1<<g,T=f[g];T===-1?((b&s)===0||(b&l)!==0)&&(f[g]=w2(b,i)):T<=i&&(e.expiredLanes|=b),h&=~b}if(i=zt,s=pt,s=Kl(e,e===i?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,s===0||e===i&&(Mt===2||Mt===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Mf(l),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||co(e,s)){if(i=s&-s,i===e.callbackPriority)return i;switch(l!==null&&Mf(l),Ef(s)){case 2:case 8:s=Rv;break;case 32:s=Gl;break;case 268435456:s=Vv;break;default:s=Gl}return l=YS.bind(null,e),s=wf(s,l),e.callbackPriority=i,e.callbackNode=s,i}return l!==null&&l!==null&&Mf(l),e.callbackPriority=2,e.callbackNode=null,2}function YS(e,i){if(ee!==0&&ee!==5)return e.callbackNode=null,e.callbackPriority=0,null;var s=e.callbackNode;if(Pr()&&e.callbackNode!==s)return null;var l=pt;return l=Kl(e,e===zt?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(MS(e,l,i),PS(e,je()),e.callbackNode!=null&&e.callbackNode===s?YS.bind(null,e):null)}function GS(e,i){if(Pr())return null;MS(e,i,!0)}function $R(){u3(function(){(Tt&6)!==0?wf(Ov,JR):jS()})}function dd(){if(Ln===0){var e=ga;e===0&&(e=Xl,Xl<<=1,(Xl&261888)===0&&(Xl=256)),Ln=e}return Ln}function XS(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Il(""+e)}function QS(e,i){var s=i.ownerDocument.createElement("input");return s.name=i.name,s.value=i.value,e.id&&s.setAttribute("form",e.id),i.parentNode.insertBefore(s,i),e=new FormData(e),s.parentNode.removeChild(s),e}function IR(e,i,s,l,f){if(i==="submit"&&s&&s.stateNode===f){var h=XS((f[De]||null).action),g=l.submitter;g&&(i=(i=g[De]||null)?XS(i.formAction):g.getAttribute("formAction"),i!==null&&(h=i,g=null));var b=new ir("action","action",null,l,f);e.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ln!==0){var T=g?QS(f,g):new FormData(f);Vh(s,{pending:!0,data:T,method:f.method,action:h},null,T)}}else typeof h=="function"&&(b.preventDefault(),T=g?QS(f,g):new FormData(f),Vh(s,{pending:!0,data:T,method:f.method,action:h},h,T))},currentTarget:f}]})}}for(var md=0;md<Jf.length;md++){var pd=Jf[md],WR=pd.toLowerCase(),t3=pd[0].toUpperCase()+pd.slice(1);Ti(WR,"on"+t3)}Ti(w0,"onAnimationEnd"),Ti(M0,"onAnimationIteration"),Ti(_0,"onAnimationStart"),Ti("dblclick","onDoubleClick"),Ti("focusin","onFocus"),Ti("focusout","onBlur"),Ti(yR,"onTransitionRun"),Ti(gR,"onTransitionStart"),Ti(vR,"onTransitionCancel"),Ti(C0,"onTransitionEnd"),na("onMouseEnter",["mouseout","mouseover"]),na("onMouseLeave",["mouseout","mouseover"]),na("onPointerEnter",["pointerout","pointerover"]),na("onPointerLeave",["pointerout","pointerover"]),fs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fs("onBeforeInput",["compositionend","keypress","textInput","paste"]),fs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),e3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zo));function ZS(e,i){i=(i&4)!==0;for(var s=0;s<e.length;s++){var l=e[s],f=l.event;l=l.listeners;t:{var h=void 0;if(i)for(var g=l.length-1;0<=g;g--){var b=l[g],T=b.instance,z=b.currentTarget;if(b=b.listener,T!==h&&f.isPropagationStopped())break t;h=b,f.currentTarget=z;try{h(f)}catch(k){ar(k)}f.currentTarget=null,h=T}else for(g=0;g<l.length;g++){if(b=l[g],T=b.instance,z=b.currentTarget,b=b.listener,T!==h&&f.isPropagationStopped())break t;h=b,f.currentTarget=z;try{h(f)}catch(k){ar(k)}f.currentTarget=null,h=T}}}}function ft(e,i){var s=i[Af];s===void 0&&(s=i[Af]=new Set);var l=e+"__bubble";s.has(l)||(KS(i,e,2,!1),s.add(l))}function yd(e,i,s){var l=0;i&&(l|=4),KS(s,e,l,i)}var Xr="_reactListening"+Math.random().toString(36).slice(2);function gd(e){if(!e[Xr]){e[Xr]=!0,jv.forEach(function(s){s!=="selectionchange"&&(e3.has(s)||yd(s,!1,e),yd(s,!0,e))});var i=e.nodeType===9?e:e.ownerDocument;i===null||i[Xr]||(i[Xr]=!0,yd("selectionchange",!1,i))}}function KS(e,i,s,l){switch(wx(i)){case 2:var f=D3;break;case 8:f=z3;break;default:f=Rd}s=f.bind(null,i,s,e),f=void 0,!Uf||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(f=!0),l?f!==void 0?e.addEventListener(i,s,{capture:!0,passive:f}):e.addEventListener(i,s,!0):f!==void 0?e.addEventListener(i,s,{passive:f}):e.addEventListener(i,s,!1)}function vd(e,i,s,l,f){var h=l;if((i&1)===0&&(i&2)===0&&l!==null)t:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var b=l.stateNode.containerInfo;if(b===f)break;if(g===4)for(g=l.return;g!==null;){var T=g.tag;if((T===3||T===4)&&g.stateNode.containerInfo===f)return;g=g.return}for(;b!==null;){if(g=ta(b),g===null)return;if(T=g.tag,T===5||T===6||T===26||T===27){l=h=g;continue t}b=b.parentNode}}l=l.return}Wv(function(){var z=h,k=Lf(s),q=[];t:{var O=E0.get(e);if(O!==void 0){var V=ir,J=e;switch(e){case"keypress":if(tr(s)===0)break t;case"keydown":case"keyup":V=K2;break;case"focusin":J="focus",V=jf;break;case"focusout":J="blur",V=jf;break;case"beforeblur":case"afterblur":V=jf;break;case"click":if(s.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=i0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=k2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=$2;break;case w0:case M0:case _0:V=H2;break;case C0:V=W2;break;case"scroll":case"scrollend":V=B2;break;case"wheel":V=eR;break;case"copy":case"cut":case"paste":V=j2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=s0;break;case"toggle":case"beforetoggle":V=nR}var nt=(i&4)!==0,Dt=!nt&&(e==="scroll"||e==="scrollend"),E=nt?O!==null?O+"Capture":null:O;nt=[];for(var M=z,D;M!==null;){var N=M;if(D=N.stateNode,N=N.tag,N!==5&&N!==26&&N!==27||D===null||E===null||(N=po(M,E),N!=null&&nt.push(Ko(M,N,D))),Dt)break;M=M.return}0<nt.length&&(O=new V(O,J,null,s,k),q.push({event:O,listeners:nt}))}}if((i&7)===0){t:{if(O=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",O&&s!==Bf&&(J=s.relatedTarget||s.fromElement)&&(ta(J)||J[Ws]))break t;if((V||O)&&(O=k.window===k?k:(O=k.ownerDocument)?O.defaultView||O.parentWindow:window,V?(J=s.relatedTarget||s.toElement,V=z,J=J?ta(J):null,J!==null&&(Dt=u(J),nt=J.tag,J!==Dt||nt!==5&&nt!==27&&nt!==6)&&(J=null)):(V=null,J=z),V!==J)){if(nt=i0,N="onMouseLeave",E="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(nt=s0,N="onPointerLeave",E="onPointerEnter",M="pointer"),Dt=V==null?O:mo(V),D=J==null?O:mo(J),O=new nt(N,M+"leave",V,s,k),O.target=Dt,O.relatedTarget=D,N=null,ta(k)===z&&(nt=new nt(E,M+"enter",J,s,k),nt.target=D,nt.relatedTarget=Dt,N=nt),Dt=N,V&&J)e:{for(nt=i3,E=V,M=J,D=0,N=E;N;N=nt(N))D++;N=0;for(var it=M;it;it=nt(it))N++;for(;0<D-N;)E=nt(E),D--;for(;0<N-D;)M=nt(M),N--;for(;D--;){if(E===M||M!==null&&E===M.alternate){nt=E;break e}E=nt(E),M=nt(M)}nt=null}else nt=null;V!==null&&FS(q,O,V,nt,!1),J!==null&&Dt!==null&&FS(q,Dt,J,nt,!0)}}t:{if(O=z?mo(z):window,V=O.nodeName&&O.nodeName.toLowerCase(),V==="select"||V==="input"&&O.type==="file")var St=h0;else if(c0(O))if(d0)St=dR;else{St=fR;var tt=cR}else V=O.nodeName,!V||V.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?z&&Vf(z.elementType)&&(St=h0):St=hR;if(St&&(St=St(e,z))){f0(q,St,s,k);break t}tt&&tt(e,O,z),e==="focusout"&&z&&O.type==="number"&&z.memoizedProps.value!=null&&Rf(O,"number",O.value)}switch(tt=z?mo(z):window,e){case"focusin":(c0(tt)||tt.contentEditable==="true")&&(ua=tt,Zf=z,wo=null);break;case"focusout":wo=Zf=ua=null;break;case"mousedown":Kf=!0;break;case"contextmenu":case"mouseup":case"dragend":Kf=!1,x0(q,s,k);break;case"selectionchange":if(pR)break;case"keydown":case"keyup":x0(q,s,k)}var rt;if(Yf)t:{switch(e){case"compositionstart":var yt="onCompositionStart";break t;case"compositionend":yt="onCompositionEnd";break t;case"compositionupdate":yt="onCompositionUpdate";break t}yt=void 0}else ra?r0(e,s)&&(yt="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(yt="onCompositionStart");yt&&(a0&&s.locale!=="ko"&&(ra||yt!=="onCompositionStart"?yt==="onCompositionEnd"&&ra&&(rt=t0()):(bn=k,Nf="value"in bn?bn.value:bn.textContent,ra=!0)),tt=Qr(z,yt),0<tt.length&&(yt=new n0(yt,e,null,s,k),q.push({event:yt,listeners:tt}),rt?yt.data=rt:(rt=u0(s),rt!==null&&(yt.data=rt)))),(rt=aR?oR(e,s):lR(e,s))&&(yt=Qr(z,"onBeforeInput"),0<yt.length&&(tt=new n0("onBeforeInput","beforeinput",null,s,k),q.push({event:tt,listeners:yt}),tt.data=rt)),IR(q,e,z,s,k)}ZS(q,i)})}function Ko(e,i,s){return{instance:e,listener:i,currentTarget:s}}function Qr(e,i){for(var s=i+"Capture",l=[];e!==null;){var f=e,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=po(e,s),f!=null&&l.unshift(Ko(e,f,h)),f=po(e,i),f!=null&&l.push(Ko(e,f,h))),e.tag===3)return l;e=e.return}return[]}function i3(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function FS(e,i,s,l,f){for(var h=i._reactName,g=[];s!==null&&s!==l;){var b=s,T=b.alternate,z=b.stateNode;if(b=b.tag,T!==null&&T===l)break;b!==5&&b!==26&&b!==27||z===null||(T=z,f?(z=po(s,h),z!=null&&g.unshift(Ko(s,z,T))):f||(z=po(s,h),z!=null&&g.push(Ko(s,z,T)))),s=s.return}g.length!==0&&e.push({event:i,listeners:g})}var n3=/\r\n?/g,s3=/\u0000|\uFFFD/g;function JS(e){return(typeof e=="string"?e:""+e).replace(n3,`
9
+ `).replace(s3,"")}function $S(e,i){return i=JS(i),JS(e)===i}function At(e,i,s,l,f,h){switch(s){case"children":typeof l=="string"?i==="body"||i==="textarea"&&l===""||aa(e,l):(typeof l=="number"||typeof l=="bigint")&&i!=="body"&&aa(e,""+l);break;case"className":Jl(e,"class",l);break;case"tabIndex":Jl(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Jl(e,s,l);break;case"style":$v(e,l,h);break;case"data":if(i!=="object"){Jl(e,"data",l);break}case"src":case"href":if(l===""&&(i!=="a"||s!=="href")){e.removeAttribute(s);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=Il(""+l),e.setAttribute(s,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(s==="formAction"?(i!=="input"&&At(e,i,"name",f.name,f,null),At(e,i,"formEncType",f.formEncType,f,null),At(e,i,"formMethod",f.formMethod,f,null),At(e,i,"formTarget",f.formTarget,f,null)):(At(e,i,"encType",f.encType,f,null),At(e,i,"method",f.method,f,null),At(e,i,"target",f.target,f,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=Il(""+l),e.setAttribute(s,l);break;case"onClick":l!=null&&(e.onclick=Pi);break;case"onScroll":l!=null&&ft("scroll",e);break;case"onScrollEnd":l!=null&&ft("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(s=l.__html,s!=null){if(f.children!=null)throw Error(o(60));e.innerHTML=s}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}s=Il(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,""+l):e.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,""):e.removeAttribute(s);break;case"capture":case"download":l===!0?e.setAttribute(s,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,l):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(s,l):e.removeAttribute(s);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(s):e.setAttribute(s,l);break;case"popover":ft("beforetoggle",e),ft("toggle",e),Fl(e,"popover",l);break;case"xlinkActuate":ji(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ji(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ji(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ji(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ji(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ji(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ji(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ji(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ji(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Fl(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=R2.get(s)||s,Fl(e,s,l))}}function bd(e,i,s,l,f,h){switch(s){case"style":$v(e,l,h);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(s=l.__html,s!=null){if(f.children!=null)throw Error(o(60));e.innerHTML=s}}break;case"children":typeof l=="string"?aa(e,l):(typeof l=="number"||typeof l=="bigint")&&aa(e,""+l);break;case"onScroll":l!=null&&ft("scroll",e);break;case"onScrollEnd":l!=null&&ft("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Pi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Pv.hasOwnProperty(s))t:{if(s[0]==="o"&&s[1]==="n"&&(f=s.endsWith("Capture"),i=s.slice(2,f?s.length-7:void 0),h=e[De]||null,h=h!=null?h[s]:null,typeof h=="function"&&e.removeEventListener(i,h,f),typeof l=="function")){typeof h!="function"&&h!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(i,l,f);break t}s in e?e[s]=l:l===!0?e.setAttribute(s,""):Fl(e,s,l)}}}function fe(e,i,s){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",e),ft("load",e);var l=!1,f=!1,h;for(h in s)if(s.hasOwnProperty(h)){var g=s[h];if(g!=null)switch(h){case"src":l=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,i));default:At(e,i,h,g,s,null)}}f&&At(e,i,"srcSet",s.srcSet,s,null),l&&At(e,i,"src",s.src,s,null);return;case"input":ft("invalid",e);var b=h=g=f=null,T=null,z=null;for(l in s)if(s.hasOwnProperty(l)){var k=s[l];if(k!=null)switch(l){case"name":f=k;break;case"type":g=k;break;case"checked":T=k;break;case"defaultChecked":z=k;break;case"value":h=k;break;case"defaultValue":b=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(o(137,i));break;default:At(e,i,l,k,s,null)}}Zv(e,h,b,T,z,g,f,!1);return;case"select":ft("invalid",e),l=g=h=null;for(f in s)if(s.hasOwnProperty(f)&&(b=s[f],b!=null))switch(f){case"value":h=b;break;case"defaultValue":g=b;break;case"multiple":l=b;default:At(e,i,f,b,s,null)}i=h,s=g,e.multiple=!!l,i!=null?sa(e,!!l,i,!1):s!=null&&sa(e,!!l,s,!0);return;case"textarea":ft("invalid",e),h=f=l=null;for(g in s)if(s.hasOwnProperty(g)&&(b=s[g],b!=null))switch(g){case"value":l=b;break;case"defaultValue":f=b;break;case"children":h=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(91));break;default:At(e,i,g,b,s,null)}Fv(e,l,f,h);return;case"option":for(T in s)if(s.hasOwnProperty(T)&&(l=s[T],l!=null))switch(T){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:At(e,i,T,l,s,null)}return;case"dialog":ft("beforetoggle",e),ft("toggle",e),ft("cancel",e),ft("close",e);break;case"iframe":case"object":ft("load",e);break;case"video":case"audio":for(l=0;l<Zo.length;l++)ft(Zo[l],e);break;case"image":ft("error",e),ft("load",e);break;case"details":ft("toggle",e);break;case"embed":case"source":case"link":ft("error",e),ft("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in s)if(s.hasOwnProperty(z)&&(l=s[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,i));default:At(e,i,z,l,s,null)}return;default:if(Vf(i)){for(k in s)s.hasOwnProperty(k)&&(l=s[k],l!==void 0&&bd(e,i,k,l,s,void 0));return}}for(b in s)s.hasOwnProperty(b)&&(l=s[b],l!=null&&At(e,i,b,l,s,null))}function a3(e,i,s,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,g=null,b=null,T=null,z=null,k=null;for(V in s){var q=s[V];if(s.hasOwnProperty(V)&&q!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":T=q;default:l.hasOwnProperty(V)||At(e,i,V,null,l,q)}}for(var O in l){var V=l[O];if(q=s[O],l.hasOwnProperty(O)&&(V!=null||q!=null))switch(O){case"type":h=V;break;case"name":f=V;break;case"checked":z=V;break;case"defaultChecked":k=V;break;case"value":g=V;break;case"defaultValue":b=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,i));break;default:V!==q&&At(e,i,O,V,l,q)}}Of(e,g,b,T,z,k,h,f);return;case"select":V=g=b=O=null;for(h in s)if(T=s[h],s.hasOwnProperty(h)&&T!=null)switch(h){case"value":break;case"multiple":V=T;default:l.hasOwnProperty(h)||At(e,i,h,null,l,T)}for(f in l)if(h=l[f],T=s[f],l.hasOwnProperty(f)&&(h!=null||T!=null))switch(f){case"value":O=h;break;case"defaultValue":b=h;break;case"multiple":g=h;default:h!==T&&At(e,i,f,h,l,T)}i=b,s=g,l=V,O!=null?sa(e,!!s,O,!1):!!l!=!!s&&(i!=null?sa(e,!!s,i,!0):sa(e,!!s,s?[]:"",!1));return;case"textarea":V=O=null;for(b in s)if(f=s[b],s.hasOwnProperty(b)&&f!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:At(e,i,b,null,l,f)}for(g in l)if(f=l[g],h=s[g],l.hasOwnProperty(g)&&(f!=null||h!=null))switch(g){case"value":O=f;break;case"defaultValue":V=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(o(91));break;default:f!==h&&At(e,i,g,f,l,h)}Kv(e,O,V);return;case"option":for(var J in s)if(O=s[J],s.hasOwnProperty(J)&&O!=null&&!l.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:At(e,i,J,null,l,O)}for(T in l)if(O=l[T],V=s[T],l.hasOwnProperty(T)&&O!==V&&(O!=null||V!=null))switch(T){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:At(e,i,T,O,l,V)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var nt in s)O=s[nt],s.hasOwnProperty(nt)&&O!=null&&!l.hasOwnProperty(nt)&&At(e,i,nt,null,l,O);for(z in l)if(O=l[z],V=s[z],l.hasOwnProperty(z)&&O!==V&&(O!=null||V!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,i));break;default:At(e,i,z,O,l,V)}return;default:if(Vf(i)){for(var Dt in s)O=s[Dt],s.hasOwnProperty(Dt)&&O!==void 0&&!l.hasOwnProperty(Dt)&&bd(e,i,Dt,void 0,l,O);for(k in l)O=l[k],V=s[k],!l.hasOwnProperty(k)||O===V||O===void 0&&V===void 0||bd(e,i,k,O,l,V);return}}for(var E in s)O=s[E],s.hasOwnProperty(E)&&O!=null&&!l.hasOwnProperty(E)&&At(e,i,E,null,l,O);for(q in l)O=l[q],V=s[q],!l.hasOwnProperty(q)||O===V||O==null&&V==null||At(e,i,q,O,l,V)}function IS(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function o3(){if(typeof performance.getEntriesByType=="function"){for(var e=0,i=0,s=performance.getEntriesByType("resource"),l=0;l<s.length;l++){var f=s[l],h=f.transferSize,g=f.initiatorType,b=f.duration;if(h&&b&&IS(g)){for(g=0,b=f.responseEnd,l+=1;l<s.length;l++){var T=s[l],z=T.startTime;if(z>b)break;var k=T.transferSize,q=T.initiatorType;k&&IS(q)&&(T=T.responseEnd,g+=k*(T<b?1:(b-z)/(T-z)))}if(--l,i+=8*(h+g)/(f.duration/1e3),e++,10<e)break}}if(0<e)return i/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Sd=null,xd=null;function Zr(e){return e.nodeType===9?e:e.ownerDocument}function WS(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function tx(e,i){if(e===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&i==="foreignObject"?0:e}function Td(e,i){return e==="textarea"||e==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var wd=null;function l3(){var e=window.event;return e&&e.type==="popstate"?e===wd?!1:(wd=e,!0):(wd=null,!1)}var ex=typeof setTimeout=="function"?setTimeout:void 0,r3=typeof clearTimeout=="function"?clearTimeout:void 0,ix=typeof Promise=="function"?Promise:void 0,u3=typeof queueMicrotask=="function"?queueMicrotask:typeof ix<"u"?function(e){return ix.resolve(null).then(e).catch(c3)}:ex;function c3(e){setTimeout(function(){throw e})}function kn(e){return e==="head"}function nx(e,i){var s=i,l=0;do{var f=s.nextSibling;if(e.removeChild(s),f&&f.nodeType===8)if(s=f.data,s==="/$"||s==="/&"){if(l===0){e.removeChild(f),ka(i);return}l--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")l++;else if(s==="html")Fo(e.ownerDocument.documentElement);else if(s==="head"){s=e.ownerDocument.head,Fo(s);for(var h=s.firstChild;h;){var g=h.nextSibling,b=h.nodeName;h[ho]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&h.rel.toLowerCase()==="stylesheet"||s.removeChild(h),h=g}}else s==="body"&&Fo(e.ownerDocument.body);s=f}while(s);ka(i)}function sx(e,i){var s=e;e=0;do{var l=s.nextSibling;if(s.nodeType===1?i?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(i?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),l&&l.nodeType===8)if(s=l.data,s==="/$"){if(e===0)break;e--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||e++;s=l}while(s)}function Md(e){var i=e.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var s=i;switch(i=i.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Md(s),Df(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function f3(e,i,s,l){for(;e.nodeType===1;){var f=s;if(e.nodeName.toLowerCase()!==i.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ho])switch(i){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(i==="input"&&e.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=hi(e.nextSibling),e===null)break}return null}function h3(e,i,s){if(i==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=hi(e.nextSibling),e===null))return null;return e}function ax(e,i){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=hi(e.nextSibling),e===null))return null;return e}function _d(e){return e.data==="$?"||e.data==="$~"}function Cd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function d3(e,i){var s=e.ownerDocument;if(e.data==="$~")e._reactRetry=i;else if(e.data!=="$?"||s.readyState!=="loading")i();else{var l=function(){i(),s.removeEventListener("DOMContentLoaded",l)};s.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function hi(e){for(;e!=null;e=e.nextSibling){var i=e.nodeType;if(i===1||i===3)break;if(i===8){if(i=e.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return e}var Ed=null;function ox(e){e=e.nextSibling;for(var i=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"||s==="/&"){if(i===0)return hi(e.nextSibling);i--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||i++}e=e.nextSibling}return null}function lx(e){e=e.previousSibling;for(var i=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(i===0)return e;i--}else s!=="/$"&&s!=="/&"||i++}e=e.previousSibling}return null}function rx(e,i,s){switch(i=Zr(s),e){case"html":if(e=i.documentElement,!e)throw Error(o(452));return e;case"head":if(e=i.head,!e)throw Error(o(453));return e;case"body":if(e=i.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Fo(e){for(var i=e.attributes;i.length;)e.removeAttributeNode(i[0]);Df(e)}var di=new Map,ux=new Set;function Kr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var an=P.d;P.d={f:m3,r:p3,D:y3,C:g3,L:v3,m:b3,X:x3,S:S3,M:T3};function m3(){var e=an.f(),i=Hr();return e||i}function p3(e){var i=ea(e);i!==null&&i.tag===5&&i.type==="form"?Cb(i):an.r(e)}var Va=typeof document>"u"?null:document;function cx(e,i,s){var l=Va;if(l&&typeof i=="string"&&i){var f=ai(i);f='link[rel="'+e+'"][href="'+f+'"]',typeof s=="string"&&(f+='[crossorigin="'+s+'"]'),ux.has(f)||(ux.add(f),e={rel:e,crossOrigin:s,href:i},l.querySelector(f)===null&&(i=l.createElement("link"),fe(i,"link",e),ne(i),l.head.appendChild(i)))}}function y3(e){an.D(e),cx("dns-prefetch",e,null)}function g3(e,i){an.C(e,i),cx("preconnect",e,i)}function v3(e,i,s){an.L(e,i,s);var l=Va;if(l&&e&&i){var f='link[rel="preload"][as="'+ai(i)+'"]';i==="image"&&s&&s.imageSrcSet?(f+='[imagesrcset="'+ai(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(f+='[imagesizes="'+ai(s.imageSizes)+'"]')):f+='[href="'+ai(e)+'"]';var h=f;switch(i){case"style":h=Ba(e);break;case"script":h=La(e)}di.has(h)||(e=v({rel:"preload",href:i==="image"&&s&&s.imageSrcSet?void 0:e,as:i},s),di.set(h,e),l.querySelector(f)!==null||i==="style"&&l.querySelector(Jo(h))||i==="script"&&l.querySelector($o(h))||(i=l.createElement("link"),fe(i,"link",e),ne(i),l.head.appendChild(i)))}}function b3(e,i){an.m(e,i);var s=Va;if(s&&e){var l=i&&typeof i.as=="string"?i.as:"script",f='link[rel="modulepreload"][as="'+ai(l)+'"][href="'+ai(e)+'"]',h=f;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=La(e)}if(!di.has(h)&&(e=v({rel:"modulepreload",href:e},i),di.set(h,e),s.querySelector(f)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector($o(h)))return}l=s.createElement("link"),fe(l,"link",e),ne(l),s.head.appendChild(l)}}}function S3(e,i,s){an.S(e,i,s);var l=Va;if(l&&e){var f=ia(l).hoistableStyles,h=Ba(e);i=i||"default";var g=f.get(h);if(!g){var b={loading:0,preload:null};if(g=l.querySelector(Jo(h)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":i},s),(s=di.get(h))&&Ad(e,s);var T=g=l.createElement("link");ne(T),fe(T,"link",e),T._p=new Promise(function(z,k){T.onload=z,T.onerror=k}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Fr(g,i,l)}g={type:"stylesheet",instance:g,count:1,state:b},f.set(h,g)}}}function x3(e,i){an.X(e,i);var s=Va;if(s&&e){var l=ia(s).hoistableScripts,f=La(e),h=l.get(f);h||(h=s.querySelector($o(f)),h||(e=v({src:e,async:!0},i),(i=di.get(f))&&Dd(e,i),h=s.createElement("script"),ne(h),fe(h,"link",e),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(f,h))}}function T3(e,i){an.M(e,i);var s=Va;if(s&&e){var l=ia(s).hoistableScripts,f=La(e),h=l.get(f);h||(h=s.querySelector($o(f)),h||(e=v({src:e,async:!0,type:"module"},i),(i=di.get(f))&&Dd(e,i),h=s.createElement("script"),ne(h),fe(h,"link",e),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(f,h))}}function fx(e,i,s,l){var f=(f=ut.current)?Kr(f):null;if(!f)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(i=Ba(s.href),s=ia(f).hoistableStyles,l=s.get(i),l||(l={type:"style",instance:null,count:0,state:null},s.set(i,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=Ba(s.href);var h=ia(f).hoistableStyles,g=h.get(e);if(g||(f=f.ownerDocument||f,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,g),(h=f.querySelector(Jo(e)))&&!h._p&&(g.instance=h,g.state.loading=5),di.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},di.set(e,s),h||w3(f,e,s,g.state))),i&&l===null)throw Error(o(528,""));return g}if(i&&l!==null)throw Error(o(529,""));return null;case"script":return i=s.async,s=s.src,typeof s=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=La(s),s=ia(f).hoistableScripts,l=s.get(i),l||(l={type:"script",instance:null,count:0,state:null},s.set(i,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Ba(e){return'href="'+ai(e)+'"'}function Jo(e){return'link[rel="stylesheet"]['+e+"]"}function hx(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function w3(e,i,s,l){e.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=e.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),fe(i,"link",s),ne(i),e.head.appendChild(i))}function La(e){return'[src="'+ai(e)+'"]'}function $o(e){return"script[async]"+e}function dx(e,i,s){if(i.count++,i.instance===null)switch(i.type){case"style":var l=e.querySelector('style[data-href~="'+ai(s.href)+'"]');if(l)return i.instance=l,ne(l),l;var f=v({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ne(l),fe(l,"style",f),Fr(l,s.precedence,e),i.instance=l;case"stylesheet":f=Ba(s.href);var h=e.querySelector(Jo(f));if(h)return i.state.loading|=4,i.instance=h,ne(h),h;l=hx(s),(f=di.get(f))&&Ad(l,f),h=(e.ownerDocument||e).createElement("link"),ne(h);var g=h;return g._p=new Promise(function(b,T){g.onload=b,g.onerror=T}),fe(h,"link",l),i.state.loading|=4,Fr(h,s.precedence,e),i.instance=h;case"script":return h=La(s.src),(f=e.querySelector($o(h)))?(i.instance=f,ne(f),f):(l=s,(f=di.get(h))&&(l=v({},s),Dd(l,f)),e=e.ownerDocument||e,f=e.createElement("script"),ne(f),fe(f,"link",l),e.head.appendChild(f),i.instance=f);case"void":return null;default:throw Error(o(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(l=i.instance,i.state.loading|=4,Fr(l,s.precedence,e));return i.instance}function Fr(e,i,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=l.length?l[l.length-1]:null,h=f,g=0;g<l.length;g++){var b=l[g];if(b.dataset.precedence===i)h=b;else if(h!==f)break}h?h.parentNode.insertBefore(e,h.nextSibling):(i=s.nodeType===9?s.head:s,i.insertBefore(e,i.firstChild))}function Ad(e,i){e.crossOrigin==null&&(e.crossOrigin=i.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=i.referrerPolicy),e.title==null&&(e.title=i.title)}function Dd(e,i){e.crossOrigin==null&&(e.crossOrigin=i.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=i.referrerPolicy),e.integrity==null&&(e.integrity=i.integrity)}var Jr=null;function mx(e,i,s){if(Jr===null){var l=new Map,f=Jr=new Map;f.set(s,l)}else f=Jr,l=f.get(s),l||(l=new Map,f.set(s,l));if(l.has(e))return l;for(l.set(e,null),s=s.getElementsByTagName(e),f=0;f<s.length;f++){var h=s[f];if(!(h[ho]||h[le]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var g=h.getAttribute(i)||"";g=e+g;var b=l.get(g);b?b.push(h):l.set(g,[h])}}return l}function px(e,i,s){e=e.ownerDocument||e,e.head.insertBefore(s,i==="title"?e.querySelector("head > title"):null)}function M3(e,i,s){if(s===1||i.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return e=i.disabled,typeof i.precedence=="string"&&e==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function yx(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function _3(e,i,s,l){if(s.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var f=Ba(l.href),h=i.querySelector(Jo(f));if(h){i=h._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(e.count++,e=$r.bind(e),i.then(e,e)),s.state.loading|=4,s.instance=h,ne(h);return}h=i.ownerDocument||i,l=hx(l),(f=di.get(f))&&Ad(l,f),h=h.createElement("link"),ne(h);var g=h;g._p=new Promise(function(b,T){g.onload=b,g.onerror=T}),fe(h,"link",l),s.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(s,i),(i=s.state.preload)&&(s.state.loading&3)===0&&(e.count++,s=$r.bind(e),i.addEventListener("load",s),i.addEventListener("error",s))}}var zd=0;function C3(e,i){return e.stylesheets&&e.count===0&&Wr(e,e.stylesheets),0<e.count||0<e.imgCount?function(s){var l=setTimeout(function(){if(e.stylesheets&&Wr(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+i);0<e.imgBytes&&zd===0&&(zd=62500*o3());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wr(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>zd?50:800)+i);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(f)}}:null}function $r(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ir=null;function Wr(e,i){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ir=new Map,i.forEach(E3,e),Ir=null,$r.call(e))}function E3(e,i){if(!(i.state.loading&4)){var s=Ir.get(e);if(s)var l=s.get(null);else{s=new Map,Ir.set(e,s);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var g=f[h];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(s.set(g.dataset.precedence,g),l=g)}l&&s.set(null,l)}f=i.instance,g=f.getAttribute("data-precedence"),h=s.get(g)||l,h===l&&s.set(null,f),s.set(g,f),this.count++,l=$r.bind(this),f.addEventListener("load",l),f.addEventListener("error",l),h?h.parentNode.insertBefore(f,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),i.state.loading|=4}}var Io={$$typeof:B,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function A3(e,i,s,l,f,h,g,b,T){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=_f(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_f(0),this.hiddenUpdates=_f(null),this.identifierPrefix=l,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function gx(e,i,s,l,f,h,g,b,T,z,k,q){return e=new A3(e,i,s,g,T,z,k,q,b),i=1,h===!0&&(i|=24),h=Xe(3,null,null,i),e.current=h,h.stateNode=e,i=uh(),i.refCount++,e.pooledCache=i,i.refCount++,h.memoizedState={element:l,isDehydrated:s,cache:i},dh(h),e}function vx(e){return e?(e=ha,e):ha}function bx(e,i,s,l,f,h){f=vx(f),l.context===null?l.context=f:l.pendingContext=f,l=_n(i),l.payload={element:s},h=h===void 0?null:h,h!==null&&(l.callback=h),s=Cn(e,l,i),s!==null&&(Le(s,e,i),zo(s,e,i))}function Sx(e,i){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<i?s:i}}function Od(e,i){Sx(e,i),(e=e.alternate)&&Sx(e,i)}function xx(e){if(e.tag===13||e.tag===31){var i=ps(e,67108864);i!==null&&Le(i,e,67108864),Od(e,67108864)}}function Tx(e){if(e.tag===13||e.tag===31){var i=Je();i=Cf(i);var s=ps(e,i);s!==null&&Le(s,e,i),Od(e,i)}}var tu=!0;function D3(e,i,s,l){var f=U.T;U.T=null;var h=P.p;try{P.p=2,Rd(e,i,s,l)}finally{P.p=h,U.T=f}}function z3(e,i,s,l){var f=U.T;U.T=null;var h=P.p;try{P.p=8,Rd(e,i,s,l)}finally{P.p=h,U.T=f}}function Rd(e,i,s,l){if(tu){var f=Vd(l);if(f===null)vd(e,i,l,eu,s),Mx(e,l);else if(R3(f,e,i,s,l))l.stopPropagation();else if(Mx(e,l),i&4&&-1<O3.indexOf(e)){for(;f!==null;){var h=ea(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var g=cs(h.pendingLanes);if(g!==0){var b=h;for(b.pendingLanes|=2,b.entangledLanes|=2;g;){var T=1<<31-Ye(g);b.entanglements[1]|=T,g&=~T}Li(h),(Tt&6)===0&&(Ur=je()+500,Qo(0))}}break;case 31:case 13:b=ps(h,2),b!==null&&Le(b,h,2),Hr(),Od(h,2)}if(h=Vd(l),h===null&&vd(e,i,l,eu,s),h===f)break;f=h}f!==null&&l.stopPropagation()}else vd(e,i,l,null,s)}}function Vd(e){return e=Lf(e),Bd(e)}var eu=null;function Bd(e){if(eu=null,e=ta(e),e!==null){var i=u(e);if(i===null)e=null;else{var s=i.tag;if(s===13){if(e=c(i),e!==null)return e;e=null}else if(s===31){if(e=d(i),e!==null)return e;e=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;e=null}else i!==e&&(e=null)}}return eu=e,null}function wx(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(y2()){case Ov:return 2;case Rv:return 8;case Gl:case g2:return 32;case Vv:return 268435456;default:return 32}default:return 32}}var Ld=!1,Un=null,Nn=null,Hn=null,Wo=new Map,tl=new Map,qn=[],O3="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Mx(e,i){switch(e){case"focusin":case"focusout":Un=null;break;case"dragenter":case"dragleave":Nn=null;break;case"mouseover":case"mouseout":Hn=null;break;case"pointerover":case"pointerout":Wo.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":tl.delete(i.pointerId)}}function el(e,i,s,l,f,h){return e===null||e.nativeEvent!==h?(e={blockedOn:i,domEventName:s,eventSystemFlags:l,nativeEvent:h,targetContainers:[f]},i!==null&&(i=ea(i),i!==null&&xx(i)),e):(e.eventSystemFlags|=l,i=e.targetContainers,f!==null&&i.indexOf(f)===-1&&i.push(f),e)}function R3(e,i,s,l,f){switch(i){case"focusin":return Un=el(Un,e,i,s,l,f),!0;case"dragenter":return Nn=el(Nn,e,i,s,l,f),!0;case"mouseover":return Hn=el(Hn,e,i,s,l,f),!0;case"pointerover":var h=f.pointerId;return Wo.set(h,el(Wo.get(h)||null,e,i,s,l,f)),!0;case"gotpointercapture":return h=f.pointerId,tl.set(h,el(tl.get(h)||null,e,i,s,l,f)),!0}return!1}function _x(e){var i=ta(e.target);if(i!==null){var s=u(i);if(s!==null){if(i=s.tag,i===13){if(i=c(s),i!==null){e.blockedOn=i,Hv(e.priority,function(){Tx(s)});return}}else if(i===31){if(i=d(s),i!==null){e.blockedOn=i,Hv(e.priority,function(){Tx(s)});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function iu(e){if(e.blockedOn!==null)return!1;for(var i=e.targetContainers;0<i.length;){var s=Vd(e.nativeEvent);if(s===null){s=e.nativeEvent;var l=new s.constructor(s.type,s);Bf=l,s.target.dispatchEvent(l),Bf=null}else return i=ea(s),i!==null&&xx(i),e.blockedOn=s,!1;i.shift()}return!0}function Cx(e,i,s){iu(e)&&s.delete(i)}function V3(){Ld=!1,Un!==null&&iu(Un)&&(Un=null),Nn!==null&&iu(Nn)&&(Nn=null),Hn!==null&&iu(Hn)&&(Hn=null),Wo.forEach(Cx),tl.forEach(Cx)}function nu(e,i){e.blockedOn===i&&(e.blockedOn=null,Ld||(Ld=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,V3)))}var su=null;function Ex(e){su!==e&&(su=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){su===e&&(su=null);for(var i=0;i<e.length;i+=3){var s=e[i],l=e[i+1],f=e[i+2];if(typeof l!="function"){if(Bd(l||s)===null)continue;break}var h=ea(s);h!==null&&(e.splice(i,3),i-=3,Vh(h,{pending:!0,data:f,method:s.method,action:l},l,f))}}))}function ka(e){function i(T){return nu(T,e)}Un!==null&&nu(Un,e),Nn!==null&&nu(Nn,e),Hn!==null&&nu(Hn,e),Wo.forEach(i),tl.forEach(i);for(var s=0;s<qn.length;s++){var l=qn[s];l.blockedOn===e&&(l.blockedOn=null)}for(;0<qn.length&&(s=qn[0],s.blockedOn===null);)_x(s),s.blockedOn===null&&qn.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var f=s[l],h=s[l+1],g=f[De]||null;if(typeof h=="function")g||Ex(s);else if(g){var b=null;if(h&&h.hasAttribute("formAction")){if(f=h,g=h[De]||null)b=g.formAction;else if(Bd(f)!==null)continue}else b=g.action;typeof b=="function"?s[l+1]=b:(s.splice(l,3),l-=3),Ex(s)}}}function Ax(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(g){return f=g})},focusReset:"manual",scroll:"manual"})}function i(){f!==null&&(f(),f=null),l||setTimeout(s,20)}function s(){if(!l&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(s,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),f!==null&&(f(),f=null)}}}function kd(e){this._internalRoot=e}au.prototype.render=kd.prototype.render=function(e){var i=this._internalRoot;if(i===null)throw Error(o(409));var s=i.current,l=Je();bx(s,l,e,i,null,null)},au.prototype.unmount=kd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var i=e.containerInfo;bx(e.current,2,null,e,null,null),Hr(),i[Ws]=null}};function au(e){this._internalRoot=e}au.prototype.unstable_scheduleHydration=function(e){if(e){var i=Nv();e={blockedOn:null,target:e,priority:i};for(var s=0;s<qn.length&&i!==0&&i<qn[s].priority;s++);qn.splice(s,0,e),s===0&&_x(e)}};var Dx=t.version;if(Dx!=="19.2.3")throw Error(o(527,Dx,"19.2.3"));P.findDOMNode=function(e){var i=e._reactInternals;if(i===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=p(i),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var B3={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{uo=ou.inject(B3),Pe=ou}catch{}}return Ua.createRoot=function(e,i){if(!r(e))throw Error(o(299));var s=!1,l="",f=kb,h=Ub,g=Nb;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(l=i.identifierPrefix),i.onUncaughtError!==void 0&&(f=i.onUncaughtError),i.onCaughtError!==void 0&&(h=i.onCaughtError),i.onRecoverableError!==void 0&&(g=i.onRecoverableError)),i=gx(e,1,!1,null,null,s,l,null,f,h,g,Ax),e[Ws]=i.current,gd(e),new kd(i)},Ua.hydrateRoot=function(e,i,s){if(!r(e))throw Error(o(299));var l=!1,f="",h=kb,g=Ub,b=Nb,T=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(f=s.identifierPrefix),s.onUncaughtError!==void 0&&(h=s.onUncaughtError),s.onCaughtError!==void 0&&(g=s.onCaughtError),s.onRecoverableError!==void 0&&(b=s.onRecoverableError),s.formState!==void 0&&(T=s.formState)),i=gx(e,1,!0,i,s??null,l,f,T,h,g,b,Ax),i.context=vx(null),s=i.current,l=Je(),l=Cf(l),f=_n(l),f.callback=null,Cn(s,f,l),s=l,i.current.lanes=s,fo(i,s),Li(i),e[Ws]=i.current,gd(e),new au(i)},Ua.version="19.2.3",Ua}var Gd;function Nx(){if(Gd)return uu.exports;Gd=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(t){console.error(t)}}return n(),uu.exports=Ux(),uu.exports}var Hx=Nx(),du={exports:{}},Na={};var Xd;function qx(){if(Xd)return Na;Xd=1;var n=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(o,r,u){var c=null;if(u!==void 0&&(c=""+u),r.key!==void 0&&(c=""+r.key),"key"in r){u={};for(var d in r)d!=="key"&&(u[d]=r[d])}else u=r;return r=u.ref,{$$typeof:n,type:o,key:c,ref:r!==void 0?r:null,props:u}}return Na.Fragment=t,Na.jsx=a,Na.jsxs=a,Na}var Qd;function jx(){return Qd||(Qd=1,du.exports=qx()),du.exports}var _i=jx();const mu=F.createContext({});function il(n){const t=F.useRef(null);return t.current===null&&(t.current=n()),t.current}const Zd=typeof window<"u",pu=Zd?F.useLayoutEffect:F.useEffect,nl=F.createContext(null);function yu(n,t){n.indexOf(t)===-1&&n.push(t)}function gu(n,t){const a=n.indexOf(t);a>-1&&n.splice(a,1)}const Ci=(n,t,a)=>a>t?t:a<n?n:a;let vu=()=>{};const ki={},Kd=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function Fd(n){return typeof n=="object"&&n!==null}const Jd=n=>/^0[^.\s]+$/u.test(n);function bu(n){let t;return()=>(t===void 0&&(t=n()),t)}const $e=n=>n,Px=(n,t)=>a=>t(n(a)),Ha=(...n)=>n.reduce(Px),qa=(n,t,a)=>{const o=t-n;return o===0?1:(a-n)/o};class Su{constructor(){this.subscriptions=[]}add(t){return yu(this.subscriptions,t),()=>gu(this.subscriptions,t)}notify(t,a,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,a,o);else for(let u=0;u<r;u++){const c=this.subscriptions[u];c&&c(t,a,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ui=n=>n*1e3,Ie=n=>n/1e3;function $d(n,t){return t?n*(1e3/t):0}const Id=(n,t,a)=>(((1-3*a+3*t)*n+(3*a-6*t))*n+3*t)*n,Yx=1e-7,Gx=12;function Xx(n,t,a,o,r){let u,c,d=0;do c=t+(a-t)/2,u=Id(c,o,r)-n,u>0?a=c:t=c;while(Math.abs(u)>Yx&&++d<Gx);return c}function ja(n,t,a,o){if(n===t&&a===o)return $e;const r=u=>Xx(u,0,1,n,a);return u=>u===0||u===1?u:Id(r(u),t,o)}const Wd=n=>t=>t<=.5?n(2*t)/2:(2-n(2*(1-t)))/2,tm=n=>t=>1-n(1-t),em=ja(.33,1.53,.69,.99),xu=tm(em),im=Wd(xu),nm=n=>(n*=2)<1?.5*xu(n):.5*(2-Math.pow(2,-10*(n-1))),Tu=n=>1-Math.sin(Math.acos(n)),sm=tm(Tu),am=Wd(Tu),Qx=ja(.42,0,1,1),Zx=ja(0,0,.58,1),om=ja(.42,0,.58,1),Kx=n=>Array.isArray(n)&&typeof n[0]!="number",lm=n=>Array.isArray(n)&&typeof n[0]=="number",Fx={linear:$e,easeIn:Qx,easeInOut:om,easeOut:Zx,circIn:Tu,circInOut:am,circOut:sm,backIn:xu,backInOut:im,backOut:em,anticipate:nm},Jx=n=>typeof n=="string",rm=n=>{if(lm(n)){vu(n.length===4);const[t,a,o,r]=n;return ja(t,a,o,r)}else if(Jx(n))return Fx[n];return n},sl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function $x(n,t){let a=new Set,o=new Set,r=!1,u=!1;const c=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function m(y){c.has(y)&&(p.schedule(y),n()),y(d)}const p={schedule:(y,v=!1,S=!1)=>{const w=S&&r?a:o;return v&&c.add(y),w.has(y)||w.add(y),y},cancel:y=>{o.delete(y),c.delete(y)},process:y=>{if(d=y,r){u=!0;return}r=!0,[a,o]=[o,a],a.forEach(m),a.clear(),r=!1,u&&(u=!1,p.process(y))}};return p}const Ix=40;function um(n,t){let a=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},u=()=>a=!0,c=sl.reduce((B,H)=>(B[H]=$x(u),B),{}),{setup:d,read:m,resolveKeyframes:p,preUpdate:y,update:v,preRender:S,render:x,postRender:w}=c,C=()=>{const B=ki.useManualTiming?r.timestamp:performance.now();a=!1,ki.useManualTiming||(r.delta=o?1e3/60:Math.max(Math.min(B-r.timestamp,Ix),1)),r.timestamp=B,r.isProcessing=!0,d.process(r),m.process(r),p.process(r),y.process(r),v.process(r),S.process(r),x.process(r),w.process(r),r.isProcessing=!1,a&&t&&(o=!1,n(C))},A=()=>{a=!0,o=!0,r.isProcessing||n(C)};return{schedule:sl.reduce((B,H)=>{const Y=c[H];return B[H]=(K,G=!1,Q=!1)=>(a||A(),Y.schedule(K,G,Q)),B},{}),cancel:B=>{for(let H=0;H<sl.length;H++)c[sl[H]].cancel(B)},state:r,steps:c}}const{schedule:Ot,cancel:on,state:ae,steps:wu}=um(typeof requestAnimationFrame<"u"?requestAnimationFrame:$e,!0);let al;function Wx(){al=void 0}const Se={now:()=>(al===void 0&&Se.set(ae.isProcessing||ki.useManualTiming?ae.timestamp:performance.now()),al),set:n=>{al=n,queueMicrotask(Wx)}},cm=n=>t=>typeof t=="string"&&t.startsWith(n),fm=cm("--"),t1=cm("var(--"),Mu=n=>t1(n)?e1.test(n.split("/*")[0].trim()):!1,e1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function hm(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const As={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},Pa={...As,transform:n=>Ci(0,1,n)},ol={...As,default:1},Ya=n=>Math.round(n*1e5)/1e5,_u=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function i1(n){return n==null}const n1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Cu=(n,t)=>a=>!!(typeof a=="string"&&n1.test(a)&&a.startsWith(n)||t&&!i1(a)&&Object.prototype.hasOwnProperty.call(a,t)),dm=(n,t,a)=>o=>{if(typeof o!="string")return o;const[r,u,c,d]=o.match(_u);return{[n]:parseFloat(r),[t]:parseFloat(u),[a]:parseFloat(c),alpha:d!==void 0?parseFloat(d):1}},s1=n=>Ci(0,255,n),Eu={...As,transform:n=>Math.round(s1(n))},Pn={test:Cu("rgb","red"),parse:dm("red","green","blue"),transform:({red:n,green:t,blue:a,alpha:o=1})=>"rgba("+Eu.transform(n)+", "+Eu.transform(t)+", "+Eu.transform(a)+", "+Ya(Pa.transform(o))+")"};function a1(n){let t="",a="",o="",r="";return n.length>5?(t=n.substring(1,3),a=n.substring(3,5),o=n.substring(5,7),r=n.substring(7,9)):(t=n.substring(1,2),a=n.substring(2,3),o=n.substring(3,4),r=n.substring(4,5),t+=t,a+=a,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const Au={test:Cu("#"),parse:a1,transform:Pn.transform},Ga=n=>({test:t=>typeof t=="string"&&t.endsWith(n)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${n}`}),ln=Ga("deg"),Ei=Ga("%"),$=Ga("px"),o1=Ga("vh"),l1=Ga("vw"),mm={...Ei,parse:n=>Ei.parse(n)/100,transform:n=>Ei.transform(n*100)},Ds={test:Cu("hsl","hue"),parse:dm("hue","saturation","lightness"),transform:({hue:n,saturation:t,lightness:a,alpha:o=1})=>"hsla("+Math.round(n)+", "+Ei.transform(Ya(t))+", "+Ei.transform(Ya(a))+", "+Ya(Pa.transform(o))+")"},Qt={test:n=>Pn.test(n)||Au.test(n)||Ds.test(n),parse:n=>Pn.test(n)?Pn.parse(n):Ds.test(n)?Ds.parse(n):Au.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Pn.transform(n):Ds.transform(n),getAnimatableNone:n=>{const t=Qt.parse(n);return t.alpha=0,Qt.transform(t)}},r1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function u1(n){return isNaN(n)&&typeof n=="string"&&(n.match(_u)?.length||0)+(n.match(r1)?.length||0)>0}const pm="number",ym="color",c1="var",f1="var(",gm="${}",h1=/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 Xa(n){const t=n.toString(),a=[],o={color:[],number:[],var:[]},r=[];let u=0;const d=t.replace(h1,m=>(Qt.test(m)?(o.color.push(u),r.push(ym),a.push(Qt.parse(m))):m.startsWith(f1)?(o.var.push(u),r.push(c1),a.push(m)):(o.number.push(u),r.push(pm),a.push(parseFloat(m))),++u,gm)).split(gm);return{values:a,split:d,indexes:o,types:r}}function vm(n){return Xa(n).values}function bm(n){const{split:t,types:a}=Xa(n),o=t.length;return r=>{let u="";for(let c=0;c<o;c++)if(u+=t[c],r[c]!==void 0){const d=a[c];d===pm?u+=Ya(r[c]):d===ym?u+=Qt.transform(r[c]):u+=r[c]}return u}}const d1=n=>typeof n=="number"?0:Qt.test(n)?Qt.getAnimatableNone(n):n;function m1(n){const t=vm(n);return bm(n)(t.map(d1))}const rn={test:u1,parse:vm,createTransformer:bm,getAnimatableNone:m1};function Du(n,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?n+(t-n)*6*a:a<1/2?t:a<2/3?n+(t-n)*(2/3-a)*6:n}function p1({hue:n,saturation:t,lightness:a,alpha:o}){n/=360,t/=100,a/=100;let r=0,u=0,c=0;if(!t)r=u=c=a;else{const d=a<.5?a*(1+t):a+t-a*t,m=2*a-d;r=Du(m,d,n+1/3),u=Du(m,d,n),c=Du(m,d,n-1/3)}return{red:Math.round(r*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:o}}function ll(n,t){return a=>a>0?t:n}const Ut=(n,t,a)=>n+(t-n)*a,zu=(n,t,a)=>{const o=n*n,r=a*(t*t-o)+o;return r<0?0:Math.sqrt(r)},y1=[Au,Pn,Ds],g1=n=>y1.find(t=>t.test(n));function Sm(n){const t=g1(n);if(!t)return!1;let a=t.parse(n);return t===Ds&&(a=p1(a)),a}const xm=(n,t)=>{const a=Sm(n),o=Sm(t);if(!a||!o)return ll(n,t);const r={...a};return u=>(r.red=zu(a.red,o.red,u),r.green=zu(a.green,o.green,u),r.blue=zu(a.blue,o.blue,u),r.alpha=Ut(a.alpha,o.alpha,u),Pn.transform(r))},Ou=new Set(["none","hidden"]);function v1(n,t){return Ou.has(n)?a=>a<=0?n:t:a=>a>=1?t:n}function b1(n,t){return a=>Ut(n,t,a)}function Ru(n){return typeof n=="number"?b1:typeof n=="string"?Mu(n)?ll:Qt.test(n)?xm:T1:Array.isArray(n)?Tm:typeof n=="object"?Qt.test(n)?xm:S1:ll}function Tm(n,t){const a=[...n],o=a.length,r=n.map((u,c)=>Ru(u)(u,t[c]));return u=>{for(let c=0;c<o;c++)a[c]=r[c](u);return a}}function S1(n,t){const a={...n,...t},o={};for(const r in a)n[r]!==void 0&&t[r]!==void 0&&(o[r]=Ru(n[r])(n[r],t[r]));return r=>{for(const u in o)a[u]=o[u](r);return a}}function x1(n,t){const a=[],o={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const u=t.types[r],c=n.indexes[u][o[u]],d=n.values[c]??0;a[r]=d,o[u]++}return a}const T1=(n,t)=>{const a=rn.createTransformer(t),o=Xa(n),r=Xa(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?Ou.has(n)&&!r.values.length||Ou.has(t)&&!o.values.length?v1(n,t):Ha(Tm(x1(o,r),r.values),a):ll(n,t)};function wm(n,t,a){return typeof n=="number"&&typeof t=="number"&&typeof a=="number"?Ut(n,t,a):Ru(n)(n,t)}const w1=n=>{const t=({timestamp:a})=>n(a);return{start:(a=!0)=>Ot.update(t,a),stop:()=>on(t),now:()=>ae.isProcessing?ae.timestamp:Se.now()}},Mm=(n,t,a=10)=>{let o="";const r=Math.max(Math.round(t/a),2);for(let u=0;u<r;u++)o+=Math.round(n(u/(r-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},rl=2e4;function Vu(n){let t=0;const a=50;let o=n.next(t);for(;!o.done&&t<rl;)t+=a,o=n.next(t);return t>=rl?1/0:t}function M1(n,t=100,a){const o=a({...n,keyframes:[0,t]}),r=Math.min(Vu(o),rl);return{type:"keyframes",ease:u=>o.next(r*u).value/t,duration:Ie(r)}}const _1=5;function _m(n,t,a){const o=Math.max(t-_1,0);return $d(a-n(o),t-o)}const Nt={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},Bu=.001;function C1({duration:n=Nt.duration,bounce:t=Nt.bounce,velocity:a=Nt.velocity,mass:o=Nt.mass}){let r,u,c=1-t;c=Ci(Nt.minDamping,Nt.maxDamping,c),n=Ci(Nt.minDuration,Nt.maxDuration,Ie(n)),c<1?(r=p=>{const y=p*c,v=y*n,S=y-a,x=Lu(p,c),w=Math.exp(-v);return Bu-S/x*w},u=p=>{const v=p*c*n,S=v*a+a,x=Math.pow(c,2)*Math.pow(p,2)*n,w=Math.exp(-v),C=Lu(Math.pow(p,2),c);return(-r(p)+Bu>0?-1:1)*((S-x)*w)/C}):(r=p=>{const y=Math.exp(-p*n),v=(p-a)*n+1;return-Bu+y*v},u=p=>{const y=Math.exp(-p*n),v=(a-p)*(n*n);return y*v});const d=5/n,m=A1(r,u,d);if(n=Ui(n),isNaN(m))return{stiffness:Nt.stiffness,damping:Nt.damping,duration:n};{const p=Math.pow(m,2)*o;return{stiffness:p,damping:c*2*Math.sqrt(o*p),duration:n}}}const E1=12;function A1(n,t,a){let o=a;for(let r=1;r<E1;r++)o=o-n(o)/t(o);return o}function Lu(n,t){return n*Math.sqrt(1-t*t)}const D1=["duration","bounce"],z1=["stiffness","damping","mass"];function Cm(n,t){return t.some(a=>n[a]!==void 0)}function O1(n){let t={velocity:Nt.velocity,stiffness:Nt.stiffness,damping:Nt.damping,mass:Nt.mass,isResolvedFromDuration:!1,...n};if(!Cm(n,z1)&&Cm(n,D1))if(n.visualDuration){const a=n.visualDuration,o=2*Math.PI/(a*1.2),r=o*o,u=2*Ci(.05,1,1-(n.bounce||0))*Math.sqrt(r);t={...t,mass:Nt.mass,stiffness:r,damping:u}}else{const a=C1(n);t={...t,...a,mass:Nt.mass},t.isResolvedFromDuration=!0}return t}function ul(n=Nt.visualDuration,t=Nt.bounce){const a=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:t}:n;let{restSpeed:o,restDelta:r}=a;const u=a.keyframes[0],c=a.keyframes[a.keyframes.length-1],d={done:!1,value:u},{stiffness:m,damping:p,mass:y,duration:v,velocity:S,isResolvedFromDuration:x}=O1({...a,velocity:-Ie(a.velocity||0)}),w=S||0,C=p/(2*Math.sqrt(m*y)),A=c-u,R=Ie(Math.sqrt(m/y)),L=Math.abs(A)<5;o||(o=L?Nt.restSpeed.granular:Nt.restSpeed.default),r||(r=L?Nt.restDelta.granular:Nt.restDelta.default);let B;if(C<1){const Y=Lu(R,C);B=K=>{const G=Math.exp(-C*R*K);return c-G*((w+C*R*A)/Y*Math.sin(Y*K)+A*Math.cos(Y*K))}}else if(C===1)B=Y=>c-Math.exp(-R*Y)*(A+(w+R*A)*Y);else{const Y=R*Math.sqrt(C*C-1);B=K=>{const G=Math.exp(-C*R*K),Q=Math.min(Y*K,300);return c-G*((w+C*R*A)*Math.sinh(Q)+Y*A*Math.cosh(Q))/Y}}const H={calculatedDuration:x&&v||null,next:Y=>{const K=B(Y);if(x)d.done=Y>=v;else{let G=Y===0?w:0;C<1&&(G=Y===0?Ui(w):_m(B,Y,K));const Q=Math.abs(G)<=o,st=Math.abs(c-K)<=r;d.done=Q&&st}return d.value=d.done?c:K,d},toString:()=>{const Y=Math.min(Vu(H),rl),K=Mm(G=>H.next(Y*G).value,Y,30);return Y+"ms "+K},toTransition:()=>{}};return H}ul.applyToOptions=n=>{const t=M1(n,100,ul);return n.ease=t.ease,n.duration=Ui(t.duration),n.type="keyframes",n};function ku({keyframes:n,velocity:t=0,power:a=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:u=500,modifyTarget:c,min:d,max:m,restDelta:p=.5,restSpeed:y}){const v=n[0],S={done:!1,value:v},x=Q=>d!==void 0&&Q<d||m!==void 0&&Q>m,w=Q=>d===void 0?m:m===void 0||Math.abs(d-Q)<Math.abs(m-Q)?d:m;let C=a*t;const A=v+C,R=c===void 0?A:c(A);R!==A&&(C=R-v);const L=Q=>-C*Math.exp(-Q/o),B=Q=>R+L(Q),H=Q=>{const st=L(Q),dt=B(Q);S.done=Math.abs(st)<=p,S.value=S.done?R:dt};let Y,K;const G=Q=>{x(S.value)&&(Y=Q,K=ul({keyframes:[S.value,w(S.value)],velocity:_m(B,Q,S.value),damping:r,stiffness:u,restDelta:p,restSpeed:y}))};return G(0),{calculatedDuration:null,next:Q=>{let st=!1;return!K&&Y===void 0&&(st=!0,H(Q),G(Q)),Y!==void 0&&Q>=Y?K.next(Q-Y):(!st&&H(Q),S)}}}function R1(n,t,a){const o=[],r=a||ki.mix||wm,u=n.length-1;for(let c=0;c<u;c++){let d=r(n[c],n[c+1]);if(t){const m=Array.isArray(t)?t[c]||$e:t;d=Ha(m,d)}o.push(d)}return o}function V1(n,t,{clamp:a=!0,ease:o,mixer:r}={}){const u=n.length;if(vu(u===t.length),u===1)return()=>t[0];if(u===2&&t[0]===t[1])return()=>t[1];const c=n[0]===n[1];n[0]>n[u-1]&&(n=[...n].reverse(),t=[...t].reverse());const d=R1(t,o,r),m=d.length,p=y=>{if(c&&y<n[0])return t[0];let v=0;if(m>1)for(;v<n.length-2&&!(y<n[v+1]);v++);const S=qa(n[v],n[v+1],y);return d[v](S)};return a?y=>p(Ci(n[0],n[u-1],y)):p}function B1(n,t){const a=n[n.length-1];for(let o=1;o<=t;o++){const r=qa(0,t,o);n.push(Ut(a,1,r))}}function L1(n){const t=[0];return B1(t,n.length-1),t}function k1(n,t){return n.map(a=>a*t)}function U1(n,t){return n.map(()=>t||om).splice(0,n.length-1)}function Qa({duration:n=300,keyframes:t,times:a,ease:o="easeInOut"}){const r=Kx(o)?o.map(rm):rm(o),u={done:!1,value:t[0]},c=k1(a&&a.length===t.length?a:L1(t),n),d=V1(c,t,{ease:Array.isArray(r)?r:U1(t,r)});return{calculatedDuration:n,next:m=>(u.value=d(m),u.done=m>=n,u)}}const N1=n=>n!==null;function Uu(n,{repeat:t,repeatType:a="loop"},o,r=1){const u=n.filter(N1),d=r<0||t&&a!=="loop"&&t%2===1?0:u.length-1;return!d||o===void 0?u[d]:o}const H1={decay:ku,inertia:ku,tween:Qa,keyframes:Qa,spring:ul};function Em(n){typeof n.type=="string"&&(n.type=H1[n.type])}class Nu{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,a){return this.finished.then(t,a)}}const q1=n=>n/100;class Hu extends Nu{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:a}=this.options;a&&a.updatedAt!==Se.now()&&this.tick(Se.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Em(t);const{type:a=Qa,repeat:o=0,repeatDelay:r=0,repeatType:u,velocity:c=0}=t;let{keyframes:d}=t;const m=a||Qa;m!==Qa&&typeof d[0]!="number"&&(this.mixKeyframes=Ha(q1,wm(d[0],d[1])),d=[0,100]);const p=m({...t,keyframes:d});u==="mirror"&&(this.mirroredGenerator=m({...t,keyframes:[...d].reverse(),velocity:-c})),p.calculatedDuration===null&&(p.calculatedDuration=Vu(p));const{calculatedDuration:y}=p;this.calculatedDuration=y,this.resolvedDuration=y+r,this.totalDuration=this.resolvedDuration*(o+1)-r,this.generator=p}updateTime(t){const a=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(t,a=!1){const{generator:o,totalDuration:r,mixKeyframes:u,mirroredGenerator:c,resolvedDuration:d,calculatedDuration:m}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:y,repeat:v,repeatType:S,repeatDelay:x,type:w,onUpdate:C,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),a?this.currentTime=t:this.updateTime(t);const R=this.currentTime-p*(this.playbackSpeed>=0?1:-1),L=this.playbackSpeed>=0?R<0:R>r;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let B=this.currentTime,H=o;if(v){const Q=Math.min(this.currentTime,r)/d;let st=Math.floor(Q),dt=Q%1;!dt&&Q>=1&&(dt=1),dt===1&&st--,st=Math.min(st,v+1),!!(st%2)&&(S==="reverse"?(dt=1-dt,x&&(dt-=x/d)):S==="mirror"&&(H=c)),B=Ci(0,1,dt)*d}const Y=L?{done:!1,value:y[0]}:H.next(B);u&&(Y.value=u(Y.value));let{done:K}=Y;!L&&m!==null&&(K=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const G=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&K);return G&&w!==ku&&(Y.value=Uu(y,this.options,A,this.speed)),C&&C(Y.value),G&&this.finish(),Y}then(t,a){return this.finished.then(t,a)}get duration(){return Ie(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ie(t)}get time(){return Ie(this.currentTime)}set time(t){t=Ui(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Se.now());const a=this.playbackSpeed!==t;this.playbackSpeed=t,a&&(this.time=Ie(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=w1,startTime:a}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),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=a??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(Se.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(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function j1(n){for(let t=1;t<n.length;t++)n[t]??(n[t]=n[t-1])}const Yn=n=>n*180/Math.PI,qu=n=>{const t=Yn(Math.atan2(n[1],n[0]));return ju(t)},P1={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:qu,rotateZ:qu,skewX:n=>Yn(Math.atan(n[1])),skewY:n=>Yn(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},ju=n=>(n=n%360,n<0&&(n+=360),n),Am=qu,Dm=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),zm=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),Y1={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Dm,scaleY:zm,scale:n=>(Dm(n)+zm(n))/2,rotateX:n=>ju(Yn(Math.atan2(n[6],n[5]))),rotateY:n=>ju(Yn(Math.atan2(-n[2],n[0]))),rotateZ:Am,rotate:Am,skewX:n=>Yn(Math.atan(n[4])),skewY:n=>Yn(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function Pu(n){return n.includes("scale")?1:0}function Yu(n,t){if(!n||n==="none")return Pu(t);const a=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,r;if(a)o=Y1,r=a;else{const d=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=P1,r=d}if(!r)return Pu(t);const u=o[t],c=r[1].split(",").map(X1);return typeof u=="function"?u(c):c[u]}const G1=(n,t)=>{const{transform:a="none"}=getComputedStyle(n);return Yu(a,t)};function X1(n){return parseFloat(n.trim())}const zs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Os=new Set(zs),Om=n=>n===As||n===$,Q1=new Set(["x","y","z"]),Z1=zs.filter(n=>!Q1.has(n));function K1(n){const t=[];return Z1.forEach(a=>{const o=n.getValue(a);o!==void 0&&(t.push([a,o.get()]),o.set(a.startsWith("scale")?1:0))}),t}const un={width:({x:n},{paddingLeft:t="0",paddingRight:a="0"})=>n.max-n.min-parseFloat(t)-parseFloat(a),height:({y:n},{paddingTop:t="0",paddingBottom:a="0"})=>n.max-n.min-parseFloat(t)-parseFloat(a),top:(n,{top:t})=>parseFloat(t),left:(n,{left:t})=>parseFloat(t),bottom:({y:n},{top:t})=>parseFloat(t)+(n.max-n.min),right:({x:n},{left:t})=>parseFloat(t)+(n.max-n.min),x:(n,{transform:t})=>Yu(t,"x"),y:(n,{transform:t})=>Yu(t,"y")};un.translateX=un.x,un.translateY=un.y;const Gn=new Set;let Gu=!1,Xu=!1,Qu=!1;function Rm(){if(Xu){const n=Array.from(Gn).filter(o=>o.needsMeasurement),t=new Set(n.map(o=>o.element)),a=new Map;t.forEach(o=>{const r=K1(o);r.length&&(a.set(o,r),o.render())}),n.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const r=a.get(o);r&&r.forEach(([u,c])=>{o.getValue(u)?.set(c)})}),n.forEach(o=>o.measureEndState()),n.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Xu=!1,Gu=!1,Gn.forEach(n=>n.complete(Qu)),Gn.clear()}function Vm(){Gn.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Xu=!0)})}function F1(){Qu=!0,Vm(),Rm(),Qu=!1}class Zu{constructor(t,a,o,r,u,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=o,this.motionValue=r,this.element=u,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(Gn.add(this),Gu||(Gu=!0,Ot.read(Vm),Ot.resolveKeyframes(Rm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:a,element:o,motionValue:r}=this;if(t[0]===null){const u=r?.get(),c=t[t.length-1];if(u!==void 0)t[0]=u;else if(o&&a){const d=o.readValue(a,c);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=c),r&&u===void 0&&r.set(t[0])}j1(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Gn.delete(this)}cancel(){this.state==="scheduled"&&(Gn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const J1=n=>n.startsWith("--");function $1(n,t,a){J1(t)?n.style.setProperty(t,a):n.style[t]=a}const I1=bu(()=>window.ScrollTimeline!==void 0),W1={};function tT(n,t){const a=bu(n);return()=>W1[t]??a()}const Bm=tT(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Za=([n,t,a,o])=>`cubic-bezier(${n}, ${t}, ${a}, ${o})`,Lm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Za([0,.65,.55,1]),circOut:Za([.55,0,1,.45]),backIn:Za([.31,.01,.66,-.59]),backOut:Za([.33,1.53,.69,.99])};function km(n,t){if(n)return typeof n=="function"?Bm()?Mm(n,t):"ease-out":lm(n)?Za(n):Array.isArray(n)?n.map(a=>km(a,t)||Lm.easeOut):Lm[n]}function eT(n,t,a,{delay:o=0,duration:r=300,repeat:u=0,repeatType:c="loop",ease:d="easeOut",times:m}={},p=void 0){const y={[t]:a};m&&(y.offset=m);const v=km(d,r);Array.isArray(v)&&(y.easing=v);const S={delay:o,duration:r,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:u+1,direction:c==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),n.animate(y,S)}function Um(n){return typeof n=="function"&&"applyToOptions"in n}function iT({type:n,...t}){return Um(n)&&Bm()?n.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class nT extends Nu{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:a,name:o,keyframes:r,pseudoElement:u,allowFlatten:c=!1,finalKeyframe:d,onComplete:m}=t;this.isPseudoElement=!!u,this.allowFlatten=c,this.options=t,vu(typeof t.type!="string");const p=iT(t);this.animation=eT(a,o,r,p,u),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const y=Uu(r,this.options,d,this.speed);this.updateMotionValue?this.updateMotionValue(y):$1(a,o,y),this.animation.cancel()}m?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,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:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Ie(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ie(t)}get time(){return Ie(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ui(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&I1()?(this.animation.timeline=t,$e):a(this)}}const Nm={anticipate:nm,backInOut:im,circInOut:am};function sT(n){return n in Nm}function aT(n){typeof n.ease=="string"&&sT(n.ease)&&(n.ease=Nm[n.ease])}const Ku=10;class oT extends nT{constructor(t){aT(t),Em(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:a,onUpdate:o,onComplete:r,element:u,...c}=this.options;if(!a)return;if(t!==void 0){a.set(t);return}const d=new Hu({...c,autoplay:!1}),m=Math.max(Ku,Se.now()-this.startTime),p=Ci(0,Ku,m-Ku);a.setWithVelocity(d.sample(Math.max(0,m-p)).value,d.sample(m).value,p),d.stop()}}const Hm=(n,t)=>t==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(rn.test(n)||n==="0")&&!n.startsWith("url("));function lT(n){const t=n[0];if(n.length===1)return!0;for(let a=0;a<n.length;a++)if(n[a]!==t)return!0}function rT(n,t,a,o){const r=n[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const u=n[n.length-1],c=Hm(r,t),d=Hm(u,t);return!c||!d?!1:lT(n)||(a==="spring"||Um(a))&&o}function Fu(n){n.duration=0,n.type="keyframes"}const uT=new Set(["opacity","clipPath","filter","transform"]),cT=bu(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function fT(n){const{motionValue:t,name:a,repeatDelay:o,repeatType:r,damping:u,type:c}=n;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:p}=t.owner.getProps();return cT()&&a&&uT.has(a)&&(a!=="transform"||!p)&&!m&&!o&&r!=="mirror"&&u!==0&&c!=="inertia"}const hT=40;class dT extends Nu{constructor({autoplay:t=!0,delay:a=0,type:o="keyframes",repeat:r=0,repeatDelay:u=0,repeatType:c="loop",keyframes:d,name:m,motionValue:p,element:y,...v}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Se.now();const S={autoplay:t,delay:a,type:o,repeat:r,repeatDelay:u,repeatType:c,name:m,motionValue:p,element:y,...v},x=y?.KeyframeResolver||Zu;this.keyframeResolver=new x(d,(w,C,A)=>this.onKeyframesResolved(w,C,S,!A),m,p,y),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,a,o,r){this.keyframeResolver=void 0;const{name:u,type:c,velocity:d,delay:m,isHandoff:p,onUpdate:y}=o;this.resolvedAt=Se.now(),rT(t,u,c,d)||((ki.instantAnimations||!m)&&y?.(Uu(t,o,a)),t[0]=t[t.length-1],Fu(o),o.repeat=0);const S={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>hT?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...o,keyframes:t},x=!p&&fT(S),w=S.motionValue?.owner?.current,C=x?new oT({...S,element:w}):new Hu(S);C.finished.then(()=>{this.notifyFinished()}).catch($e),this.pendingTimeline&&(this.stopTimeline=C.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=C}get finished(){return this._animation?this.animation.finished:this._finished}then(t,a){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),F1()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function qm(n,t,a,o=0,r=1){const u=Array.from(n).sort((p,y)=>p.sortNodePosition(y)).indexOf(t),c=n.size,d=(c-1)*o;return typeof a=="function"?a(u,c):r===1?u*o:d-u*o}const mT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function pT(n){const t=mT.exec(n);if(!t)return[,];const[,a,o,r]=t;return[`--${a??o}`,r]}function jm(n,t,a=1){const[o,r]=pT(n);if(!o)return;const u=window.getComputedStyle(t).getPropertyValue(o);if(u){const c=u.trim();return Kd(c)?parseFloat(c):c}return Mu(r)?jm(r,t,a+1):r}const yT={type:"spring",stiffness:500,damping:25,restSpeed:10},gT=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),vT={type:"keyframes",duration:.8},bT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ST=(n,{keyframes:t})=>t.length>2?vT:Os.has(n)?n.startsWith("scale")?gT(t[1]):yT:bT,xT=n=>n!==null;function TT(n,{repeat:t,repeatType:a="loop"},o){const r=n.filter(xT),u=t&&a!=="loop"&&t%2===1?0:r.length-1;return r[u]}function Ju(n,t){return n?.[t]??n?.default??n}function wT({when:n,delay:t,delayChildren:a,staggerChildren:o,staggerDirection:r,repeat:u,repeatType:c,repeatDelay:d,from:m,elapsed:p,...y}){return!!Object.keys(y).length}const $u=(n,t,a,o={},r,u)=>c=>{const d=Ju(o,n)||{},m=d.delay||o.delay||0;let{elapsed:p=0}=o;p=p-Ui(m);const y={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-p,onUpdate:S=>{t.set(S),d.onUpdate&&d.onUpdate(S)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:n,motionValue:t,element:u?void 0:r};wT(d)||Object.assign(y,ST(n,y)),y.duration&&(y.duration=Ui(y.duration)),y.repeatDelay&&(y.repeatDelay=Ui(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Fu(y),y.delay===0&&(v=!0)),(ki.instantAnimations||ki.skipAnimations)&&(v=!0,Fu(y),y.delay=0),y.allowFlatten=!d.type&&!d.ease,v&&!u&&t.get()!==void 0){const S=TT(y.keyframes,d);if(S!==void 0){Ot.update(()=>{y.onUpdate(S),y.onComplete()});return}}return d.isSync?new Hu(y):new dT(y)};function Pm(n){const t=[{},{}];return n?.values.forEach((a,o)=>{t[0][o]=a.get(),t[1][o]=a.getVelocity()}),t}function Iu(n,t,a,o){if(typeof t=="function"){const[r,u]=Pm(o);t=t(a!==void 0?a:n.custom,r,u)}if(typeof t=="string"&&(t=n.variants&&n.variants[t]),typeof t=="function"){const[r,u]=Pm(o);t=t(a!==void 0?a:n.custom,r,u)}return t}function Rs(n,t,a){const o=n.getProps();return Iu(o,t,a!==void 0?a:o.custom,n)}const Ym=new Set(["width","height","top","left","right","bottom",...zs]),Gm=30,MT=n=>!isNaN(parseFloat(n));class _T{constructor(t,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const r=Se.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=Se.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=MT(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,a){this.events[t]||(this.events[t]=new Su);const o=this.events[t].add(a);return t==="change"?()=>{o(),Ot.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,a,o){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Se.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Gm)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,Gm);return $d(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=t(a),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 Vs(n,t){return new _T(n,t)}const Wu=n=>Array.isArray(n);function CT(n,t,a){n.hasValue(t)?n.getValue(t).set(a):n.addValue(t,Vs(a))}function ET(n){return Wu(n)?n[n.length-1]||0:n}function tc(n,t){const a=Rs(n,t);let{transitionEnd:o={},transition:r={},...u}=a||{};u={...u,...o};for(const c in u){const d=ET(u[c]);CT(n,c,d)}}const de=n=>!!(n&&n.getVelocity);function AT(n){return!!(de(n)&&n.add)}function ec(n,t){const a=n.getValue("willChange");if(AT(a))return a.add(t);if(!a&&ki.WillChange){const o=new ki.WillChange("auto");n.addValue("willChange",o),o.add(t)}}function ic(n){return n.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Xm="data-"+ic("framerAppearId");function Qm(n){return n.props[Xm]}function DT({protectedKeys:n,needsAnimating:t},a){const o=n.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,o}function Zm(n,t,{delay:a=0,transitionOverride:o,type:r}={}){let{transition:u=n.getDefaultTransition(),transitionEnd:c,...d}=t;o&&(u=o);const m=[],p=r&&n.animationState&&n.animationState.getState()[r];for(const y in d){const v=n.getValue(y,n.latestValues[y]??null),S=d[y];if(S===void 0||p&&DT(p,y))continue;const x={delay:a,...Ju(u||{},y)},w=v.get();if(w!==void 0&&!v.isAnimating&&!Array.isArray(S)&&S===w&&!x.velocity)continue;let C=!1;if(window.MotionHandoffAnimation){const R=Qm(n);if(R){const L=window.MotionHandoffAnimation(R,y,Ot);L!==null&&(x.startTime=L,C=!0)}}ec(n,y),v.start($u(y,v,S,n.shouldReduceMotion&&Ym.has(y)?{type:!1}:x,n,C));const A=v.animation;A&&m.push(A)}return c&&Promise.all(m).then(()=>{Ot.update(()=>{c&&tc(n,c)})}),m}function nc(n,t,a={}){const o=Rs(n,t,a.type==="exit"?n.presenceContext?.custom:void 0);let{transition:r=n.getDefaultTransition()||{}}=o||{};a.transitionOverride&&(r=a.transitionOverride);const u=o?()=>Promise.all(Zm(n,o,a)):()=>Promise.resolve(),c=n.variantChildren&&n.variantChildren.size?(m=0)=>{const{delayChildren:p=0,staggerChildren:y,staggerDirection:v}=r;return zT(n,t,m,p,y,v,a)}:()=>Promise.resolve(),{when:d}=r;if(d){const[m,p]=d==="beforeChildren"?[u,c]:[c,u];return m().then(()=>p())}else return Promise.all([u(),c(a.delay)])}function zT(n,t,a=0,o=0,r=0,u=1,c){const d=[];for(const m of n.variantChildren)m.notify("AnimationStart",t),d.push(nc(m,t,{...c,delay:a+(typeof o=="function"?0:o)+qm(n.variantChildren,m,o,r,u)}).then(()=>m.notify("AnimationComplete",t)));return Promise.all(d)}function Km(n,t,a={}){n.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(u=>nc(n,u,a));o=Promise.all(r)}else if(typeof t=="string")o=nc(n,t,a);else{const r=typeof t=="function"?Rs(n,t,a.custom):t;o=Promise.all(Zm(n,r,a))}return o.then(()=>{n.notify("AnimationComplete",t)})}const OT={test:n=>n==="auto",parse:n=>n},Fm=n=>t=>t.test(n),Jm=[As,$,Ei,ln,l1,o1,OT],$m=n=>Jm.find(Fm(n));function RT(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||Jd(n):!0}const VT=new Set(["brightness","contrast","saturate","opacity"]);function BT(n){const[t,a]=n.slice(0,-1).split("(");if(t==="drop-shadow")return n;const[o]=a.match(_u)||[];if(!o)return n;const r=a.replace(o,"");let u=VT.has(t)?1:0;return o!==a&&(u*=100),t+"("+u+r+")"}const LT=/\b([a-z-]*)\(.*?\)/gu,sc={...rn,getAnimatableNone:n=>{const t=n.match(LT);return t?t.map(BT).join(" "):n}},Im={...As,transform:Math.round},ac={borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,radius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,inset:$,insetBlock:$,insetBlockStart:$,insetBlockEnd:$,insetInline:$,insetInlineStart:$,insetInlineEnd:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,paddingBlock:$,paddingBlockStart:$,paddingBlockEnd:$,paddingInline:$,paddingInlineStart:$,paddingInlineEnd:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,marginBlock:$,marginBlockStart:$,marginBlockEnd:$,marginInline:$,marginInlineStart:$,marginInlineEnd:$,backgroundPositionX:$,backgroundPositionY:$,...{rotate:ln,rotateX:ln,rotateY:ln,rotateZ:ln,scale:ol,scaleX:ol,scaleY:ol,scaleZ:ol,skew:ln,skewX:ln,skewY:ln,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:Pa,originX:mm,originY:mm,originZ:$},zIndex:Im,fillOpacity:Pa,strokeOpacity:Pa,numOctaves:Im},kT={...ac,color:Qt,backgroundColor:Qt,outlineColor:Qt,fill:Qt,stroke:Qt,borderColor:Qt,borderTopColor:Qt,borderRightColor:Qt,borderBottomColor:Qt,borderLeftColor:Qt,filter:sc,WebkitFilter:sc},Wm=n=>kT[n];function tp(n,t){let a=Wm(n);return a!==sc&&(a=rn),a.getAnimatableNone?a.getAnimatableNone(t):void 0}const UT=new Set(["auto","none","0"]);function NT(n,t,a){let o=0,r;for(;o<n.length&&!r;){const u=n[o];typeof u=="string"&&!UT.has(u)&&Xa(u).values.length&&(r=n[o]),o++}if(r&&a)for(const u of t)n[u]=tp(a,r)}class HT extends Zu{constructor(t,a,o,r,u){super(t,a,o,r,u,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:a,name:o}=this;if(!a||!a.current)return;super.readKeyframes();for(let y=0;y<t.length;y++){let v=t[y];if(typeof v=="string"&&(v=v.trim(),Mu(v))){const S=jm(v,a.current);S!==void 0&&(t[y]=S),y===t.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!Ym.has(o)||t.length!==2)return;const[r,u]=t,c=$m(r),d=$m(u),m=hm(r),p=hm(u);if(m!==p&&un[o]){this.needsMeasurement=!0;return}if(c!==d)if(Om(c)&&Om(d))for(let y=0;y<t.length;y++){const v=t[y];typeof v=="string"&&(t[y]=parseFloat(v))}else un[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:a}=this,o=[];for(let r=0;r<t.length;r++)(t[r]===null||RT(t[r]))&&o.push(r);o.length&&NT(t,o,a)}measureInitialState(){const{element:t,unresolvedKeyframes:a,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=un[o](t.measureViewportBox(),window.getComputedStyle(t.current)),a[0]=this.measuredOrigin;const r=a[a.length-1];r!==void 0&&t.getValue(o,r).jump(r,!1)}measureEndState(){const{element:t,name:a,unresolvedKeyframes:o}=this;if(!t||!t.current)return;const r=t.getValue(a);r&&r.jump(this.measuredOrigin,!1);const u=o.length-1,c=o[u];o[u]=un[a](t.measureViewportBox(),window.getComputedStyle(t.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),this.removedTransforms?.length&&this.removedTransforms.forEach(([d,m])=>{t.getValue(d).set(m)}),this.resolveNoneKeyframes()}}function qT(n,t,a){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let o=document;const r=a?.[n]??o.querySelectorAll(n);return r?Array.from(r):[]}return Array.from(n).filter(o=>o!=null)}const ep=(n,t)=>t&&typeof n=="number"?t.transform(n):n;function oc(n){return Fd(n)&&"offsetHeight"in n}const{schedule:lc}=um(queueMicrotask,!1),mi={x:!1,y:!1};function ip(){return mi.x||mi.y}function jT(n){return n==="x"||n==="y"?mi[n]?null:(mi[n]=!0,()=>{mi[n]=!1}):mi.x||mi.y?null:(mi.x=mi.y=!0,()=>{mi.x=mi.y=!1})}function np(n,t){const a=qT(n),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[a,r,()=>o.abort()]}function sp(n){return!(n.pointerType==="touch"||ip())}function PT(n,t,a={}){const[o,r,u]=np(n,a),c=d=>{if(!sp(d))return;const{target:m}=d,p=t(m,d);if(typeof p!="function"||!m)return;const y=v=>{sp(v)&&(p(v),m.removeEventListener("pointerleave",y))};m.addEventListener("pointerleave",y,r)};return o.forEach(d=>{d.addEventListener("pointerenter",c,r)}),u}const ap=(n,t)=>t?n===t?!0:ap(n,t.parentElement):!1,rc=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,YT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function op(n){return YT.has(n.tagName)||n.isContentEditable===!0}const cl=new WeakSet;function lp(n){return t=>{t.key==="Enter"&&n(t)}}function uc(n,t){n.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const GT=(n,t)=>{const a=n.currentTarget;if(!a)return;const o=lp(()=>{if(cl.has(a))return;uc(a,"down");const r=lp(()=>{uc(a,"up")}),u=()=>uc(a,"cancel");a.addEventListener("keyup",r,t),a.addEventListener("blur",u,t)});a.addEventListener("keydown",o,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",o),t)};function rp(n){return rc(n)&&!ip()}function XT(n,t,a={}){const[o,r,u]=np(n,a),c=d=>{const m=d.currentTarget;if(!rp(d))return;cl.add(m);const p=t(m,d),y=(x,w)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",S),cl.has(m)&&cl.delete(m),rp(x)&&typeof p=="function"&&p(x,{success:w})},v=x=>{y(x,m===window||m===document||a.useGlobalTarget||ap(m,x.target))},S=x=>{y(x,!1)};window.addEventListener("pointerup",v,r),window.addEventListener("pointercancel",S,r)};return o.forEach(d=>{(a.useGlobalTarget?window:d).addEventListener("pointerdown",c,r),oc(d)&&(d.addEventListener("focus",p=>GT(p,r)),!op(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),u}function up(n){return Fd(n)&&"ownerSVGElement"in n}function QT(n){return up(n)&&n.tagName==="svg"}const ZT=[...Jm,Qt,rn],KT=n=>ZT.find(Fm(n)),cp=()=>({translate:0,scale:1,origin:0,originPoint:0}),Bs=()=>({x:cp(),y:cp()}),fp=()=>({min:0,max:0}),Wt=()=>({x:fp(),y:fp()}),cc={current:null},hp={current:!1},FT=typeof window<"u";function JT(){if(hp.current=!0,!!FT)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),t=()=>cc.current=n.matches;n.addEventListener("change",t),t()}else cc.current=!1}const $T=new WeakMap;function fl(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function Ka(n){return typeof n=="string"||Array.isArray(n)}const fc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],hc=["initial",...fc];function hl(n){return fl(n.animate)||hc.some(t=>Ka(n[t]))}function dp(n){return!!(hl(n)||n.variants)}function IT(n,t,a){for(const o in t){const r=t[o],u=a[o];if(de(r))n.addValue(o,r);else if(de(u))n.addValue(o,Vs(r,{owner:n}));else if(u!==r)if(n.hasValue(o)){const c=n.getValue(o);c.liveStyle===!0?c.jump(r):c.hasAnimated||c.set(r)}else{const c=n.getStaticValue(o);n.addValue(o,Vs(c!==void 0?c:r,{owner:n}))}}for(const o in a)t[o]===void 0&&n.removeValue(o);return t}const mp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let dl={};function pp(n){dl=n}function WT(){return dl}class tw{scrapeMotionValuesFromProps(t,a,o){return{}}constructor({parent:t,props:a,presenceContext:o,reducedMotionConfig:r,blockInitialAnimation:u,visualState:c},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Zu,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 S=Se.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,Ot.render(this.render,!1,!0))};const{latestValues:m,renderState:p}=c;this.latestValues=m,this.baseTarget={...m},this.initialValues=a.initial?{...m}:{},this.renderState=p,this.parent=t,this.props=a,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=d,this.blockInitialAnimation=!!u,this.isControllingVariants=hl(a),this.isVariantNode=dp(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...v}=this.scrapeMotionValuesFromProps(a,{},this);for(const S in v){const x=v[S];m[S]!==void 0&&de(x)&&x.set(m[S])}}mount(t){this.current=t,$T.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,o)=>this.bindToMotionValue(o,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(hp.current||JT(),this.shouldReduceMotion=cc.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),on(this.notifyUpdate),on(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const a=this.features[t];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,a){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const o=Os.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=a.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Ot.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let u;typeof window<"u"&&window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{r(),u&&u(),a.owner&&a.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in dl){const a=dl[t];if(!a)continue;const{isEnabled:o,Feature:r}=a;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){const u=this.features[t];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let o=0;o<mp.length;o++){const r=mp[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const u="on"+r,c=t[u];c&&(this.propEventSubscriptions[r]=this.on(r,c))}this.prevMotionValues=IT(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(t),()=>a.variantChildren.delete(t)}addValue(t,a){const o=this.values.get(t);a!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a),this.latestValues[t]=a.get())}removeValue(t){this.values.delete(t);const a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&a!==void 0&&(o=Vs(a===null?void 0:a,{owner:this}),this.addValue(t,o)),o}readValue(t,a){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Kd(o)||Jd(o))?o=parseFloat(o):!KT(o)&&rn.test(a)&&(o=tp(t,a)),this.setBaseTarget(t,de(o)?o.get():o)),de(o)?o.get():o}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){const{initial:a}=this.props;let o;if(typeof a=="string"||typeof a=="object"){const u=Iu(this.props,a,this.presenceContext?.custom);u&&(o=u[t])}if(a&&o!==void 0)return o;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!de(r)?r:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new Su),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}scheduleRenderMicrotask(){lc.render(this.render)}}class yp extends tw{constructor(){super(...arguments),this.KeyframeResolver=HT}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){const o=t.style;return o?o[a]:void 0}removeValueFromRenderState(t,{vars:a,style:o}){delete a[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;de(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}class cn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function gp({top:n,left:t,right:a,bottom:o}){return{x:{min:t,max:a},y:{min:n,max:o}}}function ew({x:n,y:t}){return{top:t.min,right:n.max,bottom:t.max,left:n.min}}function iw(n,t){if(!t)return n;const a=t({x:n.left,y:n.top}),o=t({x:n.right,y:n.bottom});return{top:a.y,left:a.x,bottom:o.y,right:o.x}}function dc(n){return n===void 0||n===1}function mc({scale:n,scaleX:t,scaleY:a}){return!dc(n)||!dc(t)||!dc(a)}function Xn(n){return mc(n)||vp(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function vp(n){return bp(n.x)||bp(n.y)}function bp(n){return n&&n!=="0%"}function ml(n,t,a){const o=n-a,r=t*o;return a+r}function Sp(n,t,a,o,r){return r!==void 0&&(n=ml(n,r,o)),ml(n,a,o)+t}function pc(n,t=0,a=1,o,r){n.min=Sp(n.min,t,a,o,r),n.max=Sp(n.max,t,a,o,r)}function xp(n,{x:t,y:a}){pc(n.x,t.translate,t.scale,t.originPoint),pc(n.y,a.translate,a.scale,a.originPoint)}const Tp=.999999999999,wp=1.0000000000001;function nw(n,t,a,o=!1){const r=a.length;if(!r)return;t.x=t.y=1;let u,c;for(let d=0;d<r;d++){u=a[d],c=u.projectionDelta;const{visualElement:m}=u.options;m&&m.props.style&&m.props.style.display==="contents"||(o&&u.options.layoutScroll&&u.scroll&&u!==u.root&&ks(n,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,xp(n,c)),o&&Xn(u.latestValues)&&ks(n,u.latestValues))}t.x<wp&&t.x>Tp&&(t.x=1),t.y<wp&&t.y>Tp&&(t.y=1)}function Ls(n,t){n.min=n.min+t,n.max=n.max+t}function Mp(n,t,a,o,r=.5){const u=Ut(n.min,n.max,r);pc(n,t,a,u,o)}function ks(n,t){Mp(n.x,t.x,t.scaleX,t.scale,t.originX),Mp(n.y,t.y,t.scaleY,t.scale,t.originY)}function _p(n,t){return gp(iw(n.getBoundingClientRect(),t))}function sw(n,t,a){const o=_p(n,a),{scroll:r}=t;return r&&(Ls(o.x,r.offset.x),Ls(o.y,r.offset.y)),o}const aw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ow=zs.length;function lw(n,t,a){let o="",r=!0;for(let u=0;u<ow;u++){const c=zs[u],d=n[c];if(d===void 0)continue;let m=!0;if(typeof d=="number")m=d===(c.startsWith("scale")?1:0);else{const p=parseFloat(d);m=c.startsWith("scale")?p===1:p===0}if(!m||a){const p=ep(d,ac[c]);if(!m){r=!1;const y=aw[c]||c;o+=`${y}(${p}) `}a&&(t[c]=p)}}return o=o.trim(),a?o=a(t,r?"":o):r&&(o="none"),o}function yc(n,t,a){const{style:o,vars:r,transformOrigin:u}=n;let c=!1,d=!1;for(const m in t){const p=t[m];if(Os.has(m)){c=!0;continue}else if(fm(m)){r[m]=p;continue}else{const y=ep(p,ac[m]);m.startsWith("origin")?(d=!0,u[m]=y):o[m]=y}}if(t.transform||(c||a?o.transform=lw(t,n.transform,a):o.transform&&(o.transform="none")),d){const{originX:m="50%",originY:p="50%",originZ:y=0}=u;o.transformOrigin=`${m} ${p} ${y}`}}function Cp(n,{style:t,vars:a},o,r){const u=n.style;let c;for(c in t)u[c]=t[c];r?.applyProjectionStyles(u,o);for(c in a)u.setProperty(c,a[c])}function Ep(n,t){return t.max===t.min?0:n/(t.max-t.min)*100}const Fa={correct:(n,t)=>{if(!t.target)return n;if(typeof n=="string")if($.test(n))n=parseFloat(n);else return n;const a=Ep(n,t.target.x),o=Ep(n,t.target.y);return`${a}% ${o}%`}},rw={correct:(n,{treeScale:t,projectionDelta:a})=>{const o=n,r=rn.parse(n);if(r.length>5)return o;const u=rn.createTransformer(n),c=typeof r[0]!="number"?1:0,d=a.x.scale*t.x,m=a.y.scale*t.y;r[0+c]/=d,r[1+c]/=m;const p=Ut(d,m,.5);return typeof r[2+c]=="number"&&(r[2+c]/=p),typeof r[3+c]=="number"&&(r[3+c]/=p),u(r)}},gc={borderRadius:{...Fa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fa,borderTopRightRadius:Fa,borderBottomLeftRadius:Fa,borderBottomRightRadius:Fa,boxShadow:rw};function Ap(n,{layout:t,layoutId:a}){return Os.has(n)||n.startsWith("origin")||(t||a!==void 0)&&(!!gc[n]||n==="opacity")}function vc(n,t,a){const o=n.style,r=t?.style,u={};if(!o)return u;for(const c in o)(de(o[c])||r&&de(r[c])||Ap(c,n)||a?.getValue(c)?.liveStyle!==void 0)&&(u[c]=o[c]);return u}function uw(n){return window.getComputedStyle(n)}class cw extends yp{constructor(){super(...arguments),this.type="html",this.renderInstance=Cp}readValueFromInstance(t,a){if(Os.has(a))return this.projection?.isProjecting?Pu(a):G1(t,a);{const o=uw(t),r=(fm(a)?o.getPropertyValue(a):o[a])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:a}){return _p(t,a)}build(t,a,o){yc(t,a,o.transformTemplate)}scrapeMotionValuesFromProps(t,a,o){return vc(t,a,o)}}const fw={offset:"stroke-dashoffset",array:"stroke-dasharray"},hw={offset:"strokeDashoffset",array:"strokeDasharray"};function dw(n,t,a=1,o=0,r=!0){n.pathLength=1;const u=r?fw:hw;n[u.offset]=`${-o}`,n[u.array]=`${t} ${a}`}const mw=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Dp(n,{attrX:t,attrY:a,attrScale:o,pathLength:r,pathSpacing:u=1,pathOffset:c=0,...d},m,p,y){if(yc(n,d,p),m){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:v,style:S}=n;v.transform&&(S.transform=v.transform,delete v.transform),(S.transform||v.transformOrigin)&&(S.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),S.transform&&(S.transformBox=y?.transformBox??"fill-box",delete v.transformBox);for(const x of mw)v[x]!==void 0&&(S[x]=v[x],delete v[x]);t!==void 0&&(v.x=t),a!==void 0&&(v.y=a),o!==void 0&&(v.scale=o),r!==void 0&&dw(v,r,u,c,!1)}const zp=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"]),Op=n=>typeof n=="string"&&n.toLowerCase()==="svg";function pw(n,t,a,o){Cp(n,t,void 0,o);for(const r in t.attrs)n.setAttribute(zp.has(r)?r:ic(r),t.attrs[r])}function Rp(n,t,a){const o=vc(n,t,a);for(const r in n)if(de(n[r])||de(t[r])){const u=zs.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[u]=n[r]}return o}class yw extends yp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wt}getBaseTargetFromProps(t,a){return t[a]}readValueFromInstance(t,a){if(Os.has(a)){const o=Wm(a);return o&&o.default||0}return a=zp.has(a)?a:ic(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,o){return Rp(t,a,o)}build(t,a,o){Dp(t,a,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,a,o,r){pw(t,a,o,r)}mount(t){this.isSVGTag=Op(t.tagName),super.mount(t)}}const gw=hc.length;function Vp(n){if(!n)return;if(!n.isControllingVariants){const a=n.parent?Vp(n.parent)||{}:{};return n.props.initial!==void 0&&(a.initial=n.props.initial),a}const t={};for(let a=0;a<gw;a++){const o=hc[a],r=n.props[o];(Ka(r)||r===!1)&&(t[o]=r)}return t}function Bp(n,t){if(!Array.isArray(t))return!1;const a=t.length;if(a!==n.length)return!1;for(let o=0;o<a;o++)if(t[o]!==n[o])return!1;return!0}const vw=[...fc].reverse(),bw=fc.length;function Sw(n){return t=>Promise.all(t.map(({animation:a,options:o})=>Km(n,a,o)))}function xw(n){let t=Sw(n),a=Lp(),o=!0;const r=m=>(p,y)=>{const v=Rs(n,y,m==="exit"?n.presenceContext?.custom:void 0);if(v){const{transition:S,transitionEnd:x,...w}=v;p={...p,...w,...x}}return p};function u(m){t=m(n)}function c(m){const{props:p}=n,y=Vp(n.parent)||{},v=[],S=new Set;let x={},w=1/0;for(let A=0;A<bw;A++){const R=vw[A],L=a[R],B=p[R]!==void 0?p[R]:y[R],H=Ka(B),Y=R===m?L.isActive:null;Y===!1&&(w=A);let K=B===y[R]&&B!==p[R]&&H;if(K&&o&&n.manuallyAnimateOnMount&&(K=!1),L.protectedKeys={...x},!L.isActive&&Y===null||!B&&!L.prevProp||fl(B)||typeof B=="boolean")continue;const G=Tw(L.prevProp,B);let Q=G||R===m&&L.isActive&&!K&&H||A>w&&H,st=!1;const dt=Array.isArray(B)?B:[B];let Rt=dt.reduce(r(R),{});Y===!1&&(Rt={});const{prevResolvedValues:Lt={}}=L,qe={...Lt,...Rt},Ee=P=>{Q=!0,S.has(P)&&(st=!0,S.delete(P)),L.needsAnimating[P]=!0;const W=n.getValue(P);W&&(W.liveStyle=!1)};for(const P in qe){const W=Rt[P],mt=Lt[P];if(x.hasOwnProperty(P))continue;let vt=!1;Wu(W)&&Wu(mt)?vt=!Bp(W,mt):vt=W!==mt,vt?W!=null?Ee(P):S.add(P):W!==void 0&&S.has(P)?Ee(P):L.protectedKeys[P]=!0}L.prevProp=B,L.prevResolvedValues=Rt,L.isActive&&(x={...x,...Rt}),o&&n.blockInitialAnimation&&(Q=!1);const Ae=K&&G;Q&&(!Ae||st)&&v.push(...dt.map(P=>{const W={type:R};if(typeof P=="string"&&o&&!Ae&&n.manuallyAnimateOnMount&&n.parent){const{parent:mt}=n,vt=Rs(mt,P);if(mt.enteringChildren&&vt){const{delayChildren:_}=vt.transition||{};W.delay=qm(mt.enteringChildren,n,_)}}return{animation:P,options:W}}))}if(S.size){const A={};if(typeof p.initial!="boolean"){const R=Rs(n,Array.isArray(p.initial)?p.initial[0]:p.initial);R&&R.transition&&(A.transition=R.transition)}S.forEach(R=>{const L=n.getBaseTarget(R),B=n.getValue(R);B&&(B.liveStyle=!0),A[R]=L??null}),v.push({animation:A})}let C=!!v.length;return o&&(p.initial===!1||p.initial===p.animate)&&!n.manuallyAnimateOnMount&&(C=!1),o=!1,C?t(v):Promise.resolve()}function d(m,p){if(a[m].isActive===p)return Promise.resolve();n.variantChildren?.forEach(v=>v.animationState?.setActive(m,p)),a[m].isActive=p;const y=c(m);for(const v in a)a[v].protectedKeys={};return y}return{animateChanges:c,setActive:d,setAnimateFunction:u,getState:()=>a,reset:()=>{a=Lp()}}}function Tw(n,t){return typeof t=="string"?t!==n:Array.isArray(t)?!Bp(t,n):!1}function Qn(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Lp(){return{animate:Qn(!0),whileInView:Qn(),whileHover:Qn(),whileTap:Qn(),whileDrag:Qn(),whileFocus:Qn(),exit:Qn()}}function kp(n,t){n.min=t.min,n.max=t.max}function pi(n,t){kp(n.x,t.x),kp(n.y,t.y)}function Up(n,t){n.translate=t.translate,n.scale=t.scale,n.originPoint=t.originPoint,n.origin=t.origin}const Np=1e-4,ww=1-Np,Mw=1+Np,Hp=.01,_w=0-Hp,Cw=0+Hp;function xe(n){return n.max-n.min}function Ew(n,t,a){return Math.abs(n-t)<=a}function qp(n,t,a,o=.5){n.origin=o,n.originPoint=Ut(t.min,t.max,n.origin),n.scale=xe(a)/xe(t),n.translate=Ut(a.min,a.max,n.origin)-n.originPoint,(n.scale>=ww&&n.scale<=Mw||isNaN(n.scale))&&(n.scale=1),(n.translate>=_w&&n.translate<=Cw||isNaN(n.translate))&&(n.translate=0)}function Ja(n,t,a,o){qp(n.x,t.x,a.x,o?o.originX:void 0),qp(n.y,t.y,a.y,o?o.originY:void 0)}function jp(n,t,a){n.min=a.min+t.min,n.max=n.min+xe(t)}function Aw(n,t,a){jp(n.x,t.x,a.x),jp(n.y,t.y,a.y)}function Pp(n,t,a){n.min=t.min-a.min,n.max=n.min+xe(t)}function pl(n,t,a){Pp(n.x,t.x,a.x),Pp(n.y,t.y,a.y)}function Yp(n,t,a,o,r){return n-=t,n=ml(n,1/a,o),r!==void 0&&(n=ml(n,1/r,o)),n}function Dw(n,t=0,a=1,o=.5,r,u=n,c=n){if(Ei.test(t)&&(t=parseFloat(t),t=Ut(c.min,c.max,t/100)-c.min),typeof t!="number")return;let d=Ut(u.min,u.max,o);n===u&&(d-=t),n.min=Yp(n.min,t,a,d,r),n.max=Yp(n.max,t,a,d,r)}function Gp(n,t,[a,o,r],u,c){Dw(n,t[a],t[o],t[r],t.scale,u,c)}const zw=["x","scaleX","originX"],Ow=["y","scaleY","originY"];function Xp(n,t,a,o){Gp(n.x,t,zw,a?a.x:void 0,o?o.x:void 0),Gp(n.y,t,Ow,a?a.y:void 0,o?o.y:void 0)}function Qp(n){return n.translate===0&&n.scale===1}function Zp(n){return Qp(n.x)&&Qp(n.y)}function Kp(n,t){return n.min===t.min&&n.max===t.max}function Rw(n,t){return Kp(n.x,t.x)&&Kp(n.y,t.y)}function Fp(n,t){return Math.round(n.min)===Math.round(t.min)&&Math.round(n.max)===Math.round(t.max)}function Jp(n,t){return Fp(n.x,t.x)&&Fp(n.y,t.y)}function $p(n){return xe(n.x)/xe(n.y)}function Ip(n,t){return n.translate===t.translate&&n.scale===t.scale&&n.originPoint===t.originPoint}function We(n){return[n("x"),n("y")]}function Vw(n,t,a){let o="";const r=n.x.translate/t.x,u=n.y.translate/t.y,c=a?.z||0;if((r||u||c)&&(o=`translate3d(${r}px, ${u}px, ${c}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),a){const{transformPerspective:p,rotate:y,rotateX:v,rotateY:S,skewX:x,skewY:w}=a;p&&(o=`perspective(${p}px) ${o}`),y&&(o+=`rotate(${y}deg) `),v&&(o+=`rotateX(${v}deg) `),S&&(o+=`rotateY(${S}deg) `),x&&(o+=`skewX(${x}deg) `),w&&(o+=`skewY(${w}deg) `)}const d=n.x.scale*t.x,m=n.y.scale*t.y;return(d!==1||m!==1)&&(o+=`scale(${d}, ${m})`),o||"none"}const Wp=["TopLeft","TopRight","BottomLeft","BottomRight"],Bw=Wp.length,ty=n=>typeof n=="string"?parseFloat(n):n,ey=n=>typeof n=="number"||$.test(n);function Lw(n,t,a,o,r,u){r?(n.opacity=Ut(0,a.opacity??1,kw(o)),n.opacityExit=Ut(t.opacity??1,0,Uw(o))):u&&(n.opacity=Ut(t.opacity??1,a.opacity??1,o));for(let c=0;c<Bw;c++){const d=`border${Wp[c]}Radius`;let m=iy(t,d),p=iy(a,d);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||ey(m)===ey(p)?(n[d]=Math.max(Ut(ty(m),ty(p),o),0),(Ei.test(p)||Ei.test(m))&&(n[d]+="%")):n[d]=p}(t.rotate||a.rotate)&&(n.rotate=Ut(t.rotate||0,a.rotate||0,o))}function iy(n,t){return n[t]!==void 0?n[t]:n.borderRadius}const kw=ny(0,.5,sm),Uw=ny(.5,.95,$e);function ny(n,t,a){return o=>o<n?0:o>t?1:a(qa(n,t,o))}function Nw(n,t,a){const o=de(n)?n:Vs(n);return o.start($u("",o,t,a)),o.animation}function $a(n,t,a,o={passive:!0}){return n.addEventListener(t,a,o),()=>n.removeEventListener(t,a)}const Hw=(n,t)=>n.depth-t.depth;class qw{constructor(){this.children=[],this.isDirty=!1}add(t){yu(this.children,t),this.isDirty=!0}remove(t){gu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Hw),this.isDirty=!1,this.children.forEach(t)}}function jw(n,t){const a=Se.now(),o=({timestamp:r})=>{const u=r-a;u>=t&&(on(o),n(u-t))};return Ot.setup(o,!0),()=>on(o)}function yl(n){return de(n)?n.get():n}class Pw{constructor(){this.members=[]}add(t){yu(this.members,t),t.scheduleRender()}remove(t){if(gu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){const a=this.members.findIndex(r=>t===r);if(a===0)return!1;let o;for(let r=a;r>=0;r--){const u=this.members[r];if(u.isPresent!==!1){o=u;break}}return o?(this.promote(o),!0):!1}promote(t,a){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,a&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:a,resumingFrom:o}=t;a.onExitComplete&&a.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const gl={hasAnimatedSinceResize:!0,hasEverUpdated:!1},bc=["","X","Y","Z"],Yw=1e3;let Gw=0;function Sc(n,t,a,o){const{latestValues:r}=t;r[n]&&(a[n]=r[n],t.setStaticValue(n,0),o&&(o[n]=0))}function sy(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:t}=n.options;if(!t)return;const a=Qm(t);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:r,layoutId:u}=n.options;window.MotionCancelOptimisedAnimation(a,"transform",Ot,!(r||u))}const{parent:o}=n;o&&!o.hasCheckedOptimisedAppear&&sy(o)}function ay({attachResizeListener:n,defaultParent:t,measureScroll:a,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(c={},d=t?.()){this.id=Gw++,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.layoutVersion=0,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(Zw),this.nodes.forEach($w),this.nodes.forEach(Iw),this.nodes.forEach(Kw)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new qw)}addEventListener(c,d){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Su),this.eventHandlers.get(c).add(d)}notifyListeners(c,...d){const m=this.eventHandlers.get(c);m&&m.notify(...d)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=up(c)&&!QT(c),this.instance=c;const{layoutId:d,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||d)&&(this.isLayoutDirty=!0),n){let y,v=0;const S=()=>this.root.updateBlockedByResize=!1;Ot.read(()=>{v=window.innerWidth}),n(c,()=>{const x=window.innerWidth;x!==v&&(v=x,this.root.updateBlockedByResize=!0,y&&y(),y=jw(S,250),gl.hasAnimatedSinceResize&&(gl.hasAnimatedSinceResize=!1,this.nodes.forEach(ry)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&p&&(d||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeLayoutChanged:S,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||p.getDefaultTransition()||nM,{onLayoutAnimationStart:C,onLayoutAnimationComplete:A}=p.getProps(),R=!this.targetLayout||!Jp(this.targetLayout,x),L=!v&&S;if(this.options.layoutRoot||this.resumeFrom||L||v&&(R||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const B={...Ju(w,"layout"),onPlay:C,onComplete:A};(p.shouldReduceMotion||this.options.layoutRoot)&&(B.delay=0,B.type=!1),this.startAnimation(B),this.setAnimationOrigin(y,L)}else v||ry(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),on(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(Ww),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&sy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const v=this.path[y];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:d,layout:m}=this.options;if(d===void 0&&!m)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(oy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ly);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Jw),this.nodes.forEach(Xw),this.nodes.forEach(Qw)):this.nodes.forEach(ly),this.clearAllSnapshots();const d=Se.now();ae.delta=Ci(0,1e3/60,d-ae.timestamp),ae.timestamp=d,ae.isProcessing=!0,wu.update.process(ae),wu.preRender.process(ae),wu.render.process(ae),ae.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,lc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Fw),this.sharedNodes.forEach(tM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ot.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ot.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!xe(this.snapshot.measuredBox.x)&&!xe(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 m=0;m<this.path.length;m++)this.path[m].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Wt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(d=!1),d&&this.instance){const m=o(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:m,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!r)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!Zp(this.projectionDelta),m=this.getTransformTemplate(),p=m?m(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;c&&this.instance&&(d||Xn(this.latestValues)||y)&&(r(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const d=this.measurePageBox();let m=this.removeElementScroll(d);return c&&(m=this.removeTransform(m)),sM(m),{animationId:this.root.animationId,measuredBox:d,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:c}=this.options;if(!c)return Wt();const d=c.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(aM))){const{scroll:p}=this.root;p&&(Ls(d.x,p.offset.x),Ls(d.y,p.offset.y))}return d}removeElementScroll(c){const d=Wt();if(pi(d,c),this.scroll?.wasRoot)return d;for(let m=0;m<this.path.length;m++){const p=this.path[m],{scroll:y,options:v}=p;p!==this.root&&y&&v.layoutScroll&&(y.wasRoot&&pi(d,c),Ls(d.x,y.offset.x),Ls(d.y,y.offset.y))}return d}applyTransform(c,d=!1){const m=Wt();pi(m,c);for(let p=0;p<this.path.length;p++){const y=this.path[p];!d&&y.options.layoutScroll&&y.scroll&&y!==y.root&&ks(m,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),Xn(y.latestValues)&&ks(m,y.latestValues)}return Xn(this.latestValues)&&ks(m,this.latestValues),m}removeTransform(c){const d=Wt();pi(d,c);for(let m=0;m<this.path.length;m++){const p=this.path[m];if(!p.instance||!Xn(p.latestValues))continue;mc(p.latestValues)&&p.updateSnapshot();const y=Wt(),v=p.measurePageBox();pi(y,v),Xp(d,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return Xn(this.latestValues)&&Xp(d,this.latestValues),d}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ae.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==d;if(!(c||m&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:v}=this.options;if(!this.layout||!(y||v))return;this.resolvedRelativeTargetAt=ae.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wt(),this.targetWithTransforms=Wt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Aw(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):pi(this.target,this.layout.layoutBox),xp(this.target,this.targetDelta)):pi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||mc(this.parent.latestValues)||vp(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(c,d,m){this.relativeParent=c,this.linkedParentVersion=c.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wt(),this.relativeTargetOrigin=Wt(),pl(this.relativeTargetOrigin,d,m),pi(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const c=this.getLead(),d=!!this.resumingFrom||this!==c;let m=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(m=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===ae.timestamp&&(m=!1),m)return;const{layout:p,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||y))return;pi(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,S=this.treeScale.y;nw(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=Wt());const{target:x}=c;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Up(this.prevProjectionDelta.x,this.projectionDelta.x),Up(this.prevProjectionDelta.y,this.projectionDelta.y)),Ja(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==S||!Ip(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ip(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){if(this.options.visualElement?.scheduleRender(),c){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Bs(),this.projectionDelta=Bs(),this.projectionDeltaWithTransform=Bs()}setAnimationOrigin(c,d=!1){const m=this.snapshot,p=m?m.latestValues:{},y={...this.latestValues},v=Bs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const S=Wt(),x=m?m.source:void 0,w=this.layout?this.layout.source:void 0,C=x!==w,A=this.getStack(),R=!A||A.members.length<=1,L=!!(C&&!R&&this.options.crossfade===!0&&!this.path.some(iM));this.animationProgress=0;let B;this.mixTargetDelta=H=>{const Y=H/1e3;uy(v.x,c.x,Y),uy(v.y,c.y,Y),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pl(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),eM(this.relativeTarget,this.relativeTargetOrigin,S,Y),B&&Rw(this.relativeTarget,B)&&(this.isProjectionDirty=!1),B||(B=Wt()),pi(B,this.relativeTarget)),C&&(this.animationValues=y,Lw(y,p,this.latestValues,Y,L,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Y},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(on(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ot.update(()=>{gl.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Vs(0)),this.currentAnimation=Nw(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),c.onUpdate&&c.onUpdate(d)},onStop:()=>{},onComplete:()=>{c.onComplete&&c.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 c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Yw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:d,target:m,layout:p,latestValues:y}=c;if(!(!d||!m||!p)){if(this!==c&&this.layout&&p&&my(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||Wt();const v=xe(this.layout.layoutBox.x);m.x.min=c.target.x.min,m.x.max=m.x.min+v;const S=xe(this.layout.layoutBox.y);m.y.min=c.target.y.min,m.y.max=m.y.min+S}pi(d,m),ks(d,y),Ja(this.projectionDeltaWithTransform,this.layoutCorrected,d,y)}}registerSharedNode(c,d){this.sharedNodes.has(c)||this.sharedNodes.set(c,new Pw),this.sharedNodes.get(c).add(d);const p=d.options.initialPromotionConfig;d.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(d):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){const{layoutId:c}=this.options;return c?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:c}=this.options;return c?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:d,preserveFollowOpacity:m}={}){const p=this.getStack();p&&p.promote(this,m),c&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let d=!1;const{latestValues:m}=c;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(d=!0),!d)return;const p={};m.z&&Sc("z",c,p,this.animationValues);for(let y=0;y<bc.length;y++)Sc(`rotate${bc[y]}`,c,p,this.animationValues),Sc(`skew${bc[y]}`,c,p,this.animationValues);c.render();for(const y in p)c.setStaticValue(y,p[y]),this.animationValues&&(this.animationValues[y]=p[y]);c.scheduleRender()}applyProjectionStyles(c,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=yl(d?.pointerEvents)||"",c.transform=m?m(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(c.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,c.pointerEvents=yl(d?.pointerEvents)||""),this.hasProjected&&!Xn(this.latestValues)&&(c.transform=m?m({},""):"none",this.hasProjected=!1);return}c.visibility="";const y=p.animationValues||p.latestValues;this.applyTransformsToTarget();let v=Vw(this.projectionDeltaWithTransform,this.treeScale,y);m&&(v=m(y,v)),c.transform=v;const{x:S,y:x}=this.projectionDelta;c.transformOrigin=`${S.origin*100}% ${x.origin*100}% 0`,p.animationValues?c.opacity=p===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:c.opacity=p===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const w in gc){if(y[w]===void 0)continue;const{correct:C,applyTo:A,isCSSVariable:R}=gc[w],L=v==="none"?y[w]:C(y[w],p);if(A){const B=A.length;for(let H=0;H<B;H++)c[A[H]]=L}else R?this.options.visualElement.renderState.vars[w]=L:c[w]=L}this.options.layoutId&&(c.pointerEvents=p===this?yl(d?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>c.currentAnimation?.stop()),this.root.nodes.forEach(oy),this.root.sharedNodes.clear()}}}function Xw(n){n.updateLayout()}function Qw(n){const t=n.resumeFrom?.snapshot||n.snapshot;if(n.isLead()&&n.layout&&t&&n.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:o}=n.layout,{animationType:r}=n.options,u=t.source!==n.layout.source;r==="size"?We(y=>{const v=u?t.measuredBox[y]:t.layoutBox[y],S=xe(v);v.min=a[y].min,v.max=v.min+S}):my(r,t.layoutBox,a)&&We(y=>{const v=u?t.measuredBox[y]:t.layoutBox[y],S=xe(a[y]);v.max=v.min+S,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[y].max=n.relativeTarget[y].min+S)});const c=Bs();Ja(c,a,t.layoutBox);const d=Bs();u?Ja(d,n.applyTransform(o,!0),t.measuredBox):Ja(d,a,t.layoutBox);const m=!Zp(c);let p=!1;if(!n.resumeFrom){const y=n.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:v,layout:S}=y;if(v&&S){const x=Wt();pl(x,t.layoutBox,v.layoutBox);const w=Wt();pl(w,a,S.layoutBox),Jp(x,w)||(p=!0),y.options.layoutRoot&&(n.relativeTarget=w,n.relativeTargetOrigin=x,n.relativeParent=y)}}}n.notifyListeners("didUpdate",{layout:a,snapshot:t,delta:d,layoutDelta:c,hasLayoutChanged:m,hasRelativeLayoutChanged:p})}else if(n.isLead()){const{onExitComplete:a}=n.options;a&&a()}n.options.transition=void 0}function Zw(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function Kw(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function Fw(n){n.clearSnapshot()}function oy(n){n.clearMeasurements()}function ly(n){n.isLayoutDirty=!1}function Jw(n){const{visualElement:t}=n.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),n.resetTransform()}function ry(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function $w(n){n.resolveTargetDelta()}function Iw(n){n.calcProjection()}function Ww(n){n.resetSkewAndRotation()}function tM(n){n.removeLeadSnapshot()}function uy(n,t,a){n.translate=Ut(t.translate,0,a),n.scale=Ut(t.scale,1,a),n.origin=t.origin,n.originPoint=t.originPoint}function cy(n,t,a,o){n.min=Ut(t.min,a.min,o),n.max=Ut(t.max,a.max,o)}function eM(n,t,a,o){cy(n.x,t.x,a.x,o),cy(n.y,t.y,a.y,o)}function iM(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const nM={duration:.45,ease:[.4,0,.1,1]},fy=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),hy=fy("applewebkit/")&&!fy("chrome/")?Math.round:$e;function dy(n){n.min=hy(n.min),n.max=hy(n.max)}function sM(n){dy(n.x),dy(n.y)}function my(n,t,a){return n==="position"||n==="preserve-aspect"&&!Ew($p(t),$p(a),.2)}function aM(n){return n!==n.root&&n.scroll?.wasRoot}const oM=ay({attachResizeListener:(n,t)=>$a(n,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),xc={current:void 0},py=ay({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!xc.current){const n=new oM({});n.mount(window),n.setOptions({layoutScroll:!0}),xc.current=n}return xc.current},resetTransform:(n,t)=>{n.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),Tc=F.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function yy(n,t){if(typeof n=="function")return n(t);n!=null&&(n.current=t)}function lM(...n){return t=>{let a=!1;const o=n.map(r=>{const u=yy(r,t);return!a&&typeof u=="function"&&(a=!0),u});if(a)return()=>{for(let r=0;r<o.length;r++){const u=o[r];typeof u=="function"?u():yy(n[r],null)}}}}function rM(...n){return F.useCallback(lM(...n),n)}class uM extends F.Component{getSnapshotBeforeUpdate(t){const a=this.props.childRef.current;if(a&&t.isPresent&&!this.props.isPresent){const o=a.offsetParent,r=oc(o)&&o.offsetWidth||0,u=oc(o)&&o.offsetHeight||0,c=this.props.sizeRef.current;c.height=a.offsetHeight||0,c.width=a.offsetWidth||0,c.top=a.offsetTop,c.left=a.offsetLeft,c.right=r-c.width-c.left,c.bottom=u-c.height-c.top}return null}componentDidUpdate(){}render(){return this.props.children}}function cM({children:n,isPresent:t,anchorX:a,anchorY:o,root:r}){const u=F.useId(),c=F.useRef(null),d=F.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=F.useContext(Tc),p=n.props?.ref??n?.ref,y=rM(c,p);return F.useInsertionEffect(()=>{const{width:v,height:S,top:x,left:w,right:C,bottom:A}=d.current;if(t||!c.current||!v||!S)return;const R=a==="left"?`left: ${w}`:`right: ${C}`,L=o==="bottom"?`bottom: ${A}`:`top: ${x}`;c.current.dataset.motionPopId=u;const B=document.createElement("style");m&&(B.nonce=m);const H=r??document.head;return H.appendChild(B),B.sheet&&B.sheet.insertRule(`
10
+ [data-motion-pop-id="${u}"] {
11
+ position: absolute !important;
12
+ width: ${v}px !important;
13
+ height: ${S}px !important;
14
+ ${R}px !important;
15
+ ${L}px !important;
16
+ }
17
+ `),()=>{H.contains(B)&&H.removeChild(B)}},[t]),_i.jsx(uM,{isPresent:t,childRef:c,sizeRef:d,children:F.cloneElement(n,{ref:y})})}const fM=({children:n,initial:t,isPresent:a,onExitComplete:o,custom:r,presenceAffectsLayout:u,mode:c,anchorX:d,anchorY:m,root:p})=>{const y=il(hM),v=F.useId();let S=!0,x=F.useMemo(()=>(S=!1,{id:v,initial:t,isPresent:a,custom:r,onExitComplete:w=>{y.set(w,!0);for(const C of y.values())if(!C)return;o&&o()},register:w=>(y.set(w,!1),()=>y.delete(w))}),[a,y,o]);return u&&S&&(x={...x}),F.useMemo(()=>{y.forEach((w,C)=>y.set(C,!1))},[a]),F.useEffect(()=>{!a&&!y.size&&o&&o()},[a]),c==="popLayout"&&(n=_i.jsx(cM,{isPresent:a,anchorX:d,anchorY:m,root:p,children:n})),_i.jsx(nl.Provider,{value:x,children:n})};function hM(){return new Map}function gy(n=!0){const t=F.useContext(nl);if(t===null)return[!0,null];const{isPresent:a,onExitComplete:o,register:r}=t,u=F.useId();F.useEffect(()=>{if(n)return r(u)},[n]);const c=F.useCallback(()=>n&&o&&o(u),[u,o,n]);return!a&&o?[!1,c]:[!0]}const vl=n=>n.key||"";function vy(n){const t=[];return F.Children.forEach(n,a=>{F.isValidElement(a)&&t.push(a)}),t}const dM=({children:n,custom:t,initial:a=!0,onExitComplete:o,presenceAffectsLayout:r=!0,mode:u="sync",propagate:c=!1,anchorX:d="left",anchorY:m="top",root:p})=>{const[y,v]=gy(c),S=F.useMemo(()=>vy(n),[n]),x=c&&!y?[]:S.map(vl),w=F.useRef(!0),C=F.useRef(S),A=il(()=>new Map),R=F.useRef(new Set),[L,B]=F.useState(S),[H,Y]=F.useState(S);pu(()=>{w.current=!1,C.current=S;for(let Q=0;Q<H.length;Q++){const st=vl(H[Q]);x.includes(st)?(A.delete(st),R.current.delete(st)):A.get(st)!==!0&&A.set(st,!1)}},[H,x.length,x.join("-")]);const K=[];if(S!==L){let Q=[...S];for(let st=0;st<H.length;st++){const dt=H[st],Rt=vl(dt);x.includes(Rt)||(Q.splice(st,0,dt),K.push(dt))}return u==="wait"&&K.length&&(Q=K),Y(vy(Q)),B(S),null}const{forceRender:G}=F.useContext(mu);return _i.jsx(_i.Fragment,{children:H.map(Q=>{const st=vl(Q),dt=c&&!y?!1:S===H||x.includes(st),Rt=()=>{if(R.current.has(st))return;if(R.current.add(st),A.has(st))A.set(st,!0);else return;let Lt=!0;A.forEach(qe=>{qe||(Lt=!1)}),Lt&&(G?.(),Y(C.current),c&&v?.(),o&&o())};return _i.jsx(fM,{isPresent:dt,initial:!w.current||a?void 0:!1,custom:t,presenceAffectsLayout:r,mode:u,root:p,onExitComplete:dt?void 0:Rt,anchorX:d,anchorY:m,children:Q},st)})})},by=F.createContext({strict:!1}),Sy={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"]};let xy=!1;function mM(){if(xy)return;const n={};for(const t in Sy)n[t]={isEnabled:a=>Sy[t].some(o=>!!a[o])};pp(n),xy=!0}function Ty(){return mM(),WT()}function pM(n){const t=Ty();for(const a in n)t[a]={...t[a],...n[a]};pp(t)}const yM=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 bl(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||yM.has(n)}let wy=n=>!bl(n);function gM(n){typeof n=="function"&&(wy=t=>t.startsWith("on")?!bl(t):n(t))}try{gM(require("@emotion/is-prop-valid").default)}catch{}function vM(n,t,a){const o={};for(const r in n)r==="values"&&typeof n.values=="object"||(wy(r)||a===!0&&bl(r)||!t&&!bl(r)||n.draggable&&r.startsWith("onDrag"))&&(o[r]=n[r]);return o}const Sl=F.createContext({});function bM(n,t){if(hl(n)){const{initial:a,animate:o}=n;return{initial:a===!1||Ka(a)?a:void 0,animate:Ka(o)?o:void 0}}return n.inherit!==!1?t:{}}function SM(n){const{initial:t,animate:a}=bM(n,F.useContext(Sl));return F.useMemo(()=>({initial:t,animate:a}),[My(t),My(a)])}function My(n){return Array.isArray(n)?n.join(" "):n}const wc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function _y(n,t,a){for(const o in t)!de(t[o])&&!Ap(o,a)&&(n[o]=t[o])}function xM({transformTemplate:n},t){return F.useMemo(()=>{const a=wc();return yc(a,t,n),Object.assign({},a.vars,a.style)},[t])}function TM(n,t){const a=n.style||{},o={};return _y(o,a,n),Object.assign(o,xM(n,t)),o}function wM(n,t){const a={},o=TM(n,t);return n.drag&&n.dragListener!==!1&&(a.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(a.tabIndex=0),a.style=o,a}const Cy=()=>({...wc(),attrs:{}});function MM(n,t,a,o){const r=F.useMemo(()=>{const u=Cy();return Dp(u,t,Op(o),n.transformTemplate,n.style),{...u.attrs,style:{...u.style}}},[t]);if(n.style){const u={};_y(u,n.style,n),r.style={...u,...r.style}}return r}const _M=["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 Mc(n){return typeof n!="string"||n.includes("-")?!1:!!(_M.indexOf(n)>-1||/[A-Z]/u.test(n))}function CM(n,t,a,{latestValues:o},r,u=!1,c){const m=(c??Mc(n)?MM:wM)(t,o,r,n),p=vM(t,typeof n=="string",u),y=n!==F.Fragment?{...p,...m,ref:a}:{},{children:v}=t,S=F.useMemo(()=>de(v)?v.get():v,[v]);return F.createElement(n,{...y,children:S})}function EM({scrapeMotionValuesFromProps:n,createRenderState:t},a,o,r){return{latestValues:AM(a,o,r,n),renderState:t()}}function AM(n,t,a,o){const r={},u=o(n,{});for(const S in u)r[S]=yl(u[S]);let{initial:c,animate:d}=n;const m=hl(n),p=dp(n);t&&p&&!m&&n.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let y=a?a.initial===!1:!1;y=y||c===!1;const v=y?d:c;if(v&&typeof v!="boolean"&&!fl(v)){const S=Array.isArray(v)?v:[v];for(let x=0;x<S.length;x++){const w=Iu(n,S[x]);if(w){const{transitionEnd:C,transition:A,...R}=w;for(const L in R){let B=R[L];if(Array.isArray(B)){const H=y?B.length-1:0;B=B[H]}B!==null&&(r[L]=B)}for(const L in C)r[L]=C[L]}}}return r}const Ey=n=>(t,a)=>{const o=F.useContext(Sl),r=F.useContext(nl),u=()=>EM(n,t,o,r);return a?u():il(u)},DM=Ey({scrapeMotionValuesFromProps:vc,createRenderState:wc}),zM=Ey({scrapeMotionValuesFromProps:Rp,createRenderState:Cy}),OM=Symbol.for("motionComponentSymbol");function RM(n,t,a){const o=F.useRef(a);F.useInsertionEffect(()=>{o.current=a});const r=F.useRef(null);return F.useCallback(u=>{u&&n.onMount?.(u),t&&(u?t.mount(u):t.unmount());const c=o.current;if(typeof c=="function")if(u){const d=c(u);typeof d=="function"&&(r.current=d)}else r.current?(r.current(),r.current=null):c(u);else c&&(c.current=u)},[t])}const Ay=F.createContext({});function Ia(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function VM(n,t,a,o,r,u){const{visualElement:c}=F.useContext(Sl),d=F.useContext(by),m=F.useContext(nl),p=F.useContext(Tc).reducedMotion,y=F.useRef(null);o=o||d.renderer,!y.current&&o&&(y.current=o(n,{visualState:t,parent:c,props:a,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:p,isSVG:u}));const v=y.current,S=F.useContext(Ay);v&&!v.projection&&r&&(v.type==="html"||v.type==="svg")&&BM(y.current,a,r,S);const x=F.useRef(!1);F.useInsertionEffect(()=>{v&&x.current&&v.update(a,m)});const w=a[Xm],C=F.useRef(!!w&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return pu(()=>{v&&(x.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),C.current&&v.animationState&&v.animationState.animateChanges())}),F.useEffect(()=>{v&&(!C.current&&v.animationState&&v.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),C.current=!1),v.enteringChildren=void 0)}),v}function BM(n,t,a,o){const{layoutId:r,layout:u,drag:c,dragConstraints:d,layoutScroll:m,layoutRoot:p,layoutCrossfade:y}=t;n.projection=new a(n.latestValues,t["data-framer-portal-id"]?void 0:Dy(n.parent)),n.projection.setOptions({layoutId:r,layout:u,alwaysMeasureLayout:!!c||d&&Ia(d),visualElement:n,animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,crossfade:y,layoutScroll:m,layoutRoot:p})}function Dy(n){if(n)return n.options.allowProjection!==!1?n.projection:Dy(n.parent)}function _c(n,{forwardMotionProps:t=!1,type:a}={},o,r){o&&pM(o);const u=a?a==="svg":Mc(n),c=u?zM:DM;function d(p,y){let v;const S={...F.useContext(Tc),...p,layoutId:LM(p)},{isStatic:x}=S,w=SM(p),C=c(p,x);if(!x&&Zd){kM();const A=UM(S);v=A.MeasureLayout,w.visualElement=VM(n,C,S,r,A.ProjectionNode,u)}return _i.jsxs(Sl.Provider,{value:w,children:[v&&w.visualElement?_i.jsx(v,{visualElement:w.visualElement,...S}):null,CM(n,p,RM(C,w.visualElement,y),C,x,t,u)]})}d.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const m=F.forwardRef(d);return m[OM]=n,m}function LM({layoutId:n}){const t=F.useContext(mu).id;return t&&n!==void 0?t+"-"+n:n}function kM(n,t){F.useContext(by).strict}function UM(n){const t=Ty(),{drag:a,layout:o}=t;if(!a&&!o)return{};const r={...a,...o};return{MeasureLayout:a?.isEnabled(n)||o?.isEnabled(n)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function NM(n,t){if(typeof Proxy>"u")return _c;const a=new Map,o=(u,c)=>_c(u,c,n,t),r=(u,c)=>o(u,c);return new Proxy(r,{get:(u,c)=>c==="create"?o:(a.has(c)||a.set(c,_c(c,void 0,n,t)),a.get(c))})}const HM=(n,t)=>t.isSVG??Mc(n)?new yw(t):new cw(t,{allowProjection:n!==F.Fragment});class qM extends cn{constructor(t){super(t),t.animationState||(t.animationState=xw(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();fl(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let jM=0;class PM extends cn{constructor(){super(...arguments),this.id=jM++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const r=this.node.animationState.setActive("exit",!t);a&&!t&&r.then(()=>{a(this.id)})}mount(){const{register:t,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const YM={animation:{Feature:qM},exit:{Feature:PM}};function Wa(n){return{point:{x:n.pageX,y:n.pageY}}}const GM=n=>t=>rc(t)&&n(t,Wa(t));function to(n,t,a,o){return $a(n,t,GM(a),o)}const zy=({current:n})=>n?n.ownerDocument.defaultView:null,Oy=(n,t)=>Math.abs(n-t);function XM(n,t){const a=Oy(n.x,t.x),o=Oy(n.y,t.y);return Math.sqrt(a**2+o**2)}const Ry=new Set(["auto","scroll"]);class Vy{constructor(t,a,{transformPagePoint:o,contextWindow:r=window,dragSnapToOrigin:u=!1,distanceThreshold:c=3,element:d}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Ec(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,C=XM(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!C)return;const{point:A}=x,{timestamp:R}=ae;this.history.push({...A,timestamp:R});const{onStart:L,onMove:B}=this.handlers;w||(L&&L(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),B&&B(this.lastMoveEvent,x)},this.handlePointerMove=(x,w)=>{this.lastMoveEvent=x,this.lastMoveEventInfo=Cc(w,this.transformPagePoint),Ot.update(this.updatePoint,!0)},this.handlePointerUp=(x,w)=>{this.end();const{onEnd:C,onSessionEnd:A,resumeAnimation:R}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&R&&R(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const L=Ec(x.type==="pointercancel"?this.lastMoveEventInfo:Cc(w,this.transformPagePoint),this.history);this.startEvent&&C&&C(x,L),A&&A(x,L)},!rc(t))return;this.dragSnapToOrigin=u,this.handlers=a,this.transformPagePoint=o,this.distanceThreshold=c,this.contextWindow=r||window;const m=Wa(t),p=Cc(m,this.transformPagePoint),{point:y}=p,{timestamp:v}=ae;this.history=[{...y,timestamp:v}];const{onSessionStart:S}=a;S&&S(t,Ec(p,this.history)),this.removeListeners=Ha(to(this.contextWindow,"pointermove",this.handlePointerMove),to(this.contextWindow,"pointerup",this.handlePointerUp),to(this.contextWindow,"pointercancel",this.handlePointerUp)),d&&this.startScrollTracking(d)}startScrollTracking(t){let a=t.parentElement;for(;a;){const o=getComputedStyle(a);(Ry.has(o.overflowX)||Ry.has(o.overflowY))&&this.scrollPositions.set(a,{x:a.scrollLeft,y:a.scrollTop}),a=a.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const a=this.scrollPositions.get(t);if(!a)return;const o=t===window,r=o?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},u={x:r.x-a.x,y:r.y-a.y};u.x===0&&u.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=u.x,this.lastMoveEventInfo.point.y+=u.y):this.history.length>0&&(this.history[0].x-=u.x,this.history[0].y-=u.y),this.scrollPositions.set(t,r),Ot.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),on(this.updatePoint)}}function Cc(n,t){return t?{point:t(n.point)}:n}function By(n,t){return{x:n.x-t.x,y:n.y-t.y}}function Ec({point:n},t){return{point:n,delta:By(n,Ly(t)),offset:By(n,QM(t)),velocity:ZM(t,.1)}}function QM(n){return n[0]}function Ly(n){return n[n.length-1]}function ZM(n,t){if(n.length<2)return{x:0,y:0};let a=n.length-1,o=null;const r=Ly(n);for(;a>=0&&(o=n[a],!(r.timestamp-o.timestamp>Ui(t)));)a--;if(!o)return{x:0,y:0};const u=Ie(r.timestamp-o.timestamp);if(u===0)return{x:0,y:0};const c={x:(r.x-o.x)/u,y:(r.y-o.y)/u};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function KM(n,{min:t,max:a},o){return t!==void 0&&n<t?n=o?Ut(t,n,o.min):Math.max(n,t):a!==void 0&&n>a&&(n=o?Ut(a,n,o.max):Math.min(n,a)),n}function ky(n,t,a){return{min:t!==void 0?n.min+t:void 0,max:a!==void 0?n.max+a-(n.max-n.min):void 0}}function FM(n,{top:t,left:a,bottom:o,right:r}){return{x:ky(n.x,a,r),y:ky(n.y,t,o)}}function Uy(n,t){let a=t.min-n.min,o=t.max-n.max;return t.max-t.min<n.max-n.min&&([a,o]=[o,a]),{min:a,max:o}}function JM(n,t){return{x:Uy(n.x,t.x),y:Uy(n.y,t.y)}}function $M(n,t){let a=.5;const o=xe(n),r=xe(t);return r>o?a=qa(t.min,t.max-o,n.min):o>r&&(a=qa(n.min,n.max-r,t.min)),Ci(0,1,a)}function IM(n,t){const a={};return t.min!==void 0&&(a.min=t.min-n.min),t.max!==void 0&&(a.max=t.max-n.min),a}const Ac=.35;function WM(n=Ac){return n===!1?n=0:n===!0&&(n=Ac),{x:Ny(n,"left","right"),y:Ny(n,"top","bottom")}}function Ny(n,t,a){return{min:Hy(n,t),max:Hy(n,a)}}function Hy(n,t){return typeof n=="number"?n:n[t]||0}const t_=new WeakMap;class e_{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Wt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:a=!1,distanceThreshold:o}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const u=v=>{a?(this.stopAnimation(),this.snapToCursor(Wa(v).point)):this.pauseAnimation()},c=(v,S)=>{this.stopAnimation();const{drag:x,dragPropagation:w,onDragStart:C}=this.getProps();if(x&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=jT(x),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),We(R=>{let L=this.getAxisMotionValue(R).get()||0;if(Ei.test(L)){const{projection:B}=this.visualElement;if(B&&B.layout){const H=B.layout.layoutBox[R];H&&(L=xe(H)*(parseFloat(L)/100))}}this.originPoint[R]=L}),C&&Ot.postRender(()=>C(v,S)),ec(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},d=(v,S)=>{this.latestPointerEvent=v,this.latestPanInfo=S;const{dragPropagation:x,dragDirectionLock:w,onDirectionLock:C,onDrag:A}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:R}=S;if(w&&this.currentDirection===null){this.currentDirection=i_(R),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",S.point,R),this.updateAxis("y",S.point,R),this.visualElement.render(),A&&A(v,S)},m=(v,S)=>{this.latestPointerEvent=v,this.latestPanInfo=S,this.stop(v,S),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>We(v=>this.getAnimationState(v)==="paused"&&this.getAxisMotionValue(v).animation?.play()),{dragSnapToOrigin:y}=this.getProps();this.panSession=new Vy(t,{onSessionStart:u,onStart:c,onMove:d,onSessionEnd:m,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:o,contextWindow:zy(this.visualElement),element:this.visualElement.current})}stop(t,a){const o=t||this.latestPointerEvent,r=a||this.latestPanInfo,u=this.isDragging;if(this.cancel(),!u||!r||!o)return;const{velocity:c}=r;this.startAnimation(c);const{onDragEnd:d}=this.getProps();d&&Ot.postRender(()=>d(o,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,a,o){const{drag:r}=this.getProps();if(!o||!xl(t,r,this.currentDirection))return;const u=this.getAxisMotionValue(t);let c=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(c=KM(c,this.constraints[t],this.elastic[t])),u.set(c)}resolveConstraints(){const{dragConstraints:t,dragElastic:a}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&Ia(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=FM(o.layoutBox,t):this.constraints=!1,this.elastic=WM(a),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&We(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=IM(o.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!Ia(t))return!1;const o=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const u=sw(o,r.root,this.visualElement.getTransformPagePoint());let c=JM(r.layout.layoutBox,u);if(a){const d=a(ew(c));this.hasMutatedConstraints=!!d,d&&(c=gp(d))}return c}startAnimation(t){const{drag:a,dragMomentum:o,dragElastic:r,dragTransition:u,dragSnapToOrigin:c,onDragTransitionEnd:d}=this.getProps(),m=this.constraints||{},p=We(y=>{if(!xl(y,a,this.currentDirection))return;let v=m&&m[y]||{};c&&(v={min:0,max:0});const S=r?200:1e6,x=r?40:1e7,w={type:"inertia",velocity:o?t[y]:0,bounceStiffness:S,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...u,...v};return this.startAxisValueAnimation(y,w)});return Promise.all(p).then(d)}startAxisValueAnimation(t,a){const o=this.getAxisMotionValue(t);return ec(this.visualElement,t),o.start($u(t,o,0,a,this.visualElement,!1))}stopAnimation(){We(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){We(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const a=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),r=o[a];return r||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){We(a=>{const{drag:o}=this.getProps();if(!xl(a,o,this.currentDirection))return;const{projection:r}=this.visualElement,u=this.getAxisMotionValue(a);if(r&&r.layout){const{min:c,max:d}=r.layout.layoutBox[a],m=u.get()||0;u.set(t[a]-Ut(c,d,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:a}=this.getProps(),{projection:o}=this.visualElement;if(!Ia(a)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};We(c=>{const d=this.getAxisMotionValue(c);if(d&&this.constraints!==!1){const m=d.get();r[c]=$M({min:m,max:m},this.constraints[c])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),We(c=>{if(!xl(c,t,null))return;const d=this.getAxisMotionValue(c),{min:m,max:p}=this.constraints[c];d.set(Ut(m,p,r[c]))})}addListeners(){if(!this.visualElement.current)return;t_.set(this.visualElement,this);const t=this.visualElement.current,a=to(t,"pointerdown",m=>{const{drag:p,dragListener:y=!0}=this.getProps(),v=m.target,S=v!==t&&op(v);p&&y&&!S&&this.start(m)}),o=()=>{const{dragConstraints:m}=this.getProps();Ia(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,u=r.addEventListener("measure",o);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Ot.read(o);const c=$a(window,"resize",()=>this.scalePositionWithinConstraints()),d=r.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:p})=>{this.isDragging&&p&&(We(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=m[y].translate,v.set(v.get()+m[y].translate))}),this.visualElement.render())}));return()=>{c(),a(),u(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:u=!1,dragElastic:c=Ac,dragMomentum:d=!0}=t;return{...t,drag:a,dragDirectionLock:o,dragPropagation:r,dragConstraints:u,dragElastic:c,dragMomentum:d}}}function xl(n,t,a){return(t===!0||t===n)&&(a===null||a===n)}function i_(n,t=10){let a=null;return Math.abs(n.y)>t?a="y":Math.abs(n.x)>t&&(a="x"),a}class n_ extends cn{constructor(t){super(t),this.removeGroupControls=$e,this.removeListeners=$e,this.controls=new e_(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$e}update(){const{dragControls:t}=this.node.getProps(),{dragControls:a}=this.node.prevProps||{};t!==a&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.endPanSession()}}const qy=n=>(t,a)=>{n&&Ot.postRender(()=>n(t,a))};class s_ extends cn{constructor(){super(...arguments),this.removePointerDownListener=$e}onPointerDown(t){this.session=new Vy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:a,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:qy(t),onStart:qy(a),onMove:o,onEnd:(u,c)=>{delete this.session,r&&Ot.postRender(()=>r(u,c))}}}mount(){this.removePointerDownListener=to(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Dc=!1;class a_ extends F.Component{componentDidMount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:o,layoutId:r}=this.props,{projection:u}=t;u&&(a.group&&a.group.add(u),o&&o.register&&r&&o.register(u),Dc&&u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),gl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:a,visualElement:o,drag:r,isPresent:u}=this.props,{projection:c}=o;return c&&(c.isPresent=u,Dc=!0,r||t.layoutDependency!==a||a===void 0||t.isPresent!==u?c.willUpdate():this.safeToRemove(),t.isPresent!==u&&(u?c.promote():c.relegate()||Ot.postRender(()=>{const d=c.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),lc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:o}=this.props,{projection:r}=t;Dc=!0,r&&(r.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function jy(n){const[t,a]=gy(),o=F.useContext(mu);return _i.jsx(a_,{...n,layoutGroup:o,switchLayoutGroup:F.useContext(Ay),isPresent:t,safeToRemove:a})}const o_={pan:{Feature:s_},drag:{Feature:n_,ProjectionNode:py,MeasureLayout:jy}};function Py(n,t,a){const{props:o}=n;n.animationState&&o.whileHover&&n.animationState.setActive("whileHover",a==="Start");const r="onHover"+a,u=o[r];u&&Ot.postRender(()=>u(t,Wa(t)))}class l_ extends cn{mount(){const{current:t}=this.node;t&&(this.unmount=PT(t,(a,o)=>(Py(this.node,o,"Start"),r=>Py(this.node,r,"End"))))}unmount(){}}class r_ extends cn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Ha($a(this.node.current,"focus",()=>this.onFocus()),$a(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Yy(n,t,a){const{props:o}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&o.whileTap&&n.animationState.setActive("whileTap",a==="Start");const r="onTap"+(a==="End"?"":a),u=o[r];u&&Ot.postRender(()=>u(t,Wa(t)))}class u_ extends cn{mount(){const{current:t}=this.node;t&&(this.unmount=XT(t,(a,o)=>(Yy(this.node,o,"Start"),(r,{success:u})=>Yy(this.node,r,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const zc=new WeakMap,Oc=new WeakMap,c_=n=>{const t=zc.get(n.target);t&&t(n)},f_=n=>{n.forEach(c_)};function h_({root:n,...t}){const a=n||document;Oc.has(a)||Oc.set(a,{});const o=Oc.get(a),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(f_,{root:n,...t})),o[r]}function d_(n,t,a){const o=h_(t);return zc.set(n,a),o.observe(n),()=>{zc.delete(n),o.unobserve(n)}}const m_={some:0,all:1};class p_ extends cn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:a,margin:o,amount:r="some",once:u}=t,c={root:a?a.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:m_[r]},d=m=>{const{isIntersecting:p}=m;if(this.isInView===p||(this.isInView=p,u&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:y,onViewportLeave:v}=this.node.getProps(),S=p?y:v;S&&S(m)};return d_(this.node.current,c,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:a}=this.node;["amount","margin","root"].some(y_(t,a))&&this.startObserver()}unmount(){}}function y_({viewport:n={}},{viewport:t={}}={}){return a=>n[a]!==t[a]}const g_={...YM,...{inView:{Feature:p_},tap:{Feature:u_},focus:{Feature:r_},hover:{Feature:l_}},...o_,...{layout:{ProjectionNode:py,MeasureLayout:jy}}},v_=NM(g_,HM);function b_(n){n.values.forEach(t=>t.stop())}function Rc(n,t){[...t].reverse().forEach(o=>{const r=n.getVariant(o);r&&tc(n,r),n.variantChildren&&n.variantChildren.forEach(u=>{Rc(u,t)})})}function S_(n,t){if(Array.isArray(t))return Rc(n,t);if(typeof t=="string")return Rc(n,[t]);tc(n,t)}function x_(){const n=new Set,t={subscribe(a){return n.add(a),()=>void n.delete(a)},start(a,o){const r=[];return n.forEach(u=>{r.push(Km(u,a,{transitionOverride:o}))}),Promise.all(r)},set(a){return n.forEach(o=>{S_(o,a)})},stop(){n.forEach(a=>{b_(a)})},mount(){return()=>{t.stop()}}};return t}function T_(){const n=il(x_);return pu(n.mount,[]),n}const w_=T_,Zn="generated",M_="pointerdown",__="pointerup",Vc="pointerleave",C_="pointerout",Kn="pointermove",E_="touchstart",Gy="touchend",A_="touchmove",D_="touchcancel",z_="resize",O_="visibilitychange",ti="tsParticles - Error",fn=100,te=.5,me=1e3,pe={x:0,y:0,z:0},Tl={a:1,b:0,c:0,d:1},Us="random",wl="mid",ye=2,R_=Math.PI*ye,Bc=60,Xy="true",Qy="false",Lc="canvas",Zy=0,Ni=2,Ky=4,V_=1,Fy=1,Jy=1,B_=4,$y=1,Ml=255,Fn=360,kc=100,Uc=100,Iy=0,Nc=0,L_=60,k_=0,_l=.25,Wy=te+_l,tg=0,U_=1,N_=0,H_=0,q_=1,Hc=1,j_=1,eg=1,Cl=0,ig=1,P_=0,Y_=120,G_=0,X_=0,Q_=1e4,Z_=0,K_=1,El=0,ng=1,F_=1,J_=0,sg=1,$_=0,I_=0,ag=-_l,og=1.5,lg=0,W_=1,tC=0,qc=0,rg=1,eC=1,Al=1,iC=500,ug=50,nC=0,jc=1,cg=0,fg=1,sC=0,Jn=255,Pc=3,Yc=6,aC=1,oC=1,lC=0,rC=0,uC=0,cC=0;var oe;(function(n){n.bottom="bottom",n.bottomLeft="bottom-left",n.bottomRight="bottom-right",n.left="left",n.none="none",n.right="right",n.top="top",n.topLeft="top-left",n.topRight="top-right",n.outside="outside",n.inside="inside"})(oe||(oe={}));function hg(n){return typeof n=="boolean"}function hn(n){return typeof n=="string"}function dn(n){return typeof n=="number"}function Ns(n){return typeof n=="object"&&n!==null}function Ai(n){return Array.isArray(n)}function X(n){return n==null}class ke{constructor(t,a,o){if(this._updateFromAngle=(r,u)=>{this.x=Math.cos(r)*u,this.y=Math.sin(r)*u},!dn(t)&&t){this.x=t.x,this.y=t.y;const r=t;this.z=r.z?r.z:pe.z}else if(t!==void 0&&a!==void 0)this.x=t,this.y=a,this.z=o??pe.z;else throw new Error(`${ti} Vector3d not initialized correctly`)}static get origin(){return ke.create(pe.x,pe.y,pe.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return ke.create(t.x,t.y,t.z)}static create(t,a,o){return new ke(t,a,o)}add(t){return ke.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return ke.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return ke.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**Ni+this.y**Ni}mult(t){return ke.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;t!=El&&this.multTo($y/t)}rotate(t){return ke.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),pe.z)}setTo(t){this.x=t.x,this.y=t.y;const a=t;this.z=a.z?a.z:pe.z}sub(t){return ke.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class ie extends ke{constructor(t,a){super(t,a,pe.z)}static get origin(){return ie.create(pe.x,pe.y)}static clone(t){return ie.create(t.x,t.y)}static create(t,a){return new ie(t,a)}}let fC=Math.random;const dg={nextFrame:n=>requestAnimationFrame(n),cancel:n=>cancelAnimationFrame(n)};function Ct(){return ei(fC(),0,1-Number.EPSILON)}function hC(n){return dg.nextFrame(n)}function dC(n){dg.cancel(n)}function ei(n,t,a){return Math.min(Math.max(n,t),a)}function Gc(n,t,a,o){return Math.floor((n*a+t*o)/(a+o))}function Ue(n){const t=Di(n),a=0;let o=Dl(n);return t===o&&(o=a),Ct()*(t-o)+o}function et(n){return dn(n)?n:Ue(n)}function Dl(n){return dn(n)?n:n.min}function Di(n){return dn(n)?n:n.max}function bt(n,t){if(n===t||t===void 0&&dn(n))return n;const a=Dl(n),o=Di(n);return t!==void 0?{min:Math.min(a,t),max:Math.max(o,t)}:bt(a,o)}function Te(n,t){const a=n.x-t.x,o=n.y-t.y,r=2;return{dx:a,dy:o,distance:Math.sqrt(a**r+o**r)}}function Ne(n,t){return Te(n,t).distance}function mn(n){return n*Math.PI/180}function mC(n,t,a){if(dn(n))return mn(n);switch(n){case oe.top:return-Math.PI*te;case oe.topRight:return-Math.PI*_l;case oe.right:return k_;case oe.bottomRight:return Math.PI*_l;case oe.bottom:return Math.PI*te;case oe.bottomLeft:return Math.PI*Wy;case oe.left:return Math.PI;case oe.topLeft:return-Math.PI*Wy;case oe.inside:return Math.atan2(a.y-t.y,a.x-t.x);case oe.outside:return Math.atan2(t.y-a.y,t.x-a.x);default:return Ct()*R_}}function pC(n){const t=ie.origin;return t.length=1,t.angle=n,t}function mg(n,t,a,o){return ie.create(n.x*(a-o)/(a+o)+t.x*ye*o/(a+o),n.y)}function yC(n){return{x:n.position?.x??Ct()*n.size.width,y:n.position?.y??Ct()*n.size.height}}function pg(n){return n?n.endsWith("%")?parseFloat(n)/fn:parseFloat(n):1}var $n;(function(n){n.auto="auto",n.increase="increase",n.decrease="decrease",n.random="random"})($n||($n={}));var Zt;(function(n){n.increasing="increasing",n.decreasing="decreasing"})(Zt||(Zt={}));var In;(function(n){n.none="none",n.max="max",n.min="min"})(In||(In={}));var ht;(function(n){n.bottom="bottom",n.left="left",n.right="right",n.top="top"})(ht||(ht={}));var Hs;(function(n){n.precise="precise",n.percent="percent"})(Hs||(Hs={}));var qs;(function(n){n.max="max",n.min="min",n.random="random"})(qs||(qs={}));const gC={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function Wn(){return gC}function vC(n){const t=new Map;return(...a)=>{const o=JSON.stringify(a);if(t.has(o))return t.get(o);const r=n(...a);return t.set(o,r),r}}function yg(n){const t={bounced:!1},{pSide:a,pOtherSide:o,rectSide:r,rectOtherSide:u,velocity:c,factor:d}=n;return o.min<u.min||o.min>u.max||o.max<u.min||o.max>u.max||(a.max>=r.min&&a.max<=(r.max+r.min)*te&&c>tg||a.min<=r.max&&a.min>(r.max+r.min)*te&&c<tg)&&(t.velocity=c*-d,t.bounced=!0),t}function bC(n,t){const a=He(t,o=>n.matches(o));return Ai(a)?a.some(o=>o):a}function ts(){return typeof window>"u"||!window||typeof window.document>"u"||!window.document}function SC(){return!ts()&&typeof matchMedia<"u"}function gg(n){if(SC())return matchMedia(n)}function xC(n){if(!(ts()||typeof IntersectionObserver>"u"))return new IntersectionObserver(n)}function TC(n){if(!(ts()||typeof MutationObserver>"u"))return new MutationObserver(n)}function Pt(n,t){return n===t||Ai(t)&&t.indexOf(n)>-1}async function vg(n,t){try{await document.fonts.load(`${t??"400"} 36px '${n??"Verdana"}'`)}catch{}}function wC(n){return Math.floor(Ct()*n.length)}function zl(n,t,a=!0){return n[t!==void 0&&a?t%n.length:wC(n)]}function Xc(n,t,a,o,r){return MC(eo(n,o??0),t,a,r)}function MC(n,t,a,o){let r=!0;return(!o||o===ht.bottom)&&(r=n.top<t.height+a.x),r&&(!o||o===ht.left)&&(r=n.right>a.x),r&&(!o||o===ht.right)&&(r=n.left<t.width+a.y),r&&(!o||o===ht.top)&&(r=n.bottom>a.y),r}function eo(n,t){return{bottom:n.y+t,left:n.x-t,right:n.x+t,top:n.y-t}}function ge(n,...t){for(const a of t){if(a==null)continue;if(!Ns(a)){n=a;continue}const o=Array.isArray(a);o&&(Ns(n)||!n||!Array.isArray(n))?n=[]:!o&&(Ns(n)||!n||Array.isArray(n))&&(n={});for(const r in a){if(r==="__proto__")continue;const u=a,c=u[r],d=n;d[r]=Ns(c)&&Array.isArray(c)?c.map(m=>ge(d[r],m)):ge(d[r],c)}}return n}function Qc(n,t){return!!xg(t,a=>a.enable&&Pt(n,a.mode))}function Zc(n,t,a){He(t,o=>{const r=o.mode;o.enable&&Pt(n,r)&&_C(o,a)})}function _C(n,t){const a=n.selectors;He(a,o=>{t(o,n)})}function bg(n,t){if(!(!t||!n))return xg(n,a=>bC(t,a.selectors))}function Kc(n){return{position:n.getPosition(),radius:n.getRadius(),mass:n.getMass(),velocity:n.velocity,factor:ie.create(et(n.options.bounce.horizontal.value),et(n.options.bounce.vertical.value))}}function Sg(n,t){const{x:a,y:o}=n.velocity.sub(t.velocity),[r,u]=[n.position,t.position],{dx:c,dy:d}=Te(u,r);if(a*c+o*d<0)return;const p=-Math.atan2(d,c),y=n.mass,v=t.mass,S=n.velocity.rotate(p),x=t.velocity.rotate(p),w=mg(S,x,y,v),C=mg(x,S,y,v),A=w.rotate(-p),R=C.rotate(-p);n.velocity.x=A.x*n.factor.x,n.velocity.y=A.y*n.factor.y,t.velocity.x=R.x*t.factor.x,t.velocity.y=R.y*t.factor.y}function CC(n,t){const a=n.getPosition(),o=n.getRadius(),r=eo(a,o),u=n.options.bounce,c=yg({pSide:{min:r.left,max:r.right},pOtherSide:{min:r.top,max:r.bottom},rectSide:{min:t.left,max:t.right},rectOtherSide:{min:t.top,max:t.bottom},velocity:n.velocity.x,factor:et(u.horizontal.value)});c.bounced&&(c.velocity!==void 0&&(n.velocity.x=c.velocity),c.position!==void 0&&(n.position.x=c.position));const d=yg({pSide:{min:r.top,max:r.bottom},pOtherSide:{min:r.left,max:r.right},rectSide:{min:t.top,max:t.bottom},rectOtherSide:{min:t.left,max:t.right},velocity:n.velocity.y,factor:et(u.vertical.value)});d.bounced&&(d.velocity!==void 0&&(n.velocity.y=d.velocity),d.position!==void 0&&(n.position.y=d.position))}function He(n,t){return Ai(n)?n.map((o,r)=>t(o,r)):t(n,0)}function ii(n,t,a){return Ai(n)?zl(n,t,a):n}function xg(n,t){return Ai(n)?n.find((o,r)=>t(o,r)):t(n,0)?n:void 0}function Tg(n,t){const a=n.value,o=n.animation,r={delayTime:et(o.delay)*me,enable:o.enable,value:et(n.value)*t,max:Di(a)*t,min:Dl(a)*t,loops:0,maxLoops:et(o.count),time:0},u=1;if(o.enable){switch(r.decay=u-et(o.decay),o.mode){case $n.increase:r.status=Zt.increasing;break;case $n.decrease:r.status=Zt.decreasing;break;case $n.random:r.status=Ct()>=te?Zt.increasing:Zt.decreasing;break}const c=o.mode===$n.auto;switch(o.startValue){case qs.min:r.value=r.min,c&&(r.status=Zt.increasing);break;case qs.max:r.value=r.max,c&&(r.status=Zt.decreasing);break;case qs.random:default:r.value=Ue(r),c&&(r.status=Ct()>=te?Zt.increasing:Zt.decreasing);break}}return r.initialValue=r.value,r}function EC(n,t){if(!(n.mode===Hs.percent)){const{mode:r,...u}=n;return u}return"x"in n?{x:n.x/fn*t.width,y:n.y/fn*t.height}:{width:n.width/fn*t.width,height:n.height/fn*t.height}}function wg(n,t){return EC(n,t)}function AC(n,t,a,o,r){switch(t){case In.max:a>=r&&n.destroy();break;case In.min:a<=o&&n.destroy();break}}function Fc(n,t,a,o,r){if(n.destroyed||!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;const y=(t.velocity??0)*r.factor,v=t.min,S=t.max,x=t.decay??1;if(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=r.value),!((t.delayTime??0)>0&&t.time<(t.delayTime??0))){switch(t.status){case Zt.increasing:t.value>=S?(a?t.status=Zt.decreasing:t.value-=S,t.loops||(t.loops=0),t.loops++):t.value+=y;break;case Zt.decreasing:t.value<=v?(a?t.status=Zt.increasing:t.value+=S,t.loops||(t.loops=0),t.loops++):t.value-=y}t.velocity&&x!==1&&(t.velocity*=x),AC(n,o,t.value,v,S),n.destroyed||(t.value=ei(t.value,v,S))}}function DC(n){const t=document.createElement("div").style;if(!n)return t;for(const a in n){const o=n[a];if(!Object.prototype.hasOwnProperty.call(n,a)||X(o))continue;const r=n.getPropertyValue?.(o);if(!r)continue;const u=n.getPropertyPriority?.(o);u?t.setProperty?.(o,r,u):t.setProperty?.(o,r)}return t}function zC(n){const t=document.createElement("div").style,a=10,o={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:n.toString(a),"z-index":n.toString(a),top:"0",left:"0"};for(const r in o){const u=o[r];t.setProperty(r,u)}return t}const OC=vC(zC);var Jc;(function(n){n.darken="darken",n.enlighten="enlighten"})(Jc||(Jc={}));function RC(n,t){if(t){for(const a of n.colorManagers.values())if(t.startsWith(a.stringPrefix))return a.parseString(t)}}function yi(n,t,a,o=!0){if(!t)return;const r=hn(t)?{value:t}:t;if(hn(r.value))return Mg(n,r.value,a,o);if(Ai(r.value))return yi(n,{value:zl(r.value,a,o)});for(const u of n.colorManagers.values()){const c=u.handleRangeColor(r);if(c)return c}}function Mg(n,t,a,o=!0){if(!t)return;const r=hn(t)?{value:t}:t;if(hn(r.value))return r.value===Us?Cg():VC(n,r.value);if(Ai(r.value))return Mg(n,{value:zl(r.value,a,o)});for(const u of n.colorManagers.values()){const c=u.handleColor(r);if(c)return c}}function io(n,t,a,o=!0){const r=yi(n,t,a,o);return r?_g(r):void 0}function _g(n){const t=n.r/Ml,a=n.g/Ml,o=n.b/Ml,r=Math.max(t,a,o),u=Math.min(t,a,o),c={h:Iy,l:(r+u)*te,s:Nc};return r!==u&&(c.s=c.l<te?(r-u)/(r+u):(r-u)/(ye-r-u),c.h=t===r?(a-o)/(r-u):c.h=a===r?ye+(o-t)/(r-u):ye*ye+(t-a)/(r-u)),c.l*=Uc,c.s*=kc,c.h*=L_,c.h<Iy&&(c.h+=Fn),c.h>=Fn&&(c.h-=Fn),c}function VC(n,t){return RC(n,t)}function js(n){const t=(n.h%Fn+Fn)%Fn,a=Math.max(Nc,Math.min(kc,n.s)),o=Math.max(sC,Math.min(Uc,n.l)),r=t/Fn,u=a/kc,c=o/Uc;if(a===Nc){const w=Math.round(c*Jn);return{r:w,g:w,b:w}}const d=(w,C,A)=>{if(A<0&&A++,A>1&&A--,A*Yc<1)return w+(C-w)*Yc*A;if(A*ye<1)return C;if(A*Pc<1*ye){const B=ye/Pc;return w+(C-w)*(B-A)*Yc}return w},m=c<te?c*(aC+u):c+u-c*u,p=ye*c-m,y=oC/Pc,v=Math.min(Jn,Jn*d(p,m,r+y)),S=Math.min(Jn,Jn*d(p,m,r)),x=Math.min(Jn,Jn*d(p,m,r-y));return{r:Math.round(v),g:Math.round(S),b:Math.round(x)}}function BC(n){const t=js(n);return{a:n.a,b:t.b,g:t.g,r:t.r}}function Cg(n){const t=lC,a=Ml+jc;return{b:Math.floor(Ue(bt(t,a))),g:Math.floor(Ue(bt(t,a))),r:Math.floor(Ue(bt(t,a)))}}function Hi(n,t){return`rgba(${n.r}, ${n.g}, ${n.b}, ${t??Hc})`}function no(n,t){return`hsla(${n.h}, ${n.s}%, ${n.l}%, ${t??Hc})`}function $c(n,t,a,o){let r=n,u=t;return r.r===void 0&&(r=js(n)),u.r===void 0&&(u=js(t)),{b:Gc(r.b,u.b,a,o),g:Gc(r.g,u.g,a,o),r:Gc(r.r,u.r,a,o)}}function Ic(n,t,a){if(a===Us)return Cg();if(a===wl){const o=n.getFillColor()??n.getStrokeColor(),r=t?.getFillColor()??t?.getStrokeColor();if(o&&r&&t)return $c(o,r,n.getRadius(),t.getRadius());{const u=o??r;if(u)return js(u)}}else return a}function Eg(n,t,a,o){const r=hn(t)?t:t.value;return r===Us?o?yi(n,{value:r}):a?Us:wl:r===wl?wl:yi(n,{value:r})}function Ag(n){return n!==void 0?{h:n.h.value,s:n.s.value,l:n.l.value}:void 0}function Dg(n,t,a){const o={h:{enable:!1,value:n.h},s:{enable:!1,value:n.s},l:{enable:!1,value:n.l}};return t&&(Wc(o.h,t.h,a),Wc(o.s,t.s,a),Wc(o.l,t.l,a)),o}function Wc(n,t,a){n.enable=t.enable,n.enable?(n.velocity=et(t.speed)/fn*a,n.decay=ng-et(t.decay),n.status=Zt.increasing,n.loops=uC,n.maxLoops=et(t.count),n.time=cC,n.delayTime=et(t.delay)*me,t.sync||(n.velocity*=Ct(),n.value*=Ct()),n.initialValue=n.value,n.offset=bt(t.offset)):n.velocity=rC}function tf(n,t,a,o){if(!n||!n.enable||(n.maxLoops??0)>0&&(n.loops??0)>(n.maxLoops??0)||(n.time||(n.time=0),(n.delayTime??0)>0&&n.time<(n.delayTime??0)&&(n.time+=o.value),(n.delayTime??0)>0&&n.time<(n.delayTime??0)))return;const y=n.offset?Ue(n.offset):0,v=(n.velocity??0)*o.factor+y*3.6,S=n.decay??1,x=Di(t),w=Dl(t);!a||n.status===Zt.increasing?(n.value+=v,n.value>x&&(n.loops||(n.loops=0),n.loops++,a?n.status=Zt.decreasing:n.value-=x)):(n.value-=v,n.value<0&&(n.loops||(n.loops=0),n.loops++,n.status=Zt.increasing)),n.velocity&&S!==1&&(n.velocity*=S),n.value=ei(n.value,w,x)}function zg(n,t){if(!n)return;const{h:a,s:o,l:r}=n,u={h:{min:0,max:360},s:{min:0,max:100},l:{min:0,max:100}};a&&tf(a,u.h,!1,t),o&&tf(o,u.s,!0,t),r&&tf(r,u.l,!0,t)}function so(n,t,a){n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(a.x,a.y),n.closePath()}function LC(n,t,a){n.fillStyle=a??"rgba(0,0,0,0)",n.fillRect(pe.x,pe.y,t.width,t.height)}function kC(n,t,a,o){a&&(n.globalAlpha=o,n.drawImage(a,pe.x,pe.y,t.width,t.height),n.globalAlpha=1)}function ef(n,t){n.clearRect(pe.x,pe.y,t.width,t.height)}function UC(n){const{container:t,context:a,particle:o,delta:r,colorStyles:u,backgroundMask:c,composite:d,radius:m,opacity:p,shadow:y,transform:v}=n,S=o.getPosition(),x=o.rotation+(o.pathRotation?o.velocity.angle:nC),w={sin:Math.sin(x),cos:Math.cos(x)},C=!!x,A={a:w.cos*(v.a??Tl.a),b:C?w.sin*(v.b??jc):v.b??Tl.b,c:C?-w.sin*(v.c??jc):v.c??Tl.c,d:w.cos*(v.d??Tl.d)};a.setTransform(A.a,A.b,A.c,A.d,S.x,S.y),c&&(a.globalCompositeOperation=d);const R=o.shadowColor;y.enable&&R&&(a.shadowBlur=y.blur,a.shadowColor=Hi(R),a.shadowOffsetX=y.offset.x,a.shadowOffsetY=y.offset.y),u.fill&&(a.fillStyle=u.fill);const L=o.strokeWidth??cg;a.lineWidth=L,u.stroke&&(a.strokeStyle=u.stroke);const B={container:t,context:a,particle:o,radius:m,opacity:p,delta:r,transformData:A,strokeWidth:L};HC(B),qC(B),NC(B),a.globalCompositeOperation="source-over",a.resetTransform()}function NC(n){const{container:t,context:a,particle:o,radius:r,opacity:u,delta:c,transformData:d}=n;if(!o.effect)return;const m=t.effectDrawers.get(o.effect);m&&m.draw({context:a,particle:o,radius:r,opacity:u,delta:c,pixelRatio:t.retina.pixelRatio,transformData:{...d}})}function HC(n){const{container:t,context:a,particle:o,radius:r,opacity:u,delta:c,strokeWidth:d,transformData:m}=n;if(!o.shape)return;const p=t.shapeDrawers.get(o.shape);p&&(a.beginPath(),p.draw({context:a,particle:o,radius:r,opacity:u,delta:c,pixelRatio:t.retina.pixelRatio,transformData:{...m}}),o.shapeClose&&a.closePath(),d>cg&&a.stroke(),o.shapeFill&&a.fill())}function qC(n){const{container:t,context:a,particle:o,radius:r,opacity:u,delta:c,transformData:d}=n;if(!o.shape)return;const m=t.shapeDrawers.get(o.shape);m?.afterDraw&&m.afterDraw({context:a,particle:o,radius:r,opacity:u,delta:c,pixelRatio:t.retina.pixelRatio,transformData:{...d}})}function jC(n,t,a){t.draw&&t.draw(n,a)}function PC(n,t,a,o){t.drawParticle&&t.drawParticle(n,a,o)}function YC(n,t,a){return{h:n.h,s:n.s,l:n.l+(t===Jc.darken?-fg:fg)*a}}function GC(n,t,a){const o=t[a];o!==void 0&&(n[a]=(n[a]??U_)*o)}function Og(n,t,a=!1){if(!t)return;const o=n;if(!o)return;const r=o.style;if(!r)return;const u=new Set;for(const c in r)Object.prototype.hasOwnProperty.call(r,c)&&u.add(r[c]);for(const c in t)Object.prototype.hasOwnProperty.call(t,c)&&u.add(t[c]);for(const c of u){const d=t.getPropertyValue(c);d?r.setProperty(c,d,a?"important":""):r.removeProperty(c)}}class XC{constructor(t,a){this.container=t,this._applyPostDrawUpdaters=u=>{for(const c of this._postDrawUpdaters)c.afterDraw?.(u)},this._applyPreDrawUpdaters=(u,c,d,m,p,y)=>{for(const v of this._preDrawUpdaters){if(v.getColorStyles){const{fill:S,stroke:x}=v.getColorStyles(c,u,d,m);S&&(p.fill=S),x&&(p.stroke=x)}if(v.getTransformValues){const S=v.getTransformValues(c);for(const x in S)GC(y,S,x)}v.beforeDraw?.(c)}},this._applyResizePlugins=()=>{for(const u of this._resizePlugins)u.resize?.()},this._getPluginParticleColors=u=>{let c,d;for(const m of this._colorPlugins)if(!c&&m.particleFillColor&&(c=io(this._engine,m.particleFillColor(u))),!d&&m.particleStrokeColor&&(d=io(this._engine,m.particleStrokeColor(u))),c&&d)break;return[c,d]},this._initCover=async()=>{const u=this.container.actualOptions,c=u.backgroundMask.cover,d=c.color;if(d){const m=yi(this._engine,d);if(m){const p={...m,a:c.opacity};this._coverColorStyle=Hi(p,p.a)}}else await new Promise((m,p)=>{if(!c.image)return;const y=document.createElement("img");y.addEventListener("load",()=>{this._coverImage={image:y,opacity:c.opacity},m()}),y.addEventListener("error",v=>{p(v.error)}),y.src=c.image})},this._initStyle=()=>{const u=this.element,c=this.container.actualOptions;if(u){this._fullScreen?this._setFullScreenStyle():this._resetOriginalStyle();for(const d in c.style){if(!d||!c.style||!Object.prototype.hasOwnProperty.call(c.style,d))continue;const m=c.style[d];m&&u.style.setProperty(d,m,"important")}}},this._initTrail=async()=>{const u=this.container.actualOptions,c=u.particles.move.trail,d=c.fill;if(!c.enable)return;const m=$y/c.length;if(d.color){const p=yi(this._engine,d.color);if(!p)return;this._trailFill={color:{...p},opacity:m}}else await new Promise((p,y)=>{if(!d.image)return;const v=document.createElement("img");v.addEventListener("load",()=>{this._trailFill={image:v,opacity:m},p()}),v.addEventListener("error",S=>{y(S.error)}),v.src=d.image})},this._paintBase=u=>{this.draw(c=>LC(c,this.size,u))},this._paintImage=(u,c)=>{this.draw(d=>kC(d,this.size,u,c))},this._repairStyle=()=>{const u=this.element;if(!u)return;this._safeMutationObserver(d=>d.disconnect()),this._initStyle(),this.initBackground();const c=this._pointerEvents;u.style.pointerEvents=c,u.setAttribute("pointer-events",c),this._safeMutationObserver(d=>{!u||!(u instanceof Node)||d.observe(u,{attributes:!0})})},this._resetOriginalStyle=()=>{const u=this.element,c=this._originalStyle;!u||!c||Og(u,c,!0)},this._safeMutationObserver=u=>{this._mutationObserver&&u(this._mutationObserver)},this._setFullScreenStyle=()=>{const u=this.element;u&&Og(u,OC(this.container.actualOptions.fullScreen.zIndex),!0)},this._engine=a,this._standardSize={height:0,width:0};const o=t.retina.pixelRatio,r=this._standardSize;this.size={height:r.height*o,width:r.width*o},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[],this._pointerEvents="none"}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const t=this.container.actualOptions,a=t.particles.move.trail,o=this._trailFill;t.backgroundMask.enable?this.paint():a.enable&&a.length>H_&&o?o.color?this._paintBase(Hi(o.color,o.opacity)):o.image&&this._paintImage(o.image,o.opacity):t.clear&&this.draw(r=>{ef(r,this.size)})}destroy(){this.stop(),this._generated?(this.element?.remove(),this.element=void 0):this._resetOriginalStyle(),this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(t){const a=this._context;if(a)return t(a)}drawAsync(t){const a=this._context;if(a)return t(a)}drawParticle(t,a){if(t.spawning||t.destroyed)return;const o=t.getRadius();if(o<=N_)return;const r=t.getFillColor(),u=t.getStrokeColor()??r;let[c,d]=this._getPluginParticleColors(t);c||(c=r),d||(d=u),!(!c&&!d)&&this.draw(m=>{const p=this.container,y=p.actualOptions,v=t.options.zIndex,S=q_-t.zIndexFactor,x=S**v.opacityRate,w=t.bubble.opacity??t.opacity?.value??Hc,C=t.strokeOpacity??w,A=w*x,R=C*x,L={},B={fill:c?no(c,A):void 0};B.stroke=d?no(d,R):B.fill,this._applyPreDrawUpdaters(m,t,o,A,B,L),UC({container:p,context:m,particle:t,delta:a,colorStyles:B,backgroundMask:y.backgroundMask.enable,composite:y.backgroundMask.composite,radius:o*S**v.sizeRate,opacity:A,shadow:t.options.shadow,transform:L}),this._applyPostDrawUpdaters(t)})}drawParticlePlugin(t,a,o){this.draw(r=>PC(r,t,a,o))}drawPlugin(t,a){this.draw(o=>jC(o,t,a))}async init(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=TC(t=>{for(const a of t)a.type==="attributes"&&a.attributeName==="style"&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(t){Wn().error(t)}this.initBackground(),this._safeMutationObserver(t=>{!this.element||!(this.element instanceof Node)||t.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const t=this.container.actualOptions,a=t.background,o=this.element;if(!o)return;const r=o.style;if(r){if(a.color){const u=yi(this._engine,a.color);r.backgroundColor=u?Hi(u,a.opacity):""}else r.backgroundColor="";r.backgroundImage=a.image||"",r.backgroundPosition=a.position||"",r.backgroundRepeat=a.repeat||"",r.backgroundSize=a.size||""}}initPlugins(){this._resizePlugins=[];for(const t of this.container.plugins.values())t.resize&&this._resizePlugins.push(t),(t.particleFillColor??t.particleStrokeColor)&&this._colorPlugins.push(t)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const t of this.container.particles.updaters)t.afterDraw&&this._postDrawUpdaters.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this._preDrawUpdaters.push(t)}loadCanvas(t){this._generated&&this.element&&this.element.remove(),this._generated=t.dataset&&Zn in t.dataset?t.dataset[Zn]==="true":this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=DC(this.element.style);const a=this._standardSize;a.height=t.offsetHeight,a.width=t.offsetWidth;const o=this.container.retina.pixelRatio,r=this.size;t.height=r.height=a.height*o,t.width=r.width=a.width*o,this._context=this.element.getContext("2d"),this._safeMutationObserver(u=>u.disconnect()),this.container.retina.init(),this.initBackground(),this._safeMutationObserver(u=>{!this.element||!(this.element instanceof Node)||u.observe(this.element,{attributes:!0})})}paint(){const t=this.container.actualOptions;this.draw(a=>{t.backgroundMask.enable&&t.backgroundMask.cover?(ef(a,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()})}resize(){if(!this.element)return!1;const t=this.container,a=t.canvas._standardSize,o={width:this.element.offsetWidth,height:this.element.offsetHeight},r=t.retina.pixelRatio,u={width:o.width*r,height:o.height*r};if(o.height===a.height&&o.width===a.width&&u.height===this.element.height&&u.width===this.element.width)return!1;const c={...a};a.height=o.height,a.width=o.width;const d=this.size;return this.element.width=d.width=u.width,this.element.height=d.height=u.height,this.container.started&&t.particles.setResizeFactor({width:a.width/c.width,height:a.height/c.height}),!0}setPointerEvents(t){this.element&&(this._pointerEvents=t,this._repairStyle())}stop(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=void 0,this.draw(t=>ef(t,this.size))}async windowResize(){if(!this.element||!this.resize())return;const t=this.container,a=t.updateActualOptions();t.particles.setDensity(),this._applyResizePlugins(),a&&await t.refresh()}}var Ps;(function(n){n.canvas="canvas",n.parent="parent",n.window="window"})(Ps||(Ps={}));function ni(n,t,a,o,r){if(o){let u={passive:!0};hg(r)?u.capture=r:r!==void 0&&(u=r),n.addEventListener(t,a,u)}else{const u=r;n.removeEventListener(t,a,u)}}class QC{constructor(t){this.container=t,this._doMouseTouchClick=a=>{const o=this.container,r=o.actualOptions;if(this._canPush){const u=o.interactivity.mouse,c=u.position;if(!c)return;u.clickPosition={...c},u.clickTime=new Date().getTime();const d=r.interactivity.events.onClick;He(d.mode,m=>this.container.handleClickMode(m))}a.type==="touchend"&&setTimeout(()=>this._mouseTouchFinish(),iC)},this._handleThemeChange=a=>{const o=a,r=this.container,u=r.options,c=u.defaultThemes,d=o.matches?c.dark:c.light;u.themes.find(p=>p.name===d)?.default.auto&&r.loadTheme(d)},this._handleVisibilityChange=()=>{const a=this.container,o=a.actualOptions;this._mouseTouchFinish(),o.pauseOnBlur&&(document?.hidden?(a.pageHidden=!0,a.pause()):(a.pageHidden=!1,a.animationStatus?a.play(!0):a.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const a=async()=>{await this.container.canvas?.windowResize()};this._resizeTimeout=setTimeout(()=>void a(),this.container.actualOptions.interactivity.events.resize.delay*me)},this._manageInteractivityListeners=(a,o)=>{const r=this._handlers,u=this.container,c=u.actualOptions,d=u.interactivity.element;if(!d)return;const m=d,p=u.canvas;p.setPointerEvents(m===p.element?"initial":"none"),(c.interactivity.events.onHover.enable||c.interactivity.events.onClick.enable)&&(ni(d,Kn,r.mouseMove,o),ni(d,E_,r.touchStart,o),ni(d,A_,r.touchMove,o),c.interactivity.events.onClick.enable?(ni(d,Gy,r.touchEndClick,o),ni(d,__,r.mouseUp,o),ni(d,M_,r.mouseDown,o)):ni(d,Gy,r.touchEnd,o),ni(d,a,r.mouseLeave,o),ni(d,D_,r.touchCancel,o))},this._manageListeners=a=>{const o=this._handlers,r=this.container,u=r.actualOptions,c=u.interactivity.detectsOn,d=r.canvas.element;let m=Vc;c===Ps.window?(r.interactivity.element=window,m=C_):c===Ps.parent&&d?r.interactivity.element=d.parentElement??d.parentNode:r.interactivity.element=d,this._manageMediaMatch(a),this._manageResize(a),this._manageInteractivityListeners(m,a),document&&ni(document,O_,o.visibilityChange,a,!1)},this._manageMediaMatch=a=>{const o=this._handlers,r=gg("(prefers-color-scheme: dark)");if(r){if(r.addEventListener!==void 0){ni(r,"change",o.themeChange,a);return}r.addListener!==void 0&&(a?r.addListener(o.oldThemeChange):r.removeListener(o.oldThemeChange))}},this._manageResize=a=>{const o=this._handlers,r=this.container;if(!r.actualOptions.interactivity.events.resize)return;if(typeof ResizeObserver>"u"){ni(window,z_,o.resize,a);return}const c=r.canvas.element;this._resizeObserver&&!a?(c&&this._resizeObserver.unobserve(c),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&a&&c&&(this._resizeObserver=new ResizeObserver(d=>{d.find(p=>p.target===c)&&this._handleWindowResize()}),this._resizeObserver.observe(c))},this._mouseDown=()=>{const{interactivity:a}=this.container;if(!a)return;const{mouse:o}=a;o.clicking=!0,o.downPosition=o.position},this._mouseTouchClick=a=>{const o=this.container,r=o.actualOptions,{mouse:u}=o.interactivity;u.inside=!0;let c=!1;const d=u.position;if(!(!d||!r.interactivity.events.onClick.enable)){for(const m of o.plugins.values())if(m.clickPositionValid&&(c=m.clickPositionValid(d),c))break;c||this._doMouseTouchClick(a),u.clicking=!1}},this._mouseTouchFinish=()=>{const a=this.container.interactivity;if(!a)return;const o=a.mouse;delete o.position,delete o.clickPosition,delete o.downPosition,a.status=Vc,o.inside=!1,o.clicking=!1},this._mouseTouchMove=a=>{const o=this.container,r=o.actualOptions,u=o.interactivity,c=o.canvas.element;if(!u?.element)return;u.mouse.inside=!0;let d;if(a.type.startsWith("pointer")){this._canPush=!0;const p=a;if(u.element===window){if(c){const y=c.getBoundingClientRect();d={x:p.clientX-y.left,y:p.clientY-y.top}}}else if(r.interactivity.detectsOn===Ps.parent){const y=p.target,v=p.currentTarget;if(y&&v&&c){const S=y.getBoundingClientRect(),x=v.getBoundingClientRect(),w=c.getBoundingClientRect();d={x:p.offsetX+ye*S.left-(x.left+w.left),y:p.offsetY+ye*S.top-(x.top+w.top)}}else d={x:p.offsetX??p.clientX,y:p.offsetY??p.clientY}}else p.target===c&&(d={x:p.offsetX??p.clientX,y:p.offsetY??p.clientY})}else if(this._canPush=a.type!=="touchmove",c){const p=a,y=p.touches[p.touches.length-rg],v=c.getBoundingClientRect();d={x:y.clientX-(v.left??Cl),y:y.clientY-(v.top??Cl)}}const m=o.retina.pixelRatio;d&&(d.x*=m,d.y*=m),u.mouse.position=d,u.status=Kn},this._touchEnd=a=>{const o=a,r=Array.from(o.changedTouches);for(const u of r)this._touches.delete(u.identifier);this._mouseTouchFinish()},this._touchEndClick=a=>{const o=a,r=Array.from(o.changedTouches);for(const u of r)this._touches.delete(u.identifier);this._mouseTouchClick(a)},this._touchStart=a=>{const o=a,r=Array.from(o.changedTouches);for(const u of r)this._touches.set(u.identifier,performance.now());this._mouseTouchMove(a)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:a=>this._mouseTouchMove(a),mouseUp:a=>this._mouseTouchClick(a),touchStart:a=>this._touchStart(a),touchMove:a=>this._mouseTouchMove(a),touchEnd:a=>this._touchEnd(a),touchCancel:a=>this._touchEnd(a),touchEndClick:a=>this._touchEndClick(a),visibilityChange:()=>this._handleVisibilityChange(),themeChange:a=>this._handleThemeChange(a),oldThemeChange:a=>this._handleThemeChange(a),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}var we;(function(n){n.configAdded="configAdded",n.containerInit="containerInit",n.particlesSetup="particlesSetup",n.containerStarted="containerStarted",n.containerStopped="containerStopped",n.containerDestroyed="containerDestroyed",n.containerPaused="containerPaused",n.containerPlay="containerPlay",n.containerBuilt="containerBuilt",n.particleAdded="particleAdded",n.particleDestroyed="particleDestroyed",n.particleRemoved="particleRemoved"})(we||(we={}));class ve{constructor(){this.value=""}static create(t,a){const o=new ve;return o.load(t),a!==void 0&&(hn(a)||Ai(a)?o.load({value:a}):o.load(a)),o}load(t){X(t)||X(t.value)||(this.value=t.value)}}class ZC{constructor(){this.color=new ve,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){X(t)||(t.color!==void 0&&(this.color=ve.create(this.color,t.color)),t.image!==void 0&&(this.image=t.image),t.position!==void 0&&(this.position=t.position),t.repeat!==void 0&&(this.repeat=t.repeat),t.size!==void 0&&(this.size=t.size),t.opacity!==void 0&&(this.opacity=t.opacity))}}class KC{constructor(){this.opacity=1}load(t){X(t)||(t.color!==void 0&&(this.color=ve.create(this.color,t.color)),t.image!==void 0&&(this.image=t.image),t.opacity!==void 0&&(this.opacity=t.opacity))}}class FC{constructor(){this.composite="destination-out",this.cover=new KC,this.enable=!1}load(t){if(!X(t)){if(t.composite!==void 0&&(this.composite=t.composite),t.cover!==void 0){const a=t.cover,o=hn(t.cover)?{color:t.cover}:t.cover;this.cover.load(a.color!==void 0||a.image!==void 0?a:{color:o})}t.enable!==void 0&&(this.enable=t.enable)}}}class JC{constructor(){this.enable=!0,this.zIndex=0}load(t){X(t)||(t.enable!==void 0&&(this.enable=t.enable),t.zIndex!==void 0&&(this.zIndex=t.zIndex))}}class $C{constructor(){this.enable=!1,this.mode=[]}load(t){X(t)||(t.enable!==void 0&&(this.enable=t.enable),t.mode!==void 0&&(this.mode=t.mode))}}var Ys;(function(n){n.circle="circle",n.rectangle="rectangle"})(Ys||(Ys={}));class Rg{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=Ys.circle}load(t){X(t)||(t.selectors!==void 0&&(this.selectors=t.selectors),t.enable!==void 0&&(this.enable=t.enable),t.mode!==void 0&&(this.mode=t.mode),t.type!==void 0&&(this.type=t.type))}}class IC{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){X(t)||(t.enable!==void 0&&(this.enable=t.enable),t.force!==void 0&&(this.force=t.force),t.smooth!==void 0&&(this.smooth=t.smooth))}}class WC{constructor(){this.enable=!1,this.mode=[],this.parallax=new IC}load(t){X(t)||(t.enable!==void 0&&(this.enable=t.enable),t.mode!==void 0&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class tE{constructor(){this.delay=.5,this.enable=!0}load(t){X(t)||(t.delay!==void 0&&(this.delay=t.delay),t.enable!==void 0&&(this.enable=t.enable))}}class eE{constructor(){this.onClick=new $C,this.onDiv=new Rg,this.onHover=new WC,this.resize=new tE}load(t){if(X(t))return;this.onClick.load(t.onClick);const a=t.onDiv;a!==void 0&&(this.onDiv=He(a,o=>{const r=new Rg;return r.load(o),r})),this.onHover.load(t.onHover),this.resize.load(t.resize)}}class iE{constructor(t,a){this._engine=t,this._container=a}load(t){if(X(t)||!this._container)return;const a=this._engine.interactors.get(this._container);if(a)for(const o of a)o.loadModeOptions&&o.loadModeOptions(this,t)}}class Vg{constructor(t,a){this.detectsOn=Ps.window,this.events=new eE,this.modes=new iE(t,a)}load(t){if(X(t))return;const a=t.detectsOn;a!==void 0&&(this.detectsOn=a),this.events.load(t.events),this.modes.load(t.modes)}}class nE{load(t){X(t)||(t.position&&(this.position={x:t.position.x??ug,y:t.position.y??ug,mode:t.position.mode??Hs.percent}),t.options&&(this.options=ge({},t.options)))}}var es;(function(n){n.screen="screen",n.canvas="canvas"})(es||(es={}));class sE{constructor(){this.maxWidth=1/0,this.options={},this.mode=es.canvas}load(t){X(t)||(X(t.maxWidth)||(this.maxWidth=t.maxWidth),X(t.mode)||(t.mode===es.screen?this.mode=es.screen:this.mode=es.canvas),X(t.options)||(this.options=ge({},t.options)))}}var pn;(function(n){n.any="any",n.dark="dark",n.light="light"})(pn||(pn={}));class aE{constructor(){this.auto=!1,this.mode=pn.any,this.value=!1}load(t){X(t)||(t.auto!==void 0&&(this.auto=t.auto),t.mode!==void 0&&(this.mode=t.mode),t.value!==void 0&&(this.value=t.value))}}class oE{constructor(){this.name="",this.default=new aE}load(t){X(t)||(t.name!==void 0&&(this.name=t.name),this.default.load(t.default),t.options!==void 0&&(this.options=ge({},t.options)))}}class nf{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){X(t)||(t.count!==void 0&&(this.count=bt(t.count)),t.enable!==void 0&&(this.enable=t.enable),t.speed!==void 0&&(this.speed=bt(t.speed)),t.decay!==void 0&&(this.decay=bt(t.decay)),t.delay!==void 0&&(this.delay=bt(t.delay)),t.sync!==void 0&&(this.sync=t.sync))}}class sf extends nf{constructor(){super(),this.mode=$n.auto,this.startValue=qs.random}load(t){super.load(t),!X(t)&&(t.mode!==void 0&&(this.mode=t.mode),t.startValue!==void 0&&(this.startValue=t.startValue))}}class af extends nf{constructor(){super(),this.offset=0,this.sync=!0}load(t){super.load(t),!X(t)&&t.offset!==void 0&&(this.offset=bt(t.offset))}}class lE{constructor(){this.h=new af,this.s=new af,this.l=new af}load(t){X(t)||(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class ao extends ve{constructor(){super(),this.animation=new lE}static create(t,a){const o=new ao;return o.load(t),a!==void 0&&(hn(a)||Ai(a)?o.load({value:a}):o.load(a)),o}load(t){if(super.load(t),X(t))return;const a=t.animation;a!==void 0&&(a.enable!==void 0?this.animation.h.load(a):this.animation.load(t.animation))}}var Gs;(function(n){n.absorb="absorb",n.bounce="bounce",n.destroy="destroy"})(Gs||(Gs={}));class rE{constructor(){this.speed=2}load(t){X(t)||t.speed!==void 0&&(this.speed=t.speed)}}class uE{constructor(){this.enable=!0,this.retries=0}load(t){X(t)||(t.enable!==void 0&&(this.enable=t.enable),t.retries!==void 0&&(this.retries=t.retries))}}class is{constructor(){this.value=0}load(t){X(t)||X(t.value)||(this.value=bt(t.value))}}class cE extends is{constructor(){super(),this.animation=new nf}load(t){if(super.load(t),X(t))return;const a=t.animation;a!==void 0&&this.animation.load(a)}}class Bg extends cE{constructor(){super(),this.animation=new sf}load(t){super.load(t)}}class Lg extends is{constructor(){super(),this.value=1}}class kg{constructor(){this.horizontal=new Lg,this.vertical=new Lg}load(t){X(t)||(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class fE{constructor(){this.absorb=new rE,this.bounce=new kg,this.enable=!1,this.maxSpeed=50,this.mode=Gs.bounce,this.overlap=new uE}load(t){X(t)||(this.absorb.load(t.absorb),this.bounce.load(t.bounce),t.enable!==void 0&&(this.enable=t.enable),t.maxSpeed!==void 0&&(this.maxSpeed=bt(t.maxSpeed)),t.mode!==void 0&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class hE{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(t){if(X(t))return;const a=t.options;if(a!==void 0)for(const o in a){const r=a[o];r&&(this.options[o]=ge(this.options[o]??{},r))}t.close!==void 0&&(this.close=t.close),t.fill!==void 0&&(this.fill=t.fill),t.type!==void 0&&(this.type=t.type)}}class dE{constructor(){this.offset=0,this.value=90}load(t){X(t)||(t.offset!==void 0&&(this.offset=bt(t.offset)),t.value!==void 0&&(this.value=bt(t.value)))}}class mE{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(t){if(!X(t)&&(t.distance!==void 0&&(this.distance=bt(t.distance)),t.enable!==void 0&&(this.enable=t.enable),t.rotate)){const a=t.rotate.x;a!==void 0&&(this.rotate.x=a);const o=t.rotate.y;o!==void 0&&(this.rotate.y=o)}}}class pE{constructor(){this.x=50,this.y=50,this.mode=Hs.percent,this.radius=0}load(t){X(t)||(t.x!==void 0&&(this.x=t.x),t.y!==void 0&&(this.y=t.y),t.mode!==void 0&&(this.mode=t.mode),t.radius!==void 0&&(this.radius=t.radius))}}class yE{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){X(t)||(t.acceleration!==void 0&&(this.acceleration=bt(t.acceleration)),t.enable!==void 0&&(this.enable=t.enable),t.inverse!==void 0&&(this.inverse=t.inverse),t.maxSpeed!==void 0&&(this.maxSpeed=bt(t.maxSpeed)))}}class gE{constructor(){this.clamp=!0,this.delay=new is,this.enable=!1,this.options={}}load(t){X(t)||(t.clamp!==void 0&&(this.clamp=t.clamp),this.delay.load(t.delay),t.enable!==void 0&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=ge(this.options,t.options)))}}class vE{load(t){X(t)||(t.color!==void 0&&(this.color=ve.create(this.color,t.color)),t.image!==void 0&&(this.image=t.image))}}class bE{constructor(){this.enable=!1,this.length=10,this.fill=new vE}load(t){X(t)||(t.enable!==void 0&&(this.enable=t.enable),t.fill!==void 0&&this.fill.load(t.fill),t.length!==void 0&&(this.length=t.length))}}var Kt;(function(n){n.bounce="bounce",n.none="none",n.out="out",n.destroy="destroy",n.split="split"})(Kt||(Kt={}));class SE{constructor(){this.default=Kt.out}load(t){X(t)||(t.default!==void 0&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}class xE{constructor(){this.acceleration=0,this.enable=!1}load(t){X(t)||(t.acceleration!==void 0&&(this.acceleration=bt(t.acceleration)),t.enable!==void 0&&(this.enable=t.enable),t.position&&(this.position=ge({},t.position)))}}class TE{constructor(){this.angle=new dE,this.attract=new mE,this.center=new pE,this.decay=0,this.distance={},this.direction=oe.none,this.drift=0,this.enable=!1,this.gravity=new yE,this.path=new gE,this.outModes=new SE,this.random=!1,this.size=!1,this.speed=2,this.spin=new xE,this.straight=!1,this.trail=new bE,this.vibrate=!1,this.warp=!1}load(t){if(X(t))return;this.angle.load(dn(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),t.decay!==void 0&&(this.decay=bt(t.decay)),t.direction!==void 0&&(this.direction=t.direction),t.distance!==void 0&&(this.distance=dn(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),t.drift!==void 0&&(this.drift=bt(t.drift)),t.enable!==void 0&&(this.enable=t.enable),this.gravity.load(t.gravity);const a=t.outModes;a!==void 0&&(Ns(a)?this.outModes.load(a):this.outModes.load({default:a})),this.path.load(t.path),t.random!==void 0&&(this.random=t.random),t.size!==void 0&&(this.size=t.size),t.speed!==void 0&&(this.speed=bt(t.speed)),this.spin.load(t.spin),t.straight!==void 0&&(this.straight=t.straight),this.trail.load(t.trail),t.vibrate!==void 0&&(this.vibrate=t.vibrate),t.warp!==void 0&&(this.warp=t.warp)}}class wE extends sf{constructor(){super(),this.destroy=In.none,this.speed=2}load(t){super.load(t),!X(t)&&t.destroy!==void 0&&(this.destroy=t.destroy)}}class ME extends Bg{constructor(){super(),this.animation=new wE,this.value=1}load(t){if(X(t))return;super.load(t);const a=t.animation;a!==void 0&&this.animation.load(a)}}class _E{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if(X(t))return;t.enable!==void 0&&(this.enable=t.enable);const a=t.width;a!==void 0&&(this.width=a);const o=t.height;o!==void 0&&(this.height=o)}}var oo;(function(n){n.delete="delete",n.wait="wait"})(oo||(oo={}));class CE{constructor(){this.mode=oo.delete,this.value=0}load(t){X(t)||(t.mode!==void 0&&(this.mode=t.mode),t.value!==void 0&&(this.value=t.value))}}class EE{constructor(){this.density=new _E,this.limit=new CE,this.value=0}load(t){X(t)||(this.density.load(t.density),this.limit.load(t.limit),t.value!==void 0&&(this.value=t.value))}}class AE{constructor(){this.blur=0,this.color=new ve,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(t){X(t)||(t.blur!==void 0&&(this.blur=t.blur),this.color=ve.create(this.color,t.color),t.enable!==void 0&&(this.enable=t.enable),t.offset!==void 0&&(t.offset.x!==void 0&&(this.offset.x=t.offset.x),t.offset.y!==void 0&&(this.offset.y=t.offset.y)))}}class DE{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(t){if(X(t))return;const a=t.options;if(a!==void 0)for(const o in a){const r=a[o];r&&(this.options[o]=ge(this.options[o]??{},r))}t.close!==void 0&&(this.close=t.close),t.fill!==void 0&&(this.fill=t.fill),t.type!==void 0&&(this.type=t.type)}}class zE extends sf{constructor(){super(),this.destroy=In.none,this.speed=5}load(t){super.load(t),!X(t)&&t.destroy!==void 0&&(this.destroy=t.destroy)}}class OE extends Bg{constructor(){super(),this.animation=new zE,this.value=3}load(t){if(super.load(t),X(t))return;const a=t.animation;a!==void 0&&this.animation.load(a)}}class Ug{constructor(){this.width=0}load(t){X(t)||(t.color!==void 0&&(this.color=ao.create(this.color,t.color)),t.width!==void 0&&(this.width=bt(t.width)),t.opacity!==void 0&&(this.opacity=bt(t.opacity)))}}class RE extends is{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),!X(t)&&(t.opacityRate!==void 0&&(this.opacityRate=t.opacityRate),t.sizeRate!==void 0&&(this.sizeRate=t.sizeRate),t.velocityRate!==void 0&&(this.velocityRate=t.velocityRate))}}class VE{constructor(t,a){this._engine=t,this._container=a,this.bounce=new kg,this.collisions=new fE,this.color=new ao,this.color.value="#fff",this.effect=new hE,this.groups={},this.move=new TE,this.number=new EE,this.opacity=new ME,this.reduceDuplicates=!1,this.shadow=new AE,this.shape=new DE,this.size=new OE,this.stroke=new Ug,this.zIndex=new RE}load(t){if(X(t))return;if(t.groups!==void 0)for(const o of Object.keys(t.groups)){if(!Object.hasOwn(t.groups,o))continue;const r=t.groups[o];r!==void 0&&(this.groups[o]=ge(this.groups[o]??{},r))}t.reduceDuplicates!==void 0&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.color.load(ao.create(this.color,t.color)),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.zIndex.load(t.zIndex),this.collisions.load(t.collisions),t.interactivity!==void 0&&(this.interactivity=ge({},t.interactivity));const a=t.stroke;if(a&&(this.stroke=He(a,o=>{const r=new Ug;return r.load(o),r})),this._container){const o=this._engine.updaters.get(this._container);if(o)for(const u of o)u.loadOptions&&u.loadOptions(this,t);const r=this._engine.interactors.get(this._container);if(r)for(const u of r)u.loadParticlesOptions&&u.loadParticlesOptions(this,t)}}}function Ng(n,...t){for(const a of t)n.load(a)}function Hg(n,t,...a){const o=new VE(n,t);return Ng(o,...a),o}class BE{constructor(t,a){this._findDefaultTheme=o=>this.themes.find(r=>r.default.value&&r.default.mode===o)??this.themes.find(r=>r.default.value&&r.default.mode===pn.any),this._importPreset=o=>{this.load(this._engine.getPreset(o))},this._engine=t,this._container=a,this.autoPlay=!0,this.background=new ZC,this.backgroundMask=new FC,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new JC,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new Vg(t,a),this.manualParticles=[],this.particles=Hg(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(t){if(X(t))return;t.preset!==void 0&&He(t.preset,c=>this._importPreset(c)),t.autoPlay!==void 0&&(this.autoPlay=t.autoPlay),t.clear!==void 0&&(this.clear=t.clear),t.key!==void 0&&(this.key=t.key),t.name!==void 0&&(this.name=t.name),t.delay!==void 0&&(this.delay=bt(t.delay));const a=t.detectRetina;a!==void 0&&(this.detectRetina=a),t.duration!==void 0&&(this.duration=bt(t.duration));const o=t.fpsLimit;o!==void 0&&(this.fpsLimit=o),t.pauseOnBlur!==void 0&&(this.pauseOnBlur=t.pauseOnBlur),t.pauseOnOutsideViewport!==void 0&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),t.zLayers!==void 0&&(this.zLayers=t.zLayers),this.background.load(t.background);const r=t.fullScreen;hg(r)?this.fullScreen.enable=r:this.fullScreen.load(r),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map(c=>{const d=new nE;return d.load(c),d})),this.particles.load(t.particles),this.style=ge(this.style,t.style),this._engine.loadOptions(this,t),t.smooth!==void 0&&(this.smooth=t.smooth);const u=this._engine.interactors.get(this._container);if(u)for(const c of u)c.loadOptions&&c.loadOptions(this,t);if(t.responsive!==void 0)for(const c of t.responsive){const d=new sE;d.load(c),this.responsive.push(d)}if(this.responsive.sort((c,d)=>c.maxWidth-d.maxWidth),t.themes!==void 0)for(const c of t.themes){const d=this.themes.find(m=>m.name===c.name);if(d)d.load(c);else{const m=new oE;m.load(c),this.themes.push(m)}}this.defaultThemes.dark=this._findDefaultTheme(pn.dark)?.name,this.defaultThemes.light=this._findDefaultTheme(pn.light)?.name}setResponsive(t,a,o){this.load(o);const r=this.responsive.find(u=>u.mode===es.screen&&screen?u.maxWidth>screen.availWidth:u.maxWidth*a>t);return this.load(r?.options),r?.maxWidth}setTheme(t){if(t){const a=this.themes.find(o=>o.name===t);a&&this.load(a.options)}else{const a=gg("(prefers-color-scheme: dark)"),o=a?.matches,r=this._findDefaultTheme(o?pn.dark:pn.light);r&&this.load(r.options)}}}var Xs;(function(n){n.external="external",n.particles="particles"})(Xs||(Xs={}));class LE{constructor(t,a){this.container=a,this._engine=t,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(t){for(const a of this._externalInteractors)a.isEnabled()&&a.interact(t)}handleClickMode(t){for(const a of this._externalInteractors)a.handleClickMode?.(t)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(const t of this._interactors){switch(t.type){case Xs.external:this._externalInteractors.push(t);break;case Xs.particles:this._particleInteractors.push(t);break}t.init()}}particlesInteract(t,a){for(const o of this._externalInteractors)o.clear(t,a);for(const o of this._particleInteractors)o.isEnabled(t)&&o.interact(t,a)}reset(t){for(const a of this._externalInteractors)a.isEnabled()&&a.reset(t);for(const a of this._particleInteractors)a.isEnabled(t)&&a.reset(t)}}var gi;(function(n){n.normal="normal",n.inside="inside",n.outside="outside"})(gi||(gi={}));function kE(n,t,a,o){const r=t.options[n];if(r)return ge({close:t.close,fill:t.fill},ii(r,a,o))}function UE(n,t,a,o){const r=t.options[n];if(r)return ge({close:t.close,fill:t.fill},ii(r,a,o))}function qg(n){if(!Pt(n.outMode,n.checkModes))return;const t=n.radius*ye;n.coord>n.maxCoord-t?n.setCb(-n.radius):n.coord<t&&n.setCb(n.radius)}class NE{constructor(t,a){this.container=a,this._calcPosition=(o,r,u,c=Zy)=>{for(const w of o.plugins.values()){const C=w.particlePosition!==void 0?w.particlePosition(r,this):void 0;if(C)return ke.create(C.x,C.y,u)}const d=o.canvas.size,m=yC({size:d,position:r}),p=ke.create(m.x,m.y,u),y=this.getRadius(),v=this.options.move.outModes,S=w=>{qg({outMode:w,checkModes:[Kt.bounce],coord:p.x,maxCoord:o.canvas.size.width,setCb:C=>p.x+=C,radius:y})},x=w=>{qg({outMode:w,checkModes:[Kt.bounce],coord:p.y,maxCoord:o.canvas.size.height,setCb:C=>p.y+=C,radius:y})};return S(v.left??v.default),S(v.right??v.default),x(v.top??v.default),x(v.bottom??v.default),this._checkOverlap(p,c)?this._calcPosition(o,void 0,u,c+F_):p},this._calculateVelocity=()=>{const o=pC(this.direction),r=o.copy(),u=this.options.move;if(u.direction===oe.inside||u.direction===oe.outside)return r;const c=mn(et(u.angle.value)),d=mn(et(u.angle.offset)),m={left:d-c*te,right:d+c*te};return u.straight||(r.angle+=Ue(bt(m.left,m.right))),u.random&&typeof u.speed=="number"&&(r.length*=Ct()),r},this._checkOverlap=(o,r=Zy)=>{const u=this.options.collisions,c=this.getRadius();if(!u.enable)return!1;const d=u.overlap;if(d.enable)return!1;const m=d.retries;if(m>=J_&&r>m)throw new Error(`${ti} particle is overlapping and can't be placed`);return!!this.container.particles.find(p=>Ne(o,p.position)<c+p.getRadius())},this._getRollColor=o=>{if(!o||!this.roll||!this.backColor&&!this.roll.alter)return o;const r=this.roll.horizontal&&this.roll.vertical?ye*sg:sg,u=this.roll.horizontal?Math.PI*te:El;return Math.floor(((this.roll.angle??El)+u)/(Math.PI/r))%ye?this.backColor?this.backColor:this.roll.alter?YC(o,this.roll.alter.type,this.roll.alter.value):o:o},this._initPosition=o=>{const r=this.container,u=et(this.options.zIndex.value);this.position=this._calcPosition(r,o,ei(u,$_,r.zLayers)),this.initialPosition=this.position.copy();const c=r.canvas.size;switch(this.moveCenter={...wg(this.options.move.center,c),radius:this.options.move.center.radius??I_,mode:this.options.move.center.mode??Hs.percent},this.direction=mC(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case oe.inside:this.outType=gi.inside;break;case oe.outside:this.outType=gi.outside;break}this.offset=ie.origin},this._engine=t}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const a=this.container,o=this.pathGenerator;a.shapeDrawers.get(this.shape)?.particleDestroy?.(this);for(const u of a.plugins.values())u.particleDestroyed?.(this,t);for(const u of a.particles.updaters)u.particleDestroyed?.(this,t);o?.reset(this),this._engine.dispatchEvent(we.particleDestroyed,{container:this.container,data:{particle:this}})}draw(t){const a=this.container,o=a.canvas;for(const r of a.plugins.values())o.drawParticlePlugin(r,this,t);o.drawParticle(this,t)}getFillColor(){return this._getRollColor(this.bubble.color??Ag(this.color))}getMass(){return this.getRadius()**Ni*Math.PI*te}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??Ag(this.strokeColor))}init(t,a,o,r){const u=this.container,c=this._engine;this.id=t,this.group=r,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.isRotating=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType=gi.normal,this.ignoresResizeRatio=!0;const d=u.retina.pixelRatio,m=u.actualOptions,p=Hg(this._engine,u,m.particles),{reduceDuplicates:y}=p,v=p.effect.type,S=p.shape.type;this.effect=ii(v,this.id,y),this.shape=ii(S,this.id,y);const x=p.effect,w=p.shape;if(o){if(o.effect?.type){const G=o.effect.type,Q=ii(G,this.id,y);Q&&(this.effect=Q,x.load(o.effect))}if(o.shape?.type){const G=o.shape.type,Q=ii(G,this.id,y);Q&&(this.shape=Q,w.load(o.shape))}}if(this.effect===Us){const G=[...this.container.effectDrawers.keys()];this.effect=G[Math.floor(Ct()*G.length)]}if(this.shape===Us){const G=[...this.container.shapeDrawers.keys()];this.shape=G[Math.floor(Ct()*G.length)]}this.effectData=kE(this.effect,x,this.id,y),this.shapeData=UE(this.shape,w,this.id,y),p.load(o);const C=this.effectData;C&&p.load(C.particles);const A=this.shapeData;A&&p.load(A.particles);const R=new Vg(c,u);R.load(u.actualOptions.interactivity),R.load(p.interactivity),this.interactivity=R,this.effectFill=C?.fill??p.effect.fill,this.effectClose=C?.close??p.effect.close,this.shapeFill=A?.fill??p.shape.fill,this.shapeClose=A?.close??p.shape.close,this.options=p;const L=this.options.move.path;this.pathDelay=et(L.delay.value)*me,L.generator&&(this.pathGenerator=this._engine.getPathGenerator(L.generator),this.pathGenerator&&u.addPath(L.generator,this.pathGenerator)&&this.pathGenerator.init(u)),u.retina.initParticle(this),this.size=Tg(this.options.size,d),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(a),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=ng-et(this.options.move.decay);const B=u.particles;B.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/u.zLayers,this.sides=24;let H=u.effectDrawers.get(this.effect);H||(H=this._engine.getEffectDrawer(this.effect),H&&u.effectDrawers.set(this.effect,H)),H?.loadEffect&&H.loadEffect(this);let Y=u.shapeDrawers.get(this.shape);Y||(Y=this._engine.getShapeDrawer(this.shape),Y&&u.shapeDrawers.set(this.shape,Y)),Y?.loadShape&&Y.loadShape(this);const K=Y?.getSidesCount;K&&(this.sides=K(this)),this.spawning=!1,this.shadowColor=yi(this._engine,this.options.shadow.color);for(const G of B.updaters)G.init(this);for(const G of B.movers)G.init?.(this);H?.particleInit?.(u,this),Y?.particleInit?.(u,this);for(const G of u.plugins.values())G.particleCreated?.(this)}isInsideCanvas(){const t=this.getRadius(),a=this.container.canvas.size,o=this.position;return o.x>=-t&&o.y>=-t&&o.y<=a.height+t&&o.x<=a.width+t}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const t of this.container.particles.updaters)t.reset?.(this)}}class HE{constructor(t,a){this.position=t,this.particle=a}}var Qs;(function(n){n.circle="circle",n.rectangle="rectangle"})(Qs||(Qs={}));class jg{constructor(t,a,o){this.position={x:t,y:a},this.type=o}}class be extends jg{constructor(t,a,o){super(t,a,Qs.circle),this.radius=o}contains(t){return Ne(t,this.position)<=this.radius}intersects(t){const a=this.position,o=t.position,r={x:Math.abs(o.x-a.x),y:Math.abs(o.y-a.y)},u=this.radius;if(t instanceof be||t.type===Qs.circle){const c=t,d=u+c.radius,m=Math.sqrt(r.x**Ni+r.y**Ni);return d>m}else if(t instanceof vi||t.type===Qs.rectangle){const c=t,{width:d,height:m}=c.size;return Math.pow(r.x-d,Ni)+Math.pow(r.y-m,Ni)<=u**Ni||r.x<=u+d&&r.y<=u+m||r.x<=d||r.y<=m}return!1}}class vi extends jg{constructor(t,a,o,r){super(t,a,Qs.rectangle),this.size={height:r,width:o}}contains(t){const a=this.size.width,o=this.size.height,r=this.position;return t.x>=r.x&&t.x<=r.x+a&&t.y>=r.y&&t.y<=r.y+o}intersects(t){if(t instanceof be)return t.intersects(this);const a=this.size.width,o=this.size.height,r=this.position,u=t.position,c=t instanceof vi?t.size:{width:0,height:0},d=c.width,m=c.height;return u.x<r.x+a&&u.x+d>r.x&&u.y<r.y+o&&u.y+m>r.y}}class Ol{constructor(t,a){this.rectangle=t,this.capacity=a,this._subdivide=()=>{const{x:o,y:r}=this.rectangle.position,{width:u,height:c}=this.rectangle.size,{capacity:d}=this;for(let m=0;m<B_;m++){const p=m%ye;this._subs.push(new Ol(new vi(o+u*te*p,r+c*te*(Math.round(m*te)-p),u*te,c*te),d))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(t){return this.rectangle.contains(t.position)?this._points.length<this.capacity?(this._points.push(t),!0):(this._divided||this._subdivide(),this._subs.some(a=>a.insert(t))):!1}query(t,a){const o=[];if(!t.intersects(this.rectangle))return[];for(const r of this._points)!t.contains(r.position)&&Ne(t.position,r.position)>r.particle.getRadius()&&(!a||a(r.particle))||o.push(r.particle);if(this._divided)for(const r of this._subs)o.push(...r.query(t,a));return o}queryCircle(t,a,o){return this.query(new be(t.x,t.y,a),o)}queryRectangle(t,a,o){return this.query(new vi(t.x,t.y,a.width,a.height),o)}}const Pg=n=>{const{height:t,width:a}=n;return new vi(ag*a,ag*t,og*a,og*t)};class qE{constructor(t,a){this._addToPool=(...r)=>{this._pool.push(...r)},this._applyDensity=(r,u,c,d)=>{const m=r.number;if(!r.number.density?.enable){c===void 0?this._limit=m.limit.value:(d?.number.limit?.value??m.limit.value)&&this._groupLimits.set(c,d?.number.limit?.value??m.limit.value);return}const p=this._initDensityFactor(m.density),y=m.value,v=m.limit.value>lg?m.limit.value:y,S=Math.min(y,v)*p+u,x=Math.min(this.count,this.filter(w=>w.group===c).length);c===void 0?this._limit=m.limit.value*p:this._groupLimits.set(c,m.limit.value*p),x<S?this.push(Math.abs(S-x),void 0,r,c):x>S&&this.removeQuantity(x-S,c)},this._initDensityFactor=r=>{const u=this._container;if(!u.canvas.element||!r.enable)return eC;const c=u.canvas.element,d=u.retina.pixelRatio;return c.width*c.height/(r.height*r.width*d**Ni)},this._pushParticle=(r,u,c,d)=>{try{let m=this._pool.pop();m||(m=new NE(this._engine,this._container)),m.init(this._nextId,r,u,c);let p=!0;return d&&(p=d(m)),p?(this._array.push(m),this._zArray.push(m),this._nextId++,this._engine.dispatchEvent(we.particleAdded,{container:this._container,data:{particle:m}}),m):void 0}catch(m){Wn().warning(`${ti} adding particle: ${m}`)}},this._removeParticle=(r,u,c)=>{const d=this._array[r];if(!d||d.group!==u)return!1;const m=this._zArray.indexOf(d);return this._array.splice(r,Al),this._zArray.splice(m,Al),d.destroy(c),this._engine.dispatchEvent(we.particleRemoved,{container:this._container,data:{particle:d}}),this._addToPool(d),!0},this._engine=t,this._container=a,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new LE(t,a),this._pluginsInitialized=!1;const o=a.canvas.size;this.quadTree=new Ol(Pg(o),Ky),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){const t=this._container;t.actualOptions.manualParticles.forEach(o=>this.addParticle(o.position?wg(o.position,t.canvas.size):void 0,o.options))}addParticle(t,a,o,r){const u=this._container.actualOptions.particles.number.limit.mode,c=o===void 0?this._limit:this._groupLimits.get(o)??this._limit,d=this.count;if(c>lg)switch(u){case oo.delete:{const m=d+W_-c;m>tC&&this.removeQuantity(m);break}case oo.wait:if(d>=c)return;break}return this._pushParticle(t,a,o,r)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(t){const a=this._container,o=a.canvas;o.clear(),this.update(t);for(const r of a.plugins.values())o.drawPlugin(r,t);for(const r of this._zArray)r.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}get(t){return this._array[t]}handleClickMode(t){this._interactionManager.handleClickMode(t)}async init(){const t=this._container,a=t.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let o=!1;for(const r of t.plugins.values())if(o=r.particlesInitialization?.()??o,o)break;if(this.addManualParticles(),!o){const r=a.particles,u=r.groups;for(const c in u){const d=u[c];for(let m=this.count,p=0;p<d.number?.value&&m<r.number.value;m++,p++)this.addParticle(void 0,d,c)}for(let c=this.count;c<r.number.value;c++)this.addParticle()}}async initPlugins(){if(this._pluginsInitialized)return;const t=this._container;this.movers=await this._engine.getMovers(t,!0),this.updaters=await this._engine.getUpdaters(t,!0),await this._interactionManager.init();for(const a of t.pathGenerators.values())a.init(t)}push(t,a,o,r){for(let u=0;u<t;u++)this.addParticle(a?.position,o,r)}async redraw(){this.clear(),await this.init(),this.draw({value:0,factor:0})}remove(t,a,o){this.removeAt(this._array.indexOf(t),void 0,a,o)}removeAt(t,a=V_,o,r){if(t<qc||t>this.count)return;let u=0;for(let c=t;u<a&&c<this.count;c++)this._removeParticle(c,o,r)&&(c--,u++)}removeQuantity(t,a){this.removeAt(qc,t,a)}setDensity(){const t=this._container.actualOptions,a=t.particles.groups,o=t.manualParticles.length;for(const r in a)this._applyDensity(a[r],o,r);this._applyDensity(t.particles,o)}setLastZIndex(t){this._lastZIndex=t,this._needsSort=this._needsSort||this._lastZIndex<t}setResizeFactor(t){this._resizeFactor=t}update(t){const a=this._container,o=new Set;this.quadTree=new Ol(Pg(a.canvas.size),Ky);for(const u of a.pathGenerators.values())u.update();for(const u of a.plugins.values())u.update?.(t);const r=this._resizeFactor;for(const u of this._array){r&&!u.ignoresResizeRatio&&(u.position.x*=r.width,u.position.y*=r.height,u.initialPosition.x*=r.width,u.initialPosition.y*=r.height),u.ignoresResizeRatio=!1,this._interactionManager.reset(u);for(const c of this._container.plugins.values()){if(u.destroyed)break;c.particleUpdate?.(u,t)}for(const c of this.movers)c.isEnabled(u)&&c.move(u,t);if(u.destroyed){o.add(u);continue}this.quadTree.insert(new HE(u.getPosition(),u))}if(o.size){const u=c=>!o.has(c);this._array=this.filter(u),this._zArray=this._zArray.filter(u);for(const c of o)this._engine.dispatchEvent(we.particleRemoved,{container:this._container,data:{particle:c}});this._addToPool(...o)}this._interactionManager.externalInteract(t);for(const u of this._array){for(const c of this.updaters)c.update(u,t);!u.destroyed&&!u.spawning&&this._interactionManager.particlesInteract(u,t)}if(delete this._resizeFactor,this._needsSort){const u=this._zArray;u.sort((c,d)=>d.position.z-c.position.z||c.id-d.id),this._lastZIndex=u[u.length-rg].position.z,this._needsSort=!1}}}class jE{constructor(t){this.container=t,this.pixelRatio=Fy,this.reduceFactor=Jy}init(){const t=this.container,a=t.actualOptions;this.pixelRatio=!a.detectRetina||ts()?Fy:devicePixelRatio,this.reduceFactor=Jy;const o=this.pixelRatio,r=t.canvas;if(r.element){const d=r.element;r.size.width=d.offsetWidth*o,r.size.height=d.offsetHeight*o}const u=a.particles,c=u.move;this.maxSpeed=et(c.gravity.maxSpeed)*o,this.sizeAnimationSpeed=et(u.size.animation.speed)*o}initParticle(t){const a=t.options,o=this.pixelRatio,r=a.move,u=r.distance,c=t.retina;c.moveDrift=et(r.drift)*o,c.moveSpeed=et(r.speed)*o,c.sizeAnimationSpeed=et(a.size.animation.speed)*o;const d=c.maxDistance;d.horizontal=u.horizontal!==void 0?u.horizontal*o:void 0,d.vertical=u.vertical!==void 0?u.vertical*o:void 0,c.maxSpeed=et(r.gravity.maxSpeed)*o}}function Ht(n){return n&&!n.destroyed}function PE(n,t=Bc,a=!1){return{value:n,factor:a?Bc/t:Bc*n/me}}function Zs(n,t,...a){const o=new BE(n,t);return Ng(o,...a),o}class YE{constructor(t,a,o){this._intersectionManager=r=>{if(!(!Ht(this)||!this.actualOptions.pauseOnOutsideViewport))for(const u of r)u.target===this.interactivity.element&&(u.isIntersecting?this.play():this.pause())},this._nextFrame=r=>{try{if(!this._smooth&&this._lastFrameTime!==void 0&&r<this._lastFrameTime+me/this.fpsLimit){this.draw(!1);return}this._lastFrameTime??=r;const u=PE(r-this._lastFrameTime,this.fpsLimit,this._smooth);if(this.addLifeTime(u.value),this._lastFrameTime=r,u.value>me){this.draw(!1);return}if(this.particles.draw(u),!this.alive()){this.destroy();return}this.animationStatus&&this.draw(!1)}catch(u){Wn().error(`${ti} in animation loop`,u)}},this._engine=t,this.id=Symbol(a),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._clickHandlers=new Map,this._sourceOptions=o,this._initialSourceOptions=o,this.retina=new jE(this),this.canvas=new XC(this,this._engine),this.particles=new qE(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=Zs(this._engine,this),this.actualOptions=Zs(this._engine,this),this._eventListeners=new QC(this),this._intersectionObserver=xC(r=>this._intersectionManager(r)),this._engine.dispatchEvent(we.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&Ht(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(t){if(!Ht(this))return;const a=this.interactivity.element;if(!a)return;const o=(v,S,x)=>{if(!Ht(this))return;const w=this.retina.pixelRatio,C={x:S.x*w,y:S.y*w},A=this.particles.quadTree.queryCircle(C,x*w);t(v,A)},r=v=>{if(!Ht(this))return;const S=v,x={x:S.offsetX||S.clientX,y:S.offsetY||S.clientY};o(v,x,j_)},u=()=>{Ht(this)&&(p=!0,y=!1)},c=()=>{Ht(this)&&(y=!0)},d=v=>{if(Ht(this)){if(p&&!y){const S=v;let x=S.touches[S.touches.length-eg];if(!x&&(x=S.changedTouches[S.changedTouches.length-eg],!x))return;const w=this.canvas.element,C=w?w.getBoundingClientRect():void 0,A={x:x.clientX-(C?C.left:Cl),y:x.clientY-(C?C.top:Cl)};o(v,A,Math.max(x.radiusX,x.radiusY))}p=!1,y=!1}},m=()=>{Ht(this)&&(p=!1,y=!1)};let p=!1,y=!1;this._clickHandlers.set("click",r),this._clickHandlers.set("touchstart",u),this._clickHandlers.set("touchmove",c),this._clickHandlers.set("touchend",d),this._clickHandlers.set("touchcancel",m);for(const[v,S]of this._clickHandlers)a.addEventListener(v,S)}addLifeTime(t){this._lifeTime+=t}addPath(t,a,o=!1){return!Ht(this)||!o&&this.pathGenerators.has(t)?!1:(this.pathGenerators.set(t,a),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}clearClickHandlers(){if(Ht(this)){for(const[t,a]of this._clickHandlers)this.interactivity.element?.removeEventListener(t,a);this._clickHandlers.clear()}}destroy(t=!0){if(Ht(this)){this.stop(),this.clearClickHandlers(),this.particles.destroy(),this.canvas.destroy();for(const a of this.effectDrawers.values())a.destroy?.(this);for(const a of this.shapeDrawers.values())a.destroy?.(this);for(const a of this.effectDrawers.keys())this.effectDrawers.delete(a);for(const a of this.shapeDrawers.keys())this.shapeDrawers.delete(a);if(this._engine.clearPlugins(this),this.destroyed=!0,t){const a=this._engine.items,o=a.findIndex(r=>r===this);o>=P_&&a.splice(o,ig)}this._engine.dispatchEvent(we.containerDestroyed,{container:this})}}draw(t){if(!Ht(this))return;let a=t;const o=r=>{a&&(this._lastFrameTime=void 0,a=!1),this._nextFrame(r)};this._drawAnimationFrame=hC(r=>o(r))}async export(t,a={}){for(const o of this.plugins.values()){if(!o.export)continue;const r=await o.export(t,a);if(r.supported)return r.blob}Wn().error(`${ti} - Export plugin with type ${t} not found`)}handleClickMode(t){if(Ht(this)){this.particles.handleClickMode(t);for(const a of this.plugins.values())a.handleClickMode?.(t)}}async init(){if(!Ht(this))return;const t=this._engine.getSupportedEffects();for(const p of t){const y=this._engine.getEffectDrawer(p);y&&this.effectDrawers.set(p,y)}const a=this._engine.getSupportedShapes();for(const p of a){const y=this._engine.getShapeDrawer(p);y&&this.shapeDrawers.set(p,y)}await this.particles.initPlugins(),this._options=Zs(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=Zs(this._engine,this,this._options);const o=await this._engine.getAvailablePlugins(this);for(const[p,y]of o)this.plugins.set(p,y);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{zLayers:r,duration:u,delay:c,fpsLimit:d,smooth:m}=this.actualOptions;this.zLayers=r,this._duration=et(u)*me,this._delay=et(c)*me,this._lifeTime=0,this.fpsLimit=d>G_?d:Y_,this._smooth=m;for(const p of this.effectDrawers.values())await p.init?.(this);for(const p of this.shapeDrawers.values())await p.init?.(this);for(const p of this.plugins.values())await p.init?.();this._engine.dispatchEvent(we.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity();for(const p of this.plugins.values())p.particlesSetup?.();this._engine.dispatchEvent(we.particlesSetup,{container:this})}async loadTheme(t){Ht(this)&&(this._currentTheme=t,await this.refresh())}pause(){if(Ht(this)&&(this._drawAnimationFrame!==void 0&&(dC(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const t of this.plugins.values())t.pause?.();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(we.containerPaused,{container:this})}}play(t){if(!Ht(this))return;const a=this._paused||t;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),a)for(const o of this.plugins.values())o.play&&o.play();this._engine.dispatchEvent(we.containerPlay,{container:this}),this.draw(a??!1)}async refresh(){if(Ht(this))return this.stop(),this.start()}async reset(t){if(Ht(this))return this._initialSourceOptions=t,this._sourceOptions=t,this._options=Zs(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=Zs(this._engine,this,this._options),this.refresh()}async start(){!Ht(this)||this.started||(await this.init(),this.started=!0,await new Promise(t=>{const a=async()=>{this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const o of this.plugins.values())await o.start?.();this._engine.dispatchEvent(we.containerStarted,{container:this}),this.play(),t()};this._delayTimeout=setTimeout(()=>void a(),this._delay)}))}stop(){if(!(!Ht(this)||!this.started)){this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element);for(const t of this.plugins.values())t.stop?.();for(const t of this.plugins.keys())this.plugins.delete(t);this._sourceOptions=this._options,this._engine.dispatchEvent(we.containerStopped,{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth===t?!1:(this._responsiveMaxWidth=t,!0)}}class GE{constructor(){this._listeners=new Map}addEventListener(t,a){this.removeEventListener(t,a);let o=this._listeners.get(t);o||(o=[],this._listeners.set(t,o)),o.push(a)}dispatchEvent(t,a){this._listeners.get(t)?.forEach(r=>r(a))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,a){const o=this._listeners.get(t);if(!o)return;const r=o.length,u=o.indexOf(a);u<qc||(r===Al?this._listeners.delete(t):o.splice(u,Al))}}async function of(n,t,a,o=!1){let r=t.get(n);return(!r||o)&&(r=await Promise.all([...a.values()].map(u=>u(n))),t.set(n,r)),r}async function XE(n){const t=ii(n.url,n.index);if(!t)return n.fallback;const a=await fetch(t);return a.ok?await a.json():(Wn().error(`${ti} ${a.status} while retrieving config file`),n.fallback)}const QE=n=>{let t;if(n instanceof HTMLCanvasElement||n.tagName.toLowerCase()===Lc)t=n,t.dataset[Zn]||(t.dataset[Zn]=Qy);else{const o=n.getElementsByTagName(Lc);o.length?(t=o[X_],t.dataset[Zn]=Qy):(t=document.createElement(Lc),t.dataset[Zn]=Xy,n.appendChild(t))}const a="100%";return t.style.width||(t.style.width=a),t.style.height||(t.style.height=a),t},ZE=(n,t)=>{let a=t??document.getElementById(n);return a||(a=document.createElement("div"),a.id=n,a.dataset[Zn]=Xy,document.body.append(a),a)};class KE{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new GE,this._initialized=!1,this.plugins=[],this.colorManagers=new Map,this.easingFunctions=new Map,this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const t={};for(const[a,o]of this._configs)t[a]=o;return t}get items(){return this._domArray}get version(){return"3.9.1"}async addColorManager(t,a=!0){this.colorManagers.set(t.key,t),await this.refresh(a)}addConfig(t){const a=t.key??t.name??"default";this._configs.set(a,t),this._eventDispatcher.dispatchEvent(we.configAdded,{data:{name:a,config:t}})}async addEasing(t,a,o=!0){this.getEasing(t)||(this.easingFunctions.set(t,a),await this.refresh(o))}async addEffect(t,a,o=!0){He(t,r=>{this.getEffectDrawer(r)||this.effectDrawers.set(r,a)}),await this.refresh(o)}addEventListener(t,a){this._eventDispatcher.addEventListener(t,a)}async addInteractor(t,a,o=!0){this._initializers.interactors.set(t,a),await this.refresh(o)}async addMover(t,a,o=!0){this._initializers.movers.set(t,a),await this.refresh(o)}async addParticleUpdater(t,a,o=!0){this._initializers.updaters.set(t,a),await this.refresh(o)}async addPathGenerator(t,a,o=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,a),await this.refresh(o)}async addPlugin(t,a=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(a)}async addPreset(t,a,o=!1,r=!0){(o||!this.getPreset(t))&&this.presets.set(t,a),await this.refresh(r)}async addShape(t,a=!0){for(const o of t.validTypes)this.getShapeDrawer(o)||this.shapeDrawers.set(o,t);await this.refresh(a)}checkVersion(t){if(this.version!==t)throw new Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${t}`)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,a){this._eventDispatcher.dispatchEvent(t,a)}dom(){return this.items}domItem(t){return this.item(t)}async getAvailablePlugins(t){const a=new Map;for(const o of this.plugins)o.needsPlugin(t.actualOptions)&&a.set(o.id,await o.getPlugin(t));return a}getEasing(t){return this.easingFunctions.get(t)??(a=>a)}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,a=!1){return of(t,this.interactors,this._initializers.interactors,a)}async getMovers(t,a=!1){return of(t,this.movers,this._initializers.movers,a)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find(a=>a.id===t)}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,a=!1){return of(t,this.updaters,this._initializers.updaters,a)}init(){this._initialized||(this._initialized=!0)}item(t){const{items:a}=this,o=a[t];if(!o||o.destroyed){a.splice(t,ig);return}return o}async load(t){const a=t.id??t.element?.id??`tsparticles${Math.floor(Ct()*Q_)}`,{index:o,url:r}=t,u=r?await XE({fallback:t.options,url:r,index:o}):t.options,c=ii(u,o),{items:d}=this,m=d.findIndex(S=>S.id.description===a),p=new YE(this,a,c);if(m>=Z_){const S=this.item(m),x=S?K_:El;S&&!S.destroyed&&S.destroy(!1),d.splice(m,x,p)}else d.push(p);const y=ZE(a,t.element),v=QE(y);return p.canvas.loadCanvas(v),await p.start(),p}loadOptions(t,a){this.plugins.forEach(o=>o.loadOptions?.(t,a))}loadParticlesOptions(t,a,...o){const r=this.updaters.get(t);r&&r.forEach(u=>u.loadOptions?.(a,...o))}async refresh(t=!0){t&&await Promise.all(this.items.map(a=>a.refresh()))}removeEventListener(t,a){this._eventDispatcher.removeEventListener(t,a)}setOnClickHandler(t){const{items:a}=this;if(!a.length)throw new Error(`${ti} can only set click handlers after calling tsParticles.load()`);a.forEach(o=>o.addClickHandler(t))}}function FE(){const n=new KE;return n.init(),n}class zi{constructor(t){this.type=Xs.external,this.container=t}}class lf{constructor(t){this.type=Xs.particles,this.container=t}}var bi;(function(n){n.clockwise="clockwise",n.counterClockwise="counter-clockwise",n.random="random"})(bi||(bi={}));var Yg;(function(n){n.linear="linear",n.radial="radial",n.random="random"})(Yg||(Yg={}));var ns;(function(n){n.easeInBack="ease-in-back",n.easeInCirc="ease-in-circ",n.easeInCubic="ease-in-cubic",n.easeInLinear="ease-in-linear",n.easeInQuad="ease-in-quad",n.easeInQuart="ease-in-quart",n.easeInQuint="ease-in-quint",n.easeInExpo="ease-in-expo",n.easeInSine="ease-in-sine",n.easeOutBack="ease-out-back",n.easeOutCirc="ease-out-circ",n.easeOutCubic="ease-out-cubic",n.easeOutLinear="ease-out-linear",n.easeOutQuad="ease-out-quad",n.easeOutQuart="ease-out-quart",n.easeOutQuint="ease-out-quint",n.easeOutExpo="ease-out-expo",n.easeOutSine="ease-out-sine",n.easeInOutBack="ease-in-out-back",n.easeInOutCirc="ease-in-out-circ",n.easeInOutCubic="ease-in-out-cubic",n.easeInOutLinear="ease-in-out-linear",n.easeInOutQuad="ease-in-out-quad",n.easeInOutQuart="ease-in-out-quart",n.easeInOutQuint="ease-in-out-quint",n.easeInOutExpo="ease-in-out-expo",n.easeInOutSine="ease-in-out-sine"})(ns||(ns={}));const rf=FE();ts()||(window.tsParticles=rf);const JE=n=>{const t=n.id??"tsparticles";return F.useEffect(()=>{let a;return rf.load({id:t,url:n.url,options:n.options}).then(o=>{var r;a=o,(r=n.particlesLoaded)==null||r.call(n,o)}),()=>{a?.destroy()}},[t,n,n.url,n.options]),_i.jsx("div",{id:t,className:n.className})};async function $E(n){await n(rf)}const uf=.5,IE=2,yn=0,Si=1,Gg=60,Xg=0,WE=.01,tA=Math.PI*IE;function eA(n){const t=n.initialPosition,{dx:a,dy:o}=Te(t,n.position),r=Math.abs(a),u=Math.abs(o),{maxDistance:c}=n.retina,d=c.horizontal,m=c.vertical;if(!d&&!m)return;const p=(d&&r>=d)??!1,y=(m&&u>=m)??!1;if((p||y)&&!n.misplaced)n.misplaced=!!d&&r>d||!!m&&u>m,d&&(n.velocity.x=n.velocity.y*uf-n.velocity.x),m&&(n.velocity.y=n.velocity.x*uf-n.velocity.y);else if((!d||r<d)&&(!m||u<m)&&n.misplaced)n.misplaced=!1;else if(n.misplaced){const v=n.position,S=n.velocity;d&&(v.x<t.x&&S.x<yn||v.x>t.x&&S.x>yn)&&(S.x*=-Ct()),m&&(v.y<t.y&&S.y<yn||v.y>t.y&&S.y>yn)&&(S.y*=-Ct())}}function iA(n,t,a,o,r,u,c){sA(n,c);const d=n.gravity,m=d?.enable&&d.inverse?-Si:Si;r&&a&&(n.velocity.x+=r*c.factor/(Gg*a)),d?.enable&&a&&(n.velocity.y+=m*(d.acceleration*c.factor)/(Gg*a));const p=n.moveDecay;n.velocity.multTo(p);const y=n.velocity.mult(a);d?.enable&&o>yn&&(!d.inverse&&y.y>=yn&&y.y>=o||d.inverse&&y.y<=yn&&y.y<=-o)&&(y.y=m*o,a&&(n.velocity.y=y.y/a));const v=n.options.zIndex,S=(Si-n.zIndexFactor)**v.velocityRate;y.multTo(S),y.multTo(u);const{position:x}=n;x.addTo(y),t.vibrate&&(x.x+=Math.sin(x.x*Math.cos(x.y))*u,x.y+=Math.cos(x.y*Math.sin(x.x))*u)}function nA(n,t,a){const o=n.container;if(!n.spin)return;const r=n.spin.direction===bi.clockwise,u={x:r?Math.cos:Math.sin,y:r?Math.sin:Math.cos};n.position.x=n.spin.center.x+n.spin.radius*u.x(n.spin.angle)*a,n.position.y=n.spin.center.y+n.spin.radius*u.y(n.spin.angle)*a,n.spin.radius+=n.spin.acceleration*a;const c=Math.max(o.canvas.size.width,o.canvas.size.height),d=c*uf;n.spin.radius>d?(n.spin.radius=d,n.spin.acceleration*=-Si):n.spin.radius<Xg&&(n.spin.radius=Xg,n.spin.acceleration*=-Si),n.spin.angle+=t*WE*(Si-n.spin.radius/c)}function sA(n,t){const a=n.options,o=a.move.path;if(!o.enable)return;if(n.lastPathTime<=n.pathDelay){n.lastPathTime+=t.value;return}const u=n.pathGenerator?.generate(n,t);u&&n.velocity.addTo(u),o.clamp&&(n.velocity.x=ei(n.velocity.x,-Si,Si),n.velocity.y=ei(n.velocity.y,-Si,Si)),n.lastPathTime-=n.pathDelay}function aA(n){return n.slow.inRange?n.slow.factor:Si}function oA(n){const t=n.container,a=n.options,o=a.move.spin;if(!o.enable)return;const r=o.position??{x:50,y:50},u=.01,c={x:r.x*u*t.canvas.size.width,y:r.y*u*t.canvas.size.height},d=n.getPosition(),m=Ne(d,c),p=et(o.acceleration);n.retina.spinAcceleration=p*t.retina.pixelRatio,n.spin={center:c,direction:n.velocity.x>=yn?bi.clockwise:bi.counterClockwise,angle:Ct()*tA,radius:m,acceleration:n.retina.spinAcceleration}}const lA=2,rA=1,uA=1;class cA{init(t){const a=t.options,o=a.move.gravity;t.gravity={enable:o.enable,acceleration:et(o.acceleration),inverse:o.inverse},oA(t)}isEnabled(t){return!t.destroyed&&t.options.move.enable}move(t,a){const o=t.options,r=o.move;if(!r.enable)return;const u=t.container,c=u.retina.pixelRatio;t.retina.moveSpeed??=et(r.speed)*c,t.retina.moveDrift??=et(t.options.move.drift)*c;const d=aA(t),m=u.retina.reduceFactor,p=t.retina.moveSpeed,y=t.retina.moveDrift,v=Di(o.size.value)*c,S=r.size?t.getRadius()/v:rA,x=a.factor||uA,w=p*S*d*x/lA,C=t.retina.maxSpeed??u.retina.maxSpeed;r.spin.enable?nA(t,w,m):iA(t,r,w,C,y,m,a),eA(t)}}async function fA(n,t=!0){n.checkVersion("3.9.1"),await n.addMover("base",()=>Promise.resolve(new cA),t)}const hA=2,dA=Math.PI*hA,mA=0,Qg={x:0,y:0};function pA(n){const{context:t,particle:a,radius:o}=n;a.circleRange||(a.circleRange={min:mA,max:dA});const r=a.circleRange;t.arc(Qg.x,Qg.y,o,r.min,r.max,!1)}const yA=12,gA=360,Zg=0;class vA{constructor(){this.validTypes=["circle"]}draw(t){pA(t)}getSidesCount(){return yA}particleInit(t,a){const o=a.shapeData,r=o?.angle??{max:gA,min:Zg};a.circleRange=Ns(r)?{min:mn(r.min),max:mn(r.max)}:{min:Zg,max:mn(r)}}}async function bA(n,t=!0){n.checkVersion("3.9.1"),await n.addShape(new vA,t)}class SA{constructor(t,a){this._container=t,this._engine=a}init(t){const a=io(this._engine,t.options.color,t.id,t.options.reduceDuplicates);a&&(t.color=Dg(a,t.options.color.animation,this._container.retina.reduceFactor))}isEnabled(t){const{h:a,s:o,l:r}=t.options.color.animation,{color:u}=t;return!t.destroyed&&!t.spawning&&(u?.h.value!==void 0&&a.enable||u?.s.value!==void 0&&o.enable||u?.l.value!==void 0&&r.enable)}update(t,a){zg(t.color,a)}}async function xA(n,t=!0){n.checkVersion("3.9.1"),await n.addParticleUpdater("color",a=>Promise.resolve(new SA(a,n)),t)}var ss;(function(n){n[n.r=1]="r",n[n.g=2]="g",n[n.b=3]="b",n[n.a=4]="a"})(ss||(ss={}));const TA=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,wA=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,Rl=16,MA=1,_A=255;class CA{constructor(){this.key="hex",this.stringPrefix="#"}handleColor(t){return this._parseString(t.value)}handleRangeColor(t){return this._parseString(t.value)}parseString(t){return this._parseString(t)}_parseString(t){if(typeof t!="string"||!t?.startsWith(this.stringPrefix))return;const a=t.replace(TA,(r,u,c,d,m)=>u+u+c+c+d+d+(m!==void 0?m+m:"")),o=wA.exec(a);return o?{a:o[ss.a]!==void 0?parseInt(o[ss.a],Rl)/_A:MA,b:parseInt(o[ss.b],Rl),g:parseInt(o[ss.g],Rl),r:parseInt(o[ss.r],Rl)}:void 0}}async function EA(n,t=!0){n.checkVersion("3.9.1"),await n.addColorManager(new CA,t)}var Ks;(function(n){n[n.h=1]="h",n[n.s=2]="s",n[n.l=3]="l",n[n.a=5]="a"})(Ks||(Ks={}));class AA{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){const a=t.value,o=a.hsl??t.value;if(o.h!==void 0&&o.s!==void 0&&o.l!==void 0)return js(o)}handleRangeColor(t){const a=t.value,o=a.hsl??t.value;if(o.h!==void 0&&o.l!==void 0)return js({h:et(o.h),l:et(o.l),s:et(o.s)})}parseString(t){if(!t.startsWith("hsl"))return;const a=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i,o=a.exec(t),r=4,u=1,c=10;return o?BC({a:o.length>r?pg(o[Ks.a]):u,h:parseInt(o[Ks.h],c),l:parseInt(o[Ks.l],c),s:parseInt(o[Ks.s],c)}):void 0}}async function DA(n,t=!0){n.checkVersion("3.9.1"),await n.addColorManager(new AA,t)}class zA{constructor(t){this.container=t}init(t){const a=t.options.opacity,o=1;t.opacity=Tg(a,o);const r=a.animation;r.enable&&(t.opacity.velocity=et(r.speed)/fn*this.container.retina.reduceFactor,r.sync||(t.opacity.velocity*=Ct()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,a){!this.isEnabled(t)||!t.opacity||Fc(t,t.opacity,!0,t.options.opacity.animation.destroy,a)}}async function OA(n,t=!0){n.checkVersion("3.9.1"),await n.addParticleUpdater("opacity",a=>Promise.resolve(new zA(a)),t)}const Vl=0,Fs=0;function RA(n){if(n.outMode!==Kt.bounce&&n.outMode!==Kt.split||n.direction!==ht.left&&n.direction!==ht.right)return;n.bounds.right<Fs&&n.direction===ht.left?n.particle.position.x=n.size+n.offset.x:n.bounds.left>n.canvasSize.width&&n.direction===ht.right&&(n.particle.position.x=n.canvasSize.width-n.size-n.offset.x);const t=n.particle.velocity.x;let a=!1;if(n.direction===ht.right&&n.bounds.right>=n.canvasSize.width&&t>Vl||n.direction===ht.left&&n.bounds.left<=Fs&&t<Vl){const r=et(n.particle.options.bounce.horizontal.value);n.particle.velocity.x*=-r,a=!0}if(!a)return;const o=n.offset.x+n.size;n.bounds.right>=n.canvasSize.width&&n.direction===ht.right?n.particle.position.x=n.canvasSize.width-o:n.bounds.left<=Fs&&n.direction===ht.left&&(n.particle.position.x=o),n.outMode===Kt.split&&n.particle.destroy()}function VA(n){if(n.outMode!==Kt.bounce&&n.outMode!==Kt.split||n.direction!==ht.bottom&&n.direction!==ht.top)return;n.bounds.bottom<Fs&&n.direction===ht.top?n.particle.position.y=n.size+n.offset.y:n.bounds.top>n.canvasSize.height&&n.direction===ht.bottom&&(n.particle.position.y=n.canvasSize.height-n.size-n.offset.y);const t=n.particle.velocity.y;let a=!1;if(n.direction===ht.bottom&&n.bounds.bottom>=n.canvasSize.height&&t>Vl||n.direction===ht.top&&n.bounds.top<=Fs&&t<Vl){const r=et(n.particle.options.bounce.vertical.value);n.particle.velocity.y*=-r,a=!0}if(!a)return;const o=n.offset.y+n.size;n.bounds.bottom>=n.canvasSize.height&&n.direction===ht.bottom?n.particle.position.y=n.canvasSize.height-o:n.bounds.top<=Fs&&n.direction===ht.top&&(n.particle.position.y=o),n.outMode===Kt.split&&n.particle.destroy()}class BA{constructor(t){this.container=t,this.modes=[Kt.bounce,Kt.split]}update(t,a,o,r){if(!this.modes.includes(r))return;const u=this.container;let c=!1;for(const S of u.plugins.values())if(S.particleBounce!==void 0&&(c=S.particleBounce(t,o,a)),c)break;if(c)return;const d=t.getPosition(),m=t.offset,p=t.getRadius(),y=eo(d,p),v=u.canvas.size;RA({particle:t,outMode:r,direction:a,bounds:y,canvasSize:v,offset:m,size:p}),VA({particle:t,outMode:r,direction:a,bounds:y,canvasSize:v,offset:m,size:p})}}const Bl=0;class LA{constructor(t){this.container=t,this.modes=[Kt.destroy]}update(t,a,o,r){if(!this.modes.includes(r))return;const u=this.container;switch(t.outType){case gi.normal:case gi.outside:if(Xc(t.position,u.canvas.size,ie.origin,t.getRadius(),a))return;break;case gi.inside:{const{dx:c,dy:d}=Te(t.position,t.moveCenter),{x:m,y:p}=t.velocity;if(m<Bl&&c>t.moveCenter.radius||p<Bl&&d>t.moveCenter.radius||m>=Bl&&c<-t.moveCenter.radius||p>=Bl&&d<-t.moveCenter.radius)return;break}}u.particles.remove(t,t.group,!0)}}const Ll=0;class kA{constructor(t){this.container=t,this.modes=[Kt.none]}update(t,a,o,r){if(!this.modes.includes(r)||((t.options.move.distance.horizontal&&(a===ht.left||a===ht.right))??(t.options.move.distance.vertical&&(a===ht.top||a===ht.bottom))))return;const u=t.options.move.gravity,c=this.container,d=c.canvas.size,m=t.getRadius();if(u.enable){const p=t.position;(!u.inverse&&p.y>d.height+m&&a===ht.bottom||u.inverse&&p.y<-m&&a===ht.top)&&c.particles.remove(t)}else{if(t.velocity.y>Ll&&t.position.y<=d.height+m||t.velocity.y<Ll&&t.position.y>=-m||t.velocity.x>Ll&&t.position.x<=d.width+m||t.velocity.x<Ll&&t.position.x>=-m)return;Xc(t.position,c.canvas.size,ie.origin,m,a)||c.particles.remove(t)}}}const kl=0,Ul=0;class UA{constructor(t){this.container=t,this.modes=[Kt.out]}update(t,a,o,r){if(!this.modes.includes(r))return;const u=this.container;switch(t.outType){case gi.inside:{const{x:c,y:d}=t.velocity,m=ie.origin;m.length=t.moveCenter.radius,m.angle=t.velocity.angle+Math.PI,m.addTo(ie.create(t.moveCenter));const{dx:p,dy:y}=Te(t.position,m);if(c<=kl&&p>=Ul||d<=kl&&y>=Ul||c>=kl&&p<=Ul||d>=kl&&y<=Ul)return;t.position.x=Math.floor(Ue({min:0,max:u.canvas.size.width})),t.position.y=Math.floor(Ue({min:0,max:u.canvas.size.height}));const{dx:v,dy:S}=Te(t.position,t.moveCenter);t.direction=Math.atan2(-S,-v),t.velocity.angle=t.direction;break}default:{if(Xc(t.position,u.canvas.size,ie.origin,t.getRadius(),a))return;switch(t.outType){case gi.outside:{t.position.x=Math.floor(Ue({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor(Ue({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;const{dx:c,dy:d}=Te(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(d,c),t.velocity.angle=t.direction);break}case gi.normal:{const c=t.options.move.warp,d=u.canvas.size,m={bottom:d.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:d.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},p=t.getRadius(),y=eo(t.position,p);a===ht.right&&y.left>d.width+t.offset.x?(t.position.x=m.left,t.initialPosition.x=t.position.x,c||(t.position.y=Ct()*d.height,t.initialPosition.y=t.position.y)):a===ht.left&&y.right<-t.offset.x&&(t.position.x=m.right,t.initialPosition.x=t.position.x,c||(t.position.y=Ct()*d.height,t.initialPosition.y=t.position.y)),a===ht.bottom&&y.top>d.height+t.offset.y?(c||(t.position.x=Ct()*d.width,t.initialPosition.x=t.position.x),t.position.y=m.top,t.initialPosition.y=t.position.y):a===ht.top&&y.bottom<-t.offset.y&&(c||(t.position.x=Ct()*d.width,t.initialPosition.x=t.position.x),t.position.y=m.bottom,t.initialPosition.y=t.position.y);break}}break}}}}const NA=(n,t)=>n.default===t||n.bottom===t||n.left===t||n.right===t||n.top===t;class HA{constructor(t){this._addUpdaterIfMissing=(a,o,r)=>{const u=a.options.move.outModes;!this.updaters.has(o)&&NA(u,o)&&this.updaters.set(o,r(this.container))},this._updateOutMode=(a,o,r,u)=>{for(const c of this.updaters.values())c.update(a,u,o,r)},this.container=t,this.updaters=new Map}init(t){this._addUpdaterIfMissing(t,Kt.bounce,a=>new BA(a)),this._addUpdaterIfMissing(t,Kt.out,a=>new UA(a)),this._addUpdaterIfMissing(t,Kt.destroy,a=>new LA(a)),this._addUpdaterIfMissing(t,Kt.none,a=>new kA(a))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,a){const o=t.options.move.outModes;this._updateOutMode(t,a,o.bottom??o.default,ht.bottom),this._updateOutMode(t,a,o.left??o.default,ht.left),this._updateOutMode(t,a,o.right??o.default,ht.right),this._updateOutMode(t,a,o.top??o.default,ht.top)}}async function qA(n,t=!0){n.checkVersion("3.9.1"),await n.addParticleUpdater("outModes",a=>Promise.resolve(new HA(a)),t)}var Js;(function(n){n[n.r=1]="r",n[n.g=2]="g",n[n.b=3]="b",n[n.a=5]="a"})(Js||(Js={}));class jA{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){const a=t.value,o=a.rgb??t.value;if(o.r!==void 0)return o}handleRangeColor(t){const a=t.value,o=a.rgb??t.value;if(o.r!==void 0)return{r:et(o.r),g:et(o.g),b:et(o.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;const a=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i,o=a.exec(t),r=10;return o?{a:o.length>4?pg(o[Js.a]):1,b:parseInt(o[Js.b],r),g:parseInt(o[Js.g],r),r:parseInt(o[Js.r],r)}:void 0}}async function PA(n,t=!0){n.checkVersion("3.9.1"),await n.addColorManager(new jA,t)}const as=0;class YA{init(t){const a=t.container,o=t.options.size,r=o.animation;r.enable&&(t.size.velocity=(t.retina.sizeAnimationSpeed??a.retina.sizeAnimationSpeed)/fn*a.retina.reduceFactor,r.sync||(t.size.velocity*=Ct()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??as)<=as||(t.size.maxLoops??as)>as&&(t.size.loops??as)<(t.size.maxLoops??as))}reset(t){t.size.loops=as}update(t,a){this.isEnabled(t)&&Fc(t,t.size,!0,t.options.size.animation.destroy,a)}}async function GA(n,t=!0){n.checkVersion("3.9.1"),await n.addParticleUpdater("size",()=>Promise.resolve(new YA),t)}async function XA(n,t=!0){n.checkVersion("3.9.1"),await EA(n,!1),await DA(n,!1),await PA(n,!1),await fA(n,!1),await bA(n,!1),await xA(n,!1),await OA(n,!1),await qA(n,!1),await GA(n,!1),await n.refresh(t)}async function QA(n,t=!0){n.checkVersion("3.9.1"),await n.addEasing(ns.easeInQuad,a=>a**2,!1),await n.addEasing(ns.easeOutQuad,a=>1-(1-a)**2,!1),await n.addEasing(ns.easeInOutQuad,a=>a<.5?2*a**2:1-(-2*a+2)**2/2,!1),await n.refresh(t)}function ZA(n,t){const{context:a,opacity:o}=n,r=.5,u=a.globalAlpha;if(!t)return;const c=t.width,d=c*r;a.globalAlpha=o,a.drawImage(t,-d,-d,c,c),a.globalAlpha=u}const cf='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"',Kg=0;class KA{constructor(){this.validTypes=["emoji"],this._emojiShapeDict=new Map}destroy(){for(const[t,a]of this._emojiShapeDict)a instanceof ImageBitmap&&a?.close(),this._emojiShapeDict.delete(t)}draw(t){const a=t.particle.emojiDataKey;if(!a)return;const o=this._emojiShapeDict.get(a);o&&ZA(t,o)}async init(t){const a=t.actualOptions,{validTypes:o}=this;if(!o.find(c=>Pt(c,a.particles.shape.type)))return;const r=[vg(cf)],u=o.map(c=>a.particles.shape.options[c]).find(c=>!!c);u&&He(u,c=>{c.font&&r.push(vg(c.font))}),await Promise.all(r)}particleDestroy(t){t.emojiDataKey=void 0}particleInit(t,a){const r=a.shapeData;if(!r?.value)return;const u=ii(r.value,a.randomIndexData);if(!u)return;const c=typeof u=="string"?{font:r.font??cf,padding:r.padding??Kg,value:u}:{font:cf,padding:Kg,...r,...u},d=c.font,m=c.value,p=`${m}_${d}`;if(this._emojiShapeDict.has(p)){a.emojiDataKey=p;return}const y=c.padding*2,v=Di(a.size.value),S=v+y,x=S*2;let w;if(typeof OffscreenCanvas<"u"){const C=new OffscreenCanvas(x,x),A=C.getContext("2d");if(!A)return;A.font=`400 ${v*2}px ${d}`,A.textBaseline="middle",A.textAlign="center",A.fillText(m,S,S),w=C.transferToImageBitmap()}else{const C=document.createElement("canvas");C.width=x,C.height=x;const A=C.getContext("2d");if(!A)return;A.font=`400 ${v*2}px ${d}`,A.textBaseline="middle",A.textAlign="center",A.fillText(m,S,S),w=C}this._emojiShapeDict.set(p,w),a.emojiDataKey=p}}async function FA(n,t=!0){n.checkVersion("3.9.1"),await n.addShape(new KA,t)}const JA=1,$A=1,Fg=0;function Jg(n,t,a,o,r,u){const c=t.actualOptions.interactivity.modes.attract;if(!c)return;const d=t.particles.quadTree.query(r,u);for(const m of d){const{dx:p,dy:y,distance:v}=Te(m.position,a),S=c.speed*c.factor,x=ei(n.getEasing(c.easing)($A-v/o)*S,JA,c.maxSpeed),w=ie.create(v?p/v*x:S,v?y/v*x:S);m.position.subFrom(w)}}function IA(n,t,a){t.attract||(t.attract={particles:[]});const{attract:o}=t;if(o.finish||(o.count||(o.count=0),o.count++,o.count===t.particles.count&&(o.finish=!0)),o.clicking){const r=t.interactivity.mouse.clickPosition,u=t.retina.attractModeDistance;if(!u||u<Fg||!r)return;Jg(n,t,r,u,new be(r.x,r.y,u),c=>a(c))}else o.clicking===!1&&(o.particles=[])}function WA(n,t,a){const o=t.interactivity.mouse.position,r=t.retina.attractModeDistance;!r||r<Fg||!o||Jg(n,t,o,r,new be(o.x,o.y,r),u=>a(u))}class tD{constructor(){this.distance=200,this.duration=.4,this.easing=ns.easeOutQuad,this.factor=1,this.maxSpeed=50,this.speed=1}load(t){X(t)||(t.distance!==void 0&&(this.distance=t.distance),t.duration!==void 0&&(this.duration=t.duration),t.easing!==void 0&&(this.easing=t.easing),t.factor!==void 0&&(this.factor=t.factor),t.maxSpeed!==void 0&&(this.maxSpeed=t.maxSpeed),t.speed!==void 0&&(this.speed=t.speed))}}const lo="attract";let eD=class extends zi{constructor(t,a){super(a),this._engine=t,a.attract||(a.attract={particles:[]}),this.handleClickMode=o=>{const r=this.container.actualOptions,u=r.interactivity.modes.attract;if(!(!u||o!==lo)){a.attract||(a.attract={particles:[]}),a.attract.clicking=!0,a.attract.count=0;for(const c of a.attract.particles)this.isEnabled(c)&&c.velocity.setTo(c.initialVelocity);a.attract.particles=[],a.attract.finish=!1,setTimeout(()=>{a.destroyed||(a.attract||(a.attract={particles:[]}),a.attract.clicking=!1)},u.duration*me)}}}clear(){}init(){const t=this.container,a=t.actualOptions.interactivity.modes.attract;a&&(t.retina.attractModeDistance=a.distance*t.retina.pixelRatio)}interact(){const t=this.container,a=t.actualOptions,o=t.interactivity.status===Kn,r=a.interactivity.events,{enable:u,mode:c}=r.onHover,{enable:d,mode:m}=r.onClick;o&&u&&Pt(lo,c)?WA(this._engine,this.container,p=>this.isEnabled(p)):d&&Pt(lo,m)&&IA(this._engine,this.container,p=>this.isEnabled(p))}isEnabled(t){const a=this.container,o=a.actualOptions,r=a.interactivity.mouse,u=(t?.interactivity??o.interactivity).events;if((!r.position||!u.onHover.enable)&&(!r.clickPosition||!u.onClick.enable))return!1;const c=u.onHover.mode,d=u.onClick.mode;return Pt(lo,c)||Pt(lo,d)}loadModeOptions(t,...a){t.attract||(t.attract=new tD);for(const o of a)t.attract.load(o?.attract)}reset(){}};async function iD(n,t=!0){n.checkVersion("3.9.1"),await n.addInteractor("externalAttract",a=>Promise.resolve(new eD(n,a)),t)}const nD=2,Nl=.5,sD=Math.PI*Nl,$g=2,Ig=10,aD=0;function Wg(n,t,a,o,r){const u=n.particles.quadTree.query(o,r);for(const c of u)o instanceof be?Sg(Kc(c),{position:t,mass:a**nD*sD,velocity:ie.origin,factor:ie.origin}):o instanceof vi&&CC(c,eo(t,a))}function oD(n,t,a,o){const r=document.querySelectorAll(t);r.length&&r.forEach(u=>{const c=u,d=n.retina.pixelRatio,m={x:(c.offsetLeft+c.offsetWidth*Nl)*d,y:(c.offsetTop+c.offsetHeight*Nl)*d},p=c.offsetWidth*Nl*d,y=Ig*d,v=a.type===Ys.circle?new be(m.x,m.y,p+y):new vi(c.offsetLeft*d-y,c.offsetTop*d-y,c.offsetWidth*d+y*$g,c.offsetHeight*d+y*$g);o(m,p,v)})}function lD(n,t,a,o){Zc(a,t,(r,u)=>oD(n,r,u,(c,d,m)=>Wg(n,c,d,m,o)))}function rD(n,t){const a=n.retina.pixelRatio,o=Ig*a,r=n.interactivity.mouse.position,u=n.retina.bounceModeDistance;!u||u<aD||!r||Wg(n,r,u,new be(r.x,r.y,u+o),t)}class uD{constructor(){this.distance=200}load(t){X(t)||t.distance!==void 0&&(this.distance=t.distance)}}const Hl="bounce";class cD extends zi{constructor(t){super(t)}clear(){}init(){const t=this.container,a=t.actualOptions.interactivity.modes.bounce;a&&(t.retina.bounceModeDistance=a.distance*t.retina.pixelRatio)}interact(){const t=this.container,a=t.actualOptions,o=a.interactivity.events,r=t.interactivity.status===Kn,u=o.onHover.enable,c=o.onHover.mode,d=o.onDiv;r&&u&&Pt(Hl,c)?rD(this.container,m=>this.isEnabled(m)):lD(this.container,d,Hl,m=>this.isEnabled(m))}isEnabled(t){const a=this.container,o=a.actualOptions,r=a.interactivity.mouse,u=(t?.interactivity??o.interactivity).events,c=u.onDiv;return!!r.position&&u.onHover.enable&&Pt(Hl,u.onHover.mode)||Qc(Hl,c)}loadModeOptions(t,...a){t.bounce||(t.bounce=new uD);for(const o of a)t.bounce.load(o?.bounce)}reset(){}}async function fD(n,t=!0){n.checkVersion("3.9.1"),await n.addInteractor("externalBounce",a=>Promise.resolve(new cD(a)),t)}class tv{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(t){if(!X(t)){if(t.distance!==void 0&&(this.distance=t.distance),t.duration!==void 0&&(this.duration=t.duration),t.mix!==void 0&&(this.mix=t.mix),t.opacity!==void 0&&(this.opacity=t.opacity),t.color!==void 0){const a=Ai(this.color)?void 0:this.color;this.color=He(t.color,o=>ve.create(a,o))}t.size!==void 0&&(this.size=t.size)}}}class hD extends tv{constructor(){super(),this.selectors=[]}load(t){super.load(t),!X(t)&&t.selectors!==void 0&&(this.selectors=t.selectors)}}class dD extends tv{load(t){super.load(t),!X(t)&&(this.divs=He(t.divs,a=>{const o=new hD;return o.load(a),o}))}}var Oi;(function(n){n.color="color",n.opacity="opacity",n.size="size"})(Oi||(Oi={}));function ev(n,t,a,o){if(t>=a){const r=n+(t-a)*o;return ei(r,n,t)}else if(t<a){const r=n-(a-t)*o;return ei(r,t,n)}}const os="bubble",ff=0,mD=0,pD=2,iv=1,nv=1,yD=0,gD=0,hf=.5,df=1;class vD extends zi{constructor(t,a){super(t),this._clickBubble=()=>{const o=this.container,r=o.actualOptions,u=o.interactivity.mouse.clickPosition,c=r.interactivity.modes.bubble;if(!c||!u)return;o.bubble||(o.bubble={});const d=o.retina.bubbleModeDistance;if(!d||d<ff)return;const m=o.particles.quadTree.queryCircle(u,d,y=>this.isEnabled(y)),{bubble:p}=o;for(const y of m){if(!p.clicking)continue;y.bubble.inRange=!p.durationEnd;const v=y.getPosition(),S=Ne(v,u),x=(new Date().getTime()-(o.interactivity.mouse.clickTime??mD))/me;x>c.duration&&(p.durationEnd=!0),x>c.duration*pD&&(p.clicking=!1,p.durationEnd=!1);const w={bubbleObj:{optValue:o.retina.bubbleModeSize,value:y.bubble.radius},particlesObj:{optValue:Di(y.options.size.value)*o.retina.pixelRatio,value:y.size.value},type:Oi.size};this._process(y,S,x,w);const C={bubbleObj:{optValue:c.opacity,value:y.bubble.opacity},particlesObj:{optValue:Di(y.options.opacity.value),value:y.opacity?.value??iv},type:Oi.opacity};this._process(y,S,x,C),!p.durationEnd&&S<=d?this._hoverBubbleColor(y,S):delete y.bubble.color}},this._hoverBubble=()=>{const o=this.container,r=o.interactivity.mouse.position,u=o.retina.bubbleModeDistance;if(!u||u<ff||!r)return;const c=o.particles.quadTree.queryCircle(r,u,d=>this.isEnabled(d));for(const d of c){d.bubble.inRange=!0;const m=d.getPosition(),p=Ne(m,r),y=nv-p/u;p<=u?y>=gD&&o.interactivity.status===Kn&&(this._hoverBubbleSize(d,y),this._hoverBubbleOpacity(d,y),this._hoverBubbleColor(d,y)):this.reset(d),o.interactivity.status===Vc&&this.reset(d)}},this._hoverBubbleColor=(o,r,u)=>{const c=this.container.actualOptions,d=u??c.interactivity.modes.bubble;if(d){if(!o.bubble.finalColor){const m=d.color;if(!m)return;const p=ii(m);o.bubble.finalColor=io(this._engine,p)}if(o.bubble.finalColor)if(d.mix){o.bubble.color=void 0;const m=o.getFillColor();o.bubble.color=m?_g($c(m,o.bubble.finalColor,nv-r,r)):o.bubble.finalColor}else o.bubble.color=o.bubble.finalColor}},this._hoverBubbleOpacity=(o,r,u)=>{const c=this.container,d=c.actualOptions,m=u?.opacity??d.interactivity.modes.bubble?.opacity;if(!m)return;const p=o.options.opacity.value,y=o.opacity?.value??iv,v=ev(y,m,Di(p),r);v!==void 0&&(o.bubble.opacity=v)},this._hoverBubbleSize=(o,r,u)=>{const c=this.container,d=u?.size?u.size*c.retina.pixelRatio:c.retina.bubbleModeSize;if(d===void 0)return;const m=Di(o.options.size.value)*c.retina.pixelRatio,p=o.size.value,y=ev(p,d,m,r);y!==void 0&&(o.bubble.radius=y)},this._process=(o,r,u,c)=>{const d=this.container,m=c.bubbleObj.optValue,p=d.actualOptions,y=p.interactivity.modes.bubble;if(!y||m===void 0)return;const v=y.duration,S=d.retina.bubbleModeDistance,x=c.particlesObj.optValue,w=c.bubbleObj.value,C=c.particlesObj.value??yD,A=c.type;if(!(!S||S<ff||m===x))if(d.bubble||(d.bubble={}),d.bubble.durationEnd)w&&(A===Oi.size&&delete o.bubble.radius,A===Oi.opacity&&delete o.bubble.opacity);else if(r<=S){if((w??C)!==m){const L=C-u*(C-m)/v;A===Oi.size&&(o.bubble.radius=L),A===Oi.opacity&&(o.bubble.opacity=L)}}else A===Oi.size&&delete o.bubble.radius,A===Oi.opacity&&delete o.bubble.opacity},this._singleSelectorHover=(o,r,u)=>{const c=this.container,d=document.querySelectorAll(r),m=c.actualOptions.interactivity.modes.bubble;!m||!d.length||d.forEach(p=>{const y=p,v=c.retina.pixelRatio,S={x:(y.offsetLeft+y.offsetWidth*hf)*v,y:(y.offsetTop+y.offsetHeight*hf)*v},x=y.offsetWidth*hf*v,w=u.type===Ys.circle?new be(S.x,S.y,x):new vi(y.offsetLeft*v,y.offsetTop*v,y.offsetWidth*v,y.offsetHeight*v),C=c.particles.quadTree.query(w,A=>this.isEnabled(A));for(const A of C){if(!w.contains(A.getPosition()))continue;A.bubble.inRange=!0;const R=m.divs,L=bg(R,y);(!A.bubble.div||A.bubble.div!==y)&&(this.clear(A,o,!0),A.bubble.div=y),this._hoverBubbleSize(A,df,L),this._hoverBubbleOpacity(A,df,L),this._hoverBubbleColor(A,df,L)}})},this._engine=a,t.bubble||(t.bubble={}),this.handleClickMode=o=>{o===os&&(t.bubble||(t.bubble={}),t.bubble.clicking=!0)}}clear(t,a,o){t.bubble.inRange&&!o||(delete t.bubble.div,delete t.bubble.opacity,delete t.bubble.radius,delete t.bubble.color)}init(){const t=this.container,a=t.actualOptions.interactivity.modes.bubble;a&&(t.retina.bubbleModeDistance=a.distance*t.retina.pixelRatio,a.size!==void 0&&(t.retina.bubbleModeSize=a.size*t.retina.pixelRatio))}interact(t){const a=this.container.actualOptions,o=a.interactivity.events,r=o.onHover,u=o.onClick,c=r.enable,d=r.mode,m=u.enable,p=u.mode,y=o.onDiv;c&&Pt(os,d)?this._hoverBubble():m&&Pt(os,p)?this._clickBubble():Zc(os,y,(v,S)=>this._singleSelectorHover(t,v,S))}isEnabled(t){const a=this.container,o=a.actualOptions,r=a.interactivity.mouse,u=(t?.interactivity??o.interactivity).events,{onClick:c,onDiv:d,onHover:m}=u,p=Qc(os,d);return p||m.enable&&r.position||c.enable&&r.clickPosition?Pt(os,m.mode)||Pt(os,c.mode)||p:!1}loadModeOptions(t,...a){t.bubble||(t.bubble=new dD);for(const o of a)t.bubble.load(o?.bubble)}reset(t){t.bubble.inRange=!1}}async function bD(n,t=!0){n.checkVersion("3.9.1"),await n.addInteractor("externalBubble",a=>Promise.resolve(new vD(a,n)),t)}class SD{constructor(){this.opacity=.5}load(t){X(t)||t.opacity!==void 0&&(this.opacity=t.opacity)}}class xD{constructor(){this.distance=80,this.links=new SD,this.radius=60}load(t){X(t)||(t.distance!==void 0&&(this.distance=t.distance),this.links.load(t.links),t.radius!==void 0&&(this.radius=t.radius))}}const sv=0,av=1,TD=0;function wD(n,t,a,o){const r=Math.floor(a.getRadius()/t.getRadius()),u=t.getFillColor(),c=a.getFillColor();if(!u||!c)return;const d=t.getPosition(),m=a.getPosition(),p=$c(u,c,t.getRadius(),a.getRadius()),y=n.createLinearGradient(d.x,d.y,m.x,m.y);return y.addColorStop(sv,no(u,o)),y.addColorStop(ei(r,sv,av),Hi(p,o)),y.addColorStop(av,no(c,o)),y}function MD(n,t,a,o,r){so(n,o,r),n.lineWidth=t,n.strokeStyle=a,n.stroke()}function _D(n,t,a,o){const r=n.actualOptions,u=r.interactivity.modes.connect;if(u)return wD(t,a,o,u.links.opacity)}function CD(n,t,a){n.canvas.draw(o=>{const r=_D(n,o,t,a);if(!r)return;const u=t.getPosition(),c=a.getPosition();MD(o,t.retina.linksWidth??TD,r,u,c)})}const ED="connect",ov=0;class AD extends zi{constructor(t){super(t)}clear(){}init(){const t=this.container,a=t.actualOptions.interactivity.modes.connect;a&&(t.retina.connectModeDistance=a.distance*t.retina.pixelRatio,t.retina.connectModeRadius=a.radius*t.retina.pixelRatio)}interact(){const t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&t.interactivity.status==="pointermove"){const o=t.interactivity.mouse.position,{connectModeDistance:r,connectModeRadius:u}=t.retina;if(!r||r<ov||!u||u<ov||!o)return;const c=Math.abs(u),d=t.particles.quadTree.queryCircle(o,c,m=>this.isEnabled(m));d.forEach((m,p)=>{const y=m.getPosition(),v=1;for(const S of d.slice(p+v)){const x=S.getPosition(),w=Math.abs(r),C=Math.abs(y.x-x.x),A=Math.abs(y.y-x.y);C<w&&A<w&&CD(t,m,S)}})}}isEnabled(t){const a=this.container,o=a.interactivity.mouse,r=(t?.interactivity??a.actualOptions.interactivity).events;return r.onHover.enable&&o.position?Pt(ED,r.onHover.mode):!1}loadModeOptions(t,...a){t.connect||(t.connect=new xD);for(const o of a)t.connect.load(o?.connect)}reset(){}}async function DD(n,t=!0){n.checkVersion("3.9.1"),await n.addInteractor("externalConnect",a=>Promise.resolve(new AD(a)),t)}class zD{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(t){X(t)||(t.blink!==void 0&&(this.blink=t.blink),t.color!==void 0&&(this.color=ve.create(this.color,t.color)),t.consent!==void 0&&(this.consent=t.consent),t.opacity!==void 0&&(this.opacity=t.opacity))}}class OD{constructor(){this.distance=100,this.links=new zD}load(t){X(t)||(t.distance!==void 0&&(this.distance=t.distance),this.links.load(t.links))}}const RD=0;function VD(n,t,a,o,r,u){so(n,a,o),n.strokeStyle=Hi(r,u),n.lineWidth=t,n.stroke()}function BD(n,t,a,o,r){n.canvas.draw(u=>{const c=t.getPosition();VD(u,t.retina.linksWidth??RD,c,r,a,o)})}const LD="grab",kD=0,UD=0;class ND extends zi{constructor(t,a){super(t),this._engine=a}clear(){}init(){const t=this.container,a=t.actualOptions.interactivity.modes.grab;a&&(t.retina.grabModeDistance=a.distance*t.retina.pixelRatio)}interact(){const t=this.container,a=t.actualOptions,o=a.interactivity;if(!o.modes.grab||!o.events.onHover.enable||t.interactivity.status!==Kn)return;const r=t.interactivity.mouse.position;if(!r)return;const u=t.retina.grabModeDistance;if(!u||u<kD)return;const c=t.particles.quadTree.queryCircle(r,u,d=>this.isEnabled(d));for(const d of c){const m=d.getPosition(),p=Ne(m,r);if(p>u)continue;const y=o.modes.grab.links,v=y.opacity,S=v-p*v/u;if(S<=UD)continue;const x=y.color??d.options.links?.color;if(!t.particles.grabLineColor&&x){const C=o.modes.grab.links;t.particles.grabLineColor=Eg(this._engine,x,C.blink,C.consent)}const w=Ic(d,void 0,t.particles.grabLineColor);w&&BD(t,d,w,S,r)}}isEnabled(t){const a=this.container,o=a.interactivity.mouse,r=(t?.interactivity??a.actualOptions.interactivity).events;return r.onHover.enable&&!!o.position&&Pt(LD,r.onHover.mode)}loadModeOptions(t,...a){t.grab||(t.grab=new OD);for(const o of a)t.grab.load(o?.grab)}reset(){}}async function HD(n,t=!0){n.checkVersion("3.9.1"),await n.addInteractor("externalGrab",a=>Promise.resolve(new ND(a,n)),t)}const qD="pause";class jD extends zi{constructor(t){super(t),this.handleClickMode=a=>{if(a!==qD)return;const o=this.container;o.animationStatus?o.pause():o.play()}}clear(){}init(){}interact(){}isEnabled(){return!0}reset(){}}async function PD(n,t=!0){n.checkVersion("3.9.1"),await n.addInteractor("externalPause",a=>Promise.resolve(new jD(a)),t)}class YD{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(t){if(X(t))return;t.default!==void 0&&(this.default=t.default),t.groups!==void 0&&(this.groups=t.groups.map(o=>o)),this.groups.length||(this.default=!0);const a=t.quantity;a!==void 0&&(this.quantity=bt(a)),this.particles=He(t.particles,o=>ge({},o))}}const GD="push",XD=0;class QD extends zi{constructor(t){super(t),this.handleClickMode=a=>{if(a!==GD)return;const o=this.container,r=o.actualOptions,u=r.interactivity.modes.push;if(!u)return;const c=et(u.quantity);if(c<=XD)return;const d=zl([void 0,...u.groups]),m=d!==void 0?o.actualOptions.particles.groups[d]:void 0,p=ii(u.particles),y=ge(m,p);o.particles.push(c,o.interactivity.mouse,y,d)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...a){t.push||(t.push=new YD);for(const o of a)t.push.load(o?.push)}reset(){}}async function ZD(n,t=!0){n.checkVersion("3.9.1"),await n.addInteractor("externalPush",a=>Promise.resolve(new QD(a)),t)}class KD{constructor(){this.quantity=2}load(t){if(X(t))return;const a=t.quantity;a!==void 0&&(this.quantity=bt(a))}}const FD="remove";class JD extends zi{constructor(t){super(t),this.handleClickMode=a=>{const o=this.container,r=o.actualOptions;if(!r.interactivity.modes.remove||a!==FD)return;const u=et(r.interactivity.modes.remove.quantity);o.particles.removeQuantity(u)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...a){t.remove||(t.remove=new KD);for(const o of a)t.remove.load(o?.remove)}reset(){}}async function $D(n,t=!0){n.checkVersion("3.9.1"),await n.addInteractor("externalRemove",a=>Promise.resolve(new JD(a)),t)}class lv{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing=ns.easeOutQuad}load(t){X(t)||(t.distance!==void 0&&(this.distance=t.distance),t.duration!==void 0&&(this.duration=t.duration),t.easing!==void 0&&(this.easing=t.easing),t.factor!==void 0&&(this.factor=t.factor),t.speed!==void 0&&(this.speed=t.speed),t.maxSpeed!==void 0&&(this.maxSpeed=t.maxSpeed))}}class ID extends lv{constructor(){super(),this.selectors=[]}load(t){super.load(t),!X(t)&&t.selectors!==void 0&&(this.selectors=t.selectors)}}class WD extends lv{load(t){super.load(t),!X(t)&&(this.divs=He(t.divs,a=>{const o=new ID;return o.load(a),o}))}}const ls="repulse",tz=0,ez=6,iz=3,nz=2,sz=0,az=0,oz=1,mf=.5;class lz extends zi{constructor(t,a){super(a),this._clickRepulse=()=>{const o=this.container,r=o.actualOptions.interactivity.modes.repulse;if(!r)return;const u=o.repulse??{particles:[]};if(u.finish||(u.count||(u.count=0),u.count++,u.count===o.particles.count&&(u.finish=!0)),u.clicking){const c=o.retina.repulseModeDistance;if(!c||c<tz)return;const d=Math.pow(c/ez,iz),m=o.interactivity.mouse.clickPosition;if(m===void 0)return;const p=new be(m.x,m.y,d),y=o.particles.quadTree.query(p,v=>this.isEnabled(v));for(const v of y){const{dx:S,dy:x,distance:w}=Te(m,v.position),C=w**nz,A=r.speed,R=-d*A/C;if(C<=d){u.particles.push(v);const L=ie.create(S,x);L.length=R,v.velocity.setTo(L)}}}else if(u.clicking===!1){for(const c of u.particles)c.velocity.setTo(c.initialVelocity);u.particles=[]}},this._hoverRepulse=()=>{const o=this.container,r=o.interactivity.mouse.position,u=o.retina.repulseModeDistance;!u||u<sz||!r||this._processRepulse(r,u,new be(r.x,r.y,u))},this._processRepulse=(o,r,u,c)=>{const d=this.container,m=d.particles.quadTree.query(u,A=>this.isEnabled(A)),p=d.actualOptions.interactivity.modes.repulse;if(!p)return;const{easing:y,speed:v,factor:S,maxSpeed:x}=p,w=this._engine.getEasing(y),C=(c?.speed??v)*S;for(const A of m){const{dx:R,dy:L,distance:B}=Te(A.position,o),H=ei(w(oz-B/r)*C,az,x),Y=ie.create(B?R/B*H:C,B?L/B*H:C);A.position.addTo(Y)}},this._singleSelectorRepulse=(o,r)=>{const u=this.container,c=u.actualOptions.interactivity.modes.repulse;if(!c)return;const d=document.querySelectorAll(o);d.length&&d.forEach(m=>{const p=m,y=u.retina.pixelRatio,v={x:(p.offsetLeft+p.offsetWidth*mf)*y,y:(p.offsetTop+p.offsetHeight*mf)*y},S=p.offsetWidth*mf*y,x=r.type===Ys.circle?new be(v.x,v.y,S):new vi(p.offsetLeft*y,p.offsetTop*y,p.offsetWidth*y,p.offsetHeight*y),w=c.divs,C=bg(w,p);this._processRepulse(v,S,x,C)})},this._engine=t,a.repulse||(a.repulse={particles:[]}),this.handleClickMode=o=>{const r=this.container.actualOptions,u=r.interactivity.modes.repulse;if(!u||o!==ls)return;a.repulse||(a.repulse={particles:[]});const c=a.repulse;c.clicking=!0,c.count=0;for(const d of a.repulse.particles)this.isEnabled(d)&&d.velocity.setTo(d.initialVelocity);c.particles=[],c.finish=!1,setTimeout(()=>{a.destroyed||(c.clicking=!1)},u.duration*me)}}clear(){}init(){const t=this.container,a=t.actualOptions.interactivity.modes.repulse;a&&(t.retina.repulseModeDistance=a.distance*t.retina.pixelRatio)}interact(){const t=this.container,a=t.actualOptions,o=t.interactivity.status===Kn,r=a.interactivity.events,u=r.onHover,c=u.enable,d=u.mode,m=r.onClick,p=m.enable,y=m.mode,v=r.onDiv;o&&c&&Pt(ls,d)?this._hoverRepulse():p&&Pt(ls,y)?this._clickRepulse():Zc(ls,v,(S,x)=>this._singleSelectorRepulse(S,x))}isEnabled(t){const a=this.container,o=a.actualOptions,r=a.interactivity.mouse,u=(t?.interactivity??o.interactivity).events,c=u.onDiv,d=u.onHover,m=u.onClick,p=Qc(ls,c);if(!(p||d.enable&&r.position||m.enable&&r.clickPosition))return!1;const y=d.mode,v=m.mode;return Pt(ls,y)||Pt(ls,v)||p}loadModeOptions(t,...a){t.repulse||(t.repulse=new WD);for(const o of a)t.repulse.load(o?.repulse)}reset(){}}async function rz(n,t=!0){n.checkVersion("3.9.1"),await n.addInteractor("externalRepulse",a=>Promise.resolve(new lz(n,a)),t)}class uz{constructor(){this.factor=3,this.radius=200}load(t){X(t)||(t.factor!==void 0&&(this.factor=t.factor),t.radius!==void 0&&(this.radius=t.radius))}}const cz="slow",fz=0;class hz extends zi{constructor(t){super(t)}clear(t,a,o){t.slow.inRange&&!o||(t.slow.factor=1)}init(){const t=this.container,a=t.actualOptions.interactivity.modes.slow;a&&(t.retina.slowModeRadius=a.radius*t.retina.pixelRatio)}interact(){}isEnabled(t){const a=this.container,o=a.interactivity.mouse,r=(t?.interactivity??a.actualOptions.interactivity).events;return r.onHover.enable&&!!o.position&&Pt(cz,r.onHover.mode)}loadModeOptions(t,...a){t.slow||(t.slow=new uz);for(const o of a)t.slow.load(o?.slow)}reset(t){t.slow.inRange=!1;const a=this.container,o=a.actualOptions,r=a.interactivity.mouse.position,u=a.retina.slowModeRadius,c=o.interactivity.modes.slow;if(!c||!u||u<fz||!r)return;const d=t.getPosition(),m=Ne(r,d),p=m/u,y=c.factor,{slow:v}=t;m>u||(v.inRange=!0,v.factor=p/y)}}async function dz(n,t=!0){n.checkVersion("3.9.1"),await n.addInteractor("externalSlow",a=>Promise.resolve(new hz(a)),t)}const mz=0,pz=1,yz=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;function gz(n,t,a){const{svgData:o}=n;if(!o)return"";const r=no(t,a);if(o.includes("fill"))return o.replace(yz,()=>r);const u=o.indexOf(">");return`${o.substring(mz,u)} fill="${r}"${o.substring(u)}`}async function ql(n){return new Promise(t=>{n.loading=!0;const a=new Image;n.element=a,a.addEventListener("load",()=>{n.loading=!1,t()}),a.addEventListener("error",()=>{n.element=void 0,n.error=!0,n.loading=!1,Wn().error(`${ti} loading image: ${n.source}`),t()}),a.src=n.source})}async function vz(n){if(n.type!=="svg"){await ql(n);return}n.loading=!0;const t=await fetch(n.source);t.ok?n.svgData=await t.text():(Wn().error(`${ti} Image not found`),n.error=!0),n.loading=!1}function bz(n,t,a,o){const r=gz(n,a,o.opacity?.value??pz),u={color:a,gif:t.gif,data:{...n,svgData:r},loaded:!1,ratio:t.width/t.height,replaceColor:t.replaceColor,source:t.src};return new Promise(c=>{const d=new Blob([r],{type:"image/svg+xml"}),m=URL||window.URL||window.webkitURL||window,p=m.createObjectURL(d),y=new Image;y.addEventListener("load",()=>{u.loaded=!0,u.element=y,c(u),m.revokeObjectURL(p)});const v=async()=>{m.revokeObjectURL(p);const S={...n,error:!1,loading:!0};await ql(S),u.loaded=!0,u.element=S.element,c(u)};y.addEventListener("error",()=>void v()),y.src=p})}const pf=[0,4,2,1],rv=[8,8,4,2];class Sz{constructor(t){this.pos=0,this.data=new Uint8ClampedArray(t)}getString(t){const a=this.data.slice(this.pos,this.pos+t);return this.pos+=a.length,a.reduce((o,r)=>o+String.fromCharCode(r),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let t="",a=0;const o=0,r=0;do{a=this.data[this.pos++];for(let u=a;--u>=o;t+=String.fromCharCode(this.data[this.pos++]));}while(a!==r);return t}readSubBlocksBin(){let t=this.data[this.pos],a=0;const o=0,r=1;for(let c=0;t!==o;c+=t+r,t=this.data[this.pos+c])a+=t;const u=new Uint8Array(a);t=this.data[this.pos++];for(let c=0;t!==o;t=this.data[this.pos++])for(let d=t;--d>=o;u[c++]=this.data[this.pos++]);return u}skipSubBlocks(){for(const t=1,a=0;this.data[this.pos]!==a;this.pos+=this.data[this.pos]+t);this.pos++}}var xi;(function(n){n[n.Replace=0]="Replace",n[n.Combine=1]="Combine",n[n.RestoreBackground=2]="RestoreBackground",n[n.RestorePrevious=3]="RestorePrevious",n[n.UndefinedA=4]="UndefinedA",n[n.UndefinedB=5]="UndefinedB",n[n.UndefinedC=6]="UndefinedC",n[n.UndefinedD=7]="UndefinedD"})(xi||(xi={}));var qi;(function(n){n[n.Extension=33]="Extension",n[n.ApplicationExtension=255]="ApplicationExtension",n[n.GraphicsControlExtension=249]="GraphicsControlExtension",n[n.PlainTextExtension=1]="PlainTextExtension",n[n.CommentExtension=254]="CommentExtension",n[n.Image=44]="Image",n[n.EndOfFile=59]="EndOfFile"})(qi||(qi={}));const Ce={x:0,y:0},xz=0,uv=.5,Tz=0,cv=0,yf=0;function fv(n,t){const a=[];for(let o=0;o<t;o++)a.push({r:n.data[n.pos],g:n.data[n.pos+1],b:n.data[n.pos+2]}),n.pos+=3;return a}function wz(n,t,a,o){switch(n.nextByte()){case qi.GraphicsControlExtension:{const r=t.frames[a(!1)];n.pos++;const u=n.nextByte();r.GCreserved=(u&224)>>>5,r.disposalMethod=(u&28)>>>2,r.userInputDelayFlag=(u&2)===2;const c=(u&1)===1;r.delayTime=n.nextTwoBytes()*10;const d=n.nextByte();c&&o(d),n.pos++;break}case qi.ApplicationExtension:{n.pos++;const r={identifier:n.getString(8),authenticationCode:n.getString(3),data:n.readSubBlocksBin()};t.applicationExtensions.push(r);break}case qi.CommentExtension:{t.comments.push([a(!1),n.readSubBlocks()]);break}case qi.PlainTextExtension:{if(t.globalColorTable.length===0)throw new EvalError("plain text extension without global color table");n.pos++,t.frames[a(!1)].plainTextData={left:n.nextTwoBytes(),top:n.nextTwoBytes(),width:n.nextTwoBytes(),height:n.nextTwoBytes(),charSize:{width:n.nextTwoBytes(),height:n.nextTwoBytes()},foregroundColor:n.nextByte(),backgroundColor:n.nextByte(),text:n.readSubBlocks()};break}default:n.skipSubBlocks();break}}async function Mz(n,t,a,o,r,u){const c=t.frames[o(!0)];c.left=n.nextTwoBytes(),c.top=n.nextTwoBytes(),c.width=n.nextTwoBytes(),c.height=n.nextTwoBytes();const d=n.nextByte(),m=(d&128)===128,p=(d&64)===64;c.sortFlag=(d&32)===32,c.reserved=(d&24)>>>3;const y=1<<(d&7)+1;m&&(c.localColorTable=fv(n,y));const v=R=>{const{r:L,g:B,b:H}=(m?c.localColorTable:t.globalColorTable)[R];return R!==r(null)?{r:L,g:B,b:H,a:255}:{r:L,g:B,b:H,a:a?~~((L+B+H)/3):0}},S=(()=>{try{return new ImageData(c.width,c.height,{colorSpace:"srgb"})}catch(R){if(R instanceof DOMException&&R.name==="IndexSizeError")return null;throw R}})();if(S==null)throw new EvalError("GIF frame size is to large");const x=n.nextByte(),w=n.readSubBlocksBin(),C=1<<x,A=(R,L)=>{const B=R>>>3,H=R&7;return(w[B]+(w[B+1]<<8)+(w[B+2]<<16)&(1<<L)-1<<H)>>>H};if(p){for(let R=0,L=x+1,B=0,H=[[0]],Y=0;Y<4;Y++)if(pf[Y]<c.height){let K=0,G=0,Q=!1;for(;!Q;){const st=R;if(R=A(B,L),B+=L+1,R===C){L=x+1,H.length=C+2;for(let dt=0;dt<H.length;dt++)H[dt]=dt<C?[dt]:[]}else{R>=H.length?H.push(H[st].concat(H[st][0])):st!==C&&H.push(H[st].concat(H[R][0]));for(const dt of H[R]){const{r:Rt,g:Lt,b:qe,a:Ee}=v(dt);S.data.set([Rt,Lt,qe,Ee],pf[Y]*c.width+rv[Y]*G+K%(c.width*4)),K+=4}H.length===1<<L&&L<12&&L++}K===c.width*4*(G+1)&&(G++,pf[Y]+rv[Y]*G>=c.height&&(Q=!0))}}c.image=S,c.bitmap=await createImageBitmap(S)}else{let R=0,L=x+1,B=0,H=-4,Y=!1;const K=[[0]];for(;!Y;){const G=R;if(R=A(B,L),B+=L,R===C){L=x+1,K.length=C+2;for(let Q=0;Q<K.length;Q++)K[Q]=Q<C?[Q]:[]}else{if(R===C+1){Y=!0;break}R>=K.length?K.push(K[G].concat(K[G][0])):G!==C&&K.push(K[G].concat(K[R][0]));for(const Q of K[R]){const{r:st,g:dt,b:Rt,a:Lt}=v(Q);S.data.set([st,dt,Rt,Lt],H+=4)}K.length>=1<<L&&L<12&&L++}}c.image=S,c.bitmap=await createImageBitmap(S)}}async function _z(n,t,a,o,r,u){switch(n.nextByte()){case qi.EndOfFile:return!0;case qi.Image:await Mz(n,t,a,o,r);break;case qi.Extension:wz(n,t,o,r);break;default:throw new EvalError("undefined block found")}return!1}function Cz(n){for(const t of n.applicationExtensions)if(t.identifier+t.authenticationCode==="NETSCAPE2.0")return t.data[1]+(t.data[2]<<8);return NaN}async function Ez(n,t,a){a||(a=!1);const o=await fetch(n);if(!o.ok&&o.status===404)throw new EvalError("file not found");const r=await o.arrayBuffer(),u={width:0,height:0,totalTime:0,colorRes:0,pixelAspectRatio:0,frames:[],sortFlag:!1,globalColorTable:[],backgroundImage:new ImageData(1,1,{colorSpace:"srgb"}),comments:[],applicationExtensions:[]},c=new Sz(new Uint8ClampedArray(r));if(c.getString(6)!=="GIF89a")throw new Error("not a supported GIF file");u.width=c.nextTwoBytes(),u.height=c.nextTwoBytes();const d=c.nextByte(),m=(d&128)===128;u.colorRes=(d&112)>>>4,u.sortFlag=(d&8)===8;const p=1<<(d&7)+1,y=c.nextByte();u.pixelAspectRatio=c.nextByte(),u.pixelAspectRatio!==0&&(u.pixelAspectRatio=(u.pixelAspectRatio+15)/64),m&&(u.globalColorTable=fv(c,p));const v=(()=>{try{return new ImageData(u.width,u.height,{colorSpace:"srgb"})}catch(H){if(H instanceof DOMException&&H.name==="IndexSizeError")return null;throw H}})();if(v==null)throw new Error("GIF frame size is to large");const{r:S,g:x,b:w}=u.globalColorTable[y];v.data.set(m?[S,x,w,255]:[0,0,0,0]);for(let H=4;H<v.data.length;H*=2)v.data.copyWithin(H,0,H);u.backgroundImage=v;let C=-1,A=!0,R=-1;const L=H=>(H&&(A=!0),C),B=H=>(H!=null&&(R=H),R);try{do A&&(u.frames.push({left:0,top:0,width:0,height:0,disposalMethod:xi.Replace,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),C++,R=-1,A=!1);while(!await _z(c,u,a,L,B,t));u.frames.length--;for(const H of u.frames){if(H.userInputDelayFlag&&H.delayTime===0){u.totalTime=1/0;break}u.totalTime+=H.delayTime}return u}catch(H){throw H instanceof EvalError?new Error(`error while parsing frame ${C} "${H.message}"`):H}}function Az(n){const{context:t,radius:a,particle:o,delta:r}=n,u=o.image;if(!u?.gifData||!u.gif)return;const c=new OffscreenCanvas(u.gifData.width,u.gifData.height),d=c.getContext("2d");if(!d)throw new Error("could not create offscreen canvas context");d.imageSmoothingQuality="low",d.imageSmoothingEnabled=!1,d.clearRect(Ce.x,Ce.y,c.width,c.height),o.gifLoopCount===void 0&&(o.gifLoopCount=u.gifLoopCount??yf);let m=o.gifFrame??xz;const p={x:-u.gifData.width*uv,y:-u.gifData.height*uv},y=u.gifData.frames[m];if(o.gifTime===void 0&&(o.gifTime=Tz),!!y.bitmap){switch(t.scale(a/u.gifData.width,a/u.gifData.height),y.disposalMethod){case xi.UndefinedA:case xi.UndefinedB:case xi.UndefinedC:case xi.UndefinedD:case xi.Replace:d.drawImage(y.bitmap,y.left,y.top),t.drawImage(c,p.x,p.y),d.clearRect(Ce.x,Ce.y,c.width,c.height);break;case xi.Combine:d.drawImage(y.bitmap,y.left,y.top),t.drawImage(c,p.x,p.y);break;case xi.RestoreBackground:d.drawImage(y.bitmap,y.left,y.top),t.drawImage(c,p.x,p.y),d.clearRect(Ce.x,Ce.y,c.width,c.height),u.gifData.globalColorTable.length?d.putImageData(u.gifData.backgroundImage,p.x,p.y):d.putImageData(u.gifData.frames[cv].image,p.x+y.left,p.y+y.top);break;case xi.RestorePrevious:{const v=d.getImageData(Ce.x,Ce.y,c.width,c.height);d.drawImage(y.bitmap,y.left,y.top),t.drawImage(c,p.x,p.y),d.clearRect(Ce.x,Ce.y,c.width,c.height),d.putImageData(v,Ce.x,Ce.y)}break}if(o.gifTime+=r.value,o.gifTime>y.delayTime){if(o.gifTime-=y.delayTime,++m>=u.gifData.frames.length){if(--o.gifLoopCount<=yf)return;m=cv,d.clearRect(Ce.x,Ce.y,c.width,c.height)}o.gifFrame=m}t.scale(u.gifData.width/a,u.gifData.height/a)}}async function Dz(n){if(n.type!=="gif"){await ql(n);return}n.loading=!0;try{n.gifData=await Ez(n.source),n.gifLoopCount=Cz(n.gifData)??yf,n.gifLoopCount||(n.gifLoopCount=1/0)}catch{n.error=!0}n.loading=!1}const zz=2,Oz=1,Rz=12,Vz=1;class Bz{constructor(t){this.validTypes=["image","images"],this.loadImageShape=async a=>{if(!this._engine.loadImage)throw new Error(`${ti} image shape not initialized`);await this._engine.loadImage({gif:a.gif,name:a.name,replaceColor:a.replaceColor??!1,src:a.src})},this._engine=t}addImage(t){this._engine.images||(this._engine.images=[]),this._engine.images.push(t)}draw(t){const{context:a,radius:o,particle:r,opacity:u}=t,c=r.image,d=c?.element;if(c){if(a.globalAlpha=u,c.gif&&c.gifData)Az(t);else if(d){const m=c.ratio,p={x:-o,y:-o},y=o*zz;a.drawImage(d,p.x,p.y,y,y/m)}a.globalAlpha=Oz}}getSidesCount(){return Rz}async init(t){const a=t.actualOptions;if(!(!a.preload||!this._engine.loadImage))for(const o of a.preload)await this._engine.loadImage(o)}loadShape(t){if(t.shape!=="image"&&t.shape!=="images")return;this._engine.images||(this._engine.images=[]);const a=t.shapeData;if(!a)return;this._engine.images.find(r=>r.name===a.name||r.source===a.src)||this.loadImageShape(a).then(()=>{this.loadShape(t)})}particleInit(t,a){if(a.shape!=="image"&&a.shape!=="images")return;this._engine.images||(this._engine.images=[]);const o=this._engine.images,r=a.shapeData;if(!r)return;const u=a.getFillColor(),c=o.find(m=>m.name===r.name||m.source===r.src);if(!c)return;const d=r.replaceColor??c.replaceColor;if(c.loading){setTimeout(()=>{this.particleInit(t,a)});return}(async()=>{let m;c.svgData&&u?m=await bz(c,r,u,a):m={color:u,data:c,element:c.element,gif:c.gif,gifData:c.gifData,gifLoopCount:c.gifLoopCount,loaded:!0,ratio:r.width&&r.height?r.width/r.height:c.ratio??Vz,replaceColor:d,source:r.src},m.ratio||(m.ratio=1);const p=r.fill??a.shapeFill,y=r.close??a.shapeClose,v={image:m,fill:p,close:y};a.image=v.image,a.shapeFill=v.fill,a.shapeClose=v.close})()}}class Lz{constructor(){this.src="",this.gif=!1}load(t){X(t)||(t.gif!==void 0&&(this.gif=t.gif),t.height!==void 0&&(this.height=t.height),t.name!==void 0&&(this.name=t.name),t.replaceColor!==void 0&&(this.replaceColor=t.replaceColor),t.src!==void 0&&(this.src=t.src),t.width!==void 0&&(this.width=t.width))}}class kz{constructor(t){this.id="imagePreloader",this._engine=t}async getPlugin(){return await Promise.resolve(),{}}loadOptions(t,a){if(!a?.preload)return;t.preload||(t.preload=[]);const o=t.preload;for(const r of a.preload){const u=o.find(c=>c.name===r.name||c.src===r.src);if(u)u.load(r);else{const c=new Lz;c.load(r),o.push(c)}}}needsPlugin(){return!0}}const Uz=3;function Nz(n){n.loadImage||(n.loadImage=async t=>{if(!t.name&&!t.src)throw new Error(`${ti} no image source provided`);if(n.images||(n.images=[]),!n.images.find(a=>a.name===t.name||a.source===t.src))try{const a={gif:t.gif??!1,name:t.name??t.src,source:t.src,type:t.src.substring(t.src.length-Uz),error:!1,loading:!0,replaceColor:t.replaceColor,ratio:t.width&&t.height?t.width/t.height:void 0};n.images.push(a);let o;t.gif?o=Dz:o=t.replaceColor?vz:ql,await o(a)}catch{throw new Error(`${ti} ${t.name??t.src} not found`)}})}async function Hz(n,t=!0){n.checkVersion("3.9.1"),Nz(n);const a=new kz(n);await n.addPlugin(a,t),await n.addShape(new Bz(n),t)}class qz extends is{constructor(){super(),this.sync=!1}load(t){X(t)||(super.load(t),t.sync!==void 0&&(this.sync=t.sync))}}class jz extends is{constructor(){super(),this.sync=!1}load(t){X(t)||(super.load(t),t.sync!==void 0&&(this.sync=t.sync))}}class Pz{constructor(){this.count=0,this.delay=new qz,this.duration=new jz}load(t){X(t)||(t.count!==void 0&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}const $s=0,Yz=-1,hv=0,dv=0;function Gz(n,t,a){if(!n.life)return;const o=n.life;let r=!1;if(n.spawning)if(o.delayTime+=t.value,o.delayTime>=n.life.delay)r=!0,n.spawning=!1,o.delayTime=$s,o.time=$s;else return;if(o.duration===Yz||n.spawning||(r?o.time=$s:o.time+=t.value,o.time<o.duration))return;if(o.time=$s,n.life.count>hv&&n.life.count--,n.life.count===hv){n.destroy();return}const u=bt(dv,a.width),c=bt(dv,a.width);n.position.x=Ue(u),n.position.y=Ue(c),n.spawning=!0,o.delayTime=$s,o.time=$s,n.reset();const d=n.options.life;d&&(o.delay=et(d.delay.value)*me,o.duration=et(d.duration.value)*me)}const rs=0,mv=1,pv=-1;class Xz{constructor(t){this.container=t}init(t){const a=this.container,o=t.options,r=o.life;r&&(t.life={delay:a.retina.reduceFactor?et(r.delay.value)*(r.delay.sync?mv:Ct())/a.retina.reduceFactor*me:rs,delayTime:rs,duration:a.retina.reduceFactor?et(r.duration.value)*(r.duration.sync?mv:Ct())/a.retina.reduceFactor*me:rs,time:rs,count:r.count},t.life.duration<=rs&&(t.life.duration=pv),t.life.count<=rs&&(t.life.count=pv),t.life&&(t.spawning=t.life.delay>rs))}isEnabled(t){return!t.destroyed}loadOptions(t,...a){t.life||(t.life=new Pz);for(const o of a)t.life.load(o?.life)}update(t,a){!this.isEnabled(t)||!t.life||Gz(t,a,this.container.canvas.size)}}async function Qz(n,t=!0){n.checkVersion("3.9.1"),await n.addParticleUpdater("life",async a=>Promise.resolve(new Xz(a)),t)}function Zz(n){const{context:t,particle:a,radius:o}=n,r=a.shapeData,u=0;t.moveTo(-o,u),t.lineTo(o,u),t.lineCap=r?.cap??"butt"}const Kz=1;class Fz{constructor(){this.validTypes=["line"]}draw(t){Zz(t)}getSidesCount(){return Kz}}async function Jz(n,t=!0){n.checkVersion("3.9.1"),await n.addShape(new Fz,t)}const yv=.5;class $z{init(){}isEnabled(t){return!ts()&&!t.destroyed&&t.container.actualOptions.interactivity.events.onHover.parallax.enable}move(t){const a=t.container,o=a.actualOptions,r=o.interactivity.events.onHover.parallax;if(ts()||!r.enable)return;const u=r.force,c=a.interactivity.mouse.position;if(!c)return;const d=a.canvas.size,m={x:d.width*yv,y:d.height*yv},p=r.smooth,y=t.getRadius()/u,v={x:(c.x-m.x)*y,y:(c.y-m.y)*y},{offset:S}=t;S.x+=(v.x-S.x)/p,S.y+=(v.y-S.y)/p}}async function Iz(n,t=!0){n.checkVersion("3.9.1"),await n.addMover("parallax",()=>Promise.resolve(new $z),t)}const gv=1e3,Wz=1;class tO extends lf{constructor(t){super(t)}clear(){}init(){}interact(t){const a=this.container;t.attractDistance===void 0&&(t.attractDistance=et(t.options.move.attract.distance)*a.retina.pixelRatio);const o=t.attractDistance,r=t.getPosition(),u=a.particles.quadTree.queryCircle(r,o);for(const c of u){if(t===c||!c.options.move.attract.enable||c.destroyed||c.spawning)continue;const d=c.getPosition(),{dx:m,dy:p}=Te(r,d),y=t.options.move.attract.rotate,v=m/(y.x*gv),S=p/(y.y*gv),x=c.size.value/t.size.value,w=Wz/x;t.velocity.x-=v*x,t.velocity.y-=S*x,c.velocity.x+=v*w,c.velocity.y+=S*w}}isEnabled(t){return t.options.move.attract.enable}reset(){}}async function eO(n,t=!0){n.checkVersion("3.9.1"),await n.addInteractor("particlesAttract",a=>Promise.resolve(new tO(a)),t)}const iO=.5,nO=10,sO=0;function vv(n,t,a,o,r,u){const c=ei(n.options.collisions.absorb.speed*r.factor/nO,sO,o);n.size.value+=c*iO,a.size.value-=c,o<=u&&(a.size.value=0,a.destroy())}function aO(n,t,a,o){const r=n.getRadius(),u=t.getRadius();r===void 0&&u!==void 0?n.destroy():r!==void 0&&u===void 0?t.destroy():r!==void 0&&u!==void 0&&(r>=u?vv(n,r,t,u,a,o):vv(t,u,n,r,a,o))}const bv=n=>{n.collisionMaxSpeed===void 0&&(n.collisionMaxSpeed=et(n.options.collisions.maxSpeed)),n.velocity.length>n.collisionMaxSpeed&&(n.velocity.length=n.collisionMaxSpeed)};function Sv(n,t){Sg(Kc(n),Kc(t)),bv(n),bv(t)}function oO(n,t){!n.unbreakable&&!t.unbreakable&&Sv(n,t),n.getRadius()===void 0&&t.getRadius()!==void 0?n.destroy():n.getRadius()!==void 0&&t.getRadius()===void 0?t.destroy():n.getRadius()!==void 0&&t.getRadius()!==void 0&&(n.getRadius()>=t.getRadius()?t:n).destroy()}function lO(n,t,a,o){switch(n.options.collisions.mode){case Gs.absorb:{aO(n,t,a,o);break}case Gs.bounce:{Sv(n,t);break}case Gs.destroy:{oO(n,t);break}}}const rO=2;class uO extends lf{constructor(t){super(t)}clear(){}init(){}interact(t,a){if(t.destroyed||t.spawning)return;const o=this.container,r=t.getPosition(),u=t.getRadius(),c=o.particles.quadTree.queryCircle(r,u*rO);for(const d of c){if(t===d||!d.options.collisions.enable||t.options.collisions.mode!==d.options.collisions.mode||d.destroyed||d.spawning)continue;const m=d.getPosition(),p=d.getRadius();if(Math.abs(Math.round(r.z)-Math.round(m.z))>u+p)continue;const y=Ne(r,m),v=u+p;y>v||lO(t,d,a,o.retina.pixelRatio)}}isEnabled(t){return t.options.collisions.enable}reset(){}}async function cO(n,t=!0){n.checkVersion("3.9.1"),await n.addInteractor("particlesCollisions",a=>Promise.resolve(new uO(a)),t)}const gf=2;class fO extends be{constructor(t,a,o,r){super(t,a,o),this.canvasSize=r,this.canvasSize={...r}}contains(t){const{width:a,height:o}=this.canvasSize,{x:r,y:u}=t;return super.contains(t)||super.contains({x:r-a,y:u})||super.contains({x:r-a,y:u-o})||super.contains({x:r,y:u-o})}intersects(t){if(super.intersects(t))return!0;const a=t,o=t,r={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(o.radius!==void 0){const u=new be(r.x,r.y,o.radius*gf);return super.intersects(u)}else if(a.size!==void 0){const u=new vi(r.x,r.y,a.size.width*gf,a.size.height*gf);return super.intersects(u)}return!1}}class hO{constructor(){this.blur=5,this.color=new ve,this.color.value="#000",this.enable=!1}load(t){X(t)||(t.blur!==void 0&&(this.blur=t.blur),this.color=ve.create(this.color,t.color),t.enable!==void 0&&(this.enable=t.enable))}}class dO{constructor(){this.enable=!1,this.frequency=1}load(t){X(t)||(t.color!==void 0&&(this.color=ve.create(this.color,t.color)),t.enable!==void 0&&(this.enable=t.enable),t.frequency!==void 0&&(this.frequency=t.frequency),t.opacity!==void 0&&(this.opacity=t.opacity))}}class mO{constructor(){this.blink=!1,this.color=new ve,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new hO,this.triangles=new dO,this.width=1,this.warp=!1}load(t){X(t)||(t.id!==void 0&&(this.id=t.id),t.blink!==void 0&&(this.blink=t.blink),this.color=ve.create(this.color,t.color),t.consent!==void 0&&(this.consent=t.consent),t.distance!==void 0&&(this.distance=t.distance),t.enable!==void 0&&(this.enable=t.enable),t.frequency!==void 0&&(this.frequency=t.frequency),t.opacity!==void 0&&(this.opacity=t.opacity),this.shadow.load(t.shadow),this.triangles.load(t.triangles),t.width!==void 0&&(this.width=t.width),t.warp!==void 0&&(this.warp=t.warp))}}const xv=2,pO=1,jl={x:0,y:0},yO=0;function gO(n,t,a,o,r){const{dx:u,dy:c,distance:d}=Te(n,t);if(!r||d<=a)return d;const m={x:Math.abs(u),y:Math.abs(c)},p={x:Math.min(m.x,o.width-m.x),y:Math.min(m.y,o.height-m.y)};return Math.sqrt(p.x**xv+p.y**xv)}class vO extends lf{constructor(t,a){super(t),this._setColor=o=>{if(!o.options.links)return;const r=this._linkContainer,u=o.options.links;let c=u.id===void 0?r.particles.linksColor:r.particles.linksColors.get(u.id);if(c)return;const d=u.color;c=Eg(this._engine,d,u.blink,u.consent),u.id===void 0?r.particles.linksColor=c:r.particles.linksColors.set(u.id,c)},this._linkContainer=t,this._engine=a}clear(){}init(){this._linkContainer.particles.linksColor=void 0,this._linkContainer.particles.linksColors=new Map}interact(t){if(!t.options.links)return;t.links=[];const a=t.getPosition(),o=this.container,r=o.canvas.size;if(a.x<jl.x||a.y<jl.y||a.x>r.width||a.y>r.height)return;const u=t.options.links,c=u.opacity,d=t.retina.linksDistance??yO,m=u.warp;let p;m?p=new fO(a.x,a.y,d,r):p=new be(a.x,a.y,d);const y=o.particles.quadTree.query(p);for(const v of y){const S=v.options.links;if(t===v||!S?.enable||u.id!==S.id||v.spawning||v.destroyed||!v.links||t.links.some(A=>A.destination===v)||v.links.some(A=>A.destination===t))continue;const x=v.getPosition();if(x.x<jl.x||x.y<jl.y||x.x>r.width||x.y>r.height)continue;const w=gO(a,x,d,r,m&&S.warp);if(w>d)continue;const C=(pO-w/d)*c;this._setColor(t),t.links.push({destination:v,opacity:C})}}isEnabled(t){return!!t.options.links?.enable}loadParticlesOptions(t,...a){t.links||(t.links=new mO);for(const o of a)t.links.load(o?.links)}reset(){}}async function bO(n,t=!0){await n.addInteractor("particlesLinks",async a=>Promise.resolve(new vO(a,n)),t)}function SO(n,t,a,o){n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(a.x,a.y),n.lineTo(o.x,o.y),n.closePath()}function xO(n){let t=!1;const{begin:a,end:o,engine:r,maxDistance:u,context:c,canvasSize:d,width:m,backgroundMask:p,colorLine:y,opacity:v,links:S}=n;if(Ne(a,o)<=u)so(c,a,o),t=!0;else if(S.warp){let w,C;const A={x:o.x-d.width,y:o.y},R=Te(a,A);if(R.distance<=u){const L=a.y-R.dy/R.dx*a.x;w={x:0,y:L},C={x:d.width,y:L}}else{const L={x:o.x,y:o.y-d.height},B=Te(a,L);if(B.distance<=u){const Y=-(a.y-B.dy/B.dx*a.x)/(B.dy/B.dx);w={x:Y,y:0},C={x:Y,y:d.height}}else{const H={x:o.x-d.width,y:o.y-d.height},Y=Te(a,H);if(Y.distance<=u){const K=a.y-Y.dy/Y.dx*a.x;w={x:-K/(Y.dy/Y.dx),y:K},C={x:w.x+d.width,y:w.y+d.height}}}}w&&C&&(so(c,a,w),so(c,o,C),t=!0)}if(!t)return;c.lineWidth=m,p.enable&&(c.globalCompositeOperation=p.composite),c.strokeStyle=Hi(y,v);const{shadow:x}=S;if(x.enable){const w=yi(r,x.color);w&&(c.shadowBlur=x.blur,c.shadowColor=Hi(w))}c.stroke()}function TO(n){const{context:t,pos1:a,pos2:o,pos3:r,backgroundMask:u,colorTriangle:c,opacityTriangle:d}=n;SO(t,a,o,r),u.enable&&(t.globalCompositeOperation=u.composite),t.fillStyle=Hi(c,d),t.fill()}function wO(n){return n.sort((t,a)=>t-a),n.join("_")}function Tv(n,t){const a=wO(n.map(r=>r.id));let o=t.get(a);return o===void 0&&(o=Ct(),t.set(a,o)),o}const wv=0,vf=0,Mv=0,MO=.5,_O=1;class CO{constructor(t,a){this._drawLinkLine=(o,r)=>{const u=o.options.links;if(!u?.enable)return;const c=this._container,d=c.actualOptions,m=r.destination,p=o.getPosition(),y=m.getPosition();let v=r.opacity;c.canvas.draw(S=>{let x;const w=o.options.twinkle?.lines;if(w?.enable){const L=w.frequency,B=yi(this._engine,w.color);Ct()<L&&B&&(x=B,v=et(w.opacity))}if(!x){const L=u.id!==void 0?c.particles.linksColors.get(u.id):c.particles.linksColor;x=Ic(o,m,L)}if(!x)return;const C=o.retina.linksWidth??vf,A=o.retina.linksDistance??Mv,{backgroundMask:R}=d;xO({context:S,width:C,begin:p,end:y,engine:this._engine,maxDistance:A,canvasSize:c.canvas.size,links:u,backgroundMask:R,colorLine:x,opacity:v})})},this._drawLinkTriangle=(o,r,u)=>{const c=o.options.links;if(!c?.enable)return;const d=c.triangles;if(!d.enable)return;const m=this._container,p=m.actualOptions,y=r.destination,v=u.destination,S=d.opacity??(r.opacity+u.opacity)*MO;S<=wv||m.canvas.draw(x=>{const w=o.getPosition(),C=y.getPosition(),A=v.getPosition(),R=o.retina.linksDistance??Mv;if(Ne(w,C)>R||Ne(A,C)>R||Ne(A,w)>R)return;let L=yi(this._engine,d.color);if(!L){const B=c.id!==void 0?m.particles.linksColors.get(c.id):m.particles.linksColor;L=Ic(o,y,B)}L&&TO({context:x,pos1:w,pos2:C,pos3:A,backgroundMask:p.backgroundMask,colorTriangle:L,opacityTriangle:S})})},this._drawTriangles=(o,r,u,c)=>{const d=u.destination;if(!(o.links?.triangles.enable&&d.options.links?.triangles.enable))return;const m=d.links?.filter(p=>{const y=this._getLinkFrequency(d,p.destination);return d.options.links&&y<=d.options.links.frequency&&c.findIndex(S=>S.destination===p.destination)>=0});if(m?.length)for(const p of m){const y=p.destination;this._getTriangleFrequency(r,d,y)>o.links.triangles.frequency||this._drawLinkTriangle(r,u,p)}},this._getLinkFrequency=(o,r)=>Tv([o,r],this._freqs.links),this._getTriangleFrequency=(o,r,u)=>Tv([o,r,u],this._freqs.triangles),this._container=t,this._engine=a,this._freqs={links:new Map,triangles:new Map}}drawParticle(t,a){const{links:o,options:r}=a;if(!o?.length)return;const u=o.filter(c=>r.links&&(r.links.frequency>=_O||this._getLinkFrequency(a,c.destination)<=r.links.frequency));for(const c of u)this._drawTriangles(r,a,c,u),c.opacity>wv&&(a.retina.linksWidth??vf)>vf&&this._drawLinkLine(a,c)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(t){if(t.links=[],!t.options.links)return;const a=this._container.retina.pixelRatio,{retina:o}=t,{distance:r,width:u}=t.options.links;o.linksDistance=r*a,o.linksWidth=u*a}particleDestroyed(t){t.links=[]}}class EO{constructor(t){this.id="links",this._engine=t}getPlugin(t){return Promise.resolve(new CO(t,this._engine))}loadOptions(){}needsPlugin(){return!0}}async function AO(n,t=!0){const a=new EO(n);await n.addPlugin(a,t)}async function DO(n,t=!0){n.checkVersion("3.9.1"),await bO(n,t),await AO(n,t)}const zO=180,Pl={x:0,y:0},OO=2;function RO(n,t,a){const{context:o}=n,r=a.count.numerator*a.count.denominator,u=a.count.numerator/a.count.denominator,c=zO*(u-OO)/u,d=Math.PI-mn(c);if(o){o.beginPath(),o.translate(t.x,t.y),o.moveTo(Pl.x,Pl.y);for(let m=0;m<r;m++)o.lineTo(a.length,Pl.y),o.translate(a.length,Pl.y),o.rotate(d)}}const VO=5;class _v{draw(t){const{particle:a,radius:o}=t,r=this.getCenter(a,o),u=this.getSidesData(a,o);RO(t,r,u)}getSidesCount(t){const a=t.shapeData;return Math.round(et(a?.sides??VO))}}const Cv=3.5,Ev=2.66,BO=3;class LO extends _v{constructor(){super(...arguments),this.validTypes=["polygon"]}getCenter(t,a){return{x:-a/(t.sides/Cv),y:-a/(Ev/Cv)}}getSidesData(t,a){const o=t.sides;return{count:{denominator:1,numerator:o},length:a*Ev/(o/BO)}}}const kO=1.66,UO=3,NO=2;class HO extends _v{constructor(){super(...arguments),this.validTypes=["triangle"]}getCenter(t,a){return{x:-a,y:a/kO}}getSidesCount(){return UO}getSidesData(t,a){const o=a*NO;return{count:{denominator:2,numerator:3},length:o}}}async function qO(n,t=!0){n.checkVersion("3.9.1"),await n.addShape(new LO,t)}async function jO(n,t=!0){n.checkVersion("3.9.1"),await n.addShape(new HO,t)}async function PO(n,t=!0){n.checkVersion("3.9.1"),await qO(n,t),await jO(n,t)}class YO{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(t){X(t)||(t.enable!==void 0&&(this.enable=t.enable),t.speed!==void 0&&(this.speed=bt(t.speed)),t.decay!==void 0&&(this.decay=bt(t.decay)),t.sync!==void 0&&(this.sync=t.sync))}}class GO extends is{constructor(){super(),this.animation=new YO,this.direction=bi.clockwise,this.path=!1,this.value=0}load(t){X(t)||(super.load(t),t.direction!==void 0&&(this.direction=t.direction),this.animation.load(t.animation),t.path!==void 0&&(this.path=t.path))}}const Av=2,XO=Math.PI*Av,QO=1,ZO=360;class KO{constructor(t){this.container=t}init(t){const a=t.options.rotate;if(!a)return;t.rotate={enable:a.animation.enable,value:mn(et(a.value)),min:0,max:XO},t.pathRotation=a.path;let o=a.direction;switch(o===bi.random&&(o=Math.floor(Ct()*Av)>0?bi.counterClockwise:bi.clockwise),o){case bi.counterClockwise:case"counterClockwise":t.rotate.status=Zt.decreasing;break;case bi.clockwise:t.rotate.status=Zt.increasing;break}const r=a.animation;r.enable&&(t.rotate.decay=QO-et(r.decay),t.rotate.velocity=et(r.speed)/ZO*this.container.retina.reduceFactor,r.sync||(t.rotate.velocity*=Ct())),t.rotation=t.rotate.value}isEnabled(t){const a=t.options.rotate;return a?!t.destroyed&&!t.spawning&&(!!a.value||a.animation.enable||a.path):!1}loadOptions(t,...a){t.rotate||(t.rotate=new GO);for(const o of a)t.rotate.load(o?.rotate)}update(t,a){this.isEnabled(t)&&(t.isRotating=!!t.rotate,t.rotate&&(Fc(t,t.rotate,!1,In.none,a),t.rotation=t.rotate.value))}}async function FO(n,t=!0){n.checkVersion("3.9.1"),await n.addParticleUpdater("rotate",a=>Promise.resolve(new KO(a)),t)}const JO=2,$O=Math.sqrt(JO),IO=2;function WO(n){const{context:t,radius:a}=n,o=a/$O,r=o*IO;t.rect(-o,-o,r,r)}const t2=4;class e2{constructor(){this.validTypes=["edge","square"]}draw(t){WO(t)}getSidesCount(){return t2}}async function i2(n,t=!0){n.checkVersion("3.9.1"),await n.addShape(new e2,t)}const n2=2,Is={x:0,y:0};function s2(n){const{context:t,particle:a,radius:o}=n,r=a.sides,u=a.starInset??n2;t.moveTo(Is.x,Is.y-o);for(let c=0;c<r;c++)t.rotate(Math.PI/r),t.lineTo(Is.x,Is.y-o*u),t.rotate(Math.PI/r),t.lineTo(Is.x,Is.y-o)}const a2=2,o2=5;class l2{constructor(){this.validTypes=["star"]}draw(t){s2(t)}getSidesCount(t){const a=t.shapeData;return Math.round(et(a?.sides??o2))}particleInit(t,a){const o=a.shapeData;a.starInset=et(o?.inset??a2)}}async function r2(n,t=!0){n.checkVersion("3.9.1"),await n.addShape(new l2,t)}const u2=1;class c2{constructor(t,a){this._container=t,this._engine=a}init(t){const a=this._container,o=t.options,r=ii(o.stroke,t.id,o.reduceDuplicates);t.strokeWidth=et(r.width)*a.retina.pixelRatio,t.strokeOpacity=et(r.opacity??u2),t.strokeAnimation=r.color?.animation;const u=io(this._engine,r.color)??t.getFillColor();u&&(t.strokeColor=Dg(u,t.strokeAnimation,a.retina.reduceFactor))}isEnabled(t){const a=t.strokeAnimation,{strokeColor:o}=t;return!t.destroyed&&!t.spawning&&!!a&&(o?.h.value!==void 0&&o.h.enable||o?.s.value!==void 0&&o.s.enable||o?.l.value!==void 0&&o.l.enable)}update(t,a){this.isEnabled(t)&&zg(t.strokeColor,a)}}async function f2(n,t=!0){n.checkVersion("3.9.1"),await n.addParticleUpdater("strokeColor",a=>Promise.resolve(new c2(a,n)),t)}async function h2(n,t=!0){n.checkVersion("3.9.1"),await Iz(n,!1),await iD(n,!1),await fD(n,!1),await bD(n,!1),await DD(n,!1),await HD(n,!1),await PD(n,!1),await ZD(n,!1),await $D(n,!1),await rz(n,!1),await dz(n,!1),await eO(n,!1),await cO(n,!1),await DO(n,!1),await QA(n,!1),await FA(n,!1),await Hz(n,!1),await Jz(n,!1),await PO(n,!1),await i2(n,!1),await r2(n,!1),await Qz(n,!1),await FO(n,!1),await f2(n,!1),await XA(n,t)}window.React=Rx,window.ReactDOM={createRoot:Hx.createRoot},window.Motion={motion:v_,useAnimation:w_,AnimatePresence:dM},window.Particles=JE,window.Particles.initParticlesEngine=$E,window.TSParticlesSlim={loadSlim:h2}})();