fluxy-bot 0.7.4 → 0.7.6
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-C2_hZ0e0.js → fluxy-Bcd5tJrt.js} +25 -25
- package/dist-fluxy/assets/{globals-DZhBbtf8.css → globals-Bs_wR6rP.css} +1 -1
- package/dist-fluxy/assets/globals-CMrTFJSE.js +18 -0
- package/dist-fluxy/assets/{onboard-LzOfScdU.js → onboard-BSlNrxVH.js} +1 -1
- package/dist-fluxy/fluxy.html +3 -3
- package/dist-fluxy/onboard.html +3 -3
- package/package.json +1 -1
- package/supervisor/chat/OnboardWizard.tsx +74 -10
- package/supervisor/chat/src/components/LoginScreen.tsx +44 -1
- package/dist-fluxy/assets/globals-C0DMRzvx.js +0 -18
|
@@ -1,18 +0,0 @@
|
|
|
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"]'))u(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&u(h)}).observe(document,{childList:!0,subtree:!0});function o(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(c){if(c.ep)return;c.ep=!0;const d=o(c);fetch(c.href,d)}})();function u0(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Ec={exports:{}},ds={};var Op;function $x(){if(Op)return ds;Op=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function o(u,c,d){var h=null;if(d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+c.key),"key"in c){d={};for(var p in c)p!=="key"&&(d[p]=c[p])}else d=c;return c=d.ref,{$$typeof:i,type:u,key:h,ref:c!==void 0?c:null,props:d}}return ds.Fragment=l,ds.jsx=o,ds.jsxs=o,ds}var zp;function Ix(){return zp||(zp=1,Ec.exports=$x()),Ec.exports}var v=Ix(),wc={exports:{}},rt={};var Rp;function t1(){if(Rp)return rt;Rp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),T=Symbol.iterator;function D(E){return E===null||typeof E!="object"?null:(E=T&&E[T]||E["@@iterator"],typeof E=="function"?E:null)}var V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,X={};function q(E,U,Q){this.props=E,this.context=U,this.refs=X,this.updater=Q||V}q.prototype.isReactComponent={},q.prototype.setState=function(E,U){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,U,"setState")},q.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function K(){}K.prototype=q.prototype;function G(E,U,Q){this.props=E,this.context=U,this.refs=X,this.updater=Q||V}var J=G.prototype=new K;J.constructor=G,Y(J,q.prototype),J.isPureReactComponent=!0;var Z=Array.isArray;function lt(){}var k={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function st(E,U,Q){var P=Q.ref;return{$$typeof:i,type:E,key:U,ref:P!==void 0?P:null,props:Q}}function bt(E,U){return st(E.type,U,E.props)}function Et(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function Bt(E){var U={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Q){return U[Q]})}var ae=/\/+/g;function vt(E,U){return typeof E=="object"&&E!==null&&E.key!=null?Bt(""+E.key):U.toString(36)}function $t(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(lt,lt):(E.status="pending",E.then(function(U){E.status==="pending"&&(E.status="fulfilled",E.value=U)},function(U){E.status==="pending"&&(E.status="rejected",E.reason=U)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function R(E,U,Q,P,ot){var at=typeof E;(at==="undefined"||at==="boolean")&&(E=null);var dt=!1;if(E===null)dt=!0;else switch(at){case"bigint":case"string":case"number":dt=!0;break;case"object":switch(E.$$typeof){case i:case l:dt=!0;break;case x:return dt=E._init,R(dt(E._payload),U,Q,P,ot)}}if(dt)return ot=ot(E),dt=P===""?"."+vt(E,0):P,Z(ot)?(Q="",dt!=null&&(Q=dt.replace(ae,"$&/")+"/"),R(ot,U,Q,"",function(sn){return sn})):ot!=null&&(Et(ot)&&(ot=bt(ot,Q+(ot.key==null||E&&E.key===ot.key?"":(""+ot.key).replace(ae,"$&/")+"/")+dt)),U.push(ot)),1;dt=0;var Kt=P===""?".":P+":";if(Z(E))for(var Dt=0;Dt<E.length;Dt++)P=E[Dt],at=Kt+vt(P,Dt),dt+=R(P,U,Q,at,ot);else if(Dt=D(E),typeof Dt=="function")for(E=Dt.call(E),Dt=0;!(P=E.next()).done;)P=P.value,at=Kt+vt(P,Dt++),dt+=R(P,U,Q,at,ot);else if(at==="object"){if(typeof E.then=="function")return R($t(E),U,Q,P,ot);throw U=String(E),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return dt}function H(E,U,Q){if(E==null)return E;var P=[],ot=0;return R(E,P,"","",function(at){return U.call(Q,at,ot++)}),P}function $(E){if(E._status===-1){var U=E._result;U=U(),U.then(function(Q){(E._status===0||E._status===-1)&&(E._status=1,E._result=Q)},function(Q){(E._status===0||E._status===-1)&&(E._status=2,E._result=Q)}),E._status===-1&&(E._status=0,E._result=U)}if(E._status===1)return E._result.default;throw E._result}var ut=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},ht={map:H,forEach:function(E,U,Q){H(E,function(){U.apply(this,arguments)},Q)},count:function(E){var U=0;return H(E,function(){U++}),U},toArray:function(E){return H(E,function(U){return U})||[]},only:function(E){if(!Et(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return rt.Activity=b,rt.Children=ht,rt.Component=q,rt.Fragment=o,rt.Profiler=c,rt.PureComponent=G,rt.StrictMode=u,rt.Suspense=g,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,rt.__COMPILER_RUNTIME={__proto__:null,c:function(E){return k.H.useMemoCache(E)}},rt.cache=function(E){return function(){return E.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(E,U,Q){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var P=Y({},E.props),ot=E.key;if(U!=null)for(at in U.key!==void 0&&(ot=""+U.key),U)!F.call(U,at)||at==="key"||at==="__self"||at==="__source"||at==="ref"&&U.ref===void 0||(P[at]=U[at]);var at=arguments.length-2;if(at===1)P.children=Q;else if(1<at){for(var dt=Array(at),Kt=0;Kt<at;Kt++)dt[Kt]=arguments[Kt+2];P.children=dt}return st(E.type,ot,P)},rt.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:d,_context:E},E},rt.createElement=function(E,U,Q){var P,ot={},at=null;if(U!=null)for(P in U.key!==void 0&&(at=""+U.key),U)F.call(U,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(ot[P]=U[P]);var dt=arguments.length-2;if(dt===1)ot.children=Q;else if(1<dt){for(var Kt=Array(dt),Dt=0;Dt<dt;Dt++)Kt[Dt]=arguments[Dt+2];ot.children=Kt}if(E&&E.defaultProps)for(P in dt=E.defaultProps,dt)ot[P]===void 0&&(ot[P]=dt[P]);return st(E,at,ot)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(E){return{$$typeof:p,render:E}},rt.isValidElement=Et,rt.lazy=function(E){return{$$typeof:x,_payload:{_status:-1,_result:E},_init:$}},rt.memo=function(E,U){return{$$typeof:m,type:E,compare:U===void 0?null:U}},rt.startTransition=function(E){var U=k.T,Q={};k.T=Q;try{var P=E(),ot=k.S;ot!==null&&ot(Q,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(lt,ut)}catch(at){ut(at)}finally{U!==null&&Q.types!==null&&(U.types=Q.types),k.T=U}},rt.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},rt.use=function(E){return k.H.use(E)},rt.useActionState=function(E,U,Q){return k.H.useActionState(E,U,Q)},rt.useCallback=function(E,U){return k.H.useCallback(E,U)},rt.useContext=function(E){return k.H.useContext(E)},rt.useDebugValue=function(){},rt.useDeferredValue=function(E,U){return k.H.useDeferredValue(E,U)},rt.useEffect=function(E,U){return k.H.useEffect(E,U)},rt.useEffectEvent=function(E){return k.H.useEffectEvent(E)},rt.useId=function(){return k.H.useId()},rt.useImperativeHandle=function(E,U,Q){return k.H.useImperativeHandle(E,U,Q)},rt.useInsertionEffect=function(E,U){return k.H.useInsertionEffect(E,U)},rt.useLayoutEffect=function(E,U){return k.H.useLayoutEffect(E,U)},rt.useMemo=function(E,U){return k.H.useMemo(E,U)},rt.useOptimistic=function(E,U){return k.H.useOptimistic(E,U)},rt.useReducer=function(E,U,Q){return k.H.useReducer(E,U,Q)},rt.useRef=function(E){return k.H.useRef(E)},rt.useState=function(E){return k.H.useState(E)},rt.useSyncExternalStore=function(E,U,Q){return k.H.useSyncExternalStore(E,U,Q)},rt.useTransition=function(){return k.H.useTransition()},rt.version="19.2.4",rt}var Vp;function Sf(){return Vp||(Vp=1,wc.exports=t1()),wc.exports}var z=Sf();const OA=u0(z);var Cc={exports:{}},ms={},Mc={exports:{}},jc={};var _p;function e1(){return _p||(_p=1,(function(i){function l(R,H){var $=R.length;R.push(H);t:for(;0<$;){var ut=$-1>>>1,ht=R[ut];if(0<c(ht,H))R[ut]=H,R[$]=ht,$=ut;else break t}}function o(R){return R.length===0?null:R[0]}function u(R){if(R.length===0)return null;var H=R[0],$=R.pop();if($!==H){R[0]=$;t:for(var ut=0,ht=R.length,E=ht>>>1;ut<E;){var U=2*(ut+1)-1,Q=R[U],P=U+1,ot=R[P];if(0>c(Q,$))P<ht&&0>c(ot,Q)?(R[ut]=ot,R[P]=$,ut=P):(R[ut]=Q,R[U]=$,ut=U);else if(P<ht&&0>c(ot,$))R[ut]=ot,R[P]=$,ut=P;else break t}}return H}function c(R,H){var $=R.sortIndex-H.sortIndex;return $!==0?$:R.id-H.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;i.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();i.unstable_now=function(){return h.now()-p}}var g=[],m=[],x=1,b=null,T=3,D=!1,V=!1,Y=!1,X=!1,q=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function J(R){for(var H=o(m);H!==null;){if(H.callback===null)u(m);else if(H.startTime<=R)u(m),H.sortIndex=H.expirationTime,l(g,H);else break;H=o(m)}}function Z(R){if(Y=!1,J(R),!V)if(o(g)!==null)V=!0,lt||(lt=!0,Bt());else{var H=o(m);H!==null&&$t(Z,H.startTime-R)}}var lt=!1,k=-1,F=5,st=-1;function bt(){return X?!0:!(i.unstable_now()-st<F)}function Et(){if(X=!1,lt){var R=i.unstable_now();st=R;var H=!0;try{t:{V=!1,Y&&(Y=!1,K(k),k=-1),D=!0;var $=T;try{e:{for(J(R),b=o(g);b!==null&&!(b.expirationTime>R&&bt());){var ut=b.callback;if(typeof ut=="function"){b.callback=null,T=b.priorityLevel;var ht=ut(b.expirationTime<=R);if(R=i.unstable_now(),typeof ht=="function"){b.callback=ht,J(R),H=!0;break e}b===o(g)&&u(g),J(R)}else u(g);b=o(g)}if(b!==null)H=!0;else{var E=o(m);E!==null&&$t(Z,E.startTime-R),H=!1}}break t}finally{b=null,T=$,D=!1}H=void 0}}finally{H?Bt():lt=!1}}}var Bt;if(typeof G=="function")Bt=function(){G(Et)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,vt=ae.port2;ae.port1.onmessage=Et,Bt=function(){vt.postMessage(null)}}else Bt=function(){q(Et,0)};function $t(R,H){k=q(function(){R(i.unstable_now())},H)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(R){R.callback=null},i.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<R?Math.floor(1e3/R):5},i.unstable_getCurrentPriorityLevel=function(){return T},i.unstable_next=function(R){switch(T){case 1:case 2:case 3:var H=3;break;default:H=T}var $=T;T=H;try{return R()}finally{T=$}},i.unstable_requestPaint=function(){X=!0},i.unstable_runWithPriority=function(R,H){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var $=T;T=R;try{return H()}finally{T=$}},i.unstable_scheduleCallback=function(R,H,$){var ut=i.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?ut+$:ut):$=ut,R){case 1:var ht=-1;break;case 2:ht=250;break;case 5:ht=1073741823;break;case 4:ht=1e4;break;default:ht=5e3}return ht=$+ht,R={id:x++,callback:H,priorityLevel:R,startTime:$,expirationTime:ht,sortIndex:-1},$>ut?(R.sortIndex=$,l(m,R),o(g)===null&&R===o(m)&&(Y?(K(k),k=-1):Y=!0,$t(Z,$-ut))):(R.sortIndex=ht,l(g,R),V||D||(V=!0,lt||(lt=!0,Bt()))),R},i.unstable_shouldYield=bt,i.unstable_wrapCallback=function(R){var H=T;return function(){var $=T;T=H;try{return R.apply(this,arguments)}finally{T=$}}}})(jc)),jc}var Up;function n1(){return Up||(Up=1,Mc.exports=e1()),Mc.exports}var Nc={exports:{}},he={};var Bp;function a1(){if(Bp)return he;Bp=1;var i=Sf();function l(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var u={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 d(g,m,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:g,containerInfo:m,implementation:x}}var h=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return he.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,he.createPortal=function(g,m){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(l(299));return d(g,m,null,x)},he.flushSync=function(g){var m=h.T,x=u.p;try{if(h.T=null,u.p=2,g)return g()}finally{h.T=m,u.p=x,u.d.f()}},he.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,u.d.C(g,m))},he.prefetchDNS=function(g){typeof g=="string"&&u.d.D(g)},he.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var x=m.as,b=p(x,m.crossOrigin),T=typeof m.integrity=="string"?m.integrity:void 0,D=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;x==="style"?u.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:T,fetchPriority:D}):x==="script"&&u.d.X(g,{crossOrigin:b,integrity:T,fetchPriority:D,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},he.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var x=p(m.as,m.crossOrigin);u.d.M(g,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(g)},he.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var x=m.as,b=p(x,m.crossOrigin);u.d.L(g,x,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},he.preloadModule=function(g,m){if(typeof g=="string")if(m){var x=p(m.as,m.crossOrigin);u.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(g)},he.requestFormReset=function(g){u.d.r(g)},he.unstable_batchedUpdates=function(g,m){return g(m)},he.useFormState=function(g,m,x){return h.H.useFormState(g,m,x)},he.useFormStatus=function(){return h.H.useHostTransitionStatus()},he.version="19.2.4",he}var Lp;function i1(){if(Lp)return Nc.exports;Lp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),Nc.exports=a1(),Nc.exports}var Hp;function l1(){if(Hp)return ms;Hp=1;var i=n1(),l=Sf(),o=i1();function u(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 d(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 h(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 p(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 g(t){if(d(t)!==t)throw Error(u(188))}function m(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(u(188));return e!==t?null:t}for(var n=t,a=e;;){var s=n.return;if(s===null)break;var r=s.alternate;if(r===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===r.child){for(r=s.child;r;){if(r===n)return g(s),t;if(r===a)return g(s),e;r=r.sibling}throw Error(u(188))}if(n.return!==a.return)n=s,a=r;else{for(var f=!1,y=s.child;y;){if(y===n){f=!0,n=s,a=r;break}if(y===a){f=!0,a=s,n=r;break}y=y.sibling}if(!f){for(y=r.child;y;){if(y===n){f=!0,n=r,a=s;break}if(y===a){f=!0,a=r,n=s;break}y=y.sibling}if(!f)throw Error(u(189))}}if(n.alternate!==a)throw Error(u(190))}if(n.tag!==3)throw Error(u(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"),D=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),G=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),lt=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),st=Symbol.for("react.activity"),bt=Symbol.for("react.memo_cache_sentinel"),Et=Symbol.iterator;function Bt(t){return t===null||typeof t!="object"?null:(t=Et&&t[Et]||t["@@iterator"],typeof t=="function"?t:null)}var ae=Symbol.for("react.client.reference");function vt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ae?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Y:return"Fragment";case q:return"Profiler";case X:return"StrictMode";case Z:return"Suspense";case lt:return"SuspenseList";case st:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case V:return"Portal";case G:return t.displayName||"Context";case K:return(t._context.displayName||"Context")+".Consumer";case J:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case k:return e=t.displayName||null,e!==null?e:vt(t.type)||"Memo";case F:e=t._payload,t=t._init;try{return vt(t(e))}catch{}}return null}var $t=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,$={pending:!1,data:null,method:null,action:null},ut=[],ht=-1;function E(t){return{current:t}}function U(t){0>ht||(t.current=ut[ht],ut[ht]=null,ht--)}function Q(t,e){ht++,ut[ht]=t.current,t.current=e}var P=E(null),ot=E(null),at=E(null),dt=E(null);function Kt(t,e){switch(Q(at,e),Q(ot,t),Q(P,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?tp(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=tp(e),t=ep(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}U(P),Q(P,t)}function Dt(){U(P),U(ot),U(at)}function sn(t){t.memoizedState!==null&&Q(dt,t);var e=P.current,n=ep(e,t.type);e!==n&&(Q(ot,t),Q(P,n))}function ie(t){ot.current===t&&(U(P),U(ot)),dt.current===t&&(U(dt),rs._currentValue=$)}var dl,hi;function Mn(t){if(dl===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);dl=e&&e[1]||"",hi=-1<n.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+dl+t+hi}var ml=!1;function pl(t,e){if(!t||ml)return"";ml=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={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(O){var N=O}Reflect.construct(t,[],L)}else{try{L.call()}catch(O){N=O}t.call(L.prototype)}}else{try{throw Error()}catch(O){N=O}(L=t())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(O){if(O&&N&&typeof O.stack=="string")return[O.stack,N.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=a.DetermineComponentFrameRoot(),f=r[0],y=r[1];if(f&&y){var S=f.split(`
|
|
4
|
-
`),M=y.split(`
|
|
5
|
-
`);for(s=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;s<M.length&&!M[s].includes("DetermineComponentFrameRoot");)s++;if(a===S.length||s===M.length)for(a=S.length-1,s=M.length-1;1<=a&&0<=s&&S[a]!==M[s];)s--;for(;1<=a&&0<=s;a--,s--)if(S[a]!==M[s]){if(a!==1||s!==1)do if(a--,s--,0>s||S[a]!==M[s]){var _=`
|
|
6
|
-
`+S[a].replace(" at new "," at ");return t.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",t.displayName)),_}while(1<=a&&0<=s);break}}}finally{ml=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Mn(n):""}function Xe(t,e){switch(t.tag){case 26:case 27:case 5:return Mn(t.type);case 16:return Mn("Lazy");case 13:return t.child!==e&&e!==null?Mn("Suspense Fallback"):Mn("Suspense");case 19:return Mn("SuspenseList");case 0:case 15:return pl(t.type,!1);case 11:return pl(t.type.render,!1);case 1:return pl(t.type,!0);case 31:return Mn("Activity");default:return""}}function ta(t){try{var e="",n=null;do e+=Xe(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
|
|
7
|
-
Error generating stack: `+a.message+`
|
|
8
|
-
`+a.stack}}var ze=Object.prototype.hasOwnProperty,di=i.unstable_scheduleCallback,Ke=i.unstable_cancelCallback,yl=i.unstable_shouldYield,Os=i.unstable_requestPaint,fe=i.unstable_now,gu=i.unstable_getCurrentPriorityLevel,zs=i.unstable_ImmediatePriority,me=i.unstable_UserBlockingPriority,mi=i.unstable_NormalPriority,gl=i.unstable_LowPriority,Rs=i.unstable_IdlePriority,Vs=i.log,pi=i.unstable_setDisableYieldValue,le=null,pe=null;function on(t){if(typeof Vs=="function"&&pi(t),pe&&typeof pe.setStrictMode=="function")try{pe.setStrictMode(le,t)}catch{}}var ye=Math.clz32?Math.clz32:_s,ea=Math.log,vu=Math.LN2;function _s(t){return t>>>=0,t===0?32:31-(ea(t)/vu|0)|0}var jn=256,Nn=262144,Ua=4194304;function gn(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 Ba(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var s=0,r=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var y=a&134217727;return y!==0?(a=y&~r,a!==0?s=gn(a):(f&=y,f!==0?s=gn(f):n||(n=y&~t,n!==0&&(s=gn(n))))):(y=a&~r,y!==0?s=gn(y):f!==0?s=gn(f):n||(n=a&~t,n!==0&&(s=gn(n)))),s===0?0:e!==0&&e!==s&&(e&r)===0&&(r=s&-s,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:s}function Se(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Us(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 Qe(){var t=Ua;return Ua<<=1,(Ua&62914560)===0&&(Ua=4194304),t}function yi(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Te(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Dn(t,e,n,a,s,r){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 y=t.entanglements,S=t.expirationTimes,M=t.hiddenUpdates;for(n=f&~n;0<n;){var _=31-ye(n),L=1<<_;y[_]=0,S[_]=-1;var N=M[_];if(N!==null)for(M[_]=null,_=0;_<N.length;_++){var O=N[_];O!==null&&(O.lane&=-536870913)}n&=~L}a!==0&&vl(t,a,0),r!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=r&~(f&~e))}function vl(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-ye(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function La(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-ye(n),s=1<<a;s&e|t[a]&e&&(t[a]|=e),n&=~s}}function gi(t,e){var n=e&-e;return n=(n&42)!==0?1:na(n),(n&(t.suspendedLanes|e))!==0?0:n}function na(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 xl(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ha(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:Ep(t.type))}function Ya(t,e){var n=H.p;try{return H.p=t,e()}finally{H.p=n}}var Ze=Math.random().toString(36).slice(2),Lt="__reactFiber$"+Ze,ee="__reactProps$"+Ze,On="__reactContainer$"+Ze,vi="__reactEvents$"+Ze,xi="__reactListeners$"+Ze,vn="__reactHandles$"+Ze,bl="__reactResources$"+Ze,zn="__reactMarker$"+Ze;function qa(t){delete t[Lt],delete t[ee],delete t[vi],delete t[xi],delete t[vn]}function Rn(t){var e=t[Lt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[On]||n[Lt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=up(t);t!==null;){if(n=t[Lt])return n;t=up(t)}return e}t=n,n=t.parentNode}return null}function aa(t){if(t=t[Lt]||t[On]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Vn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function un(t){var e=t[bl];return e||(e=t[bl]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Yt(t){t[zn]=!0}var Sl=new Set,Ga={};function _n(t,e){ia(t,e),ia(t+"Capture",e)}function ia(t,e){for(Ga[t]=e,t=0;t<e.length;t++)Sl.add(e[t])}var Xa=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]*$"),la={},bi={};function Un(t){return ze.call(bi,t)?!0:ze.call(la,t)?!1:Xa.test(t)?bi[t]=!0:(la[t]=!0,!1)}function sa(t,e,n){if(Un(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Si(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 rn(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+a)}}function Ae(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Tl(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function xu(t,e,n){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var s=a.get,r=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(f){n=""+f,r.call(this,f)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ti(t){if(!t._valueTracker){var e=Tl(t)?"checked":"value";t._valueTracker=xu(t,e,""+t[e])}}function Bs(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=Tl(t)?t.checked?"true":"false":t.value),t=a,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 bu=/[\n"\\]/g;function Ee(t){return t.replace(bu,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ei(t,e,n,a,s,r,f,y){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=""+Ae(e)):t.value!==""+Ae(e)&&(t.value=""+Ae(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?El(t,f,Ae(e)):n!=null?El(t,f,Ae(n)):a!=null&&t.removeAttribute("value"),s==null&&r!=null&&(t.defaultChecked=!!r),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.name=""+Ae(y):t.removeAttribute("name")}function Al(t,e,n,a,s,r,f,y){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){Ti(t);return}n=n!=null?""+Ae(n):"",e=e!=null?""+Ae(e):n,y||e===t.value||(t.value=e),t.defaultValue=e}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=y?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Ti(t)}function El(t,e,n){e==="number"&&Ai(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Re(t,e,n,a){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&&a&&(t[n].defaultSelected=!0)}else{for(n=""+Ae(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,a&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function ke(t,e,n){if(e!=null&&(e=""+Ae(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Ae(n):""}function Ls(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(u(92));if($t(a)){if(1<a.length)throw Error(u(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=Ae(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),Ti(t)}function xn(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Su=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 Je(t,e,n){var a=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,n):typeof n!="number"||n===0||Su.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function wl(t,e,n){if(e!=null&&typeof e!="object")throw Error(u(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var s in e)a=e[s],e.hasOwnProperty(s)&&n[s]!==a&&Je(t,s,a)}else for(var r in e)e.hasOwnProperty(r)&&Je(t,r,e[r])}function j(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 tt=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"]]),zt=/^[\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 Ve(t){return zt.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function we(){}var oa=null;function Tu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var wi=null,Ci=null;function If(t){var e=aa(t);if(e&&(t=e.stateNode)){var n=t[ee]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ei(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="'+Ee(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var s=a[ee]||null;if(!s)throw Error(u(90));Ei(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&Bs(a)}break t;case"textarea":ke(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Re(t,!!n.multiple,e,!1)}}}var Au=!1;function th(t,e,n){if(Au)return t(e,n);Au=!0;try{var a=t(e);return a}finally{if(Au=!1,(wi!==null||Ci!==null)&&(Co(),wi&&(e=wi,t=Ci,Ci=wi=null,If(e),t)))for(e=0;e<t.length;e++)If(t[e])}}function Cl(t,e){var n=t.stateNode;if(n===null)return null;var a=n[ee]||null;if(a===null)return null;n=a[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":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(u(231,e,typeof n));return n}var Bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eu=!1;if(Bn)try{var Ml={};Object.defineProperty(Ml,"passive",{get:function(){Eu=!0}}),window.addEventListener("test",Ml,Ml),window.removeEventListener("test",Ml,Ml)}catch{Eu=!1}var ua=null,wu=null,Hs=null;function eh(){if(Hs)return Hs;var t,e=wu,n=e.length,a,s="value"in ua?ua.value:ua.textContent,r=s.length;for(t=0;t<n&&e[t]===s[t];t++);var f=n-t;for(a=1;a<=f&&e[n-a]===s[r-a];a++);return Hs=s.slice(t,1<a?1-a:void 0)}function Ys(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 qs(){return!0}function nh(){return!1}function Ce(t){function e(n,a,s,r,f){this._reactName=n,this._targetInst=s,this.type=a,this.nativeEvent=r,this.target=f,this.currentTarget=null;for(var y in t)t.hasOwnProperty(y)&&(n=t[y],this[y]=n?n(r):r[y]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?qs:nh,this.isPropagationStopped=nh,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=qs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=qs)},persist:function(){},isPersistent:qs}),e}var Ka={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gs=Ce(Ka),jl=b({},Ka,{view:0,detail:0}),Pg=Ce(jl),Cu,Mu,Nl,Xs=b({},jl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nu,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!==Nl&&(Nl&&t.type==="mousemove"?(Cu=t.screenX-Nl.screenX,Mu=t.screenY-Nl.screenY):Mu=Cu=0,Nl=t),Cu)},movementY:function(t){return"movementY"in t?t.movementY:Mu}}),ah=Ce(Xs),Wg=b({},Xs,{dataTransfer:0}),$g=Ce(Wg),Ig=b({},jl,{relatedTarget:0}),ju=Ce(Ig),tv=b({},Ka,{animationName:0,elapsedTime:0,pseudoElement:0}),ev=Ce(tv),nv=b({},Ka,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),av=Ce(nv),iv=b({},Ka,{data:0}),ih=Ce(iv),lv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sv={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"},ov={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function uv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=ov[t])?!!e[t]:!1}function Nu(){return uv}var rv=b({},jl,{key:function(t){if(t.key){var e=lv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ys(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?sv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nu,charCode:function(t){return t.type==="keypress"?Ys(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ys(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),cv=Ce(rv),fv=b({},Xs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lh=Ce(fv),hv=b({},jl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nu}),dv=Ce(hv),mv=b({},Ka,{propertyName:0,elapsedTime:0,pseudoElement:0}),pv=Ce(mv),yv=b({},Xs,{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}),gv=Ce(yv),vv=b({},Ka,{newState:0,oldState:0}),xv=Ce(vv),bv=[9,13,27,32],Du=Bn&&"CompositionEvent"in window,Dl=null;Bn&&"documentMode"in document&&(Dl=document.documentMode);var Sv=Bn&&"TextEvent"in window&&!Dl,sh=Bn&&(!Du||Dl&&8<Dl&&11>=Dl),oh=" ",uh=!1;function rh(t,e){switch(t){case"keyup":return bv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ch(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Mi=!1;function Tv(t,e){switch(t){case"compositionend":return ch(e);case"keypress":return e.which!==32?null:(uh=!0,oh);case"textInput":return t=e.data,t===oh&&uh?null:t;default:return null}}function Av(t,e){if(Mi)return t==="compositionend"||!Du&&rh(t,e)?(t=eh(),Hs=wu=ua=null,Mi=!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 sh&&e.locale!=="ko"?null:e.data;default:return null}}var Ev={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 fh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Ev[t.type]:e==="textarea"}function hh(t,e,n,a){wi?Ci?Ci.push(a):Ci=[a]:wi=a,e=Ro(e,"onChange"),0<e.length&&(n=new Gs("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var Ol=null,zl=null;function wv(t){Jm(t,0)}function Ks(t){var e=Vn(t);if(Bs(e))return t}function dh(t,e){if(t==="change")return e}var mh=!1;if(Bn){var Ou;if(Bn){var zu="oninput"in document;if(!zu){var ph=document.createElement("div");ph.setAttribute("oninput","return;"),zu=typeof ph.oninput=="function"}Ou=zu}else Ou=!1;mh=Ou&&(!document.documentMode||9<document.documentMode)}function yh(){Ol&&(Ol.detachEvent("onpropertychange",gh),zl=Ol=null)}function gh(t){if(t.propertyName==="value"&&Ks(zl)){var e=[];hh(e,zl,t,Tu(t)),th(wv,e)}}function Cv(t,e,n){t==="focusin"?(yh(),Ol=e,zl=n,Ol.attachEvent("onpropertychange",gh)):t==="focusout"&&yh()}function Mv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ks(zl)}function jv(t,e){if(t==="click")return Ks(e)}function Nv(t,e){if(t==="input"||t==="change")return Ks(e)}function Dv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var _e=typeof Object.is=="function"?Object.is:Dv;function Rl(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),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var s=n[a];if(!ze.call(e,s)||!_e(t[s],e[s]))return!1}return!0}function vh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function xh(t,e){var n=vh(t);t=0;for(var a;n;){if(n.nodeType===3){if(a=t+n.textContent.length,t<=e&&a>=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=vh(n)}}function bh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?bh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Sh(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 Ru(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 Ov=Bn&&"documentMode"in document&&11>=document.documentMode,ji=null,Vu=null,Vl=null,_u=!1;function Th(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_u||ji==null||ji!==Ai(a)||(a=ji,"selectionStart"in a&&Ru(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Vl&&Rl(Vl,a)||(Vl=a,a=Ro(Vu,"onSelect"),0<a.length&&(e=new Gs("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=ji)))}function Qa(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ni={animationend:Qa("Animation","AnimationEnd"),animationiteration:Qa("Animation","AnimationIteration"),animationstart:Qa("Animation","AnimationStart"),transitionrun:Qa("Transition","TransitionRun"),transitionstart:Qa("Transition","TransitionStart"),transitioncancel:Qa("Transition","TransitionCancel"),transitionend:Qa("Transition","TransitionEnd")},Uu={},Ah={};Bn&&(Ah=document.createElement("div").style,"AnimationEvent"in window||(delete Ni.animationend.animation,delete Ni.animationiteration.animation,delete Ni.animationstart.animation),"TransitionEvent"in window||delete Ni.transitionend.transition);function Za(t){if(Uu[t])return Uu[t];if(!Ni[t])return t;var e=Ni[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Ah)return Uu[t]=e[n];return t}var Eh=Za("animationend"),wh=Za("animationiteration"),Ch=Za("animationstart"),zv=Za("transitionrun"),Rv=Za("transitionstart"),Vv=Za("transitioncancel"),Mh=Za("transitionend"),jh=new Map,Bu="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(" ");Bu.push("scrollEnd");function cn(t,e){jh.set(t,e),_n(e,[t])}var Qs=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)},Fe=[],Di=0,Lu=0;function Zs(){for(var t=Di,e=Lu=Di=0;e<t;){var n=Fe[e];Fe[e++]=null;var a=Fe[e];Fe[e++]=null;var s=Fe[e];Fe[e++]=null;var r=Fe[e];if(Fe[e++]=null,a!==null&&s!==null){var f=a.pending;f===null?s.next=s:(s.next=f.next,f.next=s),a.pending=s}r!==0&&Nh(n,s,r)}}function ks(t,e,n,a){Fe[Di++]=t,Fe[Di++]=e,Fe[Di++]=n,Fe[Di++]=a,Lu|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Hu(t,e,n,a){return ks(t,e,n,a),Js(t)}function ka(t,e){return ks(t,null,null,e),Js(t)}function Nh(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var s=!1,r=t.return;r!==null;)r.childLanes|=n,a=r.alternate,a!==null&&(a.childLanes|=n),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(s=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,s&&e!==null&&(s=31-ye(n),t=r.hiddenUpdates,a=t[s],a===null?t[s]=[e]:a.push(e),e.lane=n|536870912),r):null}function Js(t){if(50<ns)throw ns=0,Jr=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Oi={};function _v(t,e,n,a){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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ue(t,e,n,a){return new _v(t,e,n,a)}function Yu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ln(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 Dh(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 Fs(t,e,n,a,s,r){var f=0;if(a=t,typeof t=="function")Yu(t)&&(f=1);else if(typeof t=="string")f=Yx(t,n,P.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case st:return t=Ue(31,n,e,s),t.elementType=st,t.lanes=r,t;case Y:return Ja(n.children,s,r,e);case X:f=8,s|=24;break;case q:return t=Ue(12,n,e,s|2),t.elementType=q,t.lanes=r,t;case Z:return t=Ue(13,n,e,s),t.elementType=Z,t.lanes=r,t;case lt:return t=Ue(19,n,e,s),t.elementType=lt,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case G:f=10;break t;case K:f=9;break t;case J:f=11;break t;case k:f=14;break t;case F:f=16,a=null;break t}f=29,n=Error(u(130,t===null?"null":typeof t,"")),a=null}return e=Ue(f,n,e,s),e.elementType=t,e.type=a,e.lanes=r,e}function Ja(t,e,n,a){return t=Ue(7,t,a,e),t.lanes=n,t}function qu(t,e,n){return t=Ue(6,t,null,e),t.lanes=n,t}function Oh(t){var e=Ue(18,null,null,0);return e.stateNode=t,e}function Gu(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 zh=new WeakMap;function Pe(t,e){if(typeof t=="object"&&t!==null){var n=zh.get(t);return n!==void 0?n:(e={value:t,source:e,stack:ta(e)},zh.set(t,e),e)}return{value:t,source:e,stack:ta(e)}}var zi=[],Ri=0,Ps=null,_l=0,We=[],$e=0,ra=null,bn=1,Sn="";function Hn(t,e){zi[Ri++]=_l,zi[Ri++]=Ps,Ps=t,_l=e}function Rh(t,e,n){We[$e++]=bn,We[$e++]=Sn,We[$e++]=ra,ra=t;var a=bn;t=Sn;var s=32-ye(a)-1;a&=~(1<<s),n+=1;var r=32-ye(e)+s;if(30<r){var f=s-s%5;r=(a&(1<<f)-1).toString(32),a>>=f,s-=f,bn=1<<32-ye(e)+s|n<<s|a,Sn=r+t}else bn=1<<r|n<<s|a,Sn=t}function Xu(t){t.return!==null&&(Hn(t,1),Rh(t,1,0))}function Ku(t){for(;t===Ps;)Ps=zi[--Ri],zi[Ri]=null,_l=zi[--Ri],zi[Ri]=null;for(;t===ra;)ra=We[--$e],We[$e]=null,Sn=We[--$e],We[$e]=null,bn=We[--$e],We[$e]=null}function Vh(t,e){We[$e++]=bn,We[$e++]=Sn,We[$e++]=ra,bn=e.id,Sn=e.overflow,ra=t}var se=null,Vt=null,xt=!1,ca=null,Ie=!1,Qu=Error(u(519));function fa(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ul(Pe(e,t)),Qu}function _h(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[Lt]=t,e[ee]=a,n){case"dialog":pt("cancel",e),pt("close",e);break;case"iframe":case"object":case"embed":pt("load",e);break;case"video":case"audio":for(n=0;n<is.length;n++)pt(is[n],e);break;case"source":pt("error",e);break;case"img":case"image":case"link":pt("error",e),pt("load",e);break;case"details":pt("toggle",e);break;case"input":pt("invalid",e),Al(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":pt("invalid",e);break;case"textarea":pt("invalid",e),Ls(e,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||a.suppressHydrationWarning===!0||$m(e.textContent,n)?(a.popover!=null&&(pt("beforetoggle",e),pt("toggle",e)),a.onScroll!=null&&pt("scroll",e),a.onScrollEnd!=null&&pt("scrollend",e),a.onClick!=null&&(e.onclick=we),e=!0):e=!1,e||fa(t,!0)}function Uh(t){for(se=t.return;se;)switch(se.tag){case 5:case 31:case 13:Ie=!1;return;case 27:case 3:Ie=!0;return;default:se=se.return}}function Vi(t){if(t!==se)return!1;if(!xt)return Uh(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")||rc(t.type,t.memoizedProps)),n=!n),n&&Vt&&fa(t),Uh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Vt=op(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Vt=op(t)}else e===27?(e=Vt,wa(t.type)?(t=mc,mc=null,Vt=t):Vt=e):Vt=se?en(t.stateNode.nextSibling):null;return!0}function Fa(){Vt=se=null,xt=!1}function Zu(){var t=ca;return t!==null&&(De===null?De=t:De.push.apply(De,t),ca=null),t}function Ul(t){ca===null?ca=[t]:ca.push(t)}var ku=E(null),Pa=null,Yn=null;function ha(t,e,n){Q(ku,e._currentValue),e._currentValue=n}function qn(t){t._currentValue=ku.current,U(ku)}function Ju(t,e,n){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===n)break;t=t.return}}function Fu(t,e,n,a){var s=t.child;for(s!==null&&(s.return=t);s!==null;){var r=s.dependencies;if(r!==null){var f=s.child;r=r.firstContext;t:for(;r!==null;){var y=r;r=s;for(var S=0;S<e.length;S++)if(y.context===e[S]){r.lanes|=n,y=r.alternate,y!==null&&(y.lanes|=n),Ju(r.return,n,t),a||(f=null);break t}r=y.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(u(341));f.lanes|=n,r=f.alternate,r!==null&&(r.lanes|=n),Ju(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 _i(t,e,n,a){t=null;for(var s=e,r=!1;s!==null;){if(!r){if((s.flags&524288)!==0)r=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(u(387));if(f=f.memoizedProps,f!==null){var y=s.type;_e(s.pendingProps.value,f.value)||(t!==null?t.push(y):t=[y])}}else if(s===dt.current){if(f=s.alternate,f===null)throw Error(u(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(rs):t=[rs])}s=s.return}t!==null&&Fu(e,t,n,a),e.flags|=262144}function Ws(t){for(t=t.firstContext;t!==null;){if(!_e(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Wa(t){Pa=t,Yn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function oe(t){return Bh(Pa,t)}function $s(t,e){return Pa===null&&Wa(t),Bh(t,e)}function Bh(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Yn===null){if(t===null)throw Error(u(308));Yn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Yn=Yn.next=e;return n}var Uv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},Bv=i.unstable_scheduleCallback,Lv=i.unstable_NormalPriority,kt={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pu(){return{controller:new Uv,data:new Map,refCount:0}}function Bl(t){t.refCount--,t.refCount===0&&Bv(Lv,function(){t.controller.abort()})}var Ll=null,Wu=0,Ui=0,Bi=null;function Hv(t,e){if(Ll===null){var n=Ll=[];Wu=0,Ui=tc(),Bi={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Wu++,e.then(Lh,Lh),e}function Lh(){if(--Wu===0&&Ll!==null){Bi!==null&&(Bi.status="fulfilled");var t=Ll;Ll=null,Ui=0,Bi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Yv(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(a.status="rejected",a.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),a}var Hh=R.S;R.S=function(t,e){Tm=fe(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Hv(t,e),Hh!==null&&Hh(t,e)};var $a=E(null);function $u(){var t=$a.current;return t!==null?t:Ot.pooledCache}function Is(t,e){e===null?Q($a,$a.current):Q($a,e.pool)}function Yh(){var t=$u();return t===null?null:{parent:kt._currentValue,pool:t}}var Li=Error(u(460)),Iu=Error(u(474)),to=Error(u(542)),eo={then:function(){}};function qh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Gh(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(we,we),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Kh(t),t;default:if(typeof e.status=="string")e.then(we,we);else{if(t=Ot,t!==null&&100<t.shellSuspendCounter)throw Error(u(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=a}},function(a){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Kh(t),t}throw ti=e,Li}}function Ia(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ti=n,Li):n}}var ti=null;function Xh(){if(ti===null)throw Error(u(459));var t=ti;return ti=null,t}function Kh(t){if(t===Li||t===to)throw Error(u(483))}var Hi=null,Hl=0;function no(t){var e=Hl;return Hl+=1,Hi===null&&(Hi=[]),Gh(Hi,t,e)}function Yl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ao(t,e){throw e.$$typeof===T?Error(u(525)):(t=Object.prototype.toString.call(e),Error(u(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Qh(t){function e(w,A){if(t){var C=w.deletions;C===null?(w.deletions=[A],w.flags|=16):C.push(A)}}function n(w,A){if(!t)return null;for(;A!==null;)e(w,A),A=A.sibling;return null}function a(w){for(var A=new Map;w!==null;)w.key!==null?A.set(w.key,w):A.set(w.index,w),w=w.sibling;return A}function s(w,A){return w=Ln(w,A),w.index=0,w.sibling=null,w}function r(w,A,C){return w.index=C,t?(C=w.alternate,C!==null?(C=C.index,C<A?(w.flags|=67108866,A):C):(w.flags|=67108866,A)):(w.flags|=1048576,A)}function f(w){return t&&w.alternate===null&&(w.flags|=67108866),w}function y(w,A,C,B){return A===null||A.tag!==6?(A=qu(C,w.mode,B),A.return=w,A):(A=s(A,C),A.return=w,A)}function S(w,A,C,B){var nt=C.type;return nt===Y?_(w,A,C.props.children,B,C.key):A!==null&&(A.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===F&&Ia(nt)===A.type)?(A=s(A,C.props),Yl(A,C),A.return=w,A):(A=Fs(C.type,C.key,C.props,null,w.mode,B),Yl(A,C),A.return=w,A)}function M(w,A,C,B){return A===null||A.tag!==4||A.stateNode.containerInfo!==C.containerInfo||A.stateNode.implementation!==C.implementation?(A=Gu(C,w.mode,B),A.return=w,A):(A=s(A,C.children||[]),A.return=w,A)}function _(w,A,C,B,nt){return A===null||A.tag!==7?(A=Ja(C,w.mode,B,nt),A.return=w,A):(A=s(A,C),A.return=w,A)}function L(w,A,C){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=qu(""+A,w.mode,C),A.return=w,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case D:return C=Fs(A.type,A.key,A.props,null,w.mode,C),Yl(C,A),C.return=w,C;case V:return A=Gu(A,w.mode,C),A.return=w,A;case F:return A=Ia(A),L(w,A,C)}if($t(A)||Bt(A))return A=Ja(A,w.mode,C,null),A.return=w,A;if(typeof A.then=="function")return L(w,no(A),C);if(A.$$typeof===G)return L(w,$s(w,A),C);ao(w,A)}return null}function N(w,A,C,B){var nt=A!==null?A.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return nt!==null?null:y(w,A,""+C,B);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case D:return C.key===nt?S(w,A,C,B):null;case V:return C.key===nt?M(w,A,C,B):null;case F:return C=Ia(C),N(w,A,C,B)}if($t(C)||Bt(C))return nt!==null?null:_(w,A,C,B,null);if(typeof C.then=="function")return N(w,A,no(C),B);if(C.$$typeof===G)return N(w,A,$s(w,C),B);ao(w,C)}return null}function O(w,A,C,B,nt){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return w=w.get(C)||null,y(A,w,""+B,nt);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case D:return w=w.get(B.key===null?C:B.key)||null,S(A,w,B,nt);case V:return w=w.get(B.key===null?C:B.key)||null,M(A,w,B,nt);case F:return B=Ia(B),O(w,A,C,B,nt)}if($t(B)||Bt(B))return w=w.get(C)||null,_(A,w,B,nt,null);if(typeof B.then=="function")return O(w,A,C,no(B),nt);if(B.$$typeof===G)return O(w,A,C,$s(A,B),nt);ao(A,B)}return null}function W(w,A,C,B){for(var nt=null,St=null,et=A,ft=A=0,gt=null;et!==null&&ft<C.length;ft++){et.index>ft?(gt=et,et=null):gt=et.sibling;var Tt=N(w,et,C[ft],B);if(Tt===null){et===null&&(et=gt);break}t&&et&&Tt.alternate===null&&e(w,et),A=r(Tt,A,ft),St===null?nt=Tt:St.sibling=Tt,St=Tt,et=gt}if(ft===C.length)return n(w,et),xt&&Hn(w,ft),nt;if(et===null){for(;ft<C.length;ft++)et=L(w,C[ft],B),et!==null&&(A=r(et,A,ft),St===null?nt=et:St.sibling=et,St=et);return xt&&Hn(w,ft),nt}for(et=a(et);ft<C.length;ft++)gt=O(et,w,ft,C[ft],B),gt!==null&&(t&>.alternate!==null&&et.delete(gt.key===null?ft:gt.key),A=r(gt,A,ft),St===null?nt=gt:St.sibling=gt,St=gt);return t&&et.forEach(function(Da){return e(w,Da)}),xt&&Hn(w,ft),nt}function it(w,A,C,B){if(C==null)throw Error(u(151));for(var nt=null,St=null,et=A,ft=A=0,gt=null,Tt=C.next();et!==null&&!Tt.done;ft++,Tt=C.next()){et.index>ft?(gt=et,et=null):gt=et.sibling;var Da=N(w,et,Tt.value,B);if(Da===null){et===null&&(et=gt);break}t&&et&&Da.alternate===null&&e(w,et),A=r(Da,A,ft),St===null?nt=Da:St.sibling=Da,St=Da,et=gt}if(Tt.done)return n(w,et),xt&&Hn(w,ft),nt;if(et===null){for(;!Tt.done;ft++,Tt=C.next())Tt=L(w,Tt.value,B),Tt!==null&&(A=r(Tt,A,ft),St===null?nt=Tt:St.sibling=Tt,St=Tt);return xt&&Hn(w,ft),nt}for(et=a(et);!Tt.done;ft++,Tt=C.next())Tt=O(et,w,ft,Tt.value,B),Tt!==null&&(t&&Tt.alternate!==null&&et.delete(Tt.key===null?ft:Tt.key),A=r(Tt,A,ft),St===null?nt=Tt:St.sibling=Tt,St=Tt);return t&&et.forEach(function(Wx){return e(w,Wx)}),xt&&Hn(w,ft),nt}function Nt(w,A,C,B){if(typeof C=="object"&&C!==null&&C.type===Y&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case D:t:{for(var nt=C.key;A!==null;){if(A.key===nt){if(nt=C.type,nt===Y){if(A.tag===7){n(w,A.sibling),B=s(A,C.props.children),B.return=w,w=B;break t}}else if(A.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===F&&Ia(nt)===A.type){n(w,A.sibling),B=s(A,C.props),Yl(B,C),B.return=w,w=B;break t}n(w,A);break}else e(w,A);A=A.sibling}C.type===Y?(B=Ja(C.props.children,w.mode,B,C.key),B.return=w,w=B):(B=Fs(C.type,C.key,C.props,null,w.mode,B),Yl(B,C),B.return=w,w=B)}return f(w);case V:t:{for(nt=C.key;A!==null;){if(A.key===nt)if(A.tag===4&&A.stateNode.containerInfo===C.containerInfo&&A.stateNode.implementation===C.implementation){n(w,A.sibling),B=s(A,C.children||[]),B.return=w,w=B;break t}else{n(w,A);break}else e(w,A);A=A.sibling}B=Gu(C,w.mode,B),B.return=w,w=B}return f(w);case F:return C=Ia(C),Nt(w,A,C,B)}if($t(C))return W(w,A,C,B);if(Bt(C)){if(nt=Bt(C),typeof nt!="function")throw Error(u(150));return C=nt.call(C),it(w,A,C,B)}if(typeof C.then=="function")return Nt(w,A,no(C),B);if(C.$$typeof===G)return Nt(w,A,$s(w,C),B);ao(w,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,A!==null&&A.tag===6?(n(w,A.sibling),B=s(A,C),B.return=w,w=B):(n(w,A),B=qu(C,w.mode,B),B.return=w,w=B),f(w)):n(w,A)}return function(w,A,C,B){try{Hl=0;var nt=Nt(w,A,C,B);return Hi=null,nt}catch(et){if(et===Li||et===to)throw et;var St=Ue(29,et,null,w.mode);return St.lanes=B,St.return=w,St}}}var ei=Qh(!0),Zh=Qh(!1),da=!1;function tr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function er(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 ma(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function pa(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(At&2)!==0){var s=a.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),a.pending=e,e=Js(t),Nh(t,null,n),e}return ks(t,a,e,n),Js(t)}function ql(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,La(t,n)}}function nr(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var s=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?s=r=f:r=r.next=f,n=n.next}while(n!==null);r===null?s=r=e:r=r.next=e}else s=r=e;n={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:r,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var ar=!1;function Gl(){if(ar){var t=Bi;if(t!==null)throw t}}function Xl(t,e,n,a){ar=!1;var s=t.updateQueue;da=!1;var r=s.firstBaseUpdate,f=s.lastBaseUpdate,y=s.shared.pending;if(y!==null){s.shared.pending=null;var S=y,M=S.next;S.next=null,f===null?r=M:f.next=M,f=S;var _=t.alternate;_!==null&&(_=_.updateQueue,y=_.lastBaseUpdate,y!==f&&(y===null?_.firstBaseUpdate=M:y.next=M,_.lastBaseUpdate=S))}if(r!==null){var L=s.baseState;f=0,_=M=S=null,y=r;do{var N=y.lane&-536870913,O=N!==y.lane;if(O?(yt&N)===N:(a&N)===N){N!==0&&N===Ui&&(ar=!0),_!==null&&(_=_.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var W=t,it=y;N=e;var Nt=n;switch(it.tag){case 1:if(W=it.payload,typeof W=="function"){L=W.call(Nt,L,N);break t}L=W;break t;case 3:W.flags=W.flags&-65537|128;case 0:if(W=it.payload,N=typeof W=="function"?W.call(Nt,L,N):W,N==null)break t;L=b({},L,N);break t;case 2:da=!0}}N=y.callback,N!==null&&(t.flags|=64,O&&(t.flags|=8192),O=s.callbacks,O===null?s.callbacks=[N]:O.push(N))}else O={lane:N,tag:y.tag,payload:y.payload,callback:y.callback,next:null},_===null?(M=_=O,S=L):_=_.next=O,f|=N;if(y=y.next,y===null){if(y=s.shared.pending,y===null)break;O=y,y=O.next,O.next=null,s.lastBaseUpdate=O,s.shared.pending=null}}while(!0);_===null&&(S=L),s.baseState=S,s.firstBaseUpdate=M,s.lastBaseUpdate=_,r===null&&(s.shared.lanes=0),ba|=f,t.lanes=f,t.memoizedState=L}}function kh(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function Jh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)kh(n[t],e)}var Yi=E(null),io=E(0);function Fh(t,e){t=Pn,Q(io,t),Q(Yi,e),Pn=t|e.baseLanes}function ir(){Q(io,Pn),Q(Yi,Yi.current)}function lr(){Pn=io.current,U(Yi),U(io)}var Be=E(null),tn=null;function ya(t){var e=t.alternate;Q(Qt,Qt.current&1),Q(Be,t),tn===null&&(e===null||Yi.current!==null||e.memoizedState!==null)&&(tn=t)}function sr(t){Q(Qt,Qt.current),Q(Be,t),tn===null&&(tn=t)}function Ph(t){t.tag===22?(Q(Qt,Qt.current),Q(Be,t),tn===null&&(tn=t)):ga()}function ga(){Q(Qt,Qt.current),Q(Be,Be.current)}function Le(t){U(Be),tn===t&&(tn=null),U(Qt)}var Qt=E(0);function lo(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||hc(n)||dc(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 Gn=0,ct=null,Mt=null,Jt=null,so=!1,qi=!1,ni=!1,oo=0,Kl=0,Gi=null,qv=0;function qt(){throw Error(u(321))}function or(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 ur(t,e,n,a,s,r){return Gn=r,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,R.H=t===null||t.memoizedState===null?Rd:Ar,ni=!1,r=n(a,s),ni=!1,qi&&(r=$h(e,n,a,s)),Wh(t),r}function Wh(t){R.H=kl;var e=Mt!==null&&Mt.next!==null;if(Gn=0,Jt=Mt=ct=null,so=!1,Kl=0,Gi=null,e)throw Error(u(300));t===null||Ft||(t=t.dependencies,t!==null&&Ws(t)&&(Ft=!0))}function $h(t,e,n,a){ct=t;var s=0;do{if(qi&&(Gi=null),Kl=0,qi=!1,25<=s)throw Error(u(301));if(s+=1,Jt=Mt=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}R.H=Vd,r=e(n,a)}while(qi);return r}function Gv(){var t=R.H,e=t.useState()[0];return e=typeof e.then=="function"?Ql(e):e,t=t.useState()[0],(Mt!==null?Mt.memoizedState:null)!==t&&(ct.flags|=1024),e}function rr(){var t=oo!==0;return oo=0,t}function cr(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function fr(t){if(so){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}so=!1}Gn=0,Jt=Mt=ct=null,qi=!1,Kl=oo=0,Gi=null}function ge(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jt===null?ct.memoizedState=Jt=t:Jt=Jt.next=t,Jt}function Zt(){if(Mt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Mt.next;var e=Jt===null?ct.memoizedState:Jt.next;if(e!==null)Jt=e,Mt=t;else{if(t===null)throw ct.alternate===null?Error(u(467)):Error(u(310));Mt=t,t={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},Jt===null?ct.memoizedState=Jt=t:Jt=Jt.next=t}return Jt}function uo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ql(t){var e=Kl;return Kl+=1,Gi===null&&(Gi=[]),t=Gh(Gi,t,e),e=ct,(Jt===null?e.memoizedState:Jt.next)===null&&(e=e.alternate,R.H=e===null||e.memoizedState===null?Rd:Ar),t}function ro(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ql(t);if(t.$$typeof===G)return oe(t)}throw Error(u(438,String(t)))}function hr(t){var e=null,n=ct.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=ct.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(s){return s.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=uo(),ct.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),a=0;a<t;a++)n[a]=bt;return e.index++,n}function Xn(t,e){return typeof e=="function"?e(t):e}function co(t){var e=Zt();return dr(e,Mt,t)}function dr(t,e,n){var a=t.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=n;var s=t.baseQueue,r=a.pending;if(r!==null){if(s!==null){var f=s.next;s.next=r.next,r.next=f}e.baseQueue=s=r,a.pending=null}if(r=t.baseState,s===null)t.memoizedState=r;else{e=s.next;var y=f=null,S=null,M=e,_=!1;do{var L=M.lane&-536870913;if(L!==M.lane?(yt&L)===L:(Gn&L)===L){var N=M.revertLane;if(N===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),L===Ui&&(_=!0);else if((Gn&N)===N){M=M.next,N===Ui&&(_=!0);continue}else L={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},S===null?(y=S=L,f=r):S=S.next=L,ct.lanes|=N,ba|=N;L=M.action,ni&&n(r,L),r=M.hasEagerState?M.eagerState:n(r,L)}else N={lane:L,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},S===null?(y=S=N,f=r):S=S.next=N,ct.lanes|=L,ba|=L;M=M.next}while(M!==null&&M!==e);if(S===null?f=r:S.next=y,!_e(r,t.memoizedState)&&(Ft=!0,_&&(n=Bi,n!==null)))throw n;t.memoizedState=r,t.baseState=f,t.baseQueue=S,a.lastRenderedState=r}return s===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function mr(t){var e=Zt(),n=e.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=t;var a=n.dispatch,s=n.pending,r=e.memoizedState;if(s!==null){n.pending=null;var f=s=s.next;do r=t(r,f.action),f=f.next;while(f!==s);_e(r,e.memoizedState)||(Ft=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,a]}function Ih(t,e,n){var a=ct,s=Zt(),r=xt;if(r){if(n===void 0)throw Error(u(407));n=n()}else n=e();var f=!_e((Mt||s).memoizedState,n);if(f&&(s.memoizedState=n,Ft=!0),s=s.queue,gr(nd.bind(null,a,s,t),[t]),s.getSnapshot!==e||f||Jt!==null&&Jt.memoizedState.tag&1){if(a.flags|=2048,Xi(9,{destroy:void 0},ed.bind(null,a,s,n,e),null),Ot===null)throw Error(u(349));r||(Gn&127)!==0||td(a,e,n)}return n}function td(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=uo(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function ed(t,e,n,a){e.value=n,e.getSnapshot=a,ad(e)&&id(t)}function nd(t,e,n){return n(function(){ad(e)&&id(t)})}function ad(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!_e(t,n)}catch{return!0}}function id(t){var e=ka(t,2);e!==null&&Oe(e,t,2)}function pr(t){var e=ge();if(typeof t=="function"){var n=t;if(t=n(),ni){on(!0);try{n()}finally{on(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:t},e}function ld(t,e,n,a){return t.baseState=n,dr(t,Mt,typeof a=="function"?a:Xn)}function Xv(t,e,n,a,s){if(mo(t))throw Error(u(485));if(t=e.action,t!==null){var r={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){r.listeners.push(f)}};R.T!==null?n(!0):r.isTransition=!1,a(r),n=e.pending,n===null?(r.next=e.pending=r,sd(e,r)):(r.next=n.next,e.pending=n.next=r)}}function sd(t,e){var n=e.action,a=e.payload,s=t.state;if(e.isTransition){var r=R.T,f={};R.T=f;try{var y=n(s,a),S=R.S;S!==null&&S(f,y),od(t,e,y)}catch(M){yr(t,e,M)}finally{r!==null&&f.types!==null&&(r.types=f.types),R.T=r}}else try{r=n(s,a),od(t,e,r)}catch(M){yr(t,e,M)}}function od(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){ud(t,e,a)},function(a){return yr(t,e,a)}):ud(t,e,n)}function ud(t,e,n){e.status="fulfilled",e.value=n,rd(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,sd(t,n)))}function yr(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,rd(e),e=e.next;while(e!==a)}t.action=null}function rd(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function cd(t,e){return e}function fd(t,e){if(xt){var n=Ot.formState;if(n!==null){t:{var a=ct;if(xt){if(Vt){e:{for(var s=Vt,r=Ie;s.nodeType!==8;){if(!r){s=null;break e}if(s=en(s.nextSibling),s===null){s=null;break e}}r=s.data,s=r==="F!"||r==="F"?s:null}if(s){Vt=en(s.nextSibling),a=s.data==="F!";break t}}fa(a)}a=!1}a&&(e=n[0])}}return n=ge(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cd,lastRenderedState:e},n.queue=a,n=Dd.bind(null,ct,a),a.dispatch=n,a=pr(!1),r=Tr.bind(null,ct,!1,a.queue),a=ge(),s={state:e,dispatch:null,action:t,pending:null},a.queue=s,n=Xv.bind(null,ct,s,r,n),s.dispatch=n,a.memoizedState=t,[e,n,!1]}function hd(t){var e=Zt();return dd(e,Mt,t)}function dd(t,e,n){if(e=dr(t,e,cd)[0],t=co(Xn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Ql(e)}catch(f){throw f===Li?to:f}else a=e;e=Zt();var s=e.queue,r=s.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,Xi(9,{destroy:void 0},Kv.bind(null,s,n),null)),[a,r,t]}function Kv(t,e){t.action=e}function md(t){var e=Zt(),n=Mt;if(n!==null)return dd(e,n,t);Zt(),e=e.memoizedState,n=Zt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function Xi(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=ct.updateQueue,e===null&&(e=uo(),ct.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(a=n.next,n.next=t,t.next=a,e.lastEffect=t),t}function pd(){return Zt().memoizedState}function fo(t,e,n,a){var s=ge();ct.flags|=t,s.memoizedState=Xi(1|e,{destroy:void 0},n,a===void 0?null:a)}function ho(t,e,n,a){var s=Zt();a=a===void 0?null:a;var r=s.memoizedState.inst;Mt!==null&&a!==null&&or(a,Mt.memoizedState.deps)?s.memoizedState=Xi(e,r,n,a):(ct.flags|=t,s.memoizedState=Xi(1|e,r,n,a))}function yd(t,e){fo(8390656,8,t,e)}function gr(t,e){ho(2048,8,t,e)}function Qv(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=uo(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function gd(t){var e=Zt().memoizedState;return Qv({ref:e,nextImpl:t}),function(){if((At&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function vd(t,e){return ho(4,2,t,e)}function xd(t,e){return ho(4,4,t,e)}function bd(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 Sd(t,e,n){n=n!=null?n.concat([t]):null,ho(4,4,bd.bind(null,e,t),n)}function vr(){}function Td(t,e){var n=Zt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&or(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function Ad(t,e){var n=Zt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&or(e,a[1]))return a[0];if(a=t(),ni){on(!0);try{t()}finally{on(!1)}}return n.memoizedState=[a,e],a}function xr(t,e,n){return n===void 0||(Gn&1073741824)!==0&&(yt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Em(),ct.lanes|=t,ba|=t,n)}function Ed(t,e,n,a){return _e(n,e)?n:Yi.current!==null?(t=xr(t,n,a),_e(t,e)||(Ft=!0),t):(Gn&42)===0||(Gn&1073741824)!==0&&(yt&261930)===0?(Ft=!0,t.memoizedState=n):(t=Em(),ct.lanes|=t,ba|=t,e)}function wd(t,e,n,a,s){var r=H.p;H.p=r!==0&&8>r?r:8;var f=R.T,y={};R.T=y,Tr(t,!1,e,n);try{var S=s(),M=R.S;if(M!==null&&M(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var _=Yv(S,a);Zl(t,e,_,qe(t))}else Zl(t,e,a,qe(t))}catch(L){Zl(t,e,{then:function(){},status:"rejected",reason:L},qe())}finally{H.p=r,f!==null&&y.types!==null&&(f.types=y.types),R.T=f}}function Zv(){}function br(t,e,n,a){if(t.tag!==5)throw Error(u(476));var s=Cd(t).queue;wd(t,s,e,$,n===null?Zv:function(){return Md(t),n(a)})}function Cd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:$},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Md(t){var e=Cd(t);e.next===null&&(e=t.alternate.memoizedState),Zl(t,e.next.queue,{},qe())}function Sr(){return oe(rs)}function jd(){return Zt().memoizedState}function Nd(){return Zt().memoizedState}function kv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=qe();t=ma(n);var a=pa(e,t,n);a!==null&&(Oe(a,e,n),ql(a,e,n)),e={cache:Pu()},t.payload=e;return}e=e.return}}function Jv(t,e,n){var a=qe();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},mo(t)?Od(e,n):(n=Hu(t,e,n,a),n!==null&&(Oe(n,t,a),zd(n,e,a)))}function Dd(t,e,n){var a=qe();Zl(t,e,n,a)}function Zl(t,e,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(mo(t))Od(e,s);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var f=e.lastRenderedState,y=r(f,n);if(s.hasEagerState=!0,s.eagerState=y,_e(y,f))return ks(t,e,s,0),Ot===null&&Zs(),!1}catch{}if(n=Hu(t,e,s,a),n!==null)return Oe(n,t,a),zd(n,e,a),!0}return!1}function Tr(t,e,n,a){if(a={lane:2,revertLane:tc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},mo(t)){if(e)throw Error(u(479))}else e=Hu(t,n,a,2),e!==null&&Oe(e,t,2)}function mo(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function Od(t,e){qi=so=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function zd(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,La(t,n)}}var kl={readContext:oe,use:ro,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};kl.useEffectEvent=qt;var Rd={readContext:oe,use:ro,useCallback:function(t,e){return ge().memoizedState=[t,e===void 0?null:e],t},useContext:oe,useEffect:yd,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,fo(4194308,4,bd.bind(null,e,t),n)},useLayoutEffect:function(t,e){return fo(4194308,4,t,e)},useInsertionEffect:function(t,e){fo(4,2,t,e)},useMemo:function(t,e){var n=ge();e=e===void 0?null:e;var a=t();if(ni){on(!0);try{t()}finally{on(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=ge();if(n!==void 0){var s=n(e);if(ni){on(!0);try{n(e)}finally{on(!1)}}}else s=e;return a.memoizedState=a.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},a.queue=t,t=t.dispatch=Jv.bind(null,ct,t),[a.memoizedState,t]},useRef:function(t){var e=ge();return t={current:t},e.memoizedState=t},useState:function(t){t=pr(t);var e=t.queue,n=Dd.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:vr,useDeferredValue:function(t,e){var n=ge();return xr(n,t,e)},useTransition:function(){var t=pr(!1);return t=wd.bind(null,ct,t.queue,!0,!1),ge().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=ct,s=ge();if(xt){if(n===void 0)throw Error(u(407));n=n()}else{if(n=e(),Ot===null)throw Error(u(349));(yt&127)!==0||td(a,e,n)}s.memoizedState=n;var r={value:n,getSnapshot:e};return s.queue=r,yd(nd.bind(null,a,r,t),[t]),a.flags|=2048,Xi(9,{destroy:void 0},ed.bind(null,a,r,n,e),null),n},useId:function(){var t=ge(),e=Ot.identifierPrefix;if(xt){var n=Sn,a=bn;n=(a&~(1<<32-ye(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=oo++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=qv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Sr,useFormState:fd,useActionState:fd,useOptimistic:function(t){var e=ge();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Tr.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:hr,useCacheRefresh:function(){return ge().memoizedState=kv.bind(null,ct)},useEffectEvent:function(t){var e=ge(),n={impl:t};return e.memoizedState=n,function(){if((At&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},Ar={readContext:oe,use:ro,useCallback:Td,useContext:oe,useEffect:gr,useImperativeHandle:Sd,useInsertionEffect:vd,useLayoutEffect:xd,useMemo:Ad,useReducer:co,useRef:pd,useState:function(){return co(Xn)},useDebugValue:vr,useDeferredValue:function(t,e){var n=Zt();return Ed(n,Mt.memoizedState,t,e)},useTransition:function(){var t=co(Xn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Ql(t),e]},useSyncExternalStore:Ih,useId:jd,useHostTransitionStatus:Sr,useFormState:hd,useActionState:hd,useOptimistic:function(t,e){var n=Zt();return ld(n,Mt,t,e)},useMemoCache:hr,useCacheRefresh:Nd};Ar.useEffectEvent=gd;var Vd={readContext:oe,use:ro,useCallback:Td,useContext:oe,useEffect:gr,useImperativeHandle:Sd,useInsertionEffect:vd,useLayoutEffect:xd,useMemo:Ad,useReducer:mr,useRef:pd,useState:function(){return mr(Xn)},useDebugValue:vr,useDeferredValue:function(t,e){var n=Zt();return Mt===null?xr(n,t,e):Ed(n,Mt.memoizedState,t,e)},useTransition:function(){var t=mr(Xn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Ql(t),e]},useSyncExternalStore:Ih,useId:jd,useHostTransitionStatus:Sr,useFormState:md,useActionState:md,useOptimistic:function(t,e){var n=Zt();return Mt!==null?ld(n,Mt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:hr,useCacheRefresh:Nd};Vd.useEffectEvent=gd;function Er(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:b({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var wr={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=qe(),s=ma(a);s.payload=e,n!=null&&(s.callback=n),e=pa(t,s,a),e!==null&&(Oe(e,t,a),ql(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=qe(),s=ma(a);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=pa(t,s,a),e!==null&&(Oe(e,t,a),ql(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=qe(),a=ma(n);a.tag=2,e!=null&&(a.callback=e),e=pa(t,a,n),e!==null&&(Oe(e,t,n),ql(e,t,n))}};function _d(t,e,n,a,s,r,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,r,f):e.prototype&&e.prototype.isPureReactComponent?!Rl(n,a)||!Rl(s,r):!0}function Ud(t,e,n,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,a),e.state!==t&&wr.enqueueReplaceState(e,e.state,null)}function ai(t,e){var n=e;if("ref"in e){n={};for(var a in e)a!=="ref"&&(n[a]=e[a])}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 Bd(t){Qs(t)}function Ld(t){console.error(t)}function Hd(t){Qs(t)}function po(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Yd(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Cr(t,e,n){return n=ma(n),n.tag=3,n.payload={element:null},n.callback=function(){po(t,e)},n}function qd(t){return t=ma(t),t.tag=3,t}function Gd(t,e,n,a){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var r=a.value;t.payload=function(){return s(r)},t.callback=function(){Yd(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Yd(e,n,a),typeof s!="function"&&(Sa===null?Sa=new Set([this]):Sa.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function Fv(t,e,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&_i(e,n,s,!0),n=Be.current,n!==null){switch(n.tag){case 31:case 13:return tn===null?Mo():n.alternate===null&&Gt===0&&(Gt=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===eo?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),Wr(t,a,s)),!1;case 22:return n.flags|=65536,a===eo?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([a]):n.add(a)),Wr(t,a,s)),!1}throw Error(u(435,n.tag))}return Wr(t,a,s),Mo(),!1}if(xt)return e=Be.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,a!==Qu&&(t=Error(u(422),{cause:a}),Ul(Pe(t,n)))):(a!==Qu&&(e=Error(u(423),{cause:a}),Ul(Pe(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,a=Pe(a,n),s=Cr(t.stateNode,a,s),nr(t,s),Gt!==4&&(Gt=2)),!1;var r=Error(u(520),{cause:a});if(r=Pe(r,n),es===null?es=[r]:es.push(r),Gt!==4&&(Gt=2),e===null)return!0;a=Pe(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=Cr(n.stateNode,a,t),nr(n,t),!1;case 1:if(e=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Sa===null||!Sa.has(r))))return n.flags|=65536,s&=-s,n.lanes|=s,s=qd(s),Gd(s,t,n,a),nr(n,s),!1}n=n.return}while(n!==null);return!1}var Mr=Error(u(461)),Ft=!1;function ue(t,e,n,a){e.child=t===null?Zh(e,null,n,a):ei(e,t.child,n,a)}function Xd(t,e,n,a,s){n=n.render;var r=e.ref;if("ref"in a){var f={};for(var y in a)y!=="ref"&&(f[y]=a[y])}else f=a;return Wa(e),a=ur(t,e,n,f,r,s),y=rr(),t!==null&&!Ft?(cr(t,e,s),Kn(t,e,s)):(xt&&y&&Xu(e),e.flags|=1,ue(t,e,a,s),e.child)}function Kd(t,e,n,a,s){if(t===null){var r=n.type;return typeof r=="function"&&!Yu(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,Qd(t,e,r,a,s)):(t=Fs(n.type,null,a,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!_r(t,s)){var f=r.memoizedProps;if(n=n.compare,n=n!==null?n:Rl,n(f,a)&&t.ref===e.ref)return Kn(t,e,s)}return e.flags|=1,t=Ln(r,a),t.ref=e.ref,t.return=e,e.child=t}function Qd(t,e,n,a,s){if(t!==null){var r=t.memoizedProps;if(Rl(r,a)&&t.ref===e.ref)if(Ft=!1,e.pendingProps=a=r,_r(t,s))(t.flags&131072)!==0&&(Ft=!0);else return e.lanes=t.lanes,Kn(t,e,s)}return jr(t,e,n,a,s)}function Zd(t,e,n,a){var s=a.children,r=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(r=r!==null?r.baseLanes|n:n,t!==null){for(a=e.child=t.child,s=0;a!==null;)s=s|a.lanes|a.childLanes,a=a.sibling;a=s&~r}else a=0,e.child=null;return kd(t,e,r,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Is(e,r!==null?r.cachePool:null),r!==null?Fh(e,r):ir(),Ph(e);else return a=e.lanes=536870912,kd(t,e,r!==null?r.baseLanes|n:n,n,a)}else r!==null?(Is(e,r.cachePool),Fh(e,r),ga(),e.memoizedState=null):(t!==null&&Is(e,null),ir(),ga());return ue(t,e,s,n),e.child}function Jl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function kd(t,e,n,a,s){var r=$u();return r=r===null?null:{parent:kt._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&Is(e,null),ir(),Ph(e),t!==null&&_i(t,e,a,!0),e.childLanes=s,null}function yo(t,e){return e=vo({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Jd(t,e,n){return ei(e,t.child,null,n),t=yo(e,e.pendingProps),t.flags|=2,Le(e),e.memoizedState=null,t}function Pv(t,e,n){var a=e.pendingProps,s=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(xt){if(a.mode==="hidden")return t=yo(e,a),e.lanes=536870912,Jl(null,t);if(sr(e),(t=Vt)?(t=sp(t,Ie),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ra!==null?{id:bn,overflow:Sn}:null,retryLane:536870912,hydrationErrors:null},n=Oh(t),n.return=e,e.child=n,se=e,Vt=null)):t=null,t===null)throw fa(e);return e.lanes=536870912,null}return yo(e,a)}var r=t.memoizedState;if(r!==null){var f=r.dehydrated;if(sr(e),s)if(e.flags&256)e.flags&=-257,e=Jd(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(u(558));else if(Ft||_i(t,e,n,!1),s=(n&t.childLanes)!==0,Ft||s){if(a=Ot,a!==null&&(f=gi(a,n),f!==0&&f!==r.retryLane))throw r.retryLane=f,ka(t,f),Oe(a,t,f),Mr;Mo(),e=Jd(t,e,n)}else t=r.treeContext,Vt=en(f.nextSibling),se=e,xt=!0,ca=null,Ie=!1,t!==null&&Vh(e,t),e=yo(e,a),e.flags|=4096;return e}return t=Ln(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function go(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(u(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function jr(t,e,n,a,s){return Wa(e),n=ur(t,e,n,a,void 0,s),a=rr(),t!==null&&!Ft?(cr(t,e,s),Kn(t,e,s)):(xt&&a&&Xu(e),e.flags|=1,ue(t,e,n,s),e.child)}function Fd(t,e,n,a,s,r){return Wa(e),e.updateQueue=null,n=$h(e,a,n,s),Wh(t),a=rr(),t!==null&&!Ft?(cr(t,e,r),Kn(t,e,r)):(xt&&a&&Xu(e),e.flags|=1,ue(t,e,n,r),e.child)}function Pd(t,e,n,a,s){if(Wa(e),e.stateNode===null){var r=Oi,f=n.contextType;typeof f=="object"&&f!==null&&(r=oe(f)),r=new n(a,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=wr,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=a,r.state=e.memoizedState,r.refs={},tr(e),f=n.contextType,r.context=typeof f=="object"&&f!==null?oe(f):Oi,r.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Er(e,n,f,a),r.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(f=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),f!==r.state&&wr.enqueueReplaceState(r,r.state,null),Xl(e,a,r,s),Gl(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){r=e.stateNode;var y=e.memoizedProps,S=ai(n,y);r.props=S;var M=r.context,_=n.contextType;f=Oi,typeof _=="object"&&_!==null&&(f=oe(_));var L=n.getDerivedStateFromProps;_=typeof L=="function"||typeof r.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,_||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(y||M!==f)&&Ud(e,r,a,f),da=!1;var N=e.memoizedState;r.state=N,Xl(e,a,r,s),Gl(),M=e.memoizedState,y||N!==M||da?(typeof L=="function"&&(Er(e,n,L,a),M=e.memoizedState),(S=da||_d(e,n,S,a,N,M,f))?(_||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=M),r.props=a,r.state=M,r.context=f,a=S):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{r=e.stateNode,er(t,e),f=e.memoizedProps,_=ai(n,f),r.props=_,L=e.pendingProps,N=r.context,M=n.contextType,S=Oi,typeof M=="object"&&M!==null&&(S=oe(M)),y=n.getDerivedStateFromProps,(M=typeof y=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==L||N!==S)&&Ud(e,r,a,S),da=!1,N=e.memoizedState,r.state=N,Xl(e,a,r,s),Gl();var O=e.memoizedState;f!==L||N!==O||da||t!==null&&t.dependencies!==null&&Ws(t.dependencies)?(typeof y=="function"&&(Er(e,n,y,a),O=e.memoizedState),(_=da||_d(e,n,_,a,N,O,S)||t!==null&&t.dependencies!==null&&Ws(t.dependencies))?(M||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,O,S),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,O,S)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=O),r.props=a,r.state=O,r.context=S,a=_):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=1024),a=!1)}return r=a,go(t,e),a=(e.flags&128)!==0,r||a?(r=e.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&a?(e.child=ei(e,t.child,null,s),e.child=ei(e,null,n,s)):ue(t,e,n,s),e.memoizedState=r.state,t=e.child):t=Kn(t,e,s),t}function Wd(t,e,n,a){return Fa(),e.flags|=256,ue(t,e,n,a),e.child}var Nr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Dr(t){return{baseLanes:t,cachePool:Yh()}}function Or(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ye),t}function $d(t,e,n){var a=e.pendingProps,s=!1,r=(e.flags&128)!==0,f;if((f=r)||(f=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),f&&(s=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(xt){if(s?ya(e):ga(),(t=Vt)?(t=sp(t,Ie),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ra!==null?{id:bn,overflow:Sn}:null,retryLane:536870912,hydrationErrors:null},n=Oh(t),n.return=e,e.child=n,se=e,Vt=null)):t=null,t===null)throw fa(e);return dc(t)?e.lanes=32:e.lanes=536870912,null}var y=a.children;return a=a.fallback,s?(ga(),s=e.mode,y=vo({mode:"hidden",children:y},s),a=Ja(a,s,n,null),y.return=e,a.return=e,y.sibling=a,e.child=y,a=e.child,a.memoizedState=Dr(n),a.childLanes=Or(t,f,n),e.memoizedState=Nr,Jl(null,a)):(ya(e),zr(e,y))}var S=t.memoizedState;if(S!==null&&(y=S.dehydrated,y!==null)){if(r)e.flags&256?(ya(e),e.flags&=-257,e=Rr(t,e,n)):e.memoizedState!==null?(ga(),e.child=t.child,e.flags|=128,e=null):(ga(),y=a.fallback,s=e.mode,a=vo({mode:"visible",children:a.children},s),y=Ja(y,s,n,null),y.flags|=2,a.return=e,y.return=e,a.sibling=y,e.child=a,ei(e,t.child,null,n),a=e.child,a.memoizedState=Dr(n),a.childLanes=Or(t,f,n),e.memoizedState=Nr,e=Jl(null,a));else if(ya(e),dc(y)){if(f=y.nextSibling&&y.nextSibling.dataset,f)var M=f.dgst;f=M,a=Error(u(419)),a.stack="",a.digest=f,Ul({value:a,source:null,stack:null}),e=Rr(t,e,n)}else if(Ft||_i(t,e,n,!1),f=(n&t.childLanes)!==0,Ft||f){if(f=Ot,f!==null&&(a=gi(f,n),a!==0&&a!==S.retryLane))throw S.retryLane=a,ka(t,a),Oe(f,t,a),Mr;hc(y)||Mo(),e=Rr(t,e,n)}else hc(y)?(e.flags|=192,e.child=t.child,e=null):(t=S.treeContext,Vt=en(y.nextSibling),se=e,xt=!0,ca=null,Ie=!1,t!==null&&Vh(e,t),e=zr(e,a.children),e.flags|=4096);return e}return s?(ga(),y=a.fallback,s=e.mode,S=t.child,M=S.sibling,a=Ln(S,{mode:"hidden",children:a.children}),a.subtreeFlags=S.subtreeFlags&65011712,M!==null?y=Ln(M,y):(y=Ja(y,s,n,null),y.flags|=2),y.return=e,a.return=e,a.sibling=y,e.child=a,Jl(null,a),a=e.child,y=t.child.memoizedState,y===null?y=Dr(n):(s=y.cachePool,s!==null?(S=kt._currentValue,s=s.parent!==S?{parent:S,pool:S}:s):s=Yh(),y={baseLanes:y.baseLanes|n,cachePool:s}),a.memoizedState=y,a.childLanes=Or(t,f,n),e.memoizedState=Nr,Jl(t.child,a)):(ya(e),n=t.child,t=n.sibling,n=Ln(n,{mode:"visible",children:a.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 zr(t,e){return e=vo({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function vo(t,e){return t=Ue(22,t,null,e),t.lanes=0,t}function Rr(t,e,n){return ei(e,t.child,null,n),t=zr(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Id(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Ju(t.return,e,n)}function Vr(t,e,n,a,s,r){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:s,treeForkCount:r}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=n,f.tailMode=s,f.treeForkCount=r)}function tm(t,e,n){var a=e.pendingProps,s=a.revealOrder,r=a.tail;a=a.children;var f=Qt.current,y=(f&2)!==0;if(y?(f=f&1|2,e.flags|=128):f&=1,Q(Qt,f),ue(t,e,a,n),a=xt?_l:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Id(t,n,e);else if(t.tag===19)Id(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&&lo(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),Vr(e,!1,s,n,r,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&lo(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}Vr(e,!0,n,null,r,a);break;case"together":Vr(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function Kn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),ba|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(_i(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(u(153));if(e.child!==null){for(t=e.child,n=Ln(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Ln(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function _r(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ws(t)))}function Wv(t,e,n){switch(e.tag){case 3:Kt(e,e.stateNode.containerInfo),ha(e,kt,t.memoizedState.cache),Fa();break;case 27:case 5:sn(e);break;case 4:Kt(e,e.stateNode.containerInfo);break;case 10:ha(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,sr(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(ya(e),e.flags|=128,null):(n&e.child.childLanes)!==0?$d(t,e,n):(ya(e),t=Kn(t,e,n),t!==null?t.sibling:null);ya(e);break;case 19:var s=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(_i(t,e,n,!1),a=(n&e.childLanes)!==0),s){if(a)return tm(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Q(Qt,Qt.current),a)break;return null;case 22:return e.lanes=0,Zd(t,e,n,e.pendingProps);case 24:ha(e,kt,t.memoizedState.cache)}return Kn(t,e,n)}function em(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ft=!0;else{if(!_r(t,n)&&(e.flags&128)===0)return Ft=!1,Wv(t,e,n);Ft=(t.flags&131072)!==0}else Ft=!1,xt&&(e.flags&1048576)!==0&&Rh(e,_l,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=Ia(e.elementType),e.type=t,typeof t=="function")Yu(t)?(a=ai(t,a),e.tag=1,e=Pd(null,e,t,a,n)):(e.tag=0,e=jr(null,e,t,a,n));else{if(t!=null){var s=t.$$typeof;if(s===J){e.tag=11,e=Xd(null,e,t,a,n);break t}else if(s===k){e.tag=14,e=Kd(null,e,t,a,n);break t}}throw e=vt(t)||t,Error(u(306,e,""))}}return e;case 0:return jr(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,s=ai(a,e.pendingProps),Pd(t,e,a,s,n);case 3:t:{if(Kt(e,e.stateNode.containerInfo),t===null)throw Error(u(387));a=e.pendingProps;var r=e.memoizedState;s=r.element,er(t,e),Xl(e,a,null,n);var f=e.memoizedState;if(a=f.cache,ha(e,kt,a),a!==r.cache&&Fu(e,[kt],n,!0),Gl(),a=f.element,r.isDehydrated)if(r={element:a,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=Wd(t,e,a,n);break t}else if(a!==s){s=Pe(Error(u(424)),e),Ul(s),e=Wd(t,e,a,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Vt=en(t.firstChild),se=e,xt=!0,ca=null,Ie=!0,n=Zh(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fa(),a===s){e=Kn(t,e,n);break t}ue(t,e,a,n)}e=e.child}return e;case 26:return go(t,e),t===null?(n=hp(e.type,null,e.pendingProps,null))?e.memoizedState=n:xt||(n=e.type,t=e.pendingProps,a=Vo(at.current).createElement(n),a[Lt]=e,a[ee]=t,re(a,n,t),Yt(a),e.stateNode=a):e.memoizedState=hp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return sn(e),t===null&&xt&&(a=e.stateNode=rp(e.type,e.pendingProps,at.current),se=e,Ie=!0,s=Vt,wa(e.type)?(mc=s,Vt=en(a.firstChild)):Vt=s),ue(t,e,e.pendingProps.children,n),go(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&xt&&((s=a=Vt)&&(a=Mx(a,e.type,e.pendingProps,Ie),a!==null?(e.stateNode=a,se=e,Vt=en(a.firstChild),Ie=!1,s=!0):s=!1),s||fa(e)),sn(e),s=e.type,r=e.pendingProps,f=t!==null?t.memoizedProps:null,a=r.children,rc(s,r)?a=null:f!==null&&rc(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=ur(t,e,Gv,null,null,n),rs._currentValue=s),go(t,e),ue(t,e,a,n),e.child;case 6:return t===null&&xt&&((t=n=Vt)&&(n=jx(n,e.pendingProps,Ie),n!==null?(e.stateNode=n,se=e,Vt=null,t=!0):t=!1),t||fa(e)),null;case 13:return $d(t,e,n);case 4:return Kt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ei(e,null,a,n):ue(t,e,a,n),e.child;case 11:return Xd(t,e,e.type,e.pendingProps,n);case 7:return ue(t,e,e.pendingProps,n),e.child;case 8:return ue(t,e,e.pendingProps.children,n),e.child;case 12:return ue(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,ha(e,e.type,a.value),ue(t,e,a.children,n),e.child;case 9:return s=e.type._context,a=e.pendingProps.children,Wa(e),s=oe(s),a=a(s),e.flags|=1,ue(t,e,a,n),e.child;case 14:return Kd(t,e,e.type,e.pendingProps,n);case 15:return Qd(t,e,e.type,e.pendingProps,n);case 19:return tm(t,e,n);case 31:return Pv(t,e,n);case 22:return Zd(t,e,n,e.pendingProps);case 24:return Wa(e),a=oe(kt),t===null?(s=$u(),s===null&&(s=Ot,r=Pu(),s.pooledCache=r,r.refCount++,r!==null&&(s.pooledCacheLanes|=n),s=r),e.memoizedState={parent:a,cache:s},tr(e),ha(e,kt,s)):((t.lanes&n)!==0&&(er(t,e),Xl(e,null,null,n),Gl()),s=t.memoizedState,r=e.memoizedState,s.parent!==a?(s={parent:a,cache:a},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),ha(e,kt,a)):(a=r.cache,ha(e,kt,a),a!==s.cache&&Fu(e,[kt],n,!0))),ue(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function Qn(t){t.flags|=4}function Ur(t,e,n,a,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(jm())t.flags|=8192;else throw ti=eo,Iu}else t.flags&=-16777217}function nm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!gp(e))if(jm())t.flags|=8192;else throw ti=eo,Iu}function xo(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Qe():536870912,t.lanes|=e,ki|=e)}function Fl(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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function _t(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function $v(t,e,n){var a=e.pendingProps;switch(Ku(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(e),null;case 1:return _t(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),qn(kt),Dt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Vi(e)?Qn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Zu())),_t(e),null;case 26:var s=e.type,r=e.memoizedState;return t===null?(Qn(e),r!==null?(_t(e),nm(e,r)):(_t(e),Ur(e,s,null,a,n))):r?r!==t.memoizedState?(Qn(e),_t(e),nm(e,r)):(_t(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&Qn(e),_t(e),Ur(e,s,t,a,n)),null;case 27:if(ie(e),n=at.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Qn(e);else{if(!a){if(e.stateNode===null)throw Error(u(166));return _t(e),null}t=P.current,Vi(e)?_h(e):(t=rp(s,a,n),e.stateNode=t,Qn(e))}return _t(e),null;case 5:if(ie(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Qn(e);else{if(!a){if(e.stateNode===null)throw Error(u(166));return _t(e),null}if(r=P.current,Vi(e))_h(e);else{var f=Vo(at.current);switch(r){case 1:r=f.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:r=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":r=f.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":r=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":r=f.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?r.multiple=!0:a.size&&(r.size=a.size);break;default:r=typeof a.is=="string"?f.createElement(s,{is:a.is}):f.createElement(s)}}r[Lt]=e,r[ee]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)r.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=r;t:switch(re(r,s,a),s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&Qn(e)}}return _t(e),Ur(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&Qn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(u(166));if(t=at.current,Vi(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,s=se,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}t[Lt]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||$m(t.nodeValue,n)),t||fa(e,!0)}else t=Vo(t).createTextNode(a),t[Lt]=e,e.stateNode=t}return _t(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=Vi(e),n!==null){if(t===null){if(!a)throw Error(u(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(557));t[Lt]=e}else Fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),t=!1}else n=Zu(),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(u(558))}return _t(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=Vi(e),a!==null&&a.dehydrated!==null){if(t===null){if(!s)throw Error(u(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[Lt]=e}else Fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),s=!1}else s=Zu(),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=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==s&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),xo(e,e.updateQueue),_t(e),null);case 4:return Dt(),t===null&&ic(e.stateNode.containerInfo),_t(e),null;case 10:return qn(e.type),_t(e),null;case 19:if(U(Qt),a=e.memoizedState,a===null)return _t(e),null;if(s=(e.flags&128)!==0,r=a.rendering,r===null)if(s)Fl(a,!1);else{if(Gt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=lo(t),r!==null){for(e.flags|=128,Fl(a,!1),t=r.updateQueue,e.updateQueue=t,xo(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Dh(n,t),n=n.sibling;return Q(Qt,Qt.current&1|2),xt&&Hn(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&fe()>Eo&&(e.flags|=128,s=!0,Fl(a,!1),e.lanes=4194304)}else{if(!s)if(t=lo(r),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,xo(e,t),Fl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!xt)return _t(e),null}else 2*fe()-a.renderingStartTime>Eo&&n!==536870912&&(e.flags|=128,s=!0,Fl(a,!1),e.lanes=4194304);a.isBackwards?(r.sibling=e.child,e.child=r):(t=a.last,t!==null?t.sibling=r:e.child=r,a.last=r)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=fe(),t.sibling=null,n=Qt.current,Q(Qt,s?n&1|2:n&1),xt&&Hn(e,a.treeForkCount),t):(_t(e),null);case 22:case 23:return Le(e),lr(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(_t(e),e.subtreeFlags&6&&(e.flags|=8192)):_t(e),n=e.updateQueue,n!==null&&xo(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&U($a),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),qn(kt),_t(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function Iv(t,e){switch(Ku(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return qn(kt),Dt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ie(e),null;case 31:if(e.memoizedState!==null){if(Le(e),e.alternate===null)throw Error(u(340));Fa()}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(u(340));Fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return U(Qt),null;case 4:return Dt(),null;case 10:return qn(e.type),null;case 22:case 23:return Le(e),lr(),t!==null&&U($a),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return qn(kt),null;case 25:return null;default:return null}}function am(t,e){switch(Ku(e),e.tag){case 3:qn(kt),Dt();break;case 26:case 27:case 5:ie(e);break;case 4:Dt();break;case 31:e.memoizedState!==null&&Le(e);break;case 13:Le(e);break;case 19:U(Qt);break;case 10:qn(e.type);break;case 22:case 23:Le(e),lr(),t!==null&&U($a);break;case 24:qn(kt)}}function Pl(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;do{if((n.tag&t)===t){a=void 0;var r=n.create,f=n.inst;a=r(),f.destroy=a}n=n.next}while(n!==s)}}catch(y){Ct(e,e.return,y)}}function va(t,e,n){try{var a=e.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var r=s.next;a=r;do{if((a.tag&t)===t){var f=a.inst,y=f.destroy;if(y!==void 0){f.destroy=void 0,s=e;var S=n,M=y;try{M()}catch(_){Ct(s,S,_)}}}a=a.next}while(a!==r)}}catch(_){Ct(e,e.return,_)}}function im(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Jh(e,n)}catch(a){Ct(t,t.return,a)}}}function lm(t,e,n){n.props=ai(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Ct(t,e,a)}}function Wl(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(s){Ct(t,e,s)}}function Tn(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}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 sm(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(s){Ct(t,t.return,s)}}function Br(t,e,n){try{var a=t.stateNode;Sx(a,t.type,n,e),a[ee]=e}catch(s){Ct(t,t.return,s)}}function om(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&wa(t.type)||t.tag===4}function Lr(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||om(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&&wa(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 Hr(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=we));else if(a!==4&&(a===27&&wa(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Hr(t,e,n),t=t.sibling;t!==null;)Hr(t,e,n),t=t.sibling}function bo(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&wa(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(bo(t,e,n),t=t.sibling;t!==null;)bo(t,e,n),t=t.sibling}function um(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);re(e,a,n),e[Lt]=t,e[ee]=n}catch(r){Ct(t,t.return,r)}}var Zn=!1,Pt=!1,Yr=!1,rm=typeof WeakSet=="function"?WeakSet:Set,ne=null;function tx(t,e){if(t=t.containerInfo,oc=qo,t=Sh(t),Ru(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var s=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var f=0,y=-1,S=-1,M=0,_=0,L=t,N=null;e:for(;;){for(var O;L!==n||s!==0&&L.nodeType!==3||(y=f+s),L!==r||a!==0&&L.nodeType!==3||(S=f+a),L.nodeType===3&&(f+=L.nodeValue.length),(O=L.firstChild)!==null;)N=L,L=O;for(;;){if(L===t)break e;if(N===n&&++M===s&&(y=f),N===r&&++_===a&&(S=f),(O=L.nextSibling)!==null)break;L=N,N=L.parentNode}L=O}n=y===-1||S===-1?null:{start:y,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(uc={focusedElem:t,selectionRange:n},qo=!1,ne=e;ne!==null;)if(e=ne,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ne=t;else for(;ne!==null;){switch(e=ne,r=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&&r!==null){t=void 0,n=e,s=r.memoizedProps,r=r.memoizedState,a=n.stateNode;try{var W=ai(n.type,s);t=a.getSnapshotBeforeUpdate(W,r),a.__reactInternalSnapshotBeforeUpdate=t}catch(it){Ct(n,n.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)fc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":fc(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(u(163))}if(t=e.sibling,t!==null){t.return=e.return,ne=t;break}ne=e.return}}function cm(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Jn(t,n),a&4&&Pl(5,n);break;case 1:if(Jn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Ct(n,n.return,f)}else{var s=ai(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Ct(n,n.return,f)}}a&64&&im(n),a&512&&Wl(n,n.return);break;case 3:if(Jn(t,n),a&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{Jh(t,e)}catch(f){Ct(n,n.return,f)}}break;case 27:e===null&&a&4&&um(n);case 26:case 5:Jn(t,n),e===null&&a&4&&sm(n),a&512&&Wl(n,n.return);break;case 12:Jn(t,n);break;case 31:Jn(t,n),a&4&&dm(t,n);break;case 13:Jn(t,n),a&4&&mm(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=rx.bind(null,n),Nx(t,n))));break;case 22:if(a=n.memoizedState!==null||Zn,!a){e=e!==null&&e.memoizedState!==null||Pt,s=Zn;var r=Pt;Zn=a,(Pt=e)&&!r?Fn(t,n,(n.subtreeFlags&8772)!==0):Jn(t,n),Zn=s,Pt=r}break;case 30:break;default:Jn(t,n)}}function fm(t){var e=t.alternate;e!==null&&(t.alternate=null,fm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&qa(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 Ut=null,Me=!1;function kn(t,e,n){for(n=n.child;n!==null;)hm(t,e,n),n=n.sibling}function hm(t,e,n){if(pe&&typeof pe.onCommitFiberUnmount=="function")try{pe.onCommitFiberUnmount(le,n)}catch{}switch(n.tag){case 26:Pt||Tn(n,e),kn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Pt||Tn(n,e);var a=Ut,s=Me;wa(n.type)&&(Ut=n.stateNode,Me=!1),kn(t,e,n),ss(n.stateNode),Ut=a,Me=s;break;case 5:Pt||Tn(n,e);case 6:if(a=Ut,s=Me,Ut=null,kn(t,e,n),Ut=a,Me=s,Ut!==null)if(Me)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(n.stateNode)}catch(r){Ct(n,e,r)}else try{Ut.removeChild(n.stateNode)}catch(r){Ct(n,e,r)}break;case 18:Ut!==null&&(Me?(t=Ut,ip(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),el(t)):ip(Ut,n.stateNode));break;case 4:a=Ut,s=Me,Ut=n.stateNode.containerInfo,Me=!0,kn(t,e,n),Ut=a,Me=s;break;case 0:case 11:case 14:case 15:va(2,n,e),Pt||va(4,n,e),kn(t,e,n);break;case 1:Pt||(Tn(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&lm(n,e,a)),kn(t,e,n);break;case 21:kn(t,e,n);break;case 22:Pt=(a=Pt)||n.memoizedState!==null,kn(t,e,n),Pt=a;break;default:kn(t,e,n)}}function dm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{el(t)}catch(n){Ct(e,e.return,n)}}}function mm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{el(t)}catch(n){Ct(e,e.return,n)}}function ex(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new rm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new rm),e;default:throw Error(u(435,t.tag))}}function So(t,e){var n=ex(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var s=cx.bind(null,t,a);a.then(s,s)}})}function je(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var s=n[a],r=t,f=e,y=f;t:for(;y!==null;){switch(y.tag){case 27:if(wa(y.type)){Ut=y.stateNode,Me=!1;break t}break;case 5:Ut=y.stateNode,Me=!1;break t;case 3:case 4:Ut=y.stateNode.containerInfo,Me=!0;break t}y=y.return}if(Ut===null)throw Error(u(160));hm(r,f,s),Ut=null,Me=!1,r=s.alternate,r!==null&&(r.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)pm(e,t),e=e.sibling}var fn=null;function pm(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:je(e,t),Ne(t),a&4&&(va(3,t,t.return),Pl(3,t),va(5,t,t.return));break;case 1:je(e,t),Ne(t),a&512&&(Pt||n===null||Tn(n,n.return)),a&64&&Zn&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var s=fn;if(je(e,t),Ne(t),a&512&&(Pt||n===null||Tn(n,n.return)),a&4){var r=n!==null?n.memoizedState:null;if(a=t.memoizedState,n===null)if(a===null)if(t.stateNode===null){t:{a=t.type,n=t.memoizedProps,s=s.ownerDocument||s;e:switch(a){case"title":r=s.getElementsByTagName("title")[0],(!r||r[zn]||r[Lt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=s.createElement(a),s.head.insertBefore(r,s.querySelector("head > title"))),re(r,a,n),r[Lt]=t,Yt(r),a=r;break t;case"link":var f=pp("link","href",s).get(a+(n.href||""));if(f){for(var y=0;y<f.length;y++)if(r=f[y],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(y,1);break e}}r=s.createElement(a),re(r,a,n),s.head.appendChild(r);break;case"meta":if(f=pp("meta","content",s).get(a+(n.content||""))){for(y=0;y<f.length;y++)if(r=f[y],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(y,1);break e}}r=s.createElement(a),re(r,a,n),s.head.appendChild(r);break;default:throw Error(u(468,a))}r[Lt]=t,Yt(r),a=r}t.stateNode=a}else yp(s,t.type,t.stateNode);else t.stateNode=mp(s,a,t.memoizedProps);else r!==a?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,a===null?yp(s,t.type,t.stateNode):mp(s,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Br(t,t.memoizedProps,n.memoizedProps)}break;case 27:je(e,t),Ne(t),a&512&&(Pt||n===null||Tn(n,n.return)),n!==null&&a&4&&Br(t,t.memoizedProps,n.memoizedProps);break;case 5:if(je(e,t),Ne(t),a&512&&(Pt||n===null||Tn(n,n.return)),t.flags&32){s=t.stateNode;try{xn(s,"")}catch(W){Ct(t,t.return,W)}}a&4&&t.stateNode!=null&&(s=t.memoizedProps,Br(t,s,n!==null?n.memoizedProps:s)),a&1024&&(Yr=!0);break;case 6:if(je(e,t),Ne(t),a&4){if(t.stateNode===null)throw Error(u(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(W){Ct(t,t.return,W)}}break;case 3:if(Bo=null,s=fn,fn=_o(e.containerInfo),je(e,t),fn=s,Ne(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{el(e.containerInfo)}catch(W){Ct(t,t.return,W)}Yr&&(Yr=!1,ym(t));break;case 4:a=fn,fn=_o(t.stateNode.containerInfo),je(e,t),Ne(t),fn=a;break;case 12:je(e,t),Ne(t);break;case 31:je(e,t),Ne(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,So(t,a)));break;case 13:je(e,t),Ne(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ao=fe()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,So(t,a)));break;case 22:s=t.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,M=Zn,_=Pt;if(Zn=M||s,Pt=_||S,je(e,t),Pt=_,Zn=M,Ne(t),a&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||S||Zn||Pt||ii(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){S=n=e;try{if(r=S.stateNode,s)f=r.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{y=S.stateNode;var L=S.memoizedProps.style,N=L!=null&&L.hasOwnProperty("display")?L.display:null;y.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(W){Ct(S,S.return,W)}}}else if(e.tag===6){if(n===null){S=e;try{S.stateNode.nodeValue=s?"":S.memoizedProps}catch(W){Ct(S,S.return,W)}}}else if(e.tag===18){if(n===null){S=e;try{var O=S.stateNode;s?lp(O,!0):lp(S.stateNode,!1)}catch(W){Ct(S,S.return,W)}}}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}a&4&&(a=t.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,So(t,n))));break;case 19:je(e,t),Ne(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,So(t,a)));break;case 30:break;case 21:break;default:je(e,t),Ne(t)}}function Ne(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(om(a)){n=a;break}a=a.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var s=n.stateNode,r=Lr(t);bo(t,r,s);break;case 5:var f=n.stateNode;n.flags&32&&(xn(f,""),n.flags&=-33);var y=Lr(t);bo(t,y,f);break;case 3:case 4:var S=n.stateNode.containerInfo,M=Lr(t);Hr(t,M,S);break;default:throw Error(u(161))}}catch(_){Ct(t,t.return,_)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function ym(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;ym(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Jn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)cm(t,e.alternate,e),e=e.sibling}function ii(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:va(4,e,e.return),ii(e);break;case 1:Tn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&lm(e,e.return,n),ii(e);break;case 27:ss(e.stateNode);case 26:case 5:Tn(e,e.return),ii(e);break;case 22:e.memoizedState===null&&ii(e);break;case 30:ii(e);break;default:ii(e)}t=t.sibling}}function Fn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,s=t,r=e,f=r.flags;switch(r.tag){case 0:case 11:case 15:Fn(s,r,n),Pl(4,r);break;case 1:if(Fn(s,r,n),a=r,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(M){Ct(a,a.return,M)}if(a=r,s=a.updateQueue,s!==null){var y=a.stateNode;try{var S=s.shared.hiddenCallbacks;if(S!==null)for(s.shared.hiddenCallbacks=null,s=0;s<S.length;s++)kh(S[s],y)}catch(M){Ct(a,a.return,M)}}n&&f&64&&im(r),Wl(r,r.return);break;case 27:um(r);case 26:case 5:Fn(s,r,n),n&&a===null&&f&4&&sm(r),Wl(r,r.return);break;case 12:Fn(s,r,n);break;case 31:Fn(s,r,n),n&&f&4&&dm(s,r);break;case 13:Fn(s,r,n),n&&f&4&&mm(s,r);break;case 22:r.memoizedState===null&&Fn(s,r,n),Wl(r,r.return);break;case 30:break;default:Fn(s,r,n)}e=e.sibling}}function qr(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&&Bl(n))}function Gr(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Bl(t))}function hn(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)gm(t,e,n,a),e=e.sibling}function gm(t,e,n,a){var s=e.flags;switch(e.tag){case 0:case 11:case 15:hn(t,e,n,a),s&2048&&Pl(9,e);break;case 1:hn(t,e,n,a);break;case 3:hn(t,e,n,a),s&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Bl(t)));break;case 12:if(s&2048){hn(t,e,n,a),t=e.stateNode;try{var r=e.memoizedProps,f=r.id,y=r.onPostCommit;typeof y=="function"&&y(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(S){Ct(e,e.return,S)}}else hn(t,e,n,a);break;case 31:hn(t,e,n,a);break;case 13:hn(t,e,n,a);break;case 23:break;case 22:r=e.stateNode,f=e.alternate,e.memoizedState!==null?r._visibility&2?hn(t,e,n,a):$l(t,e):r._visibility&2?hn(t,e,n,a):(r._visibility|=2,Ki(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),s&2048&&qr(f,e);break;case 24:hn(t,e,n,a),s&2048&&Gr(e.alternate,e);break;default:hn(t,e,n,a)}}function Ki(t,e,n,a,s){for(s=s&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,f=e,y=n,S=a,M=f.flags;switch(f.tag){case 0:case 11:case 15:Ki(r,f,y,S,s),Pl(8,f);break;case 23:break;case 22:var _=f.stateNode;f.memoizedState!==null?_._visibility&2?Ki(r,f,y,S,s):$l(r,f):(_._visibility|=2,Ki(r,f,y,S,s)),s&&M&2048&&qr(f.alternate,f);break;case 24:Ki(r,f,y,S,s),s&&M&2048&&Gr(f.alternate,f);break;default:Ki(r,f,y,S,s)}e=e.sibling}}function $l(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,s=a.flags;switch(a.tag){case 22:$l(n,a),s&2048&&qr(a.alternate,a);break;case 24:$l(n,a),s&2048&&Gr(a.alternate,a);break;default:$l(n,a)}e=e.sibling}}var Il=8192;function Qi(t,e,n){if(t.subtreeFlags&Il)for(t=t.child;t!==null;)vm(t,e,n),t=t.sibling}function vm(t,e,n){switch(t.tag){case 26:Qi(t,e,n),t.flags&Il&&t.memoizedState!==null&&qx(n,fn,t.memoizedState,t.memoizedProps);break;case 5:Qi(t,e,n);break;case 3:case 4:var a=fn;fn=_o(t.stateNode.containerInfo),Qi(t,e,n),fn=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Il,Il=16777216,Qi(t,e,n),Il=a):Qi(t,e,n));break;default:Qi(t,e,n)}}function xm(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 ts(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];ne=a,Sm(a,t)}xm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bm(t),t=t.sibling}function bm(t){switch(t.tag){case 0:case 11:case 15:ts(t),t.flags&2048&&va(9,t,t.return);break;case 3:ts(t);break;case 12:ts(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,To(t)):ts(t);break;default:ts(t)}}function To(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];ne=a,Sm(a,t)}xm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:va(8,e,e.return),To(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,To(e));break;default:To(e)}t=t.sibling}}function Sm(t,e){for(;ne!==null;){var n=ne;switch(n.tag){case 0:case 11:case 15:va(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Bl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ne=a;else t:for(n=t;ne!==null;){a=ne;var s=a.sibling,r=a.return;if(fm(a),a===n){ne=null;break t}if(s!==null){s.return=r,ne=s;break t}ne=r}}}var nx={getCacheForType:function(t){var e=oe(kt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return oe(kt).controller.signal}},ax=typeof WeakMap=="function"?WeakMap:Map,At=0,Ot=null,mt=null,yt=0,wt=0,He=null,xa=!1,Zi=!1,Xr=!1,Pn=0,Gt=0,ba=0,li=0,Kr=0,Ye=0,ki=0,es=null,De=null,Qr=!1,Ao=0,Tm=0,Eo=1/0,wo=null,Sa=null,It=0,Ta=null,Ji=null,Wn=0,Zr=0,kr=null,Am=null,ns=0,Jr=null;function qe(){return(At&2)!==0&&yt!==0?yt&-yt:R.T!==null?tc():Ha()}function Em(){if(Ye===0)if((yt&536870912)===0||xt){var t=Nn;Nn<<=1,(Nn&3932160)===0&&(Nn=262144),Ye=t}else Ye=536870912;return t=Be.current,t!==null&&(t.flags|=32),Ye}function Oe(t,e,n){(t===Ot&&(wt===2||wt===9)||t.cancelPendingCommit!==null)&&(Fi(t,0),Aa(t,yt,Ye,!1)),Te(t,n),((At&2)===0||t!==Ot)&&(t===Ot&&((At&2)===0&&(li|=n),Gt===4&&Aa(t,yt,Ye,!1)),An(t))}function wm(t,e,n){if((At&6)!==0)throw Error(u(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Se(t,e),s=a?sx(t,e):Pr(t,e,!0),r=a;do{if(s===0){Zi&&!a&&Aa(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!ix(n)){s=Pr(t,e,!1),r=!1;continue}if(s===2){if(r=e,t.errorRecoveryDisabledLanes&r)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var y=t;s=es;var S=y.current.memoizedState.isDehydrated;if(S&&(Fi(y,f).flags|=256),f=Pr(y,f,!1),f!==2){if(Xr&&!S){y.errorRecoveryDisabledLanes|=r,li|=r,s=4;break t}r=De,De=s,r!==null&&(De===null?De=r:De.push.apply(De,r))}s=f}if(r=!1,s!==2)continue}}if(s===1){Fi(t,0),Aa(t,e,0,!0);break}t:{switch(a=t,r=s,r){case 0:case 1:throw Error(u(345));case 4:if((e&4194048)!==e)break;case 6:Aa(a,e,Ye,!xa);break t;case 2:De=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(s=Ao+300-fe(),10<s)){if(Aa(a,e,Ye,!xa),Ba(a,0,!0)!==0)break t;Wn=e,a.timeoutHandle=np(Cm.bind(null,a,n,De,wo,Qr,e,Ye,li,ki,xa,r,"Throttled",-0,0),s);break t}Cm(a,n,De,wo,Qr,e,Ye,li,ki,xa,r,null,-0,0)}}break}while(!0);An(t)}function Cm(t,e,n,a,s,r,f,y,S,M,_,L,N,O){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:we},vm(e,r,L);var W=(r&62914560)===r?Ao-fe():(r&4194048)===r?Tm-fe():0;if(W=Gx(L,W),W!==null){Wn=r,t.cancelPendingCommit=W(Vm.bind(null,t,e,r,n,a,s,f,y,S,_,L,null,N,O)),Aa(t,r,f,!M);return}}Vm(t,e,r,n,a,s,f,y,S)}function ix(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 a=0;a<n.length;a++){var s=n[a],r=s.getSnapshot;s=s.value;try{if(!_e(r(),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 Aa(t,e,n,a){e&=~Kr,e&=~li,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var s=e;0<s;){var r=31-ye(s),f=1<<r;a[r]=-1,s&=~f}n!==0&&vl(t,n,e)}function Co(){return(At&6)===0?(as(0),!1):!0}function Fr(){if(mt!==null){if(wt===0)var t=mt.return;else t=mt,Yn=Pa=null,fr(t),Hi=null,Hl=0,t=mt;for(;t!==null;)am(t.alternate,t),t=t.return;mt=null}}function Fi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Ex(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Wn=0,Fr(),Ot=t,mt=n=Ln(t.current,null),yt=e,wt=0,He=null,xa=!1,Zi=Se(t,e),Xr=!1,ki=Ye=Kr=li=ba=Gt=0,De=es=null,Qr=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var s=31-ye(a),r=1<<s;e|=t[s],a&=~r}return Pn=e,Zs(),n}function Mm(t,e){ct=null,R.H=kl,e===Li||e===to?(e=Xh(),wt=3):e===Iu?(e=Xh(),wt=4):wt=e===Mr?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,He=e,mt===null&&(Gt=1,po(t,Pe(e,t.current)))}function jm(){var t=Be.current;return t===null?!0:(yt&4194048)===yt?tn===null:(yt&62914560)===yt||(yt&536870912)!==0?t===tn:!1}function Nm(){var t=R.H;return R.H=kl,t===null?kl:t}function Dm(){var t=R.A;return R.A=nx,t}function Mo(){Gt=4,xa||(yt&4194048)!==yt&&Be.current!==null||(Zi=!0),(ba&134217727)===0&&(li&134217727)===0||Ot===null||Aa(Ot,yt,Ye,!1)}function Pr(t,e,n){var a=At;At|=2;var s=Nm(),r=Dm();(Ot!==t||yt!==e)&&(wo=null,Fi(t,e)),e=!1;var f=Gt;t:do try{if(wt!==0&&mt!==null){var y=mt,S=He;switch(wt){case 8:Fr(),f=6;break t;case 3:case 2:case 9:case 6:Be.current===null&&(e=!0);var M=wt;if(wt=0,He=null,Pi(t,y,S,M),n&&Zi){f=0;break t}break;default:M=wt,wt=0,He=null,Pi(t,y,S,M)}}lx(),f=Gt;break}catch(_){Mm(t,_)}while(!0);return e&&t.shellSuspendCounter++,Yn=Pa=null,At=a,R.H=s,R.A=r,mt===null&&(Ot=null,yt=0,Zs()),f}function lx(){for(;mt!==null;)Om(mt)}function sx(t,e){var n=At;At|=2;var a=Nm(),s=Dm();Ot!==t||yt!==e?(wo=null,Eo=fe()+500,Fi(t,e)):Zi=Se(t,e);t:do try{if(wt!==0&&mt!==null){e=mt;var r=He;e:switch(wt){case 1:wt=0,He=null,Pi(t,e,r,1);break;case 2:case 9:if(qh(r)){wt=0,He=null,zm(e);break}e=function(){wt!==2&&wt!==9||Ot!==t||(wt=7),An(t)},r.then(e,e);break t;case 3:wt=7;break t;case 4:wt=5;break t;case 7:qh(r)?(wt=0,He=null,zm(e)):(wt=0,He=null,Pi(t,e,r,7));break;case 5:var f=null;switch(mt.tag){case 26:f=mt.memoizedState;case 5:case 27:var y=mt;if(f?gp(f):y.stateNode.complete){wt=0,He=null;var S=y.sibling;if(S!==null)mt=S;else{var M=y.return;M!==null?(mt=M,jo(M)):mt=null}break e}}wt=0,He=null,Pi(t,e,r,5);break;case 6:wt=0,He=null,Pi(t,e,r,6);break;case 8:Fr(),Gt=6;break t;default:throw Error(u(462))}}ox();break}catch(_){Mm(t,_)}while(!0);return Yn=Pa=null,R.H=a,R.A=s,At=n,mt!==null?0:(Ot=null,yt=0,Zs(),Gt)}function ox(){for(;mt!==null&&!yl();)Om(mt)}function Om(t){var e=em(t.alternate,t,Pn);t.memoizedProps=t.pendingProps,e===null?jo(t):mt=e}function zm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Fd(n,e,e.pendingProps,e.type,void 0,yt);break;case 11:e=Fd(n,e,e.pendingProps,e.type.render,e.ref,yt);break;case 5:fr(e);default:am(n,e),e=mt=Dh(e,Pn),e=em(n,e,Pn)}t.memoizedProps=t.pendingProps,e===null?jo(t):mt=e}function Pi(t,e,n,a){Yn=Pa=null,fr(e),Hi=null,Hl=0;var s=e.return;try{if(Fv(t,s,e,n,yt)){Gt=1,po(t,Pe(n,t.current)),mt=null;return}}catch(r){if(s!==null)throw mt=s,r;Gt=1,po(t,Pe(n,t.current)),mt=null;return}e.flags&32768?(xt||a===1?t=!0:Zi||(yt&536870912)!==0?t=!1:(xa=t=!0,(a===2||a===9||a===3||a===6)&&(a=Be.current,a!==null&&a.tag===13&&(a.flags|=16384))),Rm(e,t)):jo(e)}function jo(t){var e=t;do{if((e.flags&32768)!==0){Rm(e,xa);return}t=e.return;var n=$v(e.alternate,e,Pn);if(n!==null){mt=n;return}if(e=e.sibling,e!==null){mt=e;return}mt=e=t}while(e!==null);Gt===0&&(Gt=5)}function Rm(t,e){do{var n=Iv(t.alternate,t);if(n!==null){n.flags&=32767,mt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){mt=t;return}mt=t=n}while(t!==null);Gt=6,mt=null}function Vm(t,e,n,a,s,r,f,y,S){t.cancelPendingCommit=null;do No();while(It!==0);if((At&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(r=e.lanes|e.childLanes,r|=Lu,Dn(t,n,r,f,y,S),t===Ot&&(mt=Ot=null,yt=0),Ji=e,Ta=t,Wn=n,Zr=r,kr=s,Am=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,fx(mi,function(){return Hm(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=R.T,R.T=null,s=H.p,H.p=2,f=At,At|=4;try{tx(t,e,n)}finally{At=f,H.p=s,R.T=a}}It=1,_m(),Um(),Bm()}}function _m(){if(It===1){It=0;var t=Ta,e=Ji,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=R.T,R.T=null;var a=H.p;H.p=2;var s=At;At|=4;try{pm(e,t);var r=uc,f=Sh(t.containerInfo),y=r.focusedElem,S=r.selectionRange;if(f!==y&&y&&y.ownerDocument&&bh(y.ownerDocument.documentElement,y)){if(S!==null&&Ru(y)){var M=S.start,_=S.end;if(_===void 0&&(_=M),"selectionStart"in y)y.selectionStart=M,y.selectionEnd=Math.min(_,y.value.length);else{var L=y.ownerDocument||document,N=L&&L.defaultView||window;if(N.getSelection){var O=N.getSelection(),W=y.textContent.length,it=Math.min(S.start,W),Nt=S.end===void 0?it:Math.min(S.end,W);!O.extend&&it>Nt&&(f=Nt,Nt=it,it=f);var w=xh(y,it),A=xh(y,Nt);if(w&&A&&(O.rangeCount!==1||O.anchorNode!==w.node||O.anchorOffset!==w.offset||O.focusNode!==A.node||O.focusOffset!==A.offset)){var C=L.createRange();C.setStart(w.node,w.offset),O.removeAllRanges(),it>Nt?(O.addRange(C),O.extend(A.node,A.offset)):(C.setEnd(A.node,A.offset),O.addRange(C))}}}}for(L=[],O=y;O=O.parentNode;)O.nodeType===1&&L.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<L.length;y++){var B=L[y];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}qo=!!oc,uc=oc=null}finally{At=s,H.p=a,R.T=n}}t.current=e,It=2}}function Um(){if(It===2){It=0;var t=Ta,e=Ji,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=R.T,R.T=null;var a=H.p;H.p=2;var s=At;At|=4;try{cm(t,e.alternate,e)}finally{At=s,H.p=a,R.T=n}}It=3}}function Bm(){if(It===4||It===3){It=0,Os();var t=Ta,e=Ji,n=Wn,a=Am;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?It=5:(It=0,Ji=Ta=null,Lm(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Sa=null),xl(n),e=e.stateNode,pe&&typeof pe.onCommitFiberRoot=="function")try{pe.onCommitFiberRoot(le,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=R.T,s=H.p,H.p=2,R.T=null;try{for(var r=t.onRecoverableError,f=0;f<a.length;f++){var y=a[f];r(y.value,{componentStack:y.stack})}}finally{R.T=e,H.p=s}}(Wn&3)!==0&&No(),An(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===Jr?ns++:(ns=0,Jr=t):ns=0,as(0)}}function Lm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Bl(e)))}function No(){return _m(),Um(),Bm(),Hm()}function Hm(){if(It!==5)return!1;var t=Ta,e=Zr;Zr=0;var n=xl(Wn),a=R.T,s=H.p;try{H.p=32>n?32:n,R.T=null,n=kr,kr=null;var r=Ta,f=Wn;if(It=0,Ji=Ta=null,Wn=0,(At&6)!==0)throw Error(u(331));var y=At;if(At|=4,bm(r.current),gm(r,r.current,f,n),At=y,as(0,!1),pe&&typeof pe.onPostCommitFiberRoot=="function")try{pe.onPostCommitFiberRoot(le,r)}catch{}return!0}finally{H.p=s,R.T=a,Lm(t,e)}}function Ym(t,e,n){e=Pe(n,e),e=Cr(t.stateNode,e,2),t=pa(t,e,2),t!==null&&(Te(t,2),An(t))}function Ct(t,e,n){if(t.tag===3)Ym(t,t,n);else for(;e!==null;){if(e.tag===3){Ym(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Sa===null||!Sa.has(a))){t=Pe(n,t),n=qd(2),a=pa(e,n,2),a!==null&&(Gd(n,a,e,t),Te(a,2),An(a));break}}e=e.return}}function Wr(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new ax;var s=new Set;a.set(e,s)}else s=a.get(e),s===void 0&&(s=new Set,a.set(e,s));s.has(n)||(Xr=!0,s.add(n),t=ux.bind(null,t,e,n),e.then(t,t))}function ux(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ot===t&&(yt&n)===n&&(Gt===4||Gt===3&&(yt&62914560)===yt&&300>fe()-Ao?(At&2)===0&&Fi(t,0):Kr|=n,ki===yt&&(ki=0)),An(t)}function qm(t,e){e===0&&(e=Qe()),t=ka(t,e),t!==null&&(Te(t,e),An(t))}function rx(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),qm(t,n)}function cx(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(e),qm(t,n)}function fx(t,e){return di(t,e)}var Do=null,Wi=null,$r=!1,Oo=!1,Ir=!1,Ea=0;function An(t){t!==Wi&&t.next===null&&(Wi===null?Do=Wi=t:Wi=Wi.next=t),Oo=!0,$r||($r=!0,dx())}function as(t,e){if(!Ir&&Oo){Ir=!0;do for(var n=!1,a=Do;a!==null;){if(t!==0){var s=a.pendingLanes;if(s===0)var r=0;else{var f=a.suspendedLanes,y=a.pingedLanes;r=(1<<31-ye(42|t)+1)-1,r&=s&~(f&~y),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Qm(a,r))}else r=yt,r=Ba(a,a===Ot?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||Se(a,r)||(n=!0,Qm(a,r));a=a.next}while(n);Ir=!1}}function hx(){Gm()}function Gm(){Oo=$r=!1;var t=0;Ea!==0&&Ax()&&(t=Ea);for(var e=fe(),n=null,a=Do;a!==null;){var s=a.next,r=Xm(a,e);r===0?(a.next=null,n===null?Do=s:n.next=s,s===null&&(Wi=n)):(n=a,(t!==0||(r&3)!==0)&&(Oo=!0)),a=s}It!==0&&It!==5||as(t),Ea!==0&&(Ea=0)}function Xm(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,s=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var f=31-ye(r),y=1<<f,S=s[f];S===-1?((y&n)===0||(y&a)!==0)&&(s[f]=Us(y,e)):S<=e&&(t.expiredLanes|=y),r&=~y}if(e=Ot,n=yt,n=Ba(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(wt===2||wt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Ke(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Se(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&Ke(a),xl(n)){case 2:case 8:n=me;break;case 32:n=mi;break;case 268435456:n=Rs;break;default:n=mi}return a=Km.bind(null,t),n=di(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&Ke(a),t.callbackPriority=2,t.callbackNode=null,2}function Km(t,e){if(It!==0&&It!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(No()&&t.callbackNode!==n)return null;var a=yt;return a=Ba(t,t===Ot?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(wm(t,a,e),Xm(t,fe()),t.callbackNode!=null&&t.callbackNode===n?Km.bind(null,t):null)}function Qm(t,e){if(No())return null;wm(t,e,!0)}function dx(){wx(function(){(At&6)!==0?di(zs,hx):Gm()})}function tc(){if(Ea===0){var t=Ui;t===0&&(t=jn,jn<<=1,(jn&261888)===0&&(jn=256)),Ea=t}return Ea}function Zm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ve(""+t)}function km(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 mx(t,e,n,a,s){if(e==="submit"&&n&&n.stateNode===s){var r=Zm((s[ee]||null).action),f=a.submitter;f&&(e=(e=f[ee]||null)?Zm(e.formAction):f.getAttribute("formAction"),e!==null&&(r=e,f=null));var y=new Gs("action","action",null,a,s);t.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ea!==0){var S=f?km(s,f):new FormData(s);br(n,{pending:!0,data:S,method:s.method,action:r},null,S)}}else typeof r=="function"&&(y.preventDefault(),S=f?km(s,f):new FormData(s),br(n,{pending:!0,data:S,method:s.method,action:r},r,S))},currentTarget:s}]})}}for(var ec=0;ec<Bu.length;ec++){var nc=Bu[ec],px=nc.toLowerCase(),yx=nc[0].toUpperCase()+nc.slice(1);cn(px,"on"+yx)}cn(Eh,"onAnimationEnd"),cn(wh,"onAnimationIteration"),cn(Ch,"onAnimationStart"),cn("dblclick","onDoubleClick"),cn("focusin","onFocus"),cn("focusout","onBlur"),cn(zv,"onTransitionRun"),cn(Rv,"onTransitionStart"),cn(Vv,"onTransitionCancel"),cn(Mh,"onTransitionEnd"),ia("onMouseEnter",["mouseout","mouseover"]),ia("onMouseLeave",["mouseout","mouseover"]),ia("onPointerEnter",["pointerout","pointerover"]),ia("onPointerLeave",["pointerout","pointerover"]),_n("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),_n("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),_n("onBeforeInput",["compositionend","keypress","textInput","paste"]),_n("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),_n("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),_n("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var is="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(" "),gx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(is));function Jm(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],s=a.event;a=a.listeners;t:{var r=void 0;if(e)for(var f=a.length-1;0<=f;f--){var y=a[f],S=y.instance,M=y.currentTarget;if(y=y.listener,S!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=M;try{r(s)}catch(_){Qs(_)}s.currentTarget=null,r=S}else for(f=0;f<a.length;f++){if(y=a[f],S=y.instance,M=y.currentTarget,y=y.listener,S!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=M;try{r(s)}catch(_){Qs(_)}s.currentTarget=null,r=S}}}}function pt(t,e){var n=e[vi];n===void 0&&(n=e[vi]=new Set);var a=t+"__bubble";n.has(a)||(Fm(e,t,2,!1),n.add(a))}function ac(t,e,n){var a=0;e&&(a|=4),Fm(n,t,a,e)}var zo="_reactListening"+Math.random().toString(36).slice(2);function ic(t){if(!t[zo]){t[zo]=!0,Sl.forEach(function(n){n!=="selectionchange"&&(gx.has(n)||ac(n,!1,t),ac(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[zo]||(e[zo]=!0,ac("selectionchange",!1,e))}}function Fm(t,e,n,a){switch(Ep(e)){case 2:var s=Qx;break;case 8:s=Zx;break;default:s=xc}n=s.bind(null,e,n,t),s=void 0,!Eu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),a?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 lc(t,e,n,a,s){var r=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var y=a.stateNode.containerInfo;if(y===s)break;if(f===4)for(f=a.return;f!==null;){var S=f.tag;if((S===3||S===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;y!==null;){if(f=Rn(y),f===null)return;if(S=f.tag,S===5||S===6||S===26||S===27){a=r=f;continue t}y=y.parentNode}}a=a.return}th(function(){var M=r,_=Tu(n),L=[];t:{var N=jh.get(t);if(N!==void 0){var O=Gs,W=t;switch(t){case"keypress":if(Ys(n)===0)break t;case"keydown":case"keyup":O=cv;break;case"focusin":W="focus",O=ju;break;case"focusout":W="blur",O=ju;break;case"beforeblur":case"afterblur":O=ju;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":O=ah;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=$g;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=dv;break;case Eh:case wh:case Ch:O=ev;break;case Mh:O=pv;break;case"scroll":case"scrollend":O=Pg;break;case"wheel":O=gv;break;case"copy":case"cut":case"paste":O=av;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=lh;break;case"toggle":case"beforetoggle":O=xv}var it=(e&4)!==0,Nt=!it&&(t==="scroll"||t==="scrollend"),w=it?N!==null?N+"Capture":null:N;it=[];for(var A=M,C;A!==null;){var B=A;if(C=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||C===null||w===null||(B=Cl(A,w),B!=null&&it.push(ls(A,B,C))),Nt)break;A=A.return}0<it.length&&(N=new O(N,W,null,n,_),L.push({event:N,listeners:it}))}}if((e&7)===0){t:{if(N=t==="mouseover"||t==="pointerover",O=t==="mouseout"||t==="pointerout",N&&n!==oa&&(W=n.relatedTarget||n.fromElement)&&(Rn(W)||W[On]))break t;if((O||N)&&(N=_.window===_?_:(N=_.ownerDocument)?N.defaultView||N.parentWindow:window,O?(W=n.relatedTarget||n.toElement,O=M,W=W?Rn(W):null,W!==null&&(Nt=d(W),it=W.tag,W!==Nt||it!==5&&it!==27&&it!==6)&&(W=null)):(O=null,W=M),O!==W)){if(it=ah,B="onMouseLeave",w="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(it=lh,B="onPointerLeave",w="onPointerEnter",A="pointer"),Nt=O==null?N:Vn(O),C=W==null?N:Vn(W),N=new it(B,A+"leave",O,n,_),N.target=Nt,N.relatedTarget=C,B=null,Rn(_)===M&&(it=new it(w,A+"enter",W,n,_),it.target=C,it.relatedTarget=Nt,B=it),Nt=B,O&&W)e:{for(it=vx,w=O,A=W,C=0,B=w;B;B=it(B))C++;B=0;for(var nt=A;nt;nt=it(nt))B++;for(;0<C-B;)w=it(w),C--;for(;0<B-C;)A=it(A),B--;for(;C--;){if(w===A||A!==null&&w===A.alternate){it=w;break e}w=it(w),A=it(A)}it=null}else it=null;O!==null&&Pm(L,N,O,it,!1),W!==null&&Nt!==null&&Pm(L,Nt,W,it,!0)}}t:{if(N=M?Vn(M):window,O=N.nodeName&&N.nodeName.toLowerCase(),O==="select"||O==="input"&&N.type==="file")var St=dh;else if(fh(N))if(mh)St=Nv;else{St=Mv;var et=Cv}else O=N.nodeName,!O||O.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?M&&j(M.elementType)&&(St=dh):St=jv;if(St&&(St=St(t,M))){hh(L,St,n,_);break t}et&&et(t,N,M),t==="focusout"&&M&&N.type==="number"&&M.memoizedProps.value!=null&&El(N,"number",N.value)}switch(et=M?Vn(M):window,t){case"focusin":(fh(et)||et.contentEditable==="true")&&(ji=et,Vu=M,Vl=null);break;case"focusout":Vl=Vu=ji=null;break;case"mousedown":_u=!0;break;case"contextmenu":case"mouseup":case"dragend":_u=!1,Th(L,n,_);break;case"selectionchange":if(Ov)break;case"keydown":case"keyup":Th(L,n,_)}var ft;if(Du)t:{switch(t){case"compositionstart":var gt="onCompositionStart";break t;case"compositionend":gt="onCompositionEnd";break t;case"compositionupdate":gt="onCompositionUpdate";break t}gt=void 0}else Mi?rh(t,n)&&(gt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(gt="onCompositionStart");gt&&(sh&&n.locale!=="ko"&&(Mi||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&Mi&&(ft=eh()):(ua=_,wu="value"in ua?ua.value:ua.textContent,Mi=!0)),et=Ro(M,gt),0<et.length&&(gt=new ih(gt,t,null,n,_),L.push({event:gt,listeners:et}),ft?gt.data=ft:(ft=ch(n),ft!==null&&(gt.data=ft)))),(ft=Sv?Tv(t,n):Av(t,n))&&(gt=Ro(M,"onBeforeInput"),0<gt.length&&(et=new ih("onBeforeInput","beforeinput",null,n,_),L.push({event:et,listeners:gt}),et.data=ft)),mx(L,t,M,n,_)}Jm(L,e)})}function ls(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Ro(t,e){for(var n=e+"Capture",a=[];t!==null;){var s=t,r=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||r===null||(s=Cl(t,n),s!=null&&a.unshift(ls(t,s,r)),s=Cl(t,e),s!=null&&a.push(ls(t,s,r))),t.tag===3)return a;t=t.return}return[]}function vx(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Pm(t,e,n,a,s){for(var r=e._reactName,f=[];n!==null&&n!==a;){var y=n,S=y.alternate,M=y.stateNode;if(y=y.tag,S!==null&&S===a)break;y!==5&&y!==26&&y!==27||M===null||(S=M,s?(M=Cl(n,r),M!=null&&f.unshift(ls(n,M,S))):s||(M=Cl(n,r),M!=null&&f.push(ls(n,M,S)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var xx=/\r\n?/g,bx=/\u0000|\uFFFD/g;function Wm(t){return(typeof t=="string"?t:""+t).replace(xx,`
|
|
9
|
-
`).replace(bx,"")}function $m(t,e){return e=Wm(e),Wm(t)===e}function jt(t,e,n,a,s,r){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||xn(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&xn(t,""+a);break;case"className":Si(t,"class",a);break;case"tabIndex":Si(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Si(t,n,a);break;case"style":wl(t,a,r);break;case"data":if(e!=="object"){Si(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Ve(""+a),t.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="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 r=="function"&&(n==="formAction"?(e!=="input"&&jt(t,e,"name",s.name,s,null),jt(t,e,"formEncType",s.formEncType,s,null),jt(t,e,"formMethod",s.formMethod,s,null),jt(t,e,"formTarget",s.formTarget,s,null)):(jt(t,e,"encType",s.encType,s,null),jt(t,e,"method",s.method,s,null),jt(t,e,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Ve(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=we);break;case"onScroll":a!=null&&pt("scroll",t);break;case"onScrollEnd":a!=null&&pt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(u(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}n=Ve(""+a),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":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""+a):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":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":a===!0?t.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,a):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(n,a):t.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(n):t.setAttribute(n,a);break;case"popover":pt("beforetoggle",t),pt("toggle",t),sa(t,"popover",a);break;case"xlinkActuate":rn(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":rn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":rn(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":rn(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":rn(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":rn(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":rn(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":rn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":rn(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":sa(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=tt.get(n)||n,sa(t,n,a))}}function sc(t,e,n,a,s,r){switch(n){case"style":wl(t,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(u(60));t.innerHTML=n}}break;case"children":typeof a=="string"?xn(t,a):(typeof a=="number"||typeof a=="bigint")&&xn(t,""+a);break;case"onScroll":a!=null&&pt("scroll",t);break;case"onScrollEnd":a!=null&&pt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=we);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ga.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),r=t[ee]||null,r=r!=null?r[n]:null,typeof r=="function"&&t.removeEventListener(e,r,s),typeof a=="function")){typeof r!="function"&&r!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,s);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):sa(t,n,a)}}}function re(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pt("error",t),pt("load",t);var a=!1,s=!1,r;for(r in n)if(n.hasOwnProperty(r)){var f=n[r];if(f!=null)switch(r){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:jt(t,e,r,f,n,null)}}s&&jt(t,e,"srcSet",n.srcSet,n,null),a&&jt(t,e,"src",n.src,n,null);return;case"input":pt("invalid",t);var y=r=f=s=null,S=null,M=null;for(a in n)if(n.hasOwnProperty(a)){var _=n[a];if(_!=null)switch(a){case"name":s=_;break;case"type":f=_;break;case"checked":S=_;break;case"defaultChecked":M=_;break;case"value":r=_;break;case"defaultValue":y=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(137,e));break;default:jt(t,e,a,_,n,null)}}Al(t,r,y,S,M,f,s,!1);return;case"select":pt("invalid",t),a=f=r=null;for(s in n)if(n.hasOwnProperty(s)&&(y=n[s],y!=null))switch(s){case"value":r=y;break;case"defaultValue":f=y;break;case"multiple":a=y;default:jt(t,e,s,y,n,null)}e=r,n=f,t.multiple=!!a,e!=null?Re(t,!!a,e,!1):n!=null&&Re(t,!!a,n,!0);return;case"textarea":pt("invalid",t),r=s=a=null;for(f in n)if(n.hasOwnProperty(f)&&(y=n[f],y!=null))switch(f){case"value":a=y;break;case"defaultValue":s=y;break;case"children":r=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(u(91));break;default:jt(t,e,f,y,n,null)}Ls(t,a,s,r);return;case"option":for(S in n)n.hasOwnProperty(S)&&(a=n[S],a!=null)&&(S==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":jt(t,e,S,a,n,null));return;case"dialog":pt("beforetoggle",t),pt("toggle",t),pt("cancel",t),pt("close",t);break;case"iframe":case"object":pt("load",t);break;case"video":case"audio":for(a=0;a<is.length;a++)pt(is[a],t);break;case"image":pt("error",t),pt("load",t);break;case"details":pt("toggle",t);break;case"embed":case"source":case"link":pt("error",t),pt("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(M in n)if(n.hasOwnProperty(M)&&(a=n[M],a!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:jt(t,e,M,a,n,null)}return;default:if(j(e)){for(_ in n)n.hasOwnProperty(_)&&(a=n[_],a!==void 0&&sc(t,e,_,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&jt(t,e,y,a,n,null))}function Sx(t,e,n,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,r=null,f=null,y=null,S=null,M=null,_=null;for(O in n){var L=n[O];if(n.hasOwnProperty(O)&&L!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":S=L;default:a.hasOwnProperty(O)||jt(t,e,O,null,a,L)}}for(var N in a){var O=a[N];if(L=n[N],a.hasOwnProperty(N)&&(O!=null||L!=null))switch(N){case"type":r=O;break;case"name":s=O;break;case"checked":M=O;break;case"defaultChecked":_=O;break;case"value":f=O;break;case"defaultValue":y=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(u(137,e));break;default:O!==L&&jt(t,e,N,O,a,L)}}Ei(t,f,y,S,M,_,r,s);return;case"select":O=f=y=N=null;for(r in n)if(S=n[r],n.hasOwnProperty(r)&&S!=null)switch(r){case"value":break;case"multiple":O=S;default:a.hasOwnProperty(r)||jt(t,e,r,null,a,S)}for(s in a)if(r=a[s],S=n[s],a.hasOwnProperty(s)&&(r!=null||S!=null))switch(s){case"value":N=r;break;case"defaultValue":y=r;break;case"multiple":f=r;default:r!==S&&jt(t,e,s,r,a,S)}e=y,n=f,a=O,N!=null?Re(t,!!n,N,!1):!!a!=!!n&&(e!=null?Re(t,!!n,e,!0):Re(t,!!n,n?[]:"",!1));return;case"textarea":O=N=null;for(y in n)if(s=n[y],n.hasOwnProperty(y)&&s!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:jt(t,e,y,null,a,s)}for(f in a)if(s=a[f],r=n[f],a.hasOwnProperty(f)&&(s!=null||r!=null))switch(f){case"value":N=s;break;case"defaultValue":O=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==r&&jt(t,e,f,s,a,r)}ke(t,N,O);return;case"option":for(var W in n)N=n[W],n.hasOwnProperty(W)&&N!=null&&!a.hasOwnProperty(W)&&(W==="selected"?t.selected=!1:jt(t,e,W,null,a,N));for(S in a)N=a[S],O=n[S],a.hasOwnProperty(S)&&N!==O&&(N!=null||O!=null)&&(S==="selected"?t.selected=N&&typeof N!="function"&&typeof N!="symbol":jt(t,e,S,N,a,O));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 it in n)N=n[it],n.hasOwnProperty(it)&&N!=null&&!a.hasOwnProperty(it)&&jt(t,e,it,null,a,N);for(M in a)if(N=a[M],O=n[M],a.hasOwnProperty(M)&&N!==O&&(N!=null||O!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(u(137,e));break;default:jt(t,e,M,N,a,O)}return;default:if(j(e)){for(var Nt in n)N=n[Nt],n.hasOwnProperty(Nt)&&N!==void 0&&!a.hasOwnProperty(Nt)&&sc(t,e,Nt,void 0,a,N);for(_ in a)N=a[_],O=n[_],!a.hasOwnProperty(_)||N===O||N===void 0&&O===void 0||sc(t,e,_,N,a,O);return}}for(var w in n)N=n[w],n.hasOwnProperty(w)&&N!=null&&!a.hasOwnProperty(w)&&jt(t,e,w,null,a,N);for(L in a)N=a[L],O=n[L],!a.hasOwnProperty(L)||N===O||N==null&&O==null||jt(t,e,L,N,a,O)}function Im(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Tx(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var s=n[a],r=s.transferSize,f=s.initiatorType,y=s.duration;if(r&&y&&Im(f)){for(f=0,y=s.responseEnd,a+=1;a<n.length;a++){var S=n[a],M=S.startTime;if(M>y)break;var _=S.transferSize,L=S.initiatorType;_&&Im(L)&&(S=S.responseEnd,f+=_*(S<y?1:(y-M)/(S-M)))}if(--a,e+=8*(r+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 oc=null,uc=null;function Vo(t){return t.nodeType===9?t:t.ownerDocument}function tp(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 ep(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 rc(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 cc=null;function Ax(){var t=window.event;return t&&t.type==="popstate"?t===cc?!1:(cc=t,!0):(cc=null,!1)}var np=typeof setTimeout=="function"?setTimeout:void 0,Ex=typeof clearTimeout=="function"?clearTimeout:void 0,ap=typeof Promise=="function"?Promise:void 0,wx=typeof queueMicrotask=="function"?queueMicrotask:typeof ap<"u"?function(t){return ap.resolve(null).then(t).catch(Cx)}:np;function Cx(t){setTimeout(function(){throw t})}function wa(t){return t==="head"}function ip(t,e){var n=e,a=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(a===0){t.removeChild(s),el(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")ss(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ss(n);for(var r=n.firstChild;r;){var f=r.nextSibling,y=r.nodeName;r[zn]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=f}}else n==="body"&&ss(t.ownerDocument.body);n=s}while(n);el(e)}function lp(t,e){var n=t;t=0;do{var a=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||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=a}while(n)}function fc(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":fc(n),qa(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Mx(t,e,n,a){for(;t.nodeType===1;){var s=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[zn])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(r=t.getAttribute("rel"),r==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(r!==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(r=t.getAttribute("src"),(r!==(s.src==null?null:s.src)||t.getAttribute("type")!==(s.type==null?null:s.type)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&r&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var r=s.name==null?null:""+s.name;if(s.type==="hidden"&&t.getAttribute("name")===r)return t}else return t;if(t=en(t.nextSibling),t===null)break}return null}function jx(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=en(t.nextSibling),t===null))return null;return t}function sp(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=en(t.nextSibling),t===null))return null;return t}function hc(t){return t.data==="$?"||t.data==="$~"}function dc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Nx(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var a=function(){e(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function en(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 mc=null;function op(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return en(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function up(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 rp(t,e,n){switch(e=Vo(n),t){case"html":if(t=e.documentElement,!t)throw Error(u(452));return t;case"head":if(t=e.head,!t)throw Error(u(453));return t;case"body":if(t=e.body,!t)throw Error(u(454));return t;default:throw Error(u(451))}}function ss(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);qa(t)}var nn=new Map,cp=new Set;function _o(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var $n=H.d;H.d={f:Dx,r:Ox,D:zx,C:Rx,L:Vx,m:_x,X:Bx,S:Ux,M:Lx};function Dx(){var t=$n.f(),e=Co();return t||e}function Ox(t){var e=aa(t);e!==null&&e.tag===5&&e.type==="form"?Md(e):$n.r(t)}var $i=typeof document>"u"?null:document;function fp(t,e,n){var a=$i;if(a&&typeof e=="string"&&e){var s=Ee(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),cp.has(s)||(cp.add(s),t={rel:t,crossOrigin:n,href:e},a.querySelector(s)===null&&(e=a.createElement("link"),re(e,"link",t),Yt(e),a.head.appendChild(e)))}}function zx(t){$n.D(t),fp("dns-prefetch",t,null)}function Rx(t,e){$n.C(t,e),fp("preconnect",t,e)}function Vx(t,e,n){$n.L(t,e,n);var a=$i;if(a&&t&&e){var s='link[rel="preload"][as="'+Ee(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Ee(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Ee(n.imageSizes)+'"]')):s+='[href="'+Ee(t)+'"]';var r=s;switch(e){case"style":r=Ii(t);break;case"script":r=tl(t)}nn.has(r)||(t=b({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),nn.set(r,t),a.querySelector(s)!==null||e==="style"&&a.querySelector(os(r))||e==="script"&&a.querySelector(us(r))||(e=a.createElement("link"),re(e,"link",t),Yt(e),a.head.appendChild(e)))}}function _x(t,e){$n.m(t,e);var n=$i;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+Ee(a)+'"][href="'+Ee(t)+'"]',r=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=tl(t)}if(!nn.has(r)&&(t=b({rel:"modulepreload",href:t},e),nn.set(r,t),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(us(r)))return}a=n.createElement("link"),re(a,"link",t),Yt(a),n.head.appendChild(a)}}}function Ux(t,e,n){$n.S(t,e,n);var a=$i;if(a&&t){var s=un(a).hoistableStyles,r=Ii(t);e=e||"default";var f=s.get(r);if(!f){var y={loading:0,preload:null};if(f=a.querySelector(os(r)))y.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},n),(n=nn.get(r))&&pc(t,n);var S=f=a.createElement("link");Yt(S),re(S,"link",t),S._p=new Promise(function(M,_){S.onload=M,S.onerror=_}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Uo(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:y},s.set(r,f)}}}function Bx(t,e){$n.X(t,e);var n=$i;if(n&&t){var a=un(n).hoistableScripts,s=tl(t),r=a.get(s);r||(r=n.querySelector(us(s)),r||(t=b({src:t,async:!0},e),(e=nn.get(s))&&yc(t,e),r=n.createElement("script"),Yt(r),re(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function Lx(t,e){$n.M(t,e);var n=$i;if(n&&t){var a=un(n).hoistableScripts,s=tl(t),r=a.get(s);r||(r=n.querySelector(us(s)),r||(t=b({src:t,async:!0,type:"module"},e),(e=nn.get(s))&&yc(t,e),r=n.createElement("script"),Yt(r),re(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function hp(t,e,n,a){var s=(s=at.current)?_o(s):null;if(!s)throw Error(u(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Ii(n.href),n=un(s).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Ii(n.href);var r=un(s).hoistableStyles,f=r.get(t);if(f||(s=s.ownerDocument||s,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,f),(r=s.querySelector(os(t)))&&!r._p&&(f.instance=r,f.state.loading=5),nn.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},nn.set(t,n),r||Hx(s,t,n,f.state))),e&&a===null)throw Error(u(528,""));return f}if(e&&a!==null)throw Error(u(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=tl(n),n=un(s).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,t))}}function Ii(t){return'href="'+Ee(t)+'"'}function os(t){return'link[rel="stylesheet"]['+t+"]"}function dp(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function Hx(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),re(e,"link",n),Yt(e),t.head.appendChild(e))}function tl(t){return'[src="'+Ee(t)+'"]'}function us(t){return"script[async]"+t}function mp(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Ee(n.href)+'"]');if(a)return e.instance=a,Yt(a),a;var s=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Yt(a),re(a,"style",s),Uo(a,n.precedence,t),e.instance=a;case"stylesheet":s=Ii(n.href);var r=t.querySelector(os(s));if(r)return e.state.loading|=4,e.instance=r,Yt(r),r;a=dp(n),(s=nn.get(s))&&pc(a,s),r=(t.ownerDocument||t).createElement("link"),Yt(r);var f=r;return f._p=new Promise(function(y,S){f.onload=y,f.onerror=S}),re(r,"link",a),e.state.loading|=4,Uo(r,n.precedence,t),e.instance=r;case"script":return r=tl(n.src),(s=t.querySelector(us(r)))?(e.instance=s,Yt(s),s):(a=n,(s=nn.get(r))&&(a=b({},n),yc(a,s)),t=t.ownerDocument||t,s=t.createElement("script"),Yt(s),re(s,"link",a),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(u(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Uo(a,n.precedence,t));return e.instance}function Uo(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,r=s,f=0;f<a.length;f++){var y=a[f];if(y.dataset.precedence===e)r=y;else if(r!==s)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function pc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function yc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Bo=null;function pp(t,e,n){if(Bo===null){var a=new Map,s=Bo=new Map;s.set(n,a)}else s=Bo,a=s.get(n),a||(a=new Map,s.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),s=0;s<n.length;s++){var r=n[s];if(!(r[zn]||r[Lt]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var f=r.getAttribute(e)||"";f=t+f;var y=a.get(f);y?y.push(r):a.set(f,[r])}}return a}function yp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Yx(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 gp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function qx(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=Ii(a.href),r=e.querySelector(os(s));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Lo.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,Yt(r);return}r=e.ownerDocument||e,a=dp(a),(s=nn.get(s))&&pc(a,s),r=r.createElement("link"),Yt(r);var f=r;f._p=new Promise(function(y,S){f.onload=y,f.onerror=S}),re(r,"link",a),n.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Lo.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var gc=0;function Gx(t,e){return t.stylesheets&&t.count===0&&Yo(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&Yo(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&gc===0&&(gc=62500*Tx());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Yo(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>gc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function Lo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ho=null;function Yo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ho=new Map,e.forEach(Xx,t),Ho=null,Lo.call(t))}function Xx(t,e){if(!(e.state.loading&4)){var n=Ho.get(t);if(n)var a=n.get(null);else{n=new Map,Ho.set(t,n);for(var s=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<s.length;r++){var f=s[r];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}s=e.instance,f=s.getAttribute("data-precedence"),r=n.get(f)||a,r===a&&n.set(null,s),n.set(f,s),this.count++,a=Lo.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),r?r.parentNode.insertBefore(s,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var rs={$$typeof:G,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function Kx(t,e,n,a,s,r,f,y,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=yi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yi(0),this.hiddenUpdates=yi(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=r,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function vp(t,e,n,a,s,r,f,y,S,M,_,L){return t=new Kx(t,e,n,f,S,M,_,L,y),e=1,r===!0&&(e|=24),r=Ue(3,null,null,e),t.current=r,r.stateNode=t,e=Pu(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:e},tr(r),t}function xp(t){return t?(t=Oi,t):Oi}function bp(t,e,n,a,s,r){s=xp(s),a.context===null?a.context=s:a.pendingContext=s,a=ma(e),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=pa(t,a,e),n!==null&&(Oe(n,t,e),ql(n,t,e))}function Sp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function vc(t,e){Sp(t,e),(t=t.alternate)&&Sp(t,e)}function Tp(t){if(t.tag===13||t.tag===31){var e=ka(t,67108864);e!==null&&Oe(e,t,67108864),vc(t,67108864)}}function Ap(t){if(t.tag===13||t.tag===31){var e=qe();e=na(e);var n=ka(t,e);n!==null&&Oe(n,t,e),vc(t,e)}}var qo=!0;function Qx(t,e,n,a){var s=R.T;R.T=null;var r=H.p;try{H.p=2,xc(t,e,n,a)}finally{H.p=r,R.T=s}}function Zx(t,e,n,a){var s=R.T;R.T=null;var r=H.p;try{H.p=8,xc(t,e,n,a)}finally{H.p=r,R.T=s}}function xc(t,e,n,a){if(qo){var s=bc(a);if(s===null)lc(t,e,a,Go,n),wp(t,a);else if(Jx(s,t,e,n,a))a.stopPropagation();else if(wp(t,a),e&4&&-1<kx.indexOf(t)){for(;s!==null;){var r=aa(s);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=gn(r.pendingLanes);if(f!==0){var y=r;for(y.pendingLanes|=2,y.entangledLanes|=2;f;){var S=1<<31-ye(f);y.entanglements[1]|=S,f&=~S}An(r),(At&6)===0&&(Eo=fe()+500,as(0))}}break;case 31:case 13:y=ka(r,2),y!==null&&Oe(y,r,2),Co(),vc(r,2)}if(r=bc(a),r===null&&lc(t,e,a,Go,n),r===s)break;s=r}s!==null&&a.stopPropagation()}else lc(t,e,a,null,n)}}function bc(t){return t=Tu(t),Sc(t)}var Go=null;function Sc(t){if(Go=null,t=Rn(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=h(e),t!==null)return t;t=null}else if(n===31){if(t=p(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 Go=t,null}function Ep(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(gu()){case zs:return 2;case me:return 8;case mi:case gl:return 32;case Rs:return 268435456;default:return 32}default:return 32}}var Tc=!1,Ca=null,Ma=null,ja=null,cs=new Map,fs=new Map,Na=[],kx="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 wp(t,e){switch(t){case"focusin":case"focusout":Ca=null;break;case"dragenter":case"dragleave":Ma=null;break;case"mouseover":case"mouseout":ja=null;break;case"pointerover":case"pointerout":cs.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":fs.delete(e.pointerId)}}function hs(t,e,n,a,s,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:r,targetContainers:[s]},e!==null&&(e=aa(e),e!==null&&Tp(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function Jx(t,e,n,a,s){switch(e){case"focusin":return Ca=hs(Ca,t,e,n,a,s),!0;case"dragenter":return Ma=hs(Ma,t,e,n,a,s),!0;case"mouseover":return ja=hs(ja,t,e,n,a,s),!0;case"pointerover":var r=s.pointerId;return cs.set(r,hs(cs.get(r)||null,t,e,n,a,s)),!0;case"gotpointercapture":return r=s.pointerId,fs.set(r,hs(fs.get(r)||null,t,e,n,a,s)),!0}return!1}function Cp(t){var e=Rn(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=h(n),e!==null){t.blockedOn=e,Ya(t.priority,function(){Ap(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,Ya(t.priority,function(){Ap(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 Xo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=bc(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);oa=a,n.target.dispatchEvent(a),oa=null}else return e=aa(n),e!==null&&Tp(e),t.blockedOn=n,!1;e.shift()}return!0}function Mp(t,e,n){Xo(t)&&n.delete(e)}function Fx(){Tc=!1,Ca!==null&&Xo(Ca)&&(Ca=null),Ma!==null&&Xo(Ma)&&(Ma=null),ja!==null&&Xo(ja)&&(ja=null),cs.forEach(Mp),fs.forEach(Mp)}function Ko(t,e){t.blockedOn===e&&(t.blockedOn=null,Tc||(Tc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Fx)))}var Qo=null;function jp(t){Qo!==t&&(Qo=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Qo===t&&(Qo=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],s=t[e+2];if(typeof a!="function"){if(Sc(a||n)===null)continue;break}var r=aa(n);r!==null&&(t.splice(e,3),e-=3,br(r,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function el(t){function e(S){return Ko(S,t)}Ca!==null&&Ko(Ca,t),Ma!==null&&Ko(Ma,t),ja!==null&&Ko(ja,t),cs.forEach(e),fs.forEach(e);for(var n=0;n<Na.length;n++){var a=Na[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Na.length&&(n=Na[0],n.blockedOn===null);)Cp(n),n.blockedOn===null&&Na.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var s=n[a],r=n[a+1],f=s[ee]||null;if(typeof r=="function")f||jp(n);else if(f){var y=null;if(r&&r.hasAttribute("formAction")){if(s=r,f=r[ee]||null)y=f.formAction;else if(Sc(s)!==null)continue}else y=f.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),jp(n)}}}function Np(){function t(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(f){return s=f})},focusReset:"manual",scroll:"manual"})}function e(){s!==null&&(s(),s=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,s=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),s!==null&&(s(),s=null)}}}function Ac(t){this._internalRoot=t}Zo.prototype.render=Ac.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var n=e.current,a=qe();bp(n,a,t,e,null,null)},Zo.prototype.unmount=Ac.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;bp(t.current,2,null,t,null,null),Co(),e[On]=null}};function Zo(t){this._internalRoot=t}Zo.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ha();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Na.length&&e!==0&&e<Na[n].priority;n++);Na.splice(n,0,t),n===0&&Cp(t)}};var Dp=l.version;if(Dp!=="19.2.4")throw Error(u(527,Dp,"19.2.4"));H.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(u(188)):(t=Object.keys(t).join(","),Error(u(268,t)));return t=m(e),t=t!==null?x(t):null,t=t===null?null:t.stateNode,t};var Px={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ko=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ko.isDisabled&&ko.supportsFiber)try{le=ko.inject(Px),pe=ko}catch{}}return ms.createRoot=function(t,e){if(!c(t))throw Error(u(299));var n=!1,a="",s=Bd,r=Ld,f=Hd;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(s=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=vp(t,1,!1,null,null,n,a,null,s,r,f,Np),t[On]=e.current,ic(t),new Ac(e)},ms.hydrateRoot=function(t,e,n){if(!c(t))throw Error(u(299));var a=!1,s="",r=Bd,f=Ld,y=Hd,S=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(S=n.formState)),e=vp(t,1,!0,e,n??null,a,s,S,r,f,y,Np),e.context=xp(null),n=e.current,a=qe(),a=na(a),s=ma(a),s.callback=null,pa(n,s,a),n=a,e.current.lanes=n,Te(e,n),An(e),t[On]=e.current,ic(t),new Zo(e)},ms.version="19.2.4",ms}var Yp;function s1(){if(Yp)return Cc.exports;Yp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),Cc.exports=l1(),Cc.exports}var o1=s1();const zA=u0(o1);const r0=(...i)=>i.filter((l,o,u)=>!!l&&l.trim()!==""&&u.indexOf(l)===o).join(" ").trim();const u1=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const r1=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,o,u)=>u?u.toUpperCase():o.toLowerCase());const qp=i=>{const l=r1(i);return l.charAt(0).toUpperCase()+l.slice(1)};var c1={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 f1=i=>{for(const l in i)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1};const h1=z.forwardRef(({color:i="currentColor",size:l=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:c="",children:d,iconNode:h,...p},g)=>z.createElement("svg",{ref:g,...c1,width:l,height:l,stroke:i,strokeWidth:u?Number(o)*24/Number(l):o,className:r0("lucide",c),...!d&&!f1(p)&&{"aria-hidden":"true"},...p},[...h.map(([m,x])=>z.createElement(m,x)),...Array.isArray(d)?d:[d]]));const be=(i,l)=>{const o=z.forwardRef(({className:u,...c},d)=>z.createElement(h1,{ref:d,iconNode:l,className:r0(`lucide-${u1(qp(i))}`,`lucide-${i}`,u),...c}));return o.displayName=qp(i),o};const d1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],m1=be("arrow-left",d1);const p1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ge=be("arrow-right",p1);const y1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Oa=be("check",y1);const g1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],v1=be("chevron-down",g1);const x1=[["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"}]],Gp=be("clipboard-paste",x1);const b1=[["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"}]],Dc=be("copy",b1);const S1=[["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"}]],Xp=be("external-link",S1);const T1=[["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"}]],A1=be("eye-off",T1);const E1=[["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"}]],w1=be("eye",E1);const C1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],si=be("loader-circle",C1);const M1=[["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"}]],j1=be("mic",M1);const N1=[["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"}]],Oc=be("refresh-cw",N1);const D1=[["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"}]],Kp=be("shield-check",D1);const O1=[["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"}]],z1=be("shield",O1);const R1=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],V1=be("smartphone",R1),Tf=z.createContext({});function Af(i){const l=z.useRef(null);return l.current===null&&(l.current=i()),l.current}const c0=typeof window<"u",f0=c0?z.useLayoutEffect:z.useEffect,du=z.createContext(null);function Ef(i,l){i.indexOf(l)===-1&&i.push(l)}function lu(i,l){const o=i.indexOf(l);o>-1&&i.splice(o,1)}const Cn=(i,l,o)=>o>l?l:o<i?i:o;let wf=()=>{};const In={},h0=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i);function d0(i){return typeof i=="object"&&i!==null}const m0=i=>/^0[^.\s]+$/u.test(i);function p0(i){let l;return()=>(l===void 0&&(l=i()),l)}const ln=i=>i,_1=(i,l)=>o=>l(i(o)),Ms=(...i)=>i.reduce(_1),Ts=(i,l,o)=>{const u=l-i;return u===0?1:(o-i)/u};class Cf{constructor(){this.subscriptions=[]}add(l){return Ef(this.subscriptions,l),()=>lu(this.subscriptions,l)}notify(l,o,u){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,o,u);else for(let d=0;d<c;d++){const h=this.subscriptions[d];h&&h(l,o,u)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const pn=i=>i*1e3,an=i=>i/1e3;function y0(i,l){return l?i*(1e3/l):0}const g0=(i,l,o)=>(((1-3*o+3*l)*i+(3*o-6*l))*i+3*l)*i,U1=1e-7,B1=12;function L1(i,l,o,u,c){let d,h,p=0;do h=l+(o-l)/2,d=g0(h,u,c)-i,d>0?o=h:l=h;while(Math.abs(d)>U1&&++p<B1);return h}function js(i,l,o,u){if(i===l&&o===u)return ln;const c=d=>L1(d,0,1,i,o);return d=>d===0||d===1?d:g0(c(d),l,u)}const v0=i=>l=>l<=.5?i(2*l)/2:(2-i(2*(1-l)))/2,x0=i=>l=>1-i(1-l),b0=js(.33,1.53,.69,.99),Mf=x0(b0),S0=v0(Mf),T0=i=>(i*=2)<1?.5*Mf(i):.5*(2-Math.pow(2,-10*(i-1))),jf=i=>1-Math.sin(Math.acos(i)),A0=x0(jf),E0=v0(jf),H1=js(.42,0,1,1),Y1=js(0,0,.58,1),w0=js(.42,0,.58,1),q1=i=>Array.isArray(i)&&typeof i[0]!="number",C0=i=>Array.isArray(i)&&typeof i[0]=="number",G1={linear:ln,easeIn:H1,easeInOut:w0,easeOut:Y1,circIn:jf,circInOut:E0,circOut:A0,backIn:Mf,backInOut:S0,backOut:b0,anticipate:T0},X1=i=>typeof i=="string",Qp=i=>{if(C0(i)){wf(i.length===4);const[l,o,u,c]=i;return js(l,o,u,c)}else if(X1(i))return G1[i];return i},Jo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function K1(i,l){let o=new Set,u=new Set,c=!1,d=!1;const h=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function g(x){h.has(x)&&(m.schedule(x),i()),x(p)}const m={schedule:(x,b=!1,T=!1)=>{const V=T&&c?o:u;return b&&h.add(x),V.has(x)||V.add(x),x},cancel:x=>{u.delete(x),h.delete(x)},process:x=>{if(p=x,c){d=!0;return}c=!0,[o,u]=[u,o],o.forEach(g),o.clear(),c=!1,d&&(d=!1,m.process(x))}};return m}const Q1=40;function M0(i,l){let o=!1,u=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>o=!0,h=Jo.reduce((G,J)=>(G[J]=K1(d),G),{}),{setup:p,read:g,resolveKeyframes:m,preUpdate:x,update:b,preRender:T,render:D,postRender:V}=h,Y=()=>{const G=In.useManualTiming?c.timestamp:performance.now();o=!1,In.useManualTiming||(c.delta=u?1e3/60:Math.max(Math.min(G-c.timestamp,Q1),1)),c.timestamp=G,c.isProcessing=!0,p.process(c),g.process(c),m.process(c),x.process(c),b.process(c),T.process(c),D.process(c),V.process(c),c.isProcessing=!1,o&&l&&(u=!1,i(Y))},X=()=>{o=!0,u=!0,c.isProcessing||i(Y)};return{schedule:Jo.reduce((G,J)=>{const Z=h[J];return G[J]=(lt,k=!1,F=!1)=>(o||X(),Z.schedule(lt,k,F)),G},{}),cancel:G=>{for(let J=0;J<Jo.length;J++)h[Jo[J]].cancel(G)},state:c,steps:h}}const{schedule:Rt,cancel:Va,state:ce,steps:zc}=M0(typeof requestAnimationFrame<"u"?requestAnimationFrame:ln,!0);let $o;function Z1(){$o=void 0}const ve={now:()=>($o===void 0&&ve.set(ce.isProcessing||In.useManualTiming?ce.timestamp:performance.now()),$o),set:i=>{$o=i,queueMicrotask(Z1)}},j0=i=>l=>typeof l=="string"&&l.startsWith(i),N0=j0("--"),k1=j0("var(--"),Nf=i=>k1(i)?J1.test(i.split("/*")[0].trim()):!1,J1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Zp(i){return typeof i!="string"?!1:i.split("/*")[0].includes("var(--")}const cl={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},As={...cl,transform:i=>Cn(0,1,i)},Fo={...cl,default:1},vs=i=>Math.round(i*1e5)/1e5,Df=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function F1(i){return i==null}const P1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Of=(i,l)=>o=>!!(typeof o=="string"&&P1.test(o)&&o.startsWith(i)||l&&!F1(o)&&Object.prototype.hasOwnProperty.call(o,l)),D0=(i,l,o)=>u=>{if(typeof u!="string")return u;const[c,d,h,p]=u.match(Df);return{[i]:parseFloat(c),[l]:parseFloat(d),[o]:parseFloat(h),alpha:p!==void 0?parseFloat(p):1}},W1=i=>Cn(0,255,i),Rc={...cl,transform:i=>Math.round(W1(i))},ri={test:Of("rgb","red"),parse:D0("red","green","blue"),transform:({red:i,green:l,blue:o,alpha:u=1})=>"rgba("+Rc.transform(i)+", "+Rc.transform(l)+", "+Rc.transform(o)+", "+vs(As.transform(u))+")"};function $1(i){let l="",o="",u="",c="";return i.length>5?(l=i.substring(1,3),o=i.substring(3,5),u=i.substring(5,7),c=i.substring(7,9)):(l=i.substring(1,2),o=i.substring(2,3),u=i.substring(3,4),c=i.substring(4,5),l+=l,o+=o,u+=u,c+=c),{red:parseInt(l,16),green:parseInt(o,16),blue:parseInt(u,16),alpha:c?parseInt(c,16)/255:1}}const Pc={test:Of("#"),parse:$1,transform:ri.transform},Ns=i=>({test:l=>typeof l=="string"&&l.endsWith(i)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${i}`}),za=Ns("deg"),wn=Ns("%"),I=Ns("px"),I1=Ns("vh"),tb=Ns("vw"),kp={...wn,parse:i=>wn.parse(i)/100,transform:i=>wn.transform(i*100)},al={test:Of("hsl","hue"),parse:D0("hue","saturation","lightness"),transform:({hue:i,saturation:l,lightness:o,alpha:u=1})=>"hsla("+Math.round(i)+", "+wn.transform(vs(l))+", "+wn.transform(vs(o))+", "+vs(As.transform(u))+")"},Wt={test:i=>ri.test(i)||Pc.test(i)||al.test(i),parse:i=>ri.test(i)?ri.parse(i):al.test(i)?al.parse(i):Pc.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?ri.transform(i):al.transform(i),getAnimatableNone:i=>{const l=Wt.parse(i);return l.alpha=0,Wt.transform(l)}},eb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function nb(i){return isNaN(i)&&typeof i=="string"&&(i.match(Df)?.length||0)+(i.match(eb)?.length||0)>0}const O0="number",z0="color",ab="var",ib="var(",Jp="${}",lb=/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 Es(i){const l=i.toString(),o=[],u={color:[],number:[],var:[]},c=[];let d=0;const p=l.replace(lb,g=>(Wt.test(g)?(u.color.push(d),c.push(z0),o.push(Wt.parse(g))):g.startsWith(ib)?(u.var.push(d),c.push(ab),o.push(g)):(u.number.push(d),c.push(O0),o.push(parseFloat(g))),++d,Jp)).split(Jp);return{values:o,split:p,indexes:u,types:c}}function R0(i){return Es(i).values}function V0(i){const{split:l,types:o}=Es(i),u=l.length;return c=>{let d="";for(let h=0;h<u;h++)if(d+=l[h],c[h]!==void 0){const p=o[h];p===O0?d+=vs(c[h]):p===z0?d+=Wt.transform(c[h]):d+=c[h]}return d}}const sb=i=>typeof i=="number"?0:Wt.test(i)?Wt.getAnimatableNone(i):i;function ob(i){const l=R0(i);return V0(i)(l.map(sb))}const yn={test:nb,parse:R0,createTransformer:V0,getAnimatableNone:ob};function Vc(i,l,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?i+(l-i)*6*o:o<1/2?l:o<2/3?i+(l-i)*(2/3-o)*6:i}function ub({hue:i,saturation:l,lightness:o,alpha:u}){i/=360,l/=100,o/=100;let c=0,d=0,h=0;if(!l)c=d=h=o;else{const p=o<.5?o*(1+l):o+l-o*l,g=2*o-p;c=Vc(g,p,i+1/3),d=Vc(g,p,i),h=Vc(g,p,i-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(h*255),alpha:u}}function su(i,l){return o=>o>0?l:i}const Ht=(i,l,o)=>i+(l-i)*o,_c=(i,l,o)=>{const u=i*i,c=o*(l*l-u)+u;return c<0?0:Math.sqrt(c)},rb=[Pc,ri,al],cb=i=>rb.find(l=>l.test(i));function Fp(i){const l=cb(i);if(!l)return!1;let o=l.parse(i);return l===al&&(o=ub(o)),o}const Pp=(i,l)=>{const o=Fp(i),u=Fp(l);if(!o||!u)return su(i,l);const c={...o};return d=>(c.red=_c(o.red,u.red,d),c.green=_c(o.green,u.green,d),c.blue=_c(o.blue,u.blue,d),c.alpha=Ht(o.alpha,u.alpha,d),ri.transform(c))},Wc=new Set(["none","hidden"]);function fb(i,l){return Wc.has(i)?o=>o<=0?i:l:o=>o>=1?l:i}function hb(i,l){return o=>Ht(i,l,o)}function zf(i){return typeof i=="number"?hb:typeof i=="string"?Nf(i)?su:Wt.test(i)?Pp:pb:Array.isArray(i)?_0:typeof i=="object"?Wt.test(i)?Pp:db:su}function _0(i,l){const o=[...i],u=o.length,c=i.map((d,h)=>zf(d)(d,l[h]));return d=>{for(let h=0;h<u;h++)o[h]=c[h](d);return o}}function db(i,l){const o={...i,...l},u={};for(const c in o)i[c]!==void 0&&l[c]!==void 0&&(u[c]=zf(i[c])(i[c],l[c]));return c=>{for(const d in u)o[d]=u[d](c);return o}}function mb(i,l){const o=[],u={color:0,var:0,number:0};for(let c=0;c<l.values.length;c++){const d=l.types[c],h=i.indexes[d][u[d]],p=i.values[h]??0;o[c]=p,u[d]++}return o}const pb=(i,l)=>{const o=yn.createTransformer(l),u=Es(i),c=Es(l);return u.indexes.var.length===c.indexes.var.length&&u.indexes.color.length===c.indexes.color.length&&u.indexes.number.length>=c.indexes.number.length?Wc.has(i)&&!c.values.length||Wc.has(l)&&!u.values.length?fb(i,l):Ms(_0(mb(u,c),c.values),o):su(i,l)};function U0(i,l,o){return typeof i=="number"&&typeof l=="number"&&typeof o=="number"?Ht(i,l,o):zf(i)(i,l)}const yb=i=>{const l=({timestamp:o})=>i(o);return{start:(o=!0)=>Rt.update(l,o),stop:()=>Va(l),now:()=>ce.isProcessing?ce.timestamp:ve.now()}},B0=(i,l,o=10)=>{let u="";const c=Math.max(Math.round(l/o),2);for(let d=0;d<c;d++)u+=Math.round(i(d/(c-1))*1e4)/1e4+", ";return`linear(${u.substring(0,u.length-2)})`},ou=2e4;function Rf(i){let l=0;const o=50;let u=i.next(l);for(;!u.done&&l<ou;)l+=o,u=i.next(l);return l>=ou?1/0:l}function gb(i,l=100,o){const u=o({...i,keyframes:[0,l]}),c=Math.min(Rf(u),ou);return{type:"keyframes",ease:d=>u.next(c*d).value/l,duration:an(c)}}const vb=5;function L0(i,l,o){const u=Math.max(l-vb,0);return y0(o-i(u),l-u)}const Xt={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},Uc=.001;function xb({duration:i=Xt.duration,bounce:l=Xt.bounce,velocity:o=Xt.velocity,mass:u=Xt.mass}){let c,d,h=1-l;h=Cn(Xt.minDamping,Xt.maxDamping,h),i=Cn(Xt.minDuration,Xt.maxDuration,an(i)),h<1?(c=m=>{const x=m*h,b=x*i,T=x-o,D=$c(m,h),V=Math.exp(-b);return Uc-T/D*V},d=m=>{const b=m*h*i,T=b*o+o,D=Math.pow(h,2)*Math.pow(m,2)*i,V=Math.exp(-b),Y=$c(Math.pow(m,2),h);return(-c(m)+Uc>0?-1:1)*((T-D)*V)/Y}):(c=m=>{const x=Math.exp(-m*i),b=(m-o)*i+1;return-Uc+x*b},d=m=>{const x=Math.exp(-m*i),b=(o-m)*(i*i);return x*b});const p=5/i,g=Sb(c,d,p);if(i=pn(i),isNaN(g))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:i};{const m=Math.pow(g,2)*u;return{stiffness:m,damping:h*2*Math.sqrt(u*m),duration:i}}}const bb=12;function Sb(i,l,o){let u=o;for(let c=1;c<bb;c++)u=u-i(u)/l(u);return u}function $c(i,l){return i*Math.sqrt(1-l*l)}const Tb=["duration","bounce"],Ab=["stiffness","damping","mass"];function Wp(i,l){return l.some(o=>i[o]!==void 0)}function Eb(i){let l={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...i};if(!Wp(i,Ab)&&Wp(i,Tb))if(l.velocity=0,i.visualDuration){const o=i.visualDuration,u=2*Math.PI/(o*1.2),c=u*u,d=2*Cn(.05,1,1-(i.bounce||0))*Math.sqrt(c);l={...l,mass:Xt.mass,stiffness:c,damping:d}}else{const o=xb({...i,velocity:0});l={...l,...o,mass:Xt.mass},l.isResolvedFromDuration=!0}return l}function uu(i=Xt.visualDuration,l=Xt.bounce){const o=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:l}:i;let{restSpeed:u,restDelta:c}=o;const d=o.keyframes[0],h=o.keyframes[o.keyframes.length-1],p={done:!1,value:d},{stiffness:g,damping:m,mass:x,duration:b,velocity:T,isResolvedFromDuration:D}=Eb({...o,velocity:-an(o.velocity||0)}),V=T||0,Y=m/(2*Math.sqrt(g*x)),X=h-d,q=an(Math.sqrt(g/x)),K=Math.abs(X)<5;u||(u=K?Xt.restSpeed.granular:Xt.restSpeed.default),c||(c=K?Xt.restDelta.granular:Xt.restDelta.default);let G;if(Y<1){const Z=$c(q,Y);G=lt=>{const k=Math.exp(-Y*q*lt);return h-k*((V+Y*q*X)/Z*Math.sin(Z*lt)+X*Math.cos(Z*lt))}}else if(Y===1)G=Z=>h-Math.exp(-q*Z)*(X+(V+q*X)*Z);else{const Z=q*Math.sqrt(Y*Y-1);G=lt=>{const k=Math.exp(-Y*q*lt),F=Math.min(Z*lt,300);return h-k*((V+Y*q*X)*Math.sinh(F)+Z*X*Math.cosh(F))/Z}}const J={calculatedDuration:D&&b||null,next:Z=>{const lt=G(Z);if(D)p.done=Z>=b;else{let k=Z===0?V:0;Y<1&&(k=Z===0?pn(V):L0(G,Z,lt));const F=Math.abs(k)<=u,st=Math.abs(h-lt)<=c;p.done=F&&st}return p.value=p.done?h:lt,p},toString:()=>{const Z=Math.min(Rf(J),ou),lt=B0(k=>J.next(Z*k).value,Z,30);return Z+"ms "+lt},toTransition:()=>{}};return J}uu.applyToOptions=i=>{const l=gb(i,100,uu);return i.ease=l.ease,i.duration=pn(l.duration),i.type="keyframes",i};function Ic({keyframes:i,velocity:l=0,power:o=.8,timeConstant:u=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:h,min:p,max:g,restDelta:m=.5,restSpeed:x}){const b=i[0],T={done:!1,value:b},D=F=>p!==void 0&&F<p||g!==void 0&&F>g,V=F=>p===void 0?g:g===void 0||Math.abs(p-F)<Math.abs(g-F)?p:g;let Y=o*l;const X=b+Y,q=h===void 0?X:h(X);q!==X&&(Y=q-b);const K=F=>-Y*Math.exp(-F/u),G=F=>q+K(F),J=F=>{const st=K(F),bt=G(F);T.done=Math.abs(st)<=m,T.value=T.done?q:bt};let Z,lt;const k=F=>{D(T.value)&&(Z=F,lt=uu({keyframes:[T.value,V(T.value)],velocity:L0(G,F,T.value),damping:c,stiffness:d,restDelta:m,restSpeed:x}))};return k(0),{calculatedDuration:null,next:F=>{let st=!1;return!lt&&Z===void 0&&(st=!0,J(F),k(F)),Z!==void 0&&F>=Z?lt.next(F-Z):(!st&&J(F),T)}}}function wb(i,l,o){const u=[],c=o||In.mix||U0,d=i.length-1;for(let h=0;h<d;h++){let p=c(i[h],i[h+1]);if(l){const g=Array.isArray(l)?l[h]||ln:l;p=Ms(g,p)}u.push(p)}return u}function Cb(i,l,{clamp:o=!0,ease:u,mixer:c}={}){const d=i.length;if(wf(d===l.length),d===1)return()=>l[0];if(d===2&&l[0]===l[1])return()=>l[1];const h=i[0]===i[1];i[0]>i[d-1]&&(i=[...i].reverse(),l=[...l].reverse());const p=wb(l,u,c),g=p.length,m=x=>{if(h&&x<i[0])return l[0];let b=0;if(g>1)for(;b<i.length-2&&!(x<i[b+1]);b++);const T=Ts(i[b],i[b+1],x);return p[b](T)};return o?x=>m(Cn(i[0],i[d-1],x)):m}function Mb(i,l){const o=i[i.length-1];for(let u=1;u<=l;u++){const c=Ts(0,l,u);i.push(Ht(o,1,c))}}function jb(i){const l=[0];return Mb(l,i.length-1),l}function Nb(i,l){return i.map(o=>o*l)}function Db(i,l){return i.map(()=>l||w0).splice(0,i.length-1)}function xs({duration:i=300,keyframes:l,times:o,ease:u="easeInOut"}){const c=q1(u)?u.map(Qp):Qp(u),d={done:!1,value:l[0]},h=Nb(o&&o.length===l.length?o:jb(l),i),p=Cb(h,l,{ease:Array.isArray(c)?c:Db(l,c)});return{calculatedDuration:i,next:g=>(d.value=p(g),d.done=g>=i,d)}}const Ob=i=>i!==null;function Vf(i,{repeat:l,repeatType:o="loop"},u,c=1){const d=i.filter(Ob),p=c<0||l&&o!=="loop"&&l%2===1?0:d.length-1;return!p||u===void 0?d[p]:u}const zb={decay:Ic,inertia:Ic,tween:xs,keyframes:xs,spring:uu};function H0(i){typeof i.type=="string"&&(i.type=zb[i.type])}class _f{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 Rb=i=>i/100;class Uf extends _f{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!==ve.now()&&this.tick(ve.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;H0(l);const{type:o=xs,repeat:u=0,repeatDelay:c=0,repeatType:d,velocity:h=0}=l;let{keyframes:p}=l;const g=o||xs;g!==xs&&typeof p[0]!="number"&&(this.mixKeyframes=Ms(Rb,U0(p[0],p[1])),p=[0,100]);const m=g({...l,keyframes:p});d==="mirror"&&(this.mirroredGenerator=g({...l,keyframes:[...p].reverse(),velocity:-h})),m.calculatedDuration===null&&(m.calculatedDuration=Rf(m));const{calculatedDuration:x}=m;this.calculatedDuration=x,this.resolvedDuration=x+c,this.totalDuration=this.resolvedDuration*(u+1)-c,this.generator=m}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:u,totalDuration:c,mixKeyframes:d,mirroredGenerator:h,resolvedDuration:p,calculatedDuration:g}=this;if(this.startTime===null)return u.next(0);const{delay:m=0,keyframes:x,repeat:b,repeatType:T,repeatDelay:D,type:V,onUpdate:Y,finalKeyframe:X}=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 q=this.currentTime-m*(this.playbackSpeed>=0?1:-1),K=this.playbackSpeed>=0?q<0:q>c;this.currentTime=Math.max(q,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let G=this.currentTime,J=u;if(b){const F=Math.min(this.currentTime,c)/p;let st=Math.floor(F),bt=F%1;!bt&&F>=1&&(bt=1),bt===1&&st--,st=Math.min(st,b+1),st%2&&(T==="reverse"?(bt=1-bt,D&&(bt-=D/p)):T==="mirror"&&(J=h)),G=Cn(0,1,bt)*p}const Z=K?{done:!1,value:x[0]}:J.next(G);d&&(Z.value=d(Z.value));let{done:lt}=Z;!K&&g!==null&&(lt=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&<);return k&&V!==Ic&&(Z.value=Vf(x,this.options,X,this.speed)),Y&&Y(Z.value),k&&this.finish(),Z}then(l,o){return this.finished.then(l,o)}get duration(){return an(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+an(l)}get time(){return an(this.currentTime)}set time(l){l=pn(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(ve.now());const o=this.playbackSpeed!==l;this.playbackSpeed=l,o&&(this.time=an(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=yb,startTime:o}=this.options;this.driver||(this.driver=l(c=>this.tick(c))),this.options.onPlay?.();const u=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=u):this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime||(this.startTime=o??u),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(ve.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 Vb(i){for(let l=1;l<i.length;l++)i[l]??(i[l]=i[l-1])}const ci=i=>i*180/Math.PI,tf=i=>{const l=ci(Math.atan2(i[1],i[0]));return ef(l)},_b={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:tf,rotateZ:tf,skewX:i=>ci(Math.atan(i[1])),skewY:i=>ci(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},ef=i=>(i=i%360,i<0&&(i+=360),i),$p=tf,Ip=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),ty=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),Ub={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ip,scaleY:ty,scale:i=>(Ip(i)+ty(i))/2,rotateX:i=>ef(ci(Math.atan2(i[6],i[5]))),rotateY:i=>ef(ci(Math.atan2(-i[2],i[0]))),rotateZ:$p,rotate:$p,skewX:i=>ci(Math.atan(i[4])),skewY:i=>ci(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function nf(i){return i.includes("scale")?1:0}function af(i,l){if(!i||i==="none")return nf(l);const o=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let u,c;if(o)u=Ub,c=o;else{const p=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);u=_b,c=p}if(!c)return nf(l);const d=u[l],h=c[1].split(",").map(Lb);return typeof d=="function"?d(h):h[d]}const Bb=(i,l)=>{const{transform:o="none"}=getComputedStyle(i);return af(o,l)};function Lb(i){return parseFloat(i.trim())}const fl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],hl=new Set(fl),ey=i=>i===cl||i===I,Hb=new Set(["x","y","z"]),Yb=fl.filter(i=>!Hb.has(i));function qb(i){const l=[];return Yb.forEach(o=>{const u=i.getValue(o);u!==void 0&&(l.push([o,u.get()]),u.set(o.startsWith("scale")?1:0))}),l}const Ra={width:({x:i},{paddingLeft:l="0",paddingRight:o="0"})=>i.max-i.min-parseFloat(l)-parseFloat(o),height:({y:i},{paddingTop:l="0",paddingBottom:o="0"})=>i.max-i.min-parseFloat(l)-parseFloat(o),top:(i,{top:l})=>parseFloat(l),left:(i,{left:l})=>parseFloat(l),bottom:({y:i},{top:l})=>parseFloat(l)+(i.max-i.min),right:({x:i},{left:l})=>parseFloat(l)+(i.max-i.min),x:(i,{transform:l})=>af(l,"x"),y:(i,{transform:l})=>af(l,"y")};Ra.translateX=Ra.x;Ra.translateY=Ra.y;const fi=new Set;let lf=!1,sf=!1,of=!1;function Y0(){if(sf){const i=Array.from(fi).filter(u=>u.needsMeasurement),l=new Set(i.map(u=>u.element)),o=new Map;l.forEach(u=>{const c=qb(u);c.length&&(o.set(u,c),u.render())}),i.forEach(u=>u.measureInitialState()),l.forEach(u=>{u.render();const c=o.get(u);c&&c.forEach(([d,h])=>{u.getValue(d)?.set(h)})}),i.forEach(u=>u.measureEndState()),i.forEach(u=>{u.suspendedScrollY!==void 0&&window.scrollTo(0,u.suspendedScrollY)})}sf=!1,lf=!1,fi.forEach(i=>i.complete(of)),fi.clear()}function q0(){fi.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(sf=!0)})}function Gb(){of=!0,q0(),Y0(),of=!1}class Bf{constructor(l,o,u,c,d,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=o,this.name=u,this.motionValue=c,this.element=d,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?(fi.add(this),lf||(lf=!0,Rt.read(q0),Rt.resolveKeyframes(Y0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:o,element:u,motionValue:c}=this;if(l[0]===null){const d=c?.get(),h=l[l.length-1];if(d!==void 0)l[0]=d;else if(u&&o){const p=u.readValue(o,h);p!=null&&(l[0]=p)}l[0]===void 0&&(l[0]=h),c&&d===void 0&&c.set(l[0])}Vb(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),fi.delete(this)}cancel(){this.state==="scheduled"&&(fi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Xb=i=>i.startsWith("--");function Kb(i,l,o){Xb(l)?i.style.setProperty(l,o):i.style[l]=o}const Qb={};function G0(i,l){const o=p0(i);return()=>Qb[l]??o()}const Zb=G0(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),X0=G0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),gs=([i,l,o,u])=>`cubic-bezier(${i}, ${l}, ${o}, ${u})`,ny={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gs([0,.65,.55,1]),circOut:gs([.55,0,1,.45]),backIn:gs([.31,.01,.66,-.59]),backOut:gs([.33,1.53,.69,.99])};function K0(i,l){if(i)return typeof i=="function"?X0()?B0(i,l):"ease-out":C0(i)?gs(i):Array.isArray(i)?i.map(o=>K0(o,l)||ny.easeOut):ny[i]}function kb(i,l,o,{delay:u=0,duration:c=300,repeat:d=0,repeatType:h="loop",ease:p="easeOut",times:g}={},m=void 0){const x={[l]:o};g&&(x.offset=g);const b=K0(p,c);Array.isArray(b)&&(x.easing=b);const T={delay:u,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:d+1,direction:h==="reverse"?"alternate":"normal"};return m&&(T.pseudoElement=m),i.animate(x,T)}function Q0(i){return typeof i=="function"&&"applyToOptions"in i}function Jb({type:i,...l}){return Q0(i)&&X0()?i.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class Z0 extends _f{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!l)return;const{element:o,name:u,keyframes:c,pseudoElement:d,allowFlatten:h=!1,finalKeyframe:p,onComplete:g}=l;this.isPseudoElement=!!d,this.allowFlatten=h,this.options=l,wf(typeof l.type!="string");const m=Jb(l);this.animation=kb(o,u,c,m,d),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const x=Vf(c,this.options,p,this.speed);this.updateMotionValue?this.updateMotionValue(x):Kb(o,u,x),this.animation.cancel()}g?.(),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 an(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+an(l)}get time(){return an(Number(this.animation.currentTime)||0)}set time(l){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=pn(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&&Zb()?(this.animation.timeline=l,ln):o(this)}}const k0={anticipate:T0,backInOut:S0,circInOut:E0};function Fb(i){return i in k0}function Pb(i){typeof i.ease=="string"&&Fb(i.ease)&&(i.ease=k0[i.ease])}const Bc=10;class Wb extends Z0{constructor(l){Pb(l),H0(l),super(l),l.startTime!==void 0&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:o,onUpdate:u,onComplete:c,element:d,...h}=this.options;if(!o)return;if(l!==void 0){o.set(l);return}const p=new Uf({...h,autoplay:!1}),g=Math.max(Bc,ve.now()-this.startTime),m=Cn(0,Bc,g-Bc);o.setWithVelocity(p.sample(Math.max(0,g-m)).value,p.sample(g).value,m),p.stop()}}const ay=(i,l)=>l==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(yn.test(i)||i==="0")&&!i.startsWith("url("));function $b(i){const l=i[0];if(i.length===1)return!0;for(let o=0;o<i.length;o++)if(i[o]!==l)return!0}function Ib(i,l,o,u){const c=i[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const d=i[i.length-1],h=ay(c,l),p=ay(d,l);return!h||!p?!1:$b(i)||(o==="spring"||Q0(o))&&u}function uf(i){i.duration=0,i.type="keyframes"}const tS=new Set(["opacity","clipPath","filter","transform"]),eS=p0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function nS(i){const{motionValue:l,name:o,repeatDelay:u,repeatType:c,damping:d,type:h}=i;if(!(l?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:m}=l.owner.getProps();return eS()&&o&&tS.has(o)&&(o!=="transform"||!m)&&!g&&!u&&c!=="mirror"&&d!==0&&h!=="inertia"}const aS=40;class iS extends _f{constructor({autoplay:l=!0,delay:o=0,type:u="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:h="loop",keyframes:p,name:g,motionValue:m,element:x,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ve.now();const T={autoplay:l,delay:o,type:u,repeat:c,repeatDelay:d,repeatType:h,name:g,motionValue:m,element:x,...b},D=x?.KeyframeResolver||Bf;this.keyframeResolver=new D(p,(V,Y,X)=>this.onKeyframesResolved(V,Y,T,!X),g,m,x),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,o,u,c){this.keyframeResolver=void 0;const{name:d,type:h,velocity:p,delay:g,isHandoff:m,onUpdate:x}=u;this.resolvedAt=ve.now(),Ib(l,d,h,p)||((In.instantAnimations||!g)&&x?.(Vf(l,u,o)),l[0]=l[l.length-1],uf(u),u.repeat=0);const T={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>aS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...u,keyframes:l},D=!m&&nS(T),V=T.motionValue?.owner?.current,Y=D?new Wb({...T,element:V}):new Uf(T);Y.finished.then(()=>{this.notifyFinished()}).catch(ln),this.pendingTimeline&&(this.stopTimeline=Y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=Y}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(),Gb()),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 J0(i,l,o,u=0,c=1){const d=Array.from(i).sort((m,x)=>m.sortNodePosition(x)).indexOf(l),h=i.size,p=(h-1)*u;return typeof o=="function"?o(d,h):c===1?d*u:p-d*u}const lS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sS(i){const l=lS.exec(i);if(!l)return[,];const[,o,u,c]=l;return[`--${o??u}`,c]}function F0(i,l,o=1){const[u,c]=sS(i);if(!u)return;const d=window.getComputedStyle(l).getPropertyValue(u);if(d){const h=d.trim();return h0(h)?parseFloat(h):h}return Nf(c)?F0(c,l,o+1):c}const oS={type:"spring",stiffness:500,damping:25,restSpeed:10},uS=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),rS={type:"keyframes",duration:.8},cS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fS=(i,{keyframes:l})=>l.length>2?rS:hl.has(i)?i.startsWith("scale")?uS(l[1]):oS:cS,hS=i=>i!==null;function dS(i,{repeat:l,repeatType:o="loop"},u){const c=i.filter(hS),d=l&&o!=="loop"&&l%2===1?0:c.length-1;return c[d]}function P0(i,l){if(i?.inherit&&l){const{inherit:o,...u}=i;return{...l,...u}}return i}function Lf(i,l){const o=i?.[l]??i?.default??i;return o!==i?P0(o,i):o}function mS({when:i,delay:l,delayChildren:o,staggerChildren:u,staggerDirection:c,repeat:d,repeatType:h,repeatDelay:p,from:g,elapsed:m,...x}){return!!Object.keys(x).length}const Hf=(i,l,o,u={},c,d)=>h=>{const p=Lf(u,i)||{},g=p.delay||u.delay||0;let{elapsed:m=0}=u;m=m-pn(g);const x={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:l.getVelocity(),...p,delay:-m,onUpdate:T=>{l.set(T),p.onUpdate&&p.onUpdate(T)},onComplete:()=>{h(),p.onComplete&&p.onComplete()},name:i,motionValue:l,element:d?void 0:c};mS(p)||Object.assign(x,fS(i,x)),x.duration&&(x.duration=pn(x.duration)),x.repeatDelay&&(x.repeatDelay=pn(x.repeatDelay)),x.from!==void 0&&(x.keyframes[0]=x.from);let b=!1;if((x.type===!1||x.duration===0&&!x.repeatDelay)&&(uf(x),x.delay===0&&(b=!0)),(In.instantAnimations||In.skipAnimations||c?.shouldSkipAnimations)&&(b=!0,uf(x),x.delay=0),x.allowFlatten=!p.type&&!p.ease,b&&!d&&l.get()!==void 0){const T=dS(x.keyframes,p);if(T!==void 0){Rt.update(()=>{x.onUpdate(T),x.onComplete()});return}}return p.isSync?new Uf(x):new iS(x)};function iy(i){const l=[{},{}];return i?.values.forEach((o,u)=>{l[0][u]=o.get(),l[1][u]=o.getVelocity()}),l}function Yf(i,l,o,u){if(typeof l=="function"){const[c,d]=iy(u);l=l(o!==void 0?o:i.custom,c,d)}if(typeof l=="string"&&(l=i.variants&&i.variants[l]),typeof l=="function"){const[c,d]=iy(u);l=l(o!==void 0?o:i.custom,c,d)}return l}function ul(i,l,o){const u=i.getProps();return Yf(u,l,o!==void 0?o:u.custom,i)}const W0=new Set(["width","height","top","left","right","bottom",...fl]),ly=30,pS=i=>!isNaN(parseFloat(i));class yS{constructor(l,o={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=u=>{const c=ve.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(u),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=o.owner}setCurrent(l){this.current=l,this.updatedAt=ve.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=pS(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 Cf);const u=this.events[l].add(o);return l==="change"?()=>{u(),Rt.read(()=>{this.events.change.getSize()||this.stop()})}:u}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,u){this.set(o),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-u}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=ve.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>ly)return 0;const o=Math.min(this.updatedAt-this.prevUpdatedAt,ly);return y0(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 rl(i,l){return new yS(i,l)}const rf=i=>Array.isArray(i);function gS(i,l,o){i.hasValue(l)?i.getValue(l).set(o):i.addValue(l,rl(o))}function vS(i){return rf(i)?i[i.length-1]||0:i}function xS(i,l){const o=ul(i,l);let{transitionEnd:u={},transition:c={},...d}=o||{};d={...d,...u};for(const h in d){const p=vS(d[h]);gS(i,h,p)}}const de=i=>!!(i&&i.getVelocity);function bS(i){return!!(de(i)&&i.add)}function cf(i,l){const o=i.getValue("willChange");if(bS(o))return o.add(l);if(!o&&In.WillChange){const u=new In.WillChange("auto");i.addValue("willChange",u),u.add(l)}}function qf(i){return i.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const SS="framerAppearId",$0="data-"+qf(SS);function I0(i){return i.props[$0]}function TS({protectedKeys:i,needsAnimating:l},o){const u=i.hasOwnProperty(o)&&l[o]!==!0;return l[o]=!1,u}function tg(i,l,{delay:o=0,transitionOverride:u,type:c}={}){let{transition:d,transitionEnd:h,...p}=l;const g=i.getDefaultTransition();d=d?P0(d,g):g;const m=d?.reduceMotion;u&&(d=u);const x=[],b=c&&i.animationState&&i.animationState.getState()[c];for(const T in p){const D=i.getValue(T,i.latestValues[T]??null),V=p[T];if(V===void 0||b&&TS(b,T))continue;const Y={delay:o,...Lf(d||{},T)},X=D.get();if(X!==void 0&&!D.isAnimating&&!Array.isArray(V)&&V===X&&!Y.velocity)continue;let q=!1;if(window.MotionHandoffAnimation){const J=I0(i);if(J){const Z=window.MotionHandoffAnimation(J,T,Rt);Z!==null&&(Y.startTime=Z,q=!0)}}cf(i,T);const K=m??i.shouldReduceMotion;D.start(Hf(T,D,V,K&&W0.has(T)?{type:!1}:Y,i,q));const G=D.animation;G&&x.push(G)}if(h){const T=()=>Rt.update(()=>{h&&xS(i,h)});x.length?Promise.all(x).then(T):T()}return x}function ff(i,l,o={}){const u=ul(i,l,o.type==="exit"?i.presenceContext?.custom:void 0);let{transition:c=i.getDefaultTransition()||{}}=u||{};o.transitionOverride&&(c=o.transitionOverride);const d=u?()=>Promise.all(tg(i,u,o)):()=>Promise.resolve(),h=i.variantChildren&&i.variantChildren.size?(g=0)=>{const{delayChildren:m=0,staggerChildren:x,staggerDirection:b}=c;return AS(i,l,g,m,x,b,o)}:()=>Promise.resolve(),{when:p}=c;if(p){const[g,m]=p==="beforeChildren"?[d,h]:[h,d];return g().then(()=>m())}else return Promise.all([d(),h(o.delay)])}function AS(i,l,o=0,u=0,c=0,d=1,h){const p=[];for(const g of i.variantChildren)g.notify("AnimationStart",l),p.push(ff(g,l,{...h,delay:o+(typeof u=="function"?0:u)+J0(i.variantChildren,g,u,c,d)}).then(()=>g.notify("AnimationComplete",l)));return Promise.all(p)}function ES(i,l,o={}){i.notify("AnimationStart",l);let u;if(Array.isArray(l)){const c=l.map(d=>ff(i,d,o));u=Promise.all(c)}else if(typeof l=="string")u=ff(i,l,o);else{const c=typeof l=="function"?ul(i,l,o.custom):l;u=Promise.all(tg(i,c,o))}return u.then(()=>{i.notify("AnimationComplete",l)})}const wS={test:i=>i==="auto",parse:i=>i},eg=i=>l=>l.test(i),ng=[cl,I,wn,za,tb,I1,wS],sy=i=>ng.find(eg(i));function CS(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||m0(i):!0}const MS=new Set(["brightness","contrast","saturate","opacity"]);function jS(i){const[l,o]=i.slice(0,-1).split("(");if(l==="drop-shadow")return i;const[u]=o.match(Df)||[];if(!u)return i;const c=o.replace(u,"");let d=MS.has(l)?1:0;return u!==o&&(d*=100),l+"("+d+c+")"}const NS=/\b([a-z-]*)\(.*?\)/gu,hf={...yn,getAnimatableNone:i=>{const l=i.match(NS);return l?l.map(jS).join(" "):i}},df={...yn,getAnimatableNone:i=>{const l=yn.parse(i);return yn.createTransformer(i)(l.map(u=>typeof u=="number"?0:typeof u=="object"?{...u,alpha:1}:u))}},oy={...cl,transform:Math.round},DS={rotate:za,rotateX:za,rotateY:za,rotateZ:za,scale:Fo,scaleX:Fo,scaleY:Fo,scaleZ:Fo,skew:za,skewX:za,skewY:za,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:As,originX:kp,originY:kp,originZ:I},Gf={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,...DS,zIndex:oy,fillOpacity:As,strokeOpacity:As,numOctaves:oy},OS={...Gf,color:Wt,backgroundColor:Wt,outlineColor:Wt,fill:Wt,stroke:Wt,borderColor:Wt,borderTopColor:Wt,borderRightColor:Wt,borderBottomColor:Wt,borderLeftColor:Wt,filter:hf,WebkitFilter:hf,mask:df,WebkitMask:df},ag=i=>OS[i],zS=new Set([hf,df]);function ig(i,l){let o=ag(i);return zS.has(o)||(o=yn),o.getAnimatableNone?o.getAnimatableNone(l):void 0}const RS=new Set(["auto","none","0"]);function VS(i,l,o){let u=0,c;for(;u<i.length&&!c;){const d=i[u];typeof d=="string"&&!RS.has(d)&&Es(d).values.length&&(c=i[u]),u++}if(c&&o)for(const d of l)i[d]=ig(o,c)}class _S extends Bf{constructor(l,o,u,c,d){super(l,o,u,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:o,name:u}=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(),Nf(b))){const T=F0(b,o.current);T!==void 0&&(l[x]=T),x===l.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!W0.has(u)||l.length!==2)return;const[c,d]=l,h=sy(c),p=sy(d),g=Zp(c),m=Zp(d);if(g!==m&&Ra[u]){this.needsMeasurement=!0;return}if(h!==p)if(ey(h)&&ey(p))for(let x=0;x<l.length;x++){const b=l[x];typeof b=="string"&&(l[x]=parseFloat(b))}else Ra[u]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:o}=this,u=[];for(let c=0;c<l.length;c++)(l[c]===null||CS(l[c]))&&u.push(c);u.length&&VS(l,u,o)}measureInitialState(){const{element:l,unresolvedKeyframes:o,name:u}=this;if(!l||!l.current)return;u==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ra[u](l.measureViewportBox(),window.getComputedStyle(l.current)),o[0]=this.measuredOrigin;const c=o[o.length-1];c!==void 0&&l.getValue(u,c).jump(c,!1)}measureEndState(){const{element:l,name:o,unresolvedKeyframes:u}=this;if(!l||!l.current)return;const c=l.getValue(o);c&&c.jump(this.measuredOrigin,!1);const d=u.length-1,h=u[d];u[d]=Ra[o](l.measureViewportBox(),window.getComputedStyle(l.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),this.removedTransforms?.length&&this.removedTransforms.forEach(([p,g])=>{l.getValue(p).set(g)}),this.resolveNoneKeyframes()}}const US=new Set(["opacity","clipPath","filter","transform"]);function lg(i,l,o){if(i==null)return[];if(i instanceof EventTarget)return[i];if(typeof i=="string"){let u=document;const c=o?.[i]??u.querySelectorAll(i);return c?Array.from(c):[]}return Array.from(i).filter(u=>u!=null)}const sg=(i,l)=>l&&typeof i=="number"?l.transform(i):i;function mf(i){return d0(i)&&"offsetHeight"in i}const{schedule:Xf}=M0(queueMicrotask,!1),mn={x:!1,y:!1};function og(){return mn.x||mn.y}function BS(i){return i==="x"||i==="y"?mn[i]?null:(mn[i]=!0,()=>{mn[i]=!1}):mn.x||mn.y?null:(mn.x=mn.y=!0,()=>{mn.x=mn.y=!1})}function ug(i,l){const o=lg(i),u=new AbortController,c={passive:!0,...l,signal:u.signal};return[o,c,()=>u.abort()]}function LS(i){return!(i.pointerType==="touch"||og())}function HS(i,l,o={}){const[u,c,d]=ug(i,o);return u.forEach(h=>{let p=!1,g=!1,m;const x=()=>{h.removeEventListener("pointerleave",V)},b=X=>{m&&(m(X),m=void 0),x()},T=X=>{p=!1,window.removeEventListener("pointerup",T),window.removeEventListener("pointercancel",T),g&&(g=!1,b(X))},D=()=>{p=!0,window.addEventListener("pointerup",T,c),window.addEventListener("pointercancel",T,c)},V=X=>{if(X.pointerType!=="touch"){if(p){g=!0;return}b(X)}},Y=X=>{if(!LS(X))return;g=!1;const q=l(h,X);typeof q=="function"&&(m=q,h.addEventListener("pointerleave",V,c))};h.addEventListener("pointerenter",Y,c),h.addEventListener("pointerdown",D,c)}),d}const rg=(i,l)=>l?i===l?!0:rg(i,l.parentElement):!1,Kf=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,YS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function qS(i){return YS.has(i.tagName)||i.isContentEditable===!0}const GS=new Set(["INPUT","SELECT","TEXTAREA"]);function XS(i){return GS.has(i.tagName)||i.isContentEditable===!0}const Io=new WeakSet;function uy(i){return l=>{l.key==="Enter"&&i(l)}}function Lc(i,l){i.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const KS=(i,l)=>{const o=i.currentTarget;if(!o)return;const u=uy(()=>{if(Io.has(o))return;Lc(o,"down");const c=uy(()=>{Lc(o,"up")}),d=()=>Lc(o,"cancel");o.addEventListener("keyup",c,l),o.addEventListener("blur",d,l)});o.addEventListener("keydown",u,l),o.addEventListener("blur",()=>o.removeEventListener("keydown",u),l)};function ry(i){return Kf(i)&&!og()}const cy=new WeakSet;function QS(i,l,o={}){const[u,c,d]=ug(i,o),h=p=>{const g=p.currentTarget;if(!ry(p)||cy.has(p))return;Io.add(g),o.stopPropagation&&cy.add(p);const m=l(g,p),x=(D,V)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",T),Io.has(g)&&Io.delete(g),ry(D)&&typeof m=="function"&&m(D,{success:V})},b=D=>{x(D,g===window||g===document||o.useGlobalTarget||rg(g,D.target))},T=D=>{x(D,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",T,c)};return u.forEach(p=>{(o.useGlobalTarget?window:p).addEventListener("pointerdown",h,c),mf(p)&&(p.addEventListener("focus",m=>KS(m,c)),!qS(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),d}function Qf(i){return d0(i)&&"ownerSVGElement"in i}const tu=new WeakMap;let eu;const cg=(i,l,o)=>(u,c)=>c&&c[0]?c[0][i+"Size"]:Qf(u)&&"getBBox"in u?u.getBBox()[l]:u[o],ZS=cg("inline","width","offsetWidth"),kS=cg("block","height","offsetHeight");function JS({target:i,borderBoxSize:l}){tu.get(i)?.forEach(o=>{o(i,{get width(){return ZS(i,l)},get height(){return kS(i,l)}})})}function FS(i){i.forEach(JS)}function PS(){typeof ResizeObserver>"u"||(eu=new ResizeObserver(FS))}function WS(i,l){eu||PS();const o=lg(i);return o.forEach(u=>{let c=tu.get(u);c||(c=new Set,tu.set(u,c)),c.add(l),eu?.observe(u)}),()=>{o.forEach(u=>{const c=tu.get(u);c?.delete(l),c?.size||eu?.unobserve(u)})}}const nu=new Set;let il;function $S(){il=()=>{const i={get width(){return window.innerWidth},get height(){return window.innerHeight}};nu.forEach(l=>l(i))},window.addEventListener("resize",il)}function IS(i){return nu.add(i),il||$S(),()=>{nu.delete(i),!nu.size&&typeof il=="function"&&(window.removeEventListener("resize",il),il=void 0)}}function fy(i,l){return typeof i=="function"?IS(i):WS(i,l)}function t2(i){return Qf(i)&&i.tagName==="svg"}const e2=[...ng,Wt,yn],n2=i=>e2.find(eg(i)),hy=()=>({translate:0,scale:1,origin:0,originPoint:0}),ll=()=>({x:hy(),y:hy()}),dy=()=>({min:0,max:0}),te=()=>({x:dy(),y:dy()}),a2=new WeakMap;function mu(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function ws(i){return typeof i=="string"||Array.isArray(i)}const Zf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],kf=["initial",...Zf];function pu(i){return mu(i.animate)||kf.some(l=>ws(i[l]))}function fg(i){return!!(pu(i)||i.variants)}function i2(i,l,o){for(const u in l){const c=l[u],d=o[u];if(de(c))i.addValue(u,c);else if(de(d))i.addValue(u,rl(c,{owner:i}));else if(d!==c)if(i.hasValue(u)){const h=i.getValue(u);h.liveStyle===!0?h.jump(c):h.hasAnimated||h.set(c)}else{const h=i.getStaticValue(u);i.addValue(u,rl(h!==void 0?h:c,{owner:i}))}}for(const u in o)l[u]===void 0&&i.removeValue(u);return l}const pf={current:null},hg={current:!1},l2=typeof window<"u";function s2(){if(hg.current=!0,!!l2)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),l=()=>pf.current=i.matches;i.addEventListener("change",l),l()}else pf.current=!1}const my=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ru={};function dg(i){ru=i}function o2(){return ru}class u2{scrapeMotionValuesFromProps(l,o,u){return{}}constructor({parent:l,props:o,presenceContext:u,reducedMotionConfig:c,skipAnimations:d,blockInitialAnimation:h,visualState:p},g={}){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=Bf,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 D=ve.now();this.renderScheduledAt<D&&(this.renderScheduledAt=D,Rt.render(this.render,!1,!0))};const{latestValues:m,renderState:x}=p;this.latestValues=m,this.baseTarget={...m},this.initialValues=o.initial?{...m}:{},this.renderState=x,this.parent=l,this.props=o,this.presenceContext=u,this.depth=l?l.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=d,this.options=g,this.blockInitialAnimation=!!h,this.isControllingVariants=pu(o),this.isVariantNode=fg(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:b,...T}=this.scrapeMotionValuesFromProps(o,{},this);for(const D in T){const V=T[D];m[D]!==void 0&&de(V)&&V.set(m[D])}}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,a2.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,u)=>this.bindToMotionValue(u,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(hg.current||s2(),this.shouldReduceMotion=pf.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(),Va(this.notifyUpdate),Va(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&&US.has(l)&&this.current instanceof HTMLElement){const{factory:h,keyframes:p,times:g,ease:m,duration:x}=o.accelerate,b=new Z0({element:this.current,name:l,keyframes:p,times:g,ease:m,duration:pn(x)}),T=h(b);this.valueSubscriptions.set(l,()=>{T(),b.cancel()});return}const u=hl.has(l);u&&this.onBindTransform&&this.onBindTransform();const c=o.on("change",h=>{this.latestValues[l]=h,this.props.onUpdate&&Rt.preRender(this.notifyUpdate),u&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,l,o)),this.valueSubscriptions.set(l,()=>{c(),d&&d(),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 ru){const o=ru[l];if(!o)continue;const{isEnabled:u,Feature:c}=o;if(!this.features[l]&&c&&u(this.props)&&(this.features[l]=new c(this)),this.features[l]){const d=this.features[l];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):te()}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 u=0;u<my.length;u++){const c=my[u];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,h=l[d];h&&(this.propEventSubscriptions[c]=this.on(c,h))}this.prevMotionValues=i2(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 u=this.values.get(l);o!==u&&(u&&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 u=this.values.get(l);return u===void 0&&o!==void 0&&(u=rl(o===null?void 0:o,{owner:this}),this.addValue(l,u)),u}readValue(l,o){let u=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return u!=null&&(typeof u=="string"&&(h0(u)||m0(u))?u=parseFloat(u):!n2(u)&&yn.test(o)&&(u=ig(l,o)),this.setBaseTarget(l,de(u)?u.get():u)),de(u)?u.get():u}setBaseTarget(l,o){this.baseTarget[l]=o}getBaseTarget(l){const{initial:o}=this.props;let u;if(typeof o=="string"||typeof o=="object"){const d=Yf(this.props,o,this.presenceContext?.custom);d&&(u=d[l])}if(o&&u!==void 0)return u;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!de(c)?c:this.initialValues[l]!==void 0&&u===void 0?void 0:this.baseTarget[l]}on(l,o){return this.events[l]||(this.events[l]=new Cf),this.events[l].add(o)}notify(l,...o){this.events[l]&&this.events[l].notify(...o)}scheduleRenderMicrotask(){Xf.render(this.render)}}class mg extends u2{constructor(){super(...arguments),this.KeyframeResolver=_S}sortInstanceNodePosition(l,o){return l.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(l,o){const u=l.style;return u?u[o]:void 0}removeValueFromRenderState(l,{vars:o,style:u}){delete o[l],delete u[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;de(l)&&(this.childSubscription=l.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}}class _a{constructor(l){this.isMounted=!1,this.node=l}update(){}}function pg({top:i,left:l,right:o,bottom:u}){return{x:{min:l,max:o},y:{min:i,max:u}}}function r2({x:i,y:l}){return{top:l.min,right:i.max,bottom:l.max,left:i.min}}function c2(i,l){if(!l)return i;const o=l({x:i.left,y:i.top}),u=l({x:i.right,y:i.bottom});return{top:o.y,left:o.x,bottom:u.y,right:u.x}}function Hc(i){return i===void 0||i===1}function yf({scale:i,scaleX:l,scaleY:o}){return!Hc(i)||!Hc(l)||!Hc(o)}function ui(i){return yf(i)||yg(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function yg(i){return py(i.x)||py(i.y)}function py(i){return i&&i!=="0%"}function cu(i,l,o){const u=i-o,c=l*u;return o+c}function yy(i,l,o,u,c){return c!==void 0&&(i=cu(i,c,u)),cu(i,o,u)+l}function gf(i,l=0,o=1,u,c){i.min=yy(i.min,l,o,u,c),i.max=yy(i.max,l,o,u,c)}function gg(i,{x:l,y:o}){gf(i.x,l.translate,l.scale,l.originPoint),gf(i.y,o.translate,o.scale,o.originPoint)}const gy=.999999999999,vy=1.0000000000001;function f2(i,l,o,u=!1){const c=o.length;if(!c)return;l.x=l.y=1;let d,h;for(let p=0;p<c;p++){d=o[p],h=d.projectionDelta;const{visualElement:g}=d.options;g&&g.props.style&&g.props.style.display==="contents"||(u&&d.options.layoutScroll&&d.scroll&&d!==d.root&&ol(i,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),h&&(l.x*=h.x.scale,l.y*=h.y.scale,gg(i,h)),u&&ui(d.latestValues)&&ol(i,d.latestValues))}l.x<vy&&l.x>gy&&(l.x=1),l.y<vy&&l.y>gy&&(l.y=1)}function sl(i,l){i.min=i.min+l,i.max=i.max+l}function xy(i,l,o,u,c=.5){const d=Ht(i.min,i.max,c);gf(i,l,o,d,u)}function ol(i,l){xy(i.x,l.x,l.scaleX,l.scale,l.originX),xy(i.y,l.y,l.scaleY,l.scale,l.originY)}function vg(i,l){return pg(c2(i.getBoundingClientRect(),l))}function h2(i,l,o){const u=vg(i,o),{scroll:c}=l;return c&&(sl(u.x,c.offset.x),sl(u.y,c.offset.y)),u}const d2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},m2=fl.length;function p2(i,l,o){let u="",c=!0;for(let d=0;d<m2;d++){const h=fl[d],p=i[h];if(p===void 0)continue;let g=!0;if(typeof p=="number")g=p===(h.startsWith("scale")?1:0);else{const m=parseFloat(p);g=h.startsWith("scale")?m===1:m===0}if(!g||o){const m=sg(p,Gf[h]);if(!g){c=!1;const x=d2[h]||h;u+=`${x}(${m}) `}o&&(l[h]=m)}}return u=u.trim(),o?u=o(l,c?"":u):c&&(u="none"),u}function Jf(i,l,o){const{style:u,vars:c,transformOrigin:d}=i;let h=!1,p=!1;for(const g in l){const m=l[g];if(hl.has(g)){h=!0;continue}else if(N0(g)){c[g]=m;continue}else{const x=sg(m,Gf[g]);g.startsWith("origin")?(p=!0,d[g]=x):u[g]=x}}if(l.transform||(h||o?u.transform=p2(l,i.transform,o):u.transform&&(u.transform="none")),p){const{originX:g="50%",originY:m="50%",originZ:x=0}=d;u.transformOrigin=`${g} ${m} ${x}`}}function xg(i,{style:l,vars:o},u,c){const d=i.style;let h;for(h in l)d[h]=l[h];c?.applyProjectionStyles(d,u);for(h in o)d.setProperty(h,o[h])}function by(i,l){return l.max===l.min?0:i/(l.max-l.min)*100}const ps={correct:(i,l)=>{if(!l.target)return i;if(typeof i=="string")if(I.test(i))i=parseFloat(i);else return i;const o=by(i,l.target.x),u=by(i,l.target.y);return`${o}% ${u}%`}},y2={correct:(i,{treeScale:l,projectionDelta:o})=>{const u=i,c=yn.parse(i);if(c.length>5)return u;const d=yn.createTransformer(i),h=typeof c[0]!="number"?1:0,p=o.x.scale*l.x,g=o.y.scale*l.y;c[0+h]/=p,c[1+h]/=g;const m=Ht(p,g,.5);return typeof c[2+h]=="number"&&(c[2+h]/=m),typeof c[3+h]=="number"&&(c[3+h]/=m),d(c)}},vf={borderRadius:{...ps,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ps,borderTopRightRadius:ps,borderBottomLeftRadius:ps,borderBottomRightRadius:ps,boxShadow:y2};function bg(i,{layout:l,layoutId:o}){return hl.has(i)||i.startsWith("origin")||(l||o!==void 0)&&(!!vf[i]||i==="opacity")}function Ff(i,l,o){const u=i.style,c=l?.style,d={};if(!u)return d;for(const h in u)(de(u[h])||c&&de(c[h])||bg(h,i)||o?.getValue(h)?.liveStyle!==void 0)&&(d[h]=u[h]);return d}function g2(i){return window.getComputedStyle(i)}class v2 extends mg{constructor(){super(...arguments),this.type="html",this.renderInstance=xg}readValueFromInstance(l,o){if(hl.has(o))return this.projection?.isProjecting?nf(o):Bb(l,o);{const u=g2(l),c=(N0(o)?u.getPropertyValue(o):u[o])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:o}){return vg(l,o)}build(l,o,u){Jf(l,o,u.transformTemplate)}scrapeMotionValuesFromProps(l,o,u){return Ff(l,o,u)}}const x2={offset:"stroke-dashoffset",array:"stroke-dasharray"},b2={offset:"strokeDashoffset",array:"strokeDasharray"};function S2(i,l,o=1,u=0,c=!0){i.pathLength=1;const d=c?x2:b2;i[d.offset]=`${-u}`,i[d.array]=`${l} ${o}`}const T2=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Sg(i,{attrX:l,attrY:o,attrScale:u,pathLength:c,pathSpacing:d=1,pathOffset:h=0,...p},g,m,x){if(Jf(i,p,m),g){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:b,style:T}=i;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 D of T2)b[D]!==void 0&&(T[D]=b[D],delete b[D]);l!==void 0&&(b.x=l),o!==void 0&&(b.y=o),u!==void 0&&(b.scale=u),c!==void 0&&S2(b,c,d,h,!1)}const Tg=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"]),Ag=i=>typeof i=="string"&&i.toLowerCase()==="svg";function A2(i,l,o,u){xg(i,l,void 0,u);for(const c in l.attrs)i.setAttribute(Tg.has(c)?c:qf(c),l.attrs[c])}function Eg(i,l,o){const u=Ff(i,l,o);for(const c in i)if(de(i[c])||de(l[c])){const d=fl.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;u[d]=i[c]}return u}class E2 extends mg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te}getBaseTargetFromProps(l,o){return l[o]}readValueFromInstance(l,o){if(hl.has(o)){const u=ag(o);return u&&u.default||0}return o=Tg.has(o)?o:qf(o),l.getAttribute(o)}scrapeMotionValuesFromProps(l,o,u){return Eg(l,o,u)}build(l,o,u){Sg(l,o,this.isSVGTag,u.transformTemplate,u.style)}renderInstance(l,o,u,c){A2(l,o,u,c)}mount(l){this.isSVGTag=Ag(l.tagName),super.mount(l)}}const w2=kf.length;function wg(i){if(!i)return;if(!i.isControllingVariants){const o=i.parent?wg(i.parent)||{}:{};return i.props.initial!==void 0&&(o.initial=i.props.initial),o}const l={};for(let o=0;o<w2;o++){const u=kf[o],c=i.props[u];(ws(c)||c===!1)&&(l[u]=c)}return l}function Cg(i,l){if(!Array.isArray(l))return!1;const o=l.length;if(o!==i.length)return!1;for(let u=0;u<o;u++)if(l[u]!==i[u])return!1;return!0}const C2=[...Zf].reverse(),M2=Zf.length;function j2(i){return l=>Promise.all(l.map(({animation:o,options:u})=>ES(i,o,u)))}function N2(i){let l=j2(i),o=Sy(),u=!0;const c=g=>(m,x)=>{const b=ul(i,x,g==="exit"?i.presenceContext?.custom:void 0);if(b){const{transition:T,transitionEnd:D,...V}=b;m={...m,...V,...D}}return m};function d(g){l=g(i)}function h(g){const{props:m}=i,x=wg(i.parent)||{},b=[],T=new Set;let D={},V=1/0;for(let X=0;X<M2;X++){const q=C2[X],K=o[q],G=m[q]!==void 0?m[q]:x[q],J=ws(G),Z=q===g?K.isActive:null;Z===!1&&(V=X);let lt=G===x[q]&&G!==m[q]&&J;if(lt&&u&&i.manuallyAnimateOnMount&&(lt=!1),K.protectedKeys={...D},!K.isActive&&Z===null||!G&&!K.prevProp||mu(G)||typeof G=="boolean")continue;if(q==="exit"&&K.isActive&&Z!==!0){K.prevResolvedValues&&(D={...D,...K.prevResolvedValues});continue}const k=D2(K.prevProp,G);let F=k||q===g&&K.isActive&&!lt&&J||X>V&&J,st=!1;const bt=Array.isArray(G)?G:[G];let Et=bt.reduce(c(q),{});Z===!1&&(Et={});const{prevResolvedValues:Bt={}}=K,ae={...Bt,...Et},vt=H=>{F=!0,T.has(H)&&(st=!0,T.delete(H)),K.needsAnimating[H]=!0;const $=i.getValue(H);$&&($.liveStyle=!1)};for(const H in ae){const $=Et[H],ut=Bt[H];if(D.hasOwnProperty(H))continue;let ht=!1;rf($)&&rf(ut)?ht=!Cg($,ut):ht=$!==ut,ht?$!=null?vt(H):T.add(H):$!==void 0&&T.has(H)?vt(H):K.protectedKeys[H]=!0}K.prevProp=G,K.prevResolvedValues=Et,K.isActive&&(D={...D,...Et}),u&&i.blockInitialAnimation&&(F=!1);const $t=lt&&k;F&&(!$t||st)&&b.push(...bt.map(H=>{const $={type:q};if(typeof H=="string"&&u&&!$t&&i.manuallyAnimateOnMount&&i.parent){const{parent:ut}=i,ht=ul(ut,H);if(ut.enteringChildren&&ht){const{delayChildren:E}=ht.transition||{};$.delay=J0(ut.enteringChildren,i,E)}}return{animation:H,options:$}}))}if(T.size){const X={};if(typeof m.initial!="boolean"){const q=ul(i,Array.isArray(m.initial)?m.initial[0]:m.initial);q&&q.transition&&(X.transition=q.transition)}T.forEach(q=>{const K=i.getBaseTarget(q),G=i.getValue(q);G&&(G.liveStyle=!0),X[q]=K??null}),b.push({animation:X})}let Y=!!b.length;return u&&(m.initial===!1||m.initial===m.animate)&&!i.manuallyAnimateOnMount&&(Y=!1),u=!1,Y?l(b):Promise.resolve()}function p(g,m){if(o[g].isActive===m)return Promise.resolve();i.variantChildren?.forEach(b=>b.animationState?.setActive(g,m)),o[g].isActive=m;const x=h(g);for(const b in o)o[b].protectedKeys={};return x}return{animateChanges:h,setActive:p,setAnimateFunction:d,getState:()=>o,reset:()=>{o=Sy()}}}function D2(i,l){return typeof l=="string"?l!==i:Array.isArray(l)?!Cg(l,i):!1}function oi(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Sy(){return{animate:oi(!0),whileInView:oi(),whileHover:oi(),whileTap:oi(),whileDrag:oi(),whileFocus:oi(),exit:oi()}}function Ty(i,l){i.min=l.min,i.max=l.max}function dn(i,l){Ty(i.x,l.x),Ty(i.y,l.y)}function Ay(i,l){i.translate=l.translate,i.scale=l.scale,i.originPoint=l.originPoint,i.origin=l.origin}const Mg=1e-4,O2=1-Mg,z2=1+Mg,jg=.01,R2=0-jg,V2=0+jg;function xe(i){return i.max-i.min}function _2(i,l,o){return Math.abs(i-l)<=o}function Ey(i,l,o,u=.5){i.origin=u,i.originPoint=Ht(l.min,l.max,i.origin),i.scale=xe(o)/xe(l),i.translate=Ht(o.min,o.max,i.origin)-i.originPoint,(i.scale>=O2&&i.scale<=z2||isNaN(i.scale))&&(i.scale=1),(i.translate>=R2&&i.translate<=V2||isNaN(i.translate))&&(i.translate=0)}function bs(i,l,o,u){Ey(i.x,l.x,o.x,u?u.originX:void 0),Ey(i.y,l.y,o.y,u?u.originY:void 0)}function wy(i,l,o){i.min=o.min+l.min,i.max=i.min+xe(l)}function U2(i,l,o){wy(i.x,l.x,o.x),wy(i.y,l.y,o.y)}function Cy(i,l,o){i.min=l.min-o.min,i.max=i.min+xe(l)}function fu(i,l,o){Cy(i.x,l.x,o.x),Cy(i.y,l.y,o.y)}function My(i,l,o,u,c){return i-=l,i=cu(i,1/o,u),c!==void 0&&(i=cu(i,1/c,u)),i}function B2(i,l=0,o=1,u=.5,c,d=i,h=i){if(wn.test(l)&&(l=parseFloat(l),l=Ht(h.min,h.max,l/100)-h.min),typeof l!="number")return;let p=Ht(d.min,d.max,u);i===d&&(p-=l),i.min=My(i.min,l,o,p,c),i.max=My(i.max,l,o,p,c)}function jy(i,l,[o,u,c],d,h){B2(i,l[o],l[u],l[c],l.scale,d,h)}const L2=["x","scaleX","originX"],H2=["y","scaleY","originY"];function Ny(i,l,o,u){jy(i.x,l,L2,o?o.x:void 0,u?u.x:void 0),jy(i.y,l,H2,o?o.y:void 0,u?u.y:void 0)}function Dy(i){return i.translate===0&&i.scale===1}function Ng(i){return Dy(i.x)&&Dy(i.y)}function Oy(i,l){return i.min===l.min&&i.max===l.max}function Y2(i,l){return Oy(i.x,l.x)&&Oy(i.y,l.y)}function zy(i,l){return Math.round(i.min)===Math.round(l.min)&&Math.round(i.max)===Math.round(l.max)}function Dg(i,l){return zy(i.x,l.x)&&zy(i.y,l.y)}function Ry(i){return xe(i.x)/xe(i.y)}function Vy(i,l){return i.translate===l.translate&&i.scale===l.scale&&i.originPoint===l.originPoint}function En(i){return[i("x"),i("y")]}function q2(i,l,o){let u="";const c=i.x.translate/l.x,d=i.y.translate/l.y,h=o?.z||0;if((c||d||h)&&(u=`translate3d(${c}px, ${d}px, ${h}px) `),(l.x!==1||l.y!==1)&&(u+=`scale(${1/l.x}, ${1/l.y}) `),o){const{transformPerspective:m,rotate:x,rotateX:b,rotateY:T,skewX:D,skewY:V}=o;m&&(u=`perspective(${m}px) ${u}`),x&&(u+=`rotate(${x}deg) `),b&&(u+=`rotateX(${b}deg) `),T&&(u+=`rotateY(${T}deg) `),D&&(u+=`skewX(${D}deg) `),V&&(u+=`skewY(${V}deg) `)}const p=i.x.scale*l.x,g=i.y.scale*l.y;return(p!==1||g!==1)&&(u+=`scale(${p}, ${g})`),u||"none"}const Og=["TopLeft","TopRight","BottomLeft","BottomRight"],G2=Og.length,_y=i=>typeof i=="string"?parseFloat(i):i,Uy=i=>typeof i=="number"||I.test(i);function X2(i,l,o,u,c,d){c?(i.opacity=Ht(0,o.opacity??1,K2(u)),i.opacityExit=Ht(l.opacity??1,0,Q2(u))):d&&(i.opacity=Ht(l.opacity??1,o.opacity??1,u));for(let h=0;h<G2;h++){const p=`border${Og[h]}Radius`;let g=By(l,p),m=By(o,p);if(g===void 0&&m===void 0)continue;g||(g=0),m||(m=0),g===0||m===0||Uy(g)===Uy(m)?(i[p]=Math.max(Ht(_y(g),_y(m),u),0),(wn.test(m)||wn.test(g))&&(i[p]+="%")):i[p]=m}(l.rotate||o.rotate)&&(i.rotate=Ht(l.rotate||0,o.rotate||0,u))}function By(i,l){return i[l]!==void 0?i[l]:i.borderRadius}const K2=zg(0,.5,A0),Q2=zg(.5,.95,ln);function zg(i,l,o){return u=>u<i?0:u>l?1:o(Ts(i,l,u))}function Z2(i,l,o){const u=de(i)?i:rl(i);return u.start(Hf("",u,l,o)),u.animation}function Cs(i,l,o,u={passive:!0}){return i.addEventListener(l,o,u),()=>i.removeEventListener(l,o)}const k2=(i,l)=>i.depth-l.depth;class J2{constructor(){this.children=[],this.isDirty=!1}add(l){Ef(this.children,l),this.isDirty=!0}remove(l){lu(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(k2),this.isDirty=!1,this.children.forEach(l)}}function F2(i,l){const o=ve.now(),u=({timestamp:c})=>{const d=c-o;d>=l&&(Va(u),i(d-l))};return Rt.setup(u,!0),()=>Va(u)}function au(i){return de(i)?i.get():i}class P2{constructor(){this.members=[]}add(l){Ef(this.members,l);for(let o=this.members.length-1;o>=0;o--){const u=this.members[o];if(u===l||u===this.lead||u===this.prevLead)continue;const c=u.instance;c&&c.isConnected===!1&&u.isPresent!==!1&&!u.snapshot&&lu(this.members,u)}l.scheduleRender()}remove(l){if(lu(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 u;for(let c=o;c>=0;c--){const d=this.members[c],h=d.instance;if(d.isPresent!==!1&&(!h||h.isConnected!==!1)){u=d;break}}return u?(this.promote(u),!0):!1}promote(l,o){const u=this.lead;if(l!==u&&(this.prevLead=u,this.lead=l,l.show(),u)){u.instance&&u.scheduleRender(),l.scheduleRender();const c=u.options.layoutDependency,d=l.options.layoutDependency;if(!(c!==void 0&&d!==void 0&&c===d)){const g=u.instance;g&&g.isConnected===!1&&!u.snapshot||(l.resumeFrom=u,o&&(l.resumeFrom.preserveOpacity=!0),u.snapshot&&(l.snapshot=u.snapshot,l.snapshot.latestValues=u.animationValues||u.latestValues),l.root&&l.root.isUpdating&&(l.isLayoutDirty=!0))}const{crossfade:p}=l.options;p===!1&&u.hide()}}exitAnimationComplete(){this.members.forEach(l=>{const{options:o,resumingFrom:u}=l;o.onExitComplete&&o.onExitComplete(),u&&u.options.onExitComplete&&u.options.onExitComplete()})}scheduleRender(){this.members.forEach(l=>{l.instance&&l.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const iu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Yc=["","X","Y","Z"],W2=1e3;let $2=0;function qc(i,l,o,u){const{latestValues:c}=l;c[i]&&(o[i]=c[i],l.setStaticValue(i,0),u&&(u[i]=0))}function Rg(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:l}=i.options;if(!l)return;const o=I0(l);if(window.MotionHasOptimisedAnimation(o,"transform")){const{layout:c,layoutId:d}=i.options;window.MotionCancelOptimisedAnimation(o,"transform",Rt,!(c||d))}const{parent:u}=i;u&&!u.hasCheckedOptimisedAppear&&Rg(u)}function Vg({attachResizeListener:i,defaultParent:l,measureScroll:o,checkIsScrollRoot:u,resetTransform:c}){return class{constructor(h={},p=l?.()){this.id=$2++,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(eT),this.nodes.forEach(lT),this.nodes.forEach(sT),this.nodes.forEach(nT)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new J2)}addEventListener(h,p){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new Cf),this.eventHandlers.get(h).add(p)}notifyListeners(h,...p){const g=this.eventHandlers.get(h);g&&g.notify(...p)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=Qf(h)&&!t2(h),this.instance=h;const{layoutId:p,layout:g,visualElement:m}=this.options;if(m&&!m.current&&m.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||p)&&(this.isLayoutDirty=!0),i){let x,b=0;const T=()=>this.root.updateBlockedByResize=!1;Rt.read(()=>{b=window.innerWidth}),i(h,()=>{const D=window.innerWidth;D!==b&&(b=D,this.root.updateBlockedByResize=!0,x&&x(),x=F2(T,250),iu.hasAnimatedSinceResize&&(iu.hasAnimatedSinceResize=!1,this.nodes.forEach(Yy)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&m&&(p||g)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:b,hasRelativeLayoutChanged:T,layout:D})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const V=this.options.transition||m.getDefaultTransition()||fT,{onLayoutAnimationStart:Y,onLayoutAnimationComplete:X}=m.getProps(),q=!this.targetLayout||!Dg(this.targetLayout,D),K=!b&&T;if(this.options.layoutRoot||this.resumeFrom||K||b&&(q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const G={...Lf(V,"layout"),onPlay:Y,onComplete:X};(m.shouldReduceMotion||this.options.layoutRoot)&&(G.delay=0,G.type=!1),this.startAnimation(G),this.setAnimationOrigin(x,K)}else b||Yy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=D})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const h=this.getStack();h&&h.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Va(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(oT),this.animationId++)}getTransformTemplate(){const{visualElement:h}=this.options;return h&&h.getProps().transformTemplate}willUpdate(h=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Rg(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:p,layout:g}=this.options;if(p===void 0&&!g)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),h&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ly);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Hy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(iT),this.nodes.forEach(I2),this.nodes.forEach(tT)):this.nodes.forEach(Hy),this.clearAllSnapshots();const p=ve.now();ce.delta=Cn(0,1e3/60,p-ce.timestamp),ce.timestamp=p,ce.isProcessing=!0,zc.update.process(ce),zc.preRender.process(ce),zc.render.process(ce),ce.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Xf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(aT),this.sharedNodes.forEach(uT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Rt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Rt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!xe(this.snapshot.measuredBox.x)&&!xe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let g=0;g<this.path.length;g++)this.path[g].updateScroll();const h=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=te(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(p=!1),p&&this.instance){const g=u(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:g,offset:o(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!c)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!Ng(this.projectionDelta),g=this.getTransformTemplate(),m=g?g(this.latestValues,""):void 0,x=m!==this.prevTransformTemplateValue;h&&this.instance&&(p||ui(this.latestValues)||x)&&(c(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const p=this.measurePageBox();let g=this.removeElementScroll(p);return h&&(g=this.removeTransform(g)),hT(g),{animationId:this.root.animationId,measuredBox:p,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:h}=this.options;if(!h)return te();const p=h.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(dT))){const{scroll:m}=this.root;m&&(sl(p.x,m.offset.x),sl(p.y,m.offset.y))}return p}removeElementScroll(h){const p=te();if(dn(p,h),this.scroll?.wasRoot)return p;for(let g=0;g<this.path.length;g++){const m=this.path[g],{scroll:x,options:b}=m;m!==this.root&&x&&b.layoutScroll&&(x.wasRoot&&dn(p,h),sl(p.x,x.offset.x),sl(p.y,x.offset.y))}return p}applyTransform(h,p=!1){const g=te();dn(g,h);for(let m=0;m<this.path.length;m++){const x=this.path[m];!p&&x.options.layoutScroll&&x.scroll&&x!==x.root&&ol(g,{x:-x.scroll.offset.x,y:-x.scroll.offset.y}),ui(x.latestValues)&&ol(g,x.latestValues)}return ui(this.latestValues)&&ol(g,this.latestValues),g}removeTransform(h){const p=te();dn(p,h);for(let g=0;g<this.path.length;g++){const m=this.path[g];if(!m.instance||!ui(m.latestValues))continue;yf(m.latestValues)&&m.updateSnapshot();const x=te(),b=m.measurePageBox();dn(x,b),Ny(p,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,x)}return ui(this.latestValues)&&Ny(p,this.latestValues),p}setTargetDelta(h){this.targetDelta=h,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(h){this.options={...this.options,...h,crossfade:h.crossfade!==void 0?h.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!==ce.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==p;if(!(h||g&&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=ce.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=te(),this.targetWithTransforms=te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),U2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):dn(this.target,this.layout.layoutBox),gg(this.target,this.targetDelta)):dn(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||yf(this.parent.latestValues)||yg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(h,p,g){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),fu(this.relativeTargetOrigin,p,g),dn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const h=this.getLead(),p=!!this.resumingFrom||this!==h;let g=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(g=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===ce.timestamp&&(g=!1),g)return;const{layout:m,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||!(m||x))return;dn(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,T=this.treeScale.y;f2(this.layoutCorrected,this.treeScale,this.path,p),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=te());const{target:D}=h;if(!D){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ay(this.prevProjectionDelta.x,this.projectionDelta.x),Ay(this.prevProjectionDelta.y,this.projectionDelta.y)),bs(this.projectionDelta,this.layoutCorrected,D,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==T||!Vy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Vy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",D))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){if(this.options.visualElement?.scheduleRender(),h){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ll(),this.projectionDelta=ll(),this.projectionDeltaWithTransform=ll()}setAnimationOrigin(h,p=!1){const g=this.snapshot,m=g?g.latestValues:{},x={...this.latestValues},b=ll();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const T=te(),D=g?g.source:void 0,V=this.layout?this.layout.source:void 0,Y=D!==V,X=this.getStack(),q=!X||X.members.length<=1,K=!!(Y&&!q&&this.options.crossfade===!0&&!this.path.some(cT));this.animationProgress=0;let G;this.mixTargetDelta=J=>{const Z=J/1e3;qy(b.x,h.x,Z),qy(b.y,h.y,Z),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fu(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rT(this.relativeTarget,this.relativeTargetOrigin,T,Z),G&&Y2(this.relativeTarget,G)&&(this.isProjectionDirty=!1),G||(G=te()),dn(G,this.relativeTarget)),Y&&(this.animationValues=x,X2(x,m,this.latestValues,Z,K,q)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Va(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Rt.update(()=>{iu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=rl(0)),this.motionValue.jump(0,!1),this.currentAnimation=Z2(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),h.onUpdate&&h.onUpdate(p)},onStop:()=>{},onComplete:()=>{h.onComplete&&h.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 h=this.getStack();h&&h.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(W2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:p,target:g,layout:m,latestValues:x}=h;if(!(!p||!g||!m)){if(this!==h&&this.layout&&m&&_g(this.options.animationType,this.layout.layoutBox,m.layoutBox)){g=this.target||te();const b=xe(this.layout.layoutBox.x);g.x.min=h.target.x.min,g.x.max=g.x.min+b;const T=xe(this.layout.layoutBox.y);g.y.min=h.target.y.min,g.y.max=g.y.min+T}dn(p,g),ol(p,x),bs(this.projectionDeltaWithTransform,this.layoutCorrected,p,x)}}registerSharedNode(h,p){this.sharedNodes.has(h)||this.sharedNodes.set(h,new P2),this.sharedNodes.get(h).add(p);const m=p.options.initialPromotionConfig;p.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(p):void 0})}isLead(){const h=this.getStack();return h?h.lead===this:!0}getLead(){const{layoutId:h}=this.options;return h?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:h}=this.options;return h?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:h}=this.options;if(h)return this.root.sharedNodes.get(h)}promote({needsReset:h,transition:p,preserveFollowOpacity:g}={}){const m=this.getStack();m&&m.promote(this,g),h&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let p=!1;const{latestValues:g}=h;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(p=!0),!p)return;const m={};g.z&&qc("z",h,m,this.animationValues);for(let x=0;x<Yc.length;x++)qc(`rotate${Yc[x]}`,h,m,this.animationValues),qc(`skew${Yc[x]}`,h,m,this.animationValues);h.render();for(const x in m)h.setStaticValue(x,m[x]),this.animationValues&&(this.animationValues[x]=m[x]);h.scheduleRender()}applyProjectionStyles(h,p){if(!this.instance||this.isSVG)return;if(!this.isVisible){h.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,h.visibility="",h.opacity="",h.pointerEvents=au(p?.pointerEvents)||"",h.transform=g?g(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=au(p?.pointerEvents)||""),this.hasProjected&&!ui(this.latestValues)&&(h.transform=g?g({},""):"none",this.hasProjected=!1);return}h.visibility="";const x=m.animationValues||m.latestValues;this.applyTransformsToTarget();let b=q2(this.projectionDeltaWithTransform,this.treeScale,x);g&&(b=g(x,b)),h.transform=b;const{x:T,y:D}=this.projectionDelta;h.transformOrigin=`${T.origin*100}% ${D.origin*100}% 0`,m.animationValues?h.opacity=m===this?x.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:h.opacity=m===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const V in vf){if(x[V]===void 0)continue;const{correct:Y,applyTo:X,isCSSVariable:q}=vf[V],K=b==="none"?x[V]:Y(x[V],m);if(X){const G=X.length;for(let J=0;J<G;J++)h[X[J]]=K}else q?this.options.visualElement.renderState.vars[V]=K:h[V]=K}this.options.layoutId&&(h.pointerEvents=m===this?au(p?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>h.currentAnimation?.stop()),this.root.nodes.forEach(Ly),this.root.sharedNodes.clear()}}}function I2(i){i.updateLayout()}function tT(i){const l=i.resumeFrom?.snapshot||i.snapshot;if(i.isLead()&&i.layout&&l&&i.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:u}=i.layout,{animationType:c}=i.options,d=l.source!==i.layout.source;c==="size"?En(x=>{const b=d?l.measuredBox[x]:l.layoutBox[x],T=xe(b);b.min=o[x].min,b.max=b.min+T}):_g(c,l.layoutBox,o)&&En(x=>{const b=d?l.measuredBox[x]:l.layoutBox[x],T=xe(o[x]);b.max=b.min+T,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[x].max=i.relativeTarget[x].min+T)});const h=ll();bs(h,o,l.layoutBox);const p=ll();d?bs(p,i.applyTransform(u,!0),l.measuredBox):bs(p,o,l.layoutBox);const g=!Ng(h);let m=!1;if(!i.resumeFrom){const x=i.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:b,layout:T}=x;if(b&&T){const D=te();fu(D,l.layoutBox,b.layoutBox);const V=te();fu(V,o,T.layoutBox),Dg(D,V)||(m=!0),x.options.layoutRoot&&(i.relativeTarget=V,i.relativeTargetOrigin=D,i.relativeParent=x)}}}i.notifyListeners("didUpdate",{layout:o,snapshot:l,delta:p,layoutDelta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:m})}else if(i.isLead()){const{onExitComplete:o}=i.options;o&&o()}i.options.transition=void 0}function eT(i){i.parent&&(i.isProjecting()||(i.isProjectionDirty=i.parent.isProjectionDirty),i.isSharedProjectionDirty||(i.isSharedProjectionDirty=!!(i.isProjectionDirty||i.parent.isProjectionDirty||i.parent.isSharedProjectionDirty)),i.isTransformDirty||(i.isTransformDirty=i.parent.isTransformDirty))}function nT(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function aT(i){i.clearSnapshot()}function Ly(i){i.clearMeasurements()}function Hy(i){i.isLayoutDirty=!1}function iT(i){const{visualElement:l}=i.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),i.resetTransform()}function Yy(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function lT(i){i.resolveTargetDelta()}function sT(i){i.calcProjection()}function oT(i){i.resetSkewAndRotation()}function uT(i){i.removeLeadSnapshot()}function qy(i,l,o){i.translate=Ht(l.translate,0,o),i.scale=Ht(l.scale,1,o),i.origin=l.origin,i.originPoint=l.originPoint}function Gy(i,l,o,u){i.min=Ht(l.min,o.min,u),i.max=Ht(l.max,o.max,u)}function rT(i,l,o,u){Gy(i.x,l.x,o.x,u),Gy(i.y,l.y,o.y,u)}function cT(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const fT={duration:.45,ease:[.4,0,.1,1]},Xy=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),Ky=Xy("applewebkit/")&&!Xy("chrome/")?Math.round:ln;function Qy(i){i.min=Ky(i.min),i.max=Ky(i.max)}function hT(i){Qy(i.x),Qy(i.y)}function _g(i,l,o){return i==="position"||i==="preserve-aspect"&&!_2(Ry(l),Ry(o),.2)}function dT(i){return i!==i.root&&i.scroll?.wasRoot}const mT=Vg({attachResizeListener:(i,l)=>Cs(i,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Gc={current:void 0},Ug=Vg({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!Gc.current){const i=new mT({});i.mount(window),i.setOptions({layoutScroll:!0}),Gc.current=i}return Gc.current},resetTransform:(i,l)=>{i.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),Pf=z.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function Zy(i,l){if(typeof i=="function")return i(l);i!=null&&(i.current=l)}function pT(...i){return l=>{let o=!1;const u=i.map(c=>{const d=Zy(c,l);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let c=0;c<u.length;c++){const d=u[c];typeof d=="function"?d():Zy(i[c],null)}}}}function yT(...i){return z.useCallback(pT(...i),i)}class gT extends z.Component{getSnapshotBeforeUpdate(l){const o=this.props.childRef.current;if(o&&l.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const u=o.offsetParent,c=mf(u)&&u.offsetWidth||0,d=mf(u)&&u.offsetHeight||0,h=this.props.sizeRef.current;h.height=o.offsetHeight||0,h.width=o.offsetWidth||0,h.top=o.offsetTop,h.left=o.offsetLeft,h.right=c-h.width-h.left,h.bottom=d-h.height-h.top}return null}componentDidUpdate(){}render(){return this.props.children}}function vT({children:i,isPresent:l,anchorX:o,anchorY:u,root:c,pop:d}){const h=z.useId(),p=z.useRef(null),g=z.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=z.useContext(Pf),x=i.props?.ref??i?.ref,b=yT(p,x);return z.useInsertionEffect(()=>{const{width:T,height:D,top:V,left:Y,right:X,bottom:q}=g.current;if(l||d===!1||!p.current||!T||!D)return;const K=o==="left"?`left: ${Y}`:`right: ${X}`,G=u==="bottom"?`bottom: ${q}`:`top: ${V}`;p.current.dataset.motionPopId=h;const J=document.createElement("style");m&&(J.nonce=m);const Z=c??document.head;return Z.appendChild(J),J.sheet&&J.sheet.insertRule(`
|
|
10
|
-
[data-motion-pop-id="${h}"] {
|
|
11
|
-
position: absolute !important;
|
|
12
|
-
width: ${T}px !important;
|
|
13
|
-
height: ${D}px !important;
|
|
14
|
-
${K}px !important;
|
|
15
|
-
${G}px !important;
|
|
16
|
-
}
|
|
17
|
-
`),()=>{Z.contains(J)&&Z.removeChild(J)}},[l]),v.jsx(gT,{isPresent:l,childRef:p,sizeRef:g,pop:d,children:d===!1?i:z.cloneElement(i,{ref:b})})}const xT=({children:i,initial:l,isPresent:o,onExitComplete:u,custom:c,presenceAffectsLayout:d,mode:h,anchorX:p,anchorY:g,root:m})=>{const x=Af(bT),b=z.useId();let T=!0,D=z.useMemo(()=>(T=!1,{id:b,initial:l,isPresent:o,custom:c,onExitComplete:V=>{x.set(V,!0);for(const Y of x.values())if(!Y)return;u&&u()},register:V=>(x.set(V,!1),()=>x.delete(V))}),[o,x,u]);return d&&T&&(D={...D}),z.useMemo(()=>{x.forEach((V,Y)=>x.set(Y,!1))},[o]),z.useEffect(()=>{!o&&!x.size&&u&&u()},[o]),i=v.jsx(vT,{pop:h==="popLayout",isPresent:o,anchorX:p,anchorY:g,root:m,children:i}),v.jsx(du.Provider,{value:D,children:i})};function bT(){return new Map}function Bg(i=!0){const l=z.useContext(du);if(l===null)return[!0,null];const{isPresent:o,onExitComplete:u,register:c}=l,d=z.useId();z.useEffect(()=>{if(i)return c(d)},[i]);const h=z.useCallback(()=>i&&u&&u(d),[d,u,i]);return!o&&u?[!1,h]:[!0]}const Po=i=>i.key||"";function ky(i){const l=[];return z.Children.forEach(i,o=>{z.isValidElement(o)&&l.push(o)}),l}const Jy=({children:i,custom:l,initial:o=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:d="sync",propagate:h=!1,anchorX:p="left",anchorY:g="top",root:m})=>{const[x,b]=Bg(h),T=z.useMemo(()=>ky(i),[i]),D=h&&!x?[]:T.map(Po),V=z.useRef(!0),Y=z.useRef(T),X=Af(()=>new Map),q=z.useRef(new Set),[K,G]=z.useState(T),[J,Z]=z.useState(T);f0(()=>{V.current=!1,Y.current=T;for(let F=0;F<J.length;F++){const st=Po(J[F]);D.includes(st)?(X.delete(st),q.current.delete(st)):X.get(st)!==!0&&X.set(st,!1)}},[J,D.length,D.join("-")]);const lt=[];if(T!==K){let F=[...T];for(let st=0;st<J.length;st++){const bt=J[st],Et=Po(bt);D.includes(Et)||(F.splice(st,0,bt),lt.push(bt))}return d==="wait"&<.length&&(F=lt),Z(ky(F)),G(T),null}const{forceRender:k}=z.useContext(Tf);return v.jsx(v.Fragment,{children:J.map(F=>{const st=Po(F),bt=h&&!x?!1:T===J||D.includes(st),Et=()=>{if(q.current.has(st))return;if(q.current.add(st),X.has(st))X.set(st,!0);else return;let Bt=!0;X.forEach(ae=>{ae||(Bt=!1)}),Bt&&(k?.(),Z(Y.current),h&&b?.(),u&&u())};return v.jsx(xT,{isPresent:bt,initial:!V.current||o?void 0:!1,custom:l,presenceAffectsLayout:c,mode:d,root:m,onExitComplete:bt?void 0:Et,anchorX:p,anchorY:g,children:F},st)})})},Lg=z.createContext({strict:!1}),Fy={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 Py=!1;function ST(){if(Py)return;const i={};for(const l in Fy)i[l]={isEnabled:o=>Fy[l].some(u=>!!o[u])};dg(i),Py=!0}function Hg(){return ST(),o2()}function TT(i){const l=Hg();for(const o in i)l[o]={...l[o],...i[o]};dg(l)}const AT=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 hu(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||AT.has(i)}let Yg=i=>!hu(i);function ET(i){typeof i=="function"&&(Yg=l=>l.startsWith("on")?!hu(l):i(l))}try{ET(require("@emotion/is-prop-valid").default)}catch{}function wT(i,l,o){const u={};for(const c in i)c==="values"&&typeof i.values=="object"||(Yg(c)||o===!0&&hu(c)||!l&&!hu(c)||i.draggable&&c.startsWith("onDrag"))&&(u[c]=i[c]);return u}const yu=z.createContext({});function CT(i,l){if(pu(i)){const{initial:o,animate:u}=i;return{initial:o===!1||ws(o)?o:void 0,animate:ws(u)?u:void 0}}return i.inherit!==!1?l:{}}function MT(i){const{initial:l,animate:o}=CT(i,z.useContext(yu));return z.useMemo(()=>({initial:l,animate:o}),[Wy(l),Wy(o)])}function Wy(i){return Array.isArray(i)?i.join(" "):i}const Wf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function qg(i,l,o){for(const u in l)!de(l[u])&&!bg(u,o)&&(i[u]=l[u])}function jT({transformTemplate:i},l){return z.useMemo(()=>{const o=Wf();return Jf(o,l,i),Object.assign({},o.vars,o.style)},[l])}function NT(i,l){const o=i.style||{},u={};return qg(u,o,i),Object.assign(u,jT(i,l)),u}function DT(i,l){const o={},u=NT(i,l);return i.drag&&i.dragListener!==!1&&(o.draggable=!1,u.userSelect=u.WebkitUserSelect=u.WebkitTouchCallout="none",u.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(o.tabIndex=0),o.style=u,o}const Gg=()=>({...Wf(),attrs:{}});function OT(i,l,o,u){const c=z.useMemo(()=>{const d=Gg();return Sg(d,l,Ag(u),i.transformTemplate,i.style),{...d.attrs,style:{...d.style}}},[l]);if(i.style){const d={};qg(d,i.style,i),c.style={...d,...c.style}}return c}const zT=["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 $f(i){return typeof i!="string"||i.includes("-")?!1:!!(zT.indexOf(i)>-1||/[A-Z]/u.test(i))}function RT(i,l,o,{latestValues:u},c,d=!1,h){const g=(h??$f(i)?OT:DT)(l,u,c,i),m=wT(l,typeof i=="string",d),x=i!==z.Fragment?{...m,...g,ref:o}:{},{children:b}=l,T=z.useMemo(()=>de(b)?b.get():b,[b]);return z.createElement(i,{...x,children:T})}function VT({scrapeMotionValuesFromProps:i,createRenderState:l},o,u,c){return{latestValues:_T(o,u,c,i),renderState:l()}}function _T(i,l,o,u){const c={},d=u(i,{});for(const T in d)c[T]=au(d[T]);let{initial:h,animate:p}=i;const g=pu(i),m=fg(i);l&&m&&!g&&i.inherit!==!1&&(h===void 0&&(h=l.initial),p===void 0&&(p=l.animate));let x=o?o.initial===!1:!1;x=x||h===!1;const b=x?p:h;if(b&&typeof b!="boolean"&&!mu(b)){const T=Array.isArray(b)?b:[b];for(let D=0;D<T.length;D++){const V=Yf(i,T[D]);if(V){const{transitionEnd:Y,transition:X,...q}=V;for(const K in q){let G=q[K];if(Array.isArray(G)){const J=x?G.length-1:0;G=G[J]}G!==null&&(c[K]=G)}for(const K in Y)c[K]=Y[K]}}}return c}const Xg=i=>(l,o)=>{const u=z.useContext(yu),c=z.useContext(du),d=()=>VT(i,l,u,c);return o?d():Af(d)},UT=Xg({scrapeMotionValuesFromProps:Ff,createRenderState:Wf}),BT=Xg({scrapeMotionValuesFromProps:Eg,createRenderState:Gg}),LT=Symbol.for("motionComponentSymbol");function HT(i,l,o){const u=z.useRef(o);z.useInsertionEffect(()=>{u.current=o});const c=z.useRef(null);return z.useCallback(d=>{d&&i.onMount?.(d),l&&(d?l.mount(d):l.unmount());const h=u.current;if(typeof h=="function")if(d){const p=h(d);typeof p=="function"&&(c.current=p)}else c.current?(c.current(),c.current=null):h(d);else h&&(h.current=d)},[l])}const Kg=z.createContext({});function nl(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function YT(i,l,o,u,c,d){const{visualElement:h}=z.useContext(yu),p=z.useContext(Lg),g=z.useContext(du),m=z.useContext(Pf),x=m.reducedMotion,b=m.skipAnimations,T=z.useRef(null),D=z.useRef(!1);u=u||p.renderer,!T.current&&u&&(T.current=u(i,{visualState:l,parent:h,props:o,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:x,skipAnimations:b,isSVG:d}),D.current&&T.current&&(T.current.manuallyAnimateOnMount=!0));const V=T.current,Y=z.useContext(Kg);V&&!V.projection&&c&&(V.type==="html"||V.type==="svg")&&qT(T.current,o,c,Y);const X=z.useRef(!1);z.useInsertionEffect(()=>{V&&X.current&&V.update(o,g)});const q=o[$0],K=z.useRef(!!q&&!window.MotionHandoffIsComplete?.(q)&&window.MotionHasOptimisedAnimation?.(q));return f0(()=>{D.current=!0,V&&(X.current=!0,window.MotionIsMounted=!0,V.updateFeatures(),V.scheduleRenderMicrotask(),K.current&&V.animationState&&V.animationState.animateChanges())}),z.useEffect(()=>{V&&(!K.current&&V.animationState&&V.animationState.animateChanges(),K.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(q)}),K.current=!1),V.enteringChildren=void 0)}),V}function qT(i,l,o,u){const{layoutId:c,layout:d,drag:h,dragConstraints:p,layoutScroll:g,layoutRoot:m,layoutCrossfade:x}=l;i.projection=new o(i.latestValues,l["data-framer-portal-id"]?void 0:Qg(i.parent)),i.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!h||p&&nl(p),visualElement:i,animationType:typeof d=="string"?d:"both",initialPromotionConfig:u,crossfade:x,layoutScroll:g,layoutRoot:m})}function Qg(i){if(i)return i.options.allowProjection!==!1?i.projection:Qg(i.parent)}function Xc(i,{forwardMotionProps:l=!1,type:o}={},u,c){u&&TT(u);const d=o?o==="svg":$f(i),h=d?BT:UT;function p(m,x){let b;const T={...z.useContext(Pf),...m,layoutId:GT(m)},{isStatic:D}=T,V=MT(m),Y=h(m,D);if(!D&&c0){XT();const X=KT(T);b=X.MeasureLayout,V.visualElement=YT(i,Y,T,c,X.ProjectionNode,d)}return v.jsxs(yu.Provider,{value:V,children:[b&&V.visualElement?v.jsx(b,{visualElement:V.visualElement,...T}):null,RT(i,m,HT(Y,V.visualElement,x),Y,D,l,d)]})}p.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const g=z.forwardRef(p);return g[LT]=i,g}function GT({layoutId:i}){const l=z.useContext(Tf).id;return l&&i!==void 0?l+"-"+i:i}function XT(i,l){z.useContext(Lg).strict}function KT(i){const l=Hg(),{drag:o,layout:u}=l;if(!o&&!u)return{};const c={...o,...u};return{MeasureLayout:o?.isEnabled(i)||u?.isEnabled(i)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function QT(i,l){if(typeof Proxy>"u")return Xc;const o=new Map,u=(d,h)=>Xc(d,h,i,l),c=(d,h)=>u(d,h);return new Proxy(c,{get:(d,h)=>h==="create"?u:(o.has(h)||o.set(h,Xc(h,void 0,i,l)),o.get(h))})}const ZT=(i,l)=>l.isSVG??$f(i)?new E2(l):new v2(l,{allowProjection:i!==z.Fragment});class kT extends _a{constructor(l){super(l),l.animationState||(l.animationState=N2(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();mu(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 JT=0;class FT extends _a{constructor(){super(...arguments),this.id=JT++}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:o}=this.node.presenceContext,{isPresent:u}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===u)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 PT={animation:{Feature:kT},exit:{Feature:FT}};function Ds(i){return{point:{x:i.pageX,y:i.pageY}}}const WT=i=>l=>Kf(l)&&i(l,Ds(l));function Ss(i,l,o,u){return Cs(i,l,WT(o),u)}const Zg=({current:i})=>i?i.ownerDocument.defaultView:null,$y=(i,l)=>Math.abs(i-l);function $T(i,l){const o=$y(i.x,l.x),u=$y(i.y,l.y);return Math.sqrt(o**2+u**2)}const Iy=new Set(["auto","scroll"]);class kg{constructor(l,o,{transformPagePoint:u,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:h=3,element:p}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=D=>{this.handleScroll(D.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=Qc(this.lastMoveEventInfo,this.history),V=this.startEvent!==null,Y=$T(D.offset,{x:0,y:0})>=this.distanceThreshold;if(!V&&!Y)return;const{point:X}=D,{timestamp:q}=ce;this.history.push({...X,timestamp:q});const{onStart:K,onMove:G}=this.handlers;V||(K&&K(this.lastMoveEvent,D),this.startEvent=this.lastMoveEvent),G&&G(this.lastMoveEvent,D)},this.handlePointerMove=(D,V)=>{this.lastMoveEvent=D,this.lastMoveEventInfo=Kc(V,this.transformPagePoint),Rt.update(this.updatePoint,!0)},this.handlePointerUp=(D,V)=>{this.end();const{onEnd:Y,onSessionEnd:X,resumeAnimation:q}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&q&&q(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const K=Qc(D.type==="pointercancel"?this.lastMoveEventInfo:Kc(V,this.transformPagePoint),this.history);this.startEvent&&Y&&Y(D,K),X&&X(D,K)},!Kf(l))return;this.dragSnapToOrigin=d,this.handlers=o,this.transformPagePoint=u,this.distanceThreshold=h,this.contextWindow=c||window;const g=Ds(l),m=Kc(g,this.transformPagePoint),{point:x}=m,{timestamp:b}=ce;this.history=[{...x,timestamp:b}];const{onSessionStart:T}=o;T&&T(l,Qc(m,this.history)),this.removeListeners=Ms(Ss(this.contextWindow,"pointermove",this.handlePointerMove),Ss(this.contextWindow,"pointerup",this.handlePointerUp),Ss(this.contextWindow,"pointercancel",this.handlePointerUp)),p&&this.startScrollTracking(p)}startScrollTracking(l){let o=l.parentElement;for(;o;){const u=getComputedStyle(o);(Iy.has(u.overflowX)||Iy.has(u.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 u=l===window,c=u?{x:window.scrollX,y:window.scrollY}:{x:l.scrollLeft,y:l.scrollTop},d={x:c.x-o.x,y:c.y-o.y};d.x===0&&d.y===0||(u?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=d.x,this.lastMoveEventInfo.point.y+=d.y):this.history.length>0&&(this.history[0].x-=d.x,this.history[0].y-=d.y),this.scrollPositions.set(l,c),Rt.update(this.updatePoint,!0))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Va(this.updatePoint)}}function Kc(i,l){return l?{point:l(i.point)}:i}function t0(i,l){return{x:i.x-l.x,y:i.y-l.y}}function Qc({point:i},l){return{point:i,delta:t0(i,Jg(l)),offset:t0(i,IT(l)),velocity:tA(l,.1)}}function IT(i){return i[0]}function Jg(i){return i[i.length-1]}function tA(i,l){if(i.length<2)return{x:0,y:0};let o=i.length-1,u=null;const c=Jg(i);for(;o>=0&&(u=i[o],!(c.timestamp-u.timestamp>pn(l)));)o--;if(!u)return{x:0,y:0};u===i[0]&&i.length>2&&c.timestamp-u.timestamp>pn(l)*2&&(u=i[1]);const d=an(c.timestamp-u.timestamp);if(d===0)return{x:0,y:0};const h={x:(c.x-u.x)/d,y:(c.y-u.y)/d};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function eA(i,{min:l,max:o},u){return l!==void 0&&i<l?i=u?Ht(l,i,u.min):Math.max(i,l):o!==void 0&&i>o&&(i=u?Ht(o,i,u.max):Math.min(i,o)),i}function e0(i,l,o){return{min:l!==void 0?i.min+l:void 0,max:o!==void 0?i.max+o-(i.max-i.min):void 0}}function nA(i,{top:l,left:o,bottom:u,right:c}){return{x:e0(i.x,o,c),y:e0(i.y,l,u)}}function n0(i,l){let o=l.min-i.min,u=l.max-i.max;return l.max-l.min<i.max-i.min&&([o,u]=[u,o]),{min:o,max:u}}function aA(i,l){return{x:n0(i.x,l.x),y:n0(i.y,l.y)}}function iA(i,l){let o=.5;const u=xe(i),c=xe(l);return c>u?o=Ts(l.min,l.max-u,i.min):u>c&&(o=Ts(i.min,i.max-c,l.min)),Cn(0,1,o)}function lA(i,l){const o={};return l.min!==void 0&&(o.min=l.min-i.min),l.max!==void 0&&(o.max=l.max-i.min),o}const xf=.35;function sA(i=xf){return i===!1?i=0:i===!0&&(i=xf),{x:a0(i,"left","right"),y:a0(i,"top","bottom")}}function a0(i,l,o){return{min:i0(i,l),max:i0(i,o)}}function i0(i,l){return typeof i=="number"?i:i[l]||0}const oA=new WeakMap;class uA{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=te(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:o=!1,distanceThreshold:u}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=b=>{o&&this.snapToCursor(Ds(b).point),this.stopAnimation()},h=(b,T)=>{const{drag:D,dragPropagation:V,onDragStart:Y}=this.getProps();if(D&&!V&&(this.openDragLock&&this.openDragLock(),this.openDragLock=BS(D),!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),En(q=>{let K=this.getAxisMotionValue(q).get()||0;if(wn.test(K)){const{projection:G}=this.visualElement;if(G&&G.layout){const J=G.layout.layoutBox[q];J&&(K=xe(J)*(parseFloat(K)/100))}}this.originPoint[q]=K}),Y&&Rt.update(()=>Y(b,T),!1,!0),cf(this.visualElement,"transform");const{animationState:X}=this.visualElement;X&&X.setActive("whileDrag",!0)},p=(b,T)=>{this.latestPointerEvent=b,this.latestPanInfo=T;const{dragPropagation:D,dragDirectionLock:V,onDirectionLock:Y,onDrag:X}=this.getProps();if(!D&&!this.openDragLock)return;const{offset:q}=T;if(V&&this.currentDirection===null){this.currentDirection=cA(q),this.currentDirection!==null&&Y&&Y(this.currentDirection);return}this.updateAxis("x",T.point,q),this.updateAxis("y",T.point,q),this.visualElement.render(),X&&Rt.update(()=>X(b,T),!1,!0)},g=(b,T)=>{this.latestPointerEvent=b,this.latestPanInfo=T,this.stop(b,T),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:x}=this.getProps();this.panSession=new kg(l,{onSessionStart:d,onStart:h,onMove:p,onSessionEnd:g,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:x,distanceThreshold:u,contextWindow:Zg(this.visualElement),element:this.visualElement.current})}stop(l,o){const u=l||this.latestPointerEvent,c=o||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!u)return;const{velocity:h}=c;this.startAnimation(h);const{onDragEnd:p}=this.getProps();p&&Rt.postRender(()=>p(u,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:o}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:u}=this.getProps();!u&&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,u){const{drag:c}=this.getProps();if(!u||!Wo(l,c,this.currentDirection))return;const d=this.getAxisMotionValue(l);let h=this.originPoint[l]+u[l];this.constraints&&this.constraints[l]&&(h=eA(h,this.constraints[l],this.elastic[l])),d.set(h)}resolveConstraints(){const{dragConstraints:l,dragElastic:o}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;l&&nl(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&u?this.constraints=nA(u.layoutBox,l):this.constraints=!1,this.elastic=sA(o),c!==this.constraints&&!nl(l)&&u&&this.constraints&&!this.hasMutatedConstraints&&En(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=lA(u.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:o}=this.getProps();if(!l||!nl(l))return!1;const u=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=h2(u,c.root,this.visualElement.getTransformPagePoint());let h=aA(c.layout.layoutBox,d);if(o){const p=o(r2(h));this.hasMutatedConstraints=!!p,p&&(h=pg(p))}return h}startAnimation(l){const{drag:o,dragMomentum:u,dragElastic:c,dragTransition:d,dragSnapToOrigin:h,onDragTransitionEnd:p}=this.getProps(),g=this.constraints||{},m=En(x=>{if(!Wo(x,o,this.currentDirection))return;let b=g&&g[x]||{};h&&(b={min:0,max:0});const T=c?200:1e6,D=c?40:1e7,V={type:"inertia",velocity:u?l[x]:0,bounceStiffness:T,bounceDamping:D,timeConstant:750,restDelta:1,restSpeed:10,...d,...b};return this.startAxisValueAnimation(x,V)});return Promise.all(m).then(p)}startAxisValueAnimation(l,o){const u=this.getAxisMotionValue(l);return cf(this.visualElement,l),u.start(Hf(l,u,0,o,this.visualElement,!1))}stopAnimation(){En(l=>this.getAxisMotionValue(l).stop())}getAxisMotionValue(l){const o=`_drag${l.toUpperCase()}`,u=this.visualElement.getProps(),c=u[o];return c||this.visualElement.getValue(l,(u.initial?u.initial[l]:void 0)||0)}snapToCursor(l){En(o=>{const{drag:u}=this.getProps();if(!Wo(o,u,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(o);if(c&&c.layout){const{min:h,max:p}=c.layout.layoutBox[o],g=d.get()||0;d.set(l[o]-Ht(h,p,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:o}=this.getProps(),{projection:u}=this.visualElement;if(!nl(o)||!u||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};En(h=>{const p=this.getAxisMotionValue(h);if(p&&this.constraints!==!1){const g=p.get();c[h]=iA({min:g,max:g},this.constraints[h])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",u.root&&u.root.updateScroll(),u.updateLayout(),this.constraints=!1,this.resolveConstraints(),En(h=>{if(!Wo(h,l,null))return;const p=this.getAxisMotionValue(h),{min:g,max:m}=this.constraints[h];p.set(Ht(g,m,c[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;oA.set(this.visualElement,this);const l=this.visualElement.current,o=Ss(l,"pointerdown",m=>{const{drag:x,dragListener:b=!0}=this.getProps(),T=m.target,D=T!==l&&XS(T);x&&b&&!D&&this.start(m)});let u;const c=()=>{const{dragConstraints:m}=this.getProps();nl(m)&&m.current&&(this.constraints=this.resolveRefConstraints(),u||(u=rA(l,m.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,h=d.addEventListener("measure",c);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),Rt.read(c);const p=Cs(window,"resize",()=>this.scalePositionWithinConstraints()),g=d.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:x})=>{this.isDragging&&x&&(En(b=>{const T=this.getAxisMotionValue(b);T&&(this.originPoint[b]+=m[b].translate,T.set(T.get()+m[b].translate))}),this.visualElement.render())}));return()=>{p(),o(),h(),g&&g(),u&&u()}}getProps(){const l=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:u=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:h=xf,dragMomentum:p=!0}=l;return{...l,drag:o,dragDirectionLock:u,dragPropagation:c,dragConstraints:d,dragElastic:h,dragMomentum:p}}}function l0(i){let l=!0;return()=>{if(l){l=!1;return}i()}}function rA(i,l,o){const u=fy(i,l0(o)),c=fy(l,l0(o));return()=>{u(),c()}}function Wo(i,l,o){return(l===!0||l===i)&&(o===null||o===i)}function cA(i,l=10){let o=null;return Math.abs(i.y)>l?o="y":Math.abs(i.x)>l&&(o="x"),o}class fA extends _a{constructor(l){super(l),this.removeGroupControls=ln,this.removeListeners=ln,this.controls=new uA(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ln}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 Zc=i=>(l,o)=>{i&&Rt.update(()=>i(l,o),!1,!0)};class hA extends _a{constructor(){super(...arguments),this.removePointerDownListener=ln}onPointerDown(l){this.session=new kg(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Zg(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:o,onPan:u,onPanEnd:c}=this.node.getProps();return{onSessionStart:Zc(l),onStart:Zc(o),onMove:Zc(u),onEnd:(d,h)=>{delete this.session,c&&Rt.postRender(()=>c(d,h))}}}mount(){this.removePointerDownListener=Ss(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 kc=!1;class dA extends z.Component{componentDidMount(){const{visualElement:l,layoutGroup:o,switchLayoutGroup:u,layoutId:c}=this.props,{projection:d}=l;d&&(o.group&&o.group.add(d),u&&u.register&&c&&u.register(d),kc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),iu.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:o,visualElement:u,drag:c,isPresent:d}=this.props,{projection:h}=u;return h&&(h.isPresent=d,l.layoutDependency!==o&&h.setOptions({...h.options,layoutDependency:o}),kc=!0,c||l.layoutDependency!==o||o===void 0||l.isPresent!==d?h.willUpdate():this.safeToRemove(),l.isPresent!==d&&(d?h.promote():h.relegate()||Rt.postRender(()=>{const p=h.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:l}=this.props.visualElement;l&&(l.root.didUpdate(),Xf.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:o,switchLayoutGroup:u}=this.props,{projection:c}=l;kc=!0,c&&(c.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(c),u&&u.deregister&&u.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function Fg(i){const[l,o]=Bg(),u=z.useContext(Tf);return v.jsx(dA,{...i,layoutGroup:u,switchLayoutGroup:z.useContext(Kg),isPresent:l,safeToRemove:o})}const mA={pan:{Feature:hA},drag:{Feature:fA,ProjectionNode:Ug,MeasureLayout:Fg}};function s0(i,l,o){const{props:u}=i;i.animationState&&u.whileHover&&i.animationState.setActive("whileHover",o==="Start");const c="onHover"+o,d=u[c];d&&Rt.postRender(()=>d(l,Ds(l)))}class pA extends _a{mount(){const{current:l}=this.node;l&&(this.unmount=HS(l,(o,u)=>(s0(this.node,u,"Start"),c=>s0(this.node,c,"End"))))}unmount(){}}class yA extends _a{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=Ms(Cs(this.node.current,"focus",()=>this.onFocus()),Cs(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function o0(i,l,o){const{props:u}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&u.whileTap&&i.animationState.setActive("whileTap",o==="Start");const c="onTap"+(o==="End"?"":o),d=u[c];d&&Rt.postRender(()=>d(l,Ds(l)))}class gA extends _a{mount(){const{current:l}=this.node;if(!l)return;const{globalTapTarget:o,propagate:u}=this.node.props;this.unmount=QS(l,(c,d)=>(o0(this.node,d,"Start"),(h,{success:p})=>o0(this.node,h,p?"End":"Cancel")),{useGlobalTarget:o,stopPropagation:u?.tap===!1})}unmount(){}}const bf=new WeakMap,Jc=new WeakMap,vA=i=>{const l=bf.get(i.target);l&&l(i)},xA=i=>{i.forEach(vA)};function bA({root:i,...l}){const o=i||document;Jc.has(o)||Jc.set(o,{});const u=Jc.get(o),c=JSON.stringify(l);return u[c]||(u[c]=new IntersectionObserver(xA,{root:i,...l})),u[c]}function SA(i,l,o){const u=bA(l);return bf.set(i,o),u.observe(i),()=>{bf.delete(i),u.unobserve(i)}}const TA={some:0,all:1};class AA extends _a{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:l={}}=this.node.getProps(),{root:o,margin:u,amount:c="some",once:d}=l,h={root:o?o.current:void 0,rootMargin:u,threshold:typeof c=="number"?c:TA[c]},p=g=>{const{isIntersecting:m}=g;if(this.isInView===m||(this.isInView=m,d&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:x,onViewportLeave:b}=this.node.getProps(),T=m?x:b;T&&T(g)};return SA(this.node.current,h,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:o}=this.node;["amount","margin","root"].some(EA(l,o))&&this.startObserver()}unmount(){}}function EA({viewport:i={}},{viewport:l={}}={}){return o=>i[o]!==l[o]}const wA={inView:{Feature:AA},tap:{Feature:gA},focus:{Feature:yA},hover:{Feature:pA}},CA={layout:{ProjectionNode:Ug,MeasureLayout:Fg}},MA={...PT,...wA,...mA,...CA},ys=QT(MA,ZT),jA=[{id:"anthropic",name:"Claude",subtitle:"by Anthropic",icon:"/icons/claude.png"},{id:"openai",name:"OpenAI Codex",subtitle:"ChatGPT Plus / Pro",icon:"/icons/codex.png"}],NA={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)"}]},Fc=[{tier:"at",prefix:"my.fluxy.bot/",label:i=>`my.fluxy.bot/${i}`,badge:"Free",badgeCls:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",highlight:!1},{tier:"premium",prefix:"fluxy.bot/",label:i=>`fluxy.bot/${i}`,badge:"$3",badgeCls:"bg-[#AF27E3]/15 text-[#AF27E3] border-[#AF27E3]/20",highlight:!0}];function DA({models:i,value:l,onChange:o}){const[u,c]=z.useState(!1),d=z.useRef(null);z.useEffect(()=>{if(!u)return;const p=g=>{d.current&&!d.current.contains(g.target)&&c(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[u]);const h=i.find(p=>p.id===l);return v.jsxs("div",{className:"relative",ref:d,children:[v.jsxs("button",{type:"button",onClick:()=>c(p=>!p),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:[v.jsx("span",{className:h?"text-white":"text-white/20",children:h?h.label:"Choose a model..."}),v.jsx(v1,{className:`h-4 w-4 text-white/30 transition-transform ${u?"rotate-180":""}`})]}),u&&v.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:i.map(p=>v.jsx("button",{onClick:()=>{o(p.id),c(!1)},className:`w-full text-left px-4 py-2 text-[13px] transition-colors ${l===p.id?"text-[#AF27E3] bg-[#AF27E3]/10":"text-white/70 hover:bg-white/[0.04] hover:text-white"}`,children:p.label},p.id))})]})}function VA({onComplete:i,isInitialSetup:l=!1,onSave:o}){const u=l?7:6,[c,d]=z.useState(0),[h,p]=z.useState(""),[g,m]=z.useState("anthropic"),[x,b]=z.useState(""),[T,D]=z.useState(!1),[V,Y]=z.useState({anthropic:"idle",openai:"idle"}),[X,q]=z.useState(!1),[K,G]=z.useState(""),[J,Z]=z.useState(!1),[lt,k]=z.useState(),[F,st]=z.useState(!1),[bt,Et]=z.useState(!1),[Bt,ae]=z.useState(),[vt,$t]=z.useState(""),[R,H]=z.useState(null),[$,ut]=z.useState(""),[ht,E]=z.useState({}),[U,Q]=z.useState("at"),[P,ot]=z.useState(!1),[at,dt]=z.useState(!1),[Kt,Dt]=z.useState(""),sn=z.useRef(null),[ie,dl]=z.useState("quick"),[hi,Mn]=z.useState(""),[ml,pl]=z.useState(""),[Xe,ta]=z.useState("relay"),[ze,di]=z.useState(null),[Ke,yl]=z.useState(!1),[Os,fe]=z.useState(!1),[gu,zs]=z.useState("admin"),[me,mi]=z.useState(""),[gl,Rs]=z.useState(""),[Vs,pi]=z.useState(!1),[le,pe]=z.useState(!1),[on,ye]=z.useState(!1),[ea,vu]=z.useState(""),[_s,jn]=z.useState(""),[Nn,Ua]=z.useState(!1),[gn,Ba]=z.useState(!1),[Se,Us]=z.useState(!1),[Qe,yi]=z.useState(""),[Te,Dn]=z.useState(!1),[vl,La]=z.useState(""),[gi,na]=z.useState(""),[xl,Ha]=z.useState(""),[Ya,Ze]=z.useState(""),[Lt,ee]=z.useState(!1),[On,vi]=z.useState(!1),[xi,vn]=z.useState(""),[bl,zn]=z.useState([]),[qa,Rn]=z.useState(!1),[aa,Vn]=z.useState(!1),[un,Yt]=z.useState(""),[Sl,Ga]=z.useState(""),[_n,ia]=z.useState(!1),[Xa,la]=z.useState("password"),bi=z.useRef(!1),Un=V[g]==="connected";z.useEffect(()=>{fetch("/api/onboard/status").then(j=>j.json()).then(j=>{j.userName&&p(j.userName),j.handle&&($t(j.handle.username),Q(j.handle.tier||"at"),di({username:j.handle.username,tier:j.handle.tier,url:j.handle.url}),dt(!0),Dt(j.handle.url)),j.portalUser&&zs(j.portalUser),j.portalConfigured&&pe(!0),j.provider&&m(j.provider),j.model&&b(j.model),j.whisperEnabled&&(Us(!0),yi(j.whisperKey||"")),j.totpEnabled&&(Dn(!0),ee(!0)),j.tunnelMode&&dl(j.tunnelMode),j.tunnelDomain&&Mn(j.tunnelDomain),j.tunnelUrl&&pl(j.tunnelUrl),j.handle||ta("tunnel"),bi.current=!0}).catch(()=>{bi.current=!0})},[]),z.useEffect(()=>{ia(window.matchMedia("(max-width: 768px)").matches||"ontouchstart"in window)},[]),z.useEffect(()=>{g!=="anthropic"||V.anthropic==="connected"||fetch("/api/auth/claude/status").then(j=>j.json()).then(j=>{j.authenticated&&Y(tt=>({...tt,anthropic:"connected"}))}).catch(()=>{})},[g]),z.useEffect(()=>{g!=="openai"||V.openai==="connected"||fetch("/api/auth/codex/status").then(j=>j.json()).then(j=>{j.authenticated&&Y(tt=>({...tt,openai:"connected"}))}).catch(()=>{})},[g]),z.useEffect(()=>{if(!bt)return;const j=setInterval(async()=>{try{(await(await fetch("/api/auth/codex/status")).json()).authenticated&&(Et(!1),Y(Ve=>({...Ve,openai:"connected"})))}catch{}},2e3);return()=>clearInterval(j)},[bt]),z.useEffect(()=>{if(sn.current&&clearTimeout(sn.current),!bi.current||ie==="off"||ze&&at&&vt===ze.username)return;H(null),ut(""),E({}),dt(!1),Dt("");const j=vt.trim();if(j){if(j.length<3){H("invalid"),ut("At least 3 characters");return}return H("checking"),sn.current=setTimeout(async()=>{try{const zt=await(await fetch(`/api/handle/check/${encodeURIComponent(j)}`)).json();if(!zt.valid)H("invalid"),ut(zt.error);else{const Ve={};for(const oa of zt.handles)Ve[oa.tier]=oa.available;E(Ve),H("ready");const we=Fc.find(oa=>Ve[oa.tier]);we&&!Ve[U]&&Q(we.tier)}}catch{H(null)}},400),()=>{sn.current&&clearTimeout(sn.current)}}},[vt]);const sa=j=>{$t(j.toLowerCase().replace(/[^a-z0-9-]/g,""))},Si=async()=>{if(!(!vt||R!=="ready"||!ht[U])){ot(!0);try{const tt=await(await fetch("/api/handle/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:vt,tier:U})})).json();tt.ok?(dt(!0),Dt(tt.url)):(ut(tt.error||"Registration failed"),H("invalid"))}catch{ut("Could not reach server"),H("invalid")}finally{ot(!1)}}},rn=async()=>{if(!(!vt||R!=="ready"||!ht[U])){fe(!0);try{const tt=await(await fetch("/api/handle/change",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:vt,tier:U})})).json();tt.ok?(dt(!0),Dt(tt.url),di({username:vt,tier:U,url:tt.url}),yl(!1)):(ut(tt.error||"Handle change failed"),H("invalid"))}catch{ut("Could not reach server"),H("invalid")}finally{fe(!1)}}},Ae=j=>{g==="openai"&&j!=="openai"&&bt&&(fetch("/api/auth/codex/cancel",{method:"POST"}),Et(!1)),m(j),b(""),q(!1),G(""),k(void 0),Et(!1),ae(void 0)},Tl=j=>{if(window.matchMedia("(display-mode: standalone)").matches||navigator.standalone===!0){const zt=document.createElement("a");zt.href=j,zt.target="_blank",zt.rel="noopener noreferrer",document.body.appendChild(zt),zt.click(),document.body.removeChild(zt)}else window.open(j,"_blank","noopener,noreferrer")},xu=async()=>{k(void 0);try{const tt=await(await fetch("/api/auth/claude/start",{method:"POST"})).json();tt.success&&tt.authUrl?(Tl(tt.authUrl),q(!0)):k(tt.error||"Failed to start authentication")}catch(j){k(j.message)}},Ti=async()=>{if(K.trim()){Z(!0),k(void 0);try{const tt=await(await fetch("/api/auth/claude/exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:K.trim()})})).json();tt.success?Y(zt=>({...zt,anthropic:"connected"})):k(tt.error||"Code exchange failed")}catch(j){k(j.message)}finally{Z(!1)}}},Bs=async()=>{try{const j=await navigator.clipboard.readText();j&&G(j.trim())}catch{}},Ai=async()=>{st(!0),k(void 0);try{(await(await fetch("/api/auth/claude/status")).json()).authenticated?Y(zt=>({...zt,anthropic:"connected"})):k("No active session found. Please authenticate first.")}catch{}finally{st(!1)}},bu=async()=>{Et(!0),ae(void 0);try{const tt=await(await fetch("/api/auth/codex/start",{method:"POST"})).json();tt.success&&tt.authUrl?Tl(tt.authUrl):(Et(!1),ae(tt.error||"Failed to start authentication"))}catch(j){Et(!1),ae(j.message)}},Ee=()=>{Et(!1),fetch("/api/auth/codex/cancel",{method:"POST"})},Ei=me===gl,Al=me.length>=6&&Ei,El=le?me.length===0||Nn&&Al:Al,Re=(()=>{switch(c){case 0:return!0;case 1:return h.trim().length>0;case 2:return ie==="off"||ie==="named"||Xe==="tunnel"?vt.trim().length>=3:at;case 3:return!(Xa!=="password"||!El||Te&&!Lt);case 4:return!!(g&&x&&Un);case 5:return!0;default:return!1}})(),ke=()=>{Re&&c<u-1&&d(j=>j+1)},Ls=()=>{c>0&&d(j=>j-1)},xn=j=>{j.key==="Enter"&&Re&&ke()},Su=async()=>{D(!0);const j={userName:h.trim(),agentName:vt.trim()||"Fluxy",provider:g,model:x,apiKey:"",whisperEnabled:Se,whisperKey:Se?Qe:"",portalUser:gu.trim(),portalPass:me};try{o?await o(j):await fetch("/api/onboard",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(j)}),l?(D(!1),d(6)):i()}catch(tt){console.error("[OnboardWizard] Onboard failed:",tt),D(!1)}},Je="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",wl="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 v.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center p-4",children:[v.jsx("div",{className:"absolute inset-0 bg-black/85 backdrop-blur-md"}),v.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:[v.jsx("div",{className:"flex justify-center gap-2 pt-6",children:Array.from({length:u},(j,tt)=>v.jsx("div",{className:`h-1.5 rounded-full transition-all duration-300 ${tt===c?"w-7 bg-gradient-brand":tt<c?"w-1.5 bg-gradient-brand opacity-60":"w-1.5 bg-white/10"}`},tt))}),v.jsx(Jy,{mode:"wait",children:v.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:[c===0&&v.jsxs("div",{className:"flex flex-col items-center text-center",children:[v.jsx("video",{src:"/fluxy_say_hi.webm",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"h-[180px] mb-4"}),v.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"Welcome to Fluxy"}),v.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."}),v.jsxs("button",{onClick:ke,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",v.jsx(Ge,{className:"h-4 w-4"})]})]}),c===1&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"What's your name?"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is how your agent will address you."}),v.jsxs("div",{className:"mt-5 flex items-center gap-3",children:[v.jsx("input",{type:"text",value:h,onChange:j=>p(j.target.value),onKeyDown:xn,placeholder:"Enter your name",autoFocus:!0,className:Je+" flex-1"}),v.jsx("button",{onClick:ke,disabled:!Re,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:v.jsx(Ge,{className:"h-5 w-5"})})]})]}),c===2&&ie==="off"&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),v.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."}),v.jsx("div",{className:"relative mt-5",children:v.jsx("input",{type:"text",value:vt,onChange:j=>sa(j.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,className:Je+" pr-10 font-mono"})}),v.jsx("div",{className:"mt-4 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:v.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."})}),v.jsxs("button",{onClick:ke,disabled:!Re,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",v.jsx(Ge,{className:"h-4 w-4"})]})]}),c===2&&ie==="named"&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),v.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."}),v.jsx("div",{className:"relative mt-5",children:v.jsx("input",{type:"text",value:vt,onChange:j=>sa(j.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,className:Je+" pr-10 font-mono"})}),v.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:[v.jsxs("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:["https://",hi]}),v.jsx("button",{onClick:()=>{navigator.clipboard.writeText(`https://${hi}`),pi(!0),setTimeout(()=>pi(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:Vs?v.jsx(Oa,{className:"h-4 w-4 text-emerald-400"}):v.jsx(Gp,{className:"h-4 w-4"})})]})]}),c===2&&ie==="quick"&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),v.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."}),ze&&at&&!Ke&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Oa,{className:"h-4 w-4 text-emerald-400"}),v.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Current handle"})]}),v.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:Kt})]}),v.jsxs("div",{className:"flex gap-2 mt-4",children:[v.jsxs("button",{onClick:ke,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",v.jsx(Ge,{className:"h-4 w-4"})]}),v.jsx("button",{onClick:()=>{yl(!0),dt(!1),$t(""),H(null),E({}),ta("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"})]})]}),Ke&&!at&&v.jsxs("div",{className:"mt-4 bg-amber-500/8 border border-amber-500/20 rounded-xl px-4 py-3",children:[v.jsx("p",{className:"text-amber-400/90 text-[13px] font-medium",children:"Changing your handle"}),v.jsxs("p",{className:"text-amber-400/60 text-[12px] mt-1",children:["Your current handle ",v.jsx("span",{className:"font-mono",children:ze?.url})," will be released and become available for others."]})]}),(!ze||Ke||!at)&&!(ze&&at&&!Ke)&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"relative mt-5",children:[v.jsx("input",{type:"text",value:vt,onChange:j=>sa(j.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,disabled:at,className:Je+" pr-10 font-mono"+(at?" opacity-50":"")}),R&&vt.length>0&&!at&&v.jsxs("div",{className:"absolute right-4 top-1/2 -translate-y-1/2",children:[R==="checking"&&v.jsx("div",{className:"w-5 h-5 border-2 border-white/10 border-t-[#04D1FE] rounded-full animate-spin"}),R==="invalid"&&v.jsx("div",{className:"w-6 h-6 rounded-full bg-amber-500/15 flex items-center justify-center",children:v.jsx("svg",{className:"w-3.5 h-3.5 text-amber-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3m0 4h.01"})})})]})]}),R==="invalid"&&$&&v.jsx("p",{className:"text-amber-400 text-[12px] mt-2",children:$}),R==="ready"&&vt.length>0&&!at&&Xe==="relay"&&v.jsxs("div",{className:"mt-4 text-center",children:[v.jsx("span",{className:"font-mono text-[15px] font-semibold tracking-tight text-white/25",children:Fc.find(j=>j.tier===U)?.prefix}),v.jsx("span",{className:"font-mono text-[15px] font-semibold tracking-tight text-gradient",children:vt})]}),R==="ready"&&vt.length>0&&!at&&v.jsxs("div",{className:"space-y-2 mt-4",children:[Fc.map(j=>{const zt=ht[j.tier]===!1;return v.jsxs("button",{onClick:()=>{zt||(Q(j.tier),ta("relay"))},disabled:zt,className:`w-full flex items-center justify-between px-4 py-3 rounded-xl border transition-all duration-200 text-left ${zt?"border-white/[0.04] bg-transparent opacity-50 cursor-not-allowed":Xe==="relay"&&U===j.tier?j.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:[v.jsx("span",{className:`font-mono text-[13px] ${zt?"text-white/40":Xe==="relay"&&U===j.tier?"text-white/80":"text-white/50"}`,children:j.label(vt)}),zt?v.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"}):v.jsx("span",{className:`text-[11px] font-medium px-2.5 py-0.5 rounded-full border ${j.badgeCls}`,children:j.badge})]},j.tier)}),v.jsxs("button",{onClick:()=>ta("tunnel"),className:`w-full flex items-center justify-between px-4 py-3 rounded-xl border transition-all duration-200 text-left ${Xe==="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:[v.jsx("span",{className:"text-[13px] text-white/50",children:"No thanks, I'll use the random URL"}),v.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"})]})]}),at&&v.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Oa,{className:"h-4 w-4 text-emerald-400"}),v.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Handle claimed!"})]}),v.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:Kt})]}),Xe==="relay"&&R==="ready"&&ht[U]&&vt.length>0&&!at&&v.jsx("button",{onClick:Ke?rn:Si,disabled:P||Os,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:P||Os?v.jsxs(v.Fragment,{children:[v.jsx(si,{className:"h-4 w-4 animate-spin"}),Ke?"Changing...":"Claiming..."]}):v.jsxs(v.Fragment,{children:[Ke?"Change Handle":"Claim & Continue",v.jsx(Ge,{className:"h-4 w-4"})]})}),Xe==="tunnel"&&R==="ready"&&vt.length>0&&!at&&v.jsxs("button",{onClick:ke,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",v.jsx(Ge,{className:"h-4 w-4"})]}),at&&v.jsxs("button",{onClick:ke,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",v.jsx(Ge,{className:"h-4 w-4"})]}),Ke&&!at&&v.jsx("button",{onClick:()=>{yl(!1),$t(ze.username),dt(!0),Dt(ze.url),Q(ze.tier),ta("relay"),H(null)},className:"w-full mt-2 py-2 text-white/25 hover:text-white/40 text-[12px] transition-colors",children:"Cancel — keep current handle"})]})]}),c===3&&v.jsx("div",{children:v.jsxs(Jy,{mode:"wait",children:[Xa==="password"&&v.jsxs(ys.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.15},children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Set a password"}),v.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."}),le&&v.jsx("div",{className:"mt-4 bg-white/[0.02] border border-white/[0.06] rounded-xl px-4 py-2.5",children:v.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."})}),le&&v.jsxs("div",{className:"mt-5",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Current password"}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("input",{type:"password",value:ea,onChange:j=>{vu(j.target.value),jn(""),Ua(!1)},placeholder:"Enter current password to change it",autoComplete:"current-password",autoFocus:!0,className:Je+" flex-1"}),ea.length>0&&!Nn&&v.jsx("button",{onClick:async()=>{Ba(!0),jn("");try{(await(await fetch("/api/portal/verify-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:ea})})).json()).valid?Ua(!0):jn("Incorrect password")}catch{jn("Could not verify")}finally{Ba(!1)}},disabled:gn,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:gn?v.jsx(si,{className:"h-4 w-4 animate-spin"}):"Verify"}),Nn&&v.jsx("div",{className:"shrink-0 w-10 h-10 flex items-center justify-center",children:v.jsx(Oa,{className:"h-4 w-4 text-emerald-400"})})]}),_s&&v.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:_s})]}),(!le||Nn)&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:le?"mt-3":"mt-5",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:le?"New password":"Password"}),v.jsx("input",{type:"password",value:me,onChange:j=>mi(j.target.value),placeholder:"••••••••",autoComplete:"new-password",autoFocus:!le,onKeyDown:xn,className:Je}),me.length>0&&me.length<6&&v.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"At least 6 characters"})]}),v.jsxs("div",{className:"mt-3",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:le?"Confirm new password":"Confirm password"}),v.jsx("input",{type:"password",value:gl,onChange:j=>Rs(j.target.value),placeholder:"••••••••",autoComplete:"new-password",onKeyDown:xn,className:Je}),gl.length>0&&!Ei&&v.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:"Passwords don't match"})]})]}),v.jsxs("div",{className:"mt-5 border border-white/[0.06] rounded-xl overflow-hidden",children:[v.jsxs("button",{onClick:async()=>{if(Te&&Lt){Vn(!0);return}if(Te)Dn(!1),na(""),La(""),Ha("");else if(Dn(!0),vn(""),Ze(""),gi)la("totp-setup");else try{const j=await fetch("/api/portal/totp/setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:le?ea:me})}),tt=await j.json();j.ok?(La(tt.secret),na(tt.qrDataUri),Ha(tt.otpauthUri),la("totp-setup")):(vn(tt.error||"Setup failed"),Dn(!1))}catch{vn("Could not reach server"),Dn(!1)}},type:"button",className:"w-full flex items-center gap-3 px-4 py-3 text-left",children:[v.jsx("div",{className:`w-9 h-9 rounded-lg flex items-center justify-center shrink-0 ${Te&&Lt?"bg-emerald-500/10":"bg-white/[0.04]"}`,children:Te&&Lt?v.jsx(Kp,{className:"h-[18px] w-[18px] text-emerald-400"}):v.jsx(z1,{className:"h-[18px] w-[18px] text-white/30"})}),v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsx("span",{className:"text-[13px] font-medium text-white block",children:"Two-Factor Auth"}),v.jsx("p",{className:"text-[11px] text-white/30 mt-0.5",children:Te&&Lt?v.jsx("span",{className:"text-emerald-400/70",children:"Active — authenticator app required"}):ie==="quick"||ie==="named"?v.jsx("span",{children:"Recommended for public bots"}):v.jsx("span",{children:"Extra security with an authenticator app"})})]}),v.jsx("div",{className:`w-10 h-6 rounded-full transition-colors relative shrink-0 ${Te?"bg-emerald-500":"bg-white/10"}`,children:v.jsx("div",{className:`absolute top-1 w-4 h-4 rounded-full bg-white shadow transition-transform ${Te?"translate-x-5":"translate-x-1"}`})})]}),aa&&v.jsxs("div",{className:"px-4 pb-3 border-t border-white/[0.06]",children:[v.jsx("p",{className:"text-[12px] text-white/40 mt-3 mb-2",children:"Enter your current TOTP code to disable 2FA:"}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("input",{type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,value:un,onChange:j=>{Yt(j.target.value.replace(/\D/g,"")),Ga("")},placeholder:"000000",className:wl+" flex-1 tracking-[0.3em] text-center font-mono"}),v.jsx("button",{onClick:async()=>{if(un.length===6)try{const j=await fetch("/api/portal/totp/disable",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:le?ea:me,code:un})}),tt=await j.json();j.ok?(Dn(!1),ee(!1),La(""),na(""),Ha(""),Vn(!1),Yt(""),zn([]),Rn(!1)):Ga(tt.error||"Failed to disable")}catch{Ga("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"})]}),Sl&&v.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:Sl}),v.jsx("button",{onClick:()=>{Vn(!1),Yt(""),Ga("")},className:"text-[11px] text-white/30 hover:text-white/50 mt-2",children:"Cancel"})]}),xi&&Xa==="password"&&v.jsx("div",{className:"mx-4 mb-3 bg-red-500/8 border border-red-500/15 rounded-xl px-3 py-2",children:v.jsx("p",{className:"text-red-400/90 text-[11px]",children:xi})})]}),v.jsxs("button",{onClick:ke,disabled:!Re,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",v.jsx(Ge,{className:"h-4 w-4"})]})]},"password"),Xa==="totp-setup"&&v.jsxs(ys.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.15},children:[v.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[v.jsx("button",{onClick:()=>{Dn(!1),na(""),La(""),Ha(""),Ze(""),vn(""),la("password")},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:v.jsx(m1,{className:"h-4 w-4"})}),v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Set up 2FA"})]}),xi&&v.jsx("div",{className:"mt-3 bg-red-500/8 border border-red-500/15 rounded-xl px-3 py-2",children:v.jsx("p",{className:"text-red-400/90 text-[11px]",children:xi})}),gi&&v.jsxs(v.Fragment,{children:[_n?v.jsxs("div",{className:"mt-4",children:[v.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."}),v.jsxs("a",{href:xl,className:"w-full py-3 bg-[#AF27E3]/10 hover:bg-[#AF27E3]/20 text-[#AF27E3] text-[14px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2",children:[v.jsx(V1,{className:"h-4 w-4"}),"Open in Authenticator"]}),v.jsxs("button",{onClick:()=>{navigator.clipboard.writeText(vl)},className:"w-full mt-2 text-[11px] text-white/25 hover:text-white/40 flex items-center justify-center gap-1 py-1 transition-colors",children:[v.jsx(Dc,{className:"h-3 w-3"}),"Or copy secret key manually"]})]}):v.jsxs("div",{className:"mt-4 flex gap-4 items-start",children:[v.jsx("div",{className:"shrink-0",children:v.jsx("div",{className:"bg-white rounded-xl p-1.5",children:v.jsx("img",{src:gi,alt:"TOTP QR Code",className:"w-[140px] h-[140px]"})})}),v.jsxs("div",{className:"flex-1 min-w-0 pt-1",children:[v.jsx("p",{className:"text-white/40 text-[13px] leading-relaxed",children:"Scan this QR code with your authenticator app."}),v.jsx("p",{className:"text-white/25 text-[11px] mt-2 leading-relaxed",children:"Google Authenticator, Authy, 1Password, or any TOTP app."}),v.jsxs("button",{onClick:()=>{navigator.clipboard.writeText(vl)},className:"mt-3 text-[11px] text-white/25 hover:text-white/40 flex items-center gap-1 transition-colors",children:[v.jsx(Dc,{className:"h-3 w-3"}),"Copy secret key"]})]})]}),v.jsxs("div",{className:"mt-5",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Enter the 6-digit code from your app"}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("input",{type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,value:Ya,onChange:j=>{Ze(j.target.value.replace(/\D/g,"")),vn("")},placeholder:"000000",autoFocus:!0,className:Je+" tracking-[0.3em] text-center font-mono flex-1"}),v.jsx("button",{onClick:async()=>{if(Ya.length===6){vi(!0),vn("");try{const j=await fetch("/api/portal/totp/verify-setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:Ya,password:le?ea:me})}),tt=await j.json();j.ok&&tt.success?(ee(!0),zn(tt.recoveryCodes||[]),la("recovery")):vn(tt.error||"Verification failed")}catch{vn("Could not reach server")}finally{vi(!1)}}},disabled:Ya.length!==6||On,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:On?v.jsx(si,{className:"h-4 w-4 animate-spin"}):"Verify"})]})]})]})]},"totp-setup"),Xa==="recovery"&&v.jsxs(ys.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.15},children:[v.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[v.jsx("div",{className:"w-9 h-9 rounded-xl bg-emerald-500/10 flex items-center justify-center shrink-0",children:v.jsx(Kp,{className:"h-[18px] w-[18px] text-emerald-400"})}),v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"2FA enabled"}),v.jsx("p",{className:"text-emerald-400/70 text-[12px]",children:"Save your recovery codes"})]})]}),v.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."}),v.jsx("div",{className:"mt-4 grid grid-cols-2 gap-1.5",children:bl.map((j,tt)=>v.jsx("div",{className:"bg-white/[0.03] border border-white/[0.06] rounded-lg px-3 py-2 text-center",children:v.jsx("code",{className:"text-[13px] text-white/60 font-mono tracking-wider",children:j})},tt))}),v.jsx("button",{onClick:()=>{navigator.clipboard.writeText(bl.join(`
|
|
18
|
-
`)),Rn(!0)},className:`w-full mt-4 py-3 text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 ${qa?"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:qa?v.jsxs(v.Fragment,{children:[v.jsx(Oa,{className:"h-4 w-4"}),"Copied"]}):v.jsxs(v.Fragment,{children:[v.jsx(Dc,{className:"h-4 w-4"}),"Copy recovery codes"]})}),v.jsxs("button",{onClick:()=>{zn([]),la("password")},disabled:!qa,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",v.jsx(Ge,{className:"h-4 w-4"})]})]},"recovery")]})}),c===4&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Choose your AI provider"}),v.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."}),v.jsx("div",{className:"flex gap-2.5 mt-4",children:jA.map(j=>v.jsxs("button",{onClick:()=>Ae(j.id),className:`flex-1 relative rounded-xl border transition-all duration-200 p-3 text-left ${g===j.id?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:[v.jsxs("div",{className:"flex flex-col items-center gap-1.5 py-0.5",children:[j.icon?v.jsx("img",{src:j.icon,alt:j.name,className:"w-8 h-8 rounded-lg"}):v.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"}),v.jsxs("div",{className:"text-center",children:[v.jsx("div",{className:"text-[13px] font-medium text-white",children:j.name}),v.jsx("div",{className:"text-[10px] text-white/30",children:j.subtitle})]})]}),V[j.id]==="connected"?v.jsx("div",{className:"absolute top-2 right-2 w-4 h-4 rounded-full bg-emerald-500/15 flex items-center justify-center",children:v.jsx(Oa,{className:"h-2.5 w-2.5 text-emerald-400"})}):g===j.id?v.jsx("div",{className:"absolute top-2 right-2 w-2 h-2 rounded-full bg-gradient-brand"}):null]},j.id))}),v.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),g==="anthropic"&&v.jsxs("div",{className:"space-y-2.5",children:[Un&&v.jsxs("div",{className:"space-y-2.5",children:[v.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:v.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — Anthropic subscription is active."})}),v.jsxs("button",{onClick:()=>{Y(j=>({...j,anthropic:"idle"})),q(!1),G(""),k("")},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:[v.jsx(Oc,{className:"h-3 w-3"}),"Re-authenticate"]})]}),!Un&&v.jsxs(v.Fragment,{children:[lt&&v.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:v.jsx("p",{className:"text-red-400/90 text-[12px]",children:lt})}),v.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((j,tt)=>v.jsxs("div",{className:"flex items-start gap-2",children:[v.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:tt+1}),v.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:j})]},tt))}),v.jsx("button",{onClick:xu,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:X?v.jsxs(v.Fragment,{children:[v.jsx(Xp,{className:"h-3.5 w-3.5 opacity-60"}),"Open authentication page again"]}):v.jsxs(v.Fragment,{children:["Authenticate with Anthropic",v.jsx(Ge,{className:"h-3.5 w-3.5 opacity-60"})]})}),v.jsxs("div",{className:"relative",children:[v.jsx("input",{type:"text",value:K,onChange:j=>G(j.target.value),onKeyDown:j=>j.key==="Enter"&&Ti(),placeholder:"Paste your code here...",className:wl+" pr-10 font-mono"}),v.jsx("button",{onClick:Bs,className:"absolute right-3 top-1/2 -translate-y-1/2 text-white/20 hover:text-white/50 transition-colors",children:v.jsx(Gp,{className:"h-3.5 w-3.5"})})]}),v.jsx("button",{onClick:Ti,disabled:!K.trim()||J,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:J?v.jsxs(v.Fragment,{children:[v.jsx(si,{className:"h-3.5 w-3.5 animate-spin"}),"Verifying..."]}):"Connect"}),v.jsxs("button",{onClick:Ai,disabled:F,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:[F?v.jsx(si,{className:"h-3 w-3 animate-spin"}):v.jsx(Oc,{className:"h-3 w-3"}),F?"Checking...":"I'm already authenticated"]})]})]}),g==="openai"&&v.jsxs("div",{className:"space-y-2.5",children:[Un&&v.jsxs("div",{className:"space-y-2.5",children:[v.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:v.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — ChatGPT subscription is active."})}),v.jsxs("button",{onClick:()=>{Y(j=>({...j,openai:"idle"})),ae("")},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:[v.jsx(Oc,{className:"h-3 w-3"}),"Re-authenticate"]})]}),!Un&&v.jsxs(v.Fragment,{children:[Bt&&v.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:v.jsx("p",{className:"text-red-400/90 text-[12px]",children:Bt})}),v.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((j,tt)=>v.jsxs("div",{className:"flex items-start gap-2",children:[v.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:tt+1}),v.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:j})]},tt))}),v.jsx("button",{onClick:bu,disabled:bt,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:bt?v.jsxs(v.Fragment,{children:[v.jsx(si,{className:"h-3.5 w-3.5 animate-spin opacity-60"}),"Waiting for sign-in..."]}):v.jsxs(v.Fragment,{children:["Authenticate with ChatGPT",v.jsx(Ge,{className:"h-3.5 w-3.5 opacity-60"})]})}),bt&&v.jsx("button",{onClick:Ee,className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors",children:"Cancel"})]})]}),Un&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Select a model"}),v.jsx(DA,{models:NA[g]||[],value:x,onChange:b})]}),Un&&v.jsxs("button",{onClick:ke,disabled:!Re,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",v.jsx(Ge,{className:"h-4 w-4"})]})]}),c===5&&v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Voice Messages"}),v.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"})]}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1 leading-relaxed",children:"Allow users to send audio messages that are automatically transcribed."}),v.jsx("button",{onClick:()=>Us(j=>!j),className:`w-full mt-5 rounded-xl border transition-all duration-200 p-4 text-left ${Se?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:v.jsxs("div",{className:"flex items-center gap-3.5",children:[v.jsx("img",{src:"/icons/openai.svg",alt:"OpenAI",className:"w-10 h-10 rounded-xl bg-white/[0.04] p-1.5"}),v.jsxs("div",{className:"flex-1",children:[v.jsx("div",{className:"text-[14px] font-medium text-white",children:"OpenAI Whisper"}),v.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."})]}),v.jsx("div",{className:`w-10 h-[22px] rounded-full transition-colors duration-200 flex items-center px-0.5 shrink-0 ${Se?"bg-gradient-brand":"bg-white/[0.08]"}`,children:v.jsx("div",{className:`w-[18px] h-[18px] rounded-full bg-white shadow-sm transition-transform duration-200 ${Se?"translate-x-[18px]":"translate-x-0"}`})})]})}),Se&&v.jsxs("div",{className:"mt-3",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"OpenAI API Key"}),v.jsx("input",{type:"password",value:Qe,onChange:j=>yi(j.target.value.trim()),placeholder:"sk-...",autoComplete:"off",className:Je+" font-mono text-[13px]"}),Qe.length>0&&!Qe.startsWith("sk-")&&v.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key should start with sk-"}),Qe.length>0&&Qe.startsWith("sk-")&&Qe.length<20&&v.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key looks too short"}),v.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:[v.jsx(j1,{className:"h-4 w-4 text-[#AF27E3]/60 mt-0.5 shrink-0"}),v.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."})]})]}),v.jsx("button",{onClick:Su,disabled:T||Se&&(!Qe.startsWith("sk-")||Qe.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:T?v.jsxs(v.Fragment,{children:[v.jsx(si,{className:"h-4 w-4 animate-spin"}),"Setting up..."]}):v.jsxs(v.Fragment,{children:["Complete Setup",v.jsx(Ge,{className:"h-4 w-4"})]})}),!Se&&v.jsx("p",{className:"text-center text-white/20 text-[11px] mt-2.5",children:"You can enable this later in Settings."})]}),c===6&&l&&(()=>{const j=ie==="off",tt=j?window.location.origin:ie==="named"?`https://${hi}`:Xe==="relay"&&Kt?Kt:ml||"http://localhost:3000",zt=tt.startsWith("http")?tt:`https://${tt}`,Ve=j?"Your agent is running on your private network. Access it from any device on your local network or VPN.":ie==="named"?"Access your agent at your custom domain.":Xe==="relay"&&Kt?"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 v.jsxs("div",{className:"flex flex-col items-center text-center",children:[v.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:v.jsx(Oa,{className:"h-8 w-8 text-emerald-400"})}),v.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"All Set!"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-2 leading-relaxed max-w-[340px]",children:Ve}),v.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:[v.jsx("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:tt}),v.jsx("button",{onClick:()=>{navigator.clipboard.writeText(zt),pi(!0),setTimeout(()=>pi(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:Vs?v.jsx(Oa,{className:"h-4 w-4 text-emerald-400"}):v.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[v.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),v.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})})]}),v.jsxs("div",{className:"w-full mt-3",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block text-left",children:"Your password"}),v.jsxs("div",{className:"flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[v.jsx("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:on?me:"•".repeat(Math.max(me.length,8))}),v.jsx("button",{onClick:()=>ye(we=>!we),className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:on?v.jsx(A1,{className:"h-4 w-4"}):v.jsx(w1,{className:"h-4 w-4"})})]})]}),v.jsxs("button",{onClick:()=>{j?(window.top||window).location.href="/":(window.top||window).location.href=zt},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:[j?"Go to dashboard":"Go to your agent",v.jsx(Xp,{className:"h-4 w-4"})]}),v.jsx("p",{className:"text-white/20 text-[11px] mt-3 leading-relaxed",children:j?"Access from any device on your network using the URL above.":`You'll be redirected to your ${ie==="named"?"custom domain":Xe==="relay"?"custom URL":"tunnel URL"}.`})]})})()]},c)}),c>0&&c<u-1&&!(c===6&&l)&&v.jsx("div",{className:"px-8 pb-5 -mt-3",children:v.jsx("button",{onClick:Ls,className:"text-white/25 hover:text-white/50 text-[12px] transition-colors",children:"← Back"})})]})]})}export{Jy as A,Oa as C,si as L,j1 as M,VA as O,OA as R,z1 as S,Ge as a,m1 as b,be as c,Dc as d,zA as e,u0 as g,v as j,ys as m,z as r};
|