fluxy-bot 0.7.8 → 0.8.1
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.
- package/dist-fluxy/assets/{fluxy-Bcd5tJrt.js → fluxy-SlJSOG0e.js} +10 -10
- package/dist-fluxy/assets/globals-9_9HQM0-.js +18 -0
- package/dist-fluxy/assets/globals-IRsJSQtJ.css +1 -0
- package/dist-fluxy/assets/{onboard-BSlNrxVH.js → onboard-DDxHz_AS.js} +1 -1
- package/dist-fluxy/fluxy.html +3 -3
- package/dist-fluxy/onboard.html +3 -3
- package/package.json +1 -1
- package/shared/relay.ts +21 -0
- package/supervisor/chat/OnboardWizard.tsx +367 -32
- package/supervisor/chat/fluxy-main.tsx +10 -0
- package/supervisor/index.ts +101 -0
- package/worker/index.ts +46 -1
- package/dist-fluxy/assets/globals-Bs_wR6rP.css +0 -1
- package/dist-fluxy/assets/globals-CMrTFJSE.js +0 -18
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const h of c)if(h.type==="childList")for(const d of h.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function o(c){const h={};return c.integrity&&(h.integrity=c.integrity),c.referrerPolicy&&(h.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?h.credentials="include":c.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(c){if(c.ep)return;c.ep=!0;const h=o(c);fetch(c.href,h)}})();function Sy(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Lc={exports:{}},Bs={};var qp;function a1(){if(qp)return Bs;qp=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function o(r,c,h){var d=null;if(h!==void 0&&(d=""+h),c.key!==void 0&&(d=""+c.key),"key"in c){h={};for(var y in c)y!=="key"&&(h[y]=c[y])}else h=c;return c=h.ref,{$$typeof:a,type:r,key:d,ref:c!==void 0?c:null,props:h}}return Bs.Fragment=l,Bs.jsx=o,Bs.jsxs=o,Bs}var Gp;function i1(){return Gp||(Gp=1,Lc.exports=a1()),Lc.exports}var m=i1(),Hc={exports:{}},rt={};var kp;function l1(){if(kp)return rt;kp=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),d=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),T=Symbol.iterator;function O(w){return w===null||typeof w!="object"?null:(w=T&&w[T]||w["@@iterator"],typeof w=="function"?w:null)}var V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,Y={};function G(w,B,X){this.props=w,this.context=B,this.refs=Y,this.updater=X||V}G.prototype.isReactComponent={},G.prototype.setState=function(w,B){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,B,"setState")},G.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function K(){}K.prototype=G.prototype;function k(w,B,X){this.props=w,this.context=B,this.refs=Y,this.updater=X||V}var P=k.prototype=new K;P.constructor=k,q(P,G.prototype),P.isPureReactComponent=!0;var F=Array.isArray;function it(){}var et={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function lt(w,B,X){var W=X.ref;return{$$typeof:a,type:w,key:B,ref:W!==void 0?W:null,props:X}}function At(w,B){return lt(w.type,B,w.props)}function jt(w){return typeof w=="object"&&w!==null&&w.$$typeof===a}function Nt(w){var B={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(X){return B[X]})}var Ee=/\/+/g;function ie(w,B){return typeof w=="object"&&w!==null&&w.key!=null?Nt(""+w.key):B.toString(36)}function ht(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(it,it):(w.status="pending",w.then(function(B){w.status==="pending"&&(w.status="fulfilled",w.value=B)},function(B){w.status==="pending"&&(w.status="rejected",w.reason=B)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function R(w,B,X,W,ot){var dt=typeof w;(dt==="undefined"||dt==="boolean")&&(w=null);var st=!1;if(w===null)st=!0;else switch(dt){case"bigint":case"string":case"number":st=!0;break;case"object":switch(w.$$typeof){case a:case l:st=!0;break;case x:return st=w._init,R(st(w._payload),B,X,W,ot)}}if(st)return ot=ot(w),st=W===""?"."+ie(w,0):W,F(ot)?(X="",st!=null&&(X=st.replace(Ee,"$&/")+"/"),R(ot,B,X,"",function(ke){return ke})):ot!=null&&(jt(ot)&&(ot=At(ot,X+(ot.key==null||w&&w.key===ot.key?"":(""+ot.key).replace(Ee,"$&/")+"/")+st)),B.push(ot)),1;st=0;var qt=W===""?".":W+":";if(F(w))for(var zt=0;zt<w.length;zt++)W=w[zt],dt=qt+ie(W,zt),st+=R(W,B,X,dt,ot);else if(zt=O(w),typeof zt=="function")for(w=zt.call(w),zt=0;!(W=w.next()).done;)W=W.value,dt=qt+ie(W,zt++),st+=R(W,B,X,dt,ot);else if(dt==="object"){if(typeof w.then=="function")return R(ht(w),B,X,W,ot);throw B=String(w),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return st}function H(w,B,X){if(w==null)return w;var W=[],ot=0;return R(w,W,"","",function(dt){return B.call(X,dt,ot++)}),W}function Z(w){if(w._status===-1){var B=w._result;B=B(),B.then(function(X){(w._status===0||w._status===-1)&&(w._status=1,w._result=X)},function(X){(w._status===0||w._status===-1)&&(w._status=2,w._result=X)}),w._status===-1&&(w._status=0,w._result=B)}if(w._status===1)return w._result.default;throw w._result}var mt=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},ut={map:H,forEach:function(w,B,X){H(w,function(){B.apply(this,arguments)},X)},count:function(w){var B=0;return H(w,function(){B++}),B},toArray:function(w){return H(w,function(B){return B})||[]},only:function(w){if(!jt(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return rt.Activity=b,rt.Children=ut,rt.Component=G,rt.Fragment=o,rt.Profiler=c,rt.PureComponent=k,rt.StrictMode=r,rt.Suspense=v,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=et,rt.__COMPILER_RUNTIME={__proto__:null,c:function(w){return et.H.useMemoCache(w)}},rt.cache=function(w){return function(){return w.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(w,B,X){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var W=q({},w.props),ot=w.key;if(B!=null)for(dt in B.key!==void 0&&(ot=""+B.key),B)!J.call(B,dt)||dt==="key"||dt==="__self"||dt==="__source"||dt==="ref"&&B.ref===void 0||(W[dt]=B[dt]);var dt=arguments.length-2;if(dt===1)W.children=X;else if(1<dt){for(var st=Array(dt),qt=0;qt<dt;qt++)st[qt]=arguments[qt+2];W.children=st}return lt(w.type,ot,W)},rt.createContext=function(w){return w={$$typeof:d,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:h,_context:w},w},rt.createElement=function(w,B,X){var W,ot={},dt=null;if(B!=null)for(W in B.key!==void 0&&(dt=""+B.key),B)J.call(B,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ot[W]=B[W]);var st=arguments.length-2;if(st===1)ot.children=X;else if(1<st){for(var qt=Array(st),zt=0;zt<st;zt++)qt[zt]=arguments[zt+2];ot.children=qt}if(w&&w.defaultProps)for(W in st=w.defaultProps,st)ot[W]===void 0&&(ot[W]=st[W]);return lt(w,dt,ot)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(w){return{$$typeof:y,render:w}},rt.isValidElement=jt,rt.lazy=function(w){return{$$typeof:x,_payload:{_status:-1,_result:w},_init:Z}},rt.memo=function(w,B){return{$$typeof:p,type:w,compare:B===void 0?null:B}},rt.startTransition=function(w){var B=et.T,X={};et.T=X;try{var W=w(),ot=et.S;ot!==null&&ot(X,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(it,mt)}catch(dt){mt(dt)}finally{B!==null&&X.types!==null&&(B.types=X.types),et.T=B}},rt.unstable_useCacheRefresh=function(){return et.H.useCacheRefresh()},rt.use=function(w){return et.H.use(w)},rt.useActionState=function(w,B,X){return et.H.useActionState(w,B,X)},rt.useCallback=function(w,B){return et.H.useCallback(w,B)},rt.useContext=function(w){return et.H.useContext(w)},rt.useDebugValue=function(){},rt.useDeferredValue=function(w,B){return et.H.useDeferredValue(w,B)},rt.useEffect=function(w,B){return et.H.useEffect(w,B)},rt.useEffectEvent=function(w){return et.H.useEffectEvent(w)},rt.useId=function(){return et.H.useId()},rt.useImperativeHandle=function(w,B,X){return et.H.useImperativeHandle(w,B,X)},rt.useInsertionEffect=function(w,B){return et.H.useInsertionEffect(w,B)},rt.useLayoutEffect=function(w,B){return et.H.useLayoutEffect(w,B)},rt.useMemo=function(w,B){return et.H.useMemo(w,B)},rt.useOptimistic=function(w,B){return et.H.useOptimistic(w,B)},rt.useReducer=function(w,B,X){return et.H.useReducer(w,B,X)},rt.useRef=function(w){return et.H.useRef(w)},rt.useState=function(w){return et.H.useState(w)},rt.useSyncExternalStore=function(w,B,X){return et.H.useSyncExternalStore(w,B,X)},rt.useTransition=function(){return et.H.useTransition()},rt.version="19.2.4",rt}var Xp;function Uf(){return Xp||(Xp=1,Hc.exports=l1()),Hc.exports}var M=Uf();const G3=Sy(M);var Yc={exports:{}},Ls={},qc={exports:{}},Gc={};var Kp;function s1(){return Kp||(Kp=1,(function(a){function l(R,H){var Z=R.length;R.push(H);t:for(;0<Z;){var mt=Z-1>>>1,ut=R[mt];if(0<c(ut,H))R[mt]=H,R[Z]=ut,Z=mt;else break t}}function o(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var H=R[0],Z=R.pop();if(Z!==H){R[0]=Z;t:for(var mt=0,ut=R.length,w=ut>>>1;mt<w;){var B=2*(mt+1)-1,X=R[B],W=B+1,ot=R[W];if(0>c(X,Z))W<ut&&0>c(ot,X)?(R[mt]=ot,R[W]=Z,mt=W):(R[mt]=X,R[B]=Z,mt=B);else if(W<ut&&0>c(ot,Z))R[mt]=ot,R[W]=Z,mt=W;else break t}}return H}function c(R,H){var Z=R.sortIndex-H.sortIndex;return Z!==0?Z:R.id-H.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;a.unstable_now=function(){return h.now()}}else{var d=Date,y=d.now();a.unstable_now=function(){return d.now()-y}}var v=[],p=[],x=1,b=null,T=3,O=!1,V=!1,q=!1,Y=!1,G=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function P(R){for(var H=o(p);H!==null;){if(H.callback===null)r(p);else if(H.startTime<=R)r(p),H.sortIndex=H.expirationTime,l(v,H);else break;H=o(p)}}function F(R){if(q=!1,P(R),!V)if(o(v)!==null)V=!0,it||(it=!0,Nt());else{var H=o(p);H!==null&&ht(F,H.startTime-R)}}var it=!1,et=-1,J=5,lt=-1;function At(){return Y?!0:!(a.unstable_now()-lt<J)}function jt(){if(Y=!1,it){var R=a.unstable_now();lt=R;var H=!0;try{t:{V=!1,q&&(q=!1,K(et),et=-1),O=!0;var Z=T;try{e:{for(P(R),b=o(v);b!==null&&!(b.expirationTime>R&&At());){var mt=b.callback;if(typeof mt=="function"){b.callback=null,T=b.priorityLevel;var ut=mt(b.expirationTime<=R);if(R=a.unstable_now(),typeof ut=="function"){b.callback=ut,P(R),H=!0;break e}b===o(v)&&r(v),P(R)}else r(v);b=o(v)}if(b!==null)H=!0;else{var w=o(p);w!==null&&ht(F,w.startTime-R),H=!1}}break t}finally{b=null,T=Z,O=!1}H=void 0}}finally{H?Nt():it=!1}}}var Nt;if(typeof k=="function")Nt=function(){k(jt)};else if(typeof MessageChannel<"u"){var Ee=new MessageChannel,ie=Ee.port2;Ee.port1.onmessage=jt,Nt=function(){ie.postMessage(null)}}else Nt=function(){G(jt,0)};function ht(R,H){et=G(function(){R(a.unstable_now())},H)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(R){R.callback=null},a.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<R?Math.floor(1e3/R):5},a.unstable_getCurrentPriorityLevel=function(){return T},a.unstable_next=function(R){switch(T){case 1:case 2:case 3:var H=3;break;default:H=T}var Z=T;T=H;try{return R()}finally{T=Z}},a.unstable_requestPaint=function(){Y=!0},a.unstable_runWithPriority=function(R,H){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var Z=T;T=R;try{return H()}finally{T=Z}},a.unstable_scheduleCallback=function(R,H,Z){var mt=a.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?mt+Z:mt):Z=mt,R){case 1:var ut=-1;break;case 2:ut=250;break;case 5:ut=1073741823;break;case 4:ut=1e4;break;default:ut=5e3}return ut=Z+ut,R={id:x++,callback:H,priorityLevel:R,startTime:Z,expirationTime:ut,sortIndex:-1},Z>mt?(R.sortIndex=Z,l(p,R),o(v)===null&&R===o(p)&&(q?(K(et),et=-1):q=!0,ht(F,Z-mt))):(R.sortIndex=ut,l(v,R),V||O||(V=!0,it||(it=!0,Nt()))),R},a.unstable_shouldYield=At,a.unstable_wrapCallback=function(R){var H=T;return function(){var Z=T;T=H;try{return R.apply(this,arguments)}finally{T=Z}}}})(Gc)),Gc}var Qp;function o1(){return Qp||(Qp=1,qc.exports=s1()),qc.exports}var kc={exports:{}},ge={};var Zp;function r1(){if(Zp)return ge;Zp=1;var a=Uf();function l(v){var p="https://react.dev/errors/"+v;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+v+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(l(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function h(v,p,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:v,containerInfo:p,implementation:x}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ge.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ge.createPortal=function(v,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return h(v,p,null,x)},ge.flushSync=function(v){var p=d.T,x=r.p;try{if(d.T=null,r.p=2,v)return v()}finally{d.T=p,r.p=x,r.d.f()}},ge.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(v,p))},ge.prefetchDNS=function(v){typeof v=="string"&&r.d.D(v)},ge.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var x=p.as,b=y(x,p.crossOrigin),T=typeof p.integrity=="string"?p.integrity:void 0,O=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?r.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:T,fetchPriority:O}):x==="script"&&r.d.X(v,{crossOrigin:b,integrity:T,fetchPriority:O,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ge.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=y(p.as,p.crossOrigin);r.d.M(v,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(v)},ge.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,b=y(x,p.crossOrigin);r.d.L(v,x,{crossOrigin:b,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})}},ge.preloadModule=function(v,p){if(typeof v=="string")if(p){var x=y(p.as,p.crossOrigin);r.d.m(v,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(v)},ge.requestFormReset=function(v){r.d.r(v)},ge.unstable_batchedUpdates=function(v,p){return v(p)},ge.useFormState=function(v,p,x){return d.H.useFormState(v,p,x)},ge.useFormStatus=function(){return d.H.useHostTransitionStatus()},ge.version="19.2.4",ge}var Jp;function u1(){if(Jp)return kc.exports;Jp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),kc.exports=r1(),kc.exports}var Fp;function c1(){if(Fp)return Ls;Fp=1;var a=o1(),l=Uf(),o=u1();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function d(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function v(t){if(h(t)!==t)throw Error(r(188))}function p(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(r(188));return e!==t?null:t}for(var n=t,i=e;;){var s=n.return;if(s===null)break;var u=s.alternate;if(u===null){if(i=s.return,i!==null){n=i;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===n)return v(s),t;if(u===i)return v(s),e;u=u.sibling}throw Error(r(188))}if(n.return!==i.return)n=s,i=u;else{for(var f=!1,g=s.child;g;){if(g===n){f=!0,n=s,i=u;break}if(g===i){f=!0,i=s,n=u;break}g=g.sibling}if(!f){for(g=u.child;g;){if(g===n){f=!0,n=u,i=s;break}if(g===i){f=!0,i=u,n=s;break}g=g.sibling}if(!f)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?t:e}function x(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=x(t),e!==null)return e;t=t.sibling}return null}var b=Object.assign,T=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),k=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),it=Symbol.for("react.suspense_list"),et=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),lt=Symbol.for("react.activity"),At=Symbol.for("react.memo_cache_sentinel"),jt=Symbol.iterator;function Nt(t){return t===null||typeof t!="object"?null:(t=jt&&t[jt]||t["@@iterator"],typeof t=="function"?t:null)}var Ee=Symbol.for("react.client.reference");function ie(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ee?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case q:return"Fragment";case G:return"Profiler";case Y:return"StrictMode";case F:return"Suspense";case it:return"SuspenseList";case lt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case V:return"Portal";case k:return t.displayName||"Context";case K:return(t._context.displayName||"Context")+".Consumer";case P:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case et:return e=t.displayName||null,e!==null?e:ie(t.type)||"Memo";case J:e=t._payload,t=t._init;try{return ie(t(e))}catch{}}return null}var ht=Array.isArray,R=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},mt=[],ut=-1;function w(t){return{current:t}}function B(t){0>ut||(t.current=mt[ut],mt[ut]=null,ut--)}function X(t,e){ut++,mt[ut]=t.current,t.current=e}var W=w(null),ot=w(null),dt=w(null),st=w(null);function qt(t,e){switch(X(dt,e),X(ot,t),X(W,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?cp(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=cp(e),t=fp(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}B(W),X(W,t)}function zt(){B(W),B(ot),B(dt)}function ke(t){t.memoizedState!==null&&X(st,t);var e=W.current,n=fp(e,t.type);e!==n&&(X(ot,t),X(W,n))}function xn(t){ot.current===t&&(B(W),B(ot)),st.current===t&&(B(st),Rs._currentValue=Z)}var he,Di;function ln(t){if(he===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);he=e&&e[1]||"",Di=-1<n.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+he+t+Di}var Ul=!1;function Bl(t,e){if(!t||Ul)return"";Ul=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(z){var D=z}Reflect.construct(t,[],L)}else{try{L.call()}catch(z){D=z}t.call(L.prototype)}}else{try{throw Error()}catch(z){D=z}(L=t())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(z){if(z&&D&&typeof z.stack=="string")return[z.stack,D.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=i.DetermineComponentFrameRoot(),f=u[0],g=u[1];if(f&&g){var S=f.split(`
|
|
4
|
+
`),N=g.split(`
|
|
5
|
+
`);for(s=i=0;i<S.length&&!S[i].includes("DetermineComponentFrameRoot");)i++;for(;s<N.length&&!N[s].includes("DetermineComponentFrameRoot");)s++;if(i===S.length||s===N.length)for(i=S.length-1,s=N.length-1;1<=i&&0<=s&&S[i]!==N[s];)s--;for(;1<=i&&0<=s;i--,s--)if(S[i]!==N[s]){if(i!==1||s!==1)do if(i--,s--,0>s||S[i]!==N[s]){var _=`
|
|
6
|
+
`+S[i].replace(" at new "," at ");return t.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",t.displayName)),_}while(1<=i&&0<=s);break}}}finally{Ul=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ln(n):""}function Hr(t,e){switch(t.tag){case 26:case 27:case 5:return ln(t.type);case 16:return ln("Lazy");case 13:return t.child!==e&&e!==null?ln("Suspense Fallback"):ln("Suspense");case 19:return ln("SuspenseList");case 0:case 15:return Bl(t.type,!1);case 11:return Bl(t.type.render,!1);case 1:return Bl(t.type,!0);case 31:return ln("Activity");default:return""}}function Re(t){try{var e="",n=null;do e+=Hr(t,n),n=t,t=t.return;while(t);return e}catch(i){return`
|
|
7
|
+
Error generating stack: `+i.message+`
|
|
8
|
+
`+i.stack}}var bn=Object.prototype.hasOwnProperty,xe=a.unstable_scheduleCallback,Oi=a.unstable_cancelCallback,Sn=a.unstable_shouldYield,Ll=a.unstable_requestPaint,me=a.unstable_now,eo=a.unstable_getCurrentPriorityLevel,no=a.unstable_ImmediatePriority,Hl=a.unstable_UserBlockingPriority,Za=a.unstable_NormalPriority,zi=a.unstable_LowPriority,Ja=a.unstable_IdlePriority,Fa=a.log,ao=a.unstable_setDisableYieldValue,Xe=null,pe=null;function sn(t){if(typeof Fa=="function"&&ao(t),pe&&typeof pe.setStrictMode=="function")try{pe.setStrictMode(Xe,t)}catch{}}var Ht=Math.clz32?Math.clz32:ql,Yr=Math.log,Yl=Math.LN2;function ql(t){return t>>>=0,t===0?32:31-(Yr(t)/Yl|0)|0}var sa=256,oa=262144,ra=4194304;function Tn(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Pa(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var s=0,u=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var g=i&134217727;return g!==0?(i=g&~u,i!==0?s=Tn(i):(f&=g,f!==0?s=Tn(f):n||(n=g&~t,n!==0&&(s=Tn(n))))):(g=i&~u,g!==0?s=Tn(g):f!==0?s=Tn(f):n||(n=i&~t,n!==0&&(s=Tn(n)))),s===0?0:e!==0&&e!==s&&(e&u)===0&&(u=s&-s,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:s}function An(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Gl(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ri(){var t=ra;return ra<<=1,(ra&62914560)===0&&(ra=4194304),t}function Wa(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ua(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function io(t,e,n,i,s,u){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var g=t.entanglements,S=t.expirationTimes,N=t.hiddenUpdates;for(n=f&~n;0<n;){var _=31-Ht(n),L=1<<_;g[_]=0,S[_]=-1;var D=N[_];if(D!==null)for(N[_]=null,_=0;_<D.length;_++){var z=D[_];z!==null&&(z.lane&=-536870913)}n&=~L}i!==0&&$a(t,i,0),u!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=u&~(f&~e))}function $a(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-Ht(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&261930}function lo(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-Ht(n),s=1<<i;s&e|t[i]&e&&(t[i]|=e),n&=~s}}function so(t,e){var n=e&-e;return n=(n&42)!==0?1:se(n),(n&(t.suspendedLanes|e))!==0?0:n}function se(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Vi(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ia(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:Vp(t.type))}function kl(t,e){var n=H.p;try{return H.p=t,e()}finally{H.p=n}}var on=Math.random().toString(36).slice(2),kt="__reactFiber$"+on,_t="__reactProps$"+on,ca="__reactContainer$"+on,_i="__reactEvents$"+on,qr="__reactListeners$"+on,fa="__reactHandles$"+on,oo="__reactResources$"+on,da="__reactMarker$"+on;function ha(t){delete t[kt],delete t[_t],delete t[_i],delete t[qr],delete t[fa]}function rn(t){var e=t[kt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[ca]||n[kt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=vp(t);t!==null;){if(n=t[kt])return n;t=vp(t)}return e}t=n,n=t.parentNode}return null}function Ln(t){if(t=t[kt]||t[ca]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ma(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Hn(t){var e=t[oo];return e||(e=t[oo]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Rt(t){t[da]=!0}var Xl=new Set,Ke={};function wn(t,e){be(t,e),be(t+"Capture",e)}function be(t,e){for(Ke[t]=e,t=0;t<e.length;t++)Xl.add(e[t])}var En=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]*$"),Ui={},pa={};function Bi(t){return bn.call(pa,t)?!0:bn.call(Ui,t)?!1:En.test(t)?pa[t]=!0:(Ui[t]=!0,!1)}function Cn(t,e,n){if(Bi(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var i=e.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function ti(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function Se(t,e,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+i)}}function oe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Li(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ei(t,e,n){var i=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var s=i.get,u=i.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(f){n=""+f,u.call(this,f)}}),Object.defineProperty(t,e,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ni(t){if(!t._valueTracker){var e=Li(t)?"checked":"value";t._valueTracker=ei(t,e,""+t[e])}}function Kl(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=Li(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function ai(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Hi=/[\n"\\]/g;function Zt(t){return t.replace(Hi,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Yi(t,e,n,i,s,u,f,g){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+oe(e)):t.value!==""+oe(e)&&(t.value=""+oe(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?ii(t,f,oe(e)):n!=null?ii(t,f,oe(n)):i!=null&&t.removeAttribute("value"),s==null&&u!=null&&(t.defaultChecked=!!u),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.name=""+oe(g):t.removeAttribute("name")}function qi(t,e,n,i,s,u,f,g){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){ni(t);return}n=n!=null?""+oe(n):"",e=e!=null?""+oe(e):n,g||e===t.value||(t.value=e),t.defaultValue=e}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=g?t.checked:!!i,t.defaultChecked=!!i,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),ni(t)}function ii(t,e,n){e==="number"&&ai(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Yn(t,e,n,i){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&i&&(t[n].defaultSelected=!0)}else{for(n=""+oe(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,i&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function ro(t,e,n){if(e!=null&&(e=""+oe(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+oe(n):""}function Gi(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(r(92));if(ht(i)){if(1<i.length)throw Error(r(93));i=i[0]}n=i}n==null&&(n=""),e=n}n=oe(e),t.defaultValue=n,i=t.textContent,i===n&&i!==""&&i!==null&&(t.value=i),ni(t)}function un(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Ql=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 Zl(t,e,n){var i=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":i?t.setProperty(e,n):typeof n!="number"||n===0||Ql.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function li(t,e,n){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||e!=null&&e.hasOwnProperty(i)||(i.indexOf("--")===0?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="");for(var s in e)i=e[s],e.hasOwnProperty(s)&&n[s]!==i&&Zl(t,s,i)}else for(var u in e)e.hasOwnProperty(u)&&Zl(t,u,e[u])}function Jl(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Gr=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"]]),ya=/^[\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 cn(t){return ya.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Qe(){}var ki=null;function si(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ce=null,jn=null;function uo(t){var e=Ln(t);if(e&&(t=e.stateNode)){var n=t[_t]||null;t:switch(t=e.stateNode,e.type){case"input":if(Yi(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Zt(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var s=i[_t]||null;if(!s)throw Error(r(90));Yi(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(e=0;e<n.length;e++)i=n[e],i.form===t.form&&Kl(i)}break t;case"textarea":ro(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Yn(t,!!n.multiple,e,!1)}}}var Fl=!1;function Xi(t,e,n){if(Fl)return t(e,n);Fl=!0;try{var i=t(e);return i}finally{if(Fl=!1,(Ce!==null||jn!==null)&&(Jo(),Ce&&(e=Ce,t=jn,jn=Ce=null,uo(e),t)))for(e=0;e<t.length;e++)uo(t[e])}}function qn(t,e){var n=t.stateNode;if(n===null)return null;var i=n[_t]||null;if(i===null)return null;n=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(r(231,e,typeof n));return n}var fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pl=!1;if(fn)try{var oi={};Object.defineProperty(oi,"passive",{get:function(){Pl=!0}}),window.addEventListener("test",oi,oi),window.removeEventListener("test",oi,oi)}catch{Pl=!1}var Nn=null,Ki=null,Qi=null;function Wl(){if(Qi)return Qi;var t,e=Ki,n=e.length,i,s="value"in Nn?Nn.value:Nn.textContent,u=s.length;for(t=0;t<n&&e[t]===s[t];t++);var f=n-t;for(i=1;i<=f&&e[n-i]===s[u-i];i++);return Qi=s.slice(t,1<i?1-i:void 0)}function Zi(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Ji(){return!0}function co(){return!1}function ye(t){function e(n,i,s,u,f){this._reactName=n,this._targetInst=s,this.type=i,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var g in t)t.hasOwnProperty(g)&&(n=t[g],this[g]=n?n(u):u[g]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Ji:co,this.isPropagationStopped=co,this}return b(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ji)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ji)},persist:function(){},isPersistent:Ji}),e}var Mn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ri=ye(Mn),ui=b({},Mn,{view:0,detail:0}),ga=ye(ui),Ve,$l,Gn,Fi=b({},ui,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kr,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Gn&&(Gn&&t.type==="mousemove"?(Ve=t.screenX-Gn.screenX,$l=t.screenY-Gn.screenY):$l=Ve=0,Gn=t),Ve)},movementY:function(t){return"movementY"in t?t.movementY:$l}}),Ze=ye(Fi),Il=b({},Fi,{dataTransfer:0}),C=ye(Il),Q=b({},ui,{relatedTarget:0}),wt=ye(Q),je=b({},Mn,{animationName:0,elapsedTime:0,pseudoElement:0}),va=ye(je),fo=b({},Mn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),xa=ye(fo),uv=b({},Mn,{data:0}),md=ye(uv),cv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fv={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"},dv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=dv[t])?!!e[t]:!1}function kr(){return hv}var mv=b({},ui,{key:function(t){if(t.key){var e=cv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Zi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?fv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kr,charCode:function(t){return t.type==="keypress"?Zi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Zi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),pv=ye(mv),yv=b({},Fi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pd=ye(yv),gv=b({},ui,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kr}),vv=ye(gv),xv=b({},Mn,{propertyName:0,elapsedTime:0,pseudoElement:0}),bv=ye(xv),Sv=b({},Fi,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Tv=ye(Sv),Av=b({},Mn,{newState:0,oldState:0}),wv=ye(Av),Ev=[9,13,27,32],Xr=fn&&"CompositionEvent"in window,ts=null;fn&&"documentMode"in document&&(ts=document.documentMode);var Cv=fn&&"TextEvent"in window&&!ts,yd=fn&&(!Xr||ts&&8<ts&&11>=ts),gd=" ",vd=!1;function xd(t,e){switch(t){case"keyup":return Ev.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Pi=!1;function jv(t,e){switch(t){case"compositionend":return bd(e);case"keypress":return e.which!==32?null:(vd=!0,gd);case"textInput":return t=e.data,t===gd&&vd?null:t;default:return null}}function Nv(t,e){if(Pi)return t==="compositionend"||!Xr&&xd(t,e)?(t=Wl(),Qi=Ki=Nn=null,Pi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return yd&&e.locale!=="ko"?null:e.data;default:return null}}var Mv={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 Sd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Mv[t.type]:e==="textarea"}function Td(t,e,n,i){Ce?jn?jn.push(i):jn=[i]:Ce=i,e=er(e,"onChange"),0<e.length&&(n=new ri("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var es=null,ns=null;function Dv(t){ip(t,0)}function ho(t){var e=ma(t);if(Kl(e))return t}function Ad(t,e){if(t==="change")return e}var wd=!1;if(fn){var Kr;if(fn){var Qr="oninput"in document;if(!Qr){var Ed=document.createElement("div");Ed.setAttribute("oninput","return;"),Qr=typeof Ed.oninput=="function"}Kr=Qr}else Kr=!1;wd=Kr&&(!document.documentMode||9<document.documentMode)}function Cd(){es&&(es.detachEvent("onpropertychange",jd),ns=es=null)}function jd(t){if(t.propertyName==="value"&&ho(ns)){var e=[];Td(e,ns,t,si(t)),Xi(Dv,e)}}function Ov(t,e,n){t==="focusin"?(Cd(),es=e,ns=n,es.attachEvent("onpropertychange",jd)):t==="focusout"&&Cd()}function zv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ho(ns)}function Rv(t,e){if(t==="click")return ho(e)}function Vv(t,e){if(t==="input"||t==="change")return ho(e)}function _v(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var _e=typeof Object.is=="function"?Object.is:_v;function as(t,e){if(_e(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var s=n[i];if(!bn.call(e,s)||!_e(t[s],e[s]))return!1}return!0}function Nd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Md(t,e){var n=Nd(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Nd(n)}}function Dd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Dd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Od(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ai(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ai(t.document)}return e}function Zr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Uv=fn&&"documentMode"in document&&11>=document.documentMode,Wi=null,Jr=null,is=null,Fr=!1;function zd(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fr||Wi==null||Wi!==ai(i)||(i=Wi,"selectionStart"in i&&Zr(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),is&&as(is,i)||(is=i,i=er(Jr,"onSelect"),0<i.length&&(e=new ri("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=Wi)))}function ci(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var $i={animationend:ci("Animation","AnimationEnd"),animationiteration:ci("Animation","AnimationIteration"),animationstart:ci("Animation","AnimationStart"),transitionrun:ci("Transition","TransitionRun"),transitionstart:ci("Transition","TransitionStart"),transitioncancel:ci("Transition","TransitionCancel"),transitionend:ci("Transition","TransitionEnd")},Pr={},Rd={};fn&&(Rd=document.createElement("div").style,"AnimationEvent"in window||(delete $i.animationend.animation,delete $i.animationiteration.animation,delete $i.animationstart.animation),"TransitionEvent"in window||delete $i.transitionend.transition);function fi(t){if(Pr[t])return Pr[t];if(!$i[t])return t;var e=$i[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Rd)return Pr[t]=e[n];return t}var Vd=fi("animationend"),_d=fi("animationiteration"),Ud=fi("animationstart"),Bv=fi("transitionrun"),Lv=fi("transitionstart"),Hv=fi("transitioncancel"),Bd=fi("transitionend"),Ld=new Map,Wr="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(" ");Wr.push("scrollEnd");function dn(t,e){Ld.set(t,e),wn(e,[t])}var mo=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Je=[],Ii=0,$r=0;function po(){for(var t=Ii,e=$r=Ii=0;e<t;){var n=Je[e];Je[e++]=null;var i=Je[e];Je[e++]=null;var s=Je[e];Je[e++]=null;var u=Je[e];if(Je[e++]=null,i!==null&&s!==null){var f=i.pending;f===null?s.next=s:(s.next=f.next,f.next=s),i.pending=s}u!==0&&Hd(n,s,u)}}function yo(t,e,n,i){Je[Ii++]=t,Je[Ii++]=e,Je[Ii++]=n,Je[Ii++]=i,$r|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function Ir(t,e,n,i){return yo(t,e,n,i),go(t)}function di(t,e){return yo(t,null,null,e),go(t)}function Hd(t,e,n){t.lanes|=n;var i=t.alternate;i!==null&&(i.lanes|=n);for(var s=!1,u=t.return;u!==null;)u.childLanes|=n,i=u.alternate,i!==null&&(i.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(s=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,s&&e!==null&&(s=31-Ht(n),t=u.hiddenUpdates,i=t[s],i===null?t[s]=[e]:i.push(e),e.lane=n|536870912),u):null}function go(t){if(50<Cs)throw Cs=0,rc=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var tl={};function Yv(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ue(t,e,n,i){return new Yv(t,e,n,i)}function tu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function kn(t,e){var n=t.alternate;return n===null?(n=Ue(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Yd(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function vo(t,e,n,i,s,u){var f=0;if(i=t,typeof t=="function")tu(t)&&(f=1);else if(typeof t=="string")f=Kx(t,n,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case lt:return t=Ue(31,n,e,s),t.elementType=lt,t.lanes=u,t;case q:return hi(n.children,s,u,e);case Y:f=8,s|=24;break;case G:return t=Ue(12,n,e,s|2),t.elementType=G,t.lanes=u,t;case F:return t=Ue(13,n,e,s),t.elementType=F,t.lanes=u,t;case it:return t=Ue(19,n,e,s),t.elementType=it,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case k:f=10;break t;case K:f=9;break t;case P:f=11;break t;case et:f=14;break t;case J:f=16,i=null;break t}f=29,n=Error(r(130,t===null?"null":typeof t,"")),i=null}return e=Ue(f,n,e,s),e.elementType=t,e.type=i,e.lanes=u,e}function hi(t,e,n,i){return t=Ue(7,t,i,e),t.lanes=n,t}function eu(t,e,n){return t=Ue(6,t,null,e),t.lanes=n,t}function qd(t){var e=Ue(18,null,null,0);return e.stateNode=t,e}function nu(t,e,n){return e=Ue(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Gd=new WeakMap;function Fe(t,e){if(typeof t=="object"&&t!==null){var n=Gd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Re(e)},Gd.set(t,e),e)}return{value:t,source:e,stack:Re(e)}}var el=[],nl=0,xo=null,ls=0,Pe=[],We=0,ba=null,Dn=1,On="";function Xn(t,e){el[nl++]=ls,el[nl++]=xo,xo=t,ls=e}function kd(t,e,n){Pe[We++]=Dn,Pe[We++]=On,Pe[We++]=ba,ba=t;var i=Dn;t=On;var s=32-Ht(i)-1;i&=~(1<<s),n+=1;var u=32-Ht(e)+s;if(30<u){var f=s-s%5;u=(i&(1<<f)-1).toString(32),i>>=f,s-=f,Dn=1<<32-Ht(e)+s|n<<s|i,On=u+t}else Dn=1<<u|n<<s|i,On=t}function au(t){t.return!==null&&(Xn(t,1),kd(t,1,0))}function iu(t){for(;t===xo;)xo=el[--nl],el[nl]=null,ls=el[--nl],el[nl]=null;for(;t===ba;)ba=Pe[--We],Pe[We]=null,On=Pe[--We],Pe[We]=null,Dn=Pe[--We],Pe[We]=null}function Xd(t,e){Pe[We++]=Dn,Pe[We++]=On,Pe[We++]=ba,Dn=e.id,On=e.overflow,ba=t}var re=null,Bt=null,xt=!1,Sa=null,$e=!1,lu=Error(r(519));function Ta(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ss(Fe(e,t)),lu}function Kd(t){var e=t.stateNode,n=t.type,i=t.memoizedProps;switch(e[kt]=t,e[_t]=i,n){case"dialog":yt("cancel",e),yt("close",e);break;case"iframe":case"object":case"embed":yt("load",e);break;case"video":case"audio":for(n=0;n<Ns.length;n++)yt(Ns[n],e);break;case"source":yt("error",e);break;case"img":case"image":case"link":yt("error",e),yt("load",e);break;case"details":yt("toggle",e);break;case"input":yt("invalid",e),qi(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":yt("invalid",e);break;case"textarea":yt("invalid",e),Gi(e,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||i.suppressHydrationWarning===!0||rp(e.textContent,n)?(i.popover!=null&&(yt("beforetoggle",e),yt("toggle",e)),i.onScroll!=null&&yt("scroll",e),i.onScrollEnd!=null&&yt("scrollend",e),i.onClick!=null&&(e.onclick=Qe),e=!0):e=!1,e||Ta(t,!0)}function Qd(t){for(re=t.return;re;)switch(re.tag){case 5:case 31:case 13:$e=!1;return;case 27:case 3:$e=!0;return;default:re=re.return}}function al(t){if(t!==re)return!1;if(!xt)return Qd(t),xt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Ac(t.type,t.memoizedProps)),n=!n),n&&Bt&&Ta(t),Qd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Bt=gp(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Bt=gp(t)}else e===27?(e=Bt,Ua(t.type)?(t=Nc,Nc=null,Bt=t):Bt=e):Bt=re?tn(t.stateNode.nextSibling):null;return!0}function mi(){Bt=re=null,xt=!1}function su(){var t=Sa;return t!==null&&(Oe===null?Oe=t:Oe.push.apply(Oe,t),Sa=null),t}function ss(t){Sa===null?Sa=[t]:Sa.push(t)}var ou=w(null),pi=null,Kn=null;function Aa(t,e,n){X(ou,e._currentValue),e._currentValue=n}function Qn(t){t._currentValue=ou.current,B(ou)}function ru(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function uu(t,e,n,i){var s=t.child;for(s!==null&&(s.return=t);s!==null;){var u=s.dependencies;if(u!==null){var f=s.child;u=u.firstContext;t:for(;u!==null;){var g=u;u=s;for(var S=0;S<e.length;S++)if(g.context===e[S]){u.lanes|=n,g=u.alternate,g!==null&&(g.lanes|=n),ru(u.return,n,t),i||(f=null);break t}u=g.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(r(341));f.lanes|=n,u=f.alternate,u!==null&&(u.lanes|=n),ru(f,n,t),f=null}else f=s.child;if(f!==null)f.return=s;else for(f=s;f!==null;){if(f===t){f=null;break}if(s=f.sibling,s!==null){s.return=f.return,f=s;break}f=f.return}s=f}}function il(t,e,n,i){t=null;for(var s=e,u=!1;s!==null;){if(!u){if((s.flags&524288)!==0)u=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var g=s.type;_e(s.pendingProps.value,f.value)||(t!==null?t.push(g):t=[g])}}else if(s===st.current){if(f=s.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(Rs):t=[Rs])}s=s.return}t!==null&&uu(e,t,n,i),e.flags|=262144}function bo(t){for(t=t.firstContext;t!==null;){if(!_e(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function yi(t){pi=t,Kn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ue(t){return Zd(pi,t)}function So(t,e){return pi===null&&yi(t),Zd(t,e)}function Zd(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Kn===null){if(t===null)throw Error(r(308));Kn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Kn=Kn.next=e;return n}var qv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,i){t.push(i)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},Gv=a.unstable_scheduleCallback,kv=a.unstable_NormalPriority,Pt={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cu(){return{controller:new qv,data:new Map,refCount:0}}function os(t){t.refCount--,t.refCount===0&&Gv(kv,function(){t.controller.abort()})}var rs=null,fu=0,ll=0,sl=null;function Xv(t,e){if(rs===null){var n=rs=[];fu=0,ll=mc(),sl={status:"pending",value:void 0,then:function(i){n.push(i)}}}return fu++,e.then(Jd,Jd),e}function Jd(){if(--fu===0&&rs!==null){sl!==null&&(sl.status="fulfilled");var t=rs;rs=null,ll=0,sl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Kv(t,e){var n=[],i={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){i.status="fulfilled",i.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(i.status="rejected",i.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),i}var Fd=R.S;R.S=function(t,e){zm=me(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Xv(t,e),Fd!==null&&Fd(t,e)};var gi=w(null);function du(){var t=gi.current;return t!==null?t:Vt.pooledCache}function To(t,e){e===null?X(gi,gi.current):X(gi,e.pool)}function Pd(){var t=du();return t===null?null:{parent:Pt._currentValue,pool:t}}var ol=Error(r(460)),hu=Error(r(474)),Ao=Error(r(542)),wo={then:function(){}};function Wd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function $d(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Qe,Qe),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,th(t),t;default:if(typeof e.status=="string")e.then(Qe,Qe);else{if(t=Vt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(i){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=i}},function(i){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=i}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,th(t),t}throw xi=e,ol}}function vi(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(xi=n,ol):n}}var xi=null;function Id(){if(xi===null)throw Error(r(459));var t=xi;return xi=null,t}function th(t){if(t===ol||t===Ao)throw Error(r(483))}var rl=null,us=0;function Eo(t){var e=us;return us+=1,rl===null&&(rl=[]),$d(rl,t,e)}function cs(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Co(t,e){throw e.$$typeof===T?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function eh(t){function e(E,A){if(t){var j=E.deletions;j===null?(E.deletions=[A],E.flags|=16):j.push(A)}}function n(E,A){if(!t)return null;for(;A!==null;)e(E,A),A=A.sibling;return null}function i(E){for(var A=new Map;E!==null;)E.key!==null?A.set(E.key,E):A.set(E.index,E),E=E.sibling;return A}function s(E,A){return E=kn(E,A),E.index=0,E.sibling=null,E}function u(E,A,j){return E.index=j,t?(j=E.alternate,j!==null?(j=j.index,j<A?(E.flags|=67108866,A):j):(E.flags|=67108866,A)):(E.flags|=1048576,A)}function f(E){return t&&E.alternate===null&&(E.flags|=67108866),E}function g(E,A,j,U){return A===null||A.tag!==6?(A=eu(j,E.mode,U),A.return=E,A):(A=s(A,j),A.return=E,A)}function S(E,A,j,U){var nt=j.type;return nt===q?_(E,A,j.props.children,U,j.key):A!==null&&(A.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===J&&vi(nt)===A.type)?(A=s(A,j.props),cs(A,j),A.return=E,A):(A=vo(j.type,j.key,j.props,null,E.mode,U),cs(A,j),A.return=E,A)}function N(E,A,j,U){return A===null||A.tag!==4||A.stateNode.containerInfo!==j.containerInfo||A.stateNode.implementation!==j.implementation?(A=nu(j,E.mode,U),A.return=E,A):(A=s(A,j.children||[]),A.return=E,A)}function _(E,A,j,U,nt){return A===null||A.tag!==7?(A=hi(j,E.mode,U,nt),A.return=E,A):(A=s(A,j),A.return=E,A)}function L(E,A,j){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=eu(""+A,E.mode,j),A.return=E,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case O:return j=vo(A.type,A.key,A.props,null,E.mode,j),cs(j,A),j.return=E,j;case V:return A=nu(A,E.mode,j),A.return=E,A;case J:return A=vi(A),L(E,A,j)}if(ht(A)||Nt(A))return A=hi(A,E.mode,j,null),A.return=E,A;if(typeof A.then=="function")return L(E,Eo(A),j);if(A.$$typeof===k)return L(E,So(E,A),j);Co(E,A)}return null}function D(E,A,j,U){var nt=A!==null?A.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return nt!==null?null:g(E,A,""+j,U);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case O:return j.key===nt?S(E,A,j,U):null;case V:return j.key===nt?N(E,A,j,U):null;case J:return j=vi(j),D(E,A,j,U)}if(ht(j)||Nt(j))return nt!==null?null:_(E,A,j,U,null);if(typeof j.then=="function")return D(E,A,Eo(j),U);if(j.$$typeof===k)return D(E,A,So(E,j),U);Co(E,j)}return null}function z(E,A,j,U,nt){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return E=E.get(j)||null,g(A,E,""+U,nt);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case O:return E=E.get(U.key===null?j:U.key)||null,S(A,E,U,nt);case V:return E=E.get(U.key===null?j:U.key)||null,N(A,E,U,nt);case J:return U=vi(U),z(E,A,j,U,nt)}if(ht(U)||Nt(U))return E=E.get(j)||null,_(A,E,U,nt,null);if(typeof U.then=="function")return z(E,A,j,Eo(U),nt);if(U.$$typeof===k)return z(E,A,j,So(A,U),nt);Co(A,U)}return null}function $(E,A,j,U){for(var nt=null,bt=null,tt=A,ft=A=0,vt=null;tt!==null&&ft<j.length;ft++){tt.index>ft?(vt=tt,tt=null):vt=tt.sibling;var St=D(E,tt,j[ft],U);if(St===null){tt===null&&(tt=vt);break}t&&tt&&St.alternate===null&&e(E,tt),A=u(St,A,ft),bt===null?nt=St:bt.sibling=St,bt=St,tt=vt}if(ft===j.length)return n(E,tt),xt&&Xn(E,ft),nt;if(tt===null){for(;ft<j.length;ft++)tt=L(E,j[ft],U),tt!==null&&(A=u(tt,A,ft),bt===null?nt=tt:bt.sibling=tt,bt=tt);return xt&&Xn(E,ft),nt}for(tt=i(tt);ft<j.length;ft++)vt=z(tt,E,ft,j[ft],U),vt!==null&&(t&&vt.alternate!==null&&tt.delete(vt.key===null?ft:vt.key),A=u(vt,A,ft),bt===null?nt=vt:bt.sibling=vt,bt=vt);return t&&tt.forEach(function(qa){return e(E,qa)}),xt&&Xn(E,ft),nt}function at(E,A,j,U){if(j==null)throw Error(r(151));for(var nt=null,bt=null,tt=A,ft=A=0,vt=null,St=j.next();tt!==null&&!St.done;ft++,St=j.next()){tt.index>ft?(vt=tt,tt=null):vt=tt.sibling;var qa=D(E,tt,St.value,U);if(qa===null){tt===null&&(tt=vt);break}t&&tt&&qa.alternate===null&&e(E,tt),A=u(qa,A,ft),bt===null?nt=qa:bt.sibling=qa,bt=qa,tt=vt}if(St.done)return n(E,tt),xt&&Xn(E,ft),nt;if(tt===null){for(;!St.done;ft++,St=j.next())St=L(E,St.value,U),St!==null&&(A=u(St,A,ft),bt===null?nt=St:bt.sibling=St,bt=St);return xt&&Xn(E,ft),nt}for(tt=i(tt);!St.done;ft++,St=j.next())St=z(tt,E,ft,St.value,U),St!==null&&(t&&St.alternate!==null&&tt.delete(St.key===null?ft:St.key),A=u(St,A,ft),bt===null?nt=St:bt.sibling=St,bt=St);return t&&tt.forEach(function(n1){return e(E,n1)}),xt&&Xn(E,ft),nt}function Ot(E,A,j,U){if(typeof j=="object"&&j!==null&&j.type===q&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case O:t:{for(var nt=j.key;A!==null;){if(A.key===nt){if(nt=j.type,nt===q){if(A.tag===7){n(E,A.sibling),U=s(A,j.props.children),U.return=E,E=U;break t}}else if(A.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===J&&vi(nt)===A.type){n(E,A.sibling),U=s(A,j.props),cs(U,j),U.return=E,E=U;break t}n(E,A);break}else e(E,A);A=A.sibling}j.type===q?(U=hi(j.props.children,E.mode,U,j.key),U.return=E,E=U):(U=vo(j.type,j.key,j.props,null,E.mode,U),cs(U,j),U.return=E,E=U)}return f(E);case V:t:{for(nt=j.key;A!==null;){if(A.key===nt)if(A.tag===4&&A.stateNode.containerInfo===j.containerInfo&&A.stateNode.implementation===j.implementation){n(E,A.sibling),U=s(A,j.children||[]),U.return=E,E=U;break t}else{n(E,A);break}else e(E,A);A=A.sibling}U=nu(j,E.mode,U),U.return=E,E=U}return f(E);case J:return j=vi(j),Ot(E,A,j,U)}if(ht(j))return $(E,A,j,U);if(Nt(j)){if(nt=Nt(j),typeof nt!="function")throw Error(r(150));return j=nt.call(j),at(E,A,j,U)}if(typeof j.then=="function")return Ot(E,A,Eo(j),U);if(j.$$typeof===k)return Ot(E,A,So(E,j),U);Co(E,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,A!==null&&A.tag===6?(n(E,A.sibling),U=s(A,j),U.return=E,E=U):(n(E,A),U=eu(j,E.mode,U),U.return=E,E=U),f(E)):n(E,A)}return function(E,A,j,U){try{us=0;var nt=Ot(E,A,j,U);return rl=null,nt}catch(tt){if(tt===ol||tt===Ao)throw tt;var bt=Ue(29,tt,null,E.mode);return bt.lanes=U,bt.return=E,bt}}}var bi=eh(!0),nh=eh(!1),wa=!1;function mu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pu(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Ea(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ca(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(Tt&2)!==0){var s=i.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),i.pending=e,e=go(t),Hd(t,null,n),e}return yo(t,i,e,n),go(t)}function fs(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,lo(t,n)}}function yu(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var s=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?s=u=f:u=u.next=f,n=n.next}while(n!==null);u===null?s=u=e:u=u.next=e}else s=u=e;n={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:i.shared,callbacks:i.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var gu=!1;function ds(){if(gu){var t=sl;if(t!==null)throw t}}function hs(t,e,n,i){gu=!1;var s=t.updateQueue;wa=!1;var u=s.firstBaseUpdate,f=s.lastBaseUpdate,g=s.shared.pending;if(g!==null){s.shared.pending=null;var S=g,N=S.next;S.next=null,f===null?u=N:f.next=N,f=S;var _=t.alternate;_!==null&&(_=_.updateQueue,g=_.lastBaseUpdate,g!==f&&(g===null?_.firstBaseUpdate=N:g.next=N,_.lastBaseUpdate=S))}if(u!==null){var L=s.baseState;f=0,_=N=S=null,g=u;do{var D=g.lane&-536870913,z=D!==g.lane;if(z?(gt&D)===D:(i&D)===D){D!==0&&D===ll&&(gu=!0),_!==null&&(_=_.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});t:{var $=t,at=g;D=e;var Ot=n;switch(at.tag){case 1:if($=at.payload,typeof $=="function"){L=$.call(Ot,L,D);break t}L=$;break t;case 3:$.flags=$.flags&-65537|128;case 0:if($=at.payload,D=typeof $=="function"?$.call(Ot,L,D):$,D==null)break t;L=b({},L,D);break t;case 2:wa=!0}}D=g.callback,D!==null&&(t.flags|=64,z&&(t.flags|=8192),z=s.callbacks,z===null?s.callbacks=[D]:z.push(D))}else z={lane:D,tag:g.tag,payload:g.payload,callback:g.callback,next:null},_===null?(N=_=z,S=L):_=_.next=z,f|=D;if(g=g.next,g===null){if(g=s.shared.pending,g===null)break;z=g,g=z.next,z.next=null,s.lastBaseUpdate=z,s.shared.pending=null}}while(!0);_===null&&(S=L),s.baseState=S,s.firstBaseUpdate=N,s.lastBaseUpdate=_,u===null&&(s.shared.lanes=0),Oa|=f,t.lanes=f,t.memoizedState=L}}function ah(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function ih(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)ah(n[t],e)}var ul=w(null),jo=w(0);function lh(t,e){t=ea,X(jo,t),X(ul,e),ea=t|e.baseLanes}function vu(){X(jo,ea),X(ul,ul.current)}function xu(){ea=jo.current,B(ul),B(jo)}var Be=w(null),Ie=null;function ja(t){var e=t.alternate;X(Jt,Jt.current&1),X(Be,t),Ie===null&&(e===null||ul.current!==null||e.memoizedState!==null)&&(Ie=t)}function bu(t){X(Jt,Jt.current),X(Be,t),Ie===null&&(Ie=t)}function sh(t){t.tag===22?(X(Jt,Jt.current),X(Be,t),Ie===null&&(Ie=t)):Na()}function Na(){X(Jt,Jt.current),X(Be,Be.current)}function Le(t){B(Be),Ie===t&&(Ie=null),B(Jt)}var Jt=w(0);function No(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Cc(n)||jc(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Zn=0,ct=null,Mt=null,Wt=null,Mo=!1,cl=!1,Si=!1,Do=0,ms=0,fl=null,Qv=0;function Xt(){throw Error(r(321))}function Su(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!_e(t[n],e[n]))return!1;return!0}function Tu(t,e,n,i,s,u){return Zn=u,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,R.H=t===null||t.memoizedState===null?kh:Bu,Si=!1,u=n(i,s),Si=!1,cl&&(u=rh(e,n,i,s)),oh(t),u}function oh(t){R.H=gs;var e=Mt!==null&&Mt.next!==null;if(Zn=0,Wt=Mt=ct=null,Mo=!1,ms=0,fl=null,e)throw Error(r(300));t===null||$t||(t=t.dependencies,t!==null&&bo(t)&&($t=!0))}function rh(t,e,n,i){ct=t;var s=0;do{if(cl&&(fl=null),ms=0,cl=!1,25<=s)throw Error(r(301));if(s+=1,Wt=Mt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}R.H=Xh,u=e(n,i)}while(cl);return u}function Zv(){var t=R.H,e=t.useState()[0];return e=typeof e.then=="function"?ps(e):e,t=t.useState()[0],(Mt!==null?Mt.memoizedState:null)!==t&&(ct.flags|=1024),e}function Au(){var t=Do!==0;return Do=0,t}function wu(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Eu(t){if(Mo){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Mo=!1}Zn=0,Wt=Mt=ct=null,cl=!1,ms=Do=0,fl=null}function Te(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wt===null?ct.memoizedState=Wt=t:Wt=Wt.next=t,Wt}function Ft(){if(Mt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Mt.next;var e=Wt===null?ct.memoizedState:Wt.next;if(e!==null)Wt=e,Mt=t;else{if(t===null)throw ct.alternate===null?Error(r(467)):Error(r(310));Mt=t,t={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},Wt===null?ct.memoizedState=Wt=t:Wt=Wt.next=t}return Wt}function Oo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ps(t){var e=ms;return ms+=1,fl===null&&(fl=[]),t=$d(fl,t,e),e=ct,(Wt===null?e.memoizedState:Wt.next)===null&&(e=e.alternate,R.H=e===null||e.memoizedState===null?kh:Bu),t}function zo(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ps(t);if(t.$$typeof===k)return ue(t)}throw Error(r(438,String(t)))}function Cu(t){var e=null,n=ct.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=ct.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(s){return s.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Oo(),ct.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),i=0;i<t;i++)n[i]=At;return e.index++,n}function Jn(t,e){return typeof e=="function"?e(t):e}function Ro(t){var e=Ft();return ju(e,Mt,t)}function ju(t,e,n){var i=t.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var s=t.baseQueue,u=i.pending;if(u!==null){if(s!==null){var f=s.next;s.next=u.next,u.next=f}e.baseQueue=s=u,i.pending=null}if(u=t.baseState,s===null)t.memoizedState=u;else{e=s.next;var g=f=null,S=null,N=e,_=!1;do{var L=N.lane&-536870913;if(L!==N.lane?(gt&L)===L:(Zn&L)===L){var D=N.revertLane;if(D===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),L===ll&&(_=!0);else if((Zn&D)===D){N=N.next,D===ll&&(_=!0);continue}else L={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},S===null?(g=S=L,f=u):S=S.next=L,ct.lanes|=D,Oa|=D;L=N.action,Si&&n(u,L),u=N.hasEagerState?N.eagerState:n(u,L)}else D={lane:L,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},S===null?(g=S=D,f=u):S=S.next=D,ct.lanes|=L,Oa|=L;N=N.next}while(N!==null&&N!==e);if(S===null?f=u:S.next=g,!_e(u,t.memoizedState)&&($t=!0,_&&(n=sl,n!==null)))throw n;t.memoizedState=u,t.baseState=f,t.baseQueue=S,i.lastRenderedState=u}return s===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function Nu(t){var e=Ft(),n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=t;var i=n.dispatch,s=n.pending,u=e.memoizedState;if(s!==null){n.pending=null;var f=s=s.next;do u=t(u,f.action),f=f.next;while(f!==s);_e(u,e.memoizedState)||($t=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,i]}function uh(t,e,n){var i=ct,s=Ft(),u=xt;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=e();var f=!_e((Mt||s).memoizedState,n);if(f&&(s.memoizedState=n,$t=!0),s=s.queue,Ou(dh.bind(null,i,s,t),[t]),s.getSnapshot!==e||f||Wt!==null&&Wt.memoizedState.tag&1){if(i.flags|=2048,dl(9,{destroy:void 0},fh.bind(null,i,s,n,e),null),Vt===null)throw Error(r(349));u||(Zn&127)!==0||ch(i,e,n)}return n}function ch(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=Oo(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function fh(t,e,n,i){e.value=n,e.getSnapshot=i,hh(e)&&mh(t)}function dh(t,e,n){return n(function(){hh(e)&&mh(t)})}function hh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!_e(t,n)}catch{return!0}}function mh(t){var e=di(t,2);e!==null&&ze(e,t,2)}function Mu(t){var e=Te();if(typeof t=="function"){var n=t;if(t=n(),Si){sn(!0);try{n()}finally{sn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:t},e}function ph(t,e,n,i){return t.baseState=n,ju(t,Mt,typeof i=="function"?i:Jn)}function Jv(t,e,n,i,s){if(Uo(t))throw Error(r(485));if(t=e.action,t!==null){var u={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){u.listeners.push(f)}};R.T!==null?n(!0):u.isTransition=!1,i(u),n=e.pending,n===null?(u.next=e.pending=u,yh(e,u)):(u.next=n.next,e.pending=n.next=u)}}function yh(t,e){var n=e.action,i=e.payload,s=t.state;if(e.isTransition){var u=R.T,f={};R.T=f;try{var g=n(s,i),S=R.S;S!==null&&S(f,g),gh(t,e,g)}catch(N){Du(t,e,N)}finally{u!==null&&f.types!==null&&(u.types=f.types),R.T=u}}else try{u=n(s,i),gh(t,e,u)}catch(N){Du(t,e,N)}}function gh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){vh(t,e,i)},function(i){return Du(t,e,i)}):vh(t,e,n)}function vh(t,e,n){e.status="fulfilled",e.value=n,xh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,yh(t,n)))}function Du(t,e,n){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status="rejected",e.reason=n,xh(e),e=e.next;while(e!==i)}t.action=null}function xh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function bh(t,e){return e}function Sh(t,e){if(xt){var n=Vt.formState;if(n!==null){t:{var i=ct;if(xt){if(Bt){e:{for(var s=Bt,u=$e;s.nodeType!==8;){if(!u){s=null;break e}if(s=tn(s.nextSibling),s===null){s=null;break e}}u=s.data,s=u==="F!"||u==="F"?s:null}if(s){Bt=tn(s.nextSibling),i=s.data==="F!";break t}}Ta(i)}i=!1}i&&(e=n[0])}}return n=Te(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bh,lastRenderedState:e},n.queue=i,n=Yh.bind(null,ct,i),i.dispatch=n,i=Mu(!1),u=Uu.bind(null,ct,!1,i.queue),i=Te(),s={state:e,dispatch:null,action:t,pending:null},i.queue=s,n=Jv.bind(null,ct,s,u,n),s.dispatch=n,i.memoizedState=t,[e,n,!1]}function Th(t){var e=Ft();return Ah(e,Mt,t)}function Ah(t,e,n){if(e=ju(t,e,bh)[0],t=Ro(Jn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=ps(e)}catch(f){throw f===ol?Ao:f}else i=e;e=Ft();var s=e.queue,u=s.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,dl(9,{destroy:void 0},Fv.bind(null,s,n),null)),[i,u,t]}function Fv(t,e){t.action=e}function wh(t){var e=Ft(),n=Mt;if(n!==null)return Ah(e,n,t);Ft(),e=e.memoizedState,n=Ft();var i=n.queue.dispatch;return n.memoizedState=t,[e,i,!1]}function dl(t,e,n,i){return t={tag:t,create:n,deps:i,inst:e,next:null},e=ct.updateQueue,e===null&&(e=Oo(),ct.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function Eh(){return Ft().memoizedState}function Vo(t,e,n,i){var s=Te();ct.flags|=t,s.memoizedState=dl(1|e,{destroy:void 0},n,i===void 0?null:i)}function _o(t,e,n,i){var s=Ft();i=i===void 0?null:i;var u=s.memoizedState.inst;Mt!==null&&i!==null&&Su(i,Mt.memoizedState.deps)?s.memoizedState=dl(e,u,n,i):(ct.flags|=t,s.memoizedState=dl(1|e,u,n,i))}function Ch(t,e){Vo(8390656,8,t,e)}function Ou(t,e){_o(2048,8,t,e)}function Pv(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=Oo(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function jh(t){var e=Ft().memoizedState;return Pv({ref:e,nextImpl:t}),function(){if((Tt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Nh(t,e){return _o(4,2,t,e)}function Mh(t,e){return _o(4,4,t,e)}function Dh(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Oh(t,e,n){n=n!=null?n.concat([t]):null,_o(4,4,Dh.bind(null,e,t),n)}function zu(){}function zh(t,e){var n=Ft();e=e===void 0?null:e;var i=n.memoizedState;return e!==null&&Su(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function Rh(t,e){var n=Ft();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&Su(e,i[1]))return i[0];if(i=t(),Si){sn(!0);try{t()}finally{sn(!1)}}return n.memoizedState=[i,e],i}function Ru(t,e,n){return n===void 0||(Zn&1073741824)!==0&&(gt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Vm(),ct.lanes|=t,Oa|=t,n)}function Vh(t,e,n,i){return _e(n,e)?n:ul.current!==null?(t=Ru(t,n,i),_e(t,e)||($t=!0),t):(Zn&42)===0||(Zn&1073741824)!==0&&(gt&261930)===0?($t=!0,t.memoizedState=n):(t=Vm(),ct.lanes|=t,Oa|=t,e)}function _h(t,e,n,i,s){var u=H.p;H.p=u!==0&&8>u?u:8;var f=R.T,g={};R.T=g,Uu(t,!1,e,n);try{var S=s(),N=R.S;if(N!==null&&N(g,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var _=Kv(S,i);ys(t,e,_,qe(t))}else ys(t,e,i,qe(t))}catch(L){ys(t,e,{then:function(){},status:"rejected",reason:L},qe())}finally{H.p=u,f!==null&&g.types!==null&&(f.types=g.types),R.T=f}}function Wv(){}function Vu(t,e,n,i){if(t.tag!==5)throw Error(r(476));var s=Uh(t).queue;_h(t,s,e,Z,n===null?Wv:function(){return Bh(t),n(i)})}function Uh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:Z},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Bh(t){var e=Uh(t);e.next===null&&(e=t.alternate.memoizedState),ys(t,e.next.queue,{},qe())}function _u(){return ue(Rs)}function Lh(){return Ft().memoizedState}function Hh(){return Ft().memoizedState}function $v(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=qe();t=Ea(n);var i=Ca(e,t,n);i!==null&&(ze(i,e,n),fs(i,e,n)),e={cache:cu()},t.payload=e;return}e=e.return}}function Iv(t,e,n){var i=qe();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Uo(t)?qh(e,n):(n=Ir(t,e,n,i),n!==null&&(ze(n,t,i),Gh(n,e,i)))}function Yh(t,e,n){var i=qe();ys(t,e,n,i)}function ys(t,e,n,i){var s={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Uo(t))qh(e,s);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var f=e.lastRenderedState,g=u(f,n);if(s.hasEagerState=!0,s.eagerState=g,_e(g,f))return yo(t,e,s,0),Vt===null&&po(),!1}catch{}if(n=Ir(t,e,s,i),n!==null)return ze(n,t,i),Gh(n,e,i),!0}return!1}function Uu(t,e,n,i){if(i={lane:2,revertLane:mc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Uo(t)){if(e)throw Error(r(479))}else e=Ir(t,n,i,2),e!==null&&ze(e,t,2)}function Uo(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function qh(t,e){cl=Mo=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Gh(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,lo(t,n)}}var gs={readContext:ue,use:zo,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useLayoutEffect:Xt,useInsertionEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useSyncExternalStore:Xt,useId:Xt,useHostTransitionStatus:Xt,useFormState:Xt,useActionState:Xt,useOptimistic:Xt,useMemoCache:Xt,useCacheRefresh:Xt};gs.useEffectEvent=Xt;var kh={readContext:ue,use:zo,useCallback:function(t,e){return Te().memoizedState=[t,e===void 0?null:e],t},useContext:ue,useEffect:Ch,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Vo(4194308,4,Dh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Vo(4194308,4,t,e)},useInsertionEffect:function(t,e){Vo(4,2,t,e)},useMemo:function(t,e){var n=Te();e=e===void 0?null:e;var i=t();if(Si){sn(!0);try{t()}finally{sn(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=Te();if(n!==void 0){var s=n(e);if(Si){sn(!0);try{n(e)}finally{sn(!1)}}}else s=e;return i.memoizedState=i.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},i.queue=t,t=t.dispatch=Iv.bind(null,ct,t),[i.memoizedState,t]},useRef:function(t){var e=Te();return t={current:t},e.memoizedState=t},useState:function(t){t=Mu(t);var e=t.queue,n=Yh.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:zu,useDeferredValue:function(t,e){var n=Te();return Ru(n,t,e)},useTransition:function(){var t=Mu(!1);return t=_h.bind(null,ct,t.queue,!0,!1),Te().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=ct,s=Te();if(xt){if(n===void 0)throw Error(r(407));n=n()}else{if(n=e(),Vt===null)throw Error(r(349));(gt&127)!==0||ch(i,e,n)}s.memoizedState=n;var u={value:n,getSnapshot:e};return s.queue=u,Ch(dh.bind(null,i,u,t),[t]),i.flags|=2048,dl(9,{destroy:void 0},fh.bind(null,i,u,n,e),null),n},useId:function(){var t=Te(),e=Vt.identifierPrefix;if(xt){var n=On,i=Dn;n=(i&~(1<<32-Ht(i)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Do++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Qv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:_u,useFormState:Sh,useActionState:Sh,useOptimistic:function(t){var e=Te();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Uu.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:Cu,useCacheRefresh:function(){return Te().memoizedState=$v.bind(null,ct)},useEffectEvent:function(t){var e=Te(),n={impl:t};return e.memoizedState=n,function(){if((Tt&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Bu={readContext:ue,use:zo,useCallback:zh,useContext:ue,useEffect:Ou,useImperativeHandle:Oh,useInsertionEffect:Nh,useLayoutEffect:Mh,useMemo:Rh,useReducer:Ro,useRef:Eh,useState:function(){return Ro(Jn)},useDebugValue:zu,useDeferredValue:function(t,e){var n=Ft();return Vh(n,Mt.memoizedState,t,e)},useTransition:function(){var t=Ro(Jn)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:ps(t),e]},useSyncExternalStore:uh,useId:Lh,useHostTransitionStatus:_u,useFormState:Th,useActionState:Th,useOptimistic:function(t,e){var n=Ft();return ph(n,Mt,t,e)},useMemoCache:Cu,useCacheRefresh:Hh};Bu.useEffectEvent=jh;var Xh={readContext:ue,use:zo,useCallback:zh,useContext:ue,useEffect:Ou,useImperativeHandle:Oh,useInsertionEffect:Nh,useLayoutEffect:Mh,useMemo:Rh,useReducer:Nu,useRef:Eh,useState:function(){return Nu(Jn)},useDebugValue:zu,useDeferredValue:function(t,e){var n=Ft();return Mt===null?Ru(n,t,e):Vh(n,Mt.memoizedState,t,e)},useTransition:function(){var t=Nu(Jn)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:ps(t),e]},useSyncExternalStore:uh,useId:Lh,useHostTransitionStatus:_u,useFormState:wh,useActionState:wh,useOptimistic:function(t,e){var n=Ft();return Mt!==null?ph(n,Mt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Cu,useCacheRefresh:Hh};Xh.useEffectEvent=jh;function Lu(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:b({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Hu={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=qe(),s=Ea(i);s.payload=e,n!=null&&(s.callback=n),e=Ca(t,s,i),e!==null&&(ze(e,t,i),fs(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=qe(),s=Ea(i);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=Ca(t,s,i),e!==null&&(ze(e,t,i),fs(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=qe(),i=Ea(n);i.tag=2,e!=null&&(i.callback=e),e=Ca(t,i,n),e!==null&&(ze(e,t,n),fs(e,t,n))}};function Kh(t,e,n,i,s,u,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,u,f):e.prototype&&e.prototype.isPureReactComponent?!as(n,i)||!as(s,u):!0}function Qh(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&Hu.enqueueReplaceState(e,e.state,null)}function Ti(t,e){var n=e;if("ref"in e){n={};for(var i in e)i!=="ref"&&(n[i]=e[i])}if(t=t.defaultProps){n===e&&(n=b({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}function Zh(t){mo(t)}function Jh(t){console.error(t)}function Fh(t){mo(t)}function Bo(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function Ph(t,e,n){try{var i=t.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Yu(t,e,n){return n=Ea(n),n.tag=3,n.payload={element:null},n.callback=function(){Bo(t,e)},n}function Wh(t){return t=Ea(t),t.tag=3,t}function $h(t,e,n,i){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var u=i.value;t.payload=function(){return s(u)},t.callback=function(){Ph(e,n,i)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Ph(e,n,i),typeof s!="function"&&(za===null?za=new Set([this]):za.add(this));var g=i.stack;this.componentDidCatch(i.value,{componentStack:g!==null?g:""})})}function tx(t,e,n,i,s){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=n.alternate,e!==null&&il(e,n,s,!0),n=Be.current,n!==null){switch(n.tag){case 31:case 13:return Ie===null?Fo():n.alternate===null&&Kt===0&&(Kt=3),n.flags&=-257,n.flags|=65536,n.lanes=s,i===wo?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),fc(t,i,s)),!1;case 22:return n.flags|=65536,i===wo?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([i]):n.add(i)),fc(t,i,s)),!1}throw Error(r(435,n.tag))}return fc(t,i,s),Fo(),!1}if(xt)return e=Be.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,i!==lu&&(t=Error(r(422),{cause:i}),ss(Fe(t,n)))):(i!==lu&&(e=Error(r(423),{cause:i}),ss(Fe(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,i=Fe(i,n),s=Yu(t.stateNode,i,s),yu(t,s),Kt!==4&&(Kt=2)),!1;var u=Error(r(520),{cause:i});if(u=Fe(u,n),Es===null?Es=[u]:Es.push(u),Kt!==4&&(Kt=2),e===null)return!0;i=Fe(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=Yu(n.stateNode,i,t),yu(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(za===null||!za.has(u))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Wh(s),$h(s,t,n,i),yu(n,s),!1}n=n.return}while(n!==null);return!1}var qu=Error(r(461)),$t=!1;function ce(t,e,n,i){e.child=t===null?nh(e,null,n,i):bi(e,t.child,n,i)}function Ih(t,e,n,i,s){n=n.render;var u=e.ref;if("ref"in i){var f={};for(var g in i)g!=="ref"&&(f[g]=i[g])}else f=i;return yi(e),i=Tu(t,e,n,f,u,s),g=Au(),t!==null&&!$t?(wu(t,e,s),Fn(t,e,s)):(xt&&g&&au(e),e.flags|=1,ce(t,e,i,s),e.child)}function tm(t,e,n,i,s){if(t===null){var u=n.type;return typeof u=="function"&&!tu(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,em(t,e,u,i,s)):(t=vo(n.type,null,i,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Fu(t,s)){var f=u.memoizedProps;if(n=n.compare,n=n!==null?n:as,n(f,i)&&t.ref===e.ref)return Fn(t,e,s)}return e.flags|=1,t=kn(u,i),t.ref=e.ref,t.return=e,e.child=t}function em(t,e,n,i,s){if(t!==null){var u=t.memoizedProps;if(as(u,i)&&t.ref===e.ref)if($t=!1,e.pendingProps=i=u,Fu(t,s))(t.flags&131072)!==0&&($t=!0);else return e.lanes=t.lanes,Fn(t,e,s)}return Gu(t,e,n,i,s)}function nm(t,e,n,i){var s=i.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,t!==null){for(i=e.child=t.child,s=0;i!==null;)s=s|i.lanes|i.childLanes,i=i.sibling;i=s&~u}else i=0,e.child=null;return am(t,e,u,n,i)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&To(e,u!==null?u.cachePool:null),u!==null?lh(e,u):vu(),sh(e);else return i=e.lanes=536870912,am(t,e,u!==null?u.baseLanes|n:n,n,i)}else u!==null?(To(e,u.cachePool),lh(e,u),Na(),e.memoizedState=null):(t!==null&&To(e,null),vu(),Na());return ce(t,e,s,n),e.child}function vs(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function am(t,e,n,i,s){var u=du();return u=u===null?null:{parent:Pt._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&To(e,null),vu(),sh(e),t!==null&&il(t,e,i,!0),e.childLanes=s,null}function Lo(t,e){return e=Yo({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function im(t,e,n){return bi(e,t.child,null,n),t=Lo(e,e.pendingProps),t.flags|=2,Le(e),e.memoizedState=null,t}function ex(t,e,n){var i=e.pendingProps,s=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(xt){if(i.mode==="hidden")return t=Lo(e,i),e.lanes=536870912,vs(null,t);if(bu(e),(t=Bt)?(t=yp(t,$e),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ba!==null?{id:Dn,overflow:On}:null,retryLane:536870912,hydrationErrors:null},n=qd(t),n.return=e,e.child=n,re=e,Bt=null)):t=null,t===null)throw Ta(e);return e.lanes=536870912,null}return Lo(e,i)}var u=t.memoizedState;if(u!==null){var f=u.dehydrated;if(bu(e),s)if(e.flags&256)e.flags&=-257,e=im(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if($t||il(t,e,n,!1),s=(n&t.childLanes)!==0,$t||s){if(i=Vt,i!==null&&(f=so(i,n),f!==0&&f!==u.retryLane))throw u.retryLane=f,di(t,f),ze(i,t,f),qu;Fo(),e=im(t,e,n)}else t=u.treeContext,Bt=tn(f.nextSibling),re=e,xt=!0,Sa=null,$e=!1,t!==null&&Xd(e,t),e=Lo(e,i),e.flags|=4096;return e}return t=kn(t.child,{mode:i.mode,children:i.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ho(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Gu(t,e,n,i,s){return yi(e),n=Tu(t,e,n,i,void 0,s),i=Au(),t!==null&&!$t?(wu(t,e,s),Fn(t,e,s)):(xt&&i&&au(e),e.flags|=1,ce(t,e,n,s),e.child)}function lm(t,e,n,i,s,u){return yi(e),e.updateQueue=null,n=rh(e,i,n,s),oh(t),i=Au(),t!==null&&!$t?(wu(t,e,u),Fn(t,e,u)):(xt&&i&&au(e),e.flags|=1,ce(t,e,n,u),e.child)}function sm(t,e,n,i,s){if(yi(e),e.stateNode===null){var u=tl,f=n.contextType;typeof f=="object"&&f!==null&&(u=ue(f)),u=new n(i,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Hu,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=i,u.state=e.memoizedState,u.refs={},mu(e),f=n.contextType,u.context=typeof f=="object"&&f!==null?ue(f):tl,u.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Lu(e,n,f,i),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&Hu.enqueueReplaceState(u,u.state,null),hs(e,i,u,s),ds(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){u=e.stateNode;var g=e.memoizedProps,S=Ti(n,g);u.props=S;var N=u.context,_=n.contextType;f=tl,typeof _=="object"&&_!==null&&(f=ue(_));var L=n.getDerivedStateFromProps;_=typeof L=="function"||typeof u.getSnapshotBeforeUpdate=="function",g=e.pendingProps!==g,_||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(g||N!==f)&&Qh(e,u,i,f),wa=!1;var D=e.memoizedState;u.state=D,hs(e,i,u,s),ds(),N=e.memoizedState,g||D!==N||wa?(typeof L=="function"&&(Lu(e,n,L,i),N=e.memoizedState),(S=wa||Kh(e,n,S,i,D,N,f))?(_||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=N),u.props=i,u.state=N,u.context=f,i=S):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{u=e.stateNode,pu(t,e),f=e.memoizedProps,_=Ti(n,f),u.props=_,L=e.pendingProps,D=u.context,N=n.contextType,S=tl,typeof N=="object"&&N!==null&&(S=ue(N)),g=n.getDerivedStateFromProps,(N=typeof g=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==L||D!==S)&&Qh(e,u,i,S),wa=!1,D=e.memoizedState,u.state=D,hs(e,i,u,s),ds();var z=e.memoizedState;f!==L||D!==z||wa||t!==null&&t.dependencies!==null&&bo(t.dependencies)?(typeof g=="function"&&(Lu(e,n,g,i),z=e.memoizedState),(_=wa||Kh(e,n,_,i,D,z,S)||t!==null&&t.dependencies!==null&&bo(t.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(i,z,S),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(i,z,S)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&D===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&D===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=z),u.props=i,u.state=z,u.context=S,i=_):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&D===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&D===t.memoizedState||(e.flags|=1024),i=!1)}return u=i,Ho(t,e),i=(e.flags&128)!==0,u||i?(u=e.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&i?(e.child=bi(e,t.child,null,s),e.child=bi(e,null,n,s)):ce(t,e,n,s),e.memoizedState=u.state,t=e.child):t=Fn(t,e,s),t}function om(t,e,n,i){return mi(),e.flags|=256,ce(t,e,n,i),e.child}var ku={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xu(t){return{baseLanes:t,cachePool:Pd()}}function Ku(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ye),t}function rm(t,e,n){var i=e.pendingProps,s=!1,u=(e.flags&128)!==0,f;if((f=u)||(f=t!==null&&t.memoizedState===null?!1:(Jt.current&2)!==0),f&&(s=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(xt){if(s?ja(e):Na(),(t=Bt)?(t=yp(t,$e),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ba!==null?{id:Dn,overflow:On}:null,retryLane:536870912,hydrationErrors:null},n=qd(t),n.return=e,e.child=n,re=e,Bt=null)):t=null,t===null)throw Ta(e);return jc(t)?e.lanes=32:e.lanes=536870912,null}var g=i.children;return i=i.fallback,s?(Na(),s=e.mode,g=Yo({mode:"hidden",children:g},s),i=hi(i,s,n,null),g.return=e,i.return=e,g.sibling=i,e.child=g,i=e.child,i.memoizedState=Xu(n),i.childLanes=Ku(t,f,n),e.memoizedState=ku,vs(null,i)):(ja(e),Qu(e,g))}var S=t.memoizedState;if(S!==null&&(g=S.dehydrated,g!==null)){if(u)e.flags&256?(ja(e),e.flags&=-257,e=Zu(t,e,n)):e.memoizedState!==null?(Na(),e.child=t.child,e.flags|=128,e=null):(Na(),g=i.fallback,s=e.mode,i=Yo({mode:"visible",children:i.children},s),g=hi(g,s,n,null),g.flags|=2,i.return=e,g.return=e,i.sibling=g,e.child=i,bi(e,t.child,null,n),i=e.child,i.memoizedState=Xu(n),i.childLanes=Ku(t,f,n),e.memoizedState=ku,e=vs(null,i));else if(ja(e),jc(g)){if(f=g.nextSibling&&g.nextSibling.dataset,f)var N=f.dgst;f=N,i=Error(r(419)),i.stack="",i.digest=f,ss({value:i,source:null,stack:null}),e=Zu(t,e,n)}else if($t||il(t,e,n,!1),f=(n&t.childLanes)!==0,$t||f){if(f=Vt,f!==null&&(i=so(f,n),i!==0&&i!==S.retryLane))throw S.retryLane=i,di(t,i),ze(f,t,i),qu;Cc(g)||Fo(),e=Zu(t,e,n)}else Cc(g)?(e.flags|=192,e.child=t.child,e=null):(t=S.treeContext,Bt=tn(g.nextSibling),re=e,xt=!0,Sa=null,$e=!1,t!==null&&Xd(e,t),e=Qu(e,i.children),e.flags|=4096);return e}return s?(Na(),g=i.fallback,s=e.mode,S=t.child,N=S.sibling,i=kn(S,{mode:"hidden",children:i.children}),i.subtreeFlags=S.subtreeFlags&65011712,N!==null?g=kn(N,g):(g=hi(g,s,n,null),g.flags|=2),g.return=e,i.return=e,i.sibling=g,e.child=i,vs(null,i),i=e.child,g=t.child.memoizedState,g===null?g=Xu(n):(s=g.cachePool,s!==null?(S=Pt._currentValue,s=s.parent!==S?{parent:S,pool:S}:s):s=Pd(),g={baseLanes:g.baseLanes|n,cachePool:s}),i.memoizedState=g,i.childLanes=Ku(t,f,n),e.memoizedState=ku,vs(t.child,i)):(ja(e),n=t.child,t=n.sibling,n=kn(n,{mode:"visible",children:i.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function Qu(t,e){return e=Yo({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Yo(t,e){return t=Ue(22,t,null,e),t.lanes=0,t}function Zu(t,e,n){return bi(e,t.child,null,n),t=Qu(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function um(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),ru(t.return,e,n)}function Ju(t,e,n,i,s,u){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:s,treeForkCount:u}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=i,f.tail=n,f.tailMode=s,f.treeForkCount=u)}function cm(t,e,n){var i=e.pendingProps,s=i.revealOrder,u=i.tail;i=i.children;var f=Jt.current,g=(f&2)!==0;if(g?(f=f&1|2,e.flags|=128):f&=1,X(Jt,f),ce(t,e,i,n),i=xt?ls:0,!g&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&um(t,n,e);else if(t.tag===19)um(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&No(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),Ju(e,!1,s,n,u,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&No(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}Ju(e,!0,n,null,u,i);break;case"together":Ju(e,!1,null,null,void 0,i);break;default:e.memoizedState=null}return e.child}function Fn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Oa|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(il(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,n=kn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=kn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Fu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&bo(t)))}function nx(t,e,n){switch(e.tag){case 3:qt(e,e.stateNode.containerInfo),Aa(e,Pt,t.memoizedState.cache),mi();break;case 27:case 5:ke(e);break;case 4:qt(e,e.stateNode.containerInfo);break;case 10:Aa(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,bu(e),null;break;case 13:var i=e.memoizedState;if(i!==null)return i.dehydrated!==null?(ja(e),e.flags|=128,null):(n&e.child.childLanes)!==0?rm(t,e,n):(ja(e),t=Fn(t,e,n),t!==null?t.sibling:null);ja(e);break;case 19:var s=(t.flags&128)!==0;if(i=(n&e.childLanes)!==0,i||(il(t,e,n,!1),i=(n&e.childLanes)!==0),s){if(i)return cm(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),X(Jt,Jt.current),i)break;return null;case 22:return e.lanes=0,nm(t,e,n,e.pendingProps);case 24:Aa(e,Pt,t.memoizedState.cache)}return Fn(t,e,n)}function fm(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)$t=!0;else{if(!Fu(t,n)&&(e.flags&128)===0)return $t=!1,nx(t,e,n);$t=(t.flags&131072)!==0}else $t=!1,xt&&(e.flags&1048576)!==0&&kd(e,ls,e.index);switch(e.lanes=0,e.tag){case 16:t:{var i=e.pendingProps;if(t=vi(e.elementType),e.type=t,typeof t=="function")tu(t)?(i=Ti(t,i),e.tag=1,e=sm(null,e,t,i,n)):(e.tag=0,e=Gu(null,e,t,i,n));else{if(t!=null){var s=t.$$typeof;if(s===P){e.tag=11,e=Ih(null,e,t,i,n);break t}else if(s===et){e.tag=14,e=tm(null,e,t,i,n);break t}}throw e=ie(t)||t,Error(r(306,e,""))}}return e;case 0:return Gu(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,s=Ti(i,e.pendingProps),sm(t,e,i,s,n);case 3:t:{if(qt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));i=e.pendingProps;var u=e.memoizedState;s=u.element,pu(t,e),hs(e,i,null,n);var f=e.memoizedState;if(i=f.cache,Aa(e,Pt,i),i!==u.cache&&uu(e,[Pt],n,!0),ds(),i=f.element,u.isDehydrated)if(u={element:i,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=om(t,e,i,n);break t}else if(i!==s){s=Fe(Error(r(424)),e),ss(s),e=om(t,e,i,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Bt=tn(t.firstChild),re=e,xt=!0,Sa=null,$e=!0,n=nh(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(mi(),i===s){e=Fn(t,e,n);break t}ce(t,e,i,n)}e=e.child}return e;case 26:return Ho(t,e),t===null?(n=Tp(e.type,null,e.pendingProps,null))?e.memoizedState=n:xt||(n=e.type,t=e.pendingProps,i=nr(dt.current).createElement(n),i[kt]=e,i[_t]=t,fe(i,n,t),Rt(i),e.stateNode=i):e.memoizedState=Tp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ke(e),t===null&&xt&&(i=e.stateNode=xp(e.type,e.pendingProps,dt.current),re=e,$e=!0,s=Bt,Ua(e.type)?(Nc=s,Bt=tn(i.firstChild)):Bt=s),ce(t,e,e.pendingProps.children,n),Ho(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&xt&&((s=i=Bt)&&(i=zx(i,e.type,e.pendingProps,$e),i!==null?(e.stateNode=i,re=e,Bt=tn(i.firstChild),$e=!1,s=!0):s=!1),s||Ta(e)),ke(e),s=e.type,u=e.pendingProps,f=t!==null?t.memoizedProps:null,i=u.children,Ac(s,u)?i=null:f!==null&&Ac(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=Tu(t,e,Zv,null,null,n),Rs._currentValue=s),Ho(t,e),ce(t,e,i,n),e.child;case 6:return t===null&&xt&&((t=n=Bt)&&(n=Rx(n,e.pendingProps,$e),n!==null?(e.stateNode=n,re=e,Bt=null,t=!0):t=!1),t||Ta(e)),null;case 13:return rm(t,e,n);case 4:return qt(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=bi(e,null,i,n):ce(t,e,i,n),e.child;case 11:return Ih(t,e,e.type,e.pendingProps,n);case 7:return ce(t,e,e.pendingProps,n),e.child;case 8:return ce(t,e,e.pendingProps.children,n),e.child;case 12:return ce(t,e,e.pendingProps.children,n),e.child;case 10:return i=e.pendingProps,Aa(e,e.type,i.value),ce(t,e,i.children,n),e.child;case 9:return s=e.type._context,i=e.pendingProps.children,yi(e),s=ue(s),i=i(s),e.flags|=1,ce(t,e,i,n),e.child;case 14:return tm(t,e,e.type,e.pendingProps,n);case 15:return em(t,e,e.type,e.pendingProps,n);case 19:return cm(t,e,n);case 31:return ex(t,e,n);case 22:return nm(t,e,n,e.pendingProps);case 24:return yi(e),i=ue(Pt),t===null?(s=du(),s===null&&(s=Vt,u=cu(),s.pooledCache=u,u.refCount++,u!==null&&(s.pooledCacheLanes|=n),s=u),e.memoizedState={parent:i,cache:s},mu(e),Aa(e,Pt,s)):((t.lanes&n)!==0&&(pu(t,e),hs(e,null,null,n),ds()),s=t.memoizedState,u=e.memoizedState,s.parent!==i?(s={parent:i,cache:i},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),Aa(e,Pt,i)):(i=u.cache,Aa(e,Pt,i),i!==s.cache&&uu(e,[Pt],n,!0))),ce(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function Pn(t){t.flags|=4}function Pu(t,e,n,i,s){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(s&335544128)===s)if(t.stateNode.complete)t.flags|=8192;else if(Lm())t.flags|=8192;else throw xi=wo,hu}else t.flags&=-16777217}function dm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!jp(e))if(Lm())t.flags|=8192;else throw xi=wo,hu}function qo(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Ri():536870912,t.lanes|=e,yl|=e)}function xs(t,e){if(!xt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function Lt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags&65011712,i|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function ax(t,e,n){var i=e.pendingProps;switch(iu(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(e),null;case 1:return Lt(e),null;case 3:return n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),Qn(Pt),zt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(al(e)?Pn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,su())),Lt(e),null;case 26:var s=e.type,u=e.memoizedState;return t===null?(Pn(e),u!==null?(Lt(e),dm(e,u)):(Lt(e),Pu(e,s,null,i,n))):u?u!==t.memoizedState?(Pn(e),Lt(e),dm(e,u)):(Lt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==i&&Pn(e),Lt(e),Pu(e,s,t,i,n)),null;case 27:if(xn(e),n=dt.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&Pn(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return Lt(e),null}t=W.current,al(e)?Kd(e):(t=xp(s,i,n),e.stateNode=t,Pn(e))}return Lt(e),null;case 5:if(xn(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&Pn(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return Lt(e),null}if(u=W.current,al(e))Kd(e);else{var f=nr(dt.current);switch(u){case 1:u=f.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:u=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":u=f.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":u=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":u=f.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof i.is=="string"?f.createElement("select",{is:i.is}):f.createElement("select"),i.multiple?u.multiple=!0:i.size&&(u.size=i.size);break;default:u=typeof i.is=="string"?f.createElement(s,{is:i.is}):f.createElement(s)}}u[kt]=e,u[_t]=i;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)u.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=u;t:switch(fe(u,s,i),s){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}i&&Pn(e)}}return Lt(e),Pu(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&Pn(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(r(166));if(t=dt.current,al(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,s=re,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}t[kt]=e,t=!!(t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||rp(t.nodeValue,n)),t||Ta(e,!0)}else t=nr(t).createTextNode(i),t[kt]=e,e.stateNode=t}return Lt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(i=al(e),n!==null){if(t===null){if(!i)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[kt]=e}else mi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),t=!1}else n=su(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Le(e),e):(Le(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Lt(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=al(e),i!==null&&i.dehydrated!==null){if(t===null){if(!s)throw Error(r(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));s[kt]=e}else mi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),s=!1}else s=su(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(Le(e),e):(Le(e),null)}return Le(e),(e.flags&128)!==0?(e.lanes=n,e):(n=i!==null,t=t!==null&&t.memoizedState!==null,n&&(i=e.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==s&&(i.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),qo(e,e.updateQueue),Lt(e),null);case 4:return zt(),t===null&&vc(e.stateNode.containerInfo),Lt(e),null;case 10:return Qn(e.type),Lt(e),null;case 19:if(B(Jt),i=e.memoizedState,i===null)return Lt(e),null;if(s=(e.flags&128)!==0,u=i.rendering,u===null)if(s)xs(i,!1);else{if(Kt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=No(t),u!==null){for(e.flags|=128,xs(i,!1),t=u.updateQueue,e.updateQueue=t,qo(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Yd(n,t),n=n.sibling;return X(Jt,Jt.current&1|2),xt&&Xn(e,i.treeForkCount),e.child}t=t.sibling}i.tail!==null&&me()>Qo&&(e.flags|=128,s=!0,xs(i,!1),e.lanes=4194304)}else{if(!s)if(t=No(u),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,qo(e,t),xs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!xt)return Lt(e),null}else 2*me()-i.renderingStartTime>Qo&&n!==536870912&&(e.flags|=128,s=!0,xs(i,!1),e.lanes=4194304);i.isBackwards?(u.sibling=e.child,e.child=u):(t=i.last,t!==null?t.sibling=u:e.child=u,i.last=u)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=me(),t.sibling=null,n=Jt.current,X(Jt,s?n&1|2:n&1),xt&&Xn(e,i.treeForkCount),t):(Lt(e),null);case 22:case 23:return Le(e),xu(),i=e.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?(n&536870912)!==0&&(e.flags&128)===0&&(Lt(e),e.subtreeFlags&6&&(e.flags|=8192)):Lt(e),n=e.updateQueue,n!==null&&qo(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),i=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),i!==n&&(e.flags|=2048),t!==null&&B(gi),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Qn(Pt),Lt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function ix(t,e){switch(iu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Qn(Pt),zt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return xn(e),null;case 31:if(e.memoizedState!==null){if(Le(e),e.alternate===null)throw Error(r(340));mi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Le(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));mi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return B(Jt),null;case 4:return zt(),null;case 10:return Qn(e.type),null;case 22:case 23:return Le(e),xu(),t!==null&&B(gi),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Qn(Pt),null;case 25:return null;default:return null}}function hm(t,e){switch(iu(e),e.tag){case 3:Qn(Pt),zt();break;case 26:case 27:case 5:xn(e);break;case 4:zt();break;case 31:e.memoizedState!==null&&Le(e);break;case 13:Le(e);break;case 19:B(Jt);break;case 10:Qn(e.type);break;case 22:case 23:Le(e),xu(),t!==null&&B(gi);break;case 24:Qn(Pt)}}function bs(t,e){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var s=i.next;n=s;do{if((n.tag&t)===t){i=void 0;var u=n.create,f=n.inst;i=u(),f.destroy=i}n=n.next}while(n!==s)}}catch(g){Ct(e,e.return,g)}}function Ma(t,e,n){try{var i=e.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var u=s.next;i=u;do{if((i.tag&t)===t){var f=i.inst,g=f.destroy;if(g!==void 0){f.destroy=void 0,s=e;var S=n,N=g;try{N()}catch(_){Ct(s,S,_)}}}i=i.next}while(i!==u)}}catch(_){Ct(e,e.return,_)}}function mm(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{ih(e,n)}catch(i){Ct(t,t.return,i)}}}function pm(t,e,n){n.props=Ti(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){Ct(t,e,i)}}function Ss(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:i=t.stateNode;break;default:i=t.stateNode}typeof n=="function"?t.refCleanup=n(i):n.current=i}}catch(s){Ct(t,e,s)}}function zn(t,e){var n=t.ref,i=t.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(s){Ct(t,e,s)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Ct(t,e,s)}else n.current=null}function ym(t){var e=t.type,n=t.memoizedProps,i=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break t;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(s){Ct(t,t.return,s)}}function Wu(t,e,n){try{var i=t.stateNode;Cx(i,t.type,n,e),i[_t]=e}catch(s){Ct(t,t.return,s)}}function gm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ua(t.type)||t.tag===4}function $u(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||gm(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Ua(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Iu(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Qe));else if(i!==4&&(i===27&&Ua(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Iu(t,e,n),t=t.sibling;t!==null;)Iu(t,e,n),t=t.sibling}function Go(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(i===27&&Ua(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Go(t,e,n),t=t.sibling;t!==null;)Go(t,e,n),t=t.sibling}function vm(t){var e=t.stateNode,n=t.memoizedProps;try{for(var i=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);fe(e,i,n),e[kt]=t,e[_t]=n}catch(u){Ct(t,t.return,u)}}var Wn=!1,It=!1,tc=!1,xm=typeof WeakSet=="function"?WeakSet:Set,le=null;function lx(t,e){if(t=t.containerInfo,Sc=ur,t=Od(t),Zr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var s=i.anchorOffset,u=i.focusNode;i=i.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var f=0,g=-1,S=-1,N=0,_=0,L=t,D=null;e:for(;;){for(var z;L!==n||s!==0&&L.nodeType!==3||(g=f+s),L!==u||i!==0&&L.nodeType!==3||(S=f+i),L.nodeType===3&&(f+=L.nodeValue.length),(z=L.firstChild)!==null;)D=L,L=z;for(;;){if(L===t)break e;if(D===n&&++N===s&&(g=f),D===u&&++_===i&&(S=f),(z=L.nextSibling)!==null)break;L=D,D=L.parentNode}L=z}n=g===-1||S===-1?null:{start:g,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tc={focusedElem:t,selectionRange:n},ur=!1,le=e;le!==null;)if(e=le,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,le=t;else for(;le!==null;){switch(e=le,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)s=t[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,s=u.memoizedProps,u=u.memoizedState,i=n.stateNode;try{var $=Ti(n.type,s);t=i.getSnapshotBeforeUpdate($,u),i.__reactInternalSnapshotBeforeUpdate=t}catch(at){Ct(n,n.return,at)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Ec(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Ec(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,le=t;break}le=e.return}}function bm(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:In(t,n),i&4&&bs(5,n);break;case 1:if(In(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Ct(n,n.return,f)}else{var s=Ti(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Ct(n,n.return,f)}}i&64&&mm(n),i&512&&Ss(n,n.return);break;case 3:if(In(t,n),i&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{ih(t,e)}catch(f){Ct(n,n.return,f)}}break;case 27:e===null&&i&4&&vm(n);case 26:case 5:In(t,n),e===null&&i&4&&ym(n),i&512&&Ss(n,n.return);break;case 12:In(t,n);break;case 31:In(t,n),i&4&&Am(t,n);break;case 13:In(t,n),i&4&&wm(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=mx.bind(null,n),Vx(t,n))));break;case 22:if(i=n.memoizedState!==null||Wn,!i){e=e!==null&&e.memoizedState!==null||It,s=Wn;var u=It;Wn=i,(It=e)&&!u?ta(t,n,(n.subtreeFlags&8772)!==0):In(t,n),Wn=s,It=u}break;case 30:break;default:In(t,n)}}function Sm(t){var e=t.alternate;e!==null&&(t.alternate=null,Sm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ha(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Yt=null,Ne=!1;function $n(t,e,n){for(n=n.child;n!==null;)Tm(t,e,n),n=n.sibling}function Tm(t,e,n){if(pe&&typeof pe.onCommitFiberUnmount=="function")try{pe.onCommitFiberUnmount(Xe,n)}catch{}switch(n.tag){case 26:It||zn(n,e),$n(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:It||zn(n,e);var i=Yt,s=Ne;Ua(n.type)&&(Yt=n.stateNode,Ne=!1),$n(t,e,n),Ds(n.stateNode),Yt=i,Ne=s;break;case 5:It||zn(n,e);case 6:if(i=Yt,s=Ne,Yt=null,$n(t,e,n),Yt=i,Ne=s,Yt!==null)if(Ne)try{(Yt.nodeType===9?Yt.body:Yt.nodeName==="HTML"?Yt.ownerDocument.body:Yt).removeChild(n.stateNode)}catch(u){Ct(n,e,u)}else try{Yt.removeChild(n.stateNode)}catch(u){Ct(n,e,u)}break;case 18:Yt!==null&&(Ne?(t=Yt,mp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),wl(t)):mp(Yt,n.stateNode));break;case 4:i=Yt,s=Ne,Yt=n.stateNode.containerInfo,Ne=!0,$n(t,e,n),Yt=i,Ne=s;break;case 0:case 11:case 14:case 15:Ma(2,n,e),It||Ma(4,n,e),$n(t,e,n);break;case 1:It||(zn(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"&&pm(n,e,i)),$n(t,e,n);break;case 21:$n(t,e,n);break;case 22:It=(i=It)||n.memoizedState!==null,$n(t,e,n),It=i;break;default:$n(t,e,n)}}function Am(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{wl(t)}catch(n){Ct(e,e.return,n)}}}function wm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{wl(t)}catch(n){Ct(e,e.return,n)}}function sx(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new xm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new xm),e;default:throw Error(r(435,t.tag))}}function ko(t,e){var n=sx(t);e.forEach(function(i){if(!n.has(i)){n.add(i);var s=px.bind(null,t,i);i.then(s,s)}})}function Me(t,e){var n=e.deletions;if(n!==null)for(var i=0;i<n.length;i++){var s=n[i],u=t,f=e,g=f;t:for(;g!==null;){switch(g.tag){case 27:if(Ua(g.type)){Yt=g.stateNode,Ne=!1;break t}break;case 5:Yt=g.stateNode,Ne=!1;break t;case 3:case 4:Yt=g.stateNode.containerInfo,Ne=!0;break t}g=g.return}if(Yt===null)throw Error(r(160));Tm(u,f,s),Yt=null,Ne=!1,u=s.alternate,u!==null&&(u.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Em(e,t),e=e.sibling}var hn=null;function Em(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Me(e,t),De(t),i&4&&(Ma(3,t,t.return),bs(3,t),Ma(5,t,t.return));break;case 1:Me(e,t),De(t),i&512&&(It||n===null||zn(n,n.return)),i&64&&Wn&&(t=t.updateQueue,t!==null&&(i=t.callbacks,i!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var s=hn;if(Me(e,t),De(t),i&512&&(It||n===null||zn(n,n.return)),i&4){var u=n!==null?n.memoizedState:null;if(i=t.memoizedState,n===null)if(i===null)if(t.stateNode===null){t:{i=t.type,n=t.memoizedProps,s=s.ownerDocument||s;e:switch(i){case"title":u=s.getElementsByTagName("title")[0],(!u||u[da]||u[kt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=s.createElement(i),s.head.insertBefore(u,s.querySelector("head > title"))),fe(u,i,n),u[kt]=t,Rt(u),i=u;break t;case"link":var f=Ep("link","href",s).get(i+(n.href||""));if(f){for(var g=0;g<f.length;g++)if(u=f[g],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(g,1);break e}}u=s.createElement(i),fe(u,i,n),s.head.appendChild(u);break;case"meta":if(f=Ep("meta","content",s).get(i+(n.content||""))){for(g=0;g<f.length;g++)if(u=f[g],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(g,1);break e}}u=s.createElement(i),fe(u,i,n),s.head.appendChild(u);break;default:throw Error(r(468,i))}u[kt]=t,Rt(u),i=u}t.stateNode=i}else Cp(s,t.type,t.stateNode);else t.stateNode=wp(s,i,t.memoizedProps);else u!==i?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,i===null?Cp(s,t.type,t.stateNode):wp(s,i,t.memoizedProps)):i===null&&t.stateNode!==null&&Wu(t,t.memoizedProps,n.memoizedProps)}break;case 27:Me(e,t),De(t),i&512&&(It||n===null||zn(n,n.return)),n!==null&&i&4&&Wu(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Me(e,t),De(t),i&512&&(It||n===null||zn(n,n.return)),t.flags&32){s=t.stateNode;try{un(s,"")}catch($){Ct(t,t.return,$)}}i&4&&t.stateNode!=null&&(s=t.memoizedProps,Wu(t,s,n!==null?n.memoizedProps:s)),i&1024&&(tc=!0);break;case 6:if(Me(e,t),De(t),i&4){if(t.stateNode===null)throw Error(r(162));i=t.memoizedProps,n=t.stateNode;try{n.nodeValue=i}catch($){Ct(t,t.return,$)}}break;case 3:if(lr=null,s=hn,hn=ar(e.containerInfo),Me(e,t),hn=s,De(t),i&4&&n!==null&&n.memoizedState.isDehydrated)try{wl(e.containerInfo)}catch($){Ct(t,t.return,$)}tc&&(tc=!1,Cm(t));break;case 4:i=hn,hn=ar(t.stateNode.containerInfo),Me(e,t),De(t),hn=i;break;case 12:Me(e,t),De(t);break;case 31:Me(e,t),De(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,ko(t,i)));break;case 13:Me(e,t),De(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ko=me()),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,ko(t,i)));break;case 22:s=t.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,N=Wn,_=It;if(Wn=N||s,It=_||S,Me(e,t),It=_,Wn=N,De(t),i&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||S||Wn||It||Ai(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){S=n=e;try{if(u=S.stateNode,s)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{g=S.stateNode;var L=S.memoizedProps.style,D=L!=null&&L.hasOwnProperty("display")?L.display:null;g.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch($){Ct(S,S.return,$)}}}else if(e.tag===6){if(n===null){S=e;try{S.stateNode.nodeValue=s?"":S.memoizedProps}catch($){Ct(S,S.return,$)}}}else if(e.tag===18){if(n===null){S=e;try{var z=S.stateNode;s?pp(z,!0):pp(S.stateNode,!1)}catch($){Ct(S,S.return,$)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}i&4&&(i=t.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,ko(t,n))));break;case 19:Me(e,t),De(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,ko(t,i)));break;case 30:break;case 21:break;default:Me(e,t),De(t)}}function De(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(gm(i)){n=i;break}i=i.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var s=n.stateNode,u=$u(t);Go(t,u,s);break;case 5:var f=n.stateNode;n.flags&32&&(un(f,""),n.flags&=-33);var g=$u(t);Go(t,g,f);break;case 3:case 4:var S=n.stateNode.containerInfo,N=$u(t);Iu(t,N,S);break;default:throw Error(r(161))}}catch(_){Ct(t,t.return,_)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Cm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Cm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function In(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)bm(t,e.alternate,e),e=e.sibling}function Ai(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Ma(4,e,e.return),Ai(e);break;case 1:zn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&pm(e,e.return,n),Ai(e);break;case 27:Ds(e.stateNode);case 26:case 5:zn(e,e.return),Ai(e);break;case 22:e.memoizedState===null&&Ai(e);break;case 30:Ai(e);break;default:Ai(e)}t=t.sibling}}function ta(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var i=e.alternate,s=t,u=e,f=u.flags;switch(u.tag){case 0:case 11:case 15:ta(s,u,n),bs(4,u);break;case 1:if(ta(s,u,n),i=u,s=i.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(N){Ct(i,i.return,N)}if(i=u,s=i.updateQueue,s!==null){var g=i.stateNode;try{var S=s.shared.hiddenCallbacks;if(S!==null)for(s.shared.hiddenCallbacks=null,s=0;s<S.length;s++)ah(S[s],g)}catch(N){Ct(i,i.return,N)}}n&&f&64&&mm(u),Ss(u,u.return);break;case 27:vm(u);case 26:case 5:ta(s,u,n),n&&i===null&&f&4&&ym(u),Ss(u,u.return);break;case 12:ta(s,u,n);break;case 31:ta(s,u,n),n&&f&4&&Am(s,u);break;case 13:ta(s,u,n),n&&f&4&&wm(s,u);break;case 22:u.memoizedState===null&&ta(s,u,n),Ss(u,u.return);break;case 30:break;default:ta(s,u,n)}e=e.sibling}}function ec(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&os(n))}function nc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&os(t))}function mn(t,e,n,i){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jm(t,e,n,i),e=e.sibling}function jm(t,e,n,i){var s=e.flags;switch(e.tag){case 0:case 11:case 15:mn(t,e,n,i),s&2048&&bs(9,e);break;case 1:mn(t,e,n,i);break;case 3:mn(t,e,n,i),s&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&os(t)));break;case 12:if(s&2048){mn(t,e,n,i),t=e.stateNode;try{var u=e.memoizedProps,f=u.id,g=u.onPostCommit;typeof g=="function"&&g(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(S){Ct(e,e.return,S)}}else mn(t,e,n,i);break;case 31:mn(t,e,n,i);break;case 13:mn(t,e,n,i);break;case 23:break;case 22:u=e.stateNode,f=e.alternate,e.memoizedState!==null?u._visibility&2?mn(t,e,n,i):Ts(t,e):u._visibility&2?mn(t,e,n,i):(u._visibility|=2,hl(t,e,n,i,(e.subtreeFlags&10256)!==0||!1)),s&2048&&ec(f,e);break;case 24:mn(t,e,n,i),s&2048&&nc(e.alternate,e);break;default:mn(t,e,n,i)}}function hl(t,e,n,i,s){for(s=s&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,f=e,g=n,S=i,N=f.flags;switch(f.tag){case 0:case 11:case 15:hl(u,f,g,S,s),bs(8,f);break;case 23:break;case 22:var _=f.stateNode;f.memoizedState!==null?_._visibility&2?hl(u,f,g,S,s):Ts(u,f):(_._visibility|=2,hl(u,f,g,S,s)),s&&N&2048&&ec(f.alternate,f);break;case 24:hl(u,f,g,S,s),s&&N&2048&&nc(f.alternate,f);break;default:hl(u,f,g,S,s)}e=e.sibling}}function Ts(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,i=e,s=i.flags;switch(i.tag){case 22:Ts(n,i),s&2048&&ec(i.alternate,i);break;case 24:Ts(n,i),s&2048&&nc(i.alternate,i);break;default:Ts(n,i)}e=e.sibling}}var As=8192;function ml(t,e,n){if(t.subtreeFlags&As)for(t=t.child;t!==null;)Nm(t,e,n),t=t.sibling}function Nm(t,e,n){switch(t.tag){case 26:ml(t,e,n),t.flags&As&&t.memoizedState!==null&&Qx(n,hn,t.memoizedState,t.memoizedProps);break;case 5:ml(t,e,n);break;case 3:case 4:var i=hn;hn=ar(t.stateNode.containerInfo),ml(t,e,n),hn=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=As,As=16777216,ml(t,e,n),As=i):ml(t,e,n));break;default:ml(t,e,n)}}function Mm(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function ws(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];le=i,Om(i,t)}Mm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Dm(t),t=t.sibling}function Dm(t){switch(t.tag){case 0:case 11:case 15:ws(t),t.flags&2048&&Ma(9,t,t.return);break;case 3:ws(t);break;case 12:ws(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Xo(t)):ws(t);break;default:ws(t)}}function Xo(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];le=i,Om(i,t)}Mm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ma(8,e,e.return),Xo(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Xo(e));break;default:Xo(e)}t=t.sibling}}function Om(t,e){for(;le!==null;){var n=le;switch(n.tag){case 0:case 11:case 15:Ma(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:os(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,le=i;else t:for(n=t;le!==null;){i=le;var s=i.sibling,u=i.return;if(Sm(i),i===n){le=null;break t}if(s!==null){s.return=u,le=s;break t}le=u}}}var ox={getCacheForType:function(t){var e=ue(Pt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ue(Pt).controller.signal}},rx=typeof WeakMap=="function"?WeakMap:Map,Tt=0,Vt=null,pt=null,gt=0,Et=0,He=null,Da=!1,pl=!1,ac=!1,ea=0,Kt=0,Oa=0,wi=0,ic=0,Ye=0,yl=0,Es=null,Oe=null,lc=!1,Ko=0,zm=0,Qo=1/0,Zo=null,za=null,ee=0,Ra=null,gl=null,na=0,sc=0,oc=null,Rm=null,Cs=0,rc=null;function qe(){return(Tt&2)!==0&>!==0?gt&-gt:R.T!==null?mc():Ia()}function Vm(){if(Ye===0)if((gt&536870912)===0||xt){var t=oa;oa<<=1,(oa&3932160)===0&&(oa=262144),Ye=t}else Ye=536870912;return t=Be.current,t!==null&&(t.flags|=32),Ye}function ze(t,e,n){(t===Vt&&(Et===2||Et===9)||t.cancelPendingCommit!==null)&&(vl(t,0),Va(t,gt,Ye,!1)),ua(t,n),((Tt&2)===0||t!==Vt)&&(t===Vt&&((Tt&2)===0&&(wi|=n),Kt===4&&Va(t,gt,Ye,!1)),Rn(t))}function _m(t,e,n){if((Tt&6)!==0)throw Error(r(327));var i=!n&&(e&127)===0&&(e&t.expiredLanes)===0||An(t,e),s=i?fx(t,e):cc(t,e,!0),u=i;do{if(s===0){pl&&!i&&Va(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!ux(n)){s=cc(t,e,!1),u=!1;continue}if(s===2){if(u=e,t.errorRecoveryDisabledLanes&u)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var g=t;s=Es;var S=g.current.memoizedState.isDehydrated;if(S&&(vl(g,f).flags|=256),f=cc(g,f,!1),f!==2){if(ac&&!S){g.errorRecoveryDisabledLanes|=u,wi|=u,s=4;break t}u=Oe,Oe=s,u!==null&&(Oe===null?Oe=u:Oe.push.apply(Oe,u))}s=f}if(u=!1,s!==2)continue}}if(s===1){vl(t,0),Va(t,e,0,!0);break}t:{switch(i=t,u=s,u){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Va(i,e,Ye,!Da);break t;case 2:Oe=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(s=Ko+300-me(),10<s)){if(Va(i,e,Ye,!Da),Pa(i,0,!0)!==0)break t;na=e,i.timeoutHandle=dp(Um.bind(null,i,n,Oe,Zo,lc,e,Ye,wi,yl,Da,u,"Throttled",-0,0),s);break t}Um(i,n,Oe,Zo,lc,e,Ye,wi,yl,Da,u,null,-0,0)}}break}while(!0);Rn(t)}function Um(t,e,n,i,s,u,f,g,S,N,_,L,D,z){if(t.timeoutHandle=-1,L=e.subtreeFlags,L&8192||(L&16785408)===16785408){L={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qe},Nm(e,u,L);var $=(u&62914560)===u?Ko-me():(u&4194048)===u?zm-me():0;if($=Zx(L,$),$!==null){na=u,t.cancelPendingCommit=$(Xm.bind(null,t,e,u,n,i,s,f,g,S,_,L,null,D,z)),Va(t,u,f,!N);return}}Xm(t,e,u,n,i,s,f,g,S)}function ux(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var s=n[i],u=s.getSnapshot;s=s.value;try{if(!_e(u(),s))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Va(t,e,n,i){e&=~ic,e&=~wi,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var s=e;0<s;){var u=31-Ht(s),f=1<<u;i[u]=-1,s&=~f}n!==0&&$a(t,n,e)}function Jo(){return(Tt&6)===0?(js(0),!1):!0}function uc(){if(pt!==null){if(Et===0)var t=pt.return;else t=pt,Kn=pi=null,Eu(t),rl=null,us=0,t=pt;for(;t!==null;)hm(t.alternate,t),t=t.return;pt=null}}function vl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Mx(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),na=0,uc(),Vt=t,pt=n=kn(t.current,null),gt=e,Et=0,He=null,Da=!1,pl=An(t,e),ac=!1,yl=Ye=ic=wi=Oa=Kt=0,Oe=Es=null,lc=!1,(e&8)!==0&&(e|=e&32);var i=t.entangledLanes;if(i!==0)for(t=t.entanglements,i&=e;0<i;){var s=31-Ht(i),u=1<<s;e|=t[s],i&=~u}return ea=e,po(),n}function Bm(t,e){ct=null,R.H=gs,e===ol||e===Ao?(e=Id(),Et=3):e===hu?(e=Id(),Et=4):Et=e===qu?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,He=e,pt===null&&(Kt=1,Bo(t,Fe(e,t.current)))}function Lm(){var t=Be.current;return t===null?!0:(gt&4194048)===gt?Ie===null:(gt&62914560)===gt||(gt&536870912)!==0?t===Ie:!1}function Hm(){var t=R.H;return R.H=gs,t===null?gs:t}function Ym(){var t=R.A;return R.A=ox,t}function Fo(){Kt=4,Da||(gt&4194048)!==gt&&Be.current!==null||(pl=!0),(Oa&134217727)===0&&(wi&134217727)===0||Vt===null||Va(Vt,gt,Ye,!1)}function cc(t,e,n){var i=Tt;Tt|=2;var s=Hm(),u=Ym();(Vt!==t||gt!==e)&&(Zo=null,vl(t,e)),e=!1;var f=Kt;t:do try{if(Et!==0&&pt!==null){var g=pt,S=He;switch(Et){case 8:uc(),f=6;break t;case 3:case 2:case 9:case 6:Be.current===null&&(e=!0);var N=Et;if(Et=0,He=null,xl(t,g,S,N),n&&pl){f=0;break t}break;default:N=Et,Et=0,He=null,xl(t,g,S,N)}}cx(),f=Kt;break}catch(_){Bm(t,_)}while(!0);return e&&t.shellSuspendCounter++,Kn=pi=null,Tt=i,R.H=s,R.A=u,pt===null&&(Vt=null,gt=0,po()),f}function cx(){for(;pt!==null;)qm(pt)}function fx(t,e){var n=Tt;Tt|=2;var i=Hm(),s=Ym();Vt!==t||gt!==e?(Zo=null,Qo=me()+500,vl(t,e)):pl=An(t,e);t:do try{if(Et!==0&&pt!==null){e=pt;var u=He;e:switch(Et){case 1:Et=0,He=null,xl(t,e,u,1);break;case 2:case 9:if(Wd(u)){Et=0,He=null,Gm(e);break}e=function(){Et!==2&&Et!==9||Vt!==t||(Et=7),Rn(t)},u.then(e,e);break t;case 3:Et=7;break t;case 4:Et=5;break t;case 7:Wd(u)?(Et=0,He=null,Gm(e)):(Et=0,He=null,xl(t,e,u,7));break;case 5:var f=null;switch(pt.tag){case 26:f=pt.memoizedState;case 5:case 27:var g=pt;if(f?jp(f):g.stateNode.complete){Et=0,He=null;var S=g.sibling;if(S!==null)pt=S;else{var N=g.return;N!==null?(pt=N,Po(N)):pt=null}break e}}Et=0,He=null,xl(t,e,u,5);break;case 6:Et=0,He=null,xl(t,e,u,6);break;case 8:uc(),Kt=6;break t;default:throw Error(r(462))}}dx();break}catch(_){Bm(t,_)}while(!0);return Kn=pi=null,R.H=i,R.A=s,Tt=n,pt!==null?0:(Vt=null,gt=0,po(),Kt)}function dx(){for(;pt!==null&&!Sn();)qm(pt)}function qm(t){var e=fm(t.alternate,t,ea);t.memoizedProps=t.pendingProps,e===null?Po(t):pt=e}function Gm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=lm(n,e,e.pendingProps,e.type,void 0,gt);break;case 11:e=lm(n,e,e.pendingProps,e.type.render,e.ref,gt);break;case 5:Eu(e);default:hm(n,e),e=pt=Yd(e,ea),e=fm(n,e,ea)}t.memoizedProps=t.pendingProps,e===null?Po(t):pt=e}function xl(t,e,n,i){Kn=pi=null,Eu(e),rl=null,us=0;var s=e.return;try{if(tx(t,s,e,n,gt)){Kt=1,Bo(t,Fe(n,t.current)),pt=null;return}}catch(u){if(s!==null)throw pt=s,u;Kt=1,Bo(t,Fe(n,t.current)),pt=null;return}e.flags&32768?(xt||i===1?t=!0:pl||(gt&536870912)!==0?t=!1:(Da=t=!0,(i===2||i===9||i===3||i===6)&&(i=Be.current,i!==null&&i.tag===13&&(i.flags|=16384))),km(e,t)):Po(e)}function Po(t){var e=t;do{if((e.flags&32768)!==0){km(e,Da);return}t=e.return;var n=ax(e.alternate,e,ea);if(n!==null){pt=n;return}if(e=e.sibling,e!==null){pt=e;return}pt=e=t}while(e!==null);Kt===0&&(Kt=5)}function km(t,e){do{var n=ix(t.alternate,t);if(n!==null){n.flags&=32767,pt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){pt=t;return}pt=t=n}while(t!==null);Kt=6,pt=null}function Xm(t,e,n,i,s,u,f,g,S){t.cancelPendingCommit=null;do Wo();while(ee!==0);if((Tt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(u=e.lanes|e.childLanes,u|=$r,io(t,n,u,f,g,S),t===Vt&&(pt=Vt=null,gt=0),gl=e,Ra=t,na=n,sc=u,oc=s,Rm=i,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,yx(Za,function(){return Fm(),null})):(t.callbackNode=null,t.callbackPriority=0),i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=R.T,R.T=null,s=H.p,H.p=2,f=Tt,Tt|=4;try{lx(t,e,n)}finally{Tt=f,H.p=s,R.T=i}}ee=1,Km(),Qm(),Zm()}}function Km(){if(ee===1){ee=0;var t=Ra,e=gl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=R.T,R.T=null;var i=H.p;H.p=2;var s=Tt;Tt|=4;try{Em(e,t);var u=Tc,f=Od(t.containerInfo),g=u.focusedElem,S=u.selectionRange;if(f!==g&&g&&g.ownerDocument&&Dd(g.ownerDocument.documentElement,g)){if(S!==null&&Zr(g)){var N=S.start,_=S.end;if(_===void 0&&(_=N),"selectionStart"in g)g.selectionStart=N,g.selectionEnd=Math.min(_,g.value.length);else{var L=g.ownerDocument||document,D=L&&L.defaultView||window;if(D.getSelection){var z=D.getSelection(),$=g.textContent.length,at=Math.min(S.start,$),Ot=S.end===void 0?at:Math.min(S.end,$);!z.extend&&at>Ot&&(f=Ot,Ot=at,at=f);var E=Md(g,at),A=Md(g,Ot);if(E&&A&&(z.rangeCount!==1||z.anchorNode!==E.node||z.anchorOffset!==E.offset||z.focusNode!==A.node||z.focusOffset!==A.offset)){var j=L.createRange();j.setStart(E.node,E.offset),z.removeAllRanges(),at>Ot?(z.addRange(j),z.extend(A.node,A.offset)):(j.setEnd(A.node,A.offset),z.addRange(j))}}}}for(L=[],z=g;z=z.parentNode;)z.nodeType===1&&L.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<L.length;g++){var U=L[g];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}ur=!!Sc,Tc=Sc=null}finally{Tt=s,H.p=i,R.T=n}}t.current=e,ee=2}}function Qm(){if(ee===2){ee=0;var t=Ra,e=gl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=R.T,R.T=null;var i=H.p;H.p=2;var s=Tt;Tt|=4;try{bm(t,e.alternate,e)}finally{Tt=s,H.p=i,R.T=n}}ee=3}}function Zm(){if(ee===4||ee===3){ee=0,Ll();var t=Ra,e=gl,n=na,i=Rm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ee=5:(ee=0,gl=Ra=null,Jm(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(za=null),Vi(n),e=e.stateNode,pe&&typeof pe.onCommitFiberRoot=="function")try{pe.onCommitFiberRoot(Xe,e,void 0,(e.current.flags&128)===128)}catch{}if(i!==null){e=R.T,s=H.p,H.p=2,R.T=null;try{for(var u=t.onRecoverableError,f=0;f<i.length;f++){var g=i[f];u(g.value,{componentStack:g.stack})}}finally{R.T=e,H.p=s}}(na&3)!==0&&Wo(),Rn(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===rc?Cs++:(Cs=0,rc=t):Cs=0,js(0)}}function Jm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,os(e)))}function Wo(){return Km(),Qm(),Zm(),Fm()}function Fm(){if(ee!==5)return!1;var t=Ra,e=sc;sc=0;var n=Vi(na),i=R.T,s=H.p;try{H.p=32>n?32:n,R.T=null,n=oc,oc=null;var u=Ra,f=na;if(ee=0,gl=Ra=null,na=0,(Tt&6)!==0)throw Error(r(331));var g=Tt;if(Tt|=4,Dm(u.current),jm(u,u.current,f,n),Tt=g,js(0,!1),pe&&typeof pe.onPostCommitFiberRoot=="function")try{pe.onPostCommitFiberRoot(Xe,u)}catch{}return!0}finally{H.p=s,R.T=i,Jm(t,e)}}function Pm(t,e,n){e=Fe(n,e),e=Yu(t.stateNode,e,2),t=Ca(t,e,2),t!==null&&(ua(t,2),Rn(t))}function Ct(t,e,n){if(t.tag===3)Pm(t,t,n);else for(;e!==null;){if(e.tag===3){Pm(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(za===null||!za.has(i))){t=Fe(n,t),n=Wh(2),i=Ca(e,n,2),i!==null&&($h(n,i,e,t),ua(i,2),Rn(i));break}}e=e.return}}function fc(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new rx;var s=new Set;i.set(e,s)}else s=i.get(e),s===void 0&&(s=new Set,i.set(e,s));s.has(n)||(ac=!0,s.add(n),t=hx.bind(null,t,e,n),e.then(t,t))}function hx(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Vt===t&&(gt&n)===n&&(Kt===4||Kt===3&&(gt&62914560)===gt&&300>me()-Ko?(Tt&2)===0&&vl(t,0):ic|=n,yl===gt&&(yl=0)),Rn(t)}function Wm(t,e){e===0&&(e=Ri()),t=di(t,e),t!==null&&(ua(t,e),Rn(t))}function mx(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Wm(t,n)}function px(t,e){var n=0;switch(t.tag){case 31:case 13:var i=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(e),Wm(t,n)}function yx(t,e){return xe(t,e)}var $o=null,bl=null,dc=!1,Io=!1,hc=!1,_a=0;function Rn(t){t!==bl&&t.next===null&&(bl===null?$o=bl=t:bl=bl.next=t),Io=!0,dc||(dc=!0,vx())}function js(t,e){if(!hc&&Io){hc=!0;do for(var n=!1,i=$o;i!==null;){if(t!==0){var s=i.pendingLanes;if(s===0)var u=0;else{var f=i.suspendedLanes,g=i.pingedLanes;u=(1<<31-Ht(42|t)+1)-1,u&=s&~(f&~g),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,ep(i,u))}else u=gt,u=Pa(i,i===Vt?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(u&3)===0||An(i,u)||(n=!0,ep(i,u));i=i.next}while(n);hc=!1}}function gx(){$m()}function $m(){Io=dc=!1;var t=0;_a!==0&&Nx()&&(t=_a);for(var e=me(),n=null,i=$o;i!==null;){var s=i.next,u=Im(i,e);u===0?(i.next=null,n===null?$o=s:n.next=s,s===null&&(bl=n)):(n=i,(t!==0||(u&3)!==0)&&(Io=!0)),i=s}ee!==0&&ee!==5||js(t),_a!==0&&(_a=0)}function Im(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,s=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var f=31-Ht(u),g=1<<f,S=s[f];S===-1?((g&n)===0||(g&i)!==0)&&(s[f]=Gl(g,e)):S<=e&&(t.expiredLanes|=g),u&=~g}if(e=Vt,n=gt,n=Pa(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,n===0||t===e&&(Et===2||Et===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&Oi(i),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||An(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(i!==null&&Oi(i),Vi(n)){case 2:case 8:n=Hl;break;case 32:n=Za;break;case 268435456:n=Ja;break;default:n=Za}return i=tp.bind(null,t),n=xe(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&Oi(i),t.callbackPriority=2,t.callbackNode=null,2}function tp(t,e){if(ee!==0&&ee!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Wo()&&t.callbackNode!==n)return null;var i=gt;return i=Pa(t,t===Vt?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(_m(t,i,e),Im(t,me()),t.callbackNode!=null&&t.callbackNode===n?tp.bind(null,t):null)}function ep(t,e){if(Wo())return null;_m(t,e,!0)}function vx(){Dx(function(){(Tt&6)!==0?xe(no,gx):$m()})}function mc(){if(_a===0){var t=ll;t===0&&(t=sa,sa<<=1,(sa&261888)===0&&(sa=256)),_a=t}return _a}function np(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:cn(""+t)}function ap(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function xx(t,e,n,i,s){if(e==="submit"&&n&&n.stateNode===s){var u=np((s[_t]||null).action),f=i.submitter;f&&(e=(e=f[_t]||null)?np(e.formAction):f.getAttribute("formAction"),e!==null&&(u=e,f=null));var g=new ri("action","action",null,i,s);t.push({event:g,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(_a!==0){var S=f?ap(s,f):new FormData(s);Vu(n,{pending:!0,data:S,method:s.method,action:u},null,S)}}else typeof u=="function"&&(g.preventDefault(),S=f?ap(s,f):new FormData(s),Vu(n,{pending:!0,data:S,method:s.method,action:u},u,S))},currentTarget:s}]})}}for(var pc=0;pc<Wr.length;pc++){var yc=Wr[pc],bx=yc.toLowerCase(),Sx=yc[0].toUpperCase()+yc.slice(1);dn(bx,"on"+Sx)}dn(Vd,"onAnimationEnd"),dn(_d,"onAnimationIteration"),dn(Ud,"onAnimationStart"),dn("dblclick","onDoubleClick"),dn("focusin","onFocus"),dn("focusout","onBlur"),dn(Bv,"onTransitionRun"),dn(Lv,"onTransitionStart"),dn(Hv,"onTransitionCancel"),dn(Bd,"onTransitionEnd"),be("onMouseEnter",["mouseout","mouseover"]),be("onMouseLeave",["mouseout","mouseover"]),be("onPointerEnter",["pointerout","pointerover"]),be("onPointerLeave",["pointerout","pointerover"]),wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wn("onBeforeInput",["compositionend","keypress","textInput","paste"]),wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ns="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(" "),Tx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ns));function ip(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],s=i.event;i=i.listeners;t:{var u=void 0;if(e)for(var f=i.length-1;0<=f;f--){var g=i[f],S=g.instance,N=g.currentTarget;if(g=g.listener,S!==u&&s.isPropagationStopped())break t;u=g,s.currentTarget=N;try{u(s)}catch(_){mo(_)}s.currentTarget=null,u=S}else for(f=0;f<i.length;f++){if(g=i[f],S=g.instance,N=g.currentTarget,g=g.listener,S!==u&&s.isPropagationStopped())break t;u=g,s.currentTarget=N;try{u(s)}catch(_){mo(_)}s.currentTarget=null,u=S}}}}function yt(t,e){var n=e[_i];n===void 0&&(n=e[_i]=new Set);var i=t+"__bubble";n.has(i)||(lp(e,t,2,!1),n.add(i))}function gc(t,e,n){var i=0;e&&(i|=4),lp(n,t,i,e)}var tr="_reactListening"+Math.random().toString(36).slice(2);function vc(t){if(!t[tr]){t[tr]=!0,Xl.forEach(function(n){n!=="selectionchange"&&(Tx.has(n)||gc(n,!1,t),gc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[tr]||(e[tr]=!0,gc("selectionchange",!1,e))}}function lp(t,e,n,i){switch(Vp(e)){case 2:var s=Px;break;case 8:s=Wx;break;default:s=Rc}n=s.bind(null,e,n,t),s=void 0,!Pl||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),i?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function xc(t,e,n,i,s){var u=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var f=i.tag;if(f===3||f===4){var g=i.stateNode.containerInfo;if(g===s)break;if(f===4)for(f=i.return;f!==null;){var S=f.tag;if((S===3||S===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;g!==null;){if(f=rn(g),f===null)return;if(S=f.tag,S===5||S===6||S===26||S===27){i=u=f;continue t}g=g.parentNode}}i=i.return}Xi(function(){var N=u,_=si(n),L=[];t:{var D=Ld.get(t);if(D!==void 0){var z=ri,$=t;switch(t){case"keypress":if(Zi(n)===0)break t;case"keydown":case"keyup":z=pv;break;case"focusin":$="focus",z=wt;break;case"focusout":$="blur",z=wt;break;case"beforeblur":case"afterblur":z=wt;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=Ze;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=C;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=vv;break;case Vd:case _d:case Ud:z=va;break;case Bd:z=bv;break;case"scroll":case"scrollend":z=ga;break;case"wheel":z=Tv;break;case"copy":case"cut":case"paste":z=xa;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=pd;break;case"toggle":case"beforetoggle":z=wv}var at=(e&4)!==0,Ot=!at&&(t==="scroll"||t==="scrollend"),E=at?D!==null?D+"Capture":null:D;at=[];for(var A=N,j;A!==null;){var U=A;if(j=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||j===null||E===null||(U=qn(A,E),U!=null&&at.push(Ms(A,U,j))),Ot)break;A=A.return}0<at.length&&(D=new z(D,$,null,n,_),L.push({event:D,listeners:at}))}}if((e&7)===0){t:{if(D=t==="mouseover"||t==="pointerover",z=t==="mouseout"||t==="pointerout",D&&n!==ki&&($=n.relatedTarget||n.fromElement)&&(rn($)||$[ca]))break t;if((z||D)&&(D=_.window===_?_:(D=_.ownerDocument)?D.defaultView||D.parentWindow:window,z?($=n.relatedTarget||n.toElement,z=N,$=$?rn($):null,$!==null&&(Ot=h($),at=$.tag,$!==Ot||at!==5&&at!==27&&at!==6)&&($=null)):(z=null,$=N),z!==$)){if(at=Ze,U="onMouseLeave",E="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(at=pd,U="onPointerLeave",E="onPointerEnter",A="pointer"),Ot=z==null?D:ma(z),j=$==null?D:ma($),D=new at(U,A+"leave",z,n,_),D.target=Ot,D.relatedTarget=j,U=null,rn(_)===N&&(at=new at(E,A+"enter",$,n,_),at.target=j,at.relatedTarget=Ot,U=at),Ot=U,z&&$)e:{for(at=Ax,E=z,A=$,j=0,U=E;U;U=at(U))j++;U=0;for(var nt=A;nt;nt=at(nt))U++;for(;0<j-U;)E=at(E),j--;for(;0<U-j;)A=at(A),U--;for(;j--;){if(E===A||A!==null&&E===A.alternate){at=E;break e}E=at(E),A=at(A)}at=null}else at=null;z!==null&&sp(L,D,z,at,!1),$!==null&&Ot!==null&&sp(L,Ot,$,at,!0)}}t:{if(D=N?ma(N):window,z=D.nodeName&&D.nodeName.toLowerCase(),z==="select"||z==="input"&&D.type==="file")var bt=Ad;else if(Sd(D))if(wd)bt=Vv;else{bt=zv;var tt=Ov}else z=D.nodeName,!z||z.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?N&&Jl(N.elementType)&&(bt=Ad):bt=Rv;if(bt&&(bt=bt(t,N))){Td(L,bt,n,_);break t}tt&&tt(t,D,N),t==="focusout"&&N&&D.type==="number"&&N.memoizedProps.value!=null&&ii(D,"number",D.value)}switch(tt=N?ma(N):window,t){case"focusin":(Sd(tt)||tt.contentEditable==="true")&&(Wi=tt,Jr=N,is=null);break;case"focusout":is=Jr=Wi=null;break;case"mousedown":Fr=!0;break;case"contextmenu":case"mouseup":case"dragend":Fr=!1,zd(L,n,_);break;case"selectionchange":if(Uv)break;case"keydown":case"keyup":zd(L,n,_)}var ft;if(Xr)t:{switch(t){case"compositionstart":var vt="onCompositionStart";break t;case"compositionend":vt="onCompositionEnd";break t;case"compositionupdate":vt="onCompositionUpdate";break t}vt=void 0}else Pi?xd(t,n)&&(vt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(vt="onCompositionStart");vt&&(yd&&n.locale!=="ko"&&(Pi||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&Pi&&(ft=Wl()):(Nn=_,Ki="value"in Nn?Nn.value:Nn.textContent,Pi=!0)),tt=er(N,vt),0<tt.length&&(vt=new md(vt,t,null,n,_),L.push({event:vt,listeners:tt}),ft?vt.data=ft:(ft=bd(n),ft!==null&&(vt.data=ft)))),(ft=Cv?jv(t,n):Nv(t,n))&&(vt=er(N,"onBeforeInput"),0<vt.length&&(tt=new md("onBeforeInput","beforeinput",null,n,_),L.push({event:tt,listeners:vt}),tt.data=ft)),xx(L,t,N,n,_)}ip(L,e)})}function Ms(t,e,n){return{instance:t,listener:e,currentTarget:n}}function er(t,e){for(var n=e+"Capture",i=[];t!==null;){var s=t,u=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||u===null||(s=qn(t,n),s!=null&&i.unshift(Ms(t,s,u)),s=qn(t,e),s!=null&&i.push(Ms(t,s,u))),t.tag===3)return i;t=t.return}return[]}function Ax(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function sp(t,e,n,i,s){for(var u=e._reactName,f=[];n!==null&&n!==i;){var g=n,S=g.alternate,N=g.stateNode;if(g=g.tag,S!==null&&S===i)break;g!==5&&g!==26&&g!==27||N===null||(S=N,s?(N=qn(n,u),N!=null&&f.unshift(Ms(n,N,S))):s||(N=qn(n,u),N!=null&&f.push(Ms(n,N,S)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var wx=/\r\n?/g,Ex=/\u0000|\uFFFD/g;function op(t){return(typeof t=="string"?t:""+t).replace(wx,`
|
|
9
|
+
`).replace(Ex,"")}function rp(t,e){return e=op(e),op(t)===e}function Dt(t,e,n,i,s,u){switch(n){case"children":typeof i=="string"?e==="body"||e==="textarea"&&i===""||un(t,i):(typeof i=="number"||typeof i=="bigint")&&e!=="body"&&un(t,""+i);break;case"className":ti(t,"class",i);break;case"tabIndex":ti(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":ti(t,n,i);break;case"style":li(t,i,u);break;case"data":if(e!=="object"){ti(t,"data",i);break}case"src":case"href":if(i===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=cn(""+i),t.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){t.setAttribute(n,"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 u=="function"&&(n==="formAction"?(e!=="input"&&Dt(t,e,"name",s.name,s,null),Dt(t,e,"formEncType",s.formEncType,s,null),Dt(t,e,"formMethod",s.formMethod,s,null),Dt(t,e,"formTarget",s.formTarget,s,null)):(Dt(t,e,"encType",s.encType,s,null),Dt(t,e,"method",s.method,s,null),Dt(t,e,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=cn(""+i),t.setAttribute(n,i);break;case"onClick":i!=null&&(t.onclick=Qe);break;case"onScroll":i!=null&&yt("scroll",t);break;case"onScrollEnd":i!=null&&yt("scrollend",t);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(s.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"multiple":t.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":t.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){t.removeAttribute("xlink:href");break}n=cn(""+i),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""+i):t.removeAttribute(n);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":i&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":i===!0?t.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,i):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(n,i):t.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(n):t.setAttribute(n,i);break;case"popover":yt("beforetoggle",t),yt("toggle",t),Cn(t,"popover",i);break;case"xlinkActuate":Se(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Se(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Se(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Se(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Se(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Se(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Se(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Se(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Se(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Cn(t,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Gr.get(n)||n,Cn(t,n,i))}}function bc(t,e,n,i,s,u){switch(n){case"style":li(t,i,u);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(s.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"children":typeof i=="string"?un(t,i):(typeof i=="number"||typeof i=="bigint")&&un(t,""+i);break;case"onScroll":i!=null&&yt("scroll",t);break;case"onScrollEnd":i!=null&&yt("scrollend",t);break;case"onClick":i!=null&&(t.onclick=Qe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ke.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),u=t[_t]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,s),typeof i=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,i,s);break t}n in t?t[n]=i:i===!0?t.setAttribute(n,""):Cn(t,n,i)}}}function fe(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":yt("error",t),yt("load",t);var i=!1,s=!1,u;for(u in n)if(n.hasOwnProperty(u)){var f=n[u];if(f!=null)switch(u){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Dt(t,e,u,f,n,null)}}s&&Dt(t,e,"srcSet",n.srcSet,n,null),i&&Dt(t,e,"src",n.src,n,null);return;case"input":yt("invalid",t);var g=u=f=s=null,S=null,N=null;for(i in n)if(n.hasOwnProperty(i)){var _=n[i];if(_!=null)switch(i){case"name":s=_;break;case"type":f=_;break;case"checked":S=_;break;case"defaultChecked":N=_;break;case"value":u=_;break;case"defaultValue":g=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,e));break;default:Dt(t,e,i,_,n,null)}}qi(t,u,g,S,N,f,s,!1);return;case"select":yt("invalid",t),i=f=u=null;for(s in n)if(n.hasOwnProperty(s)&&(g=n[s],g!=null))switch(s){case"value":u=g;break;case"defaultValue":f=g;break;case"multiple":i=g;default:Dt(t,e,s,g,n,null)}e=u,n=f,t.multiple=!!i,e!=null?Yn(t,!!i,e,!1):n!=null&&Yn(t,!!i,n,!0);return;case"textarea":yt("invalid",t),u=s=i=null;for(f in n)if(n.hasOwnProperty(f)&&(g=n[f],g!=null))switch(f){case"value":i=g;break;case"defaultValue":s=g;break;case"children":u=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:Dt(t,e,f,g,n,null)}Gi(t,i,s,u);return;case"option":for(S in n)n.hasOwnProperty(S)&&(i=n[S],i!=null)&&(S==="selected"?t.selected=i&&typeof i!="function"&&typeof i!="symbol":Dt(t,e,S,i,n,null));return;case"dialog":yt("beforetoggle",t),yt("toggle",t),yt("cancel",t),yt("close",t);break;case"iframe":case"object":yt("load",t);break;case"video":case"audio":for(i=0;i<Ns.length;i++)yt(Ns[i],t);break;case"image":yt("error",t),yt("load",t);break;case"details":yt("toggle",t);break;case"embed":case"source":case"link":yt("error",t),yt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in n)if(n.hasOwnProperty(N)&&(i=n[N],i!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Dt(t,e,N,i,n,null)}return;default:if(Jl(e)){for(_ in n)n.hasOwnProperty(_)&&(i=n[_],i!==void 0&&bc(t,e,_,i,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(i=n[g],i!=null&&Dt(t,e,g,i,n,null))}function Cx(t,e,n,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,u=null,f=null,g=null,S=null,N=null,_=null;for(z in n){var L=n[z];if(n.hasOwnProperty(z)&&L!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":S=L;default:i.hasOwnProperty(z)||Dt(t,e,z,null,i,L)}}for(var D in i){var z=i[D];if(L=n[D],i.hasOwnProperty(D)&&(z!=null||L!=null))switch(D){case"type":u=z;break;case"name":s=z;break;case"checked":N=z;break;case"defaultChecked":_=z;break;case"value":f=z;break;case"defaultValue":g=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,e));break;default:z!==L&&Dt(t,e,D,z,i,L)}}Yi(t,f,g,S,N,_,u,s);return;case"select":z=f=g=D=null;for(u in n)if(S=n[u],n.hasOwnProperty(u)&&S!=null)switch(u){case"value":break;case"multiple":z=S;default:i.hasOwnProperty(u)||Dt(t,e,u,null,i,S)}for(s in i)if(u=i[s],S=n[s],i.hasOwnProperty(s)&&(u!=null||S!=null))switch(s){case"value":D=u;break;case"defaultValue":g=u;break;case"multiple":f=u;default:u!==S&&Dt(t,e,s,u,i,S)}e=g,n=f,i=z,D!=null?Yn(t,!!n,D,!1):!!i!=!!n&&(e!=null?Yn(t,!!n,e,!0):Yn(t,!!n,n?[]:"",!1));return;case"textarea":z=D=null;for(g in n)if(s=n[g],n.hasOwnProperty(g)&&s!=null&&!i.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Dt(t,e,g,null,i,s)}for(f in i)if(s=i[f],u=n[f],i.hasOwnProperty(f)&&(s!=null||u!=null))switch(f){case"value":D=s;break;case"defaultValue":z=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(r(91));break;default:s!==u&&Dt(t,e,f,s,i,u)}ro(t,D,z);return;case"option":for(var $ in n)D=n[$],n.hasOwnProperty($)&&D!=null&&!i.hasOwnProperty($)&&($==="selected"?t.selected=!1:Dt(t,e,$,null,i,D));for(S in i)D=i[S],z=n[S],i.hasOwnProperty(S)&&D!==z&&(D!=null||z!=null)&&(S==="selected"?t.selected=D&&typeof D!="function"&&typeof D!="symbol":Dt(t,e,S,D,i,z));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 at in n)D=n[at],n.hasOwnProperty(at)&&D!=null&&!i.hasOwnProperty(at)&&Dt(t,e,at,null,i,D);for(N in i)if(D=i[N],z=n[N],i.hasOwnProperty(N)&&D!==z&&(D!=null||z!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,e));break;default:Dt(t,e,N,D,i,z)}return;default:if(Jl(e)){for(var Ot in n)D=n[Ot],n.hasOwnProperty(Ot)&&D!==void 0&&!i.hasOwnProperty(Ot)&&bc(t,e,Ot,void 0,i,D);for(_ in i)D=i[_],z=n[_],!i.hasOwnProperty(_)||D===z||D===void 0&&z===void 0||bc(t,e,_,D,i,z);return}}for(var E in n)D=n[E],n.hasOwnProperty(E)&&D!=null&&!i.hasOwnProperty(E)&&Dt(t,e,E,null,i,D);for(L in i)D=i[L],z=n[L],!i.hasOwnProperty(L)||D===z||D==null&&z==null||Dt(t,e,L,D,i,z)}function up(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function jx(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var s=n[i],u=s.transferSize,f=s.initiatorType,g=s.duration;if(u&&g&&up(f)){for(f=0,g=s.responseEnd,i+=1;i<n.length;i++){var S=n[i],N=S.startTime;if(N>g)break;var _=S.transferSize,L=S.initiatorType;_&&up(L)&&(S=S.responseEnd,f+=_*(S<g?1:(g-N)/(S-N)))}if(--i,e+=8*(u+f)/(s.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Sc=null,Tc=null;function nr(t){return t.nodeType===9?t:t.ownerDocument}function cp(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function fp(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Ac(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var wc=null;function Nx(){var t=window.event;return t&&t.type==="popstate"?t===wc?!1:(wc=t,!0):(wc=null,!1)}var dp=typeof setTimeout=="function"?setTimeout:void 0,Mx=typeof clearTimeout=="function"?clearTimeout:void 0,hp=typeof Promise=="function"?Promise:void 0,Dx=typeof queueMicrotask=="function"?queueMicrotask:typeof hp<"u"?function(t){return hp.resolve(null).then(t).catch(Ox)}:dp;function Ox(t){setTimeout(function(){throw t})}function Ua(t){return t==="head"}function mp(t,e){var n=e,i=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(i===0){t.removeChild(s),wl(e);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Ds(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Ds(n);for(var u=n.firstChild;u;){var f=u.nextSibling,g=u.nodeName;u[da]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=f}}else n==="body"&&Ds(t.ownerDocument.body);n=s}while(n);wl(e)}function pp(t,e){var n=t;t=0;do{var i=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=i}while(n)}function Ec(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ec(n),ha(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function zx(t,e,n,i){for(;t.nodeType===1;){var s=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){if(!t[da])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==s.rel||t.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||t.getAttribute("title")!==(s.title==null?null:s.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(s.src==null?null:s.src)||t.getAttribute("type")!==(s.type==null?null:s.type)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=s.name==null?null:""+s.name;if(s.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=tn(t.nextSibling),t===null)break}return null}function Rx(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=tn(t.nextSibling),t===null))return null;return t}function yp(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=tn(t.nextSibling),t===null))return null;return t}function Cc(t){return t.data==="$?"||t.data==="$~"}function jc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Vx(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var i=function(){e(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),t._reactRetry=i}}function tn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Nc=null;function gp(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return tn(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function vp(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function xp(t,e,n){switch(e=nr(n),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Ds(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ha(t)}var en=new Map,bp=new Set;function ar(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var aa=H.d;H.d={f:_x,r:Ux,D:Bx,C:Lx,L:Hx,m:Yx,X:Gx,S:qx,M:kx};function _x(){var t=aa.f(),e=Jo();return t||e}function Ux(t){var e=Ln(t);e!==null&&e.tag===5&&e.type==="form"?Bh(e):aa.r(t)}var Sl=typeof document>"u"?null:document;function Sp(t,e,n){var i=Sl;if(i&&typeof e=="string"&&e){var s=Zt(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),bp.has(s)||(bp.add(s),t={rel:t,crossOrigin:n,href:e},i.querySelector(s)===null&&(e=i.createElement("link"),fe(e,"link",t),Rt(e),i.head.appendChild(e)))}}function Bx(t){aa.D(t),Sp("dns-prefetch",t,null)}function Lx(t,e){aa.C(t,e),Sp("preconnect",t,e)}function Hx(t,e,n){aa.L(t,e,n);var i=Sl;if(i&&t&&e){var s='link[rel="preload"][as="'+Zt(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Zt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Zt(n.imageSizes)+'"]')):s+='[href="'+Zt(t)+'"]';var u=s;switch(e){case"style":u=Tl(t);break;case"script":u=Al(t)}en.has(u)||(t=b({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),en.set(u,t),i.querySelector(s)!==null||e==="style"&&i.querySelector(Os(u))||e==="script"&&i.querySelector(zs(u))||(e=i.createElement("link"),fe(e,"link",t),Rt(e),i.head.appendChild(e)))}}function Yx(t,e){aa.m(t,e);var n=Sl;if(n&&t){var i=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+Zt(i)+'"][href="'+Zt(t)+'"]',u=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Al(t)}if(!en.has(u)&&(t=b({rel:"modulepreload",href:t},e),en.set(u,t),n.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(zs(u)))return}i=n.createElement("link"),fe(i,"link",t),Rt(i),n.head.appendChild(i)}}}function qx(t,e,n){aa.S(t,e,n);var i=Sl;if(i&&t){var s=Hn(i).hoistableStyles,u=Tl(t);e=e||"default";var f=s.get(u);if(!f){var g={loading:0,preload:null};if(f=i.querySelector(Os(u)))g.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},n),(n=en.get(u))&&Mc(t,n);var S=f=i.createElement("link");Rt(S),fe(S,"link",t),S._p=new Promise(function(N,_){S.onload=N,S.onerror=_}),S.addEventListener("load",function(){g.loading|=1}),S.addEventListener("error",function(){g.loading|=2}),g.loading|=4,ir(f,e,i)}f={type:"stylesheet",instance:f,count:1,state:g},s.set(u,f)}}}function Gx(t,e){aa.X(t,e);var n=Sl;if(n&&t){var i=Hn(n).hoistableScripts,s=Al(t),u=i.get(s);u||(u=n.querySelector(zs(s)),u||(t=b({src:t,async:!0},e),(e=en.get(s))&&Dc(t,e),u=n.createElement("script"),Rt(u),fe(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(s,u))}}function kx(t,e){aa.M(t,e);var n=Sl;if(n&&t){var i=Hn(n).hoistableScripts,s=Al(t),u=i.get(s);u||(u=n.querySelector(zs(s)),u||(t=b({src:t,async:!0,type:"module"},e),(e=en.get(s))&&Dc(t,e),u=n.createElement("script"),Rt(u),fe(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(s,u))}}function Tp(t,e,n,i){var s=(s=dt.current)?ar(s):null;if(!s)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Tl(n.href),n=Hn(s).hoistableStyles,i=n.get(e),i||(i={type:"style",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Tl(n.href);var u=Hn(s).hoistableStyles,f=u.get(t);if(f||(s=s.ownerDocument||s,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,f),(u=s.querySelector(Os(t)))&&!u._p&&(f.instance=u,f.state.loading=5),en.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},en.set(t,n),u||Xx(s,t,n,f.state))),e&&i===null)throw Error(r(528,""));return f}if(e&&i!==null)throw Error(r(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Al(n),n=Hn(s).hoistableScripts,i=n.get(e),i||(i={type:"script",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Tl(t){return'href="'+Zt(t)+'"'}function Os(t){return'link[rel="stylesheet"]['+t+"]"}function Ap(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function Xx(t,e,n,i){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?i.loading=1:(e=t.createElement("link"),i.preload=e,e.addEventListener("load",function(){return i.loading|=1}),e.addEventListener("error",function(){return i.loading|=2}),fe(e,"link",n),Rt(e),t.head.appendChild(e))}function Al(t){return'[src="'+Zt(t)+'"]'}function zs(t){return"script[async]"+t}function wp(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+Zt(n.href)+'"]');if(i)return e.instance=i,Rt(i),i;var s=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),Rt(i),fe(i,"style",s),ir(i,n.precedence,t),e.instance=i;case"stylesheet":s=Tl(n.href);var u=t.querySelector(Os(s));if(u)return e.state.loading|=4,e.instance=u,Rt(u),u;i=Ap(n),(s=en.get(s))&&Mc(i,s),u=(t.ownerDocument||t).createElement("link"),Rt(u);var f=u;return f._p=new Promise(function(g,S){f.onload=g,f.onerror=S}),fe(u,"link",i),e.state.loading|=4,ir(u,n.precedence,t),e.instance=u;case"script":return u=Al(n.src),(s=t.querySelector(zs(u)))?(e.instance=s,Rt(s),s):(i=n,(s=en.get(u))&&(i=b({},n),Dc(i,s)),t=t.ownerDocument||t,s=t.createElement("script"),Rt(s),fe(s,"link",i),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,ir(i,n.precedence,t));return e.instance}function ir(t,e,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,u=s,f=0;f<i.length;f++){var g=i[f];if(g.dataset.precedence===e)u=g;else if(u!==s)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Mc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Dc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var lr=null;function Ep(t,e,n){if(lr===null){var i=new Map,s=lr=new Map;s.set(n,i)}else s=lr,i=s.get(n),i||(i=new Map,s.set(n,i));if(i.has(t))return i;for(i.set(t,null),n=n.getElementsByTagName(t),s=0;s<n.length;s++){var u=n[s];if(!(u[da]||u[kt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(e)||"";f=t+f;var g=i.get(f);g?g.push(u):i.set(f,[u])}}return i}function Cp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Kx(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function jp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Qx(t,e,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=Tl(i.href),u=e.querySelector(Os(s));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=sr.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,Rt(u);return}u=e.ownerDocument||e,i=Ap(i),(s=en.get(s))&&Mc(i,s),u=u.createElement("link"),Rt(u);var f=u;f._p=new Promise(function(g,S){f.onload=g,f.onerror=S}),fe(u,"link",i),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=sr.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Oc=0;function Zx(t,e){return t.stylesheets&&t.count===0&&rr(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var i=setTimeout(function(){if(t.stylesheets&&rr(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Oc===0&&(Oc=62500*jx());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&rr(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Oc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(s)}}:null}function sr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var or=null;function rr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,or=new Map,e.forEach(Jx,t),or=null,sr.call(t))}function Jx(t,e){if(!(e.state.loading&4)){var n=or.get(t);if(n)var i=n.get(null);else{n=new Map,or.set(t,n);for(var s=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<s.length;u++){var f=s[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),i=f)}i&&n.set(null,i)}s=e.instance,f=s.getAttribute("data-precedence"),u=n.get(f)||i,u===i&&n.set(null,s),n.set(f,s),this.count++,i=sr.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),u?u.parentNode.insertBefore(s,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var Rs={$$typeof:k,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function Fx(t,e,n,i,s,u,f,g,S){this.tag=1,this.containerInfo=t,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=Wa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wa(0),this.hiddenUpdates=Wa(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Np(t,e,n,i,s,u,f,g,S,N,_,L){return t=new Fx(t,e,n,f,S,N,_,L,g),e=1,u===!0&&(e|=24),u=Ue(3,null,null,e),t.current=u,u.stateNode=t,e=cu(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:i,isDehydrated:n,cache:e},mu(u),t}function Mp(t){return t?(t=tl,t):tl}function Dp(t,e,n,i,s,u){s=Mp(s),i.context===null?i.context=s:i.pendingContext=s,i=Ea(e),i.payload={element:n},u=u===void 0?null:u,u!==null&&(i.callback=u),n=Ca(t,i,e),n!==null&&(ze(n,t,e),fs(n,t,e))}function Op(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function zc(t,e){Op(t,e),(t=t.alternate)&&Op(t,e)}function zp(t){if(t.tag===13||t.tag===31){var e=di(t,67108864);e!==null&&ze(e,t,67108864),zc(t,67108864)}}function Rp(t){if(t.tag===13||t.tag===31){var e=qe();e=se(e);var n=di(t,e);n!==null&&ze(n,t,e),zc(t,e)}}var ur=!0;function Px(t,e,n,i){var s=R.T;R.T=null;var u=H.p;try{H.p=2,Rc(t,e,n,i)}finally{H.p=u,R.T=s}}function Wx(t,e,n,i){var s=R.T;R.T=null;var u=H.p;try{H.p=8,Rc(t,e,n,i)}finally{H.p=u,R.T=s}}function Rc(t,e,n,i){if(ur){var s=Vc(i);if(s===null)xc(t,e,i,cr,n),_p(t,i);else if(Ix(s,t,e,n,i))i.stopPropagation();else if(_p(t,i),e&4&&-1<$x.indexOf(t)){for(;s!==null;){var u=Ln(s);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=Tn(u.pendingLanes);if(f!==0){var g=u;for(g.pendingLanes|=2,g.entangledLanes|=2;f;){var S=1<<31-Ht(f);g.entanglements[1]|=S,f&=~S}Rn(u),(Tt&6)===0&&(Qo=me()+500,js(0))}}break;case 31:case 13:g=di(u,2),g!==null&&ze(g,u,2),Jo(),zc(u,2)}if(u=Vc(i),u===null&&xc(t,e,i,cr,n),u===s)break;s=u}s!==null&&i.stopPropagation()}else xc(t,e,i,null,n)}}function Vc(t){return t=si(t),_c(t)}var cr=null;function _c(t){if(cr=null,t=rn(t),t!==null){var e=h(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=d(e),t!==null)return t;t=null}else if(n===31){if(t=y(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return cr=t,null}function Vp(t){switch(t){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(eo()){case no:return 2;case Hl:return 8;case Za:case zi:return 32;case Ja:return 268435456;default:return 32}default:return 32}}var Uc=!1,Ba=null,La=null,Ha=null,Vs=new Map,_s=new Map,Ya=[],$x="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 _p(t,e){switch(t){case"focusin":case"focusout":Ba=null;break;case"dragenter":case"dragleave":La=null;break;case"mouseover":case"mouseout":Ha=null;break;case"pointerover":case"pointerout":Vs.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":_s.delete(e.pointerId)}}function Us(t,e,n,i,s,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:u,targetContainers:[s]},e!==null&&(e=Ln(e),e!==null&&zp(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function Ix(t,e,n,i,s){switch(e){case"focusin":return Ba=Us(Ba,t,e,n,i,s),!0;case"dragenter":return La=Us(La,t,e,n,i,s),!0;case"mouseover":return Ha=Us(Ha,t,e,n,i,s),!0;case"pointerover":var u=s.pointerId;return Vs.set(u,Us(Vs.get(u)||null,t,e,n,i,s)),!0;case"gotpointercapture":return u=s.pointerId,_s.set(u,Us(_s.get(u)||null,t,e,n,i,s)),!0}return!1}function Up(t){var e=rn(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=d(n),e!==null){t.blockedOn=e,kl(t.priority,function(){Rp(n)});return}}else if(e===31){if(e=y(n),e!==null){t.blockedOn=e,kl(t.priority,function(){Rp(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function fr(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Vc(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);ki=i,n.target.dispatchEvent(i),ki=null}else return e=Ln(n),e!==null&&zp(e),t.blockedOn=n,!1;e.shift()}return!0}function Bp(t,e,n){fr(t)&&n.delete(e)}function t1(){Uc=!1,Ba!==null&&fr(Ba)&&(Ba=null),La!==null&&fr(La)&&(La=null),Ha!==null&&fr(Ha)&&(Ha=null),Vs.forEach(Bp),_s.forEach(Bp)}function dr(t,e){t.blockedOn===e&&(t.blockedOn=null,Uc||(Uc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,t1)))}var hr=null;function Lp(t){hr!==t&&(hr=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){hr===t&&(hr=null);for(var e=0;e<t.length;e+=3){var n=t[e],i=t[e+1],s=t[e+2];if(typeof i!="function"){if(_c(i||n)===null)continue;break}var u=Ln(n);u!==null&&(t.splice(e,3),e-=3,Vu(u,{pending:!0,data:s,method:n.method,action:i},i,s))}}))}function wl(t){function e(S){return dr(S,t)}Ba!==null&&dr(Ba,t),La!==null&&dr(La,t),Ha!==null&&dr(Ha,t),Vs.forEach(e),_s.forEach(e);for(var n=0;n<Ya.length;n++){var i=Ya[n];i.blockedOn===t&&(i.blockedOn=null)}for(;0<Ya.length&&(n=Ya[0],n.blockedOn===null);)Up(n),n.blockedOn===null&&Ya.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var s=n[i],u=n[i+1],f=s[_t]||null;if(typeof u=="function")f||Lp(n);else if(f){var g=null;if(u&&u.hasAttribute("formAction")){if(s=u,f=u[_t]||null)g=f.formAction;else if(_c(s)!==null)continue}else g=f.action;typeof g=="function"?n[i+1]=g:(n.splice(i,3),i-=3),Lp(n)}}}function Hp(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(f){return s=f})},focusReset:"manual",scroll:"manual"})}function e(){s!==null&&(s(),s=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,s=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),s!==null&&(s(),s=null)}}}function Bc(t){this._internalRoot=t}mr.prototype.render=Bc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var n=e.current,i=qe();Dp(n,i,t,e,null,null)},mr.prototype.unmount=Bc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Dp(t.current,2,null,t,null,null),Jo(),e[ca]=null}};function mr(t){this._internalRoot=t}mr.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ia();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Ya.length&&e!==0&&e<Ya[n].priority;n++);Ya.splice(n,0,t),n===0&&Up(t)}};var Yp=l.version;if(Yp!=="19.2.4")throw Error(r(527,Yp,"19.2.4"));H.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=p(e),t=t!==null?x(t):null,t=t===null?null:t.stateNode,t};var e1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var pr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pr.isDisabled&&pr.supportsFiber)try{Xe=pr.inject(e1),pe=pr}catch{}}return Ls.createRoot=function(t,e){if(!c(t))throw Error(r(299));var n=!1,i="",s=Zh,u=Jh,f=Fh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(s=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=Np(t,1,!1,null,null,n,i,null,s,u,f,Hp),t[ca]=e.current,vc(t),new Bc(e)},Ls.hydrateRoot=function(t,e,n){if(!c(t))throw Error(r(299));var i=!1,s="",u=Zh,f=Jh,g=Fh,S=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.formState!==void 0&&(S=n.formState)),e=Np(t,1,!0,e,n??null,i,s,S,u,f,g,Hp),e.context=Mp(null),n=e.current,i=qe(),i=se(i),s=Ea(i),s.callback=null,Ca(n,s,i),n=i,e.current.lanes=n,ua(e,n),Rn(e),t[ca]=e.current,vc(t),new mr(e)},Ls.version="19.2.4",Ls}var Pp;function f1(){if(Pp)return Yc.exports;Pp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),Yc.exports=c1(),Yc.exports}var d1=f1();const k3=Sy(d1);const Ty=(...a)=>a.filter((l,o,r)=>!!l&&l.trim()!==""&&r.indexOf(l)===o).join(" ").trim();const h1=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const m1=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,o,r)=>r?r.toUpperCase():o.toLowerCase());const Wp=a=>{const l=m1(a);return l.charAt(0).toUpperCase()+l.slice(1)};var p1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const y1=a=>{for(const l in a)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1};const g1=M.forwardRef(({color:a="currentColor",size:l=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:c="",children:h,iconNode:d,...y},v)=>M.createElement("svg",{ref:v,...p1,width:l,height:l,stroke:a,strokeWidth:r?Number(o)*24/Number(l):o,className:Ty("lucide",c),...!h&&!y1(y)&&{"aria-hidden":"true"},...y},[...d.map(([p,x])=>M.createElement(p,x)),...Array.isArray(h)?h:[h]]));const ae=(a,l)=>{const o=M.forwardRef(({className:r,...c},h)=>M.createElement(g1,{ref:h,iconNode:l,className:Ty(`lucide-${h1(Wp(a))}`,`lucide-${a}`,r),...c}));return o.displayName=Wp(a),o};const v1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],x1=ae("arrow-left",v1);const b1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ge=ae("arrow-right",b1);const S1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ia=ae("check",S1);const T1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],A1=ae("chevron-down",T1);const w1=[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]],$p=ae("clipboard-paste",w1);const E1=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Xc=ae("copy",E1);const C1=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ip=ae("external-link",C1);const j1=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],N1=ae("eye-off",j1);const M1=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],D1=ae("eye",M1);const O1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Kc=ae("globe",O1);const z1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Vn=ae("loader-circle",z1);const R1=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],V1=ae("mic",R1);const _1=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Qc=ae("refresh-cw",_1);const U1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],t0=ae("shield-check",U1);const B1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],L1=ae("shield",B1);const H1=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Y1=ae("smartphone",H1);const q1=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],e0=ae("triangle-alert",q1);const G1=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],n0=ae("wifi-off",G1);const k1=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],X1=ae("wifi",k1),Bf=M.createContext({});function Lf(a){const l=M.useRef(null);return l.current===null&&(l.current=a()),l.current}const Ay=typeof window<"u",wy=Ay?M.useLayoutEffect:M.useEffect,_r=M.createContext(null);function Hf(a,l){a.indexOf(l)===-1&&a.push(l)}function jr(a,l){const o=a.indexOf(l);o>-1&&a.splice(o,1)}const Bn=(a,l,o)=>o>l?l:o<a?a:o;let Yf=()=>{};const la={},Ey=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function Cy(a){return typeof a=="object"&&a!==null}const jy=a=>/^0[^.\s]+$/u.test(a);function Ny(a){let l;return()=>(l===void 0&&(l=a()),l)}const an=a=>a,K1=(a,l)=>o=>l(a(o)),Ws=(...a)=>a.reduce(K1),Qs=(a,l,o)=>{const r=l-a;return r===0?1:(o-a)/r};class qf{constructor(){this.subscriptions=[]}add(l){return Hf(this.subscriptions,l),()=>jr(this.subscriptions,l)}notify(l,o,r){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,o,r);else for(let h=0;h<c;h++){const d=this.subscriptions[h];d&&d(l,o,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const gn=a=>a*1e3,nn=a=>a/1e3;function My(a,l){return l?a*(1e3/l):0}const Dy=(a,l,o)=>(((1-3*o+3*l)*a+(3*o-6*l))*a+3*l)*a,Q1=1e-7,Z1=12;function J1(a,l,o,r,c){let h,d,y=0;do d=l+(o-l)/2,h=Dy(d,r,c)-a,h>0?o=d:l=d;while(Math.abs(h)>Q1&&++y<Z1);return d}function $s(a,l,o,r){if(a===l&&o===r)return an;const c=h=>J1(h,0,1,a,o);return h=>h===0||h===1?h:Dy(c(h),l,r)}const Oy=a=>l=>l<=.5?a(2*l)/2:(2-a(2*(1-l)))/2,zy=a=>l=>1-a(1-l),Ry=$s(.33,1.53,.69,.99),Gf=zy(Ry),Vy=Oy(Gf),_y=a=>(a*=2)<1?.5*Gf(a):.5*(2-Math.pow(2,-10*(a-1))),kf=a=>1-Math.sin(Math.acos(a)),Uy=zy(kf),By=Oy(kf),F1=$s(.42,0,1,1),P1=$s(0,0,.58,1),Ly=$s(.42,0,.58,1),W1=a=>Array.isArray(a)&&typeof a[0]!="number",Hy=a=>Array.isArray(a)&&typeof a[0]=="number",$1={linear:an,easeIn:F1,easeInOut:Ly,easeOut:P1,circIn:kf,circInOut:By,circOut:Uy,backIn:Gf,backInOut:Vy,backOut:Ry,anticipate:_y},I1=a=>typeof a=="string",a0=a=>{if(Hy(a)){Yf(a.length===4);const[l,o,r,c]=a;return $s(l,o,r,c)}else if(I1(a))return $1[a];return a},yr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tb(a,l){let o=new Set,r=new Set,c=!1,h=!1;const d=new WeakSet;let y={delta:0,timestamp:0,isProcessing:!1};function v(x){d.has(x)&&(p.schedule(x),a()),x(y)}const p={schedule:(x,b=!1,T=!1)=>{const V=T&&c?o:r;return b&&d.add(x),V.has(x)||V.add(x),x},cancel:x=>{r.delete(x),d.delete(x)},process:x=>{if(y=x,c){h=!0;return}c=!0,[o,r]=[r,o],o.forEach(v),o.clear(),c=!1,h&&(h=!1,p.process(x))}};return p}const eb=40;function Yy(a,l){let o=!1,r=!0;const c={delta:0,timestamp:0,isProcessing:!1},h=()=>o=!0,d=yr.reduce((k,P)=>(k[P]=tb(h),k),{}),{setup:y,read:v,resolveKeyframes:p,preUpdate:x,update:b,preRender:T,render:O,postRender:V}=d,q=()=>{const k=la.useManualTiming?c.timestamp:performance.now();o=!1,la.useManualTiming||(c.delta=r?1e3/60:Math.max(Math.min(k-c.timestamp,eb),1)),c.timestamp=k,c.isProcessing=!0,y.process(c),v.process(c),p.process(c),x.process(c),b.process(c),T.process(c),O.process(c),V.process(c),c.isProcessing=!1,o&&l&&(r=!1,a(q))},Y=()=>{o=!0,r=!0,c.isProcessing||a(q)};return{schedule:yr.reduce((k,P)=>{const F=d[P];return k[P]=(it,et=!1,J=!1)=>(o||Y(),F.schedule(it,et,J)),k},{}),cancel:k=>{for(let P=0;P<yr.length;P++)d[yr[P]].cancel(k)},state:c,steps:d}}const{schedule:Ut,cancel:Ka,state:de,steps:Zc}=Yy(typeof requestAnimationFrame<"u"?requestAnimationFrame:an,!0);let br;function nb(){br=void 0}const Ae={now:()=>(br===void 0&&Ae.set(de.isProcessing||la.useManualTiming?de.timestamp:performance.now()),br),set:a=>{br=a,queueMicrotask(nb)}},qy=a=>l=>typeof l=="string"&&l.startsWith(a),Gy=qy("--"),ab=qy("var(--"),Xf=a=>ab(a)?ib.test(a.split("/*")[0].trim()):!1,ib=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function i0(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const Rl={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},Zs={...Rl,transform:a=>Bn(0,1,a)},gr={...Rl,default:1},Gs=a=>Math.round(a*1e5)/1e5,Kf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function lb(a){return a==null}const sb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Qf=(a,l)=>o=>!!(typeof o=="string"&&sb.test(o)&&o.startsWith(a)||l&&!lb(o)&&Object.prototype.hasOwnProperty.call(o,l)),ky=(a,l,o)=>r=>{if(typeof r!="string")return r;const[c,h,d,y]=r.match(Kf);return{[a]:parseFloat(c),[l]:parseFloat(h),[o]:parseFloat(d),alpha:y!==void 0?parseFloat(y):1}},ob=a=>Bn(0,255,a),Jc={...Rl,transform:a=>Math.round(ob(a))},ji={test:Qf("rgb","red"),parse:ky("red","green","blue"),transform:({red:a,green:l,blue:o,alpha:r=1})=>"rgba("+Jc.transform(a)+", "+Jc.transform(l)+", "+Jc.transform(o)+", "+Gs(Zs.transform(r))+")"};function rb(a){let l="",o="",r="",c="";return a.length>5?(l=a.substring(1,3),o=a.substring(3,5),r=a.substring(5,7),c=a.substring(7,9)):(l=a.substring(1,2),o=a.substring(2,3),r=a.substring(3,4),c=a.substring(4,5),l+=l,o+=o,r+=r,c+=c),{red:parseInt(l,16),green:parseInt(o,16),blue:parseInt(r,16),alpha:c?parseInt(c,16)/255:1}}const df={test:Qf("#"),parse:rb,transform:ji.transform},Is=a=>({test:l=>typeof l=="string"&&l.endsWith(a)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${a}`}),ka=Is("deg"),Un=Is("%"),I=Is("px"),ub=Is("vh"),cb=Is("vw"),l0={...Un,parse:a=>Un.parse(a)/100,transform:a=>Un.transform(a*100)},Cl={test:Qf("hsl","hue"),parse:ky("hue","saturation","lightness"),transform:({hue:a,saturation:l,lightness:o,alpha:r=1})=>"hsla("+Math.round(a)+", "+Un.transform(Gs(l))+", "+Un.transform(Gs(o))+", "+Gs(Zs.transform(r))+")"},te={test:a=>ji.test(a)||df.test(a)||Cl.test(a),parse:a=>ji.test(a)?ji.parse(a):Cl.test(a)?Cl.parse(a):df.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?ji.transform(a):Cl.transform(a),getAnimatableNone:a=>{const l=te.parse(a);return l.alpha=0,te.transform(l)}},fb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function db(a){return isNaN(a)&&typeof a=="string"&&(a.match(Kf)?.length||0)+(a.match(fb)?.length||0)>0}const Xy="number",Ky="color",hb="var",mb="var(",s0="${}",pb=/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 Js(a){const l=a.toString(),o=[],r={color:[],number:[],var:[]},c=[];let h=0;const y=l.replace(pb,v=>(te.test(v)?(r.color.push(h),c.push(Ky),o.push(te.parse(v))):v.startsWith(mb)?(r.var.push(h),c.push(hb),o.push(v)):(r.number.push(h),c.push(Xy),o.push(parseFloat(v))),++h,s0)).split(s0);return{values:o,split:y,indexes:r,types:c}}function Qy(a){return Js(a).values}function Zy(a){const{split:l,types:o}=Js(a),r=l.length;return c=>{let h="";for(let d=0;d<r;d++)if(h+=l[d],c[d]!==void 0){const y=o[d];y===Xy?h+=Gs(c[d]):y===Ky?h+=te.transform(c[d]):h+=c[d]}return h}}const yb=a=>typeof a=="number"?0:te.test(a)?te.getAnimatableNone(a):a;function gb(a){const l=Qy(a);return Zy(a)(l.map(yb))}const vn={test:db,parse:Qy,createTransformer:Zy,getAnimatableNone:gb};function Fc(a,l,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?a+(l-a)*6*o:o<1/2?l:o<2/3?a+(l-a)*(2/3-o)*6:a}function vb({hue:a,saturation:l,lightness:o,alpha:r}){a/=360,l/=100,o/=100;let c=0,h=0,d=0;if(!l)c=h=d=o;else{const y=o<.5?o*(1+l):o+l-o*l,v=2*o-y;c=Fc(v,y,a+1/3),h=Fc(v,y,a),d=Fc(v,y,a-1/3)}return{red:Math.round(c*255),green:Math.round(h*255),blue:Math.round(d*255),alpha:r}}function Nr(a,l){return o=>o>0?l:a}const Gt=(a,l,o)=>a+(l-a)*o,Pc=(a,l,o)=>{const r=a*a,c=o*(l*l-r)+r;return c<0?0:Math.sqrt(c)},xb=[df,ji,Cl],bb=a=>xb.find(l=>l.test(a));function o0(a){const l=bb(a);if(!l)return!1;let o=l.parse(a);return l===Cl&&(o=vb(o)),o}const r0=(a,l)=>{const o=o0(a),r=o0(l);if(!o||!r)return Nr(a,l);const c={...o};return h=>(c.red=Pc(o.red,r.red,h),c.green=Pc(o.green,r.green,h),c.blue=Pc(o.blue,r.blue,h),c.alpha=Gt(o.alpha,r.alpha,h),ji.transform(c))},hf=new Set(["none","hidden"]);function Sb(a,l){return hf.has(a)?o=>o<=0?a:l:o=>o>=1?l:a}function Tb(a,l){return o=>Gt(a,l,o)}function Zf(a){return typeof a=="number"?Tb:typeof a=="string"?Xf(a)?Nr:te.test(a)?r0:Eb:Array.isArray(a)?Jy:typeof a=="object"?te.test(a)?r0:Ab:Nr}function Jy(a,l){const o=[...a],r=o.length,c=a.map((h,d)=>Zf(h)(h,l[d]));return h=>{for(let d=0;d<r;d++)o[d]=c[d](h);return o}}function Ab(a,l){const o={...a,...l},r={};for(const c in o)a[c]!==void 0&&l[c]!==void 0&&(r[c]=Zf(a[c])(a[c],l[c]));return c=>{for(const h in r)o[h]=r[h](c);return o}}function wb(a,l){const o=[],r={color:0,var:0,number:0};for(let c=0;c<l.values.length;c++){const h=l.types[c],d=a.indexes[h][r[h]],y=a.values[d]??0;o[c]=y,r[h]++}return o}const Eb=(a,l)=>{const o=vn.createTransformer(l),r=Js(a),c=Js(l);return r.indexes.var.length===c.indexes.var.length&&r.indexes.color.length===c.indexes.color.length&&r.indexes.number.length>=c.indexes.number.length?hf.has(a)&&!c.values.length||hf.has(l)&&!r.values.length?Sb(a,l):Ws(Jy(wb(r,c),c.values),o):Nr(a,l)};function Fy(a,l,o){return typeof a=="number"&&typeof l=="number"&&typeof o=="number"?Gt(a,l,o):Zf(a)(a,l)}const Cb=a=>{const l=({timestamp:o})=>a(o);return{start:(o=!0)=>Ut.update(l,o),stop:()=>Ka(l),now:()=>de.isProcessing?de.timestamp:Ae.now()}},Py=(a,l,o=10)=>{let r="";const c=Math.max(Math.round(l/o),2);for(let h=0;h<c;h++)r+=Math.round(a(h/(c-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Mr=2e4;function Jf(a){let l=0;const o=50;let r=a.next(l);for(;!r.done&&l<Mr;)l+=o,r=a.next(l);return l>=Mr?1/0:l}function jb(a,l=100,o){const r=o({...a,keyframes:[0,l]}),c=Math.min(Jf(r),Mr);return{type:"keyframes",ease:h=>r.next(c*h).value/l,duration:nn(c)}}const Nb=5;function Wy(a,l,o){const r=Math.max(l-Nb,0);return My(o-a(r),l-r)}const Qt={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},Wc=.001;function Mb({duration:a=Qt.duration,bounce:l=Qt.bounce,velocity:o=Qt.velocity,mass:r=Qt.mass}){let c,h,d=1-l;d=Bn(Qt.minDamping,Qt.maxDamping,d),a=Bn(Qt.minDuration,Qt.maxDuration,nn(a)),d<1?(c=p=>{const x=p*d,b=x*a,T=x-o,O=mf(p,d),V=Math.exp(-b);return Wc-T/O*V},h=p=>{const b=p*d*a,T=b*o+o,O=Math.pow(d,2)*Math.pow(p,2)*a,V=Math.exp(-b),q=mf(Math.pow(p,2),d);return(-c(p)+Wc>0?-1:1)*((T-O)*V)/q}):(c=p=>{const x=Math.exp(-p*a),b=(p-o)*a+1;return-Wc+x*b},h=p=>{const x=Math.exp(-p*a),b=(o-p)*(a*a);return x*b});const y=5/a,v=Ob(c,h,y);if(a=gn(a),isNaN(v))return{stiffness:Qt.stiffness,damping:Qt.damping,duration:a};{const p=Math.pow(v,2)*r;return{stiffness:p,damping:d*2*Math.sqrt(r*p),duration:a}}}const Db=12;function Ob(a,l,o){let r=o;for(let c=1;c<Db;c++)r=r-a(r)/l(r);return r}function mf(a,l){return a*Math.sqrt(1-l*l)}const zb=["duration","bounce"],Rb=["stiffness","damping","mass"];function u0(a,l){return l.some(o=>a[o]!==void 0)}function Vb(a){let l={velocity:Qt.velocity,stiffness:Qt.stiffness,damping:Qt.damping,mass:Qt.mass,isResolvedFromDuration:!1,...a};if(!u0(a,Rb)&&u0(a,zb))if(l.velocity=0,a.visualDuration){const o=a.visualDuration,r=2*Math.PI/(o*1.2),c=r*r,h=2*Bn(.05,1,1-(a.bounce||0))*Math.sqrt(c);l={...l,mass:Qt.mass,stiffness:c,damping:h}}else{const o=Mb({...a,velocity:0});l={...l,...o,mass:Qt.mass},l.isResolvedFromDuration=!0}return l}function Dr(a=Qt.visualDuration,l=Qt.bounce){const o=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:l}:a;let{restSpeed:r,restDelta:c}=o;const h=o.keyframes[0],d=o.keyframes[o.keyframes.length-1],y={done:!1,value:h},{stiffness:v,damping:p,mass:x,duration:b,velocity:T,isResolvedFromDuration:O}=Vb({...o,velocity:-nn(o.velocity||0)}),V=T||0,q=p/(2*Math.sqrt(v*x)),Y=d-h,G=nn(Math.sqrt(v/x)),K=Math.abs(Y)<5;r||(r=K?Qt.restSpeed.granular:Qt.restSpeed.default),c||(c=K?Qt.restDelta.granular:Qt.restDelta.default);let k;if(q<1){const F=mf(G,q);k=it=>{const et=Math.exp(-q*G*it);return d-et*((V+q*G*Y)/F*Math.sin(F*it)+Y*Math.cos(F*it))}}else if(q===1)k=F=>d-Math.exp(-G*F)*(Y+(V+G*Y)*F);else{const F=G*Math.sqrt(q*q-1);k=it=>{const et=Math.exp(-q*G*it),J=Math.min(F*it,300);return d-et*((V+q*G*Y)*Math.sinh(J)+F*Y*Math.cosh(J))/F}}const P={calculatedDuration:O&&b||null,next:F=>{const it=k(F);if(O)y.done=F>=b;else{let et=F===0?V:0;q<1&&(et=F===0?gn(V):Wy(k,F,it));const J=Math.abs(et)<=r,lt=Math.abs(d-it)<=c;y.done=J&<}return y.value=y.done?d:it,y},toString:()=>{const F=Math.min(Jf(P),Mr),it=Py(et=>P.next(F*et).value,F,30);return F+"ms "+it},toTransition:()=>{}};return P}Dr.applyToOptions=a=>{const l=jb(a,100,Dr);return a.ease=l.ease,a.duration=gn(l.duration),a.type="keyframes",a};function pf({keyframes:a,velocity:l=0,power:o=.8,timeConstant:r=325,bounceDamping:c=10,bounceStiffness:h=500,modifyTarget:d,min:y,max:v,restDelta:p=.5,restSpeed:x}){const b=a[0],T={done:!1,value:b},O=J=>y!==void 0&&J<y||v!==void 0&&J>v,V=J=>y===void 0?v:v===void 0||Math.abs(y-J)<Math.abs(v-J)?y:v;let q=o*l;const Y=b+q,G=d===void 0?Y:d(Y);G!==Y&&(q=G-b);const K=J=>-q*Math.exp(-J/r),k=J=>G+K(J),P=J=>{const lt=K(J),At=k(J);T.done=Math.abs(lt)<=p,T.value=T.done?G:At};let F,it;const et=J=>{O(T.value)&&(F=J,it=Dr({keyframes:[T.value,V(T.value)],velocity:Wy(k,J,T.value),damping:c,stiffness:h,restDelta:p,restSpeed:x}))};return et(0),{calculatedDuration:null,next:J=>{let lt=!1;return!it&&F===void 0&&(lt=!0,P(J),et(J)),F!==void 0&&J>=F?it.next(J-F):(!lt&&P(J),T)}}}function _b(a,l,o){const r=[],c=o||la.mix||Fy,h=a.length-1;for(let d=0;d<h;d++){let y=c(a[d],a[d+1]);if(l){const v=Array.isArray(l)?l[d]||an:l;y=Ws(v,y)}r.push(y)}return r}function Ub(a,l,{clamp:o=!0,ease:r,mixer:c}={}){const h=a.length;if(Yf(h===l.length),h===1)return()=>l[0];if(h===2&&l[0]===l[1])return()=>l[1];const d=a[0]===a[1];a[0]>a[h-1]&&(a=[...a].reverse(),l=[...l].reverse());const y=_b(l,r,c),v=y.length,p=x=>{if(d&&x<a[0])return l[0];let b=0;if(v>1)for(;b<a.length-2&&!(x<a[b+1]);b++);const T=Qs(a[b],a[b+1],x);return y[b](T)};return o?x=>p(Bn(a[0],a[h-1],x)):p}function Bb(a,l){const o=a[a.length-1];for(let r=1;r<=l;r++){const c=Qs(0,l,r);a.push(Gt(o,1,c))}}function Lb(a){const l=[0];return Bb(l,a.length-1),l}function Hb(a,l){return a.map(o=>o*l)}function Yb(a,l){return a.map(()=>l||Ly).splice(0,a.length-1)}function ks({duration:a=300,keyframes:l,times:o,ease:r="easeInOut"}){const c=W1(r)?r.map(a0):a0(r),h={done:!1,value:l[0]},d=Hb(o&&o.length===l.length?o:Lb(l),a),y=Ub(d,l,{ease:Array.isArray(c)?c:Yb(l,c)});return{calculatedDuration:a,next:v=>(h.value=y(v),h.done=v>=a,h)}}const qb=a=>a!==null;function Ff(a,{repeat:l,repeatType:o="loop"},r,c=1){const h=a.filter(qb),y=c<0||l&&o!=="loop"&&l%2===1?0:h.length-1;return!y||r===void 0?h[y]:r}const Gb={decay:pf,inertia:pf,tween:ks,keyframes:ks,spring:Dr};function $y(a){typeof a.type=="string"&&(a.type=Gb[a.type])}class Pf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,o){return this.finished.then(l,o)}}const kb=a=>a/100;class Wf extends Pf{constructor(l){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:o}=this.options;o&&o.updatedAt!==Ae.now()&&this.tick(Ae.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=l,this.initAnimation(),this.play(),l.autoplay===!1&&this.pause()}initAnimation(){const{options:l}=this;$y(l);const{type:o=ks,repeat:r=0,repeatDelay:c=0,repeatType:h,velocity:d=0}=l;let{keyframes:y}=l;const v=o||ks;v!==ks&&typeof y[0]!="number"&&(this.mixKeyframes=Ws(kb,Fy(y[0],y[1])),y=[0,100]);const p=v({...l,keyframes:y});h==="mirror"&&(this.mirroredGenerator=v({...l,keyframes:[...y].reverse(),velocity:-d})),p.calculatedDuration===null&&(p.calculatedDuration=Jf(p));const{calculatedDuration:x}=p;this.calculatedDuration=x,this.resolvedDuration=x+c,this.totalDuration=this.resolvedDuration*(r+1)-c,this.generator=p}updateTime(l){const o=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=o}tick(l,o=!1){const{generator:r,totalDuration:c,mixKeyframes:h,mirroredGenerator:d,resolvedDuration:y,calculatedDuration:v}=this;if(this.startTime===null)return r.next(0);const{delay:p=0,keyframes:x,repeat:b,repeatType:T,repeatDelay:O,type:V,onUpdate:q,finalKeyframe:Y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,l):this.speed<0&&(this.startTime=Math.min(l-c/this.speed,this.startTime)),o?this.currentTime=l:this.updateTime(l);const G=this.currentTime-p*(this.playbackSpeed>=0?1:-1),K=this.playbackSpeed>=0?G<0:G>c;this.currentTime=Math.max(G,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let k=this.currentTime,P=r;if(b){const J=Math.min(this.currentTime,c)/y;let lt=Math.floor(J),At=J%1;!At&&J>=1&&(At=1),At===1&<--,lt=Math.min(lt,b+1),lt%2&&(T==="reverse"?(At=1-At,O&&(At-=O/y)):T==="mirror"&&(P=d)),k=Bn(0,1,At)*y}const F=K?{done:!1,value:x[0]}:P.next(k);h&&(F.value=h(F.value));let{done:it}=F;!K&&v!==null&&(it=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const et=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&it);return et&&V!==pf&&(F.value=Ff(x,this.options,Y,this.speed)),q&&q(F.value),et&&this.finish(),F}then(l,o){return this.finished.then(l,o)}get duration(){return nn(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+nn(l)}get time(){return nn(this.currentTime)}set time(l){l=gn(l),this.currentTime=l,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=l:this.driver&&(this.startTime=this.driver.now()-l/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(l){this.updateTime(Ae.now());const o=this.playbackSpeed!==l;this.playbackSpeed=l,o&&(this.time=nn(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=Cb,startTime:o}=this.options;this.driver||(this.driver=l(c=>this.tick(c))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=o??r),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(Ae.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(l){return this.startTime=0,this.tick(l,!0)}attachTimeline(l){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),l.observe(this)}}function Xb(a){for(let l=1;l<a.length;l++)a[l]??(a[l]=a[l-1])}const Ni=a=>a*180/Math.PI,yf=a=>{const l=Ni(Math.atan2(a[1],a[0]));return gf(l)},Kb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:yf,rotateZ:yf,skewX:a=>Ni(Math.atan(a[1])),skewY:a=>Ni(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},gf=a=>(a=a%360,a<0&&(a+=360),a),c0=yf,f0=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),d0=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),Qb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:f0,scaleY:d0,scale:a=>(f0(a)+d0(a))/2,rotateX:a=>gf(Ni(Math.atan2(a[6],a[5]))),rotateY:a=>gf(Ni(Math.atan2(-a[2],a[0]))),rotateZ:c0,rotate:c0,skewX:a=>Ni(Math.atan(a[4])),skewY:a=>Ni(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function vf(a){return a.includes("scale")?1:0}function xf(a,l){if(!a||a==="none")return vf(l);const o=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,c;if(o)r=Qb,c=o;else{const y=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Kb,c=y}if(!c)return vf(l);const h=r[l],d=c[1].split(",").map(Jb);return typeof h=="function"?h(d):d[h]}const Zb=(a,l)=>{const{transform:o="none"}=getComputedStyle(a);return xf(o,l)};function Jb(a){return parseFloat(a.trim())}const Vl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_l=new Set(Vl),h0=a=>a===Rl||a===I,Fb=new Set(["x","y","z"]),Pb=Vl.filter(a=>!Fb.has(a));function Wb(a){const l=[];return Pb.forEach(o=>{const r=a.getValue(o);r!==void 0&&(l.push([o,r.get()]),r.set(o.startsWith("scale")?1:0))}),l}const Xa={width:({x:a},{paddingLeft:l="0",paddingRight:o="0"})=>a.max-a.min-parseFloat(l)-parseFloat(o),height:({y:a},{paddingTop:l="0",paddingBottom:o="0"})=>a.max-a.min-parseFloat(l)-parseFloat(o),top:(a,{top:l})=>parseFloat(l),left:(a,{left:l})=>parseFloat(l),bottom:({y:a},{top:l})=>parseFloat(l)+(a.max-a.min),right:({x:a},{left:l})=>parseFloat(l)+(a.max-a.min),x:(a,{transform:l})=>xf(l,"x"),y:(a,{transform:l})=>xf(l,"y")};Xa.translateX=Xa.x;Xa.translateY=Xa.y;const Mi=new Set;let bf=!1,Sf=!1,Tf=!1;function Iy(){if(Sf){const a=Array.from(Mi).filter(r=>r.needsMeasurement),l=new Set(a.map(r=>r.element)),o=new Map;l.forEach(r=>{const c=Wb(r);c.length&&(o.set(r,c),r.render())}),a.forEach(r=>r.measureInitialState()),l.forEach(r=>{r.render();const c=o.get(r);c&&c.forEach(([h,d])=>{r.getValue(h)?.set(d)})}),a.forEach(r=>r.measureEndState()),a.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Sf=!1,bf=!1,Mi.forEach(a=>a.complete(Tf)),Mi.clear()}function tg(){Mi.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Sf=!0)})}function $b(){Tf=!0,tg(),Iy(),Tf=!1}class $f{constructor(l,o,r,c,h,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=o,this.name=r,this.motionValue=c,this.element=h,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(Mi.add(this),bf||(bf=!0,Ut.read(tg),Ut.resolveKeyframes(Iy))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:o,element:r,motionValue:c}=this;if(l[0]===null){const h=c?.get(),d=l[l.length-1];if(h!==void 0)l[0]=h;else if(r&&o){const y=r.readValue(o,d);y!=null&&(l[0]=y)}l[0]===void 0&&(l[0]=d),c&&h===void 0&&c.set(l[0])}Xb(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),Mi.delete(this)}cancel(){this.state==="scheduled"&&(Mi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ib=a=>a.startsWith("--");function tS(a,l,o){Ib(l)?a.style.setProperty(l,o):a.style[l]=o}const eS={};function eg(a,l){const o=Ny(a);return()=>eS[l]??o()}const nS=eg(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),ng=eg(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),qs=([a,l,o,r])=>`cubic-bezier(${a}, ${l}, ${o}, ${r})`,m0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qs([0,.65,.55,1]),circOut:qs([.55,0,1,.45]),backIn:qs([.31,.01,.66,-.59]),backOut:qs([.33,1.53,.69,.99])};function ag(a,l){if(a)return typeof a=="function"?ng()?Py(a,l):"ease-out":Hy(a)?qs(a):Array.isArray(a)?a.map(o=>ag(o,l)||m0.easeOut):m0[a]}function aS(a,l,o,{delay:r=0,duration:c=300,repeat:h=0,repeatType:d="loop",ease:y="easeOut",times:v}={},p=void 0){const x={[l]:o};v&&(x.offset=v);const b=ag(y,c);Array.isArray(b)&&(x.easing=b);const T={delay:r,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:h+1,direction:d==="reverse"?"alternate":"normal"};return p&&(T.pseudoElement=p),a.animate(x,T)}function ig(a){return typeof a=="function"&&"applyToOptions"in a}function iS({type:a,...l}){return ig(a)&&ng()?a.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class lg extends Pf{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!l)return;const{element:o,name:r,keyframes:c,pseudoElement:h,allowFlatten:d=!1,finalKeyframe:y,onComplete:v}=l;this.isPseudoElement=!!h,this.allowFlatten=d,this.options=l,Yf(typeof l.type!="string");const p=iS(l);this.animation=aS(o,r,c,p,h),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!h){const x=Ff(c,this.options,y,this.speed);this.updateMotionValue?this.updateMotionValue(x):tS(o,r,x),this.animation.cancel()}v?.(),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:l}=this;l==="idle"||l==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const l=this.options?.element;!this.isPseudoElement&&l?.isConnected&&this.animation.commitStyles?.()}get duration(){const l=this.animation.effect?.getComputedTiming?.().duration||0;return nn(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+nn(l)}get time(){return nn(Number(this.animation.currentTime)||0)}set time(l){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=gn(l)}get speed(){return this.animation.playbackRate}set speed(l){l<0&&(this.finishedTime=null),this.animation.playbackRate=l}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(l){this.manualStartTime=this.animation.startTime=l}attachTimeline({timeline:l,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,l&&nS()?(this.animation.timeline=l,an):o(this)}}const sg={anticipate:_y,backInOut:Vy,circInOut:By};function lS(a){return a in sg}function sS(a){typeof a.ease=="string"&&lS(a.ease)&&(a.ease=sg[a.ease])}const $c=10;class oS extends lg{constructor(l){sS(l),$y(l),super(l),l.startTime!==void 0&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:o,onUpdate:r,onComplete:c,element:h,...d}=this.options;if(!o)return;if(l!==void 0){o.set(l);return}const y=new Wf({...d,autoplay:!1}),v=Math.max($c,Ae.now()-this.startTime),p=Bn(0,$c,v-$c);o.setWithVelocity(y.sample(Math.max(0,v-p)).value,y.sample(v).value,p),y.stop()}}const p0=(a,l)=>l==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(vn.test(a)||a==="0")&&!a.startsWith("url("));function rS(a){const l=a[0];if(a.length===1)return!0;for(let o=0;o<a.length;o++)if(a[o]!==l)return!0}function uS(a,l,o,r){const c=a[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const h=a[a.length-1],d=p0(c,l),y=p0(h,l);return!d||!y?!1:rS(a)||(o==="spring"||ig(o))&&r}function Af(a){a.duration=0,a.type="keyframes"}const cS=new Set(["opacity","clipPath","filter","transform"]),fS=Ny(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function dS(a){const{motionValue:l,name:o,repeatDelay:r,repeatType:c,damping:h,type:d}=a;if(!(l?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:v,transformTemplate:p}=l.owner.getProps();return fS()&&o&&cS.has(o)&&(o!=="transform"||!p)&&!v&&!r&&c!=="mirror"&&h!==0&&d!=="inertia"}const hS=40;class mS extends Pf{constructor({autoplay:l=!0,delay:o=0,type:r="keyframes",repeat:c=0,repeatDelay:h=0,repeatType:d="loop",keyframes:y,name:v,motionValue:p,element:x,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ae.now();const T={autoplay:l,delay:o,type:r,repeat:c,repeatDelay:h,repeatType:d,name:v,motionValue:p,element:x,...b},O=x?.KeyframeResolver||$f;this.keyframeResolver=new O(y,(V,q,Y)=>this.onKeyframesResolved(V,q,T,!Y),v,p,x),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,o,r,c){this.keyframeResolver=void 0;const{name:h,type:d,velocity:y,delay:v,isHandoff:p,onUpdate:x}=r;this.resolvedAt=Ae.now(),uS(l,h,d,y)||((la.instantAnimations||!v)&&x?.(Ff(l,r,o)),l[0]=l[l.length-1],Af(r),r.repeat=0);const T={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>hS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...r,keyframes:l},O=!p&&dS(T),V=T.motionValue?.owner?.current,q=O?new oS({...T,element:V}):new Wf(T);q.finished.then(()=>{this.notifyFinished()}).catch(an),this.pendingTimeline&&(this.stopTimeline=q.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=q}get finished(){return this._animation?this.animation.finished:this._finished}then(l,o){return this.finished.finally(l).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),$b()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(l){this.animation.time=l}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(l){this.animation.speed=l}get startTime(){return this.animation.startTime}attachTimeline(l){return this._animation?this.stopTimeline=this.animation.attachTimeline(l):this.pendingTimeline=l,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function og(a,l,o,r=0,c=1){const h=Array.from(a).sort((p,x)=>p.sortNodePosition(x)).indexOf(l),d=a.size,y=(d-1)*r;return typeof o=="function"?o(h,d):c===1?h*r:y-h*r}const pS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function yS(a){const l=pS.exec(a);if(!l)return[,];const[,o,r,c]=l;return[`--${o??r}`,c]}function rg(a,l,o=1){const[r,c]=yS(a);if(!r)return;const h=window.getComputedStyle(l).getPropertyValue(r);if(h){const d=h.trim();return Ey(d)?parseFloat(d):d}return Xf(c)?rg(c,l,o+1):c}const gS={type:"spring",stiffness:500,damping:25,restSpeed:10},vS=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),xS={type:"keyframes",duration:.8},bS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},SS=(a,{keyframes:l})=>l.length>2?xS:_l.has(a)?a.startsWith("scale")?vS(l[1]):gS:bS,TS=a=>a!==null;function AS(a,{repeat:l,repeatType:o="loop"},r){const c=a.filter(TS),h=l&&o!=="loop"&&l%2===1?0:c.length-1;return c[h]}function ug(a,l){if(a?.inherit&&l){const{inherit:o,...r}=a;return{...l,...r}}return a}function If(a,l){const o=a?.[l]??a?.default??a;return o!==a?ug(o,a):o}function wS({when:a,delay:l,delayChildren:o,staggerChildren:r,staggerDirection:c,repeat:h,repeatType:d,repeatDelay:y,from:v,elapsed:p,...x}){return!!Object.keys(x).length}const td=(a,l,o,r={},c,h)=>d=>{const y=If(r,a)||{},v=y.delay||r.delay||0;let{elapsed:p=0}=r;p=p-gn(v);const x={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:l.getVelocity(),...y,delay:-p,onUpdate:T=>{l.set(T),y.onUpdate&&y.onUpdate(T)},onComplete:()=>{d(),y.onComplete&&y.onComplete()},name:a,motionValue:l,element:h?void 0:c};wS(y)||Object.assign(x,SS(a,x)),x.duration&&(x.duration=gn(x.duration)),x.repeatDelay&&(x.repeatDelay=gn(x.repeatDelay)),x.from!==void 0&&(x.keyframes[0]=x.from);let b=!1;if((x.type===!1||x.duration===0&&!x.repeatDelay)&&(Af(x),x.delay===0&&(b=!0)),(la.instantAnimations||la.skipAnimations||c?.shouldSkipAnimations)&&(b=!0,Af(x),x.delay=0),x.allowFlatten=!y.type&&!y.ease,b&&!h&&l.get()!==void 0){const T=AS(x.keyframes,y);if(T!==void 0){Ut.update(()=>{x.onUpdate(T),x.onComplete()});return}}return y.isSync?new Wf(x):new mS(x)};function y0(a){const l=[{},{}];return a?.values.forEach((o,r)=>{l[0][r]=o.get(),l[1][r]=o.getVelocity()}),l}function ed(a,l,o,r){if(typeof l=="function"){const[c,h]=y0(r);l=l(o!==void 0?o:a.custom,c,h)}if(typeof l=="string"&&(l=a.variants&&a.variants[l]),typeof l=="function"){const[c,h]=y0(r);l=l(o!==void 0?o:a.custom,c,h)}return l}function Ol(a,l,o){const r=a.getProps();return ed(r,l,o!==void 0?o:r.custom,a)}const cg=new Set(["width","height","top","left","right","bottom",...Vl]),g0=30,ES=a=>!isNaN(parseFloat(a));class CS{constructor(l,o={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const c=Ae.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=o.owner}setCurrent(l){this.current=l,this.updatedAt=Ae.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=ES(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,o){this.events[l]||(this.events[l]=new qf);const r=this.events[l].add(o);return l==="change"?()=>{r(),Ut.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const l in this.events)this.events[l].clear()}attach(l,o){this.passiveEffect=l,this.stopPassiveEffect=o}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,o,r){this.set(o),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-r}jump(l,o=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(l){this.dependents||(this.dependents=new Set),this.dependents.add(l)}removeDependent(l){this.dependents&&this.dependents.delete(l)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const l=Ae.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>g0)return 0;const o=Math.min(this.updatedAt-this.prevUpdatedAt,g0);return My(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(l){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=l(o),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 zl(a,l){return new CS(a,l)}const wf=a=>Array.isArray(a);function jS(a,l,o){a.hasValue(l)?a.getValue(l).set(o):a.addValue(l,zl(o))}function NS(a){return wf(a)?a[a.length-1]||0:a}function MS(a,l){const o=Ol(a,l);let{transitionEnd:r={},transition:c={},...h}=o||{};h={...h,...r};for(const d in h){const y=NS(h[d]);jS(a,d,y)}}const ve=a=>!!(a&&a.getVelocity);function DS(a){return!!(ve(a)&&a.add)}function Ef(a,l){const o=a.getValue("willChange");if(DS(o))return o.add(l);if(!o&&la.WillChange){const r=new la.WillChange("auto");a.addValue("willChange",r),r.add(l)}}function nd(a){return a.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const OS="framerAppearId",fg="data-"+nd(OS);function dg(a){return a.props[fg]}function zS({protectedKeys:a,needsAnimating:l},o){const r=a.hasOwnProperty(o)&&l[o]!==!0;return l[o]=!1,r}function hg(a,l,{delay:o=0,transitionOverride:r,type:c}={}){let{transition:h,transitionEnd:d,...y}=l;const v=a.getDefaultTransition();h=h?ug(h,v):v;const p=h?.reduceMotion;r&&(h=r);const x=[],b=c&&a.animationState&&a.animationState.getState()[c];for(const T in y){const O=a.getValue(T,a.latestValues[T]??null),V=y[T];if(V===void 0||b&&zS(b,T))continue;const q={delay:o,...If(h||{},T)},Y=O.get();if(Y!==void 0&&!O.isAnimating&&!Array.isArray(V)&&V===Y&&!q.velocity)continue;let G=!1;if(window.MotionHandoffAnimation){const P=dg(a);if(P){const F=window.MotionHandoffAnimation(P,T,Ut);F!==null&&(q.startTime=F,G=!0)}}Ef(a,T);const K=p??a.shouldReduceMotion;O.start(td(T,O,V,K&&cg.has(T)?{type:!1}:q,a,G));const k=O.animation;k&&x.push(k)}if(d){const T=()=>Ut.update(()=>{d&&MS(a,d)});x.length?Promise.all(x).then(T):T()}return x}function Cf(a,l,o={}){const r=Ol(a,l,o.type==="exit"?a.presenceContext?.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=r||{};o.transitionOverride&&(c=o.transitionOverride);const h=r?()=>Promise.all(hg(a,r,o)):()=>Promise.resolve(),d=a.variantChildren&&a.variantChildren.size?(v=0)=>{const{delayChildren:p=0,staggerChildren:x,staggerDirection:b}=c;return RS(a,l,v,p,x,b,o)}:()=>Promise.resolve(),{when:y}=c;if(y){const[v,p]=y==="beforeChildren"?[h,d]:[d,h];return v().then(()=>p())}else return Promise.all([h(),d(o.delay)])}function RS(a,l,o=0,r=0,c=0,h=1,d){const y=[];for(const v of a.variantChildren)v.notify("AnimationStart",l),y.push(Cf(v,l,{...d,delay:o+(typeof r=="function"?0:r)+og(a.variantChildren,v,r,c,h)}).then(()=>v.notify("AnimationComplete",l)));return Promise.all(y)}function VS(a,l,o={}){a.notify("AnimationStart",l);let r;if(Array.isArray(l)){const c=l.map(h=>Cf(a,h,o));r=Promise.all(c)}else if(typeof l=="string")r=Cf(a,l,o);else{const c=typeof l=="function"?Ol(a,l,o.custom):l;r=Promise.all(hg(a,c,o))}return r.then(()=>{a.notify("AnimationComplete",l)})}const _S={test:a=>a==="auto",parse:a=>a},mg=a=>l=>l.test(a),pg=[Rl,I,Un,ka,cb,ub,_S],v0=a=>pg.find(mg(a));function US(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||jy(a):!0}const BS=new Set(["brightness","contrast","saturate","opacity"]);function LS(a){const[l,o]=a.slice(0,-1).split("(");if(l==="drop-shadow")return a;const[r]=o.match(Kf)||[];if(!r)return a;const c=o.replace(r,"");let h=BS.has(l)?1:0;return r!==o&&(h*=100),l+"("+h+c+")"}const HS=/\b([a-z-]*)\(.*?\)/gu,jf={...vn,getAnimatableNone:a=>{const l=a.match(HS);return l?l.map(LS).join(" "):a}},Nf={...vn,getAnimatableNone:a=>{const l=vn.parse(a);return vn.createTransformer(a)(l.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},x0={...Rl,transform:Math.round},YS={rotate:ka,rotateX:ka,rotateY:ka,rotateZ:ka,scale:gr,scaleX:gr,scaleY:gr,scaleZ:gr,skew:ka,skewX:ka,skewY:ka,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:Zs,originX:l0,originY:l0,originZ:I},ad={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,top:I,right:I,bottom:I,left:I,inset:I,insetBlock:I,insetBlockStart:I,insetBlockEnd:I,insetInline:I,insetInlineStart:I,insetInlineEnd:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,paddingBlock:I,paddingBlockStart:I,paddingBlockEnd:I,paddingInline:I,paddingInlineStart:I,paddingInlineEnd:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,marginBlock:I,marginBlockStart:I,marginBlockEnd:I,marginInline:I,marginInlineStart:I,marginInlineEnd:I,fontSize:I,backgroundPositionX:I,backgroundPositionY:I,...YS,zIndex:x0,fillOpacity:Zs,strokeOpacity:Zs,numOctaves:x0},qS={...ad,color:te,backgroundColor:te,outlineColor:te,fill:te,stroke:te,borderColor:te,borderTopColor:te,borderRightColor:te,borderBottomColor:te,borderLeftColor:te,filter:jf,WebkitFilter:jf,mask:Nf,WebkitMask:Nf},yg=a=>qS[a],GS=new Set([jf,Nf]);function gg(a,l){let o=yg(a);return GS.has(o)||(o=vn),o.getAnimatableNone?o.getAnimatableNone(l):void 0}const kS=new Set(["auto","none","0"]);function XS(a,l,o){let r=0,c;for(;r<a.length&&!c;){const h=a[r];typeof h=="string"&&!kS.has(h)&&Js(h).values.length&&(c=a[r]),r++}if(c&&o)for(const h of l)a[h]=gg(o,c)}class KS extends $f{constructor(l,o,r,c,h){super(l,o,r,c,h,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:o,name:r}=this;if(!o||!o.current)return;super.readKeyframes();for(let x=0;x<l.length;x++){let b=l[x];if(typeof b=="string"&&(b=b.trim(),Xf(b))){const T=rg(b,o.current);T!==void 0&&(l[x]=T),x===l.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!cg.has(r)||l.length!==2)return;const[c,h]=l,d=v0(c),y=v0(h),v=i0(c),p=i0(h);if(v!==p&&Xa[r]){this.needsMeasurement=!0;return}if(d!==y)if(h0(d)&&h0(y))for(let x=0;x<l.length;x++){const b=l[x];typeof b=="string"&&(l[x]=parseFloat(b))}else Xa[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:o}=this,r=[];for(let c=0;c<l.length;c++)(l[c]===null||US(l[c]))&&r.push(c);r.length&&XS(l,r,o)}measureInitialState(){const{element:l,unresolvedKeyframes:o,name:r}=this;if(!l||!l.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Xa[r](l.measureViewportBox(),window.getComputedStyle(l.current)),o[0]=this.measuredOrigin;const c=o[o.length-1];c!==void 0&&l.getValue(r,c).jump(c,!1)}measureEndState(){const{element:l,name:o,unresolvedKeyframes:r}=this;if(!l||!l.current)return;const c=l.getValue(o);c&&c.jump(this.measuredOrigin,!1);const h=r.length-1,d=r[h];r[h]=Xa[o](l.measureViewportBox(),window.getComputedStyle(l.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([y,v])=>{l.getValue(y).set(v)}),this.resolveNoneKeyframes()}}const QS=new Set(["opacity","clipPath","filter","transform"]);function vg(a,l,o){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let r=document;const c=o?.[a]??r.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a).filter(r=>r!=null)}const xg=(a,l)=>l&&typeof a=="number"?l.transform(a):a;function Mf(a){return Cy(a)&&"offsetHeight"in a}const{schedule:id}=Yy(queueMicrotask,!1),yn={x:!1,y:!1};function bg(){return yn.x||yn.y}function ZS(a){return a==="x"||a==="y"?yn[a]?null:(yn[a]=!0,()=>{yn[a]=!1}):yn.x||yn.y?null:(yn.x=yn.y=!0,()=>{yn.x=yn.y=!1})}function Sg(a,l){const o=vg(a),r=new AbortController,c={passive:!0,...l,signal:r.signal};return[o,c,()=>r.abort()]}function JS(a){return!(a.pointerType==="touch"||bg())}function FS(a,l,o={}){const[r,c,h]=Sg(a,o);return r.forEach(d=>{let y=!1,v=!1,p;const x=()=>{d.removeEventListener("pointerleave",V)},b=Y=>{p&&(p(Y),p=void 0),x()},T=Y=>{y=!1,window.removeEventListener("pointerup",T),window.removeEventListener("pointercancel",T),v&&(v=!1,b(Y))},O=()=>{y=!0,window.addEventListener("pointerup",T,c),window.addEventListener("pointercancel",T,c)},V=Y=>{if(Y.pointerType!=="touch"){if(y){v=!0;return}b(Y)}},q=Y=>{if(!JS(Y))return;v=!1;const G=l(d,Y);typeof G=="function"&&(p=G,d.addEventListener("pointerleave",V,c))};d.addEventListener("pointerenter",q,c),d.addEventListener("pointerdown",O,c)}),h}const Tg=(a,l)=>l?a===l?!0:Tg(a,l.parentElement):!1,ld=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,PS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function WS(a){return PS.has(a.tagName)||a.isContentEditable===!0}const $S=new Set(["INPUT","SELECT","TEXTAREA"]);function IS(a){return $S.has(a.tagName)||a.isContentEditable===!0}const Sr=new WeakSet;function b0(a){return l=>{l.key==="Enter"&&a(l)}}function Ic(a,l){a.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const t2=(a,l)=>{const o=a.currentTarget;if(!o)return;const r=b0(()=>{if(Sr.has(o))return;Ic(o,"down");const c=b0(()=>{Ic(o,"up")}),h=()=>Ic(o,"cancel");o.addEventListener("keyup",c,l),o.addEventListener("blur",h,l)});o.addEventListener("keydown",r,l),o.addEventListener("blur",()=>o.removeEventListener("keydown",r),l)};function S0(a){return ld(a)&&!bg()}const T0=new WeakSet;function e2(a,l,o={}){const[r,c,h]=Sg(a,o),d=y=>{const v=y.currentTarget;if(!S0(y)||T0.has(y))return;Sr.add(v),o.stopPropagation&&T0.add(y);const p=l(v,y),x=(O,V)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",T),Sr.has(v)&&Sr.delete(v),S0(O)&&typeof p=="function"&&p(O,{success:V})},b=O=>{x(O,v===window||v===document||o.useGlobalTarget||Tg(v,O.target))},T=O=>{x(O,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",T,c)};return r.forEach(y=>{(o.useGlobalTarget?window:y).addEventListener("pointerdown",d,c),Mf(y)&&(y.addEventListener("focus",p=>t2(p,c)),!WS(y)&&!y.hasAttribute("tabindex")&&(y.tabIndex=0))}),h}function sd(a){return Cy(a)&&"ownerSVGElement"in a}const Tr=new WeakMap;let Ar;const Ag=(a,l,o)=>(r,c)=>c&&c[0]?c[0][a+"Size"]:sd(r)&&"getBBox"in r?r.getBBox()[l]:r[o],n2=Ag("inline","width","offsetWidth"),a2=Ag("block","height","offsetHeight");function i2({target:a,borderBoxSize:l}){Tr.get(a)?.forEach(o=>{o(a,{get width(){return n2(a,l)},get height(){return a2(a,l)}})})}function l2(a){a.forEach(i2)}function s2(){typeof ResizeObserver>"u"||(Ar=new ResizeObserver(l2))}function o2(a,l){Ar||s2();const o=vg(a);return o.forEach(r=>{let c=Tr.get(r);c||(c=new Set,Tr.set(r,c)),c.add(l),Ar?.observe(r)}),()=>{o.forEach(r=>{const c=Tr.get(r);c?.delete(l),c?.size||Ar?.unobserve(r)})}}const wr=new Set;let jl;function r2(){jl=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};wr.forEach(l=>l(a))},window.addEventListener("resize",jl)}function u2(a){return wr.add(a),jl||r2(),()=>{wr.delete(a),!wr.size&&typeof jl=="function"&&(window.removeEventListener("resize",jl),jl=void 0)}}function A0(a,l){return typeof a=="function"?u2(a):o2(a,l)}function c2(a){return sd(a)&&a.tagName==="svg"}const f2=[...pg,te,vn],d2=a=>f2.find(mg(a)),w0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Nl=()=>({x:w0(),y:w0()}),E0=()=>({min:0,max:0}),ne=()=>({x:E0(),y:E0()}),h2=new WeakMap;function Ur(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function Fs(a){return typeof a=="string"||Array.isArray(a)}const od=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],rd=["initial",...od];function Br(a){return Ur(a.animate)||rd.some(l=>Fs(a[l]))}function wg(a){return!!(Br(a)||a.variants)}function m2(a,l,o){for(const r in l){const c=l[r],h=o[r];if(ve(c))a.addValue(r,c);else if(ve(h))a.addValue(r,zl(c,{owner:a}));else if(h!==c)if(a.hasValue(r)){const d=a.getValue(r);d.liveStyle===!0?d.jump(c):d.hasAnimated||d.set(c)}else{const d=a.getStaticValue(r);a.addValue(r,zl(d!==void 0?d:c,{owner:a}))}}for(const r in o)l[r]===void 0&&a.removeValue(r);return l}const Df={current:null},Eg={current:!1},p2=typeof window<"u";function y2(){if(Eg.current=!0,!!p2)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),l=()=>Df.current=a.matches;a.addEventListener("change",l),l()}else Df.current=!1}const C0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Or={};function Cg(a){Or=a}function g2(){return Or}class v2{scrapeMotionValuesFromProps(l,o,r){return{}}constructor({parent:l,props:o,presenceContext:r,reducedMotionConfig:c,skipAnimations:h,blockInitialAnimation:d,visualState:y},v={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=$f,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 O=Ae.now();this.renderScheduledAt<O&&(this.renderScheduledAt=O,Ut.render(this.render,!1,!0))};const{latestValues:p,renderState:x}=y;this.latestValues=p,this.baseTarget={...p},this.initialValues=o.initial?{...p}:{},this.renderState=x,this.parent=l,this.props=o,this.presenceContext=r,this.depth=l?l.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=h,this.options=v,this.blockInitialAnimation=!!d,this.isControllingVariants=Br(o),this.isVariantNode=wg(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:b,...T}=this.scrapeMotionValuesFromProps(o,{},this);for(const O in T){const V=T[O];p[O]!==void 0&&ve(V)&&V.set(p[O])}}mount(l){if(this.hasBeenMounted)for(const o in this.initialValues)this.values.get(o)?.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=l,h2.set(l,this),this.projection&&!this.projection.instance&&this.projection.mount(l),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,r)=>this.bindToMotionValue(r,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Eg.current||y2(),this.shouldReduceMotion=Df.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Ka(this.notifyUpdate),Ka(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const l in this.events)this.events[l].clear();for(const l in this.features){const o=this.features[l];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(l){this.children.add(l),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(l)}removeChild(l){this.children.delete(l),this.enteringChildren&&this.enteringChildren.delete(l)}bindToMotionValue(l,o){if(this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)(),o.accelerate&&QS.has(l)&&this.current instanceof HTMLElement){const{factory:d,keyframes:y,times:v,ease:p,duration:x}=o.accelerate,b=new lg({element:this.current,name:l,keyframes:y,times:v,ease:p,duration:gn(x)}),T=d(b);this.valueSubscriptions.set(l,()=>{T(),b.cancel()});return}const r=_l.has(l);r&&this.onBindTransform&&this.onBindTransform();const c=o.on("change",d=>{this.latestValues[l]=d,this.props.onUpdate&&Ut.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let h;typeof window<"u"&&window.MotionCheckAppearSync&&(h=window.MotionCheckAppearSync(this,l,o)),this.valueSubscriptions.set(l,()=>{c(),h&&h(),o.owner&&o.stop()})}sortNodePosition(l){return!this.current||!this.sortInstanceNodePosition||this.type!==l.type?0:this.sortInstanceNodePosition(this.current,l.current)}updateFeatures(){let l="animation";for(l in Or){const o=Or[l];if(!o)continue;const{isEnabled:r,Feature:c}=o;if(!this.features[l]&&c&&r(this.props)&&(this.features[l]=new c(this)),this.features[l]){const h=this.features[l];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ne()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,o){this.latestValues[l]=o}update(l,o){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let r=0;r<C0.length;r++){const c=C0[r];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const h="on"+c,d=l[h];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=m2(this,this.scrapeMotionValuesFromProps(l,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(l){return this.props.variants?this.props.variants[l]: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(l){const o=this.getClosestVariantNode();if(o)return o.variantChildren&&o.variantChildren.add(l),()=>o.variantChildren.delete(l)}addValue(l,o){const r=this.values.get(l);o!==r&&(r&&this.removeValue(l),this.bindToMotionValue(l,o),this.values.set(l,o),this.latestValues[l]=o.get())}removeValue(l){this.values.delete(l);const o=this.valueSubscriptions.get(l);o&&(o(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,o){if(this.props.values&&this.props.values[l])return this.props.values[l];let r=this.values.get(l);return r===void 0&&o!==void 0&&(r=zl(o===null?void 0:o,{owner:this}),this.addValue(l,r)),r}readValue(l,o){let r=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return r!=null&&(typeof r=="string"&&(Ey(r)||jy(r))?r=parseFloat(r):!d2(r)&&vn.test(o)&&(r=gg(l,o)),this.setBaseTarget(l,ve(r)?r.get():r)),ve(r)?r.get():r}setBaseTarget(l,o){this.baseTarget[l]=o}getBaseTarget(l){const{initial:o}=this.props;let r;if(typeof o=="string"||typeof o=="object"){const h=ed(this.props,o,this.presenceContext?.custom);h&&(r=h[l])}if(o&&r!==void 0)return r;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!ve(c)?c:this.initialValues[l]!==void 0&&r===void 0?void 0:this.baseTarget[l]}on(l,o){return this.events[l]||(this.events[l]=new qf),this.events[l].add(o)}notify(l,...o){this.events[l]&&this.events[l].notify(...o)}scheduleRenderMicrotask(){id.render(this.render)}}class jg extends v2{constructor(){super(...arguments),this.KeyframeResolver=KS}sortInstanceNodePosition(l,o){return l.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(l,o){const r=l.style;return r?r[o]:void 0}removeValueFromRenderState(l,{vars:o,style:r}){delete o[l],delete r[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;ve(l)&&(this.childSubscription=l.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}}class Qa{constructor(l){this.isMounted=!1,this.node=l}update(){}}function Ng({top:a,left:l,right:o,bottom:r}){return{x:{min:l,max:o},y:{min:a,max:r}}}function x2({x:a,y:l}){return{top:l.min,right:a.max,bottom:l.max,left:a.min}}function b2(a,l){if(!l)return a;const o=l({x:a.left,y:a.top}),r=l({x:a.right,y:a.bottom});return{top:o.y,left:o.x,bottom:r.y,right:r.x}}function tf(a){return a===void 0||a===1}function Of({scale:a,scaleX:l,scaleY:o}){return!tf(a)||!tf(l)||!tf(o)}function Ci(a){return Of(a)||Mg(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Mg(a){return j0(a.x)||j0(a.y)}function j0(a){return a&&a!=="0%"}function zr(a,l,o){const r=a-o,c=l*r;return o+c}function N0(a,l,o,r,c){return c!==void 0&&(a=zr(a,c,r)),zr(a,o,r)+l}function zf(a,l=0,o=1,r,c){a.min=N0(a.min,l,o,r,c),a.max=N0(a.max,l,o,r,c)}function Dg(a,{x:l,y:o}){zf(a.x,l.translate,l.scale,l.originPoint),zf(a.y,o.translate,o.scale,o.originPoint)}const M0=.999999999999,D0=1.0000000000001;function S2(a,l,o,r=!1){const c=o.length;if(!c)return;l.x=l.y=1;let h,d;for(let y=0;y<c;y++){h=o[y],d=h.projectionDelta;const{visualElement:v}=h.options;v&&v.props.style&&v.props.style.display==="contents"||(r&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Dl(a,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),d&&(l.x*=d.x.scale,l.y*=d.y.scale,Dg(a,d)),r&&Ci(h.latestValues)&&Dl(a,h.latestValues))}l.x<D0&&l.x>M0&&(l.x=1),l.y<D0&&l.y>M0&&(l.y=1)}function Ml(a,l){a.min=a.min+l,a.max=a.max+l}function O0(a,l,o,r,c=.5){const h=Gt(a.min,a.max,c);zf(a,l,o,h,r)}function Dl(a,l){O0(a.x,l.x,l.scaleX,l.scale,l.originX),O0(a.y,l.y,l.scaleY,l.scale,l.originY)}function Og(a,l){return Ng(b2(a.getBoundingClientRect(),l))}function T2(a,l,o){const r=Og(a,o),{scroll:c}=l;return c&&(Ml(r.x,c.offset.x),Ml(r.y,c.offset.y)),r}const A2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},w2=Vl.length;function E2(a,l,o){let r="",c=!0;for(let h=0;h<w2;h++){const d=Vl[h],y=a[d];if(y===void 0)continue;let v=!0;if(typeof y=="number")v=y===(d.startsWith("scale")?1:0);else{const p=parseFloat(y);v=d.startsWith("scale")?p===1:p===0}if(!v||o){const p=xg(y,ad[d]);if(!v){c=!1;const x=A2[d]||d;r+=`${x}(${p}) `}o&&(l[d]=p)}}return r=r.trim(),o?r=o(l,c?"":r):c&&(r="none"),r}function ud(a,l,o){const{style:r,vars:c,transformOrigin:h}=a;let d=!1,y=!1;for(const v in l){const p=l[v];if(_l.has(v)){d=!0;continue}else if(Gy(v)){c[v]=p;continue}else{const x=xg(p,ad[v]);v.startsWith("origin")?(y=!0,h[v]=x):r[v]=x}}if(l.transform||(d||o?r.transform=E2(l,a.transform,o):r.transform&&(r.transform="none")),y){const{originX:v="50%",originY:p="50%",originZ:x=0}=h;r.transformOrigin=`${v} ${p} ${x}`}}function zg(a,{style:l,vars:o},r,c){const h=a.style;let d;for(d in l)h[d]=l[d];c?.applyProjectionStyles(h,r);for(d in o)h.setProperty(d,o[d])}function z0(a,l){return l.max===l.min?0:a/(l.max-l.min)*100}const Hs={correct:(a,l)=>{if(!l.target)return a;if(typeof a=="string")if(I.test(a))a=parseFloat(a);else return a;const o=z0(a,l.target.x),r=z0(a,l.target.y);return`${o}% ${r}%`}},C2={correct:(a,{treeScale:l,projectionDelta:o})=>{const r=a,c=vn.parse(a);if(c.length>5)return r;const h=vn.createTransformer(a),d=typeof c[0]!="number"?1:0,y=o.x.scale*l.x,v=o.y.scale*l.y;c[0+d]/=y,c[1+d]/=v;const p=Gt(y,v,.5);return typeof c[2+d]=="number"&&(c[2+d]/=p),typeof c[3+d]=="number"&&(c[3+d]/=p),h(c)}},Rf={borderRadius:{...Hs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Hs,borderTopRightRadius:Hs,borderBottomLeftRadius:Hs,borderBottomRightRadius:Hs,boxShadow:C2};function Rg(a,{layout:l,layoutId:o}){return _l.has(a)||a.startsWith("origin")||(l||o!==void 0)&&(!!Rf[a]||a==="opacity")}function cd(a,l,o){const r=a.style,c=l?.style,h={};if(!r)return h;for(const d in r)(ve(r[d])||c&&ve(c[d])||Rg(d,a)||o?.getValue(d)?.liveStyle!==void 0)&&(h[d]=r[d]);return h}function j2(a){return window.getComputedStyle(a)}class N2 extends jg{constructor(){super(...arguments),this.type="html",this.renderInstance=zg}readValueFromInstance(l,o){if(_l.has(o))return this.projection?.isProjecting?vf(o):Zb(l,o);{const r=j2(l),c=(Gy(o)?r.getPropertyValue(o):r[o])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:o}){return Og(l,o)}build(l,o,r){ud(l,o,r.transformTemplate)}scrapeMotionValuesFromProps(l,o,r){return cd(l,o,r)}}const M2={offset:"stroke-dashoffset",array:"stroke-dasharray"},D2={offset:"strokeDashoffset",array:"strokeDasharray"};function O2(a,l,o=1,r=0,c=!0){a.pathLength=1;const h=c?M2:D2;a[h.offset]=`${-r}`,a[h.array]=`${l} ${o}`}const z2=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Vg(a,{attrX:l,attrY:o,attrScale:r,pathLength:c,pathSpacing:h=1,pathOffset:d=0,...y},v,p,x){if(ud(a,y,p),v){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:b,style:T}=a;b.transform&&(T.transform=b.transform,delete b.transform),(T.transform||b.transformOrigin)&&(T.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),T.transform&&(T.transformBox=x?.transformBox??"fill-box",delete b.transformBox);for(const O of z2)b[O]!==void 0&&(T[O]=b[O],delete b[O]);l!==void 0&&(b.x=l),o!==void 0&&(b.y=o),r!==void 0&&(b.scale=r),c!==void 0&&O2(b,c,h,d,!1)}const _g=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"]),Ug=a=>typeof a=="string"&&a.toLowerCase()==="svg";function R2(a,l,o,r){zg(a,l,void 0,r);for(const c in l.attrs)a.setAttribute(_g.has(c)?c:nd(c),l.attrs[c])}function Bg(a,l,o){const r=cd(a,l,o);for(const c in a)if(ve(a[c])||ve(l[c])){const h=Vl.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;r[h]=a[c]}return r}class V2 extends jg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ne}getBaseTargetFromProps(l,o){return l[o]}readValueFromInstance(l,o){if(_l.has(o)){const r=yg(o);return r&&r.default||0}return o=_g.has(o)?o:nd(o),l.getAttribute(o)}scrapeMotionValuesFromProps(l,o,r){return Bg(l,o,r)}build(l,o,r){Vg(l,o,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(l,o,r,c){R2(l,o,r,c)}mount(l){this.isSVGTag=Ug(l.tagName),super.mount(l)}}const _2=rd.length;function Lg(a){if(!a)return;if(!a.isControllingVariants){const o=a.parent?Lg(a.parent)||{}:{};return a.props.initial!==void 0&&(o.initial=a.props.initial),o}const l={};for(let o=0;o<_2;o++){const r=rd[o],c=a.props[r];(Fs(c)||c===!1)&&(l[r]=c)}return l}function Hg(a,l){if(!Array.isArray(l))return!1;const o=l.length;if(o!==a.length)return!1;for(let r=0;r<o;r++)if(l[r]!==a[r])return!1;return!0}const U2=[...od].reverse(),B2=od.length;function L2(a){return l=>Promise.all(l.map(({animation:o,options:r})=>VS(a,o,r)))}function H2(a){let l=L2(a),o=R0(),r=!0;const c=v=>(p,x)=>{const b=Ol(a,x,v==="exit"?a.presenceContext?.custom:void 0);if(b){const{transition:T,transitionEnd:O,...V}=b;p={...p,...V,...O}}return p};function h(v){l=v(a)}function d(v){const{props:p}=a,x=Lg(a.parent)||{},b=[],T=new Set;let O={},V=1/0;for(let Y=0;Y<B2;Y++){const G=U2[Y],K=o[G],k=p[G]!==void 0?p[G]:x[G],P=Fs(k),F=G===v?K.isActive:null;F===!1&&(V=Y);let it=k===x[G]&&k!==p[G]&&P;if(it&&r&&a.manuallyAnimateOnMount&&(it=!1),K.protectedKeys={...O},!K.isActive&&F===null||!k&&!K.prevProp||Ur(k)||typeof k=="boolean")continue;if(G==="exit"&&K.isActive&&F!==!0){K.prevResolvedValues&&(O={...O,...K.prevResolvedValues});continue}const et=Y2(K.prevProp,k);let J=et||G===v&&K.isActive&&!it&&P||Y>V&&P,lt=!1;const At=Array.isArray(k)?k:[k];let jt=At.reduce(c(G),{});F===!1&&(jt={});const{prevResolvedValues:Nt={}}=K,Ee={...Nt,...jt},ie=H=>{J=!0,T.has(H)&&(lt=!0,T.delete(H)),K.needsAnimating[H]=!0;const Z=a.getValue(H);Z&&(Z.liveStyle=!1)};for(const H in Ee){const Z=jt[H],mt=Nt[H];if(O.hasOwnProperty(H))continue;let ut=!1;wf(Z)&&wf(mt)?ut=!Hg(Z,mt):ut=Z!==mt,ut?Z!=null?ie(H):T.add(H):Z!==void 0&&T.has(H)?ie(H):K.protectedKeys[H]=!0}K.prevProp=k,K.prevResolvedValues=jt,K.isActive&&(O={...O,...jt}),r&&a.blockInitialAnimation&&(J=!1);const ht=it&&et;J&&(!ht||lt)&&b.push(...At.map(H=>{const Z={type:G};if(typeof H=="string"&&r&&!ht&&a.manuallyAnimateOnMount&&a.parent){const{parent:mt}=a,ut=Ol(mt,H);if(mt.enteringChildren&&ut){const{delayChildren:w}=ut.transition||{};Z.delay=og(mt.enteringChildren,a,w)}}return{animation:H,options:Z}}))}if(T.size){const Y={};if(typeof p.initial!="boolean"){const G=Ol(a,Array.isArray(p.initial)?p.initial[0]:p.initial);G&&G.transition&&(Y.transition=G.transition)}T.forEach(G=>{const K=a.getBaseTarget(G),k=a.getValue(G);k&&(k.liveStyle=!0),Y[G]=K??null}),b.push({animation:Y})}let q=!!b.length;return r&&(p.initial===!1||p.initial===p.animate)&&!a.manuallyAnimateOnMount&&(q=!1),r=!1,q?l(b):Promise.resolve()}function y(v,p){if(o[v].isActive===p)return Promise.resolve();a.variantChildren?.forEach(b=>b.animationState?.setActive(v,p)),o[v].isActive=p;const x=d(v);for(const b in o)o[b].protectedKeys={};return x}return{animateChanges:d,setActive:y,setAnimateFunction:h,getState:()=>o,reset:()=>{o=R0()}}}function Y2(a,l){return typeof l=="string"?l!==a:Array.isArray(l)?!Hg(l,a):!1}function Ei(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function R0(){return{animate:Ei(!0),whileInView:Ei(),whileHover:Ei(),whileTap:Ei(),whileDrag:Ei(),whileFocus:Ei(),exit:Ei()}}function V0(a,l){a.min=l.min,a.max=l.max}function pn(a,l){V0(a.x,l.x),V0(a.y,l.y)}function _0(a,l){a.translate=l.translate,a.scale=l.scale,a.originPoint=l.originPoint,a.origin=l.origin}const Yg=1e-4,q2=1-Yg,G2=1+Yg,qg=.01,k2=0-qg,X2=0+qg;function we(a){return a.max-a.min}function K2(a,l,o){return Math.abs(a-l)<=o}function U0(a,l,o,r=.5){a.origin=r,a.originPoint=Gt(l.min,l.max,a.origin),a.scale=we(o)/we(l),a.translate=Gt(o.min,o.max,a.origin)-a.originPoint,(a.scale>=q2&&a.scale<=G2||isNaN(a.scale))&&(a.scale=1),(a.translate>=k2&&a.translate<=X2||isNaN(a.translate))&&(a.translate=0)}function Xs(a,l,o,r){U0(a.x,l.x,o.x,r?r.originX:void 0),U0(a.y,l.y,o.y,r?r.originY:void 0)}function B0(a,l,o){a.min=o.min+l.min,a.max=a.min+we(l)}function Q2(a,l,o){B0(a.x,l.x,o.x),B0(a.y,l.y,o.y)}function L0(a,l,o){a.min=l.min-o.min,a.max=a.min+we(l)}function Rr(a,l,o){L0(a.x,l.x,o.x),L0(a.y,l.y,o.y)}function H0(a,l,o,r,c){return a-=l,a=zr(a,1/o,r),c!==void 0&&(a=zr(a,1/c,r)),a}function Z2(a,l=0,o=1,r=.5,c,h=a,d=a){if(Un.test(l)&&(l=parseFloat(l),l=Gt(d.min,d.max,l/100)-d.min),typeof l!="number")return;let y=Gt(h.min,h.max,r);a===h&&(y-=l),a.min=H0(a.min,l,o,y,c),a.max=H0(a.max,l,o,y,c)}function Y0(a,l,[o,r,c],h,d){Z2(a,l[o],l[r],l[c],l.scale,h,d)}const J2=["x","scaleX","originX"],F2=["y","scaleY","originY"];function q0(a,l,o,r){Y0(a.x,l,J2,o?o.x:void 0,r?r.x:void 0),Y0(a.y,l,F2,o?o.y:void 0,r?r.y:void 0)}function G0(a){return a.translate===0&&a.scale===1}function Gg(a){return G0(a.x)&&G0(a.y)}function k0(a,l){return a.min===l.min&&a.max===l.max}function P2(a,l){return k0(a.x,l.x)&&k0(a.y,l.y)}function X0(a,l){return Math.round(a.min)===Math.round(l.min)&&Math.round(a.max)===Math.round(l.max)}function kg(a,l){return X0(a.x,l.x)&&X0(a.y,l.y)}function K0(a){return we(a.x)/we(a.y)}function Q0(a,l){return a.translate===l.translate&&a.scale===l.scale&&a.originPoint===l.originPoint}function _n(a){return[a("x"),a("y")]}function W2(a,l,o){let r="";const c=a.x.translate/l.x,h=a.y.translate/l.y,d=o?.z||0;if((c||h||d)&&(r=`translate3d(${c}px, ${h}px, ${d}px) `),(l.x!==1||l.y!==1)&&(r+=`scale(${1/l.x}, ${1/l.y}) `),o){const{transformPerspective:p,rotate:x,rotateX:b,rotateY:T,skewX:O,skewY:V}=o;p&&(r=`perspective(${p}px) ${r}`),x&&(r+=`rotate(${x}deg) `),b&&(r+=`rotateX(${b}deg) `),T&&(r+=`rotateY(${T}deg) `),O&&(r+=`skewX(${O}deg) `),V&&(r+=`skewY(${V}deg) `)}const y=a.x.scale*l.x,v=a.y.scale*l.y;return(y!==1||v!==1)&&(r+=`scale(${y}, ${v})`),r||"none"}const Xg=["TopLeft","TopRight","BottomLeft","BottomRight"],$2=Xg.length,Z0=a=>typeof a=="string"?parseFloat(a):a,J0=a=>typeof a=="number"||I.test(a);function I2(a,l,o,r,c,h){c?(a.opacity=Gt(0,o.opacity??1,tT(r)),a.opacityExit=Gt(l.opacity??1,0,eT(r))):h&&(a.opacity=Gt(l.opacity??1,o.opacity??1,r));for(let d=0;d<$2;d++){const y=`border${Xg[d]}Radius`;let v=F0(l,y),p=F0(o,y);if(v===void 0&&p===void 0)continue;v||(v=0),p||(p=0),v===0||p===0||J0(v)===J0(p)?(a[y]=Math.max(Gt(Z0(v),Z0(p),r),0),(Un.test(p)||Un.test(v))&&(a[y]+="%")):a[y]=p}(l.rotate||o.rotate)&&(a.rotate=Gt(l.rotate||0,o.rotate||0,r))}function F0(a,l){return a[l]!==void 0?a[l]:a.borderRadius}const tT=Kg(0,.5,Uy),eT=Kg(.5,.95,an);function Kg(a,l,o){return r=>r<a?0:r>l?1:o(Qs(a,l,r))}function nT(a,l,o){const r=ve(a)?a:zl(a);return r.start(td("",r,l,o)),r.animation}function Ps(a,l,o,r={passive:!0}){return a.addEventListener(l,o,r),()=>a.removeEventListener(l,o)}const aT=(a,l)=>a.depth-l.depth;class iT{constructor(){this.children=[],this.isDirty=!1}add(l){Hf(this.children,l),this.isDirty=!0}remove(l){jr(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(aT),this.isDirty=!1,this.children.forEach(l)}}function lT(a,l){const o=Ae.now(),r=({timestamp:c})=>{const h=c-o;h>=l&&(Ka(r),a(h-l))};return Ut.setup(r,!0),()=>Ka(r)}function Er(a){return ve(a)?a.get():a}class sT{constructor(){this.members=[]}add(l){Hf(this.members,l);for(let o=this.members.length-1;o>=0;o--){const r=this.members[o];if(r===l||r===this.lead||r===this.prevLead)continue;const c=r.instance;c&&c.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&jr(this.members,r)}l.scheduleRender()}remove(l){if(jr(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(l){const o=this.members.findIndex(c=>l===c);if(o===0)return!1;let r;for(let c=o;c>=0;c--){const h=this.members[c],d=h.instance;if(h.isPresent!==!1&&(!d||d.isConnected!==!1)){r=h;break}}return r?(this.promote(r),!0):!1}promote(l,o){const r=this.lead;if(l!==r&&(this.prevLead=r,this.lead=l,l.show(),r)){r.instance&&r.scheduleRender(),l.scheduleRender();const c=r.options.layoutDependency,h=l.options.layoutDependency;if(!(c!==void 0&&h!==void 0&&c===h)){const v=r.instance;v&&v.isConnected===!1&&!r.snapshot||(l.resumeFrom=r,o&&(l.resumeFrom.preserveOpacity=!0),r.snapshot&&(l.snapshot=r.snapshot,l.snapshot.latestValues=r.animationValues||r.latestValues),l.root&&l.root.isUpdating&&(l.isLayoutDirty=!0))}const{crossfade:y}=l.options;y===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(l=>{const{options:o,resumingFrom:r}=l;o.onExitComplete&&o.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(l=>{l.instance&&l.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Cr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ef=["","X","Y","Z"],oT=1e3;let rT=0;function nf(a,l,o,r){const{latestValues:c}=l;c[a]&&(o[a]=c[a],l.setStaticValue(a,0),r&&(r[a]=0))}function Qg(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:l}=a.options;if(!l)return;const o=dg(l);if(window.MotionHasOptimisedAnimation(o,"transform")){const{layout:c,layoutId:h}=a.options;window.MotionCancelOptimisedAnimation(o,"transform",Ut,!(c||h))}const{parent:r}=a;r&&!r.hasCheckedOptimisedAppear&&Qg(r)}function Zg({attachResizeListener:a,defaultParent:l,measureScroll:o,checkIsScrollRoot:r,resetTransform:c}){return class{constructor(d={},y=l?.()){this.id=rT++,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(fT),this.nodes.forEach(pT),this.nodes.forEach(yT),this.nodes.forEach(dT)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=y?y.root||y:this,this.path=y?[...y.path,y]:[],this.parent=y,this.depth=y?y.depth+1:0;for(let v=0;v<this.path.length;v++)this.path[v].shouldResetTransform=!0;this.root===this&&(this.nodes=new iT)}addEventListener(d,y){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new qf),this.eventHandlers.get(d).add(y)}notifyListeners(d,...y){const v=this.eventHandlers.get(d);v&&v.notify(...y)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=sd(d)&&!c2(d),this.instance=d;const{layoutId:y,layout:v,visualElement:p}=this.options;if(p&&!p.current&&p.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(v||y)&&(this.isLayoutDirty=!0),a){let x,b=0;const T=()=>this.root.updateBlockedByResize=!1;Ut.read(()=>{b=window.innerWidth}),a(d,()=>{const O=window.innerWidth;O!==b&&(b=O,this.root.updateBlockedByResize=!0,x&&x(),x=lT(T,250),Cr.hasAnimatedSinceResize&&(Cr.hasAnimatedSinceResize=!1,this.nodes.forEach($0)))})}y&&this.root.registerSharedNode(y,this),this.options.animate!==!1&&p&&(y||v)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:b,hasRelativeLayoutChanged:T,layout:O})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const V=this.options.transition||p.getDefaultTransition()||ST,{onLayoutAnimationStart:q,onLayoutAnimationComplete:Y}=p.getProps(),G=!this.targetLayout||!kg(this.targetLayout,O),K=!b&&T;if(this.options.layoutRoot||this.resumeFrom||K||b&&(G||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const k={...If(V,"layout"),onPlay:q,onComplete:Y};(p.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k),this.setAnimationOrigin(x,K)}else b||$0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=O})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ka(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(gT),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Qg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let x=0;x<this.path.length;x++){const b=this.path[x];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:y,layout:v}=this.options;if(y===void 0&&!v)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(P0);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(W0);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mT),this.nodes.forEach(uT),this.nodes.forEach(cT)):this.nodes.forEach(W0),this.clearAllSnapshots();const y=Ae.now();de.delta=Bn(0,1e3/60,y-de.timestamp),de.timestamp=y,de.isProcessing=!0,Zc.update.process(de),Zc.preRender.process(de),Zc.render.process(de),de.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,id.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hT),this.sharedNodes.forEach(vT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ut.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ut.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!we(this.snapshot.measuredBox.x)&&!we(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 v=0;v<this.path.length;v++)this.path[v].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ne(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:y}=this.options;y&&y.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let y=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(y=!1),y&&this.instance){const v=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:v,offset:o(this.instance),wasRoot:this.scroll?this.scroll.isRoot:v}}}resetTransform(){if(!c)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,y=this.projectionDelta&&!Gg(this.projectionDelta),v=this.getTransformTemplate(),p=v?v(this.latestValues,""):void 0,x=p!==this.prevTransformTemplateValue;d&&this.instance&&(y||Ci(this.latestValues)||x)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const y=this.measurePageBox();let v=this.removeElementScroll(y);return d&&(v=this.removeTransform(v)),TT(v),{animationId:this.root.animationId,measuredBox:y,layoutBox:v,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return ne();const y=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(AT))){const{scroll:p}=this.root;p&&(Ml(y.x,p.offset.x),Ml(y.y,p.offset.y))}return y}removeElementScroll(d){const y=ne();if(pn(y,d),this.scroll?.wasRoot)return y;for(let v=0;v<this.path.length;v++){const p=this.path[v],{scroll:x,options:b}=p;p!==this.root&&x&&b.layoutScroll&&(x.wasRoot&&pn(y,d),Ml(y.x,x.offset.x),Ml(y.y,x.offset.y))}return y}applyTransform(d,y=!1){const v=ne();pn(v,d);for(let p=0;p<this.path.length;p++){const x=this.path[p];!y&&x.options.layoutScroll&&x.scroll&&x!==x.root&&Dl(v,{x:-x.scroll.offset.x,y:-x.scroll.offset.y}),Ci(x.latestValues)&&Dl(v,x.latestValues)}return Ci(this.latestValues)&&Dl(v,this.latestValues),v}removeTransform(d){const y=ne();pn(y,d);for(let v=0;v<this.path.length;v++){const p=this.path[v];if(!p.instance||!Ci(p.latestValues))continue;Of(p.latestValues)&&p.updateSnapshot();const x=ne(),b=p.measurePageBox();pn(x,b),q0(y,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,x)}return Ci(this.latestValues)&&q0(y,this.latestValues),y}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.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!==de.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const y=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=y.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=y.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=y.isSharedProjectionDirty);const v=!!this.resumingFrom||this!==y;if(!(d||v&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:x,layoutId:b}=this.options;if(!this.layout||!(x||b))return;this.resolvedRelativeTargetAt=de.timestamp;const T=this.getClosestProjectingParent();T&&this.linkedParentVersion!==T.layoutVersion&&!T.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(T&&T.layout?this.createRelativeTarget(T,this.layout.layoutBox,T.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ne(),this.targetWithTransforms=ne()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Q2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):pn(this.target,this.layout.layoutBox),Dg(this.target,this.targetDelta)):pn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?this.createRelativeTarget(T,this.target,T.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Of(this.parent.latestValues)||Mg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,y,v){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ne(),this.relativeTargetOrigin=ne(),Rr(this.relativeTargetOrigin,y,v),pn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),y=!!this.resumingFrom||this!==d;let v=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(v=!1),y&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(v=!1),this.resolvedRelativeTargetAt===de.timestamp&&(v=!1),v)return;const{layout:p,layoutId:x}=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||x))return;pn(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,T=this.treeScale.y;S2(this.layoutCorrected,this.treeScale,this.path,y),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=ne());const{target:O}=d;if(!O){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(_0(this.prevProjectionDelta.x,this.projectionDelta.x),_0(this.prevProjectionDelta.y,this.projectionDelta.y)),Xs(this.projectionDelta,this.layoutCorrected,O,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==T||!Q0(this.projectionDelta.x,this.prevProjectionDelta.x)||!Q0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",O))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const y=this.getStack();y&&y.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Nl(),this.projectionDelta=Nl(),this.projectionDeltaWithTransform=Nl()}setAnimationOrigin(d,y=!1){const v=this.snapshot,p=v?v.latestValues:{},x={...this.latestValues},b=Nl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!y;const T=ne(),O=v?v.source:void 0,V=this.layout?this.layout.source:void 0,q=O!==V,Y=this.getStack(),G=!Y||Y.members.length<=1,K=!!(q&&!G&&this.options.crossfade===!0&&!this.path.some(bT));this.animationProgress=0;let k;this.mixTargetDelta=P=>{const F=P/1e3;I0(b.x,d.x,F),I0(b.y,d.y,F),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Rr(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),xT(this.relativeTarget,this.relativeTargetOrigin,T,F),k&&P2(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=ne()),pn(k,this.relativeTarget)),q&&(this.animationValues=x,I2(x,p,this.latestValues,F,K,G)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=F},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ka(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ut.update(()=>{Cr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=zl(0)),this.motionValue.jump(0,!1),this.currentAnimation=nT(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),d.onUpdate&&d.onUpdate(y)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.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 d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(oT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:y,target:v,layout:p,latestValues:x}=d;if(!(!y||!v||!p)){if(this!==d&&this.layout&&p&&Jg(this.options.animationType,this.layout.layoutBox,p.layoutBox)){v=this.target||ne();const b=we(this.layout.layoutBox.x);v.x.min=d.target.x.min,v.x.max=v.x.min+b;const T=we(this.layout.layoutBox.y);v.y.min=d.target.y.min,v.y.max=v.y.min+T}pn(y,v),Dl(y,x),Xs(this.projectionDeltaWithTransform,this.layoutCorrected,y,x)}}registerSharedNode(d,y){this.sharedNodes.has(d)||this.sharedNodes.set(d,new sT),this.sharedNodes.get(d).add(y);const p=y.options.initialPromotionConfig;y.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(y):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:y,preserveFollowOpacity:v}={}){const p=this.getStack();p&&p.promote(this,v),d&&(this.projectionDelta=void 0,this.needsReset=!0),y&&this.setOptions({transition:y})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let y=!1;const{latestValues:v}=d;if((v.z||v.rotate||v.rotateX||v.rotateY||v.rotateZ||v.skewX||v.skewY)&&(y=!0),!y)return;const p={};v.z&&nf("z",d,p,this.animationValues);for(let x=0;x<ef.length;x++)nf(`rotate${ef[x]}`,d,p,this.animationValues),nf(`skew${ef[x]}`,d,p,this.animationValues);d.render();for(const x in p)d.setStaticValue(x,p[x]),this.animationValues&&(this.animationValues[x]=p[x]);d.scheduleRender()}applyProjectionStyles(d,y){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const v=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=Er(y?.pointerEvents)||"",d.transform=v?v(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=Er(y?.pointerEvents)||""),this.hasProjected&&!Ci(this.latestValues)&&(d.transform=v?v({},""):"none",this.hasProjected=!1);return}d.visibility="";const x=p.animationValues||p.latestValues;this.applyTransformsToTarget();let b=W2(this.projectionDeltaWithTransform,this.treeScale,x);v&&(b=v(x,b)),d.transform=b;const{x:T,y:O}=this.projectionDelta;d.transformOrigin=`${T.origin*100}% ${O.origin*100}% 0`,p.animationValues?d.opacity=p===this?x.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:d.opacity=p===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const V in Rf){if(x[V]===void 0)continue;const{correct:q,applyTo:Y,isCSSVariable:G}=Rf[V],K=b==="none"?x[V]:q(x[V],p);if(Y){const k=Y.length;for(let P=0;P<k;P++)d[Y[P]]=K}else G?this.options.visualElement.renderState.vars[V]=K:d[V]=K}this.options.layoutId&&(d.pointerEvents=p===this?Er(y?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(P0),this.root.sharedNodes.clear()}}}function uT(a){a.updateLayout()}function cT(a){const l=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&l&&a.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:r}=a.layout,{animationType:c}=a.options,h=l.source!==a.layout.source;c==="size"?_n(x=>{const b=h?l.measuredBox[x]:l.layoutBox[x],T=we(b);b.min=o[x].min,b.max=b.min+T}):Jg(c,l.layoutBox,o)&&_n(x=>{const b=h?l.measuredBox[x]:l.layoutBox[x],T=we(o[x]);b.max=b.min+T,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[x].max=a.relativeTarget[x].min+T)});const d=Nl();Xs(d,o,l.layoutBox);const y=Nl();h?Xs(y,a.applyTransform(r,!0),l.measuredBox):Xs(y,o,l.layoutBox);const v=!Gg(d);let p=!1;if(!a.resumeFrom){const x=a.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:b,layout:T}=x;if(b&&T){const O=ne();Rr(O,l.layoutBox,b.layoutBox);const V=ne();Rr(V,o,T.layoutBox),kg(O,V)||(p=!0),x.options.layoutRoot&&(a.relativeTarget=V,a.relativeTargetOrigin=O,a.relativeParent=x)}}}a.notifyListeners("didUpdate",{layout:o,snapshot:l,delta:y,layoutDelta:d,hasLayoutChanged:v,hasRelativeLayoutChanged:p})}else if(a.isLead()){const{onExitComplete:o}=a.options;o&&o()}a.options.transition=void 0}function fT(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function dT(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function hT(a){a.clearSnapshot()}function P0(a){a.clearMeasurements()}function W0(a){a.isLayoutDirty=!1}function mT(a){const{visualElement:l}=a.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),a.resetTransform()}function $0(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function pT(a){a.resolveTargetDelta()}function yT(a){a.calcProjection()}function gT(a){a.resetSkewAndRotation()}function vT(a){a.removeLeadSnapshot()}function I0(a,l,o){a.translate=Gt(l.translate,0,o),a.scale=Gt(l.scale,1,o),a.origin=l.origin,a.originPoint=l.originPoint}function ty(a,l,o,r){a.min=Gt(l.min,o.min,r),a.max=Gt(l.max,o.max,r)}function xT(a,l,o,r){ty(a.x,l.x,o.x,r),ty(a.y,l.y,o.y,r)}function bT(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const ST={duration:.45,ease:[.4,0,.1,1]},ey=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),ny=ey("applewebkit/")&&!ey("chrome/")?Math.round:an;function ay(a){a.min=ny(a.min),a.max=ny(a.max)}function TT(a){ay(a.x),ay(a.y)}function Jg(a,l,o){return a==="position"||a==="preserve-aspect"&&!K2(K0(l),K0(o),.2)}function AT(a){return a!==a.root&&a.scroll?.wasRoot}const wT=Zg({attachResizeListener:(a,l)=>Ps(a,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),af={current:void 0},Fg=Zg({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!af.current){const a=new wT({});a.mount(window),a.setOptions({layoutScroll:!0}),af.current=a}return af.current},resetTransform:(a,l)=>{a.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),fd=M.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function iy(a,l){if(typeof a=="function")return a(l);a!=null&&(a.current=l)}function ET(...a){return l=>{let o=!1;const r=a.map(c=>{const h=iy(c,l);return!o&&typeof h=="function"&&(o=!0),h});if(o)return()=>{for(let c=0;c<r.length;c++){const h=r[c];typeof h=="function"?h():iy(a[c],null)}}}}function CT(...a){return M.useCallback(ET(...a),a)}class jT extends M.Component{getSnapshotBeforeUpdate(l){const o=this.props.childRef.current;if(o&&l.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=o.offsetParent,c=Mf(r)&&r.offsetWidth||0,h=Mf(r)&&r.offsetHeight||0,d=this.props.sizeRef.current;d.height=o.offsetHeight||0,d.width=o.offsetWidth||0,d.top=o.offsetTop,d.left=o.offsetLeft,d.right=c-d.width-d.left,d.bottom=h-d.height-d.top}return null}componentDidUpdate(){}render(){return this.props.children}}function NT({children:a,isPresent:l,anchorX:o,anchorY:r,root:c,pop:h}){const d=M.useId(),y=M.useRef(null),v=M.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=M.useContext(fd),x=a.props?.ref??a?.ref,b=CT(y,x);return M.useInsertionEffect(()=>{const{width:T,height:O,top:V,left:q,right:Y,bottom:G}=v.current;if(l||h===!1||!y.current||!T||!O)return;const K=o==="left"?`left: ${q}`:`right: ${Y}`,k=r==="bottom"?`bottom: ${G}`:`top: ${V}`;y.current.dataset.motionPopId=d;const P=document.createElement("style");p&&(P.nonce=p);const F=c??document.head;return F.appendChild(P),P.sheet&&P.sheet.insertRule(`
|
|
10
|
+
[data-motion-pop-id="${d}"] {
|
|
11
|
+
position: absolute !important;
|
|
12
|
+
width: ${T}px !important;
|
|
13
|
+
height: ${O}px !important;
|
|
14
|
+
${K}px !important;
|
|
15
|
+
${k}px !important;
|
|
16
|
+
}
|
|
17
|
+
`),()=>{F.contains(P)&&F.removeChild(P)}},[l]),m.jsx(jT,{isPresent:l,childRef:y,sizeRef:v,pop:h,children:h===!1?a:M.cloneElement(a,{ref:b})})}const MT=({children:a,initial:l,isPresent:o,onExitComplete:r,custom:c,presenceAffectsLayout:h,mode:d,anchorX:y,anchorY:v,root:p})=>{const x=Lf(DT),b=M.useId();let T=!0,O=M.useMemo(()=>(T=!1,{id:b,initial:l,isPresent:o,custom:c,onExitComplete:V=>{x.set(V,!0);for(const q of x.values())if(!q)return;r&&r()},register:V=>(x.set(V,!1),()=>x.delete(V))}),[o,x,r]);return h&&T&&(O={...O}),M.useMemo(()=>{x.forEach((V,q)=>x.set(q,!1))},[o]),M.useEffect(()=>{!o&&!x.size&&r&&r()},[o]),a=m.jsx(NT,{pop:d==="popLayout",isPresent:o,anchorX:y,anchorY:v,root:p,children:a}),m.jsx(_r.Provider,{value:O,children:a})};function DT(){return new Map}function Pg(a=!0){const l=M.useContext(_r);if(l===null)return[!0,null];const{isPresent:o,onExitComplete:r,register:c}=l,h=M.useId();M.useEffect(()=>{if(a)return c(h)},[a]);const d=M.useCallback(()=>a&&r&&r(h),[h,r,a]);return!o&&r?[!1,d]:[!0]}const vr=a=>a.key||"";function ly(a){const l=[];return M.Children.forEach(a,o=>{M.isValidElement(o)&&l.push(o)}),l}const sy=({children:a,custom:l,initial:o=!0,onExitComplete:r,presenceAffectsLayout:c=!0,mode:h="sync",propagate:d=!1,anchorX:y="left",anchorY:v="top",root:p})=>{const[x,b]=Pg(d),T=M.useMemo(()=>ly(a),[a]),O=d&&!x?[]:T.map(vr),V=M.useRef(!0),q=M.useRef(T),Y=Lf(()=>new Map),G=M.useRef(new Set),[K,k]=M.useState(T),[P,F]=M.useState(T);wy(()=>{V.current=!1,q.current=T;for(let J=0;J<P.length;J++){const lt=vr(P[J]);O.includes(lt)?(Y.delete(lt),G.current.delete(lt)):Y.get(lt)!==!0&&Y.set(lt,!1)}},[P,O.length,O.join("-")]);const it=[];if(T!==K){let J=[...T];for(let lt=0;lt<P.length;lt++){const At=P[lt],jt=vr(At);O.includes(jt)||(J.splice(lt,0,At),it.push(At))}return h==="wait"&&it.length&&(J=it),F(ly(J)),k(T),null}const{forceRender:et}=M.useContext(Bf);return m.jsx(m.Fragment,{children:P.map(J=>{const lt=vr(J),At=d&&!x?!1:T===P||O.includes(lt),jt=()=>{if(G.current.has(lt))return;if(G.current.add(lt),Y.has(lt))Y.set(lt,!0);else return;let Nt=!0;Y.forEach(Ee=>{Ee||(Nt=!1)}),Nt&&(et?.(),F(q.current),d&&b?.(),r&&r())};return m.jsx(MT,{isPresent:At,initial:!V.current||o?void 0:!1,custom:l,presenceAffectsLayout:c,mode:h,root:p,onExitComplete:At?void 0:jt,anchorX:y,anchorY:v,children:J},lt)})})},Wg=M.createContext({strict:!1}),oy={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 ry=!1;function OT(){if(ry)return;const a={};for(const l in oy)a[l]={isEnabled:o=>oy[l].some(r=>!!o[r])};Cg(a),ry=!0}function $g(){return OT(),g2()}function zT(a){const l=$g();for(const o in a)l[o]={...l[o],...a[o]};Cg(l)}const RT=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","propagate","ignoreStrict","viewport"]);function Vr(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||RT.has(a)}let Ig=a=>!Vr(a);function VT(a){typeof a=="function"&&(Ig=l=>l.startsWith("on")?!Vr(l):a(l))}try{VT(require("@emotion/is-prop-valid").default)}catch{}function _T(a,l,o){const r={};for(const c in a)c==="values"&&typeof a.values=="object"||(Ig(c)||o===!0&&Vr(c)||!l&&!Vr(c)||a.draggable&&c.startsWith("onDrag"))&&(r[c]=a[c]);return r}const Lr=M.createContext({});function UT(a,l){if(Br(a)){const{initial:o,animate:r}=a;return{initial:o===!1||Fs(o)?o:void 0,animate:Fs(r)?r:void 0}}return a.inherit!==!1?l:{}}function BT(a){const{initial:l,animate:o}=UT(a,M.useContext(Lr));return M.useMemo(()=>({initial:l,animate:o}),[uy(l),uy(o)])}function uy(a){return Array.isArray(a)?a.join(" "):a}const dd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tv(a,l,o){for(const r in l)!ve(l[r])&&!Rg(r,o)&&(a[r]=l[r])}function LT({transformTemplate:a},l){return M.useMemo(()=>{const o=dd();return ud(o,l,a),Object.assign({},o.vars,o.style)},[l])}function HT(a,l){const o=a.style||{},r={};return tv(r,o,a),Object.assign(r,LT(a,l)),r}function YT(a,l){const o={},r=HT(a,l);return a.drag&&a.dragListener!==!1&&(o.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(o.tabIndex=0),o.style=r,o}const ev=()=>({...dd(),attrs:{}});function qT(a,l,o,r){const c=M.useMemo(()=>{const h=ev();return Vg(h,l,Ug(r),a.transformTemplate,a.style),{...h.attrs,style:{...h.style}}},[l]);if(a.style){const h={};tv(h,a.style,a),c.style={...h,...c.style}}return c}const GT=["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 hd(a){return typeof a!="string"||a.includes("-")?!1:!!(GT.indexOf(a)>-1||/[A-Z]/u.test(a))}function kT(a,l,o,{latestValues:r},c,h=!1,d){const v=(d??hd(a)?qT:YT)(l,r,c,a),p=_T(l,typeof a=="string",h),x=a!==M.Fragment?{...p,...v,ref:o}:{},{children:b}=l,T=M.useMemo(()=>ve(b)?b.get():b,[b]);return M.createElement(a,{...x,children:T})}function XT({scrapeMotionValuesFromProps:a,createRenderState:l},o,r,c){return{latestValues:KT(o,r,c,a),renderState:l()}}function KT(a,l,o,r){const c={},h=r(a,{});for(const T in h)c[T]=Er(h[T]);let{initial:d,animate:y}=a;const v=Br(a),p=wg(a);l&&p&&!v&&a.inherit!==!1&&(d===void 0&&(d=l.initial),y===void 0&&(y=l.animate));let x=o?o.initial===!1:!1;x=x||d===!1;const b=x?y:d;if(b&&typeof b!="boolean"&&!Ur(b)){const T=Array.isArray(b)?b:[b];for(let O=0;O<T.length;O++){const V=ed(a,T[O]);if(V){const{transitionEnd:q,transition:Y,...G}=V;for(const K in G){let k=G[K];if(Array.isArray(k)){const P=x?k.length-1:0;k=k[P]}k!==null&&(c[K]=k)}for(const K in q)c[K]=q[K]}}}return c}const nv=a=>(l,o)=>{const r=M.useContext(Lr),c=M.useContext(_r),h=()=>XT(a,l,r,c);return o?h():Lf(h)},QT=nv({scrapeMotionValuesFromProps:cd,createRenderState:dd}),ZT=nv({scrapeMotionValuesFromProps:Bg,createRenderState:ev}),JT=Symbol.for("motionComponentSymbol");function FT(a,l,o){const r=M.useRef(o);M.useInsertionEffect(()=>{r.current=o});const c=M.useRef(null);return M.useCallback(h=>{h&&a.onMount?.(h),l&&(h?l.mount(h):l.unmount());const d=r.current;if(typeof d=="function")if(h){const y=d(h);typeof y=="function"&&(c.current=y)}else c.current?(c.current(),c.current=null):d(h);else d&&(d.current=h)},[l])}const av=M.createContext({});function El(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function PT(a,l,o,r,c,h){const{visualElement:d}=M.useContext(Lr),y=M.useContext(Wg),v=M.useContext(_r),p=M.useContext(fd),x=p.reducedMotion,b=p.skipAnimations,T=M.useRef(null),O=M.useRef(!1);r=r||y.renderer,!T.current&&r&&(T.current=r(a,{visualState:l,parent:d,props:o,presenceContext:v,blockInitialAnimation:v?v.initial===!1:!1,reducedMotionConfig:x,skipAnimations:b,isSVG:h}),O.current&&T.current&&(T.current.manuallyAnimateOnMount=!0));const V=T.current,q=M.useContext(av);V&&!V.projection&&c&&(V.type==="html"||V.type==="svg")&&WT(T.current,o,c,q);const Y=M.useRef(!1);M.useInsertionEffect(()=>{V&&Y.current&&V.update(o,v)});const G=o[fg],K=M.useRef(!!G&&!window.MotionHandoffIsComplete?.(G)&&window.MotionHasOptimisedAnimation?.(G));return wy(()=>{O.current=!0,V&&(Y.current=!0,window.MotionIsMounted=!0,V.updateFeatures(),V.scheduleRenderMicrotask(),K.current&&V.animationState&&V.animationState.animateChanges())}),M.useEffect(()=>{V&&(!K.current&&V.animationState&&V.animationState.animateChanges(),K.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(G)}),K.current=!1),V.enteringChildren=void 0)}),V}function WT(a,l,o,r){const{layoutId:c,layout:h,drag:d,dragConstraints:y,layoutScroll:v,layoutRoot:p,layoutCrossfade:x}=l;a.projection=new o(a.latestValues,l["data-framer-portal-id"]?void 0:iv(a.parent)),a.projection.setOptions({layoutId:c,layout:h,alwaysMeasureLayout:!!d||y&&El(y),visualElement:a,animationType:typeof h=="string"?h:"both",initialPromotionConfig:r,crossfade:x,layoutScroll:v,layoutRoot:p})}function iv(a){if(a)return a.options.allowProjection!==!1?a.projection:iv(a.parent)}function lf(a,{forwardMotionProps:l=!1,type:o}={},r,c){r&&zT(r);const h=o?o==="svg":hd(a),d=h?ZT:QT;function y(p,x){let b;const T={...M.useContext(fd),...p,layoutId:$T(p)},{isStatic:O}=T,V=BT(p),q=d(p,O);if(!O&&Ay){IT();const Y=t3(T);b=Y.MeasureLayout,V.visualElement=PT(a,q,T,c,Y.ProjectionNode,h)}return m.jsxs(Lr.Provider,{value:V,children:[b&&V.visualElement?m.jsx(b,{visualElement:V.visualElement,...T}):null,kT(a,p,FT(q,V.visualElement,x),q,O,l,h)]})}y.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const v=M.forwardRef(y);return v[JT]=a,v}function $T({layoutId:a}){const l=M.useContext(Bf).id;return l&&a!==void 0?l+"-"+a:a}function IT(a,l){M.useContext(Wg).strict}function t3(a){const l=$g(),{drag:o,layout:r}=l;if(!o&&!r)return{};const c={...o,...r};return{MeasureLayout:o?.isEnabled(a)||r?.isEnabled(a)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function e3(a,l){if(typeof Proxy>"u")return lf;const o=new Map,r=(h,d)=>lf(h,d,a,l),c=(h,d)=>r(h,d);return new Proxy(c,{get:(h,d)=>d==="create"?r:(o.has(d)||o.set(d,lf(d,void 0,a,l)),o.get(d))})}const n3=(a,l)=>l.isSVG??hd(a)?new V2(l):new N2(l,{allowProjection:a!==M.Fragment});class a3 extends Qa{constructor(l){super(l),l.animationState||(l.animationState=H2(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();Ur(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:o}=this.node.prevProps||{};l!==o&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let i3=0;class l3 extends Qa{constructor(){super(...arguments),this.id=i3++}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:o}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===r)return;const c=this.node.animationState.setActive("exit",!l);o&&!l&&c.then(()=>{o(this.id)})}mount(){const{register:l,onExitComplete:o}=this.node.presenceContext||{};o&&o(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const s3={animation:{Feature:a3},exit:{Feature:l3}};function to(a){return{point:{x:a.pageX,y:a.pageY}}}const o3=a=>l=>ld(l)&&a(l,to(l));function Ks(a,l,o,r){return Ps(a,l,o3(o),r)}const lv=({current:a})=>a?a.ownerDocument.defaultView:null,cy=(a,l)=>Math.abs(a-l);function r3(a,l){const o=cy(a.x,l.x),r=cy(a.y,l.y);return Math.sqrt(o**2+r**2)}const fy=new Set(["auto","scroll"]);class sv{constructor(l,o,{transformPagePoint:r,contextWindow:c=window,dragSnapToOrigin:h=!1,distanceThreshold:d=3,element:y}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=O=>{this.handleScroll(O.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const O=of(this.lastMoveEventInfo,this.history),V=this.startEvent!==null,q=r3(O.offset,{x:0,y:0})>=this.distanceThreshold;if(!V&&!q)return;const{point:Y}=O,{timestamp:G}=de;this.history.push({...Y,timestamp:G});const{onStart:K,onMove:k}=this.handlers;V||(K&&K(this.lastMoveEvent,O),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,O)},this.handlePointerMove=(O,V)=>{this.lastMoveEvent=O,this.lastMoveEventInfo=sf(V,this.transformPagePoint),Ut.update(this.updatePoint,!0)},this.handlePointerUp=(O,V)=>{this.end();const{onEnd:q,onSessionEnd:Y,resumeAnimation:G}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&G&&G(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const K=of(O.type==="pointercancel"?this.lastMoveEventInfo:sf(V,this.transformPagePoint),this.history);this.startEvent&&q&&q(O,K),Y&&Y(O,K)},!ld(l))return;this.dragSnapToOrigin=h,this.handlers=o,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=c||window;const v=to(l),p=sf(v,this.transformPagePoint),{point:x}=p,{timestamp:b}=de;this.history=[{...x,timestamp:b}];const{onSessionStart:T}=o;T&&T(l,of(p,this.history)),this.removeListeners=Ws(Ks(this.contextWindow,"pointermove",this.handlePointerMove),Ks(this.contextWindow,"pointerup",this.handlePointerUp),Ks(this.contextWindow,"pointercancel",this.handlePointerUp)),y&&this.startScrollTracking(y)}startScrollTracking(l){let o=l.parentElement;for(;o;){const r=getComputedStyle(o);(fy.has(r.overflowX)||fy.has(r.overflowY))&&this.scrollPositions.set(o,{x:o.scrollLeft,y:o.scrollTop}),o=o.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(l){const o=this.scrollPositions.get(l);if(!o)return;const r=l===window,c=r?{x:window.scrollX,y:window.scrollY}:{x:l.scrollLeft,y:l.scrollTop},h={x:c.x-o.x,y:c.y-o.y};h.x===0&&h.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=h.x,this.lastMoveEventInfo.point.y+=h.y):this.history.length>0&&(this.history[0].x-=h.x,this.history[0].y-=h.y),this.scrollPositions.set(l,c),Ut.update(this.updatePoint,!0))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ka(this.updatePoint)}}function sf(a,l){return l?{point:l(a.point)}:a}function dy(a,l){return{x:a.x-l.x,y:a.y-l.y}}function of({point:a},l){return{point:a,delta:dy(a,ov(l)),offset:dy(a,u3(l)),velocity:c3(l,.1)}}function u3(a){return a[0]}function ov(a){return a[a.length-1]}function c3(a,l){if(a.length<2)return{x:0,y:0};let o=a.length-1,r=null;const c=ov(a);for(;o>=0&&(r=a[o],!(c.timestamp-r.timestamp>gn(l)));)o--;if(!r)return{x:0,y:0};r===a[0]&&a.length>2&&c.timestamp-r.timestamp>gn(l)*2&&(r=a[1]);const h=nn(c.timestamp-r.timestamp);if(h===0)return{x:0,y:0};const d={x:(c.x-r.x)/h,y:(c.y-r.y)/h};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function f3(a,{min:l,max:o},r){return l!==void 0&&a<l?a=r?Gt(l,a,r.min):Math.max(a,l):o!==void 0&&a>o&&(a=r?Gt(o,a,r.max):Math.min(a,o)),a}function hy(a,l,o){return{min:l!==void 0?a.min+l:void 0,max:o!==void 0?a.max+o-(a.max-a.min):void 0}}function d3(a,{top:l,left:o,bottom:r,right:c}){return{x:hy(a.x,o,c),y:hy(a.y,l,r)}}function my(a,l){let o=l.min-a.min,r=l.max-a.max;return l.max-l.min<a.max-a.min&&([o,r]=[r,o]),{min:o,max:r}}function h3(a,l){return{x:my(a.x,l.x),y:my(a.y,l.y)}}function m3(a,l){let o=.5;const r=we(a),c=we(l);return c>r?o=Qs(l.min,l.max-r,a.min):r>c&&(o=Qs(a.min,a.max-c,l.min)),Bn(0,1,o)}function p3(a,l){const o={};return l.min!==void 0&&(o.min=l.min-a.min),l.max!==void 0&&(o.max=l.max-a.min),o}const Vf=.35;function y3(a=Vf){return a===!1?a=0:a===!0&&(a=Vf),{x:py(a,"left","right"),y:py(a,"top","bottom")}}function py(a,l,o){return{min:yy(a,l),max:yy(a,o)}}function yy(a,l){return typeof a=="number"?a:a[l]||0}const g3=new WeakMap;class v3{constructor(l){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ne(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:o=!1,distanceThreshold:r}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const h=b=>{o&&this.snapToCursor(to(b).point),this.stopAnimation()},d=(b,T)=>{const{drag:O,dragPropagation:V,onDragStart:q}=this.getProps();if(O&&!V&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ZS(O),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=T,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),_n(G=>{let K=this.getAxisMotionValue(G).get()||0;if(Un.test(K)){const{projection:k}=this.visualElement;if(k&&k.layout){const P=k.layout.layoutBox[G];P&&(K=we(P)*(parseFloat(K)/100))}}this.originPoint[G]=K}),q&&Ut.update(()=>q(b,T),!1,!0),Ef(this.visualElement,"transform");const{animationState:Y}=this.visualElement;Y&&Y.setActive("whileDrag",!0)},y=(b,T)=>{this.latestPointerEvent=b,this.latestPanInfo=T;const{dragPropagation:O,dragDirectionLock:V,onDirectionLock:q,onDrag:Y}=this.getProps();if(!O&&!this.openDragLock)return;const{offset:G}=T;if(V&&this.currentDirection===null){this.currentDirection=b3(G),this.currentDirection!==null&&q&&q(this.currentDirection);return}this.updateAxis("x",T.point,G),this.updateAxis("y",T.point,G),this.visualElement.render(),Y&&Ut.update(()=>Y(b,T),!1,!0)},v=(b,T)=>{this.latestPointerEvent=b,this.latestPanInfo=T,this.stop(b,T),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:x}=this.getProps();this.panSession=new sv(l,{onSessionStart:h,onStart:d,onMove:y,onSessionEnd:v,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:x,distanceThreshold:r,contextWindow:lv(this.visualElement),element:this.visualElement.current})}stop(l,o){const r=l||this.latestPointerEvent,c=o||this.latestPanInfo,h=this.isDragging;if(this.cancel(),!h||!c||!r)return;const{velocity:d}=c;this.startAnimation(d);const{onDragEnd:y}=this.getProps();y&&Ut.postRender(()=>y(r,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:o}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o&&o.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(l,o,r){const{drag:c}=this.getProps();if(!r||!xr(l,c,this.currentDirection))return;const h=this.getAxisMotionValue(l);let d=this.originPoint[l]+r[l];this.constraints&&this.constraints[l]&&(d=f3(d,this.constraints[l],this.elastic[l])),h.set(d)}resolveConstraints(){const{dragConstraints:l,dragElastic:o}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;l&&El(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&r?this.constraints=d3(r.layoutBox,l):this.constraints=!1,this.elastic=y3(o),c!==this.constraints&&!El(l)&&r&&this.constraints&&!this.hasMutatedConstraints&&_n(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=p3(r.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:o}=this.getProps();if(!l||!El(l))return!1;const r=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const h=T2(r,c.root,this.visualElement.getTransformPagePoint());let d=h3(c.layout.layoutBox,h);if(o){const y=o(x2(d));this.hasMutatedConstraints=!!y,y&&(d=Ng(y))}return d}startAnimation(l){const{drag:o,dragMomentum:r,dragElastic:c,dragTransition:h,dragSnapToOrigin:d,onDragTransitionEnd:y}=this.getProps(),v=this.constraints||{},p=_n(x=>{if(!xr(x,o,this.currentDirection))return;let b=v&&v[x]||{};d&&(b={min:0,max:0});const T=c?200:1e6,O=c?40:1e7,V={type:"inertia",velocity:r?l[x]:0,bounceStiffness:T,bounceDamping:O,timeConstant:750,restDelta:1,restSpeed:10,...h,...b};return this.startAxisValueAnimation(x,V)});return Promise.all(p).then(y)}startAxisValueAnimation(l,o){const r=this.getAxisMotionValue(l);return Ef(this.visualElement,l),r.start(td(l,r,0,o,this.visualElement,!1))}stopAnimation(){_n(l=>this.getAxisMotionValue(l).stop())}getAxisMotionValue(l){const o=`_drag${l.toUpperCase()}`,r=this.visualElement.getProps(),c=r[o];return c||this.visualElement.getValue(l,(r.initial?r.initial[l]:void 0)||0)}snapToCursor(l){_n(o=>{const{drag:r}=this.getProps();if(!xr(o,r,this.currentDirection))return;const{projection:c}=this.visualElement,h=this.getAxisMotionValue(o);if(c&&c.layout){const{min:d,max:y}=c.layout.layoutBox[o],v=h.get()||0;h.set(l[o]-Gt(d,y,.5)+v)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:o}=this.getProps(),{projection:r}=this.visualElement;if(!El(o)||!r||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};_n(d=>{const y=this.getAxisMotionValue(d);if(y&&this.constraints!==!1){const v=y.get();c[d]=m3({min:v,max:v},this.constraints[d])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),_n(d=>{if(!xr(d,l,null))return;const y=this.getAxisMotionValue(d),{min:v,max:p}=this.constraints[d];y.set(Gt(v,p,c[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;g3.set(this.visualElement,this);const l=this.visualElement.current,o=Ks(l,"pointerdown",p=>{const{drag:x,dragListener:b=!0}=this.getProps(),T=p.target,O=T!==l&&IS(T);x&&b&&!O&&this.start(p)});let r;const c=()=>{const{dragConstraints:p}=this.getProps();El(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),r||(r=x3(l,p.current,()=>this.scalePositionWithinConstraints())))},{projection:h}=this.visualElement,d=h.addEventListener("measure",c);h&&!h.layout&&(h.root&&h.root.updateScroll(),h.updateLayout()),Ut.read(c);const y=Ps(window,"resize",()=>this.scalePositionWithinConstraints()),v=h.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:x})=>{this.isDragging&&x&&(_n(b=>{const T=this.getAxisMotionValue(b);T&&(this.originPoint[b]+=p[b].translate,T.set(T.get()+p[b].translate))}),this.visualElement.render())}));return()=>{y(),o(),d(),v&&v(),r&&r()}}getProps(){const l=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:r=!1,dragPropagation:c=!1,dragConstraints:h=!1,dragElastic:d=Vf,dragMomentum:y=!0}=l;return{...l,drag:o,dragDirectionLock:r,dragPropagation:c,dragConstraints:h,dragElastic:d,dragMomentum:y}}}function gy(a){let l=!0;return()=>{if(l){l=!1;return}a()}}function x3(a,l,o){const r=A0(a,gy(o)),c=A0(l,gy(o));return()=>{r(),c()}}function xr(a,l,o){return(l===!0||l===a)&&(o===null||o===a)}function b3(a,l=10){let o=null;return Math.abs(a.y)>l?o="y":Math.abs(a.x)>l&&(o="x"),o}class S3 extends Qa{constructor(l){super(l),this.removeGroupControls=an,this.removeListeners=an,this.controls=new v3(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||an}update(){const{dragControls:l}=this.node.getProps(),{dragControls:o}=this.node.prevProps||{};l!==o&&(this.removeGroupControls(),l&&(this.removeGroupControls=l.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const rf=a=>(l,o)=>{a&&Ut.update(()=>a(l,o),!1,!0)};class T3 extends Qa{constructor(){super(...arguments),this.removePointerDownListener=an}onPointerDown(l){this.session=new sv(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:lv(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:o,onPan:r,onPanEnd:c}=this.node.getProps();return{onSessionStart:rf(l),onStart:rf(o),onMove:rf(r),onEnd:(h,d)=>{delete this.session,c&&Ut.postRender(()=>c(h,d))}}}mount(){this.removePointerDownListener=Ks(this.node.current,"pointerdown",l=>this.onPointerDown(l))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let uf=!1;class A3 extends M.Component{componentDidMount(){const{visualElement:l,layoutGroup:o,switchLayoutGroup:r,layoutId:c}=this.props,{projection:h}=l;h&&(o.group&&o.group.add(h),r&&r.register&&c&&r.register(h),uf&&h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Cr.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:o,visualElement:r,drag:c,isPresent:h}=this.props,{projection:d}=r;return d&&(d.isPresent=h,l.layoutDependency!==o&&d.setOptions({...d.options,layoutDependency:o}),uf=!0,c||l.layoutDependency!==o||o===void 0||l.isPresent!==h?d.willUpdate():this.safeToRemove(),l.isPresent!==h&&(h?d.promote():d.relegate()||Ut.postRender(()=>{const y=d.getStack();(!y||!y.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:l}=this.props.visualElement;l&&(l.root.didUpdate(),id.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:o,switchLayoutGroup:r}=this.props,{projection:c}=l;uf=!0,c&&(c.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(c),r&&r.deregister&&r.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function rv(a){const[l,o]=Pg(),r=M.useContext(Bf);return m.jsx(A3,{...a,layoutGroup:r,switchLayoutGroup:M.useContext(av),isPresent:l,safeToRemove:o})}const w3={pan:{Feature:T3},drag:{Feature:S3,ProjectionNode:Fg,MeasureLayout:rv}};function vy(a,l,o){const{props:r}=a;a.animationState&&r.whileHover&&a.animationState.setActive("whileHover",o==="Start");const c="onHover"+o,h=r[c];h&&Ut.postRender(()=>h(l,to(l)))}class E3 extends Qa{mount(){const{current:l}=this.node;l&&(this.unmount=FS(l,(o,r)=>(vy(this.node,r,"Start"),c=>vy(this.node,c,"End"))))}unmount(){}}class C3 extends Qa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let l=!1;try{l=this.node.current.matches(":focus-visible")}catch{l=!0}!l||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ws(Ps(this.node.current,"focus",()=>this.onFocus()),Ps(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function xy(a,l,o){const{props:r}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&r.whileTap&&a.animationState.setActive("whileTap",o==="Start");const c="onTap"+(o==="End"?"":o),h=r[c];h&&Ut.postRender(()=>h(l,to(l)))}class j3 extends Qa{mount(){const{current:l}=this.node;if(!l)return;const{globalTapTarget:o,propagate:r}=this.node.props;this.unmount=e2(l,(c,h)=>(xy(this.node,h,"Start"),(d,{success:y})=>xy(this.node,d,y?"End":"Cancel")),{useGlobalTarget:o,stopPropagation:r?.tap===!1})}unmount(){}}const _f=new WeakMap,cf=new WeakMap,N3=a=>{const l=_f.get(a.target);l&&l(a)},M3=a=>{a.forEach(N3)};function D3({root:a,...l}){const o=a||document;cf.has(o)||cf.set(o,{});const r=cf.get(o),c=JSON.stringify(l);return r[c]||(r[c]=new IntersectionObserver(M3,{root:a,...l})),r[c]}function O3(a,l,o){const r=D3(l);return _f.set(a,o),r.observe(a),()=>{_f.delete(a),r.unobserve(a)}}const z3={some:0,all:1};class R3 extends Qa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:l={}}=this.node.getProps(),{root:o,margin:r,amount:c="some",once:h}=l,d={root:o?o.current:void 0,rootMargin:r,threshold:typeof c=="number"?c:z3[c]},y=v=>{const{isIntersecting:p}=v;if(this.isInView===p||(this.isInView=p,h&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:x,onViewportLeave:b}=this.node.getProps(),T=p?x:b;T&&T(v)};return O3(this.node.current,d,y)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:o}=this.node;["amount","margin","root"].some(V3(l,o))&&this.startObserver()}unmount(){}}function V3({viewport:a={}},{viewport:l={}}={}){return o=>a[o]!==l[o]}const _3={inView:{Feature:R3},tap:{Feature:j3},focus:{Feature:C3},hover:{Feature:E3}},U3={layout:{ProjectionNode:Fg,MeasureLayout:rv}},B3={...s3,..._3,...w3,...U3},Ys=e3(B3,n3);function L3(a){const l=a.match(/^100\.(\d+)\./);if(l&&+l[1]>=64&&+l[1]<=127)return"tailscale";if(/^192\.168\./.test(a)||/^10\./.test(a))return"lan";const o=a.match(/^172\.(\d+)\./);return o&&+o[1]>=16&&+o[1]<=31?"lan":a==="localhost"||a==="127.0.0.1"?"localhost":a.endsWith(".trycloudflare.com")?"tunnel":a.endsWith(".fluxy.bot")?"relay":"custom-domain"}function Ga(a){return a==="tailscale"||a==="lan"||a==="localhost"}const by={tailscale:"Tailscale",lan:"Local network",localhost:"Localhost",tunnel:"Cloudflare tunnel",relay:"Relay","custom-domain":"Custom domain"},H3=[{id:"anthropic",name:"Claude",subtitle:"by Anthropic",icon:"/icons/claude.png"},{id:"openai",name:"OpenAI Codex",subtitle:"ChatGPT Plus / Pro",icon:"/icons/codex.png"}],Y3={anthropic:[{id:"claude-opus-4-6",label:"Opus 4.6"},{id:"claude-sonnet-4-6",label:"Sonnet 4.6"},{id:"claude-haiku-4-5-20251001",label:"Haiku 4.5"}],openai:[{id:"gpt-5.2-codex:medium",label:"GPT-5.2 Codex Medium"},{id:"gpt-5.2-codex:high",label:"GPT-5.2 Codex High"},{id:"gpt-5.2-codex:xhigh",label:"GPT-5.2 Codex Extra High"},{id:"gpt-5.3-codex:medium",label:"GPT-5.3 Codex Medium (Pro)"},{id:"gpt-5.3-codex:high",label:"GPT-5.3 Codex High (Pro)"},{id:"gpt-5.3-codex:xhigh",label:"GPT-5.3 Codex Extra High (Pro)"}]},ff=[{tier:"at",prefix:"my.fluxy.bot/",label:a=>`my.fluxy.bot/${a}`,badge:"Free",badgeCls:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",highlight:!1},{tier:"premium",prefix:"fluxy.bot/",label:a=>`fluxy.bot/${a}`,badge:"$3",badgeCls:"bg-[#AF27E3]/15 text-[#AF27E3] border-[#AF27E3]/20",highlight:!0}];function q3({models:a,value:l,onChange:o}){const[r,c]=M.useState(!1),h=M.useRef(null);M.useEffect(()=>{if(!r)return;const y=v=>{h.current&&!h.current.contains(v.target)&&c(!1)};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[r]);const d=a.find(y=>y.id===l);return m.jsxs("div",{className:"relative",ref:h,children:[m.jsxs("button",{type:"button",onClick:()=>c(y=>!y),className:"w-full flex items-center justify-between bg-white/[0.03] border border-white/[0.08] text-white rounded-xl px-4 py-2.5 text-[13px] outline-none hover:border-white/15 focus:border-[#AF27E3]/30 transition-colors",children:[m.jsx("span",{className:d?"text-white":"text-white/20",children:d?d.label:"Choose a model..."}),m.jsx(A1,{className:`h-4 w-4 text-white/30 transition-transform ${r?"rotate-180":""}`})]}),r&&m.jsx("div",{className:"absolute left-0 right-0 top-full mt-1 bg-[#222] border border-white/[0.08] rounded-xl shadow-xl py-1 z-10 max-h-48 overflow-y-auto",children:a.map(y=>m.jsx("button",{onClick:()=>{o(y.id),c(!1)},className:`w-full text-left px-4 py-2 text-[13px] transition-colors ${l===y.id?"text-[#AF27E3] bg-[#AF27E3]/10":"text-white/70 hover:bg-white/[0.04] hover:text-white"}`,children:y.label},y.id))})]})}function K3({onComplete:a,isInitialSetup:l=!1,onSave:o,onTunnelSwitch:r}){const c=l?7:6,[h,d]=M.useState(0),[y,v]=M.useState(""),[p,x]=M.useState("anthropic"),[b,T]=M.useState(""),[O,V]=M.useState(!1),[q,Y]=M.useState({anthropic:"idle",openai:"idle"}),[G,K]=M.useState(!1),[k,P]=M.useState(""),[F,it]=M.useState(!1),[et,J]=M.useState(),[lt,At]=M.useState(!1),[jt,Nt]=M.useState(!1),[Ee,ie]=M.useState(),[ht,R]=M.useState(""),[H,Z]=M.useState(null),[mt,ut]=M.useState(""),[w,B]=M.useState({}),[X,W]=M.useState("at"),[ot,dt]=M.useState(!1),[st,qt]=M.useState(!1),[zt,ke]=M.useState(""),xn=M.useRef(null),[he,Di]=M.useState("quick"),[ln,Ul]=M.useState(""),[Bl,Hr]=M.useState(""),[Re,bn]=M.useState("relay"),[xe,Oi]=M.useState(null),[Sn,Ll]=M.useState(!1),[me,eo]=M.useState(!1),[no,Hl]=M.useState({}),[Za,zi]=M.useState(!1),[Ja,Fa]=M.useState(""),[ao,Xe]=M.useState(""),[pe,sn]=M.useState(!1),[Ht,Yr]=M.useState("tunnel"),[Yl,ql]=M.useState(!1),[sa,oa]=M.useState(""),[ra,Tn]=M.useState(!1),[Pa,An]=M.useState(""),[Gl,Ri]=M.useState(!1),[Wa,ua]=M.useState(!1),[io,$a]=M.useState(""),[lo,so]=M.useState("admin"),[se,Vi]=M.useState(""),[Ia,kl]=M.useState(""),[on,kt]=M.useState(!1),[_t,ca]=M.useState(!1),[_i,qr]=M.useState(!1),[fa,oo]=M.useState(""),[da,ha]=M.useState(""),[rn,Ln]=M.useState(!1),[ma,Hn]=M.useState(!1),[Rt,Xl]=M.useState(!1),[Ke,wn]=M.useState(""),[be,En]=M.useState(!1),[Ui,pa]=M.useState(""),[Bi,Cn]=M.useState(""),[ti,Se]=M.useState(""),[oe,Li]=M.useState(""),[ei,ni]=M.useState(!1),[Kl,ai]=M.useState(!1),[Hi,Zt]=M.useState(""),[Yi,qi]=M.useState([]),[ii,Yn]=M.useState(!1),[ro,Gi]=M.useState(!1),[un,Ql]=M.useState(""),[Zl,li]=M.useState(""),[Jl,Gr]=M.useState(!1),[ya,cn]=M.useState("password"),[Qe,ki]=M.useState(!1),si=M.useRef(!1),Ce=q[p]==="connected",jn="fluxy_totp_setup";function uo(){try{sessionStorage.setItem(jn,JSON.stringify({secret:Ui,qrUri:Bi,otpauthUri:ti,phase:ya,portalPass:se,portalPassConfirm:Ia}))}catch{}}function Fl(){try{const C=sessionStorage.getItem(jn);if(!C)return!1;const Q=JSON.parse(C);if(Q.secret&&Q.phase==="totp-setup")return pa(Q.secret),Cn(Q.qrUri||""),Se(Q.otpauthUri||""),En(!0),cn("totp-setup"),d(3),Q.portalPass&&(Vi(Q.portalPass),kl(Q.portalPassConfirm||"")),!0}catch{}return!1}function Xi(){try{sessionStorage.removeItem(jn)}catch{}}M.useEffect(()=>{fetch("/api/onboard/status").then(C=>C.json()).then(C=>{C.userName&&v(C.userName),C.handle&&(R(C.handle.username),W(C.handle.tier||"at"),Oi({username:C.handle.username,tier:C.handle.tier,url:C.handle.url}),qt(!0),ke(C.handle.url)),C.portalUser&&so(C.portalUser),C.portalConfigured&&ca(!0),C.provider&&x(C.provider),C.model&&T(C.model),C.whisperEnabled&&(Xl(!0),wn(C.whisperKey||"")),C.totpEnabled&&(En(!0),ni(!0)),C.tunnelMode&&Di(C.tunnelMode),C.tunnelDomain&&Ul(C.tunnelDomain),C.tunnelUrl&&Hr(C.tunnelUrl),C.handle||bn("tunnel"),si.current=!0,C.totpEnabled||Fl()}).catch(()=>{si.current=!0})},[]),M.useEffect(()=>{Yr(L3(window.location.hostname))},[]),M.useEffect(()=>{Gr(window.matchMedia("(max-width: 768px)").matches||"ontouchstart"in window)},[]),M.useEffect(()=>{p!=="anthropic"||q.anthropic==="connected"||fetch("/api/auth/claude/status").then(C=>C.json()).then(C=>{C.authenticated&&Y(Q=>({...Q,anthropic:"connected"}))}).catch(()=>{})},[p]),M.useEffect(()=>{p!=="openai"||q.openai==="connected"||fetch("/api/auth/codex/status").then(C=>C.json()).then(C=>{C.authenticated&&Y(Q=>({...Q,openai:"connected"}))}).catch(()=>{})},[p]),M.useEffect(()=>{if(!jt)return;const C=setInterval(async()=>{try{(await(await fetch("/api/auth/codex/status")).json()).authenticated&&(Nt(!1),Y(je=>({...je,openai:"connected"})))}catch{}},2e3);return()=>clearInterval(C)},[jt]),M.useEffect(()=>{if(xn.current&&clearTimeout(xn.current),!si.current||he==="off"||xe&&st&&ht===xe.username)return;Z(null),ut(""),B({}),Hl({}),zi(!1),Fa(""),Xe(""),qt(!1),ke("");const C=ht.trim();if(C){if(C.length<3){Z("invalid"),ut("At least 3 characters");return}return Z("checking"),xn.current=setTimeout(async()=>{try{const wt=await(await fetch(`/api/handle/check/${encodeURIComponent(C)}`)).json();if(!wt.valid)Z("invalid"),ut(wt.error);else{const je={},va={};for(const xa of wt.handles)je[xa.tier]=xa.available,xa.reserved&&(va[xa.tier]=!0);B(je),Hl(va),Z("ready");const fo=ff.find(xa=>je[xa.tier]);fo&&!je[X]&&W(fo.tier)}}catch{Z(null)}},400),()=>{xn.current&&clearTimeout(xn.current)}}},[ht]);const qn=C=>{R(C.toLowerCase().replace(/[^a-z0-9-]/g,""))},fn=async()=>{if(!(!ht||H!=="ready"||!w[X])){dt(!0);try{const Q=await(await fetch("/api/handle/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:ht,tier:X})})).json();Q.ok?(qt(!0),ke(Q.url)):(ut(Q.error||"Registration failed"),Z("invalid"))}catch{ut("Could not reach server"),Z("invalid")}finally{dt(!1)}}},Pl=async()=>{if(!(!ht||H!=="ready"||!w[X])){eo(!0);try{const Q=await(await fetch("/api/handle/change",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:ht,tier:X})})).json();Q.ok?(qt(!0),ke(Q.url),Oi({username:ht,tier:X,url:Q.url}),Ll(!1)):(ut(Q.error||"Handle change failed"),Z("invalid"))}catch{ut("Could not reach server"),Z("invalid")}finally{eo(!1)}}},oi=async()=>{if(!(!ht||!Ja)){sn(!0),Xe("");try{const Q=await(await fetch("/api/handle/claim-reserved",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handle:ht,hash:Ja})})).json();Q.ok?(qt(!0),ke(Q.url),zi(!1),Fa(""),W("premium"),bn("relay")):Xe(Q.error||"Invalid activation code")}catch{Xe("Could not reach server")}finally{sn(!1)}}},Nn=C=>{p==="openai"&&C!=="openai"&&jt&&(fetch("/api/auth/codex/cancel",{method:"POST"}),Nt(!1)),x(C),T(""),K(!1),P(""),J(void 0),Nt(!1),ie(void 0)},Ki=C=>{if(window.matchMedia("(display-mode: standalone)").matches||navigator.standalone===!0){const wt=document.createElement("a");wt.href=C,wt.target="_blank",wt.rel="noopener noreferrer",document.body.appendChild(wt),wt.click(),document.body.removeChild(wt)}else window.open(C,"_blank","noopener,noreferrer")},Qi=async()=>{J(void 0);try{const Q=await(await fetch("/api/auth/claude/start",{method:"POST"})).json();Q.success&&Q.authUrl?(Ki(Q.authUrl),K(!0)):J(Q.error||"Failed to start authentication")}catch(C){J(C.message)}},Wl=async()=>{if(k.trim()){it(!0),J(void 0);try{const Q=await(await fetch("/api/auth/claude/exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:k.trim()})})).json();Q.success?Y(wt=>({...wt,anthropic:"connected"})):J(Q.error||"Code exchange failed")}catch(C){J(C.message)}finally{it(!1)}}},Zi=async()=>{try{const C=await navigator.clipboard.readText();C&&P(C.trim())}catch{}},Ji=async()=>{At(!0),J(void 0);try{(await(await fetch("/api/auth/claude/status")).json()).authenticated?Y(wt=>({...wt,anthropic:"connected"})):J("No active session found. Please authenticate first.")}catch{}finally{At(!1)}},co=async()=>{Nt(!0),ie(void 0);try{const Q=await(await fetch("/api/auth/codex/start",{method:"POST"})).json();Q.success&&Q.authUrl?Ki(Q.authUrl):(Nt(!1),ie(Q.error||"Failed to start authentication"))}catch(C){Nt(!1),ie(C.message)}},ye=()=>{Nt(!1),fetch("/api/auth/codex/cancel",{method:"POST"})},Mn=se===Ia,ri=se.length>=6&&Mn,ui=_t?se.length===0||rn&&ri:ri,ga=(()=>{switch(h){case 0:return!0;case 1:return y.trim().length>0;case 2:return Yl||Gl?!1:he==="off"||he==="named"||Re==="tunnel"?ht.trim().length>=3:st;case 3:return!(ya!=="password"||!ui||be&&!ei);case 4:return!!(p&&b&&Ce);case 5:return!0;default:return!1}})(),Ve=()=>{ga&&h<c-1&&d(C=>C+1)},$l=()=>{h>0&&d(C=>C-1)},Gn=C=>{C.key==="Enter"&&ga&&Ve()},Fi=async()=>{V(!0);const C={userName:y.trim(),agentName:ht.trim()||"Fluxy",provider:p,model:b,apiKey:"",whisperEnabled:Rt,whisperKey:Rt?Ke:"",portalUser:lo.trim(),portalPass:se};try{o?await o(C):await fetch("/api/onboard",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(C)}),l?(V(!1),d(6)):a()}catch(Q){console.error("[OnboardWizard] Onboard failed:",Q),V(!1)}},Ze="w-full bg-white/[0.05] border border-white/[0.08] text-white rounded-xl px-4 py-3 text-base outline-none input-glow placeholder:text-white/20 transition-all",Il="w-full bg-white/[0.03] border border-white/[0.08] text-white rounded-xl px-4 py-2.5 text-[13px] outline-none input-glow placeholder:text-white/20 transition-all";return m.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center p-4",children:[m.jsx("div",{className:"absolute inset-0 bg-black/85 backdrop-blur-md"}),m.jsxs(Ys.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.3},className:"relative w-full max-w-[480px] bg-[#181818] border border-white/[0.06] rounded-[24px] shadow-2xl overflow-hidden",children:[m.jsx("div",{className:"flex justify-center gap-2 pt-6",children:Array.from({length:c},(C,Q)=>m.jsx("div",{className:`h-1.5 rounded-full transition-all duration-300 ${Q===h?"w-7 bg-gradient-brand":Q<h?"w-1.5 bg-gradient-brand opacity-60":"w-1.5 bg-white/10"}`},Q))}),m.jsx(sy,{mode:"wait",children:m.jsxs(Ys.div,{initial:{opacity:0,x:30},animate:{opacity:1,x:0},exit:{opacity:0,x:-30},transition:{duration:.2,ease:"easeOut"},className:"px-8 pt-6 pb-8",children:[h===0&&m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx("video",{src:"/fluxy_say_hi.webm",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"h-[180px] mb-4"}),m.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"Welcome to Fluxy"}),m.jsx("p",{className:"text-white/40 text-[14px] mt-2 leading-relaxed max-w-[320px]",children:"Let's set up your AI assistant in just a few steps."}),m.jsxs("button",{onClick:Ve,className:"mt-6 px-7 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center gap-2",children:["Get Started",m.jsx(Ge,{className:"h-4 w-4"})]})]}),h===1&&m.jsxs("div",{children:[m.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"What's your name?"}),m.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is how your agent will address you."}),m.jsxs("div",{className:"mt-5 flex items-center gap-3",children:[m.jsx("input",{type:"text",value:y,onChange:C=>v(C.target.value),onKeyDown:Gn,placeholder:"Enter your name",autoFocus:!0,className:Ze+" flex-1"}),m.jsx("button",{onClick:Ve,disabled:!ga,className:"shrink-0 h-12 w-12 flex items-center justify-center rounded-full bg-gradient-brand hover:opacity-90 text-white transition-colors disabled:opacity-30",children:m.jsx(Ge,{className:"h-5 w-5"})})]})]}),h===2&&he==="off"&&m.jsxs("div",{children:[m.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Bot Name & Access"}),m.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"Give your bot a name. This is used throughout the app as your bot's identity."}),m.jsx("div",{className:"relative mt-5",children:m.jsx("input",{type:"text",value:ht,onChange:C=>qn(C.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,className:Ze+" pr-10 font-mono"})}),m.jsx("div",{className:"mt-4 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:m.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:"Private network mode — your bot is only accessible via your local network or VPN. No public URL will be created."})}),!l&&m.jsx("div",{className:"mt-3 flex items-center gap-2",children:m.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[11px] font-medium border ${Ga(Ht)?"bg-emerald-500/10 text-emerald-400 border-emerald-500/20":"bg-blue-500/10 text-blue-400 border-blue-500/20"}`,children:[Ga(Ht)?m.jsx(n0,{className:"h-3 w-3"}):m.jsx(Kc,{className:"h-3 w-3"}),"Accessing via ",by[Ht]]})}),!l&&!Gl&&m.jsxs("button",{onClick:()=>{Ri(!0),$a("")},className:"w-full mt-4 flex items-center justify-between px-4 py-3 rounded-xl border border-white/[0.06] bg-white/[0.02] hover:border-white/10 hover:bg-white/[0.04] transition-all text-left",children:[m.jsxs("div",{children:[m.jsx("p",{className:"text-[13px] text-white/70 font-medium",children:"Re-enable public tunnel access"}),m.jsx("p",{className:"text-[11px] text-white/30 mt-0.5",children:"Start a Cloudflare tunnel to make your bot accessible from anywhere"})]}),m.jsx(Kc,{className:"h-4 w-4 text-white/30 shrink-0 ml-3"})]}),Gl&&m.jsxs("div",{className:"mt-4 space-y-3",children:[m.jsx("div",{className:"bg-amber-500/8 border border-amber-500/20 rounded-xl px-4 py-3",children:m.jsxs("div",{className:"flex items-start gap-2",children:[m.jsx(e0,{className:"h-4 w-4 text-amber-400 shrink-0 mt-0.5"}),m.jsxs("div",{children:[m.jsx("p",{className:"text-amber-400/90 text-[13px] font-medium",children:"Enable public access?"}),m.jsxs("p",{className:"text-amber-400/60 text-[12px] mt-1 leading-relaxed",children:["This will start a Cloudflare tunnel, making your bot reachable from the internet.",xe&&" Your handle will reconnect automatically."]})]})]})}),io&&m.jsx("p",{className:"text-red-400/70 text-[12px]",children:io}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{onClick:async()=>{if(r){ua(!0),$a("");try{await r("quick"),Di("quick"),Ri(!1)}catch(C){$a(C.message||"Failed to start tunnel")}finally{ua(!1)}}},disabled:Wa||!r,className:"flex-1 py-2.5 bg-gradient-brand hover:opacity-90 text-white text-[13px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:Wa?m.jsxs(m.Fragment,{children:[m.jsx(Vn,{className:"h-4 w-4 animate-spin"}),"Starting tunnel..."]}):"Enable Tunnel"}),m.jsx("button",{onClick:()=>{Ri(!1),$a("")},disabled:Wa,className:"px-5 py-2.5 bg-white/[0.04] hover:bg-white/[0.08] border border-white/[0.08] text-white/60 text-[13px] font-medium rounded-full transition-colors",children:"Cancel"})]})]}),m.jsxs("button",{onClick:Ve,disabled:!ga,className:"w-full mt-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",m.jsx(Ge,{className:"h-4 w-4"})]})]}),h===2&&he==="named"&&m.jsxs("div",{children:[m.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Bot Name & Access"}),m.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is your bot's identity. Your named tunnel domain is already configured."}),m.jsx("div",{className:"relative mt-5",children:m.jsx("input",{type:"text",value:ht,onChange:C=>qn(C.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,className:Ze+" pr-10 font-mono"})}),m.jsxs("div",{className:"mt-4 flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[m.jsxs("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:["https://",ln]}),m.jsx("button",{onClick:()=>{navigator.clipboard.writeText(`https://${ln}`),kt(!0),setTimeout(()=>kt(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:on?m.jsx(ia,{className:"h-4 w-4 text-emerald-400"}):m.jsx($p,{className:"h-4 w-4"})})]})]}),h===2&&he==="quick"&&m.jsxs("div",{children:[m.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Bot Name & Access"}),m.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is your bot's name and permanent handle — access it from anywhere."}),xe&&st&&!Sn&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(ia,{className:"h-4 w-4 text-emerald-400"}),m.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Current handle"})]}),m.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:zt})]}),m.jsxs("div",{className:"flex gap-2 mt-4",children:[m.jsxs("button",{onClick:Ve,className:"flex-1 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",m.jsx(Ge,{className:"h-4 w-4"})]}),m.jsx("button",{onClick:()=>{Ll(!0),qt(!1),R(""),Z(null),B({}),bn("relay")},className:"px-5 py-3 bg-white/[0.04] hover:bg-white/[0.08] border border-white/[0.08] text-white/60 text-[13px] font-medium rounded-full transition-colors",children:"Change"})]})]}),Sn&&!st&&m.jsxs("div",{className:"mt-4 bg-amber-500/8 border border-amber-500/20 rounded-xl px-4 py-3",children:[m.jsx("p",{className:"text-amber-400/90 text-[13px] font-medium",children:"Changing your handle"}),m.jsxs("p",{className:"text-amber-400/60 text-[12px] mt-1",children:["Your current handle ",m.jsx("span",{className:"font-mono",children:xe?.url})," will be released and become available for others."]})]}),(!xe||Sn||!st)&&!(xe&&st&&!Sn)&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"relative mt-5",children:[m.jsx("input",{type:"text",value:ht,onChange:C=>qn(C.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,disabled:st,className:Ze+" pr-10 font-mono"+(st?" opacity-50":"")}),H&&ht.length>0&&!st&&m.jsxs("div",{className:"absolute right-4 top-1/2 -translate-y-1/2",children:[H==="checking"&&m.jsx("div",{className:"w-5 h-5 border-2 border-white/10 border-t-[#04D1FE] rounded-full animate-spin"}),H==="invalid"&&m.jsx("div",{className:"w-6 h-6 rounded-full bg-amber-500/15 flex items-center justify-center",children:m.jsx("svg",{className:"w-3.5 h-3.5 text-amber-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3m0 4h.01"})})})]})]}),H==="invalid"&&mt&&m.jsx("p",{className:"text-amber-400 text-[12px] mt-2",children:mt}),H==="ready"&&ht.length>0&&!st&&Re==="relay"&&m.jsxs("div",{className:"mt-4 text-center",children:[m.jsx("span",{className:"font-mono text-[15px] font-semibold tracking-tight text-white/25",children:ff.find(C=>C.tier===X)?.prefix}),m.jsx("span",{className:"font-mono text-[15px] font-semibold tracking-tight text-gradient",children:ht})]}),H==="ready"&&ht.length>0&&!st&&m.jsxs("div",{className:"space-y-2 mt-4",children:[ff.map(C=>{const wt=w[C.tier]===!1,je=wt&&no[C.tier];return m.jsxs("div",{children:[m.jsxs("button",{onClick:()=>{wt||(W(C.tier),bn("relay"))},disabled:wt&&!je,className:`w-full flex items-center justify-between px-4 py-3 rounded-xl border transition-all duration-200 text-left ${wt?"border-white/[0.04] bg-transparent opacity-50 cursor-not-allowed":Re==="relay"&&X===C.tier?C.highlight?"border-[#AF27E3]/40 bg-[#AF27E3]/[0.06]":"border-[#AF27E3]/30 bg-white/[0.04]":"border-white/[0.06] bg-transparent hover:border-white/10 hover:bg-white/[0.02]"}`,children:[m.jsx("span",{className:`font-mono text-[13px] ${wt?"text-white/40":Re==="relay"&&X===C.tier?"text-white/80":"text-white/50"}`,children:C.label(ht)}),wt?m.jsx("span",{className:"text-[11px] font-medium px-2.5 py-0.5 rounded-full border bg-red-500/10 text-red-400 border-red-500/20",children:"Taken"}):m.jsx("span",{className:`text-[11px] font-medium px-2.5 py-0.5 rounded-full border ${C.badgeCls}`,children:C.badge})]}),je&&!Za&&m.jsx("button",{onClick:()=>{zi(!0),Fa(""),Xe("")},className:"mt-1.5 ml-1 text-[12px] text-[#AF27E3]/80 hover:text-[#AF27E3] transition-colors",children:"I own this handle"}),je&&Za&&m.jsxs("div",{className:"mt-2 space-y-2",children:[m.jsxs("div",{className:"flex gap-2",children:[m.jsx("input",{type:"text",value:Ja,onChange:va=>Fa(va.target.value.trim()),maxLength:5,placeholder:"Activation code",spellCheck:!1,autoFocus:!0,className:"flex-1 bg-white/[0.03] border border-white/[0.08] text-white rounded-lg px-3 py-2 text-[13px] font-mono outline-none focus:border-[#AF27E3]/30 transition-colors placeholder:text-white/20"}),m.jsx("button",{onClick:oi,disabled:pe||Ja.length<5,className:"px-4 py-2 bg-gradient-brand hover:opacity-90 text-white text-[13px] font-semibold rounded-lg transition-colors flex items-center gap-1.5 disabled:opacity-40",children:pe?m.jsx(Vn,{className:"h-3.5 w-3.5 animate-spin"}):"Activate"})]}),ao&&m.jsx("p",{className:"text-red-400 text-[12px]",children:ao}),m.jsx("button",{onClick:()=>{zi(!1),Fa(""),Xe("")},className:"text-[11px] text-white/25 hover:text-white/40 transition-colors",children:"Cancel"})]})]},C.tier)}),m.jsxs("button",{onClick:()=>bn("tunnel"),className:`w-full flex items-center justify-between px-4 py-3 rounded-xl border transition-all duration-200 text-left ${Re==="tunnel"?"border-white/[0.08] bg-white/[0.03]":"border-white/[0.06] bg-transparent hover:border-white/10 hover:bg-white/[0.02]"}`,children:[m.jsx("span",{className:"text-[13px] text-white/50",children:"No thanks, I'll use the random URL"}),m.jsx("span",{className:"text-[11px] font-medium px-2.5 py-0.5 rounded-full border bg-white/[0.04] text-white/30 border-white/[0.08]",children:"Skip"})]})]}),st&&m.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(ia,{className:"h-4 w-4 text-emerald-400"}),m.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Handle claimed!"})]}),m.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:zt})]}),Re==="relay"&&H==="ready"&&w[X]&&ht.length>0&&!st&&m.jsx("button",{onClick:Sn?Pl:fn,disabled:ot||me,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:ot||me?m.jsxs(m.Fragment,{children:[m.jsx(Vn,{className:"h-4 w-4 animate-spin"}),Sn?"Changing...":"Claiming..."]}):m.jsxs(m.Fragment,{children:[Sn?"Change Handle":"Claim & Continue",m.jsx(Ge,{className:"h-4 w-4"})]})}),Re==="tunnel"&&H==="ready"&&ht.length>0&&!st&&m.jsxs("button",{onClick:Ve,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",m.jsx(Ge,{className:"h-4 w-4"})]}),st&&m.jsxs("button",{onClick:Ve,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",m.jsx(Ge,{className:"h-4 w-4"})]}),Sn&&!st&&m.jsx("button",{onClick:()=>{Ll(!1),R(xe.username),qt(!0),ke(xe.url),W(xe.tier),bn("relay"),Z(null)},className:"w-full mt-2 py-2 text-white/25 hover:text-white/40 text-[12px] transition-colors",children:"Cancel — keep current handle"})]}),!l&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"mt-5 flex items-center gap-2",children:m.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[11px] font-medium border ${Ga(Ht)?"bg-emerald-500/10 text-emerald-400 border-emerald-500/20":"bg-blue-500/10 text-blue-400 border-blue-500/20"}`,children:[Ga(Ht)?m.jsx(X1,{className:"h-3 w-3"}):m.jsx(Kc,{className:"h-3 w-3"}),"Accessing via ",by[Ht]]})}),!Yl&&m.jsxs("button",{onClick:()=>{Ga(Ht)&&(ql(!0),oa(""),An(""))},disabled:!Ga(Ht),className:`w-full mt-3 flex items-center justify-between px-4 py-3 rounded-xl border transition-all text-left ${Ga(Ht)?"border-white/[0.06] bg-white/[0.02] hover:border-white/10 hover:bg-white/[0.04] cursor-pointer":"border-white/[0.04] bg-transparent opacity-50 cursor-not-allowed"}`,children:[m.jsxs("div",{children:[m.jsx("p",{className:"text-[13px] text-white/70 font-medium",children:"Switch to private network only"}),m.jsx("p",{className:"text-[11px] text-white/30 mt-0.5",children:Ga(Ht)?"Stop the tunnel and relay — access only via Tailscale or LAN":"Connect via Tailscale or private network to unlock"})]}),m.jsx(n0,{className:"h-4 w-4 text-white/30 shrink-0 ml-3"})]}),Yl&&m.jsxs("div",{className:"mt-3 space-y-3",children:[m.jsx("div",{className:"bg-amber-500/8 border border-amber-500/20 rounded-xl px-4 py-3",children:m.jsxs("div",{className:"flex items-start gap-2",children:[m.jsx(e0,{className:"h-4 w-4 text-amber-400 shrink-0 mt-0.5"}),m.jsxs("div",{children:[m.jsx("p",{className:"text-amber-400/90 text-[13px] font-medium",children:"Switch to private network only?"}),m.jsx("p",{className:"text-amber-400/60 text-[12px] mt-1 leading-relaxed",children:"This will stop the Cloudflare tunnel and relay connection. Your bot will only be accessible via your private network."}),xe&&m.jsx("p",{className:"text-amber-400/50 text-[12px] mt-1.5",children:"Your handle will be preserved and can be re-activated later."})]})]})}),m.jsxs("div",{children:[m.jsxs("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:["Type ",m.jsx("span",{className:"font-mono text-white/60",children:"I confirm"})," to proceed"]}),m.jsx("input",{type:"text",value:sa,onChange:C=>oa(C.target.value),placeholder:"I confirm",spellCheck:!1,autoFocus:!0,className:Il})]}),Pa&&m.jsx("p",{className:"text-red-400/70 text-[12px]",children:Pa}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{onClick:async()=>{if(!(!r||sa.trim().toLowerCase()!=="i confirm")){Tn(!0),An("");try{await r("off"),Di("off"),ql(!1)}catch(C){An(C.message||"Failed to switch")}finally{Tn(!1)}}},disabled:ra||sa.trim().toLowerCase()!=="i confirm"||!r,className:"flex-1 py-2.5 bg-amber-600 hover:bg-amber-500 text-white text-[13px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:ra?m.jsxs(m.Fragment,{children:[m.jsx(Vn,{className:"h-4 w-4 animate-spin"}),"Switching..."]}):"Confirm Switch"}),m.jsx("button",{onClick:()=>{ql(!1),oa(""),An("")},disabled:ra,className:"px-5 py-2.5 bg-white/[0.04] hover:bg-white/[0.08] border border-white/[0.08] text-white/60 text-[13px] font-medium rounded-full transition-colors",children:"Cancel"})]})]})]})]}),h===3&&m.jsx("div",{children:m.jsxs(sy,{mode:"wait",children:[ya==="password"&&m.jsxs(Ys.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.15},children:[m.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Set a password"}),m.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"You'll need this password to access your agent's chat. Keep it safe — anyone with your URL will need it to log in."}),_t&&m.jsx("div",{className:"mt-4 bg-white/[0.02] border border-white/[0.06] rounded-xl px-4 py-2.5",children:m.jsx("p",{className:"text-white/40 text-[12px]",children:"Password already set. Leave fields empty to keep your current password, or enter your current password to change it."})}),_t&&m.jsxs("div",{className:"mt-5",children:[m.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Current password"}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("input",{type:"password",value:fa,onChange:C=>{oo(C.target.value),ha(""),Ln(!1)},placeholder:"Enter current password to change it",autoComplete:"current-password",autoFocus:!0,className:Ze+" flex-1"}),fa.length>0&&!rn&&m.jsx("button",{onClick:async()=>{Hn(!0),ha("");try{(await(await fetch("/api/portal/verify-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:fa})})).json()).valid?Ln(!0):ha("Incorrect password")}catch{ha("Could not verify")}finally{Hn(!1)}},disabled:ma,className:"shrink-0 px-4 py-3 bg-white/[0.06] hover:bg-white/[0.1] text-white/60 text-[13px] font-medium rounded-xl transition-colors disabled:opacity-40",children:ma?m.jsx(Vn,{className:"h-4 w-4 animate-spin"}):"Verify"}),rn&&m.jsx("div",{className:"shrink-0 w-10 h-10 flex items-center justify-center",children:m.jsx(ia,{className:"h-4 w-4 text-emerald-400"})})]}),da&&m.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:da})]}),(!_t||rn)&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:_t?"mt-3":"mt-5",children:[m.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:_t?"New password":"Password"}),m.jsx("input",{type:"password",value:se,onChange:C=>Vi(C.target.value),placeholder:"••••••••",autoComplete:"new-password",autoFocus:!_t,onKeyDown:Gn,className:Ze}),se.length>0&&se.length<6&&m.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"At least 6 characters"})]}),m.jsxs("div",{className:"mt-3",children:[m.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:_t?"Confirm new password":"Confirm password"}),m.jsx("input",{type:"password",value:Ia,onChange:C=>kl(C.target.value),placeholder:"••••••••",autoComplete:"new-password",onKeyDown:Gn,className:Ze}),Ia.length>0&&!Mn&&m.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:"Passwords don't match"})]})]}),m.jsxs("div",{className:"mt-5 border border-white/[0.06] rounded-xl overflow-hidden",children:[m.jsxs("button",{onClick:async()=>{if(be&&ei){Gi(!0);return}if(be)En(!1),Cn(""),pa(""),Se("");else if(En(!0),Zt(""),Li(""),Bi)cn("totp-setup");else try{const C=await fetch("/api/portal/totp/setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:_t?fa:se})}),Q=await C.json();C.ok?(pa(Q.secret),Cn(Q.qrDataUri),Se(Q.otpauthUri),cn("totp-setup")):(Zt(Q.error||"Setup failed"),En(!1))}catch{Zt("Could not reach server"),En(!1)}},type:"button",className:"w-full flex items-center gap-3 px-4 py-3 text-left",children:[m.jsx("div",{className:`w-9 h-9 rounded-lg flex items-center justify-center shrink-0 ${be&&ei?"bg-emerald-500/10":"bg-white/[0.04]"}`,children:be&&ei?m.jsx(t0,{className:"h-[18px] w-[18px] text-emerald-400"}):m.jsx(L1,{className:"h-[18px] w-[18px] text-white/30"})}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsx("span",{className:"text-[13px] font-medium text-white block",children:"Two-Factor Auth"}),m.jsx("p",{className:"text-[11px] text-white/30 mt-0.5",children:be&&ei?m.jsx("span",{className:"text-emerald-400/70",children:"Active — authenticator app required"}):he==="quick"||he==="named"?m.jsx("span",{children:"Recommended for public bots"}):m.jsx("span",{children:"Extra security with an authenticator app"})})]}),m.jsx("div",{className:`w-10 h-6 rounded-full transition-colors relative shrink-0 ${be?"bg-emerald-500":"bg-white/10"}`,children:m.jsx("div",{className:`absolute top-1 w-4 h-4 rounded-full bg-white shadow transition-transform ${be?"translate-x-5":"translate-x-1"}`})})]}),ro&&m.jsxs("div",{className:"px-4 pb-3 border-t border-white/[0.06]",children:[m.jsx("p",{className:"text-[12px] text-white/40 mt-3 mb-2",children:"Enter your current TOTP code to disable 2FA:"}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("input",{type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,value:un,onChange:C=>{Ql(C.target.value.replace(/\D/g,"")),li("")},placeholder:"000000",className:Il+" flex-1 tracking-[0.3em] text-center font-mono"}),m.jsx("button",{onClick:async()=>{if(un.length===6)try{const C=await fetch("/api/portal/totp/disable",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:_t?fa:se,code:un})}),Q=await C.json();C.ok?(En(!1),ni(!1),pa(""),Cn(""),Se(""),Gi(!1),Ql(""),qi([]),Yn(!1)):li(Q.error||"Failed to disable")}catch{li("Could not reach server")}},disabled:un.length!==6,className:"shrink-0 px-4 py-2.5 bg-red-500/10 hover:bg-red-500/20 text-red-400 text-[13px] font-medium rounded-xl transition-colors disabled:opacity-40",children:"Disable"})]}),Zl&&m.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:Zl}),m.jsx("button",{onClick:()=>{Gi(!1),Ql(""),li("")},className:"text-[11px] text-white/30 hover:text-white/50 mt-2",children:"Cancel"})]}),Hi&&ya==="password"&&m.jsx("div",{className:"mx-4 mb-3 bg-red-500/8 border border-red-500/15 rounded-xl px-3 py-2",children:m.jsx("p",{className:"text-red-400/90 text-[11px]",children:Hi})})]}),m.jsxs("button",{onClick:Ve,disabled:!ga,className:"w-full mt-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",m.jsx(Ge,{className:"h-4 w-4"})]})]},"password"),ya==="totp-setup"&&m.jsxs(Ys.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.15},children:[m.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[m.jsx("button",{onClick:()=>{En(!1),Cn(""),pa(""),Se(""),Li(""),Zt(""),cn("password"),Xi()},className:"w-7 h-7 rounded-full bg-white/[0.04] flex items-center justify-center text-white/40 hover:text-white/70 transition-colors shrink-0",children:m.jsx(x1,{className:"h-4 w-4"})}),m.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Set up 2FA"})]}),Hi&&m.jsx("div",{className:"mt-3 bg-red-500/8 border border-red-500/15 rounded-xl px-3 py-2",children:m.jsx("p",{className:"text-red-400/90 text-[11px]",children:Hi})}),Bi&&m.jsxs(m.Fragment,{children:[Jl?m.jsxs("div",{className:"mt-4",children:[m.jsx("p",{className:"text-white/40 text-[13px] leading-relaxed mb-4",children:"Add Fluxy to your authenticator app, then enter the 6-digit code below to confirm."}),m.jsx("button",{onClick:()=>{navigator.clipboard.writeText(Ui),ki(!0),setTimeout(()=>ki(!1),3e3)},className:`w-full py-3 text-[14px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2 ${Qe?"bg-emerald-500/10 text-emerald-400 border border-emerald-500/20":"bg-white/[0.05] text-white/70 hover:bg-white/[0.08] border border-white/[0.08]"}`,children:Qe?m.jsxs(m.Fragment,{children:[m.jsx(ia,{className:"h-4 w-4"}),"Secret key copied"]}):m.jsxs(m.Fragment,{children:[m.jsx(Xc,{className:"h-4 w-4"}),"Copy secret key"]})}),m.jsx("p",{className:"text-[11px] text-white/20 text-center mt-2",children:"Paste it in your authenticator app → Add account → Enter key"}),m.jsxs("a",{href:ti,onClick:()=>uo(),className:"w-full mt-3 py-2.5 text-[13px] text-white/30 hover:text-white/50 flex items-center justify-center gap-1.5 transition-colors",children:[m.jsx(Y1,{className:"h-3.5 w-3.5"}),"Or open directly in authenticator"]})]}):m.jsxs("div",{className:"mt-4 flex gap-4 items-start",children:[m.jsx("div",{className:"shrink-0",children:m.jsx("div",{className:"bg-white rounded-xl p-1.5",children:m.jsx("img",{src:Bi,alt:"TOTP QR Code",className:"w-[140px] h-[140px]"})})}),m.jsxs("div",{className:"flex-1 min-w-0 pt-1",children:[m.jsx("p",{className:"text-white/40 text-[13px] leading-relaxed",children:"Scan this QR code with your authenticator app."}),m.jsx("p",{className:"text-white/25 text-[11px] mt-2 leading-relaxed",children:"Google Authenticator, Authy, 1Password, or any TOTP app."}),m.jsxs("button",{onClick:()=>{navigator.clipboard.writeText(Ui)},className:"mt-3 text-[11px] text-white/25 hover:text-white/40 flex items-center gap-1 transition-colors",children:[m.jsx(Xc,{className:"h-3 w-3"}),"Copy secret key"]})]})]}),m.jsxs("div",{className:"mt-5",children:[m.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Enter the 6-digit code from your app"}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("input",{type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,value:oe,onChange:C=>{Li(C.target.value.replace(/\D/g,"")),Zt("")},placeholder:"000000",autoFocus:!0,className:Ze+" tracking-[0.3em] text-center font-mono flex-1"}),m.jsx("button",{onClick:async()=>{if(oe.length===6){ai(!0),Zt("");try{const C=await fetch("/api/portal/totp/verify-setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:oe,password:_t?fa:se})}),Q=await C.json();C.ok&&Q.success?(ni(!0),qi(Q.recoveryCodes||[]),cn("recovery"),Xi()):Zt(Q.error||"Verification failed")}catch{Zt("Could not reach server")}finally{ai(!1)}}},disabled:oe.length!==6||Kl,className:"shrink-0 px-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-xl transition-colors flex items-center gap-2 disabled:opacity-40",children:Kl?m.jsx(Vn,{className:"h-4 w-4 animate-spin"}):"Verify"})]})]})]})]},"totp-setup"),ya==="recovery"&&m.jsxs(Ys.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.15},children:[m.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[m.jsx("div",{className:"w-9 h-9 rounded-xl bg-emerald-500/10 flex items-center justify-center shrink-0",children:m.jsx(t0,{className:"h-[18px] w-[18px] text-emerald-400"})}),m.jsxs("div",{children:[m.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"2FA enabled"}),m.jsx("p",{className:"text-emerald-400/70 text-[12px]",children:"Save your recovery codes"})]})]}),m.jsx("p",{className:"text-white/35 text-[13px] mt-3 leading-relaxed",children:"If you lose your authenticator app, you can use one of these codes to sign in. Each code works once. Store them somewhere safe."}),m.jsx("div",{className:"mt-4 grid grid-cols-2 gap-1.5",children:Yi.map((C,Q)=>m.jsx("div",{className:"bg-white/[0.03] border border-white/[0.06] rounded-lg px-3 py-2 text-center",children:m.jsx("code",{className:"text-[13px] text-white/60 font-mono tracking-wider",children:C})},Q))}),m.jsx("button",{onClick:()=>{navigator.clipboard.writeText(Yi.join(`
|
|
18
|
+
`)),Yn(!0)},className:`w-full mt-4 py-3 text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 ${ii?"bg-emerald-500/10 text-emerald-400 border border-emerald-500/20":"bg-white/[0.05] text-white/60 hover:bg-white/[0.08] border border-white/[0.08]"}`,children:ii?m.jsxs(m.Fragment,{children:[m.jsx(ia,{className:"h-4 w-4"}),"Copied"]}):m.jsxs(m.Fragment,{children:[m.jsx(Xc,{className:"h-4 w-4"}),"Copy recovery codes"]})}),m.jsxs("button",{onClick:()=>{qi([]),cn("password"),Xi()},disabled:!ii,className:"w-full mt-3 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Done",m.jsx(Ge,{className:"h-4 w-4"})]})]},"recovery")]})}),h===4&&m.jsxs("div",{children:[m.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Choose your AI provider"}),m.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"Pick one provider to power your bot, authenticate, and select a model."}),m.jsx("div",{className:"flex gap-2.5 mt-4",children:H3.map(C=>m.jsxs("button",{onClick:()=>Nn(C.id),className:`flex-1 relative rounded-xl border transition-all duration-200 p-3 text-left ${p===C.id?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:[m.jsxs("div",{className:"flex flex-col items-center gap-1.5 py-0.5",children:[C.icon?m.jsx("img",{src:C.icon,alt:C.name,className:"w-8 h-8 rounded-lg"}):m.jsx("div",{className:"w-8 h-8 rounded-lg bg-white/[0.06] flex items-center justify-center text-white/50 text-sm font-bold",children:"O"}),m.jsxs("div",{className:"text-center",children:[m.jsx("div",{className:"text-[13px] font-medium text-white",children:C.name}),m.jsx("div",{className:"text-[10px] text-white/30",children:C.subtitle})]})]}),q[C.id]==="connected"?m.jsx("div",{className:"absolute top-2 right-2 w-4 h-4 rounded-full bg-emerald-500/15 flex items-center justify-center",children:m.jsx(ia,{className:"h-2.5 w-2.5 text-emerald-400"})}):p===C.id?m.jsx("div",{className:"absolute top-2 right-2 w-2 h-2 rounded-full bg-gradient-brand"}):null]},C.id))}),m.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),p==="anthropic"&&m.jsxs("div",{className:"space-y-2.5",children:[Ce&&m.jsxs("div",{className:"space-y-2.5",children:[m.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:m.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — Anthropic subscription is active."})}),m.jsxs("button",{onClick:()=>{Y(C=>({...C,anthropic:"idle"})),K(!1),P(""),J("")},className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors flex items-center justify-center gap-1.5",children:[m.jsx(Qc,{className:"h-3 w-3"}),"Re-authenticate"]})]}),!Ce&&m.jsxs(m.Fragment,{children:[et&&m.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:m.jsx("p",{className:"text-red-400/90 text-[12px]",children:et})}),m.jsx("div",{className:"space-y-1.5",children:["Click the button below to open Anthropic's login page","Sign in with your Anthropic account — a code will be generated","Copy the code and paste it in the field below"].map((C,Q)=>m.jsxs("div",{className:"flex items-start gap-2",children:[m.jsx("span",{className:"flex-shrink-0 w-[18px] h-[18px] rounded-full bg-white/[0.06] text-white/30 text-[10px] font-medium flex items-center justify-center mt-px",children:Q+1}),m.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:C})]},Q))}),m.jsx("button",{onClick:Qi,className:"w-full py-2.5 px-4 bg-gradient-brand hover:opacity-90 text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2",children:G?m.jsxs(m.Fragment,{children:[m.jsx(Ip,{className:"h-3.5 w-3.5 opacity-60"}),"Open authentication page again"]}):m.jsxs(m.Fragment,{children:["Authenticate with Anthropic",m.jsx(Ge,{className:"h-3.5 w-3.5 opacity-60"})]})}),m.jsxs("div",{className:"relative",children:[m.jsx("input",{type:"text",value:k,onChange:C=>P(C.target.value),onKeyDown:C=>C.key==="Enter"&&Wl(),placeholder:"Paste your code here...",className:Il+" pr-10 font-mono"}),m.jsx("button",{onClick:Zi,className:"absolute right-3 top-1/2 -translate-y-1/2 text-white/20 hover:text-white/50 transition-colors",children:m.jsx($p,{className:"h-3.5 w-3.5"})})]}),m.jsx("button",{onClick:Wl,disabled:!k.trim()||F,className:"w-full py-2.5 px-4 bg-gradient-brand hover:opacity-90 text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:F?m.jsxs(m.Fragment,{children:[m.jsx(Vn,{className:"h-3.5 w-3.5 animate-spin"}),"Verifying..."]}):"Connect"}),m.jsxs("button",{onClick:Ji,disabled:lt,className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors flex items-center justify-center gap-1.5 disabled:opacity-50",children:[lt?m.jsx(Vn,{className:"h-3 w-3 animate-spin"}):m.jsx(Qc,{className:"h-3 w-3"}),lt?"Checking...":"I'm already authenticated"]})]})]}),p==="openai"&&m.jsxs("div",{className:"space-y-2.5",children:[Ce&&m.jsxs("div",{className:"space-y-2.5",children:[m.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:m.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — ChatGPT subscription is active."})}),m.jsxs("button",{onClick:()=>{Y(C=>({...C,openai:"idle"})),ie("")},className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors flex items-center justify-center gap-1.5",children:[m.jsx(Qc,{className:"h-3 w-3"}),"Re-authenticate"]})]}),!Ce&&m.jsxs(m.Fragment,{children:[Ee&&m.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:m.jsx("p",{className:"text-red-400/90 text-[12px]",children:Ee})}),m.jsx("div",{className:"space-y-1.5",children:["Click the button below — your browser will open for ChatGPT sign-in","Sign in with your ChatGPT Plus or Pro account","Authentication completes automatically — no code to copy"].map((C,Q)=>m.jsxs("div",{className:"flex items-start gap-2",children:[m.jsx("span",{className:"flex-shrink-0 w-[18px] h-[18px] rounded-full bg-white/[0.06] text-white/30 text-[10px] font-medium flex items-center justify-center mt-px",children:Q+1}),m.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:C})]},Q))}),m.jsx("button",{onClick:co,disabled:jt,className:"w-full py-2.5 px-4 bg-white/[0.06] hover:bg-white/[0.09] text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2 disabled:opacity-60",children:jt?m.jsxs(m.Fragment,{children:[m.jsx(Vn,{className:"h-3.5 w-3.5 animate-spin opacity-60"}),"Waiting for sign-in..."]}):m.jsxs(m.Fragment,{children:["Authenticate with ChatGPT",m.jsx(Ge,{className:"h-3.5 w-3.5 opacity-60"})]})}),jt&&m.jsx("button",{onClick:ye,className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors",children:"Cancel"})]})]}),Ce&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),m.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Select a model"}),m.jsx(q3,{models:Y3[p]||[],value:b,onChange:T})]}),Ce&&m.jsxs("button",{onClick:Ve,disabled:!ga,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",m.jsx(Ge,{className:"h-4 w-4"})]})]}),h===5&&m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Voice Messages"}),m.jsx("span",{className:"text-[11px] text-white/25 font-medium bg-white/[0.04] border border-white/[0.06] rounded-full px-2.5 py-0.5",children:"Optional"})]}),m.jsx("p",{className:"text-white/40 text-[13px] mt-1 leading-relaxed",children:"Allow users to send audio messages that are automatically transcribed."}),m.jsx("button",{onClick:()=>Xl(C=>!C),className:`w-full mt-5 rounded-xl border transition-all duration-200 p-4 text-left ${Rt?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:m.jsxs("div",{className:"flex items-center gap-3.5",children:[m.jsx("img",{src:"/icons/openai.svg",alt:"OpenAI",className:"w-10 h-10 rounded-xl bg-white/[0.04] p-1.5"}),m.jsxs("div",{className:"flex-1",children:[m.jsx("div",{className:"text-[14px] font-medium text-white",children:"OpenAI Whisper"}),m.jsx("div",{className:"text-[12px] text-white/35 mt-0.5 leading-relaxed",children:"Speech-to-text powered by OpenAI. Requires an OpenAI API key."})]}),m.jsx("div",{className:`w-10 h-[22px] rounded-full transition-colors duration-200 flex items-center px-0.5 shrink-0 ${Rt?"bg-gradient-brand":"bg-white/[0.08]"}`,children:m.jsx("div",{className:`w-[18px] h-[18px] rounded-full bg-white shadow-sm transition-transform duration-200 ${Rt?"translate-x-[18px]":"translate-x-0"}`})})]})}),Rt&&m.jsxs("div",{className:"mt-3",children:[m.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"OpenAI API Key"}),m.jsx("input",{type:"password",value:Ke,onChange:C=>wn(C.target.value.trim()),placeholder:"sk-...",autoComplete:"off",className:Ze+" font-mono text-[13px]"}),Ke.length>0&&!Ke.startsWith("sk-")&&m.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key should start with sk-"}),Ke.length>0&&Ke.startsWith("sk-")&&Ke.length<20&&m.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key looks too short"}),m.jsxs("div",{className:"flex items-start gap-2.5 mt-3 bg-white/[0.02] border border-white/[0.06] rounded-xl px-4 py-3",children:[m.jsx(V1,{className:"h-4 w-4 text-[#AF27E3]/60 mt-0.5 shrink-0"}),m.jsx("p",{className:"text-white/35 text-[12px] leading-relaxed",children:"Users will see a microphone button in the chat. Audio is sent to OpenAI's Whisper API for transcription, then processed as a regular text message."})]})]}),m.jsx("button",{onClick:Fi,disabled:O||Rt&&(!Ke.startsWith("sk-")||Ke.length<20),className:"w-full mt-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:O?m.jsxs(m.Fragment,{children:[m.jsx(Vn,{className:"h-4 w-4 animate-spin"}),"Setting up..."]}):m.jsxs(m.Fragment,{children:["Complete Setup",m.jsx(Ge,{className:"h-4 w-4"})]})}),!Rt&&m.jsx("p",{className:"text-center text-white/20 text-[11px] mt-2.5",children:"You can enable this later in Settings."})]}),h===6&&l&&(()=>{const C=he==="off",Q=C?window.location.origin:he==="named"?`https://${ln}`:Re==="relay"&&zt?zt:Bl||"http://localhost:3000",wt=Q.startsWith("http")?Q:`https://${Q}`,je=C?"Your agent is running on your private network. Access it from any device on your local network or VPN.":he==="named"?"Access your agent at your custom domain.":Re==="relay"&&zt?"Your agent is live and ready. From now on, access it using your custom URL below.":"Your agent is live and ready. Your tunnel URL is shown below. Note: this URL changes on restart.";return m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx("div",{className:"w-16 h-16 rounded-full bg-emerald-500/10 border border-emerald-500/20 flex items-center justify-center mb-5",children:m.jsx(ia,{className:"h-8 w-8 text-emerald-400"})}),m.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"All Set!"}),m.jsx("p",{className:"text-white/40 text-[13px] mt-2 leading-relaxed max-w-[340px]",children:je}),m.jsxs("div",{className:"w-full mt-6 flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[m.jsx("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:Q}),m.jsx("button",{onClick:()=>{navigator.clipboard.writeText(wt),kt(!0),setTimeout(()=>kt(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:on?m.jsx(ia,{className:"h-4 w-4 text-emerald-400"}):m.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[m.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),m.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})})]}),m.jsxs("div",{className:"w-full mt-3",children:[m.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block text-left",children:"Your password"}),m.jsxs("div",{className:"flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[m.jsx("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:_i?se:"•".repeat(Math.max(se.length,8))}),m.jsx("button",{onClick:()=>qr(va=>!va),className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:_i?m.jsx(N1,{className:"h-4 w-4"}):m.jsx(D1,{className:"h-4 w-4"})})]})]}),m.jsxs("button",{onClick:()=>{C?(window.top||window).location.href="/":(window.top||window).location.href=wt},className:"w-full mt-6 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:[C?"Go to dashboard":"Go to your agent",m.jsx(Ip,{className:"h-4 w-4"})]}),m.jsx("p",{className:"text-white/20 text-[11px] mt-3 leading-relaxed",children:C?"Access from any device on your network using the URL above.":`You'll be redirected to your ${he==="named"?"custom domain":Re==="relay"?"custom URL":"tunnel URL"}.`})]})})()]},h)}),h>0&&h<c-1&&!(h===6&&l)&&m.jsx("div",{className:"px-8 pb-5 -mt-3",children:m.jsx("button",{onClick:$l,className:"text-white/25 hover:text-white/50 text-[12px] transition-colors",children:"← Back"})})]})]})}export{sy as A,ia as C,Vn as L,V1 as M,K3 as O,G3 as R,L1 as S,Ge as a,x1 as b,ae as c,Xc as d,k3 as e,Sy as g,m as j,Ys as m,M as r};
|