fluxy-bot 0.6.2 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +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"]'))o(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"&&o(h)}).observe(document,{childList:!0,subtree:!0});function u(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 o(c){if(c.ep)return;c.ep=!0;const d=u(c);fetch(c.href,d)}})();function Iy(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var oc={exports:{}},Xl={};var Ap;function F1(){if(Ap)return Xl;Ap=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function u(o,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:o,key:h,ref:c!==void 0?c:null,props:d}}return Xl.Fragment=l,Xl.jsx=u,Xl.jsxs=u,Xl}var Ep;function P1(){return Ep||(Ep=1,oc.exports=F1()),oc.exports}var x=P1(),rc={exports:{}},rt={};var Cp;function W1(){if(Cp)return rt;Cp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),o=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"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),T=Symbol.iterator;function j(E){return E===null||typeof E!="object"?null:(E=T&&E[T]||E["@@iterator"],typeof E=="function"?E:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,X={};function q(E,_,Q){this.props=E,this.context=_,this.refs=X,this.updater=Q||R}q.prototype.isReactComponent={},q.prototype.setState=function(E,_){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,_,"setState")},q.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function K(){}K.prototype=q.prototype;function G(E,_,Q){this.props=E,this.context=_,this.refs=X,this.updater=Q||R}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,_,Q){var P=Q.ref;return{$$typeof:i,type:E,key:_,ref:P!==void 0?P:null,props:Q}}function bt(E,_){return st(E.type,_,E.props)}function Et(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function Bt(E){var _={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Q){return _[Q]})}var ee=/\/+/g;function vt(E,_){return typeof E=="object"&&E!==null&&E.key!=null?Bt(""+E.key):_.toString(36)}function Pt(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(_){E.status==="pending"&&(E.status="fulfilled",E.value=_)},function(_){E.status==="pending"&&(E.status="rejected",E.reason=_)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function z(E,_,Q,P,ut){var nt=typeof E;(nt==="undefined"||nt==="boolean")&&(E=null);var dt=!1;if(E===null)dt=!0;else switch(nt){case"bigint":case"string":case"number":dt=!0;break;case"object":switch(E.$$typeof){case i:case l:dt=!0;break;case v:return dt=E._init,z(dt(E._payload),_,Q,P,ut)}}if(dt)return ut=ut(E),dt=P===""?"."+vt(E,0):P,Z(ut)?(Q="",dt!=null&&(Q=dt.replace(ee,"$&/")+"/"),z(ut,_,Q,"",function(Ie){return Ie})):ut!=null&&(Et(ut)&&(ut=bt(ut,Q+(ut.key==null||E&&E.key===ut.key?"":(""+ut.key).replace(ee,"$&/")+"/")+dt)),_.push(ut)),1;dt=0;var Gt=P===""?".":P+":";if(Z(E))for(var jt=0;jt<E.length;jt++)P=E[jt],nt=Gt+vt(P,jt),dt+=z(P,_,Q,nt,ut);else if(jt=j(E),typeof jt=="function")for(E=jt.call(E),jt=0;!(P=E.next()).done;)P=P.value,nt=Gt+vt(P,jt++),dt+=z(P,_,Q,nt,ut);else if(nt==="object"){if(typeof E.then=="function")return z(Pt(E),_,Q,P,ut);throw _=String(E),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}return dt}function H(E,_,Q){if(E==null)return E;var P=[],ut=0;return z(E,P,"","",function(nt){return _.call(Q,nt,ut++)}),P}function $(E){if(E._status===-1){var _=E._result;_=_(),_.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=_)}if(E._status===1)return E._result.default;throw E._result}var ot=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var _=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(_))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},ht={map:H,forEach:function(E,_,Q){H(E,function(){_.apply(this,arguments)},Q)},count:function(E){var _=0;return H(E,function(){_++}),_},toArray:function(E){return H(E,function(_){return _})||[]},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=u,rt.Profiler=c,rt.PureComponent=G,rt.StrictMode=o,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,_,Q){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var P=Y({},E.props),ut=E.key;if(_!=null)for(nt in _.key!==void 0&&(ut=""+_.key),_)!F.call(_,nt)||nt==="key"||nt==="__self"||nt==="__source"||nt==="ref"&&_.ref===void 0||(P[nt]=_[nt]);var nt=arguments.length-2;if(nt===1)P.children=Q;else if(1<nt){for(var dt=Array(nt),Gt=0;Gt<nt;Gt++)dt[Gt]=arguments[Gt+2];P.children=dt}return st(E.type,ut,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,_,Q){var P,ut={},nt=null;if(_!=null)for(P in _.key!==void 0&&(nt=""+_.key),_)F.call(_,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(ut[P]=_[P]);var dt=arguments.length-2;if(dt===1)ut.children=Q;else if(1<dt){for(var Gt=Array(dt),jt=0;jt<dt;jt++)Gt[jt]=arguments[jt+2];ut.children=Gt}if(E&&E.defaultProps)for(P in dt=E.defaultProps,dt)ut[P]===void 0&&(ut[P]=dt[P]);return st(E,nt,ut)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(E){return{$$typeof:p,render:E}},rt.isValidElement=Et,rt.lazy=function(E){return{$$typeof:v,_payload:{_status:-1,_result:E},_init:$}},rt.memo=function(E,_){return{$$typeof:m,type:E,compare:_===void 0?null:_}},rt.startTransition=function(E){var _=k.T,Q={};k.T=Q;try{var P=E(),ut=k.S;ut!==null&&ut(Q,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(lt,ot)}catch(nt){ot(nt)}finally{_!==null&&Q.types!==null&&(_.types=Q.types),k.T=_}},rt.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},rt.use=function(E){return k.H.use(E)},rt.useActionState=function(E,_,Q){return k.H.useActionState(E,_,Q)},rt.useCallback=function(E,_){return k.H.useCallback(E,_)},rt.useContext=function(E){return k.H.useContext(E)},rt.useDebugValue=function(){},rt.useDeferredValue=function(E,_){return k.H.useDeferredValue(E,_)},rt.useEffect=function(E,_){return k.H.useEffect(E,_)},rt.useEffectEvent=function(E){return k.H.useEffectEvent(E)},rt.useId=function(){return k.H.useId()},rt.useImperativeHandle=function(E,_,Q){return k.H.useImperativeHandle(E,_,Q)},rt.useInsertionEffect=function(E,_){return k.H.useInsertionEffect(E,_)},rt.useLayoutEffect=function(E,_){return k.H.useLayoutEffect(E,_)},rt.useMemo=function(E,_){return k.H.useMemo(E,_)},rt.useOptimistic=function(E,_){return k.H.useOptimistic(E,_)},rt.useReducer=function(E,_,Q){return k.H.useReducer(E,_,Q)},rt.useRef=function(E){return k.H.useRef(E)},rt.useState=function(E){return k.H.useState(E)},rt.useSyncExternalStore=function(E,_,Q){return k.H.useSyncExternalStore(E,_,Q)},rt.useTransition=function(){return k.H.useTransition()},rt.version="19.2.4",rt}var Mp;function af(){return Mp||(Mp=1,rc.exports=W1()),rc.exports}var U=af();const SA=Iy(U);var cc={exports:{}},Kl={},fc={exports:{}},hc={};var wp;function $1(){return wp||(wp=1,(function(i){function l(z,H){var $=z.length;z.push(H);t:for(;0<$;){var ot=$-1>>>1,ht=z[ot];if(0<c(ht,H))z[ot]=H,z[$]=ht,$=ot;else break t}}function u(z){return z.length===0?null:z[0]}function o(z){if(z.length===0)return null;var H=z[0],$=z.pop();if($!==H){z[0]=$;t:for(var ot=0,ht=z.length,E=ht>>>1;ot<E;){var _=2*(ot+1)-1,Q=z[_],P=_+1,ut=z[P];if(0>c(Q,$))P<ht&&0>c(ut,Q)?(z[ot]=ut,z[P]=$,ot=P):(z[ot]=Q,z[_]=$,ot=_);else if(P<ht&&0>c(ut,$))z[ot]=ut,z[P]=$,ot=P;else break t}}return H}function c(z,H){var $=z.sortIndex-H.sortIndex;return $!==0?$:z.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=[],v=1,b=null,T=3,j=!1,R=!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(z){for(var H=u(m);H!==null;){if(H.callback===null)o(m);else if(H.startTime<=z)o(m),H.sortIndex=H.expirationTime,l(g,H);else break;H=u(m)}}function Z(z){if(Y=!1,J(z),!R)if(u(g)!==null)R=!0,lt||(lt=!0,Bt());else{var H=u(m);H!==null&&Pt(Z,H.startTime-z)}}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 z=i.unstable_now();st=z;var H=!0;try{t:{R=!1,Y&&(Y=!1,K(k),k=-1),j=!0;var $=T;try{e:{for(J(z),b=u(g);b!==null&&!(b.expirationTime>z&&bt());){var ot=b.callback;if(typeof ot=="function"){b.callback=null,T=b.priorityLevel;var ht=ot(b.expirationTime<=z);if(z=i.unstable_now(),typeof ht=="function"){b.callback=ht,J(z),H=!0;break e}b===u(g)&&o(g),J(z)}else o(g);b=u(g)}if(b!==null)H=!0;else{var E=u(m);E!==null&&Pt(Z,E.startTime-z),H=!1}}break t}finally{b=null,T=$,j=!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 ee=new MessageChannel,vt=ee.port2;ee.port1.onmessage=Et,Bt=function(){vt.postMessage(null)}}else Bt=function(){q(Et,0)};function Pt(z,H){k=q(function(){z(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(z){z.callback=null},i.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<z?Math.floor(1e3/z):5},i.unstable_getCurrentPriorityLevel=function(){return T},i.unstable_next=function(z){switch(T){case 1:case 2:case 3:var H=3;break;default:H=T}var $=T;T=H;try{return z()}finally{T=$}},i.unstable_requestPaint=function(){X=!0},i.unstable_runWithPriority=function(z,H){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var $=T;T=z;try{return H()}finally{T=$}},i.unstable_scheduleCallback=function(z,H,$){var ot=i.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?ot+$:ot):$=ot,z){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,z={id:v++,callback:H,priorityLevel:z,startTime:$,expirationTime:ht,sortIndex:-1},$>ot?(z.sortIndex=$,l(m,z),u(g)===null&&z===u(m)&&(Y?(K(k),k=-1):Y=!0,Pt(Z,$-ot))):(z.sortIndex=ht,l(g,z),R||j||(R=!0,lt||(lt=!0,Bt()))),z},i.unstable_shouldYield=bt,i.unstable_wrapCallback=function(z){var H=T;return function(){var $=T;T=H;try{return z.apply(this,arguments)}finally{T=$}}}})(hc)),hc}var Dp;function I1(){return Dp||(Dp=1,fc.exports=$1()),fc.exports}var dc={exports:{}},ce={};var Np;function tx(){if(Np)return ce;Np=1;var i=af();function l(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}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 u(){}var o={d:{f:u,r:function(){throw Error(l(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(g,m,v){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:v}}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 ce.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ce.createPortal=function(g,m){var v=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,v)},ce.flushSync=function(g){var m=h.T,v=o.p;try{if(h.T=null,o.p=2,g)return g()}finally{h.T=m,o.p=v,o.d.f()}},ce.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(g,m))},ce.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},ce.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var v=m.as,b=p(v,m.crossOrigin),T=typeof m.integrity=="string"?m.integrity:void 0,j=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?o.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:T,fetchPriority:j}):v==="script"&&o.d.X(g,{crossOrigin:b,integrity:T,fetchPriority:j,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ce.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=p(m.as,m.crossOrigin);o.d.M(g,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(g)},ce.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,b=p(v,m.crossOrigin);o.d.L(g,v,{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})}},ce.preloadModule=function(g,m){if(typeof g=="string")if(m){var v=p(m.as,m.crossOrigin);o.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(g)},ce.requestFormReset=function(g){o.d.r(g)},ce.unstable_batchedUpdates=function(g,m){return g(m)},ce.useFormState=function(g,m,v){return h.H.useFormState(g,m,v)},ce.useFormStatus=function(){return h.H.useHostTransitionStatus()},ce.version="19.2.4",ce}var jp;function ex(){if(jp)return dc.exports;jp=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(),dc.exports=tx(),dc.exports}var Op;function nx(){if(Op)return Kl;Op=1;var i=I1(),l=af(),u=ex();function o(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(o(188))}function m(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(o(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(o(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(o(189))}}if(n.alternate!==a)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var b=Object.assign,T=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),R=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 ee=Symbol.for("react.client.reference");function vt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ee?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case 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 R: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 Pt=Array.isArray,z=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},ot=[],ht=-1;function E(t){return{current:t}}function _(t){0>ht||(t.current=ot[ht],ot[ht]=null,ht--)}function Q(t,e){ht++,ot[ht]=t.current,t.current=e}var P=E(null),ut=E(null),nt=E(null),dt=E(null);function Gt(t,e){switch(Q(nt,e),Q(ut,t),Q(P,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Zm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Zm(e),t=km(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}_(P),Q(P,t)}function jt(){_(P),_(ut),_(nt)}function Ie(t){t.memoizedState!==null&&Q(dt,t);var e=P.current,n=km(e,t.type);e!==n&&(Q(ut,t),Q(P,n))}function he(t){ut.current===t&&(_(P),_(ut)),dt.current===t&&(_(dt),Hl._currentValue=$)}var ki,ka;function Sn(t){if(ki===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);ki=e&&e[1]||"",ka=-1<n.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+ki+t+ka}var Ji=!1;function Fi(t,e){if(!t||Ji)return"";Ji=!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
- `),w=y.split(`
5
- `);for(s=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;s<w.length&&!w[s].includes("DetermineComponentFrameRoot");)s++;if(a===S.length||s===w.length)for(a=S.length-1,s=w.length-1;1<=a&&0<=s&&S[a]!==w[s];)s--;for(;1<=a&&0<=s;a--,s--)if(S[a]!==w[s]){if(a!==1||s!==1)do if(a--,s--,0>s||S[a]!==w[s]){var V=`
6
- `+S[a].replace(" at new "," at ");return t.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",t.displayName)),V}while(1<=a&&0<=s);break}}}finally{Ji=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Sn(n):""}function Ue(t,e){switch(t.tag){case 26:case 27:case 5:return Sn(t.type);case 16:return Sn("Lazy");case 13:return t.child!==e&&e!==null?Sn("Suspense Fallback"):Sn("Suspense");case 19:return Sn("SuspenseList");case 0:case 15:return Fi(t.type,!1);case 11:return Fi(t.type.render,!1);case 1:return Fi(t.type,!0);case 31:return Sn("Activity");default:return""}}function Zn(t){try{var e="",n=null;do e+=Ue(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
7
- Error generating stack: `+a.message+`
8
- `+a.stack}}var De=Object.prototype.hasOwnProperty,Ja=i.unstable_scheduleCallback,Be=i.unstable_cancelCallback,Pi=i.unstable_shouldYield,ss=i.unstable_requestPaint,ue=i.unstable_now,Wu=i.unstable_getCurrentPriorityLevel,us=i.unstable_ImmediatePriority,Le=i.unstable_UserBlockingPriority,Fa=i.unstable_NormalPriority,Wi=i.unstable_LowPriority,os=i.unstable_IdlePriority,rs=i.log,Pa=i.unstable_setDisableYieldValue,xe=null,de=null;function tn(t){if(typeof rs=="function"&&Pa(t),de&&typeof de.setStrictMode=="function")try{de.setStrictMode(xe,t)}catch{}}var me=Math.clz32?Math.clz32:cs,$i=Math.log,$u=Math.LN2;function cs(t){return t>>>=0,t===0?32:31-($i(t)/$u|0)|0}var Tn=256,An=262144,Ta=4194304;function cn(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 Aa(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=cn(a):(f&=y,f!==0?s=cn(f):n||(n=y&~t,n!==0&&(s=cn(n))))):(y=a&~r,y!==0?s=cn(y):f!==0?s=cn(f):n||(n=a&~t,n!==0&&(s=cn(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 be(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function fs(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 He(){var t=Ta;return Ta<<=1,(Ta&62914560)===0&&(Ta=4194304),t}function Wa(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function En(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Cn(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,w=t.hiddenUpdates;for(n=f&~n;0<n;){var V=31-me(n),L=1<<V;y[V]=0,S[V]=-1;var N=w[V];if(N!==null)for(w[V]=null,V=0;V<N.length;V++){var O=N[V];O!==null&&(O.lane&=-536870913)}n&=~L}a!==0&&$a(t,a,0),r!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=r&~(f&~e))}function $a(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-me(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function hs(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-me(n),s=1<<a;s&e|t[a]&e&&(t[a]|=e),n&=~s}}function ds(t,e){var n=e&-e;return n=(n&42)!==0?1:Ii(n),(n&(t.suspendedLanes|e))!==0?0:n}function Ii(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 Ia(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ms(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:yp(t.type))}function tl(t,e){var n=H.p;try{return H.p=t,e()}finally{H.p=n}}var fn=Math.random().toString(36).slice(2),Wt="__reactFiber$"+fn,oe="__reactProps$"+fn,kn="__reactContainer$"+fn,ti="__reactEvents$"+fn,ps="__reactListeners$"+fn,Iu="__reactHandles$"+fn,Mn="__reactResources$"+fn,pe="__reactMarker$"+fn;function el(t){delete t[Wt],delete t[oe],delete t[ti],delete t[ps],delete t[Iu]}function hn(t){var e=t[Wt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[kn]||n[Wt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=tp(t);t!==null;){if(n=t[Wt])return n;t=tp(t)}return e}t=n,n=t.parentNode}return null}function Jn(t){if(t=t[Wt]||t[kn]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Se(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function Ea(t){var e=t[Mn];return e||(e=t[Mn]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function D(t){t[pe]=!0}var at=new Set,Ot={};function re(t,e){en(t,e),en(t+"Capture",e)}function en(t,e){for(Ot[t]=e,t=0;t<e.length;t++)at.add(e[t])}var ei=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]*$"),Uf={},Bf={};function qg(t){return De.call(Bf,t)?!0:De.call(Uf,t)?!1:ei.test(t)?Bf[t]=!0:(Uf[t]=!0,!1)}function ys(t,e,n){if(qg(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 gs(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 wn(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 Ye(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Lf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Gg(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 to(t){if(!t._valueTracker){var e=Lf(t)?"checked":"value";t._valueTracker=Gg(t,e,""+t[e])}}function Hf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=Lf(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function vs(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 Xg=/[\n"\\]/g;function qe(t){return t.replace(Xg,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function eo(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=""+Ye(e)):t.value!==""+Ye(e)&&(t.value=""+Ye(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?no(t,f,Ye(e)):n!=null?no(t,f,Ye(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=""+Ye(y):t.removeAttribute("name")}function Yf(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)){to(t);return}n=n!=null?""+Ye(n):"",e=e!=null?""+Ye(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),to(t)}function no(t,e,n){e==="number"&&vs(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function ni(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=""+Ye(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 qf(t,e,n){if(e!=null&&(e=""+Ye(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Ye(n):""}function Gf(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(o(92));if(Pt(a)){if(1<a.length)throw Error(o(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=Ye(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),to(t)}function ai(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Kg=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 Xf(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||Kg.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Kf(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(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&&Xf(t,s,a)}else for(var r in e)e.hasOwnProperty(r)&&Xf(t,r,e[r])}function ao(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 Qg=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"]]),Zg=/^[\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 xs(t){return Zg.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Dn(){}var io=null;function lo(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ii=null,li=null;function Qf(t){var e=Jn(t);if(e&&(t=e.stateNode)){var n=t[oe]||null;t:switch(t=e.stateNode,e.type){case"input":if(eo(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="'+qe(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var s=a[oe]||null;if(!s)throw Error(o(90));eo(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&&Hf(a)}break t;case"textarea":qf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&ni(t,!!n.multiple,e,!1)}}}var so=!1;function Zf(t,e,n){if(so)return t(e,n);so=!0;try{var a=t(e);return a}finally{if(so=!1,(ii!==null||li!==null)&&(su(),ii&&(e=ii,t=li,li=ii=null,Qf(e),t)))for(e=0;e<t.length;e++)Qf(t[e])}}function nl(t,e){var n=t.stateNode;if(n===null)return null;var a=n[oe]||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(o(231,e,typeof n));return n}var Nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uo=!1;if(Nn)try{var al={};Object.defineProperty(al,"passive",{get:function(){uo=!0}}),window.addEventListener("test",al,al),window.removeEventListener("test",al,al)}catch{uo=!1}var Fn=null,oo=null,bs=null;function kf(){if(bs)return bs;var t,e=oo,n=e.length,a,s="value"in Fn?Fn.value:Fn.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 bs=s.slice(t,1<a?1-a:void 0)}function Ss(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 Ts(){return!0}function Jf(){return!1}function Te(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)?Ts:Jf,this.isPropagationStopped=Jf,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=Ts)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ts)},persist:function(){},isPersistent:Ts}),e}var Ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},As=Te(Ca),il=b({},Ca,{view:0,detail:0}),kg=Te(il),ro,co,ll,Es=b({},il,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ho,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!==ll&&(ll&&t.type==="mousemove"?(ro=t.screenX-ll.screenX,co=t.screenY-ll.screenY):co=ro=0,ll=t),ro)},movementY:function(t){return"movementY"in t?t.movementY:co}}),Ff=Te(Es),Jg=b({},Es,{dataTransfer:0}),Fg=Te(Jg),Pg=b({},il,{relatedTarget:0}),fo=Te(Pg),Wg=b({},Ca,{animationName:0,elapsedTime:0,pseudoElement:0}),$g=Te(Wg),Ig=b({},Ca,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),tv=Te(Ig),ev=b({},Ca,{data:0}),Pf=Te(ev),nv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},av={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"},iv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=iv[t])?!!e[t]:!1}function ho(){return lv}var sv=b({},il,{key:function(t){if(t.key){var e=nv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ss(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?av[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ho,charCode:function(t){return t.type==="keypress"?Ss(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ss(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),uv=Te(sv),ov=b({},Es,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wf=Te(ov),rv=b({},il,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ho}),cv=Te(rv),fv=b({},Ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),hv=Te(fv),dv=b({},Es,{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}),mv=Te(dv),pv=b({},Ca,{newState:0,oldState:0}),yv=Te(pv),gv=[9,13,27,32],mo=Nn&&"CompositionEvent"in window,sl=null;Nn&&"documentMode"in document&&(sl=document.documentMode);var vv=Nn&&"TextEvent"in window&&!sl,$f=Nn&&(!mo||sl&&8<sl&&11>=sl),If=" ",th=!1;function eh(t,e){switch(t){case"keyup":return gv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var si=!1;function xv(t,e){switch(t){case"compositionend":return nh(e);case"keypress":return e.which!==32?null:(th=!0,If);case"textInput":return t=e.data,t===If&&th?null:t;default:return null}}function bv(t,e){if(si)return t==="compositionend"||!mo&&eh(t,e)?(t=kf(),bs=oo=Fn=null,si=!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 $f&&e.locale!=="ko"?null:e.data;default:return null}}var Sv={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 ah(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Sv[t.type]:e==="textarea"}function ih(t,e,n,a){ii?li?li.push(a):li=[a]:ii=a,e=du(e,"onChange"),0<e.length&&(n=new As("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var ul=null,ol=null;function Tv(t){Ym(t,0)}function Cs(t){var e=Se(t);if(Hf(e))return t}function lh(t,e){if(t==="change")return e}var sh=!1;if(Nn){var po;if(Nn){var yo="oninput"in document;if(!yo){var uh=document.createElement("div");uh.setAttribute("oninput","return;"),yo=typeof uh.oninput=="function"}po=yo}else po=!1;sh=po&&(!document.documentMode||9<document.documentMode)}function oh(){ul&&(ul.detachEvent("onpropertychange",rh),ol=ul=null)}function rh(t){if(t.propertyName==="value"&&Cs(ol)){var e=[];ih(e,ol,t,lo(t)),Zf(Tv,e)}}function Av(t,e,n){t==="focusin"?(oh(),ul=e,ol=n,ul.attachEvent("onpropertychange",rh)):t==="focusout"&&oh()}function Ev(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Cs(ol)}function Cv(t,e){if(t==="click")return Cs(e)}function Mv(t,e){if(t==="input"||t==="change")return Cs(e)}function wv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ne=typeof Object.is=="function"?Object.is:wv;function rl(t,e){if(Ne(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(!De.call(e,s)||!Ne(t[s],e[s]))return!1}return!0}function ch(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function fh(t,e){var n=ch(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=ch(n)}}function hh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?hh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function dh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=vs(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=vs(t.document)}return e}function go(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 Dv=Nn&&"documentMode"in document&&11>=document.documentMode,ui=null,vo=null,cl=null,xo=!1;function mh(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xo||ui==null||ui!==vs(a)||(a=ui,"selectionStart"in a&&go(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}),cl&&rl(cl,a)||(cl=a,a=du(vo,"onSelect"),0<a.length&&(e=new As("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=ui)))}function Ma(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var oi={animationend:Ma("Animation","AnimationEnd"),animationiteration:Ma("Animation","AnimationIteration"),animationstart:Ma("Animation","AnimationStart"),transitionrun:Ma("Transition","TransitionRun"),transitionstart:Ma("Transition","TransitionStart"),transitioncancel:Ma("Transition","TransitionCancel"),transitionend:Ma("Transition","TransitionEnd")},bo={},ph={};Nn&&(ph=document.createElement("div").style,"AnimationEvent"in window||(delete oi.animationend.animation,delete oi.animationiteration.animation,delete oi.animationstart.animation),"TransitionEvent"in window||delete oi.transitionend.transition);function wa(t){if(bo[t])return bo[t];if(!oi[t])return t;var e=oi[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in ph)return bo[t]=e[n];return t}var yh=wa("animationend"),gh=wa("animationiteration"),vh=wa("animationstart"),Nv=wa("transitionrun"),jv=wa("transitionstart"),Ov=wa("transitioncancel"),xh=wa("transitionend"),bh=new Map,So="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(" ");So.push("scrollEnd");function nn(t,e){bh.set(t,e),re(e,[t])}var Ms=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)},Ge=[],ri=0,To=0;function ws(){for(var t=ri,e=To=ri=0;e<t;){var n=Ge[e];Ge[e++]=null;var a=Ge[e];Ge[e++]=null;var s=Ge[e];Ge[e++]=null;var r=Ge[e];if(Ge[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&&Sh(n,s,r)}}function Ds(t,e,n,a){Ge[ri++]=t,Ge[ri++]=e,Ge[ri++]=n,Ge[ri++]=a,To|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Ao(t,e,n,a){return Ds(t,e,n,a),Ns(t)}function Da(t,e){return Ds(t,null,null,e),Ns(t)}function Sh(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-me(n),t=r.hiddenUpdates,a=t[s],a===null?t[s]=[e]:a.push(e),e.lane=n|536870912),r):null}function Ns(t){if(50<zl)throw zl=0,zr=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ci={};function zv(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 je(t,e,n,a){return new zv(t,e,n,a)}function Eo(t){return t=t.prototype,!(!t||!t.isReactComponent)}function jn(t,e){var n=t.alternate;return n===null?(n=je(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 Th(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 js(t,e,n,a,s,r){var f=0;if(a=t,typeof t=="function")Eo(t)&&(f=1);else if(typeof t=="string")f=B1(t,n,P.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case st:return t=je(31,n,e,s),t.elementType=st,t.lanes=r,t;case Y:return Na(n.children,s,r,e);case X:f=8,s|=24;break;case q:return t=je(12,n,e,s|2),t.elementType=q,t.lanes=r,t;case Z:return t=je(13,n,e,s),t.elementType=Z,t.lanes=r,t;case lt:return t=je(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(o(130,t===null?"null":typeof t,"")),a=null}return e=je(f,n,e,s),e.elementType=t,e.type=a,e.lanes=r,e}function Na(t,e,n,a){return t=je(7,t,a,e),t.lanes=n,t}function Co(t,e,n){return t=je(6,t,null,e),t.lanes=n,t}function Ah(t){var e=je(18,null,null,0);return e.stateNode=t,e}function Mo(t,e,n){return e=je(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Eh=new WeakMap;function Xe(t,e){if(typeof t=="object"&&t!==null){var n=Eh.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Zn(e)},Eh.set(t,e),e)}return{value:t,source:e,stack:Zn(e)}}var fi=[],hi=0,Os=null,fl=0,Ke=[],Qe=0,Pn=null,dn=1,mn="";function On(t,e){fi[hi++]=fl,fi[hi++]=Os,Os=t,fl=e}function Ch(t,e,n){Ke[Qe++]=dn,Ke[Qe++]=mn,Ke[Qe++]=Pn,Pn=t;var a=dn;t=mn;var s=32-me(a)-1;a&=~(1<<s),n+=1;var r=32-me(e)+s;if(30<r){var f=s-s%5;r=(a&(1<<f)-1).toString(32),a>>=f,s-=f,dn=1<<32-me(e)+s|n<<s|a,mn=r+t}else dn=1<<r|n<<s|a,mn=t}function wo(t){t.return!==null&&(On(t,1),Ch(t,1,0))}function Do(t){for(;t===Os;)Os=fi[--hi],fi[hi]=null,fl=fi[--hi],fi[hi]=null;for(;t===Pn;)Pn=Ke[--Qe],Ke[Qe]=null,mn=Ke[--Qe],Ke[Qe]=null,dn=Ke[--Qe],Ke[Qe]=null}function Mh(t,e){Ke[Qe++]=dn,Ke[Qe++]=mn,Ke[Qe++]=Pn,dn=e.id,mn=e.overflow,Pn=t}var ne=null,Vt=null,xt=!1,Wn=null,Ze=!1,No=Error(o(519));function $n(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw hl(Xe(e,t)),No}function wh(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[Wt]=t,e[oe]=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<Vl.length;n++)pt(Vl[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),Yf(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),Gf(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||Km(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=Dn),e=!0):e=!1,e||$n(t,!0)}function Dh(t){for(ne=t.return;ne;)switch(ne.tag){case 5:case 31:case 13:Ze=!1;return;case 27:case 3:Ze=!0;return;default:ne=ne.return}}function di(t){if(t!==ne)return!1;if(!xt)return Dh(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")||kr(t.type,t.memoizedProps)),n=!n),n&&Vt&&$n(t),Dh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Vt=Im(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Vt=Im(t)}else e===27?(e=Vt,ha(t.type)?(t=$r,$r=null,Vt=t):Vt=e):Vt=ne?Je(t.stateNode.nextSibling):null;return!0}function ja(){Vt=ne=null,xt=!1}function jo(){var t=Wn;return t!==null&&(Me===null?Me=t:Me.push.apply(Me,t),Wn=null),t}function hl(t){Wn===null?Wn=[t]:Wn.push(t)}var Oo=E(null),Oa=null,zn=null;function In(t,e,n){Q(Oo,e._currentValue),e._currentValue=n}function Rn(t){t._currentValue=Oo.current,_(Oo)}function zo(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 Ro(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),zo(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(o(341));f.lanes|=n,r=f.alternate,r!==null&&(r.lanes|=n),zo(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 mi(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(o(387));if(f=f.memoizedProps,f!==null){var y=s.type;Ne(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(o(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(Hl):t=[Hl])}s=s.return}t!==null&&Ro(e,t,n,a),e.flags|=262144}function zs(t){for(t=t.firstContext;t!==null;){if(!Ne(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function za(t){Oa=t,zn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ae(t){return Nh(Oa,t)}function Rs(t,e){return Oa===null&&za(t),Nh(t,e)}function Nh(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},zn===null){if(t===null)throw Error(o(308));zn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else zn=zn.next=e;return n}var Rv=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()})}},Vv=i.unstable_scheduleCallback,_v=i.unstable_NormalPriority,Qt={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vo(){return{controller:new Rv,data:new Map,refCount:0}}function dl(t){t.refCount--,t.refCount===0&&Vv(_v,function(){t.controller.abort()})}var ml=null,_o=0,pi=0,yi=null;function Uv(t,e){if(ml===null){var n=ml=[];_o=0,pi=Lr(),yi={status:"pending",value:void 0,then:function(a){n.push(a)}}}return _o++,e.then(jh,jh),e}function jh(){if(--_o===0&&ml!==null){yi!==null&&(yi.status="fulfilled");var t=ml;ml=null,pi=0,yi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Bv(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 Oh=z.S;z.S=function(t,e){mm=ue(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Uv(t,e),Oh!==null&&Oh(t,e)};var Ra=E(null);function Uo(){var t=Ra.current;return t!==null?t:zt.pooledCache}function Vs(t,e){e===null?Q(Ra,Ra.current):Q(Ra,e.pool)}function zh(){var t=Uo();return t===null?null:{parent:Qt._currentValue,pool:t}}var gi=Error(o(460)),Bo=Error(o(474)),_s=Error(o(542)),Us={then:function(){}};function Rh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Vh(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Dn,Dn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Uh(t),t;default:if(typeof e.status=="string")e.then(Dn,Dn);else{if(t=zt,t!==null&&100<t.shellSuspendCounter)throw Error(o(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,Uh(t),t}throw _a=e,gi}}function Va(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(_a=n,gi):n}}var _a=null;function _h(){if(_a===null)throw Error(o(459));var t=_a;return _a=null,t}function Uh(t){if(t===gi||t===_s)throw Error(o(483))}var vi=null,pl=0;function Bs(t){var e=pl;return pl+=1,vi===null&&(vi=[]),Vh(vi,t,e)}function yl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ls(t,e){throw e.$$typeof===T?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Bh(t){function e(C,A){if(t){var M=C.deletions;M===null?(C.deletions=[A],C.flags|=16):M.push(A)}}function n(C,A){if(!t)return null;for(;A!==null;)e(C,A),A=A.sibling;return null}function a(C){for(var A=new Map;C!==null;)C.key!==null?A.set(C.key,C):A.set(C.index,C),C=C.sibling;return A}function s(C,A){return C=jn(C,A),C.index=0,C.sibling=null,C}function r(C,A,M){return C.index=M,t?(M=C.alternate,M!==null?(M=M.index,M<A?(C.flags|=67108866,A):M):(C.flags|=67108866,A)):(C.flags|=1048576,A)}function f(C){return t&&C.alternate===null&&(C.flags|=67108866),C}function y(C,A,M,B){return A===null||A.tag!==6?(A=Co(M,C.mode,B),A.return=C,A):(A=s(A,M),A.return=C,A)}function S(C,A,M,B){var et=M.type;return et===Y?V(C,A,M.props.children,B,M.key):A!==null&&(A.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===F&&Va(et)===A.type)?(A=s(A,M.props),yl(A,M),A.return=C,A):(A=js(M.type,M.key,M.props,null,C.mode,B),yl(A,M),A.return=C,A)}function w(C,A,M,B){return A===null||A.tag!==4||A.stateNode.containerInfo!==M.containerInfo||A.stateNode.implementation!==M.implementation?(A=Mo(M,C.mode,B),A.return=C,A):(A=s(A,M.children||[]),A.return=C,A)}function V(C,A,M,B,et){return A===null||A.tag!==7?(A=Na(M,C.mode,B,et),A.return=C,A):(A=s(A,M),A.return=C,A)}function L(C,A,M){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Co(""+A,C.mode,M),A.return=C,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case j:return M=js(A.type,A.key,A.props,null,C.mode,M),yl(M,A),M.return=C,M;case R:return A=Mo(A,C.mode,M),A.return=C,A;case F:return A=Va(A),L(C,A,M)}if(Pt(A)||Bt(A))return A=Na(A,C.mode,M,null),A.return=C,A;if(typeof A.then=="function")return L(C,Bs(A),M);if(A.$$typeof===G)return L(C,Rs(C,A),M);Ls(C,A)}return null}function N(C,A,M,B){var et=A!==null?A.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return et!==null?null:y(C,A,""+M,B);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case j:return M.key===et?S(C,A,M,B):null;case R:return M.key===et?w(C,A,M,B):null;case F:return M=Va(M),N(C,A,M,B)}if(Pt(M)||Bt(M))return et!==null?null:V(C,A,M,B,null);if(typeof M.then=="function")return N(C,A,Bs(M),B);if(M.$$typeof===G)return N(C,A,Rs(C,M),B);Ls(C,M)}return null}function O(C,A,M,B,et){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return C=C.get(M)||null,y(A,C,""+B,et);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case j:return C=C.get(B.key===null?M:B.key)||null,S(A,C,B,et);case R:return C=C.get(B.key===null?M:B.key)||null,w(A,C,B,et);case F:return B=Va(B),O(C,A,M,B,et)}if(Pt(B)||Bt(B))return C=C.get(M)||null,V(A,C,B,et,null);if(typeof B.then=="function")return O(C,A,M,Bs(B),et);if(B.$$typeof===G)return O(C,A,M,Rs(A,B),et);Ls(A,B)}return null}function W(C,A,M,B){for(var et=null,St=null,tt=A,ft=A=0,gt=null;tt!==null&&ft<M.length;ft++){tt.index>ft?(gt=tt,tt=null):gt=tt.sibling;var Tt=N(C,tt,M[ft],B);if(Tt===null){tt===null&&(tt=gt);break}t&&tt&&Tt.alternate===null&&e(C,tt),A=r(Tt,A,ft),St===null?et=Tt:St.sibling=Tt,St=Tt,tt=gt}if(ft===M.length)return n(C,tt),xt&&On(C,ft),et;if(tt===null){for(;ft<M.length;ft++)tt=L(C,M[ft],B),tt!==null&&(A=r(tt,A,ft),St===null?et=tt:St.sibling=tt,St=tt);return xt&&On(C,ft),et}for(tt=a(tt);ft<M.length;ft++)gt=O(tt,C,ft,M[ft],B),gt!==null&&(t&&gt.alternate!==null&&tt.delete(gt.key===null?ft:gt.key),A=r(gt,A,ft),St===null?et=gt:St.sibling=gt,St=gt);return t&&tt.forEach(function(ga){return e(C,ga)}),xt&&On(C,ft),et}function it(C,A,M,B){if(M==null)throw Error(o(151));for(var et=null,St=null,tt=A,ft=A=0,gt=null,Tt=M.next();tt!==null&&!Tt.done;ft++,Tt=M.next()){tt.index>ft?(gt=tt,tt=null):gt=tt.sibling;var ga=N(C,tt,Tt.value,B);if(ga===null){tt===null&&(tt=gt);break}t&&tt&&ga.alternate===null&&e(C,tt),A=r(ga,A,ft),St===null?et=ga:St.sibling=ga,St=ga,tt=gt}if(Tt.done)return n(C,tt),xt&&On(C,ft),et;if(tt===null){for(;!Tt.done;ft++,Tt=M.next())Tt=L(C,Tt.value,B),Tt!==null&&(A=r(Tt,A,ft),St===null?et=Tt:St.sibling=Tt,St=Tt);return xt&&On(C,ft),et}for(tt=a(tt);!Tt.done;ft++,Tt=M.next())Tt=O(tt,C,ft,Tt.value,B),Tt!==null&&(t&&Tt.alternate!==null&&tt.delete(Tt.key===null?ft:Tt.key),A=r(Tt,A,ft),St===null?et=Tt:St.sibling=Tt,St=Tt);return t&&tt.forEach(function(J1){return e(C,J1)}),xt&&On(C,ft),et}function Nt(C,A,M,B){if(typeof M=="object"&&M!==null&&M.type===Y&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case j:t:{for(var et=M.key;A!==null;){if(A.key===et){if(et=M.type,et===Y){if(A.tag===7){n(C,A.sibling),B=s(A,M.props.children),B.return=C,C=B;break t}}else if(A.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===F&&Va(et)===A.type){n(C,A.sibling),B=s(A,M.props),yl(B,M),B.return=C,C=B;break t}n(C,A);break}else e(C,A);A=A.sibling}M.type===Y?(B=Na(M.props.children,C.mode,B,M.key),B.return=C,C=B):(B=js(M.type,M.key,M.props,null,C.mode,B),yl(B,M),B.return=C,C=B)}return f(C);case R:t:{for(et=M.key;A!==null;){if(A.key===et)if(A.tag===4&&A.stateNode.containerInfo===M.containerInfo&&A.stateNode.implementation===M.implementation){n(C,A.sibling),B=s(A,M.children||[]),B.return=C,C=B;break t}else{n(C,A);break}else e(C,A);A=A.sibling}B=Mo(M,C.mode,B),B.return=C,C=B}return f(C);case F:return M=Va(M),Nt(C,A,M,B)}if(Pt(M))return W(C,A,M,B);if(Bt(M)){if(et=Bt(M),typeof et!="function")throw Error(o(150));return M=et.call(M),it(C,A,M,B)}if(typeof M.then=="function")return Nt(C,A,Bs(M),B);if(M.$$typeof===G)return Nt(C,A,Rs(C,M),B);Ls(C,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,A!==null&&A.tag===6?(n(C,A.sibling),B=s(A,M),B.return=C,C=B):(n(C,A),B=Co(M,C.mode,B),B.return=C,C=B),f(C)):n(C,A)}return function(C,A,M,B){try{pl=0;var et=Nt(C,A,M,B);return vi=null,et}catch(tt){if(tt===gi||tt===_s)throw tt;var St=je(29,tt,null,C.mode);return St.lanes=B,St.return=C,St}}}var Ua=Bh(!0),Lh=Bh(!1),ta=!1;function Lo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ho(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ea(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function na(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=Ns(t),Sh(t,null,n),e}return Ds(t,a,e,n),Ns(t)}function gl(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,hs(t,n)}}function Yo(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 qo=!1;function vl(){if(qo){var t=yi;if(t!==null)throw t}}function xl(t,e,n,a){qo=!1;var s=t.updateQueue;ta=!1;var r=s.firstBaseUpdate,f=s.lastBaseUpdate,y=s.shared.pending;if(y!==null){s.shared.pending=null;var S=y,w=S.next;S.next=null,f===null?r=w:f.next=w,f=S;var V=t.alternate;V!==null&&(V=V.updateQueue,y=V.lastBaseUpdate,y!==f&&(y===null?V.firstBaseUpdate=w:y.next=w,V.lastBaseUpdate=S))}if(r!==null){var L=s.baseState;f=0,V=w=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===pi&&(qo=!0),V!==null&&(V=V.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:ta=!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},V===null?(w=V=O,S=L):V=V.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);V===null&&(S=L),s.baseState=S,s.firstBaseUpdate=w,s.lastBaseUpdate=V,r===null&&(s.shared.lanes=0),ua|=f,t.lanes=f,t.memoizedState=L}}function Hh(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Yh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Hh(n[t],e)}var xi=E(null),Hs=E(0);function qh(t,e){t=Gn,Q(Hs,t),Q(xi,e),Gn=t|e.baseLanes}function Go(){Q(Hs,Gn),Q(xi,xi.current)}function Xo(){Gn=Hs.current,_(xi),_(Hs)}var Oe=E(null),ke=null;function aa(t){var e=t.alternate;Q(Xt,Xt.current&1),Q(Oe,t),ke===null&&(e===null||xi.current!==null||e.memoizedState!==null)&&(ke=t)}function Ko(t){Q(Xt,Xt.current),Q(Oe,t),ke===null&&(ke=t)}function Gh(t){t.tag===22?(Q(Xt,Xt.current),Q(Oe,t),ke===null&&(ke=t)):ia()}function ia(){Q(Xt,Xt.current),Q(Oe,Oe.current)}function ze(t){_(Oe),ke===t&&(ke=null),_(Xt)}var Xt=E(0);function Ys(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Pr(n)||Wr(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 Vn=0,ct=null,wt=null,Zt=null,qs=!1,bi=!1,Ba=!1,Gs=0,bl=0,Si=null,Lv=0;function Ht(){throw Error(o(321))}function Qo(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ne(t[n],e[n]))return!1;return!0}function Zo(t,e,n,a,s,r){return Vn=r,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,z.H=t===null||t.memoizedState===null?Cd:ur,Ba=!1,r=n(a,s),Ba=!1,bi&&(r=Kh(e,n,a,s)),Xh(t),r}function Xh(t){z.H=Al;var e=wt!==null&&wt.next!==null;if(Vn=0,Zt=wt=ct=null,qs=!1,bl=0,Si=null,e)throw Error(o(300));t===null||kt||(t=t.dependencies,t!==null&&zs(t)&&(kt=!0))}function Kh(t,e,n,a){ct=t;var s=0;do{if(bi&&(Si=null),bl=0,bi=!1,25<=s)throw Error(o(301));if(s+=1,Zt=wt=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}z.H=Md,r=e(n,a)}while(bi);return r}function Hv(){var t=z.H,e=t.useState()[0];return e=typeof e.then=="function"?Sl(e):e,t=t.useState()[0],(wt!==null?wt.memoizedState:null)!==t&&(ct.flags|=1024),e}function ko(){var t=Gs!==0;return Gs=0,t}function Jo(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Fo(t){if(qs){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}qs=!1}Vn=0,Zt=wt=ct=null,bi=!1,bl=Gs=0,Si=null}function ye(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?ct.memoizedState=Zt=t:Zt=Zt.next=t,Zt}function Kt(){if(wt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=wt.next;var e=Zt===null?ct.memoizedState:Zt.next;if(e!==null)Zt=e,wt=t;else{if(t===null)throw ct.alternate===null?Error(o(467)):Error(o(310));wt=t,t={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},Zt===null?ct.memoizedState=Zt=t:Zt=Zt.next=t}return Zt}function Xs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sl(t){var e=bl;return bl+=1,Si===null&&(Si=[]),t=Vh(Si,t,e),e=ct,(Zt===null?e.memoizedState:Zt.next)===null&&(e=e.alternate,z.H=e===null||e.memoizedState===null?Cd:ur),t}function Ks(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Sl(t);if(t.$$typeof===G)return ae(t)}throw Error(o(438,String(t)))}function Po(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=Xs(),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 _n(t,e){return typeof e=="function"?e(t):e}function Qs(t){var e=Kt();return Wo(e,wt,t)}function Wo(t,e,n){var a=t.queue;if(a===null)throw Error(o(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,w=e,V=!1;do{var L=w.lane&-536870913;if(L!==w.lane?(yt&L)===L:(Vn&L)===L){var N=w.revertLane;if(N===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null}),L===pi&&(V=!0);else if((Vn&N)===N){w=w.next,N===pi&&(V=!0);continue}else L={lane:0,revertLane:w.revertLane,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},S===null?(y=S=L,f=r):S=S.next=L,ct.lanes|=N,ua|=N;L=w.action,Ba&&n(r,L),r=w.hasEagerState?w.eagerState:n(r,L)}else N={lane:L,revertLane:w.revertLane,gesture:w.gesture,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},S===null?(y=S=N,f=r):S=S.next=N,ct.lanes|=L,ua|=L;w=w.next}while(w!==null&&w!==e);if(S===null?f=r:S.next=y,!Ne(r,t.memoizedState)&&(kt=!0,V&&(n=yi,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 $o(t){var e=Kt(),n=e.queue;if(n===null)throw Error(o(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);Ne(r,e.memoizedState)||(kt=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,a]}function Qh(t,e,n){var a=ct,s=Kt(),r=xt;if(r){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!Ne((wt||s).memoizedState,n);if(f&&(s.memoizedState=n,kt=!0),s=s.queue,er(Jh.bind(null,a,s,t),[t]),s.getSnapshot!==e||f||Zt!==null&&Zt.memoizedState.tag&1){if(a.flags|=2048,Ti(9,{destroy:void 0},kh.bind(null,a,s,n,e),null),zt===null)throw Error(o(349));r||(Vn&127)!==0||Zh(a,e,n)}return n}function Zh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=Xs(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function kh(t,e,n,a){e.value=n,e.getSnapshot=a,Fh(e)&&Ph(t)}function Jh(t,e,n){return n(function(){Fh(e)&&Ph(t)})}function Fh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ne(t,n)}catch{return!0}}function Ph(t){var e=Da(t,2);e!==null&&we(e,t,2)}function Io(t){var e=ye();if(typeof t=="function"){var n=t;if(t=n(),Ba){tn(!0);try{n()}finally{tn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:t},e}function Wh(t,e,n,a){return t.baseState=n,Wo(t,wt,typeof a=="function"?a:_n)}function Yv(t,e,n,a,s){if(Js(t))throw Error(o(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)}};z.T!==null?n(!0):r.isTransition=!1,a(r),n=e.pending,n===null?(r.next=e.pending=r,$h(e,r)):(r.next=n.next,e.pending=n.next=r)}}function $h(t,e){var n=e.action,a=e.payload,s=t.state;if(e.isTransition){var r=z.T,f={};z.T=f;try{var y=n(s,a),S=z.S;S!==null&&S(f,y),Ih(t,e,y)}catch(w){tr(t,e,w)}finally{r!==null&&f.types!==null&&(r.types=f.types),z.T=r}}else try{r=n(s,a),Ih(t,e,r)}catch(w){tr(t,e,w)}}function Ih(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){td(t,e,a)},function(a){return tr(t,e,a)}):td(t,e,n)}function td(t,e,n){e.status="fulfilled",e.value=n,ed(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,$h(t,n)))}function tr(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,ed(e),e=e.next;while(e!==a)}t.action=null}function ed(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function nd(t,e){return e}function ad(t,e){if(xt){var n=zt.formState;if(n!==null){t:{var a=ct;if(xt){if(Vt){e:{for(var s=Vt,r=Ze;s.nodeType!==8;){if(!r){s=null;break e}if(s=Je(s.nextSibling),s===null){s=null;break e}}r=s.data,s=r==="F!"||r==="F"?s:null}if(s){Vt=Je(s.nextSibling),a=s.data==="F!";break t}}$n(a)}a=!1}a&&(e=n[0])}}return n=ye(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nd,lastRenderedState:e},n.queue=a,n=Td.bind(null,ct,a),a.dispatch=n,a=Io(!1),r=sr.bind(null,ct,!1,a.queue),a=ye(),s={state:e,dispatch:null,action:t,pending:null},a.queue=s,n=Yv.bind(null,ct,s,r,n),s.dispatch=n,a.memoizedState=t,[e,n,!1]}function id(t){var e=Kt();return ld(e,wt,t)}function ld(t,e,n){if(e=Wo(t,e,nd)[0],t=Qs(_n)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Sl(e)}catch(f){throw f===gi?_s:f}else a=e;e=Kt();var s=e.queue,r=s.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,Ti(9,{destroy:void 0},qv.bind(null,s,n),null)),[a,r,t]}function qv(t,e){t.action=e}function sd(t){var e=Kt(),n=wt;if(n!==null)return ld(e,n,t);Kt(),e=e.memoizedState,n=Kt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function Ti(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=ct.updateQueue,e===null&&(e=Xs(),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 ud(){return Kt().memoizedState}function Zs(t,e,n,a){var s=ye();ct.flags|=t,s.memoizedState=Ti(1|e,{destroy:void 0},n,a===void 0?null:a)}function ks(t,e,n,a){var s=Kt();a=a===void 0?null:a;var r=s.memoizedState.inst;wt!==null&&a!==null&&Qo(a,wt.memoizedState.deps)?s.memoizedState=Ti(e,r,n,a):(ct.flags|=t,s.memoizedState=Ti(1|e,r,n,a))}function od(t,e){Zs(8390656,8,t,e)}function er(t,e){ks(2048,8,t,e)}function Gv(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=Xs(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function rd(t){var e=Kt().memoizedState;return Gv({ref:e,nextImpl:t}),function(){if((At&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function cd(t,e){return ks(4,2,t,e)}function fd(t,e){return ks(4,4,t,e)}function hd(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 dd(t,e,n){n=n!=null?n.concat([t]):null,ks(4,4,hd.bind(null,e,t),n)}function nr(){}function md(t,e){var n=Kt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&Qo(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function pd(t,e){var n=Kt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&Qo(e,a[1]))return a[0];if(a=t(),Ba){tn(!0);try{t()}finally{tn(!1)}}return n.memoizedState=[a,e],a}function ar(t,e,n){return n===void 0||(Vn&1073741824)!==0&&(yt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=ym(),ct.lanes|=t,ua|=t,n)}function yd(t,e,n,a){return Ne(n,e)?n:xi.current!==null?(t=ar(t,n,a),Ne(t,e)||(kt=!0),t):(Vn&42)===0||(Vn&1073741824)!==0&&(yt&261930)===0?(kt=!0,t.memoizedState=n):(t=ym(),ct.lanes|=t,ua|=t,e)}function gd(t,e,n,a,s){var r=H.p;H.p=r!==0&&8>r?r:8;var f=z.T,y={};z.T=y,sr(t,!1,e,n);try{var S=s(),w=z.S;if(w!==null&&w(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var V=Bv(S,a);Tl(t,e,V,_e(t))}else Tl(t,e,a,_e(t))}catch(L){Tl(t,e,{then:function(){},status:"rejected",reason:L},_e())}finally{H.p=r,f!==null&&y.types!==null&&(f.types=y.types),z.T=f}}function Xv(){}function ir(t,e,n,a){if(t.tag!==5)throw Error(o(476));var s=vd(t).queue;gd(t,s,e,$,n===null?Xv:function(){return xd(t),n(a)})}function vd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:$},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function xd(t){var e=vd(t);e.next===null&&(e=t.alternate.memoizedState),Tl(t,e.next.queue,{},_e())}function lr(){return ae(Hl)}function bd(){return Kt().memoizedState}function Sd(){return Kt().memoizedState}function Kv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=_e();t=ea(n);var a=na(e,t,n);a!==null&&(we(a,e,n),gl(a,e,n)),e={cache:Vo()},t.payload=e;return}e=e.return}}function Qv(t,e,n){var a=_e();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Js(t)?Ad(e,n):(n=Ao(t,e,n,a),n!==null&&(we(n,t,a),Ed(n,e,a)))}function Td(t,e,n){var a=_e();Tl(t,e,n,a)}function Tl(t,e,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Js(t))Ad(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,Ne(y,f))return Ds(t,e,s,0),zt===null&&ws(),!1}catch{}if(n=Ao(t,e,s,a),n!==null)return we(n,t,a),Ed(n,e,a),!0}return!1}function sr(t,e,n,a){if(a={lane:2,revertLane:Lr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Js(t)){if(e)throw Error(o(479))}else e=Ao(t,n,a,2),e!==null&&we(e,t,2)}function Js(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function Ad(t,e){bi=qs=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Ed(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,hs(t,n)}}var Al={readContext:ae,use:Ks,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useLayoutEffect:Ht,useInsertionEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useSyncExternalStore:Ht,useId:Ht,useHostTransitionStatus:Ht,useFormState:Ht,useActionState:Ht,useOptimistic:Ht,useMemoCache:Ht,useCacheRefresh:Ht};Al.useEffectEvent=Ht;var Cd={readContext:ae,use:Ks,useCallback:function(t,e){return ye().memoizedState=[t,e===void 0?null:e],t},useContext:ae,useEffect:od,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Zs(4194308,4,hd.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Zs(4194308,4,t,e)},useInsertionEffect:function(t,e){Zs(4,2,t,e)},useMemo:function(t,e){var n=ye();e=e===void 0?null:e;var a=t();if(Ba){tn(!0);try{t()}finally{tn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=ye();if(n!==void 0){var s=n(e);if(Ba){tn(!0);try{n(e)}finally{tn(!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=Qv.bind(null,ct,t),[a.memoizedState,t]},useRef:function(t){var e=ye();return t={current:t},e.memoizedState=t},useState:function(t){t=Io(t);var e=t.queue,n=Td.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:nr,useDeferredValue:function(t,e){var n=ye();return ar(n,t,e)},useTransition:function(){var t=Io(!1);return t=gd.bind(null,ct,t.queue,!0,!1),ye().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=ct,s=ye();if(xt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),zt===null)throw Error(o(349));(yt&127)!==0||Zh(a,e,n)}s.memoizedState=n;var r={value:n,getSnapshot:e};return s.queue=r,od(Jh.bind(null,a,r,t),[t]),a.flags|=2048,Ti(9,{destroy:void 0},kh.bind(null,a,r,n,e),null),n},useId:function(){var t=ye(),e=zt.identifierPrefix;if(xt){var n=mn,a=dn;n=(a&~(1<<32-me(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Gs++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Lv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:lr,useFormState:ad,useActionState:ad,useOptimistic:function(t){var e=ye();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=sr.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:Po,useCacheRefresh:function(){return ye().memoizedState=Kv.bind(null,ct)},useEffectEvent:function(t){var e=ye(),n={impl:t};return e.memoizedState=n,function(){if((At&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},ur={readContext:ae,use:Ks,useCallback:md,useContext:ae,useEffect:er,useImperativeHandle:dd,useInsertionEffect:cd,useLayoutEffect:fd,useMemo:pd,useReducer:Qs,useRef:ud,useState:function(){return Qs(_n)},useDebugValue:nr,useDeferredValue:function(t,e){var n=Kt();return yd(n,wt.memoizedState,t,e)},useTransition:function(){var t=Qs(_n)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:Sl(t),e]},useSyncExternalStore:Qh,useId:bd,useHostTransitionStatus:lr,useFormState:id,useActionState:id,useOptimistic:function(t,e){var n=Kt();return Wh(n,wt,t,e)},useMemoCache:Po,useCacheRefresh:Sd};ur.useEffectEvent=rd;var Md={readContext:ae,use:Ks,useCallback:md,useContext:ae,useEffect:er,useImperativeHandle:dd,useInsertionEffect:cd,useLayoutEffect:fd,useMemo:pd,useReducer:$o,useRef:ud,useState:function(){return $o(_n)},useDebugValue:nr,useDeferredValue:function(t,e){var n=Kt();return wt===null?ar(n,t,e):yd(n,wt.memoizedState,t,e)},useTransition:function(){var t=$o(_n)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:Sl(t),e]},useSyncExternalStore:Qh,useId:bd,useHostTransitionStatus:lr,useFormState:sd,useActionState:sd,useOptimistic:function(t,e){var n=Kt();return wt!==null?Wh(n,wt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Po,useCacheRefresh:Sd};Md.useEffectEvent=rd;function or(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 rr={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=_e(),s=ea(a);s.payload=e,n!=null&&(s.callback=n),e=na(t,s,a),e!==null&&(we(e,t,a),gl(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=_e(),s=ea(a);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=na(t,s,a),e!==null&&(we(e,t,a),gl(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=_e(),a=ea(n);a.tag=2,e!=null&&(a.callback=e),e=na(t,a,n),e!==null&&(we(e,t,n),gl(e,t,n))}};function wd(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 Dd(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&&rr.enqueueReplaceState(e,e.state,null)}function La(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 Nd(t){Ms(t)}function jd(t){console.error(t)}function Od(t){Ms(t)}function Fs(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function zd(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=ea(n),n.tag=3,n.payload={element:null},n.callback=function(){Fs(t,e)},n}function Rd(t){return t=ea(t),t.tag=3,t}function Vd(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(){zd(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){zd(e,n,a),typeof s!="function"&&(oa===null?oa=new Set([this]):oa.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function Zv(t,e,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&mi(e,n,s,!0),n=Oe.current,n!==null){switch(n.tag){case 31:case 13:return ke===null?uu():n.alternate===null&&Yt===0&&(Yt=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===Us?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),_r(t,a,s)),!1;case 22:return n.flags|=65536,a===Us?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)),_r(t,a,s)),!1}throw Error(o(435,n.tag))}return _r(t,a,s),uu(),!1}if(xt)return e=Oe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,a!==No&&(t=Error(o(422),{cause:a}),hl(Xe(t,n)))):(a!==No&&(e=Error(o(423),{cause:a}),hl(Xe(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,a=Xe(a,n),s=cr(t.stateNode,a,s),Yo(t,s),Yt!==4&&(Yt=2)),!1;var r=Error(o(520),{cause:a});if(r=Xe(r,n),Ol===null?Ol=[r]:Ol.push(r),Yt!==4&&(Yt=2),e===null)return!0;a=Xe(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),Yo(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"&&(oa===null||!oa.has(r))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Rd(s),Vd(s,t,n,a),Yo(n,s),!1}n=n.return}while(n!==null);return!1}var fr=Error(o(461)),kt=!1;function ie(t,e,n,a){e.child=t===null?Lh(e,null,n,a):Ua(e,t.child,n,a)}function _d(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 za(e),a=Zo(t,e,n,f,r,s),y=ko(),t!==null&&!kt?(Jo(t,e,s),Un(t,e,s)):(xt&&y&&wo(e),e.flags|=1,ie(t,e,a,s),e.child)}function Ud(t,e,n,a,s){if(t===null){var r=n.type;return typeof r=="function"&&!Eo(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,Bd(t,e,r,a,s)):(t=js(n.type,null,a,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!xr(t,s)){var f=r.memoizedProps;if(n=n.compare,n=n!==null?n:rl,n(f,a)&&t.ref===e.ref)return Un(t,e,s)}return e.flags|=1,t=jn(r,a),t.ref=e.ref,t.return=e,e.child=t}function Bd(t,e,n,a,s){if(t!==null){var r=t.memoizedProps;if(rl(r,a)&&t.ref===e.ref)if(kt=!1,e.pendingProps=a=r,xr(t,s))(t.flags&131072)!==0&&(kt=!0);else return e.lanes=t.lanes,Un(t,e,s)}return hr(t,e,n,a,s)}function Ld(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 Hd(t,e,r,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Vs(e,r!==null?r.cachePool:null),r!==null?qh(e,r):Go(),Gh(e);else return a=e.lanes=536870912,Hd(t,e,r!==null?r.baseLanes|n:n,n,a)}else r!==null?(Vs(e,r.cachePool),qh(e,r),ia(),e.memoizedState=null):(t!==null&&Vs(e,null),Go(),ia());return ie(t,e,s,n),e.child}function El(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Hd(t,e,n,a,s){var r=Uo();return r=r===null?null:{parent:Qt._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&Vs(e,null),Go(),Gh(e),t!==null&&mi(t,e,a,!0),e.childLanes=s,null}function Ps(t,e){return e=$s({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Yd(t,e,n){return Ua(e,t.child,null,n),t=Ps(e,e.pendingProps),t.flags|=2,ze(e),e.memoizedState=null,t}function kv(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=Ps(e,a),e.lanes=536870912,El(null,t);if(Ko(e),(t=Vt)?(t=$m(t,Ze),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Pn!==null?{id:dn,overflow:mn}:null,retryLane:536870912,hydrationErrors:null},n=Ah(t),n.return=e,e.child=n,ne=e,Vt=null)):t=null,t===null)throw $n(e);return e.lanes=536870912,null}return Ps(e,a)}var r=t.memoizedState;if(r!==null){var f=r.dehydrated;if(Ko(e),s)if(e.flags&256)e.flags&=-257,e=Yd(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(kt||mi(t,e,n,!1),s=(n&t.childLanes)!==0,kt||s){if(a=zt,a!==null&&(f=ds(a,n),f!==0&&f!==r.retryLane))throw r.retryLane=f,Da(t,f),we(a,t,f),fr;uu(),e=Yd(t,e,n)}else t=r.treeContext,Vt=Je(f.nextSibling),ne=e,xt=!0,Wn=null,Ze=!1,t!==null&&Mh(e,t),e=Ps(e,a),e.flags|=4096;return e}return t=jn(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ws(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(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function hr(t,e,n,a,s){return za(e),n=Zo(t,e,n,a,void 0,s),a=ko(),t!==null&&!kt?(Jo(t,e,s),Un(t,e,s)):(xt&&a&&wo(e),e.flags|=1,ie(t,e,n,s),e.child)}function qd(t,e,n,a,s,r){return za(e),e.updateQueue=null,n=Kh(e,a,n,s),Xh(t),a=ko(),t!==null&&!kt?(Jo(t,e,r),Un(t,e,r)):(xt&&a&&wo(e),e.flags|=1,ie(t,e,n,r),e.child)}function Gd(t,e,n,a,s){if(za(e),e.stateNode===null){var r=ci,f=n.contextType;typeof f=="object"&&f!==null&&(r=ae(f)),r=new n(a,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=rr,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=a,r.state=e.memoizedState,r.refs={},Lo(e),f=n.contextType,r.context=typeof f=="object"&&f!==null?ae(f):ci,r.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(or(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&&rr.enqueueReplaceState(r,r.state,null),xl(e,a,r,s),vl(),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=La(n,y);r.props=S;var w=r.context,V=n.contextType;f=ci,typeof V=="object"&&V!==null&&(f=ae(V));var L=n.getDerivedStateFromProps;V=typeof L=="function"||typeof r.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,V||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(y||w!==f)&&Dd(e,r,a,f),ta=!1;var N=e.memoizedState;r.state=N,xl(e,a,r,s),vl(),w=e.memoizedState,y||N!==w||ta?(typeof L=="function"&&(or(e,n,L,a),w=e.memoizedState),(S=ta||wd(e,n,S,a,N,w,f))?(V||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=w),r.props=a,r.state=w,r.context=f,a=S):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{r=e.stateNode,Ho(t,e),f=e.memoizedProps,V=La(n,f),r.props=V,L=e.pendingProps,N=r.context,w=n.contextType,S=ci,typeof w=="object"&&w!==null&&(S=ae(w)),y=n.getDerivedStateFromProps,(w=typeof y=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==L||N!==S)&&Dd(e,r,a,S),ta=!1,N=e.memoizedState,r.state=N,xl(e,a,r,s),vl();var O=e.memoizedState;f!==L||N!==O||ta||t!==null&&t.dependencies!==null&&zs(t.dependencies)?(typeof y=="function"&&(or(e,n,y,a),O=e.memoizedState),(V=ta||wd(e,n,V,a,N,O,S)||t!==null&&t.dependencies!==null&&zs(t.dependencies))?(w||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=V):(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,Ws(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=Ua(e,t.child,null,s),e.child=Ua(e,null,n,s)):ie(t,e,n,s),e.memoizedState=r.state,t=e.child):t=Un(t,e,s),t}function Xd(t,e,n,a){return ja(),e.flags|=256,ie(t,e,n,a),e.child}var dr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mr(t){return{baseLanes:t,cachePool:zh()}}function pr(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ve),t}function Kd(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:(Xt.current&2)!==0),f&&(s=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(xt){if(s?aa(e):ia(),(t=Vt)?(t=$m(t,Ze),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Pn!==null?{id:dn,overflow:mn}:null,retryLane:536870912,hydrationErrors:null},n=Ah(t),n.return=e,e.child=n,ne=e,Vt=null)):t=null,t===null)throw $n(e);return Wr(t)?e.lanes=32:e.lanes=536870912,null}var y=a.children;return a=a.fallback,s?(ia(),s=e.mode,y=$s({mode:"hidden",children:y},s),a=Na(a,s,n,null),y.return=e,a.return=e,y.sibling=a,e.child=y,a=e.child,a.memoizedState=mr(n),a.childLanes=pr(t,f,n),e.memoizedState=dr,El(null,a)):(aa(e),yr(e,y))}var S=t.memoizedState;if(S!==null&&(y=S.dehydrated,y!==null)){if(r)e.flags&256?(aa(e),e.flags&=-257,e=gr(t,e,n)):e.memoizedState!==null?(ia(),e.child=t.child,e.flags|=128,e=null):(ia(),y=a.fallback,s=e.mode,a=$s({mode:"visible",children:a.children},s),y=Na(y,s,n,null),y.flags|=2,a.return=e,y.return=e,a.sibling=y,e.child=a,Ua(e,t.child,null,n),a=e.child,a.memoizedState=mr(n),a.childLanes=pr(t,f,n),e.memoizedState=dr,e=El(null,a));else if(aa(e),Wr(y)){if(f=y.nextSibling&&y.nextSibling.dataset,f)var w=f.dgst;f=w,a=Error(o(419)),a.stack="",a.digest=f,hl({value:a,source:null,stack:null}),e=gr(t,e,n)}else if(kt||mi(t,e,n,!1),f=(n&t.childLanes)!==0,kt||f){if(f=zt,f!==null&&(a=ds(f,n),a!==0&&a!==S.retryLane))throw S.retryLane=a,Da(t,a),we(f,t,a),fr;Pr(y)||uu(),e=gr(t,e,n)}else Pr(y)?(e.flags|=192,e.child=t.child,e=null):(t=S.treeContext,Vt=Je(y.nextSibling),ne=e,xt=!0,Wn=null,Ze=!1,t!==null&&Mh(e,t),e=yr(e,a.children),e.flags|=4096);return e}return s?(ia(),y=a.fallback,s=e.mode,S=t.child,w=S.sibling,a=jn(S,{mode:"hidden",children:a.children}),a.subtreeFlags=S.subtreeFlags&65011712,w!==null?y=jn(w,y):(y=Na(y,s,n,null),y.flags|=2),y.return=e,a.return=e,a.sibling=y,e.child=a,El(null,a),a=e.child,y=t.child.memoizedState,y===null?y=mr(n):(s=y.cachePool,s!==null?(S=Qt._currentValue,s=s.parent!==S?{parent:S,pool:S}:s):s=zh(),y={baseLanes:y.baseLanes|n,cachePool:s}),a.memoizedState=y,a.childLanes=pr(t,f,n),e.memoizedState=dr,El(t.child,a)):(aa(e),n=t.child,t=n.sibling,n=jn(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 yr(t,e){return e=$s({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function $s(t,e){return t=je(22,t,null,e),t.lanes=0,t}function gr(t,e,n){return Ua(e,t.child,null,n),t=yr(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Qd(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),zo(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 Zd(t,e,n){var a=e.pendingProps,s=a.revealOrder,r=a.tail;a=a.children;var f=Xt.current,y=(f&2)!==0;if(y?(f=f&1|2,e.flags|=128):f&=1,Q(Xt,f),ie(t,e,a,n),a=xt?fl:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Qd(t,n,e);else if(t.tag===19)Qd(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&&Ys(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&&Ys(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 Un(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),ua|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(mi(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=jn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=jn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function xr(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&zs(t)))}function Jv(t,e,n){switch(e.tag){case 3:Gt(e,e.stateNode.containerInfo),In(e,Qt,t.memoizedState.cache),ja();break;case 27:case 5:Ie(e);break;case 4:Gt(e,e.stateNode.containerInfo);break;case 10:In(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Ko(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(aa(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Kd(t,e,n):(aa(e),t=Un(t,e,n),t!==null?t.sibling:null);aa(e);break;case 19:var s=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(mi(t,e,n,!1),a=(n&e.childLanes)!==0),s){if(a)return Zd(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Q(Xt,Xt.current),a)break;return null;case 22:return e.lanes=0,Ld(t,e,n,e.pendingProps);case 24:In(e,Qt,t.memoizedState.cache)}return Un(t,e,n)}function kd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)kt=!0;else{if(!xr(t,n)&&(e.flags&128)===0)return kt=!1,Jv(t,e,n);kt=(t.flags&131072)!==0}else kt=!1,xt&&(e.flags&1048576)!==0&&Ch(e,fl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=Va(e.elementType),e.type=t,typeof t=="function")Eo(t)?(a=La(t,a),e.tag=1,e=Gd(null,e,t,a,n)):(e.tag=0,e=hr(null,e,t,a,n));else{if(t!=null){var s=t.$$typeof;if(s===J){e.tag=11,e=_d(null,e,t,a,n);break t}else if(s===k){e.tag=14,e=Ud(null,e,t,a,n);break t}}throw e=vt(t)||t,Error(o(306,e,""))}}return e;case 0:return hr(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,s=La(a,e.pendingProps),Gd(t,e,a,s,n);case 3:t:{if(Gt(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var r=e.memoizedState;s=r.element,Ho(t,e),xl(e,a,null,n);var f=e.memoizedState;if(a=f.cache,In(e,Qt,a),a!==r.cache&&Ro(e,[Qt],n,!0),vl(),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=Xd(t,e,a,n);break t}else if(a!==s){s=Xe(Error(o(424)),e),hl(s),e=Xd(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=Je(t.firstChild),ne=e,xt=!0,Wn=null,Ze=!0,n=Lh(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ja(),a===s){e=Un(t,e,n);break t}ie(t,e,a,n)}e=e.child}return e;case 26:return Ws(t,e),t===null?(n=ip(e.type,null,e.pendingProps,null))?e.memoizedState=n:xt||(n=e.type,t=e.pendingProps,a=mu(nt.current).createElement(n),a[Wt]=e,a[oe]=t,le(a,n,t),D(a),e.stateNode=a):e.memoizedState=ip(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Ie(e),t===null&&xt&&(a=e.stateNode=ep(e.type,e.pendingProps,nt.current),ne=e,Ze=!0,s=Vt,ha(e.type)?($r=s,Vt=Je(a.firstChild)):Vt=s),ie(t,e,e.pendingProps.children,n),Ws(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&xt&&((s=a=Vt)&&(a=E1(a,e.type,e.pendingProps,Ze),a!==null?(e.stateNode=a,ne=e,Vt=Je(a.firstChild),Ze=!1,s=!0):s=!1),s||$n(e)),Ie(e),s=e.type,r=e.pendingProps,f=t!==null?t.memoizedProps:null,a=r.children,kr(s,r)?a=null:f!==null&&kr(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=Zo(t,e,Hv,null,null,n),Hl._currentValue=s),Ws(t,e),ie(t,e,a,n),e.child;case 6:return t===null&&xt&&((t=n=Vt)&&(n=C1(n,e.pendingProps,Ze),n!==null?(e.stateNode=n,ne=e,Vt=null,t=!0):t=!1),t||$n(e)),null;case 13:return Kd(t,e,n);case 4:return Gt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=Ua(e,null,a,n):ie(t,e,a,n),e.child;case 11:return _d(t,e,e.type,e.pendingProps,n);case 7:return ie(t,e,e.pendingProps,n),e.child;case 8:return ie(t,e,e.pendingProps.children,n),e.child;case 12:return ie(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,In(e,e.type,a.value),ie(t,e,a.children,n),e.child;case 9:return s=e.type._context,a=e.pendingProps.children,za(e),s=ae(s),a=a(s),e.flags|=1,ie(t,e,a,n),e.child;case 14:return Ud(t,e,e.type,e.pendingProps,n);case 15:return Bd(t,e,e.type,e.pendingProps,n);case 19:return Zd(t,e,n);case 31:return kv(t,e,n);case 22:return Ld(t,e,n,e.pendingProps);case 24:return za(e),a=ae(Qt),t===null?(s=Uo(),s===null&&(s=zt,r=Vo(),s.pooledCache=r,r.refCount++,r!==null&&(s.pooledCacheLanes|=n),s=r),e.memoizedState={parent:a,cache:s},Lo(e),In(e,Qt,s)):((t.lanes&n)!==0&&(Ho(t,e),xl(e,null,null,n),vl()),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),In(e,Qt,a)):(a=r.cache,In(e,Qt,a),a!==s.cache&&Ro(e,[Qt],n,!0))),ie(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function Bn(t){t.flags|=4}function br(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(bm())t.flags|=8192;else throw _a=Us,Bo}else t.flags&=-16777217}function Jd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!rp(e))if(bm())t.flags|=8192;else throw _a=Us,Bo}function Is(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?He():536870912,t.lanes|=e,Mi|=e)}function Cl(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 Fv(t,e,n){var a=e.pendingProps;switch(Do(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),Rn(Qt),jt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(di(e)?Bn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,jo())),_t(e),null;case 26:var s=e.type,r=e.memoizedState;return t===null?(Bn(e),r!==null?(_t(e),Jd(e,r)):(_t(e),br(e,s,null,a,n))):r?r!==t.memoizedState?(Bn(e),_t(e),Jd(e,r)):(_t(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&Bn(e),_t(e),br(e,s,t,a,n)),null;case 27:if(he(e),n=nt.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Bn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return _t(e),null}t=P.current,di(e)?wh(e):(t=ep(s,a,n),e.stateNode=t,Bn(e))}return _t(e),null;case 5:if(he(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Bn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return _t(e),null}if(r=P.current,di(e))wh(e);else{var f=mu(nt.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[Wt]=e,r[oe]=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(le(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&&Bn(e)}}return _t(e),br(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&Bn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=nt.current,di(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,s=ne,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}t[Wt]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Km(t.nodeValue,n)),t||$n(e,!0)}else t=mu(t).createTextNode(a),t[Wt]=e,e.stateNode=t}return _t(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=di(e),n!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Wt]=e}else ja(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),t=!1}else n=jo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(ze(e),e):(ze(e),null);if((e.flags&128)!==0)throw Error(o(558))}return _t(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=di(e),a!==null&&a.dehydrated!==null){if(t===null){if(!s)throw Error(o(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(o(317));s[Wt]=e}else ja(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),s=!1}else s=jo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(ze(e),e):(ze(e),null)}return ze(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),Is(e,e.updateQueue),_t(e),null);case 4:return jt(),t===null&&Gr(e.stateNode.containerInfo),_t(e),null;case 10:return Rn(e.type),_t(e),null;case 19:if(_(Xt),a=e.memoizedState,a===null)return _t(e),null;if(s=(e.flags&128)!==0,r=a.rendering,r===null)if(s)Cl(a,!1);else{if(Yt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=Ys(t),r!==null){for(e.flags|=128,Cl(a,!1),t=r.updateQueue,e.updateQueue=t,Is(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Th(n,t),n=n.sibling;return Q(Xt,Xt.current&1|2),xt&&On(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ue()>iu&&(e.flags|=128,s=!0,Cl(a,!1),e.lanes=4194304)}else{if(!s)if(t=Ys(r),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,Is(e,t),Cl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!xt)return _t(e),null}else 2*ue()-a.renderingStartTime>iu&&n!==536870912&&(e.flags|=128,s=!0,Cl(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=ue(),t.sibling=null,n=Xt.current,Q(Xt,s?n&1|2:n&1),xt&&On(e,a.treeForkCount),t):(_t(e),null);case 22:case 23:return ze(e),Xo(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(_t(e),e.subtreeFlags&6&&(e.flags|=8192)):_t(e),n=e.updateQueue,n!==null&&Is(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&&_(Ra),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Rn(Qt),_t(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function Pv(t,e){switch(Do(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Rn(Qt),jt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return he(e),null;case 31:if(e.memoizedState!==null){if(ze(e),e.alternate===null)throw Error(o(340));ja()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ze(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));ja()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return _(Xt),null;case 4:return jt(),null;case 10:return Rn(e.type),null;case 22:case 23:return ze(e),Xo(),t!==null&&_(Ra),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Rn(Qt),null;case 25:return null;default:return null}}function Fd(t,e){switch(Do(e),e.tag){case 3:Rn(Qt),jt();break;case 26:case 27:case 5:he(e);break;case 4:jt();break;case 31:e.memoizedState!==null&&ze(e);break;case 13:ze(e);break;case 19:_(Xt);break;case 10:Rn(e.type);break;case 22:case 23:ze(e),Xo(),t!==null&&_(Ra);break;case 24:Rn(Qt)}}function Ml(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){Mt(e,e.return,y)}}function la(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,w=y;try{w()}catch(V){Mt(s,S,V)}}}a=a.next}while(a!==r)}}catch(V){Mt(e,e.return,V)}}function Pd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Yh(e,n)}catch(a){Mt(t,t.return,a)}}}function Wd(t,e,n){n.props=La(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Mt(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){Mt(t,e,s)}}function pn(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){Mt(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){Mt(t,e,s)}else n.current=null}function $d(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){Mt(t,t.return,s)}}function Sr(t,e,n){try{var a=t.stateNode;v1(a,t.type,n,e),a[oe]=e}catch(s){Mt(t,t.return,s)}}function Id(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ha(t.type)||t.tag===4}function Tr(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Id(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&&ha(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 Ar(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=Dn));else if(a!==4&&(a===27&&ha(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Ar(t,e,n),t=t.sibling;t!==null;)Ar(t,e,n),t=t.sibling}function tu(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&&ha(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(tu(t,e,n),t=t.sibling;t!==null;)tu(t,e,n),t=t.sibling}function tm(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);le(e,a,n),e[Wt]=t,e[oe]=n}catch(r){Mt(t,t.return,r)}}var Ln=!1,Jt=!1,Er=!1,em=typeof WeakSet=="function"?WeakSet:Set,te=null;function Wv(t,e){if(t=t.containerInfo,Qr=Su,t=dh(t),go(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,w=0,V=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&&++w===s&&(y=f),N===r&&++V===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(Zr={focusedElem:t,selectionRange:n},Su=!1,te=e;te!==null;)if(e=te,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,te=t;else for(;te!==null;){switch(e=te,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=La(n.type,s);t=a.getSnapshotBeforeUpdate(W,r),a.__reactInternalSnapshotBeforeUpdate=t}catch(it){Mt(n,n.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Fr(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Fr(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(o(163))}if(t=e.sibling,t!==null){t.return=e.return,te=t;break}te=e.return}}function nm(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Yn(t,n),a&4&&Ml(5,n);break;case 1:if(Yn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Mt(n,n.return,f)}else{var s=La(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Mt(n,n.return,f)}}a&64&&Pd(n),a&512&&wl(n,n.return);break;case 3:if(Yn(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{Yh(t,e)}catch(f){Mt(n,n.return,f)}}break;case 27:e===null&&a&4&&tm(n);case 26:case 5:Yn(t,n),e===null&&a&4&&$d(n),a&512&&wl(n,n.return);break;case 12:Yn(t,n);break;case 31:Yn(t,n),a&4&&lm(t,n);break;case 13:Yn(t,n),a&4&&sm(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=s1.bind(null,n),M1(t,n))));break;case 22:if(a=n.memoizedState!==null||Ln,!a){e=e!==null&&e.memoizedState!==null||Jt,s=Ln;var r=Jt;Ln=a,(Jt=e)&&!r?qn(t,n,(n.subtreeFlags&8772)!==0):Yn(t,n),Ln=s,Jt=r}break;case 30:break;default:Yn(t,n)}}function am(t){var e=t.alternate;e!==null&&(t.alternate=null,am(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&el(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,Ae=!1;function Hn(t,e,n){for(n=n.child;n!==null;)im(t,e,n),n=n.sibling}function im(t,e,n){if(de&&typeof de.onCommitFiberUnmount=="function")try{de.onCommitFiberUnmount(xe,n)}catch{}switch(n.tag){case 26:Jt||pn(n,e),Hn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Jt||pn(n,e);var a=Ut,s=Ae;ha(n.type)&&(Ut=n.stateNode,Ae=!1),Hn(t,e,n),Ul(n.stateNode),Ut=a,Ae=s;break;case 5:Jt||pn(n,e);case 6:if(a=Ut,s=Ae,Ut=null,Hn(t,e,n),Ut=a,Ae=s,Ut!==null)if(Ae)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(n.stateNode)}catch(r){Mt(n,e,r)}else try{Ut.removeChild(n.stateNode)}catch(r){Mt(n,e,r)}break;case 18:Ut!==null&&(Ae?(t=Ut,Pm(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Vi(t)):Pm(Ut,n.stateNode));break;case 4:a=Ut,s=Ae,Ut=n.stateNode.containerInfo,Ae=!0,Hn(t,e,n),Ut=a,Ae=s;break;case 0:case 11:case 14:case 15:la(2,n,e),Jt||la(4,n,e),Hn(t,e,n);break;case 1:Jt||(pn(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Wd(n,e,a)),Hn(t,e,n);break;case 21:Hn(t,e,n);break;case 22:Jt=(a=Jt)||n.memoizedState!==null,Hn(t,e,n),Jt=a;break;default:Hn(t,e,n)}}function lm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Vi(t)}catch(n){Mt(e,e.return,n)}}}function sm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Vi(t)}catch(n){Mt(e,e.return,n)}}function $v(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new em),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new em),e;default:throw Error(o(435,t.tag))}}function eu(t,e){var n=$v(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var s=u1.bind(null,t,a);a.then(s,s)}})}function Ee(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(ha(y.type)){Ut=y.stateNode,Ae=!1;break t}break;case 5:Ut=y.stateNode,Ae=!1;break t;case 3:case 4:Ut=y.stateNode.containerInfo,Ae=!0;break t}y=y.return}if(Ut===null)throw Error(o(160));im(r,f,s),Ut=null,Ae=!1,r=s.alternate,r!==null&&(r.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)um(e,t),e=e.sibling}var an=null;function um(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Ee(e,t),Ce(t),a&4&&(la(3,t,t.return),Ml(3,t),la(5,t,t.return));break;case 1:Ee(e,t),Ce(t),a&512&&(Jt||n===null||pn(n,n.return)),a&64&&Ln&&(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=an;if(Ee(e,t),Ce(t),a&512&&(Jt||n===null||pn(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[pe]||r[Wt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=s.createElement(a),s.head.insertBefore(r,s.querySelector("head > title"))),le(r,a,n),r[Wt]=t,D(r),a=r;break t;case"link":var f=up("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),le(r,a,n),s.head.appendChild(r);break;case"meta":if(f=up("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),le(r,a,n),s.head.appendChild(r);break;default:throw Error(o(468,a))}r[Wt]=t,D(r),a=r}t.stateNode=a}else op(s,t.type,t.stateNode);else t.stateNode=sp(s,a,t.memoizedProps);else r!==a?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,a===null?op(s,t.type,t.stateNode):sp(s,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Sr(t,t.memoizedProps,n.memoizedProps)}break;case 27:Ee(e,t),Ce(t),a&512&&(Jt||n===null||pn(n,n.return)),n!==null&&a&4&&Sr(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Ee(e,t),Ce(t),a&512&&(Jt||n===null||pn(n,n.return)),t.flags&32){s=t.stateNode;try{ai(s,"")}catch(W){Mt(t,t.return,W)}}a&4&&t.stateNode!=null&&(s=t.memoizedProps,Sr(t,s,n!==null?n.memoizedProps:s)),a&1024&&(Er=!0);break;case 6:if(Ee(e,t),Ce(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(W){Mt(t,t.return,W)}}break;case 3:if(gu=null,s=an,an=pu(e.containerInfo),Ee(e,t),an=s,Ce(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Vi(e.containerInfo)}catch(W){Mt(t,t.return,W)}Er&&(Er=!1,om(t));break;case 4:a=an,an=pu(t.stateNode.containerInfo),Ee(e,t),Ce(t),an=a;break;case 12:Ee(e,t),Ce(t);break;case 31:Ee(e,t),Ce(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,eu(t,a)));break;case 13:Ee(e,t),Ce(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(au=ue()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,eu(t,a)));break;case 22:s=t.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,w=Ln,V=Jt;if(Ln=w||s,Jt=V||S,Ee(e,t),Jt=V,Ln=w,Ce(t),a&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||S||Ln||Jt||Ha(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){Mt(S,S.return,W)}}}else if(e.tag===6){if(n===null){S=e;try{S.stateNode.nodeValue=s?"":S.memoizedProps}catch(W){Mt(S,S.return,W)}}}else if(e.tag===18){if(n===null){S=e;try{var O=S.stateNode;s?Wm(O,!0):Wm(S.stateNode,!1)}catch(W){Mt(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,eu(t,n))));break;case 19:Ee(e,t),Ce(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,eu(t,a)));break;case 30:break;case 21:break;default:Ee(e,t),Ce(t)}}function Ce(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(Id(a)){n=a;break}a=a.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var s=n.stateNode,r=Tr(t);tu(t,r,s);break;case 5:var f=n.stateNode;n.flags&32&&(ai(f,""),n.flags&=-33);var y=Tr(t);tu(t,y,f);break;case 3:case 4:var S=n.stateNode.containerInfo,w=Tr(t);Ar(t,w,S);break;default:throw Error(o(161))}}catch(V){Mt(t,t.return,V)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function om(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;om(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Yn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)nm(t,e.alternate,e),e=e.sibling}function Ha(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:la(4,e,e.return),Ha(e);break;case 1:pn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Wd(e,e.return,n),Ha(e);break;case 27:Ul(e.stateNode);case 26:case 5:pn(e,e.return),Ha(e);break;case 22:e.memoizedState===null&&Ha(e);break;case 30:Ha(e);break;default:Ha(e)}t=t.sibling}}function qn(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:qn(s,r,n),Ml(4,r);break;case 1:if(qn(s,r,n),a=r,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(w){Mt(a,a.return,w)}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++)Hh(S[s],y)}catch(w){Mt(a,a.return,w)}}n&&f&64&&Pd(r),wl(r,r.return);break;case 27:tm(r);case 26:case 5:qn(s,r,n),n&&a===null&&f&4&&$d(r),wl(r,r.return);break;case 12:qn(s,r,n);break;case 31:qn(s,r,n),n&&f&4&&lm(s,r);break;case 13:qn(s,r,n),n&&f&4&&sm(s,r);break;case 22:r.memoizedState===null&&qn(s,r,n),wl(r,r.return);break;case 30:break;default:qn(s,r,n)}e=e.sibling}}function Cr(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&&dl(n))}function Mr(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&dl(t))}function ln(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)rm(t,e,n,a),e=e.sibling}function rm(t,e,n,a){var s=e.flags;switch(e.tag){case 0:case 11:case 15:ln(t,e,n,a),s&2048&&Ml(9,e);break;case 1:ln(t,e,n,a);break;case 3:ln(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&&dl(t)));break;case 12:if(s&2048){ln(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){Mt(e,e.return,S)}}else ln(t,e,n,a);break;case 31:ln(t,e,n,a);break;case 13:ln(t,e,n,a);break;case 23:break;case 22:r=e.stateNode,f=e.alternate,e.memoizedState!==null?r._visibility&2?ln(t,e,n,a):Dl(t,e):r._visibility&2?ln(t,e,n,a):(r._visibility|=2,Ai(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),s&2048&&Cr(f,e);break;case 24:ln(t,e,n,a),s&2048&&Mr(e.alternate,e);break;default:ln(t,e,n,a)}}function Ai(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,w=f.flags;switch(f.tag){case 0:case 11:case 15:Ai(r,f,y,S,s),Ml(8,f);break;case 23:break;case 22:var V=f.stateNode;f.memoizedState!==null?V._visibility&2?Ai(r,f,y,S,s):Dl(r,f):(V._visibility|=2,Ai(r,f,y,S,s)),s&&w&2048&&Cr(f.alternate,f);break;case 24:Ai(r,f,y,S,s),s&&w&2048&&Mr(f.alternate,f);break;default:Ai(r,f,y,S,s)}e=e.sibling}}function Dl(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:Dl(n,a),s&2048&&Cr(a.alternate,a);break;case 24:Dl(n,a),s&2048&&Mr(a.alternate,a);break;default:Dl(n,a)}e=e.sibling}}var Nl=8192;function Ei(t,e,n){if(t.subtreeFlags&Nl)for(t=t.child;t!==null;)cm(t,e,n),t=t.sibling}function cm(t,e,n){switch(t.tag){case 26:Ei(t,e,n),t.flags&Nl&&t.memoizedState!==null&&L1(n,an,t.memoizedState,t.memoizedProps);break;case 5:Ei(t,e,n);break;case 3:case 4:var a=an;an=pu(t.stateNode.containerInfo),Ei(t,e,n),an=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Nl,Nl=16777216,Ei(t,e,n),Nl=a):Ei(t,e,n));break;default:Ei(t,e,n)}}function fm(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 jl(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];te=a,dm(a,t)}fm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)hm(t),t=t.sibling}function hm(t){switch(t.tag){case 0:case 11:case 15:jl(t),t.flags&2048&&la(9,t,t.return);break;case 3:jl(t);break;case 12:jl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,nu(t)):jl(t);break;default:jl(t)}}function nu(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];te=a,dm(a,t)}fm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:la(8,e,e.return),nu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,nu(e));break;default:nu(e)}t=t.sibling}}function dm(t,e){for(;te!==null;){var n=te;switch(n.tag){case 0:case 11:case 15:la(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:dl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,te=a;else t:for(n=t;te!==null;){a=te;var s=a.sibling,r=a.return;if(am(a),a===n){te=null;break t}if(s!==null){s.return=r,te=s;break t}te=r}}}var Iv={getCacheForType:function(t){var e=ae(Qt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ae(Qt).controller.signal}},t1=typeof WeakMap=="function"?WeakMap:Map,At=0,zt=null,mt=null,yt=0,Ct=0,Re=null,sa=!1,Ci=!1,wr=!1,Gn=0,Yt=0,ua=0,Ya=0,Dr=0,Ve=0,Mi=0,Ol=null,Me=null,Nr=!1,au=0,mm=0,iu=1/0,lu=null,oa=null,$t=0,ra=null,wi=null,Xn=0,jr=0,Or=null,pm=null,zl=0,zr=null;function _e(){return(At&2)!==0&&yt!==0?yt&-yt:z.T!==null?Lr():ms()}function ym(){if(Ve===0)if((yt&536870912)===0||xt){var t=An;An<<=1,(An&3932160)===0&&(An=262144),Ve=t}else Ve=536870912;return t=Oe.current,t!==null&&(t.flags|=32),Ve}function we(t,e,n){(t===zt&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)&&(Di(t,0),ca(t,yt,Ve,!1)),En(t,n),((At&2)===0||t!==zt)&&(t===zt&&((At&2)===0&&(Ya|=n),Yt===4&&ca(t,yt,Ve,!1)),yn(t))}function gm(t,e,n){if((At&6)!==0)throw Error(o(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||be(t,e),s=a?a1(t,e):Vr(t,e,!0),r=a;do{if(s===0){Ci&&!a&&ca(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!e1(n)){s=Vr(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=Ol;var S=y.current.memoizedState.isDehydrated;if(S&&(Di(y,f).flags|=256),f=Vr(y,f,!1),f!==2){if(wr&&!S){y.errorRecoveryDisabledLanes|=r,Ya|=r,s=4;break t}r=Me,Me=s,r!==null&&(Me===null?Me=r:Me.push.apply(Me,r))}s=f}if(r=!1,s!==2)continue}}if(s===1){Di(t,0),ca(t,e,0,!0);break}t:{switch(a=t,r=s,r){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:ca(a,e,Ve,!sa);break t;case 2:Me=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(s=au+300-ue(),10<s)){if(ca(a,e,Ve,!sa),Aa(a,0,!0)!==0)break t;Xn=e,a.timeoutHandle=Jm(vm.bind(null,a,n,Me,lu,Nr,e,Ve,Ya,Mi,sa,r,"Throttled",-0,0),s);break t}vm(a,n,Me,lu,Nr,e,Ve,Ya,Mi,sa,r,null,-0,0)}}break}while(!0);yn(t)}function vm(t,e,n,a,s,r,f,y,S,w,V,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:Dn},cm(e,r,L);var W=(r&62914560)===r?au-ue():(r&4194048)===r?mm-ue():0;if(W=H1(L,W),W!==null){Xn=r,t.cancelPendingCommit=W(Mm.bind(null,t,e,r,n,a,s,f,y,S,V,L,null,N,O)),ca(t,r,f,!w);return}}Mm(t,e,r,n,a,s,f,y,S)}function e1(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(!Ne(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 ca(t,e,n,a){e&=~Dr,e&=~Ya,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var s=e;0<s;){var r=31-me(s),f=1<<r;a[r]=-1,s&=~f}n!==0&&$a(t,n,e)}function su(){return(At&6)===0?(Rl(0),!1):!0}function Rr(){if(mt!==null){if(Ct===0)var t=mt.return;else t=mt,zn=Oa=null,Fo(t),vi=null,pl=0,t=mt;for(;t!==null;)Fd(t.alternate,t),t=t.return;mt=null}}function Di(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,S1(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Xn=0,Rr(),zt=t,mt=n=jn(t.current,null),yt=e,Ct=0,Re=null,sa=!1,Ci=be(t,e),wr=!1,Mi=Ve=Dr=Ya=ua=Yt=0,Me=Ol=null,Nr=!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-me(a),r=1<<s;e|=t[s],a&=~r}return Gn=e,ws(),n}function xm(t,e){ct=null,z.H=Al,e===gi||e===_s?(e=_h(),Ct=3):e===Bo?(e=_h(),Ct=4):Ct=e===fr?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Re=e,mt===null&&(Yt=1,Fs(t,Xe(e,t.current)))}function bm(){var t=Oe.current;return t===null?!0:(yt&4194048)===yt?ke===null:(yt&62914560)===yt||(yt&536870912)!==0?t===ke:!1}function Sm(){var t=z.H;return z.H=Al,t===null?Al:t}function Tm(){var t=z.A;return z.A=Iv,t}function uu(){Yt=4,sa||(yt&4194048)!==yt&&Oe.current!==null||(Ci=!0),(ua&134217727)===0&&(Ya&134217727)===0||zt===null||ca(zt,yt,Ve,!1)}function Vr(t,e,n){var a=At;At|=2;var s=Sm(),r=Tm();(zt!==t||yt!==e)&&(lu=null,Di(t,e)),e=!1;var f=Yt;t:do try{if(Ct!==0&&mt!==null){var y=mt,S=Re;switch(Ct){case 8:Rr(),f=6;break t;case 3:case 2:case 9:case 6:Oe.current===null&&(e=!0);var w=Ct;if(Ct=0,Re=null,Ni(t,y,S,w),n&&Ci){f=0;break t}break;default:w=Ct,Ct=0,Re=null,Ni(t,y,S,w)}}n1(),f=Yt;break}catch(V){xm(t,V)}while(!0);return e&&t.shellSuspendCounter++,zn=Oa=null,At=a,z.H=s,z.A=r,mt===null&&(zt=null,yt=0,ws()),f}function n1(){for(;mt!==null;)Am(mt)}function a1(t,e){var n=At;At|=2;var a=Sm(),s=Tm();zt!==t||yt!==e?(lu=null,iu=ue()+500,Di(t,e)):Ci=be(t,e);t:do try{if(Ct!==0&&mt!==null){e=mt;var r=Re;e:switch(Ct){case 1:Ct=0,Re=null,Ni(t,e,r,1);break;case 2:case 9:if(Rh(r)){Ct=0,Re=null,Em(e);break}e=function(){Ct!==2&&Ct!==9||zt!==t||(Ct=7),yn(t)},r.then(e,e);break t;case 3:Ct=7;break t;case 4:Ct=5;break t;case 7:Rh(r)?(Ct=0,Re=null,Em(e)):(Ct=0,Re=null,Ni(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?rp(f):y.stateNode.complete){Ct=0,Re=null;var S=y.sibling;if(S!==null)mt=S;else{var w=y.return;w!==null?(mt=w,ou(w)):mt=null}break e}}Ct=0,Re=null,Ni(t,e,r,5);break;case 6:Ct=0,Re=null,Ni(t,e,r,6);break;case 8:Rr(),Yt=6;break t;default:throw Error(o(462))}}i1();break}catch(V){xm(t,V)}while(!0);return zn=Oa=null,z.H=a,z.A=s,At=n,mt!==null?0:(zt=null,yt=0,ws(),Yt)}function i1(){for(;mt!==null&&!Pi();)Am(mt)}function Am(t){var e=kd(t.alternate,t,Gn);t.memoizedProps=t.pendingProps,e===null?ou(t):mt=e}function Em(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=qd(n,e,e.pendingProps,e.type,void 0,yt);break;case 11:e=qd(n,e,e.pendingProps,e.type.render,e.ref,yt);break;case 5:Fo(e);default:Fd(n,e),e=mt=Th(e,Gn),e=kd(n,e,Gn)}t.memoizedProps=t.pendingProps,e===null?ou(t):mt=e}function Ni(t,e,n,a){zn=Oa=null,Fo(e),vi=null,pl=0;var s=e.return;try{if(Zv(t,s,e,n,yt)){Yt=1,Fs(t,Xe(n,t.current)),mt=null;return}}catch(r){if(s!==null)throw mt=s,r;Yt=1,Fs(t,Xe(n,t.current)),mt=null;return}e.flags&32768?(xt||a===1?t=!0:Ci||(yt&536870912)!==0?t=!1:(sa=t=!0,(a===2||a===9||a===3||a===6)&&(a=Oe.current,a!==null&&a.tag===13&&(a.flags|=16384))),Cm(e,t)):ou(e)}function ou(t){var e=t;do{if((e.flags&32768)!==0){Cm(e,sa);return}t=e.return;var n=Fv(e.alternate,e,Gn);if(n!==null){mt=n;return}if(e=e.sibling,e!==null){mt=e;return}mt=e=t}while(e!==null);Yt===0&&(Yt=5)}function Cm(t,e){do{var n=Pv(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);Yt=6,mt=null}function Mm(t,e,n,a,s,r,f,y,S){t.cancelPendingCommit=null;do ru();while($t!==0);if((At&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(r=e.lanes|e.childLanes,r|=To,Cn(t,n,r,f,y,S),t===zt&&(mt=zt=null,yt=0),wi=e,ra=t,Xn=n,jr=r,Or=s,pm=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,o1(Fa,function(){return Om(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=z.T,z.T=null,s=H.p,H.p=2,f=At,At|=4;try{Wv(t,e,n)}finally{At=f,H.p=s,z.T=a}}$t=1,wm(),Dm(),Nm()}}function wm(){if($t===1){$t=0;var t=ra,e=wi,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=z.T,z.T=null;var a=H.p;H.p=2;var s=At;At|=4;try{um(e,t);var r=Zr,f=dh(t.containerInfo),y=r.focusedElem,S=r.selectionRange;if(f!==y&&y&&y.ownerDocument&&hh(y.ownerDocument.documentElement,y)){if(S!==null&&go(y)){var w=S.start,V=S.end;if(V===void 0&&(V=w),"selectionStart"in y)y.selectionStart=w,y.selectionEnd=Math.min(V,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 C=fh(y,it),A=fh(y,Nt);if(C&&A&&(O.rangeCount!==1||O.anchorNode!==C.node||O.anchorOffset!==C.offset||O.focusNode!==A.node||O.focusOffset!==A.offset)){var M=L.createRange();M.setStart(C.node,C.offset),O.removeAllRanges(),it>Nt?(O.addRange(M),O.extend(A.node,A.offset)):(M.setEnd(A.node,A.offset),O.addRange(M))}}}}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}}Su=!!Qr,Zr=Qr=null}finally{At=s,H.p=a,z.T=n}}t.current=e,$t=2}}function Dm(){if($t===2){$t=0;var t=ra,e=wi,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=z.T,z.T=null;var a=H.p;H.p=2;var s=At;At|=4;try{nm(t,e.alternate,e)}finally{At=s,H.p=a,z.T=n}}$t=3}}function Nm(){if($t===4||$t===3){$t=0,ss();var t=ra,e=wi,n=Xn,a=pm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?$t=5:($t=0,wi=ra=null,jm(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(oa=null),Ia(n),e=e.stateNode,de&&typeof de.onCommitFiberRoot=="function")try{de.onCommitFiberRoot(xe,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=z.T,s=H.p,H.p=2,z.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{z.T=e,H.p=s}}(Xn&3)!==0&&ru(),yn(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===zr?zl++:(zl=0,zr=t):zl=0,Rl(0)}}function jm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,dl(e)))}function ru(){return wm(),Dm(),Nm(),Om()}function Om(){if($t!==5)return!1;var t=ra,e=jr;jr=0;var n=Ia(Xn),a=z.T,s=H.p;try{H.p=32>n?32:n,z.T=null,n=Or,Or=null;var r=ra,f=Xn;if($t=0,wi=ra=null,Xn=0,(At&6)!==0)throw Error(o(331));var y=At;if(At|=4,hm(r.current),rm(r,r.current,f,n),At=y,Rl(0,!1),de&&typeof de.onPostCommitFiberRoot=="function")try{de.onPostCommitFiberRoot(xe,r)}catch{}return!0}finally{H.p=s,z.T=a,jm(t,e)}}function zm(t,e,n){e=Xe(n,e),e=cr(t.stateNode,e,2),t=na(t,e,2),t!==null&&(En(t,2),yn(t))}function Mt(t,e,n){if(t.tag===3)zm(t,t,n);else for(;e!==null;){if(e.tag===3){zm(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(oa===null||!oa.has(a))){t=Xe(n,t),n=Rd(2),a=na(e,n,2),a!==null&&(Vd(n,a,e,t),En(a,2),yn(a));break}}e=e.return}}function _r(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new t1;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)||(wr=!0,s.add(n),t=l1.bind(null,t,e,n),e.then(t,t))}function l1(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,zt===t&&(yt&n)===n&&(Yt===4||Yt===3&&(yt&62914560)===yt&&300>ue()-au?(At&2)===0&&Di(t,0):Dr|=n,Mi===yt&&(Mi=0)),yn(t)}function Rm(t,e){e===0&&(e=He()),t=Da(t,e),t!==null&&(En(t,e),yn(t))}function s1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Rm(t,n)}function u1(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),Rm(t,n)}function o1(t,e){return Ja(t,e)}var cu=null,ji=null,Ur=!1,fu=!1,Br=!1,fa=0;function yn(t){t!==ji&&t.next===null&&(ji===null?cu=ji=t:ji=ji.next=t),fu=!0,Ur||(Ur=!0,c1())}function Rl(t,e){if(!Br&&fu){Br=!0;do for(var n=!1,a=cu;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-me(42|t)+1)-1,r&=s&~(f&~y),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Bm(a,r))}else r=yt,r=Aa(a,a===zt?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||be(a,r)||(n=!0,Bm(a,r));a=a.next}while(n);Br=!1}}function r1(){Vm()}function Vm(){fu=Ur=!1;var t=0;fa!==0&&b1()&&(t=fa);for(var e=ue(),n=null,a=cu;a!==null;){var s=a.next,r=_m(a,e);r===0?(a.next=null,n===null?cu=s:n.next=s,s===null&&(ji=n)):(n=a,(t!==0||(r&3)!==0)&&(fu=!0)),a=s}$t!==0&&$t!==5||Rl(t),fa!==0&&(fa=0)}function _m(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,s=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var f=31-me(r),y=1<<f,S=s[f];S===-1?((y&n)===0||(y&a)!==0)&&(s[f]=fs(y,e)):S<=e&&(t.expiredLanes|=y),r&=~y}if(e=zt,n=yt,n=Aa(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Be(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||be(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&Be(a),Ia(n)){case 2:case 8:n=Le;break;case 32:n=Fa;break;case 268435456:n=os;break;default:n=Fa}return a=Um.bind(null,t),n=Ja(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&Be(a),t.callbackPriority=2,t.callbackNode=null,2}function Um(t,e){if($t!==0&&$t!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(ru()&&t.callbackNode!==n)return null;var a=yt;return a=Aa(t,t===zt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(gm(t,a,e),_m(t,ue()),t.callbackNode!=null&&t.callbackNode===n?Um.bind(null,t):null)}function Bm(t,e){if(ru())return null;gm(t,e,!0)}function c1(){T1(function(){(At&6)!==0?Ja(us,r1):Vm()})}function Lr(){if(fa===0){var t=pi;t===0&&(t=Tn,Tn<<=1,(Tn&261888)===0&&(Tn=256)),fa=t}return fa}function Lm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:xs(""+t)}function Hm(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 f1(t,e,n,a,s){if(e==="submit"&&n&&n.stateNode===s){var r=Lm((s[oe]||null).action),f=a.submitter;f&&(e=(e=f[oe]||null)?Lm(e.formAction):f.getAttribute("formAction"),e!==null&&(r=e,f=null));var y=new As("action","action",null,a,s);t.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(fa!==0){var S=f?Hm(s,f):new FormData(s);ir(n,{pending:!0,data:S,method:s.method,action:r},null,S)}}else typeof r=="function"&&(y.preventDefault(),S=f?Hm(s,f):new FormData(s),ir(n,{pending:!0,data:S,method:s.method,action:r},r,S))},currentTarget:s}]})}}for(var Hr=0;Hr<So.length;Hr++){var Yr=So[Hr],h1=Yr.toLowerCase(),d1=Yr[0].toUpperCase()+Yr.slice(1);nn(h1,"on"+d1)}nn(yh,"onAnimationEnd"),nn(gh,"onAnimationIteration"),nn(vh,"onAnimationStart"),nn("dblclick","onDoubleClick"),nn("focusin","onFocus"),nn("focusout","onBlur"),nn(Nv,"onTransitionRun"),nn(jv,"onTransitionStart"),nn(Ov,"onTransitionCancel"),nn(xh,"onTransitionEnd"),en("onMouseEnter",["mouseout","mouseover"]),en("onMouseLeave",["mouseout","mouseover"]),en("onPointerEnter",["pointerout","pointerover"]),en("onPointerLeave",["pointerout","pointerover"]),re("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),re("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),re("onBeforeInput",["compositionend","keypress","textInput","paste"]),re("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),re("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),re("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vl="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(" "),m1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vl));function Ym(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,w=y.currentTarget;if(y=y.listener,S!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=w;try{r(s)}catch(V){Ms(V)}s.currentTarget=null,r=S}else for(f=0;f<a.length;f++){if(y=a[f],S=y.instance,w=y.currentTarget,y=y.listener,S!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=w;try{r(s)}catch(V){Ms(V)}s.currentTarget=null,r=S}}}}function pt(t,e){var n=e[ti];n===void 0&&(n=e[ti]=new Set);var a=t+"__bubble";n.has(a)||(qm(e,t,2,!1),n.add(a))}function qr(t,e,n){var a=0;e&&(a|=4),qm(n,t,a,e)}var hu="_reactListening"+Math.random().toString(36).slice(2);function Gr(t){if(!t[hu]){t[hu]=!0,at.forEach(function(n){n!=="selectionchange"&&(m1.has(n)||qr(n,!1,t),qr(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[hu]||(e[hu]=!0,qr("selectionchange",!1,e))}}function qm(t,e,n,a){switch(yp(e)){case 2:var s=G1;break;case 8:s=X1;break;default:s=ac}n=s.bind(null,e,n,t),s=void 0,!uo||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 Xr(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=hn(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}Zf(function(){var w=r,V=lo(n),L=[];t:{var N=bh.get(t);if(N!==void 0){var O=As,W=t;switch(t){case"keypress":if(Ss(n)===0)break t;case"keydown":case"keyup":O=uv;break;case"focusin":W="focus",O=fo;break;case"focusout":W="blur",O=fo;break;case"beforeblur":case"afterblur":O=fo;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=Ff;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=Fg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=cv;break;case yh:case gh:case vh:O=$g;break;case xh:O=hv;break;case"scroll":case"scrollend":O=kg;break;case"wheel":O=mv;break;case"copy":case"cut":case"paste":O=tv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=Wf;break;case"toggle":case"beforetoggle":O=yv}var it=(e&4)!==0,Nt=!it&&(t==="scroll"||t==="scrollend"),C=it?N!==null?N+"Capture":null:N;it=[];for(var A=w,M;A!==null;){var B=A;if(M=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||M===null||C===null||(B=nl(A,C),B!=null&&it.push(_l(A,B,M))),Nt)break;A=A.return}0<it.length&&(N=new O(N,W,null,n,V),L.push({event:N,listeners:it}))}}if((e&7)===0){t:{if(N=t==="mouseover"||t==="pointerover",O=t==="mouseout"||t==="pointerout",N&&n!==io&&(W=n.relatedTarget||n.fromElement)&&(hn(W)||W[kn]))break t;if((O||N)&&(N=V.window===V?V:(N=V.ownerDocument)?N.defaultView||N.parentWindow:window,O?(W=n.relatedTarget||n.toElement,O=w,W=W?hn(W):null,W!==null&&(Nt=d(W),it=W.tag,W!==Nt||it!==5&&it!==27&&it!==6)&&(W=null)):(O=null,W=w),O!==W)){if(it=Ff,B="onMouseLeave",C="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(it=Wf,B="onPointerLeave",C="onPointerEnter",A="pointer"),Nt=O==null?N:Se(O),M=W==null?N:Se(W),N=new it(B,A+"leave",O,n,V),N.target=Nt,N.relatedTarget=M,B=null,hn(V)===w&&(it=new it(C,A+"enter",W,n,V),it.target=M,it.relatedTarget=Nt,B=it),Nt=B,O&&W)e:{for(it=p1,C=O,A=W,M=0,B=C;B;B=it(B))M++;B=0;for(var et=A;et;et=it(et))B++;for(;0<M-B;)C=it(C),M--;for(;0<B-M;)A=it(A),B--;for(;M--;){if(C===A||A!==null&&C===A.alternate){it=C;break e}C=it(C),A=it(A)}it=null}else it=null;O!==null&&Gm(L,N,O,it,!1),W!==null&&Nt!==null&&Gm(L,Nt,W,it,!0)}}t:{if(N=w?Se(w):window,O=N.nodeName&&N.nodeName.toLowerCase(),O==="select"||O==="input"&&N.type==="file")var St=lh;else if(ah(N))if(sh)St=Mv;else{St=Ev;var tt=Av}else O=N.nodeName,!O||O.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?w&&ao(w.elementType)&&(St=lh):St=Cv;if(St&&(St=St(t,w))){ih(L,St,n,V);break t}tt&&tt(t,N,w),t==="focusout"&&w&&N.type==="number"&&w.memoizedProps.value!=null&&no(N,"number",N.value)}switch(tt=w?Se(w):window,t){case"focusin":(ah(tt)||tt.contentEditable==="true")&&(ui=tt,vo=w,cl=null);break;case"focusout":cl=vo=ui=null;break;case"mousedown":xo=!0;break;case"contextmenu":case"mouseup":case"dragend":xo=!1,mh(L,n,V);break;case"selectionchange":if(Dv)break;case"keydown":case"keyup":mh(L,n,V)}var ft;if(mo)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 si?eh(t,n)&&(gt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(gt="onCompositionStart");gt&&($f&&n.locale!=="ko"&&(si||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&si&&(ft=kf()):(Fn=V,oo="value"in Fn?Fn.value:Fn.textContent,si=!0)),tt=du(w,gt),0<tt.length&&(gt=new Pf(gt,t,null,n,V),L.push({event:gt,listeners:tt}),ft?gt.data=ft:(ft=nh(n),ft!==null&&(gt.data=ft)))),(ft=vv?xv(t,n):bv(t,n))&&(gt=du(w,"onBeforeInput"),0<gt.length&&(tt=new Pf("onBeforeInput","beforeinput",null,n,V),L.push({event:tt,listeners:gt}),tt.data=ft)),f1(L,t,w,n,V)}Ym(L,e)})}function _l(t,e,n){return{instance:t,listener:e,currentTarget:n}}function du(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=nl(t,n),s!=null&&a.unshift(_l(t,s,r)),s=nl(t,e),s!=null&&a.push(_l(t,s,r))),t.tag===3)return a;t=t.return}return[]}function p1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Gm(t,e,n,a,s){for(var r=e._reactName,f=[];n!==null&&n!==a;){var y=n,S=y.alternate,w=y.stateNode;if(y=y.tag,S!==null&&S===a)break;y!==5&&y!==26&&y!==27||w===null||(S=w,s?(w=nl(n,r),w!=null&&f.unshift(_l(n,w,S))):s||(w=nl(n,r),w!=null&&f.push(_l(n,w,S)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var y1=/\r\n?/g,g1=/\u0000|\uFFFD/g;function Xm(t){return(typeof t=="string"?t:""+t).replace(y1,`
9
- `).replace(g1,"")}function Km(t,e){return e=Xm(e),Xm(t)===e}function Dt(t,e,n,a,s,r){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||ai(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&ai(t,""+a);break;case"className":gs(t,"class",a);break;case"tabIndex":gs(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":gs(t,n,a);break;case"style":Kf(t,a,r);break;case"data":if(e!=="object"){gs(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=xs(""+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"&&Dt(t,e,"name",s.name,s,null),Dt(t,e,"formEncType",s.formEncType,s,null),Dt(t,e,"formMethod",s.formMethod,s,null),Dt(t,e,"formTarget",s.formTarget,s,null)):(Dt(t,e,"encType",s.encType,s,null),Dt(t,e,"method",s.method,s,null),Dt(t,e,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=xs(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=Dn);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(o(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(o(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=xs(""+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),ys(t,"popover",a);break;case"xlinkActuate":wn(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":wn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":wn(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":wn(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":wn(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":wn(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":wn(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":wn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":wn(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ys(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=Qg.get(n)||n,ys(t,n,a))}}function Kr(t,e,n,a,s,r){switch(n){case"style":Kf(t,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof a=="string"?ai(t,a):(typeof a=="number"||typeof a=="bigint")&&ai(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=Dn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ot.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[oe]||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,""):ys(t,n,a)}}}function le(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(o(137,e));default:Dt(t,e,r,f,n,null)}}s&&Dt(t,e,"srcSet",n.srcSet,n,null),a&&Dt(t,e,"src",n.src,n,null);return;case"input":pt("invalid",t);var y=r=f=s=null,S=null,w=null;for(a in n)if(n.hasOwnProperty(a)){var V=n[a];if(V!=null)switch(a){case"name":s=V;break;case"type":f=V;break;case"checked":S=V;break;case"defaultChecked":w=V;break;case"value":r=V;break;case"defaultValue":y=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,e));break;default:Dt(t,e,a,V,n,null)}}Yf(t,r,y,S,w,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:Dt(t,e,s,y,n,null)}e=r,n=f,t.multiple=!!a,e!=null?ni(t,!!a,e,!1):n!=null&&ni(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(o(91));break;default:Dt(t,e,f,y,n,null)}Gf(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":Dt(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<Vl.length;a++)pt(Vl[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(w in n)if(n.hasOwnProperty(w)&&(a=n[w],a!=null))switch(w){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Dt(t,e,w,a,n,null)}return;default:if(ao(e)){for(V in n)n.hasOwnProperty(V)&&(a=n[V],a!==void 0&&Kr(t,e,V,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&Dt(t,e,y,a,n,null))}function v1(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,w=null,V=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)||Dt(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":w=O;break;case"defaultChecked":V=O;break;case"value":f=O;break;case"defaultValue":y=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,e));break;default:O!==L&&Dt(t,e,N,O,a,L)}}eo(t,f,y,S,w,V,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)||Dt(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&&Dt(t,e,s,r,a,S)}e=y,n=f,a=O,N!=null?ni(t,!!n,N,!1):!!a!=!!n&&(e!=null?ni(t,!!n,e,!0):ni(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:Dt(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(o(91));break;default:s!==r&&Dt(t,e,f,s,a,r)}qf(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:Dt(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":Dt(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)&&Dt(t,e,it,null,a,N);for(w in a)if(N=a[w],O=n[w],a.hasOwnProperty(w)&&N!==O&&(N!=null||O!=null))switch(w){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(o(137,e));break;default:Dt(t,e,w,N,a,O)}return;default:if(ao(e)){for(var Nt in n)N=n[Nt],n.hasOwnProperty(Nt)&&N!==void 0&&!a.hasOwnProperty(Nt)&&Kr(t,e,Nt,void 0,a,N);for(V in a)N=a[V],O=n[V],!a.hasOwnProperty(V)||N===O||N===void 0&&O===void 0||Kr(t,e,V,N,a,O);return}}for(var C in n)N=n[C],n.hasOwnProperty(C)&&N!=null&&!a.hasOwnProperty(C)&&Dt(t,e,C,null,a,N);for(L in a)N=a[L],O=n[L],!a.hasOwnProperty(L)||N===O||N==null&&O==null||Dt(t,e,L,N,a,O)}function Qm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function x1(){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&&Qm(f)){for(f=0,y=s.responseEnd,a+=1;a<n.length;a++){var S=n[a],w=S.startTime;if(w>y)break;var V=S.transferSize,L=S.initiatorType;V&&Qm(L)&&(S=S.responseEnd,f+=V*(S<y?1:(y-w)/(S-w)))}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 Qr=null,Zr=null;function mu(t){return t.nodeType===9?t:t.ownerDocument}function Zm(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 km(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 kr(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 Jr=null;function b1(){var t=window.event;return t&&t.type==="popstate"?t===Jr?!1:(Jr=t,!0):(Jr=null,!1)}var Jm=typeof setTimeout=="function"?setTimeout:void 0,S1=typeof clearTimeout=="function"?clearTimeout:void 0,Fm=typeof Promise=="function"?Promise:void 0,T1=typeof queueMicrotask=="function"?queueMicrotask:typeof Fm<"u"?function(t){return Fm.resolve(null).then(t).catch(A1)}:Jm;function A1(t){setTimeout(function(){throw t})}function ha(t){return t==="head"}function Pm(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),Vi(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Ul(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Ul(n);for(var r=n.firstChild;r;){var f=r.nextSibling,y=r.nodeName;r[pe]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=f}}else n==="body"&&Ul(t.ownerDocument.body);n=s}while(n);Vi(e)}function Wm(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 Fr(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":Fr(n),el(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function E1(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[pe])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=Je(t.nextSibling),t===null)break}return null}function C1(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Je(t.nextSibling),t===null))return null;return t}function $m(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Je(t.nextSibling),t===null))return null;return t}function Pr(t){return t.data==="$?"||t.data==="$~"}function Wr(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function M1(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 Je(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 $r=null;function Im(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Je(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function tp(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 ep(t,e,n){switch(e=mu(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function Ul(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);el(t)}var Fe=new Map,np=new Set;function pu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Kn=H.d;H.d={f:w1,r:D1,D:N1,C:j1,L:O1,m:z1,X:V1,S:R1,M:_1};function w1(){var t=Kn.f(),e=su();return t||e}function D1(t){var e=Jn(t);e!==null&&e.tag===5&&e.type==="form"?xd(e):Kn.r(t)}var Oi=typeof document>"u"?null:document;function ap(t,e,n){var a=Oi;if(a&&typeof e=="string"&&e){var s=qe(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),np.has(s)||(np.add(s),t={rel:t,crossOrigin:n,href:e},a.querySelector(s)===null&&(e=a.createElement("link"),le(e,"link",t),D(e),a.head.appendChild(e)))}}function N1(t){Kn.D(t),ap("dns-prefetch",t,null)}function j1(t,e){Kn.C(t,e),ap("preconnect",t,e)}function O1(t,e,n){Kn.L(t,e,n);var a=Oi;if(a&&t&&e){var s='link[rel="preload"][as="'+qe(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+qe(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+qe(n.imageSizes)+'"]')):s+='[href="'+qe(t)+'"]';var r=s;switch(e){case"style":r=zi(t);break;case"script":r=Ri(t)}Fe.has(r)||(t=b({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Fe.set(r,t),a.querySelector(s)!==null||e==="style"&&a.querySelector(Bl(r))||e==="script"&&a.querySelector(Ll(r))||(e=a.createElement("link"),le(e,"link",t),D(e),a.head.appendChild(e)))}}function z1(t,e){Kn.m(t,e);var n=Oi;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+qe(a)+'"][href="'+qe(t)+'"]',r=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Ri(t)}if(!Fe.has(r)&&(t=b({rel:"modulepreload",href:t},e),Fe.set(r,t),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ll(r)))return}a=n.createElement("link"),le(a,"link",t),D(a),n.head.appendChild(a)}}}function R1(t,e,n){Kn.S(t,e,n);var a=Oi;if(a&&t){var s=Ea(a).hoistableStyles,r=zi(t);e=e||"default";var f=s.get(r);if(!f){var y={loading:0,preload:null};if(f=a.querySelector(Bl(r)))y.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Fe.get(r))&&Ir(t,n);var S=f=a.createElement("link");D(S),le(S,"link",t),S._p=new Promise(function(w,V){S.onload=w,S.onerror=V}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,yu(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:y},s.set(r,f)}}}function V1(t,e){Kn.X(t,e);var n=Oi;if(n&&t){var a=Ea(n).hoistableScripts,s=Ri(t),r=a.get(s);r||(r=n.querySelector(Ll(s)),r||(t=b({src:t,async:!0},e),(e=Fe.get(s))&&tc(t,e),r=n.createElement("script"),D(r),le(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function _1(t,e){Kn.M(t,e);var n=Oi;if(n&&t){var a=Ea(n).hoistableScripts,s=Ri(t),r=a.get(s);r||(r=n.querySelector(Ll(s)),r||(t=b({src:t,async:!0,type:"module"},e),(e=Fe.get(s))&&tc(t,e),r=n.createElement("script"),D(r),le(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function ip(t,e,n,a){var s=(s=nt.current)?pu(s):null;if(!s)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=zi(n.href),n=Ea(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=zi(n.href);var r=Ea(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(Bl(t)))&&!r._p&&(f.instance=r,f.state.loading=5),Fe.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},Fe.set(t,n),r||U1(s,t,n,f.state))),e&&a===null)throw Error(o(528,""));return f}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ri(n),n=Ea(s).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function zi(t){return'href="'+qe(t)+'"'}function Bl(t){return'link[rel="stylesheet"]['+t+"]"}function lp(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function U1(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}),le(e,"link",n),D(e),t.head.appendChild(e))}function Ri(t){return'[src="'+qe(t)+'"]'}function Ll(t){return"script[async]"+t}function sp(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+qe(n.href)+'"]');if(a)return e.instance=a,D(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"),D(a),le(a,"style",s),yu(a,n.precedence,t),e.instance=a;case"stylesheet":s=zi(n.href);var r=t.querySelector(Bl(s));if(r)return e.state.loading|=4,e.instance=r,D(r),r;a=lp(n),(s=Fe.get(s))&&Ir(a,s),r=(t.ownerDocument||t).createElement("link"),D(r);var f=r;return f._p=new Promise(function(y,S){f.onload=y,f.onerror=S}),le(r,"link",a),e.state.loading|=4,yu(r,n.precedence,t),e.instance=r;case"script":return r=Ri(n.src),(s=t.querySelector(Ll(r)))?(e.instance=s,D(s),s):(a=n,(s=Fe.get(r))&&(a=b({},n),tc(a,s)),t=t.ownerDocument||t,s=t.createElement("script"),D(s),le(s,"link",a),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,yu(a,n.precedence,t));return e.instance}function yu(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 Ir(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function tc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var gu=null;function up(t,e,n){if(gu===null){var a=new Map,s=gu=new Map;s.set(n,a)}else s=gu,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[pe]||r[Wt]||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 op(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function B1(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 rp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function L1(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=zi(a.href),r=e.querySelector(Bl(s));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=vu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,D(r);return}r=e.ownerDocument||e,a=lp(a),(s=Fe.get(s))&&Ir(a,s),r=r.createElement("link"),D(r);var f=r;f._p=new Promise(function(y,S){f.onload=y,f.onerror=S}),le(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=vu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var ec=0;function H1(t,e){return t.stylesheets&&t.count===0&&bu(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&bu(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&ec===0&&(ec=62500*x1());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&bu(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>ec?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function vu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var xu=null;function bu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,xu=new Map,e.forEach(Y1,t),xu=null,vu.call(t))}function Y1(t,e){if(!(e.state.loading&4)){var n=xu.get(t);if(n)var a=n.get(null);else{n=new Map,xu.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=vu.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 Hl={$$typeof:G,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function q1(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=Wa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wa(0),this.hiddenUpdates=Wa(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=r,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function cp(t,e,n,a,s,r,f,y,S,w,V,L){return t=new q1(t,e,n,f,S,w,V,L,y),e=1,r===!0&&(e|=24),r=je(3,null,null,e),t.current=r,r.stateNode=t,e=Vo(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:e},Lo(r),t}function fp(t){return t?(t=ci,t):ci}function hp(t,e,n,a,s,r){s=fp(s),a.context===null?a.context=s:a.pendingContext=s,a=ea(e),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=na(t,a,e),n!==null&&(we(n,t,e),gl(n,t,e))}function dp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function nc(t,e){dp(t,e),(t=t.alternate)&&dp(t,e)}function mp(t){if(t.tag===13||t.tag===31){var e=Da(t,67108864);e!==null&&we(e,t,67108864),nc(t,67108864)}}function pp(t){if(t.tag===13||t.tag===31){var e=_e();e=Ii(e);var n=Da(t,e);n!==null&&we(n,t,e),nc(t,e)}}var Su=!0;function G1(t,e,n,a){var s=z.T;z.T=null;var r=H.p;try{H.p=2,ac(t,e,n,a)}finally{H.p=r,z.T=s}}function X1(t,e,n,a){var s=z.T;z.T=null;var r=H.p;try{H.p=8,ac(t,e,n,a)}finally{H.p=r,z.T=s}}function ac(t,e,n,a){if(Su){var s=ic(a);if(s===null)Xr(t,e,a,Tu,n),gp(t,a);else if(Q1(s,t,e,n,a))a.stopPropagation();else if(gp(t,a),e&4&&-1<K1.indexOf(t)){for(;s!==null;){var r=Jn(s);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=cn(r.pendingLanes);if(f!==0){var y=r;for(y.pendingLanes|=2,y.entangledLanes|=2;f;){var S=1<<31-me(f);y.entanglements[1]|=S,f&=~S}yn(r),(At&6)===0&&(iu=ue()+500,Rl(0))}}break;case 31:case 13:y=Da(r,2),y!==null&&we(y,r,2),su(),nc(r,2)}if(r=ic(a),r===null&&Xr(t,e,a,Tu,n),r===s)break;s=r}s!==null&&a.stopPropagation()}else Xr(t,e,a,null,n)}}function ic(t){return t=lo(t),lc(t)}var Tu=null;function lc(t){if(Tu=null,t=hn(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 Tu=t,null}function yp(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(Wu()){case us:return 2;case Le:return 8;case Fa:case Wi:return 32;case os:return 268435456;default:return 32}default:return 32}}var sc=!1,da=null,ma=null,pa=null,Yl=new Map,ql=new Map,ya=[],K1="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 gp(t,e){switch(t){case"focusin":case"focusout":da=null;break;case"dragenter":case"dragleave":ma=null;break;case"mouseover":case"mouseout":pa=null;break;case"pointerover":case"pointerout":Yl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ql.delete(e.pointerId)}}function Gl(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=Jn(e),e!==null&&mp(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function Q1(t,e,n,a,s){switch(e){case"focusin":return da=Gl(da,t,e,n,a,s),!0;case"dragenter":return ma=Gl(ma,t,e,n,a,s),!0;case"mouseover":return pa=Gl(pa,t,e,n,a,s),!0;case"pointerover":var r=s.pointerId;return Yl.set(r,Gl(Yl.get(r)||null,t,e,n,a,s)),!0;case"gotpointercapture":return r=s.pointerId,ql.set(r,Gl(ql.get(r)||null,t,e,n,a,s)),!0}return!1}function vp(t){var e=hn(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,tl(t.priority,function(){pp(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,tl(t.priority,function(){pp(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 Au(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=ic(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);io=a,n.target.dispatchEvent(a),io=null}else return e=Jn(n),e!==null&&mp(e),t.blockedOn=n,!1;e.shift()}return!0}function xp(t,e,n){Au(t)&&n.delete(e)}function Z1(){sc=!1,da!==null&&Au(da)&&(da=null),ma!==null&&Au(ma)&&(ma=null),pa!==null&&Au(pa)&&(pa=null),Yl.forEach(xp),ql.forEach(xp)}function Eu(t,e){t.blockedOn===e&&(t.blockedOn=null,sc||(sc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Z1)))}var Cu=null;function bp(t){Cu!==t&&(Cu=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Cu===t&&(Cu=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(lc(a||n)===null)continue;break}var r=Jn(n);r!==null&&(t.splice(e,3),e-=3,ir(r,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function Vi(t){function e(S){return Eu(S,t)}da!==null&&Eu(da,t),ma!==null&&Eu(ma,t),pa!==null&&Eu(pa,t),Yl.forEach(e),ql.forEach(e);for(var n=0;n<ya.length;n++){var a=ya[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<ya.length&&(n=ya[0],n.blockedOn===null);)vp(n),n.blockedOn===null&&ya.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[oe]||null;if(typeof r=="function")f||bp(n);else if(f){var y=null;if(r&&r.hasAttribute("formAction")){if(s=r,f=r[oe]||null)y=f.formAction;else if(lc(s)!==null)continue}else y=f.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),bp(n)}}}function Sp(){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 uc(t){this._internalRoot=t}Mu.prototype.render=uc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,a=_e();hp(n,a,t,e,null,null)},Mu.prototype.unmount=uc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;hp(t.current,2,null,t,null,null),su(),e[kn]=null}};function Mu(t){this._internalRoot=t}Mu.prototype.unstable_scheduleHydration=function(t){if(t){var e=ms();t={blockedOn:null,target:t,priority:e};for(var n=0;n<ya.length&&e!==0&&e<ya[n].priority;n++);ya.splice(n,0,t),n===0&&vp(t)}};var Tp=l.version;if(Tp!=="19.2.4")throw Error(o(527,Tp,"19.2.4"));H.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=m(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var k1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wu.isDisabled&&wu.supportsFiber)try{xe=wu.inject(k1),de=wu}catch{}}return Kl.createRoot=function(t,e){if(!c(t))throw Error(o(299));var n=!1,a="",s=Nd,r=jd,f=Od;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=cp(t,1,!1,null,null,n,a,null,s,r,f,Sp),t[kn]=e.current,Gr(t),new uc(e)},Kl.hydrateRoot=function(t,e,n){if(!c(t))throw Error(o(299));var a=!1,s="",r=Nd,f=jd,y=Od,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=cp(t,1,!0,e,n??null,a,s,S,r,f,y,Sp),e.context=fp(null),n=e.current,a=_e(),a=Ii(a),s=ea(a),s.callback=null,na(n,s,a),n=a,e.current.lanes=n,En(e,n),yn(e),t[kn]=e.current,Gr(t),new Mu(e)},Kl.version="19.2.4",Kl}var zp;function ax(){if(zp)return cc.exports;zp=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=nx(),cc.exports}var ix=ax();const TA=Iy(ix);const t0=(...i)=>i.filter((l,u,o)=>!!l&&l.trim()!==""&&o.indexOf(l)===u).join(" ").trim();const lx=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const sx=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,u,o)=>o?o.toUpperCase():u.toLowerCase());const Rp=i=>{const l=sx(i);return l.charAt(0).toUpperCase()+l.slice(1)};var ux={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 ox=i=>{for(const l in i)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1};const rx=U.forwardRef(({color:i="currentColor",size:l=24,strokeWidth:u=2,absoluteStrokeWidth:o,className:c="",children:d,iconNode:h,...p},g)=>U.createElement("svg",{ref:g,...ux,width:l,height:l,stroke:i,strokeWidth:o?Number(u)*24/Number(l):u,className:t0("lucide",c),...!d&&!ox(p)&&{"aria-hidden":"true"},...p},[...h.map(([m,v])=>U.createElement(m,v)),...Array.isArray(d)?d:[d]]));const bn=(i,l)=>{const u=U.forwardRef(({className:o,...c},d)=>U.createElement(rx,{ref:d,iconNode:l,className:t0(`lucide-${lx(Rp(i))}`,`lucide-${i}`,o),...c}));return u.displayName=Rp(i),u};const cx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Pe=bn("arrow-right",cx);const fx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],qa=bn("check",fx);const hx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],dx=bn("chevron-down",hx);const mx=[["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"}]],Vp=bn("clipboard-paste",mx);const px=[["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"}]],_p=bn("external-link",px);const yx=[["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"}]],gx=bn("eye-off",yx);const vx=[["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"}]],xx=bn("eye",vx);const bx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],_i=bn("loader-circle",bx);const Sx=[["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"}]],Tx=bn("mic",Sx);const Ax=[["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"}]],mc=bn("refresh-cw",Ax),lf=U.createContext({});function sf(i){const l=U.useRef(null);return l.current===null&&(l.current=i()),l.current}const e0=typeof window<"u",n0=e0?U.useLayoutEffect:U.useEffect,ku=U.createContext(null);function uf(i,l){i.indexOf(l)===-1&&i.push(l)}function Hu(i,l){const u=i.indexOf(l);u>-1&&i.splice(u,1)}const xn=(i,l,u)=>u>l?l:u<i?i:u;let of=()=>{};const Qn={},a0=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i);function i0(i){return typeof i=="object"&&i!==null}const l0=i=>/^0[^.\s]+$/u.test(i);function s0(i){let l;return()=>(l===void 0&&(l=i()),l)}const $e=i=>i,Ex=(i,l)=>u=>l(i(u)),ns=(...i)=>i.reduce(Ex),Wl=(i,l,u)=>{const o=l-i;return o===0?1:(u-i)/o};class rf{constructor(){this.subscriptions=[]}add(l){return uf(this.subscriptions,l),()=>Hu(this.subscriptions,l)}notify(l,u,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,u,o);else for(let d=0;d<c;d++){const h=this.subscriptions[d];h&&h(l,u,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const on=i=>i*1e3,We=i=>i/1e3;function u0(i,l){return l?i*(1e3/l):0}const o0=(i,l,u)=>(((1-3*u+3*l)*i+(3*u-6*l))*i+3*l)*i,Cx=1e-7,Mx=12;function wx(i,l,u,o,c){let d,h,p=0;do h=l+(u-l)/2,d=o0(h,o,c)-i,d>0?u=h:l=h;while(Math.abs(d)>Cx&&++p<Mx);return h}function as(i,l,u,o){if(i===l&&u===o)return $e;const c=d=>wx(d,0,1,i,u);return d=>d===0||d===1?d:o0(c(d),l,o)}const r0=i=>l=>l<=.5?i(2*l)/2:(2-i(2*(1-l)))/2,c0=i=>l=>1-i(1-l),f0=as(.33,1.53,.69,.99),cf=c0(f0),h0=r0(cf),d0=i=>(i*=2)<1?.5*cf(i):.5*(2-Math.pow(2,-10*(i-1))),ff=i=>1-Math.sin(Math.acos(i)),m0=c0(ff),p0=r0(ff),Dx=as(.42,0,1,1),Nx=as(0,0,.58,1),y0=as(.42,0,.58,1),jx=i=>Array.isArray(i)&&typeof i[0]!="number",g0=i=>Array.isArray(i)&&typeof i[0]=="number",Ox={linear:$e,easeIn:Dx,easeInOut:y0,easeOut:Nx,circIn:ff,circInOut:p0,circOut:m0,backIn:cf,backInOut:h0,backOut:f0,anticipate:d0},zx=i=>typeof i=="string",Up=i=>{if(g0(i)){of(i.length===4);const[l,u,o,c]=i;return as(l,u,o,c)}else if(zx(i))return Ox[i];return i},Du=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Rx(i,l){let u=new Set,o=new Set,c=!1,d=!1;const h=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function g(v){h.has(v)&&(m.schedule(v),i()),v(p)}const m={schedule:(v,b=!1,T=!1)=>{const R=T&&c?u:o;return b&&h.add(v),R.has(v)||R.add(v),v},cancel:v=>{o.delete(v),h.delete(v)},process:v=>{if(p=v,c){d=!0;return}c=!0,[u,o]=[o,u],u.forEach(g),u.clear(),c=!1,d&&(d=!1,m.process(v))}};return m}const Vx=40;function v0(i,l){let u=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>u=!0,h=Du.reduce((G,J)=>(G[J]=Rx(d),G),{}),{setup:p,read:g,resolveKeyframes:m,preUpdate:v,update:b,preRender:T,render:j,postRender:R}=h,Y=()=>{const G=Qn.useManualTiming?c.timestamp:performance.now();u=!1,Qn.useManualTiming||(c.delta=o?1e3/60:Math.max(Math.min(G-c.timestamp,Vx),1)),c.timestamp=G,c.isProcessing=!0,p.process(c),g.process(c),m.process(c),v.process(c),b.process(c),T.process(c),j.process(c),R.process(c),c.isProcessing=!1,u&&l&&(o=!1,i(Y))},X=()=>{u=!0,o=!0,c.isProcessing||i(Y)};return{schedule:Du.reduce((G,J)=>{const Z=h[J];return G[J]=(lt,k=!1,F=!1)=>(u||X(),Z.schedule(lt,k,F)),G},{}),cancel:G=>{for(let J=0;J<Du.length;J++)h[Du[J]].cancel(G)},state:c,steps:h}}const{schedule:Rt,cancel:ba,state:se,steps:pc}=v0(typeof requestAnimationFrame<"u"?requestAnimationFrame:$e,!0);let zu;function _x(){zu=void 0}const ge={now:()=>(zu===void 0&&ge.set(se.isProcessing||Qn.useManualTiming?se.timestamp:performance.now()),zu),set:i=>{zu=i,queueMicrotask(_x)}},x0=i=>l=>typeof l=="string"&&l.startsWith(i),b0=x0("--"),Ux=x0("var(--"),hf=i=>Ux(i)?Bx.test(i.split("/*")[0].trim()):!1,Bx=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Bp(i){return typeof i!="string"?!1:i.split("/*")[0].includes("var(--")}const Ki={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},$l={...Ki,transform:i=>xn(0,1,i)},Nu={...Ki,default:1},kl=i=>Math.round(i*1e5)/1e5,df=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Lx(i){return i==null}const Hx=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mf=(i,l)=>u=>!!(typeof u=="string"&&Hx.test(u)&&u.startsWith(i)||l&&!Lx(u)&&Object.prototype.hasOwnProperty.call(u,l)),S0=(i,l,u)=>o=>{if(typeof o!="string")return o;const[c,d,h,p]=o.match(df);return{[i]:parseFloat(c),[l]:parseFloat(d),[u]:parseFloat(h),alpha:p!==void 0?parseFloat(p):1}},Yx=i=>xn(0,255,i),yc={...Ki,transform:i=>Math.round(Yx(i))},Ka={test:mf("rgb","red"),parse:S0("red","green","blue"),transform:({red:i,green:l,blue:u,alpha:o=1})=>"rgba("+yc.transform(i)+", "+yc.transform(l)+", "+yc.transform(u)+", "+kl($l.transform(o))+")"};function qx(i){let l="",u="",o="",c="";return i.length>5?(l=i.substring(1,3),u=i.substring(3,5),o=i.substring(5,7),c=i.substring(7,9)):(l=i.substring(1,2),u=i.substring(2,3),o=i.substring(3,4),c=i.substring(4,5),l+=l,u+=u,o+=o,c+=c),{red:parseInt(l,16),green:parseInt(u,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const Rc={test:mf("#"),parse:qx,transform:Ka.transform},is=i=>({test:l=>typeof l=="string"&&l.endsWith(i)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${i}`}),va=is("deg"),vn=is("%"),I=is("px"),Gx=is("vh"),Xx=is("vw"),Lp={...vn,parse:i=>vn.parse(i)/100,transform:i=>vn.transform(i*100)},Bi={test:mf("hsl","hue"),parse:S0("hue","saturation","lightness"),transform:({hue:i,saturation:l,lightness:u,alpha:o=1})=>"hsla("+Math.round(i)+", "+vn.transform(kl(l))+", "+vn.transform(kl(u))+", "+kl($l.transform(o))+")"},Ft={test:i=>Ka.test(i)||Rc.test(i)||Bi.test(i),parse:i=>Ka.test(i)?Ka.parse(i):Bi.test(i)?Bi.parse(i):Rc.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?Ka.transform(i):Bi.transform(i),getAnimatableNone:i=>{const l=Ft.parse(i);return l.alpha=0,Ft.transform(l)}},Kx=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Qx(i){return isNaN(i)&&typeof i=="string"&&(i.match(df)?.length||0)+(i.match(Kx)?.length||0)>0}const T0="number",A0="color",Zx="var",kx="var(",Hp="${}",Jx=/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 Il(i){const l=i.toString(),u=[],o={color:[],number:[],var:[]},c=[];let d=0;const p=l.replace(Jx,g=>(Ft.test(g)?(o.color.push(d),c.push(A0),u.push(Ft.parse(g))):g.startsWith(kx)?(o.var.push(d),c.push(Zx),u.push(g)):(o.number.push(d),c.push(T0),u.push(parseFloat(g))),++d,Hp)).split(Hp);return{values:u,split:p,indexes:o,types:c}}function E0(i){return Il(i).values}function C0(i){const{split:l,types:u}=Il(i),o=l.length;return c=>{let d="";for(let h=0;h<o;h++)if(d+=l[h],c[h]!==void 0){const p=u[h];p===T0?d+=kl(c[h]):p===A0?d+=Ft.transform(c[h]):d+=c[h]}return d}}const Fx=i=>typeof i=="number"?0:Ft.test(i)?Ft.getAnimatableNone(i):i;function Px(i){const l=E0(i);return C0(i)(l.map(Fx))}const rn={test:Qx,parse:E0,createTransformer:C0,getAnimatableNone:Px};function gc(i,l,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?i+(l-i)*6*u:u<1/2?l:u<2/3?i+(l-i)*(2/3-u)*6:i}function Wx({hue:i,saturation:l,lightness:u,alpha:o}){i/=360,l/=100,u/=100;let c=0,d=0,h=0;if(!l)c=d=h=u;else{const p=u<.5?u*(1+l):u+l-u*l,g=2*u-p;c=gc(g,p,i+1/3),d=gc(g,p,i),h=gc(g,p,i-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(h*255),alpha:o}}function Yu(i,l){return u=>u>0?l:i}const Lt=(i,l,u)=>i+(l-i)*u,vc=(i,l,u)=>{const o=i*i,c=u*(l*l-o)+o;return c<0?0:Math.sqrt(c)},$x=[Rc,Ka,Bi],Ix=i=>$x.find(l=>l.test(i));function Yp(i){const l=Ix(i);if(!l)return!1;let u=l.parse(i);return l===Bi&&(u=Wx(u)),u}const qp=(i,l)=>{const u=Yp(i),o=Yp(l);if(!u||!o)return Yu(i,l);const c={...u};return d=>(c.red=vc(u.red,o.red,d),c.green=vc(u.green,o.green,d),c.blue=vc(u.blue,o.blue,d),c.alpha=Lt(u.alpha,o.alpha,d),Ka.transform(c))},Vc=new Set(["none","hidden"]);function tb(i,l){return Vc.has(i)?u=>u<=0?i:l:u=>u>=1?l:i}function eb(i,l){return u=>Lt(i,l,u)}function pf(i){return typeof i=="number"?eb:typeof i=="string"?hf(i)?Yu:Ft.test(i)?qp:ib:Array.isArray(i)?M0:typeof i=="object"?Ft.test(i)?qp:nb:Yu}function M0(i,l){const u=[...i],o=u.length,c=i.map((d,h)=>pf(d)(d,l[h]));return d=>{for(let h=0;h<o;h++)u[h]=c[h](d);return u}}function nb(i,l){const u={...i,...l},o={};for(const c in u)i[c]!==void 0&&l[c]!==void 0&&(o[c]=pf(i[c])(i[c],l[c]));return c=>{for(const d in o)u[d]=o[d](c);return u}}function ab(i,l){const u=[],o={color:0,var:0,number:0};for(let c=0;c<l.values.length;c++){const d=l.types[c],h=i.indexes[d][o[d]],p=i.values[h]??0;u[c]=p,o[d]++}return u}const ib=(i,l)=>{const u=rn.createTransformer(l),o=Il(i),c=Il(l);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?Vc.has(i)&&!c.values.length||Vc.has(l)&&!o.values.length?tb(i,l):ns(M0(ab(o,c),c.values),u):Yu(i,l)};function w0(i,l,u){return typeof i=="number"&&typeof l=="number"&&typeof u=="number"?Lt(i,l,u):pf(i)(i,l)}const lb=i=>{const l=({timestamp:u})=>i(u);return{start:(u=!0)=>Rt.update(l,u),stop:()=>ba(l),now:()=>se.isProcessing?se.timestamp:ge.now()}},D0=(i,l,u=10)=>{let o="";const c=Math.max(Math.round(l/u),2);for(let d=0;d<c;d++)o+=Math.round(i(d/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},qu=2e4;function yf(i){let l=0;const u=50;let o=i.next(l);for(;!o.done&&l<qu;)l+=u,o=i.next(l);return l>=qu?1/0:l}function sb(i,l=100,u){const o=u({...i,keyframes:[0,l]}),c=Math.min(yf(o),qu);return{type:"keyframes",ease:d=>o.next(c*d).value/l,duration:We(c)}}const ub=5;function N0(i,l,u){const o=Math.max(l-ub,0);return u0(u-i(o),l-o)}const qt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},xc=.001;function ob({duration:i=qt.duration,bounce:l=qt.bounce,velocity:u=qt.velocity,mass:o=qt.mass}){let c,d,h=1-l;h=xn(qt.minDamping,qt.maxDamping,h),i=xn(qt.minDuration,qt.maxDuration,We(i)),h<1?(c=m=>{const v=m*h,b=v*i,T=v-u,j=_c(m,h),R=Math.exp(-b);return xc-T/j*R},d=m=>{const b=m*h*i,T=b*u+u,j=Math.pow(h,2)*Math.pow(m,2)*i,R=Math.exp(-b),Y=_c(Math.pow(m,2),h);return(-c(m)+xc>0?-1:1)*((T-j)*R)/Y}):(c=m=>{const v=Math.exp(-m*i),b=(m-u)*i+1;return-xc+v*b},d=m=>{const v=Math.exp(-m*i),b=(u-m)*(i*i);return v*b});const p=5/i,g=cb(c,d,p);if(i=on(i),isNaN(g))return{stiffness:qt.stiffness,damping:qt.damping,duration:i};{const m=Math.pow(g,2)*o;return{stiffness:m,damping:h*2*Math.sqrt(o*m),duration:i}}}const rb=12;function cb(i,l,u){let o=u;for(let c=1;c<rb;c++)o=o-i(o)/l(o);return o}function _c(i,l){return i*Math.sqrt(1-l*l)}const fb=["duration","bounce"],hb=["stiffness","damping","mass"];function Gp(i,l){return l.some(u=>i[u]!==void 0)}function db(i){let l={velocity:qt.velocity,stiffness:qt.stiffness,damping:qt.damping,mass:qt.mass,isResolvedFromDuration:!1,...i};if(!Gp(i,hb)&&Gp(i,fb))if(l.velocity=0,i.visualDuration){const u=i.visualDuration,o=2*Math.PI/(u*1.2),c=o*o,d=2*xn(.05,1,1-(i.bounce||0))*Math.sqrt(c);l={...l,mass:qt.mass,stiffness:c,damping:d}}else{const u=ob({...i,velocity:0});l={...l,...u,mass:qt.mass},l.isResolvedFromDuration=!0}return l}function Gu(i=qt.visualDuration,l=qt.bounce){const u=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:l}:i;let{restSpeed:o,restDelta:c}=u;const d=u.keyframes[0],h=u.keyframes[u.keyframes.length-1],p={done:!1,value:d},{stiffness:g,damping:m,mass:v,duration:b,velocity:T,isResolvedFromDuration:j}=db({...u,velocity:-We(u.velocity||0)}),R=T||0,Y=m/(2*Math.sqrt(g*v)),X=h-d,q=We(Math.sqrt(g/v)),K=Math.abs(X)<5;o||(o=K?qt.restSpeed.granular:qt.restSpeed.default),c||(c=K?qt.restDelta.granular:qt.restDelta.default);let G;if(Y<1){const Z=_c(q,Y);G=lt=>{const k=Math.exp(-Y*q*lt);return h-k*((R+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+(R+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*((R+Y*q*X)*Math.sinh(F)+Z*X*Math.cosh(F))/Z}}const J={calculatedDuration:j&&b||null,next:Z=>{const lt=G(Z);if(j)p.done=Z>=b;else{let k=Z===0?R:0;Y<1&&(k=Z===0?on(R):N0(G,Z,lt));const F=Math.abs(k)<=o,st=Math.abs(h-lt)<=c;p.done=F&&st}return p.value=p.done?h:lt,p},toString:()=>{const Z=Math.min(yf(J),qu),lt=D0(k=>J.next(Z*k).value,Z,30);return Z+"ms "+lt},toTransition:()=>{}};return J}Gu.applyToOptions=i=>{const l=sb(i,100,Gu);return i.ease=l.ease,i.duration=on(l.duration),i.type="keyframes",i};function Uc({keyframes:i,velocity:l=0,power:u=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:h,min:p,max:g,restDelta:m=.5,restSpeed:v}){const b=i[0],T={done:!1,value:b},j=F=>p!==void 0&&F<p||g!==void 0&&F>g,R=F=>p===void 0?g:g===void 0||Math.abs(p-F)<Math.abs(g-F)?p:g;let Y=u*l;const X=b+Y,q=h===void 0?X:h(X);q!==X&&(Y=q-b);const K=F=>-Y*Math.exp(-F/o),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=>{j(T.value)&&(Z=F,lt=Gu({keyframes:[T.value,R(T.value)],velocity:N0(G,F,T.value),damping:c,stiffness:d,restDelta:m,restSpeed:v}))};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 mb(i,l,u){const o=[],c=u||Qn.mix||w0,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]||$e:l;p=ns(g,p)}o.push(p)}return o}function pb(i,l,{clamp:u=!0,ease:o,mixer:c}={}){const d=i.length;if(of(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=mb(l,o,c),g=p.length,m=v=>{if(h&&v<i[0])return l[0];let b=0;if(g>1)for(;b<i.length-2&&!(v<i[b+1]);b++);const T=Wl(i[b],i[b+1],v);return p[b](T)};return u?v=>m(xn(i[0],i[d-1],v)):m}function yb(i,l){const u=i[i.length-1];for(let o=1;o<=l;o++){const c=Wl(0,l,o);i.push(Lt(u,1,c))}}function gb(i){const l=[0];return yb(l,i.length-1),l}function vb(i,l){return i.map(u=>u*l)}function xb(i,l){return i.map(()=>l||y0).splice(0,i.length-1)}function Jl({duration:i=300,keyframes:l,times:u,ease:o="easeInOut"}){const c=jx(o)?o.map(Up):Up(o),d={done:!1,value:l[0]},h=vb(u&&u.length===l.length?u:gb(l),i),p=pb(h,l,{ease:Array.isArray(c)?c:xb(l,c)});return{calculatedDuration:i,next:g=>(d.value=p(g),d.done=g>=i,d)}}const bb=i=>i!==null;function gf(i,{repeat:l,repeatType:u="loop"},o,c=1){const d=i.filter(bb),p=c<0||l&&u!=="loop"&&l%2===1?0:d.length-1;return!p||o===void 0?d[p]:o}const Sb={decay:Uc,inertia:Uc,tween:Jl,keyframes:Jl,spring:Gu};function j0(i){typeof i.type=="string"&&(i.type=Sb[i.type])}class vf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,u){return this.finished.then(l,u)}}const Tb=i=>i/100;class xf extends vf{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:u}=this.options;u&&u.updatedAt!==ge.now()&&this.tick(ge.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=l,this.initAnimation(),this.play(),l.autoplay===!1&&this.pause()}initAnimation(){const{options:l}=this;j0(l);const{type:u=Jl,repeat:o=0,repeatDelay:c=0,repeatType:d,velocity:h=0}=l;let{keyframes:p}=l;const g=u||Jl;g!==Jl&&typeof p[0]!="number"&&(this.mixKeyframes=ns(Tb,w0(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=yf(m));const{calculatedDuration:v}=m;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=m}updateTime(l){const u=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=u}tick(l,u=!1){const{generator:o,totalDuration:c,mixKeyframes:d,mirroredGenerator:h,resolvedDuration:p,calculatedDuration:g}=this;if(this.startTime===null)return o.next(0);const{delay:m=0,keyframes:v,repeat:b,repeatType:T,repeatDelay:j,type:R,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)),u?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=o;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,j&&(bt-=j/p)):T==="mirror"&&(J=h)),G=xn(0,1,bt)*p}const Z=K?{done:!1,value:v[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"&&lt);return k&&R!==Uc&&(Z.value=gf(v,this.options,X,this.speed)),Y&&Y(Z.value),k&&this.finish(),Z}then(l,u){return this.finished.then(l,u)}get duration(){return We(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+We(l)}get time(){return We(this.currentTime)}set time(l){l=on(l),this.currentTime=l,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=l:this.driver&&(this.startTime=this.driver.now()-l/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(l){this.updateTime(ge.now());const u=this.playbackSpeed!==l;this.playbackSpeed=l,u&&(this.time=We(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=lb,startTime:u}=this.options;this.driver||(this.driver=l(c=>this.tick(c))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=u??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ge.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(l){return this.startTime=0,this.tick(l,!0)}attachTimeline(l){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),l.observe(this)}}function Ab(i){for(let l=1;l<i.length;l++)i[l]??(i[l]=i[l-1])}const Qa=i=>i*180/Math.PI,Bc=i=>{const l=Qa(Math.atan2(i[1],i[0]));return Lc(l)},Eb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:Bc,rotateZ:Bc,skewX:i=>Qa(Math.atan(i[1])),skewY:i=>Qa(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},Lc=i=>(i=i%360,i<0&&(i+=360),i),Xp=Bc,Kp=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),Qp=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),Cb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Kp,scaleY:Qp,scale:i=>(Kp(i)+Qp(i))/2,rotateX:i=>Lc(Qa(Math.atan2(i[6],i[5]))),rotateY:i=>Lc(Qa(Math.atan2(-i[2],i[0]))),rotateZ:Xp,rotate:Xp,skewX:i=>Qa(Math.atan(i[4])),skewY:i=>Qa(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function Hc(i){return i.includes("scale")?1:0}function Yc(i,l){if(!i||i==="none")return Hc(l);const u=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(u)o=Cb,c=u;else{const p=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Eb,c=p}if(!c)return Hc(l);const d=o[l],h=c[1].split(",").map(wb);return typeof d=="function"?d(h):h[d]}const Mb=(i,l)=>{const{transform:u="none"}=getComputedStyle(i);return Yc(u,l)};function wb(i){return parseFloat(i.trim())}const Qi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zi=new Set(Qi),Zp=i=>i===Ki||i===I,Db=new Set(["x","y","z"]),Nb=Qi.filter(i=>!Db.has(i));function jb(i){const l=[];return Nb.forEach(u=>{const o=i.getValue(u);o!==void 0&&(l.push([u,o.get()]),o.set(u.startsWith("scale")?1:0))}),l}const xa={width:({x:i},{paddingLeft:l="0",paddingRight:u="0"})=>i.max-i.min-parseFloat(l)-parseFloat(u),height:({y:i},{paddingTop:l="0",paddingBottom:u="0"})=>i.max-i.min-parseFloat(l)-parseFloat(u),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})=>Yc(l,"x"),y:(i,{transform:l})=>Yc(l,"y")};xa.translateX=xa.x;xa.translateY=xa.y;const Za=new Set;let qc=!1,Gc=!1,Xc=!1;function O0(){if(Gc){const i=Array.from(Za).filter(o=>o.needsMeasurement),l=new Set(i.map(o=>o.element)),u=new Map;l.forEach(o=>{const c=jb(o);c.length&&(u.set(o,c),o.render())}),i.forEach(o=>o.measureInitialState()),l.forEach(o=>{o.render();const c=u.get(o);c&&c.forEach(([d,h])=>{o.getValue(d)?.set(h)})}),i.forEach(o=>o.measureEndState()),i.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Gc=!1,qc=!1,Za.forEach(i=>i.complete(Xc)),Za.clear()}function z0(){Za.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(Gc=!0)})}function Ob(){Xc=!0,z0(),O0(),Xc=!1}class bf{constructor(l,u,o,c,d,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=u,this.name=o,this.motionValue=c,this.element=d,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?(Za.add(this),qc||(qc=!0,Rt.read(z0),Rt.resolveKeyframes(O0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:u,element:o,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(o&&u){const p=o.readValue(u,h);p!=null&&(l[0]=p)}l[0]===void 0&&(l[0]=h),c&&d===void 0&&c.set(l[0])}Ab(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),Za.delete(this)}cancel(){this.state==="scheduled"&&(Za.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const zb=i=>i.startsWith("--");function Rb(i,l,u){zb(l)?i.style.setProperty(l,u):i.style[l]=u}const Vb={};function R0(i,l){const u=s0(i);return()=>Vb[l]??u()}const _b=R0(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),V0=R0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Zl=([i,l,u,o])=>`cubic-bezier(${i}, ${l}, ${u}, ${o})`,kp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zl([0,.65,.55,1]),circOut:Zl([.55,0,1,.45]),backIn:Zl([.31,.01,.66,-.59]),backOut:Zl([.33,1.53,.69,.99])};function _0(i,l){if(i)return typeof i=="function"?V0()?D0(i,l):"ease-out":g0(i)?Zl(i):Array.isArray(i)?i.map(u=>_0(u,l)||kp.easeOut):kp[i]}function Ub(i,l,u,{delay:o=0,duration:c=300,repeat:d=0,repeatType:h="loop",ease:p="easeOut",times:g}={},m=void 0){const v={[l]:u};g&&(v.offset=g);const b=_0(p,c);Array.isArray(b)&&(v.easing=b);const T={delay:o,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(v,T)}function U0(i){return typeof i=="function"&&"applyToOptions"in i}function Bb({type:i,...l}){return U0(i)&&V0()?i.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class B0 extends vf{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!l)return;const{element:u,name:o,keyframes:c,pseudoElement:d,allowFlatten:h=!1,finalKeyframe:p,onComplete:g}=l;this.isPseudoElement=!!d,this.allowFlatten=h,this.options=l,of(typeof l.type!="string");const m=Bb(l);this.animation=Ub(u,o,c,m,d),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const v=gf(c,this.options,p,this.speed);this.updateMotionValue?this.updateMotionValue(v):Rb(u,o,v),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 We(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+We(l)}get time(){return We(Number(this.animation.currentTime)||0)}set time(l){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=on(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:u}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,l&&_b()?(this.animation.timeline=l,$e):u(this)}}const L0={anticipate:d0,backInOut:h0,circInOut:p0};function Lb(i){return i in L0}function Hb(i){typeof i.ease=="string"&&Lb(i.ease)&&(i.ease=L0[i.ease])}const bc=10;class Yb extends B0{constructor(l){Hb(l),j0(l),super(l),l.startTime!==void 0&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:u,onUpdate:o,onComplete:c,element:d,...h}=this.options;if(!u)return;if(l!==void 0){u.set(l);return}const p=new xf({...h,autoplay:!1}),g=Math.max(bc,ge.now()-this.startTime),m=xn(0,bc,g-bc);u.setWithVelocity(p.sample(Math.max(0,g-m)).value,p.sample(g).value,m),p.stop()}}const Jp=(i,l)=>l==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(rn.test(i)||i==="0")&&!i.startsWith("url("));function qb(i){const l=i[0];if(i.length===1)return!0;for(let u=0;u<i.length;u++)if(i[u]!==l)return!0}function Gb(i,l,u,o){const c=i[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const d=i[i.length-1],h=Jp(c,l),p=Jp(d,l);return!h||!p?!1:qb(i)||(u==="spring"||U0(u))&&o}function Kc(i){i.duration=0,i.type="keyframes"}const Xb=new Set(["opacity","clipPath","filter","transform"]),Kb=s0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Qb(i){const{motionValue:l,name:u,repeatDelay:o,repeatType:c,damping:d,type:h}=i;if(!(l?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:m}=l.owner.getProps();return Kb()&&u&&Xb.has(u)&&(u!=="transform"||!m)&&!g&&!o&&c!=="mirror"&&d!==0&&h!=="inertia"}const Zb=40;class kb extends vf{constructor({autoplay:l=!0,delay:u=0,type:o="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:h="loop",keyframes:p,name:g,motionValue:m,element:v,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ge.now();const T={autoplay:l,delay:u,type:o,repeat:c,repeatDelay:d,repeatType:h,name:g,motionValue:m,element:v,...b},j=v?.KeyframeResolver||bf;this.keyframeResolver=new j(p,(R,Y,X)=>this.onKeyframesResolved(R,Y,T,!X),g,m,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,u,o,c){this.keyframeResolver=void 0;const{name:d,type:h,velocity:p,delay:g,isHandoff:m,onUpdate:v}=o;this.resolvedAt=ge.now(),Gb(l,d,h,p)||((Qn.instantAnimations||!g)&&v?.(gf(l,o,u)),l[0]=l[l.length-1],Kc(o),o.repeat=0);const T={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>Zb?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:u,...o,keyframes:l},j=!m&&Qb(T),R=T.motionValue?.owner?.current,Y=j?new Yb({...T,element:R}):new xf(T);Y.finished.then(()=>{this.notifyFinished()}).catch($e),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,u){return this.finished.finally(l).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ob()),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 H0(i,l,u,o=0,c=1){const d=Array.from(i).sort((m,v)=>m.sortNodePosition(v)).indexOf(l),h=i.size,p=(h-1)*o;return typeof u=="function"?u(d,h):c===1?d*o:p-d*o}const Jb=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Fb(i){const l=Jb.exec(i);if(!l)return[,];const[,u,o,c]=l;return[`--${u??o}`,c]}function Y0(i,l,u=1){const[o,c]=Fb(i);if(!o)return;const d=window.getComputedStyle(l).getPropertyValue(o);if(d){const h=d.trim();return a0(h)?parseFloat(h):h}return hf(c)?Y0(c,l,u+1):c}const Pb={type:"spring",stiffness:500,damping:25,restSpeed:10},Wb=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),$b={type:"keyframes",duration:.8},Ib={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tS=(i,{keyframes:l})=>l.length>2?$b:Zi.has(i)?i.startsWith("scale")?Wb(l[1]):Pb:Ib,eS=i=>i!==null;function nS(i,{repeat:l,repeatType:u="loop"},o){const c=i.filter(eS),d=l&&u!=="loop"&&l%2===1?0:c.length-1;return c[d]}function q0(i,l){if(i?.inherit&&l){const{inherit:u,...o}=i;return{...l,...o}}return i}function Sf(i,l){const u=i?.[l]??i?.default??i;return u!==i?q0(u,i):u}function aS({when:i,delay:l,delayChildren:u,staggerChildren:o,staggerDirection:c,repeat:d,repeatType:h,repeatDelay:p,from:g,elapsed:m,...v}){return!!Object.keys(v).length}const Tf=(i,l,u,o={},c,d)=>h=>{const p=Sf(o,i)||{},g=p.delay||o.delay||0;let{elapsed:m=0}=o;m=m-on(g);const v={keyframes:Array.isArray(u)?u:[null,u],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};aS(p)||Object.assign(v,tS(i,v)),v.duration&&(v.duration=on(v.duration)),v.repeatDelay&&(v.repeatDelay=on(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let b=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(Kc(v),v.delay===0&&(b=!0)),(Qn.instantAnimations||Qn.skipAnimations||c?.shouldSkipAnimations)&&(b=!0,Kc(v),v.delay=0),v.allowFlatten=!p.type&&!p.ease,b&&!d&&l.get()!==void 0){const T=nS(v.keyframes,p);if(T!==void 0){Rt.update(()=>{v.onUpdate(T),v.onComplete()});return}}return p.isSync?new xf(v):new kb(v)};function Fp(i){const l=[{},{}];return i?.values.forEach((u,o)=>{l[0][o]=u.get(),l[1][o]=u.getVelocity()}),l}function Af(i,l,u,o){if(typeof l=="function"){const[c,d]=Fp(o);l=l(u!==void 0?u:i.custom,c,d)}if(typeof l=="string"&&(l=i.variants&&i.variants[l]),typeof l=="function"){const[c,d]=Fp(o);l=l(u!==void 0?u:i.custom,c,d)}return l}function Gi(i,l,u){const o=i.getProps();return Af(o,l,u!==void 0?u:o.custom,i)}const G0=new Set(["width","height","top","left","right","bottom",...Qi]),Pp=30,iS=i=>!isNaN(parseFloat(i));class lS{constructor(l,u={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const c=ge.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=u.owner}setCurrent(l){this.current=l,this.updatedAt=ge.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=iS(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,u){this.events[l]||(this.events[l]=new rf);const o=this.events[l].add(u);return l==="change"?()=>{o(),Rt.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const l in this.events)this.events[l].clear()}attach(l,u){this.passiveEffect=l,this.stopPassiveEffect=u}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,u,o){this.set(u),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-o}jump(l,u=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,u&&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=ge.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>Pp)return 0;const u=Math.min(this.updatedAt-this.prevUpdatedAt,Pp);return u0(parseFloat(this.current)-parseFloat(this.prevFrameValue),u)}start(l){return this.stop(),new Promise(u=>{this.hasAnimated=!0,this.animation=l(u),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 Xi(i,l){return new lS(i,l)}const Qc=i=>Array.isArray(i);function sS(i,l,u){i.hasValue(l)?i.getValue(l).set(u):i.addValue(l,Xi(u))}function uS(i){return Qc(i)?i[i.length-1]||0:i}function oS(i,l){const u=Gi(i,l);let{transitionEnd:o={},transition:c={},...d}=u||{};d={...d,...o};for(const h in d){const p=uS(d[h]);sS(i,h,p)}}const fe=i=>!!(i&&i.getVelocity);function rS(i){return!!(fe(i)&&i.add)}function Zc(i,l){const u=i.getValue("willChange");if(rS(u))return u.add(l);if(!u&&Qn.WillChange){const o=new Qn.WillChange("auto");i.addValue("willChange",o),o.add(l)}}function Ef(i){return i.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const cS="framerAppearId",X0="data-"+Ef(cS);function K0(i){return i.props[X0]}function fS({protectedKeys:i,needsAnimating:l},u){const o=i.hasOwnProperty(u)&&l[u]!==!0;return l[u]=!1,o}function Q0(i,l,{delay:u=0,transitionOverride:o,type:c}={}){let{transition:d,transitionEnd:h,...p}=l;const g=i.getDefaultTransition();d=d?q0(d,g):g;const m=d?.reduceMotion;o&&(d=o);const v=[],b=c&&i.animationState&&i.animationState.getState()[c];for(const T in p){const j=i.getValue(T,i.latestValues[T]??null),R=p[T];if(R===void 0||b&&fS(b,T))continue;const Y={delay:u,...Sf(d||{},T)},X=j.get();if(X!==void 0&&!j.isAnimating&&!Array.isArray(R)&&R===X&&!Y.velocity)continue;let q=!1;if(window.MotionHandoffAnimation){const J=K0(i);if(J){const Z=window.MotionHandoffAnimation(J,T,Rt);Z!==null&&(Y.startTime=Z,q=!0)}}Zc(i,T);const K=m??i.shouldReduceMotion;j.start(Tf(T,j,R,K&&G0.has(T)?{type:!1}:Y,i,q));const G=j.animation;G&&v.push(G)}if(h){const T=()=>Rt.update(()=>{h&&oS(i,h)});v.length?Promise.all(v).then(T):T()}return v}function kc(i,l,u={}){const o=Gi(i,l,u.type==="exit"?i.presenceContext?.custom:void 0);let{transition:c=i.getDefaultTransition()||{}}=o||{};u.transitionOverride&&(c=u.transitionOverride);const d=o?()=>Promise.all(Q0(i,o,u)):()=>Promise.resolve(),h=i.variantChildren&&i.variantChildren.size?(g=0)=>{const{delayChildren:m=0,staggerChildren:v,staggerDirection:b}=c;return hS(i,l,g,m,v,b,u)}:()=>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(u.delay)])}function hS(i,l,u=0,o=0,c=0,d=1,h){const p=[];for(const g of i.variantChildren)g.notify("AnimationStart",l),p.push(kc(g,l,{...h,delay:u+(typeof o=="function"?0:o)+H0(i.variantChildren,g,o,c,d)}).then(()=>g.notify("AnimationComplete",l)));return Promise.all(p)}function dS(i,l,u={}){i.notify("AnimationStart",l);let o;if(Array.isArray(l)){const c=l.map(d=>kc(i,d,u));o=Promise.all(c)}else if(typeof l=="string")o=kc(i,l,u);else{const c=typeof l=="function"?Gi(i,l,u.custom):l;o=Promise.all(Q0(i,c,u))}return o.then(()=>{i.notify("AnimationComplete",l)})}const mS={test:i=>i==="auto",parse:i=>i},Z0=i=>l=>l.test(i),k0=[Ki,I,vn,va,Xx,Gx,mS],Wp=i=>k0.find(Z0(i));function pS(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||l0(i):!0}const yS=new Set(["brightness","contrast","saturate","opacity"]);function gS(i){const[l,u]=i.slice(0,-1).split("(");if(l==="drop-shadow")return i;const[o]=u.match(df)||[];if(!o)return i;const c=u.replace(o,"");let d=yS.has(l)?1:0;return o!==u&&(d*=100),l+"("+d+c+")"}const vS=/\b([a-z-]*)\(.*?\)/gu,Jc={...rn,getAnimatableNone:i=>{const l=i.match(vS);return l?l.map(gS).join(" "):i}},Fc={...rn,getAnimatableNone:i=>{const l=rn.parse(i);return rn.createTransformer(i)(l.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},$p={...Ki,transform:Math.round},xS={rotate:va,rotateX:va,rotateY:va,rotateZ:va,scale:Nu,scaleX:Nu,scaleY:Nu,scaleZ:Nu,skew:va,skewX:va,skewY:va,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:$l,originX:Lp,originY:Lp,originZ:I},Cf={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,...xS,zIndex:$p,fillOpacity:$l,strokeOpacity:$l,numOctaves:$p},bS={...Cf,color:Ft,backgroundColor:Ft,outlineColor:Ft,fill:Ft,stroke:Ft,borderColor:Ft,borderTopColor:Ft,borderRightColor:Ft,borderBottomColor:Ft,borderLeftColor:Ft,filter:Jc,WebkitFilter:Jc,mask:Fc,WebkitMask:Fc},J0=i=>bS[i],SS=new Set([Jc,Fc]);function F0(i,l){let u=J0(i);return SS.has(u)||(u=rn),u.getAnimatableNone?u.getAnimatableNone(l):void 0}const TS=new Set(["auto","none","0"]);function AS(i,l,u){let o=0,c;for(;o<i.length&&!c;){const d=i[o];typeof d=="string"&&!TS.has(d)&&Il(d).values.length&&(c=i[o]),o++}if(c&&u)for(const d of l)i[d]=F0(u,c)}class ES extends bf{constructor(l,u,o,c,d){super(l,u,o,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:u,name:o}=this;if(!u||!u.current)return;super.readKeyframes();for(let v=0;v<l.length;v++){let b=l[v];if(typeof b=="string"&&(b=b.trim(),hf(b))){const T=Y0(b,u.current);T!==void 0&&(l[v]=T),v===l.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!G0.has(o)||l.length!==2)return;const[c,d]=l,h=Wp(c),p=Wp(d),g=Bp(c),m=Bp(d);if(g!==m&&xa[o]){this.needsMeasurement=!0;return}if(h!==p)if(Zp(h)&&Zp(p))for(let v=0;v<l.length;v++){const b=l[v];typeof b=="string"&&(l[v]=parseFloat(b))}else xa[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:u}=this,o=[];for(let c=0;c<l.length;c++)(l[c]===null||pS(l[c]))&&o.push(c);o.length&&AS(l,o,u)}measureInitialState(){const{element:l,unresolvedKeyframes:u,name:o}=this;if(!l||!l.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=xa[o](l.measureViewportBox(),window.getComputedStyle(l.current)),u[0]=this.measuredOrigin;const c=u[u.length-1];c!==void 0&&l.getValue(o,c).jump(c,!1)}measureEndState(){const{element:l,name:u,unresolvedKeyframes:o}=this;if(!l||!l.current)return;const c=l.getValue(u);c&&c.jump(this.measuredOrigin,!1);const d=o.length-1,h=o[d];o[d]=xa[u](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 CS=new Set(["opacity","clipPath","filter","transform"]);function P0(i,l,u){if(i==null)return[];if(i instanceof EventTarget)return[i];if(typeof i=="string"){let o=document;const c=u?.[i]??o.querySelectorAll(i);return c?Array.from(c):[]}return Array.from(i).filter(o=>o!=null)}const W0=(i,l)=>l&&typeof i=="number"?l.transform(i):i;function Pc(i){return i0(i)&&"offsetHeight"in i}const{schedule:Mf}=v0(queueMicrotask,!1),un={x:!1,y:!1};function $0(){return un.x||un.y}function MS(i){return i==="x"||i==="y"?un[i]?null:(un[i]=!0,()=>{un[i]=!1}):un.x||un.y?null:(un.x=un.y=!0,()=>{un.x=un.y=!1})}function I0(i,l){const u=P0(i),o=new AbortController,c={passive:!0,...l,signal:o.signal};return[u,c,()=>o.abort()]}function wS(i){return!(i.pointerType==="touch"||$0())}function DS(i,l,u={}){const[o,c,d]=I0(i,u);return o.forEach(h=>{let p=!1,g=!1,m;const v=()=>{h.removeEventListener("pointerleave",R)},b=X=>{m&&(m(X),m=void 0),v()},T=X=>{p=!1,window.removeEventListener("pointerup",T),window.removeEventListener("pointercancel",T),g&&(g=!1,b(X))},j=()=>{p=!0,window.addEventListener("pointerup",T,c),window.addEventListener("pointercancel",T,c)},R=X=>{if(X.pointerType!=="touch"){if(p){g=!0;return}b(X)}},Y=X=>{if(!wS(X))return;g=!1;const q=l(h,X);typeof q=="function"&&(m=q,h.addEventListener("pointerleave",R,c))};h.addEventListener("pointerenter",Y,c),h.addEventListener("pointerdown",j,c)}),d}const tg=(i,l)=>l?i===l?!0:tg(i,l.parentElement):!1,wf=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,NS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function jS(i){return NS.has(i.tagName)||i.isContentEditable===!0}const OS=new Set(["INPUT","SELECT","TEXTAREA"]);function zS(i){return OS.has(i.tagName)||i.isContentEditable===!0}const Ru=new WeakSet;function Ip(i){return l=>{l.key==="Enter"&&i(l)}}function Sc(i,l){i.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const RS=(i,l)=>{const u=i.currentTarget;if(!u)return;const o=Ip(()=>{if(Ru.has(u))return;Sc(u,"down");const c=Ip(()=>{Sc(u,"up")}),d=()=>Sc(u,"cancel");u.addEventListener("keyup",c,l),u.addEventListener("blur",d,l)});u.addEventListener("keydown",o,l),u.addEventListener("blur",()=>u.removeEventListener("keydown",o),l)};function ty(i){return wf(i)&&!$0()}const ey=new WeakSet;function VS(i,l,u={}){const[o,c,d]=I0(i,u),h=p=>{const g=p.currentTarget;if(!ty(p)||ey.has(p))return;Ru.add(g),u.stopPropagation&&ey.add(p);const m=l(g,p),v=(j,R)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",T),Ru.has(g)&&Ru.delete(g),ty(j)&&typeof m=="function"&&m(j,{success:R})},b=j=>{v(j,g===window||g===document||u.useGlobalTarget||tg(g,j.target))},T=j=>{v(j,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",T,c)};return o.forEach(p=>{(u.useGlobalTarget?window:p).addEventListener("pointerdown",h,c),Pc(p)&&(p.addEventListener("focus",m=>RS(m,c)),!jS(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),d}function Df(i){return i0(i)&&"ownerSVGElement"in i}const Vu=new WeakMap;let _u;const eg=(i,l,u)=>(o,c)=>c&&c[0]?c[0][i+"Size"]:Df(o)&&"getBBox"in o?o.getBBox()[l]:o[u],_S=eg("inline","width","offsetWidth"),US=eg("block","height","offsetHeight");function BS({target:i,borderBoxSize:l}){Vu.get(i)?.forEach(u=>{u(i,{get width(){return _S(i,l)},get height(){return US(i,l)}})})}function LS(i){i.forEach(BS)}function HS(){typeof ResizeObserver>"u"||(_u=new ResizeObserver(LS))}function YS(i,l){_u||HS();const u=P0(i);return u.forEach(o=>{let c=Vu.get(o);c||(c=new Set,Vu.set(o,c)),c.add(l),_u?.observe(o)}),()=>{u.forEach(o=>{const c=Vu.get(o);c?.delete(l),c?.size||_u?.unobserve(o)})}}const Uu=new Set;let Li;function qS(){Li=()=>{const i={get width(){return window.innerWidth},get height(){return window.innerHeight}};Uu.forEach(l=>l(i))},window.addEventListener("resize",Li)}function GS(i){return Uu.add(i),Li||qS(),()=>{Uu.delete(i),!Uu.size&&typeof Li=="function"&&(window.removeEventListener("resize",Li),Li=void 0)}}function ny(i,l){return typeof i=="function"?GS(i):YS(i,l)}function XS(i){return Df(i)&&i.tagName==="svg"}const KS=[...k0,Ft,rn],QS=i=>KS.find(Z0(i)),ay=()=>({translate:0,scale:1,origin:0,originPoint:0}),Hi=()=>({x:ay(),y:ay()}),iy=()=>({min:0,max:0}),It=()=>({x:iy(),y:iy()}),ZS=new WeakMap;function Ju(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function ts(i){return typeof i=="string"||Array.isArray(i)}const Nf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],jf=["initial",...Nf];function Fu(i){return Ju(i.animate)||jf.some(l=>ts(i[l]))}function ng(i){return!!(Fu(i)||i.variants)}function kS(i,l,u){for(const o in l){const c=l[o],d=u[o];if(fe(c))i.addValue(o,c);else if(fe(d))i.addValue(o,Xi(c,{owner:i}));else if(d!==c)if(i.hasValue(o)){const h=i.getValue(o);h.liveStyle===!0?h.jump(c):h.hasAnimated||h.set(c)}else{const h=i.getStaticValue(o);i.addValue(o,Xi(h!==void 0?h:c,{owner:i}))}}for(const o in u)l[o]===void 0&&i.removeValue(o);return l}const Wc={current:null},ag={current:!1},JS=typeof window<"u";function FS(){if(ag.current=!0,!!JS)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),l=()=>Wc.current=i.matches;i.addEventListener("change",l),l()}else Wc.current=!1}const ly=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Xu={};function ig(i){Xu=i}function PS(){return Xu}class WS{scrapeMotionValuesFromProps(l,u,o){return{}}constructor({parent:l,props:u,presenceContext:o,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 j=ge.now();this.renderScheduledAt<j&&(this.renderScheduledAt=j,Rt.render(this.render,!1,!0))};const{latestValues:m,renderState:v}=p;this.latestValues=m,this.baseTarget={...m},this.initialValues=u.initial?{...m}:{},this.renderState=v,this.parent=l,this.props=u,this.presenceContext=o,this.depth=l?l.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=d,this.options=g,this.blockInitialAnimation=!!h,this.isControllingVariants=Fu(u),this.isVariantNode=ng(u),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:b,...T}=this.scrapeMotionValuesFromProps(u,{},this);for(const j in T){const R=T[j];m[j]!==void 0&&fe(R)&&R.set(m[j])}}mount(l){if(this.hasBeenMounted)for(const u in this.initialValues)this.values.get(u)?.jump(this.initialValues[u]),this.latestValues[u]=this.initialValues[u];this.current=l,ZS.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((u,o)=>this.bindToMotionValue(o,u)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ag.current||FS(),this.shouldReduceMotion=Wc.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(),ba(this.notifyUpdate),ba(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 u=this.features[l];u&&(u.unmount(),u.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,u){if(this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)(),u.accelerate&&CS.has(l)&&this.current instanceof HTMLElement){const{factory:h,keyframes:p,times:g,ease:m,duration:v}=u.accelerate,b=new B0({element:this.current,name:l,keyframes:p,times:g,ease:m,duration:on(v)}),T=h(b);this.valueSubscriptions.set(l,()=>{T(),b.cancel()});return}const o=Zi.has(l);o&&this.onBindTransform&&this.onBindTransform();const c=u.on("change",h=>{this.latestValues[l]=h,this.props.onUpdate&&Rt.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,l,u)),this.valueSubscriptions.set(l,()=>{c(),d&&d(),u.owner&&u.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 Xu){const u=Xu[l];if(!u)continue;const{isEnabled:o,Feature:c}=u;if(!this.features[l]&&c&&o(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):It()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,u){this.latestValues[l]=u}update(l,u){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=u;for(let o=0;o<ly.length;o++){const c=ly[o];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=kS(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 u=this.getClosestVariantNode();if(u)return u.variantChildren&&u.variantChildren.add(l),()=>u.variantChildren.delete(l)}addValue(l,u){const o=this.values.get(l);u!==o&&(o&&this.removeValue(l),this.bindToMotionValue(l,u),this.values.set(l,u),this.latestValues[l]=u.get())}removeValue(l){this.values.delete(l);const u=this.valueSubscriptions.get(l);u&&(u(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,u){if(this.props.values&&this.props.values[l])return this.props.values[l];let o=this.values.get(l);return o===void 0&&u!==void 0&&(o=Xi(u===null?void 0:u,{owner:this}),this.addValue(l,o)),o}readValue(l,u){let o=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return o!=null&&(typeof o=="string"&&(a0(o)||l0(o))?o=parseFloat(o):!QS(o)&&rn.test(u)&&(o=F0(l,u)),this.setBaseTarget(l,fe(o)?o.get():o)),fe(o)?o.get():o}setBaseTarget(l,u){this.baseTarget[l]=u}getBaseTarget(l){const{initial:u}=this.props;let o;if(typeof u=="string"||typeof u=="object"){const d=Af(this.props,u,this.presenceContext?.custom);d&&(o=d[l])}if(u&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!fe(c)?c:this.initialValues[l]!==void 0&&o===void 0?void 0:this.baseTarget[l]}on(l,u){return this.events[l]||(this.events[l]=new rf),this.events[l].add(u)}notify(l,...u){this.events[l]&&this.events[l].notify(...u)}scheduleRenderMicrotask(){Mf.render(this.render)}}class lg extends WS{constructor(){super(...arguments),this.KeyframeResolver=ES}sortInstanceNodePosition(l,u){return l.compareDocumentPosition(u)&2?1:-1}getBaseTargetFromProps(l,u){const o=l.style;return o?o[u]:void 0}removeValueFromRenderState(l,{vars:u,style:o}){delete u[l],delete o[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;fe(l)&&(this.childSubscription=l.on("change",u=>{this.current&&(this.current.textContent=`${u}`)}))}}class Sa{constructor(l){this.isMounted=!1,this.node=l}update(){}}function sg({top:i,left:l,right:u,bottom:o}){return{x:{min:l,max:u},y:{min:i,max:o}}}function $S({x:i,y:l}){return{top:l.min,right:i.max,bottom:l.max,left:i.min}}function IS(i,l){if(!l)return i;const u=l({x:i.left,y:i.top}),o=l({x:i.right,y:i.bottom});return{top:u.y,left:u.x,bottom:o.y,right:o.x}}function Tc(i){return i===void 0||i===1}function $c({scale:i,scaleX:l,scaleY:u}){return!Tc(i)||!Tc(l)||!Tc(u)}function Xa(i){return $c(i)||ug(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function ug(i){return sy(i.x)||sy(i.y)}function sy(i){return i&&i!=="0%"}function Ku(i,l,u){const o=i-u,c=l*o;return u+c}function uy(i,l,u,o,c){return c!==void 0&&(i=Ku(i,c,o)),Ku(i,u,o)+l}function Ic(i,l=0,u=1,o,c){i.min=uy(i.min,l,u,o,c),i.max=uy(i.max,l,u,o,c)}function og(i,{x:l,y:u}){Ic(i.x,l.translate,l.scale,l.originPoint),Ic(i.y,u.translate,u.scale,u.originPoint)}const oy=.999999999999,ry=1.0000000000001;function tT(i,l,u,o=!1){const c=u.length;if(!c)return;l.x=l.y=1;let d,h;for(let p=0;p<c;p++){d=u[p],h=d.projectionDelta;const{visualElement:g}=d.options;g&&g.props.style&&g.props.style.display==="contents"||(o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&qi(i,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),h&&(l.x*=h.x.scale,l.y*=h.y.scale,og(i,h)),o&&Xa(d.latestValues)&&qi(i,d.latestValues))}l.x<ry&&l.x>oy&&(l.x=1),l.y<ry&&l.y>oy&&(l.y=1)}function Yi(i,l){i.min=i.min+l,i.max=i.max+l}function cy(i,l,u,o,c=.5){const d=Lt(i.min,i.max,c);Ic(i,l,u,d,o)}function qi(i,l){cy(i.x,l.x,l.scaleX,l.scale,l.originX),cy(i.y,l.y,l.scaleY,l.scale,l.originY)}function rg(i,l){return sg(IS(i.getBoundingClientRect(),l))}function eT(i,l,u){const o=rg(i,u),{scroll:c}=l;return c&&(Yi(o.x,c.offset.x),Yi(o.y,c.offset.y)),o}const nT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},aT=Qi.length;function iT(i,l,u){let o="",c=!0;for(let d=0;d<aT;d++){const h=Qi[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||u){const m=W0(p,Cf[h]);if(!g){c=!1;const v=nT[h]||h;o+=`${v}(${m}) `}u&&(l[h]=m)}}return o=o.trim(),u?o=u(l,c?"":o):c&&(o="none"),o}function Of(i,l,u){const{style:o,vars:c,transformOrigin:d}=i;let h=!1,p=!1;for(const g in l){const m=l[g];if(Zi.has(g)){h=!0;continue}else if(b0(g)){c[g]=m;continue}else{const v=W0(m,Cf[g]);g.startsWith("origin")?(p=!0,d[g]=v):o[g]=v}}if(l.transform||(h||u?o.transform=iT(l,i.transform,u):o.transform&&(o.transform="none")),p){const{originX:g="50%",originY:m="50%",originZ:v=0}=d;o.transformOrigin=`${g} ${m} ${v}`}}function cg(i,{style:l,vars:u},o,c){const d=i.style;let h;for(h in l)d[h]=l[h];c?.applyProjectionStyles(d,o);for(h in u)d.setProperty(h,u[h])}function fy(i,l){return l.max===l.min?0:i/(l.max-l.min)*100}const Ql={correct:(i,l)=>{if(!l.target)return i;if(typeof i=="string")if(I.test(i))i=parseFloat(i);else return i;const u=fy(i,l.target.x),o=fy(i,l.target.y);return`${u}% ${o}%`}},lT={correct:(i,{treeScale:l,projectionDelta:u})=>{const o=i,c=rn.parse(i);if(c.length>5)return o;const d=rn.createTransformer(i),h=typeof c[0]!="number"?1:0,p=u.x.scale*l.x,g=u.y.scale*l.y;c[0+h]/=p,c[1+h]/=g;const m=Lt(p,g,.5);return typeof c[2+h]=="number"&&(c[2+h]/=m),typeof c[3+h]=="number"&&(c[3+h]/=m),d(c)}},tf={borderRadius:{...Ql,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ql,borderTopRightRadius:Ql,borderBottomLeftRadius:Ql,borderBottomRightRadius:Ql,boxShadow:lT};function fg(i,{layout:l,layoutId:u}){return Zi.has(i)||i.startsWith("origin")||(l||u!==void 0)&&(!!tf[i]||i==="opacity")}function zf(i,l,u){const o=i.style,c=l?.style,d={};if(!o)return d;for(const h in o)(fe(o[h])||c&&fe(c[h])||fg(h,i)||u?.getValue(h)?.liveStyle!==void 0)&&(d[h]=o[h]);return d}function sT(i){return window.getComputedStyle(i)}class uT extends lg{constructor(){super(...arguments),this.type="html",this.renderInstance=cg}readValueFromInstance(l,u){if(Zi.has(u))return this.projection?.isProjecting?Hc(u):Mb(l,u);{const o=sT(l),c=(b0(u)?o.getPropertyValue(u):o[u])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:u}){return rg(l,u)}build(l,u,o){Of(l,u,o.transformTemplate)}scrapeMotionValuesFromProps(l,u,o){return zf(l,u,o)}}const oT={offset:"stroke-dashoffset",array:"stroke-dasharray"},rT={offset:"strokeDashoffset",array:"strokeDasharray"};function cT(i,l,u=1,o=0,c=!0){i.pathLength=1;const d=c?oT:rT;i[d.offset]=`${-o}`,i[d.array]=`${l} ${u}`}const fT=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function hg(i,{attrX:l,attrY:u,attrScale:o,pathLength:c,pathSpacing:d=1,pathOffset:h=0,...p},g,m,v){if(Of(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=v?.transformBox??"fill-box",delete b.transformBox);for(const j of fT)b[j]!==void 0&&(T[j]=b[j],delete b[j]);l!==void 0&&(b.x=l),u!==void 0&&(b.y=u),o!==void 0&&(b.scale=o),c!==void 0&&cT(b,c,d,h,!1)}const dg=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"]),mg=i=>typeof i=="string"&&i.toLowerCase()==="svg";function hT(i,l,u,o){cg(i,l,void 0,o);for(const c in l.attrs)i.setAttribute(dg.has(c)?c:Ef(c),l.attrs[c])}function pg(i,l,u){const o=zf(i,l,u);for(const c in i)if(fe(i[c])||fe(l[c])){const d=Qi.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[d]=i[c]}return o}class dT extends lg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=It}getBaseTargetFromProps(l,u){return l[u]}readValueFromInstance(l,u){if(Zi.has(u)){const o=J0(u);return o&&o.default||0}return u=dg.has(u)?u:Ef(u),l.getAttribute(u)}scrapeMotionValuesFromProps(l,u,o){return pg(l,u,o)}build(l,u,o){hg(l,u,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(l,u,o,c){hT(l,u,o,c)}mount(l){this.isSVGTag=mg(l.tagName),super.mount(l)}}const mT=jf.length;function yg(i){if(!i)return;if(!i.isControllingVariants){const u=i.parent?yg(i.parent)||{}:{};return i.props.initial!==void 0&&(u.initial=i.props.initial),u}const l={};for(let u=0;u<mT;u++){const o=jf[u],c=i.props[o];(ts(c)||c===!1)&&(l[o]=c)}return l}function gg(i,l){if(!Array.isArray(l))return!1;const u=l.length;if(u!==i.length)return!1;for(let o=0;o<u;o++)if(l[o]!==i[o])return!1;return!0}const pT=[...Nf].reverse(),yT=Nf.length;function gT(i){return l=>Promise.all(l.map(({animation:u,options:o})=>dS(i,u,o)))}function vT(i){let l=gT(i),u=hy(),o=!0;const c=g=>(m,v)=>{const b=Gi(i,v,g==="exit"?i.presenceContext?.custom:void 0);if(b){const{transition:T,transitionEnd:j,...R}=b;m={...m,...R,...j}}return m};function d(g){l=g(i)}function h(g){const{props:m}=i,v=yg(i.parent)||{},b=[],T=new Set;let j={},R=1/0;for(let X=0;X<yT;X++){const q=pT[X],K=u[q],G=m[q]!==void 0?m[q]:v[q],J=ts(G),Z=q===g?K.isActive:null;Z===!1&&(R=X);let lt=G===v[q]&&G!==m[q]&&J;if(lt&&o&&i.manuallyAnimateOnMount&&(lt=!1),K.protectedKeys={...j},!K.isActive&&Z===null||!G&&!K.prevProp||Ju(G)||typeof G=="boolean")continue;if(q==="exit"&&K.isActive&&Z!==!0){K.prevResolvedValues&&(j={...j,...K.prevResolvedValues});continue}const k=xT(K.prevProp,G);let F=k||q===g&&K.isActive&&!lt&&J||X>R&&J,st=!1;const bt=Array.isArray(G)?G:[G];let Et=bt.reduce(c(q),{});Z===!1&&(Et={});const{prevResolvedValues:Bt={}}=K,ee={...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 ee){const $=Et[H],ot=Bt[H];if(j.hasOwnProperty(H))continue;let ht=!1;Qc($)&&Qc(ot)?ht=!gg($,ot):ht=$!==ot,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&&(j={...j,...Et}),o&&i.blockInitialAnimation&&(F=!1);const Pt=lt&&k;F&&(!Pt||st)&&b.push(...bt.map(H=>{const $={type:q};if(typeof H=="string"&&o&&!Pt&&i.manuallyAnimateOnMount&&i.parent){const{parent:ot}=i,ht=Gi(ot,H);if(ot.enteringChildren&&ht){const{delayChildren:E}=ht.transition||{};$.delay=H0(ot.enteringChildren,i,E)}}return{animation:H,options:$}}))}if(T.size){const X={};if(typeof m.initial!="boolean"){const q=Gi(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 o&&(m.initial===!1||m.initial===m.animate)&&!i.manuallyAnimateOnMount&&(Y=!1),o=!1,Y?l(b):Promise.resolve()}function p(g,m){if(u[g].isActive===m)return Promise.resolve();i.variantChildren?.forEach(b=>b.animationState?.setActive(g,m)),u[g].isActive=m;const v=h(g);for(const b in u)u[b].protectedKeys={};return v}return{animateChanges:h,setActive:p,setAnimateFunction:d,getState:()=>u,reset:()=>{u=hy()}}}function xT(i,l){return typeof l=="string"?l!==i:Array.isArray(l)?!gg(l,i):!1}function Ga(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hy(){return{animate:Ga(!0),whileInView:Ga(),whileHover:Ga(),whileTap:Ga(),whileDrag:Ga(),whileFocus:Ga(),exit:Ga()}}function dy(i,l){i.min=l.min,i.max=l.max}function sn(i,l){dy(i.x,l.x),dy(i.y,l.y)}function my(i,l){i.translate=l.translate,i.scale=l.scale,i.originPoint=l.originPoint,i.origin=l.origin}const vg=1e-4,bT=1-vg,ST=1+vg,xg=.01,TT=0-xg,AT=0+xg;function ve(i){return i.max-i.min}function ET(i,l,u){return Math.abs(i-l)<=u}function py(i,l,u,o=.5){i.origin=o,i.originPoint=Lt(l.min,l.max,i.origin),i.scale=ve(u)/ve(l),i.translate=Lt(u.min,u.max,i.origin)-i.originPoint,(i.scale>=bT&&i.scale<=ST||isNaN(i.scale))&&(i.scale=1),(i.translate>=TT&&i.translate<=AT||isNaN(i.translate))&&(i.translate=0)}function Fl(i,l,u,o){py(i.x,l.x,u.x,o?o.originX:void 0),py(i.y,l.y,u.y,o?o.originY:void 0)}function yy(i,l,u){i.min=u.min+l.min,i.max=i.min+ve(l)}function CT(i,l,u){yy(i.x,l.x,u.x),yy(i.y,l.y,u.y)}function gy(i,l,u){i.min=l.min-u.min,i.max=i.min+ve(l)}function Qu(i,l,u){gy(i.x,l.x,u.x),gy(i.y,l.y,u.y)}function vy(i,l,u,o,c){return i-=l,i=Ku(i,1/u,o),c!==void 0&&(i=Ku(i,1/c,o)),i}function MT(i,l=0,u=1,o=.5,c,d=i,h=i){if(vn.test(l)&&(l=parseFloat(l),l=Lt(h.min,h.max,l/100)-h.min),typeof l!="number")return;let p=Lt(d.min,d.max,o);i===d&&(p-=l),i.min=vy(i.min,l,u,p,c),i.max=vy(i.max,l,u,p,c)}function xy(i,l,[u,o,c],d,h){MT(i,l[u],l[o],l[c],l.scale,d,h)}const wT=["x","scaleX","originX"],DT=["y","scaleY","originY"];function by(i,l,u,o){xy(i.x,l,wT,u?u.x:void 0,o?o.x:void 0),xy(i.y,l,DT,u?u.y:void 0,o?o.y:void 0)}function Sy(i){return i.translate===0&&i.scale===1}function bg(i){return Sy(i.x)&&Sy(i.y)}function Ty(i,l){return i.min===l.min&&i.max===l.max}function NT(i,l){return Ty(i.x,l.x)&&Ty(i.y,l.y)}function Ay(i,l){return Math.round(i.min)===Math.round(l.min)&&Math.round(i.max)===Math.round(l.max)}function Sg(i,l){return Ay(i.x,l.x)&&Ay(i.y,l.y)}function Ey(i){return ve(i.x)/ve(i.y)}function Cy(i,l){return i.translate===l.translate&&i.scale===l.scale&&i.originPoint===l.originPoint}function gn(i){return[i("x"),i("y")]}function jT(i,l,u){let o="";const c=i.x.translate/l.x,d=i.y.translate/l.y,h=u?.z||0;if((c||d||h)&&(o=`translate3d(${c}px, ${d}px, ${h}px) `),(l.x!==1||l.y!==1)&&(o+=`scale(${1/l.x}, ${1/l.y}) `),u){const{transformPerspective:m,rotate:v,rotateX:b,rotateY:T,skewX:j,skewY:R}=u;m&&(o=`perspective(${m}px) ${o}`),v&&(o+=`rotate(${v}deg) `),b&&(o+=`rotateX(${b}deg) `),T&&(o+=`rotateY(${T}deg) `),j&&(o+=`skewX(${j}deg) `),R&&(o+=`skewY(${R}deg) `)}const p=i.x.scale*l.x,g=i.y.scale*l.y;return(p!==1||g!==1)&&(o+=`scale(${p}, ${g})`),o||"none"}const Tg=["TopLeft","TopRight","BottomLeft","BottomRight"],OT=Tg.length,My=i=>typeof i=="string"?parseFloat(i):i,wy=i=>typeof i=="number"||I.test(i);function zT(i,l,u,o,c,d){c?(i.opacity=Lt(0,u.opacity??1,RT(o)),i.opacityExit=Lt(l.opacity??1,0,VT(o))):d&&(i.opacity=Lt(l.opacity??1,u.opacity??1,o));for(let h=0;h<OT;h++){const p=`border${Tg[h]}Radius`;let g=Dy(l,p),m=Dy(u,p);if(g===void 0&&m===void 0)continue;g||(g=0),m||(m=0),g===0||m===0||wy(g)===wy(m)?(i[p]=Math.max(Lt(My(g),My(m),o),0),(vn.test(m)||vn.test(g))&&(i[p]+="%")):i[p]=m}(l.rotate||u.rotate)&&(i.rotate=Lt(l.rotate||0,u.rotate||0,o))}function Dy(i,l){return i[l]!==void 0?i[l]:i.borderRadius}const RT=Ag(0,.5,m0),VT=Ag(.5,.95,$e);function Ag(i,l,u){return o=>o<i?0:o>l?1:u(Wl(i,l,o))}function _T(i,l,u){const o=fe(i)?i:Xi(i);return o.start(Tf("",o,l,u)),o.animation}function es(i,l,u,o={passive:!0}){return i.addEventListener(l,u,o),()=>i.removeEventListener(l,u)}const UT=(i,l)=>i.depth-l.depth;class BT{constructor(){this.children=[],this.isDirty=!1}add(l){uf(this.children,l),this.isDirty=!0}remove(l){Hu(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(UT),this.isDirty=!1,this.children.forEach(l)}}function LT(i,l){const u=ge.now(),o=({timestamp:c})=>{const d=c-u;d>=l&&(ba(o),i(d-l))};return Rt.setup(o,!0),()=>ba(o)}function Bu(i){return fe(i)?i.get():i}class HT{constructor(){this.members=[]}add(l){uf(this.members,l);for(let u=this.members.length-1;u>=0;u--){const o=this.members[u];if(o===l||o===this.lead||o===this.prevLead)continue;const c=o.instance;c&&c.isConnected===!1&&o.isPresent!==!1&&!o.snapshot&&Hu(this.members,o)}l.scheduleRender()}remove(l){if(Hu(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const u=this.members[this.members.length-1];u&&this.promote(u)}}relegate(l){const u=this.members.findIndex(c=>l===c);if(u===0)return!1;let o;for(let c=u;c>=0;c--){const d=this.members[c],h=d.instance;if(d.isPresent!==!1&&(!h||h.isConnected!==!1)){o=d;break}}return o?(this.promote(o),!0):!1}promote(l,u){const o=this.lead;if(l!==o&&(this.prevLead=o,this.lead=l,l.show(),o)){o.instance&&o.scheduleRender(),l.scheduleRender();const c=o.options.layoutDependency,d=l.options.layoutDependency;if(!(c!==void 0&&d!==void 0&&c===d)){const g=o.instance;g&&g.isConnected===!1&&!o.snapshot||(l.resumeFrom=o,u&&(l.resumeFrom.preserveOpacity=!0),o.snapshot&&(l.snapshot=o.snapshot,l.snapshot.latestValues=o.animationValues||o.latestValues),l.root&&l.root.isUpdating&&(l.isLayoutDirty=!0))}const{crossfade:p}=l.options;p===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(l=>{const{options:u,resumingFrom:o}=l;u.onExitComplete&&u.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(l=>{l.instance&&l.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Lu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ac=["","X","Y","Z"],YT=1e3;let qT=0;function Ec(i,l,u,o){const{latestValues:c}=l;c[i]&&(u[i]=c[i],l.setStaticValue(i,0),o&&(o[i]=0))}function Eg(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:l}=i.options;if(!l)return;const u=K0(l);if(window.MotionHasOptimisedAnimation(u,"transform")){const{layout:c,layoutId:d}=i.options;window.MotionCancelOptimisedAnimation(u,"transform",Rt,!(c||d))}const{parent:o}=i;o&&!o.hasCheckedOptimisedAppear&&Eg(o)}function Cg({attachResizeListener:i,defaultParent:l,measureScroll:u,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(h={},p=l?.()){this.id=qT++,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(KT),this.nodes.forEach(JT),this.nodes.forEach(FT),this.nodes.forEach(QT)},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 BT)}addEventListener(h,p){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new rf),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=Df(h)&&!XS(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 v,b=0;const T=()=>this.root.updateBlockedByResize=!1;Rt.read(()=>{b=window.innerWidth}),i(h,()=>{const j=window.innerWidth;j!==b&&(b=j,this.root.updateBlockedByResize=!0,v&&v(),v=LT(T,250),Lu.hasAnimatedSinceResize&&(Lu.hasAnimatedSinceResize=!1,this.nodes.forEach(Oy)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&m&&(p||g)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:b,hasRelativeLayoutChanged:T,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const R=this.options.transition||m.getDefaultTransition()||t2,{onLayoutAnimationStart:Y,onLayoutAnimationComplete:X}=m.getProps(),q=!this.targetLayout||!Sg(this.targetLayout,j),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={...Sf(R,"layout"),onPlay:Y,onComplete:X};(m.shouldReduceMotion||this.options.layoutRoot)&&(G.delay=0,G.type=!1),this.startAnimation(G),this.setAnimationOrigin(v,K)}else b||Oy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}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(),ba(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(PT),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&&Eg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const b=this.path[v];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(Ny);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(jy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(kT),this.nodes.forEach(GT),this.nodes.forEach(XT)):this.nodes.forEach(jy),this.clearAllSnapshots();const p=ge.now();se.delta=xn(0,1e3/60,p-se.timestamp),se.timestamp=p,se.isProcessing=!0,pc.update.process(se),pc.preRender.process(se),pc.render.process(se),se.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Mf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ZT),this.sharedNodes.forEach(WT)}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&&!ve(this.snapshot.measuredBox.x)&&!ve(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=It(),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=o(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:g,offset:u(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&&!bg(this.projectionDelta),g=this.getTransformTemplate(),m=g?g(this.latestValues,""):void 0,v=m!==this.prevTransformTemplateValue;h&&this.instance&&(p||Xa(this.latestValues)||v)&&(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)),e2(g),{animationId:this.root.animationId,measuredBox:p,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:h}=this.options;if(!h)return It();const p=h.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(n2))){const{scroll:m}=this.root;m&&(Yi(p.x,m.offset.x),Yi(p.y,m.offset.y))}return p}removeElementScroll(h){const p=It();if(sn(p,h),this.scroll?.wasRoot)return p;for(let g=0;g<this.path.length;g++){const m=this.path[g],{scroll:v,options:b}=m;m!==this.root&&v&&b.layoutScroll&&(v.wasRoot&&sn(p,h),Yi(p.x,v.offset.x),Yi(p.y,v.offset.y))}return p}applyTransform(h,p=!1){const g=It();sn(g,h);for(let m=0;m<this.path.length;m++){const v=this.path[m];!p&&v.options.layoutScroll&&v.scroll&&v!==v.root&&qi(g,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),Xa(v.latestValues)&&qi(g,v.latestValues)}return Xa(this.latestValues)&&qi(g,this.latestValues),g}removeTransform(h){const p=It();sn(p,h);for(let g=0;g<this.path.length;g++){const m=this.path[g];if(!m.instance||!Xa(m.latestValues))continue;$c(m.latestValues)&&m.updateSnapshot();const v=It(),b=m.measurePageBox();sn(v,b),by(p,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,v)}return Xa(this.latestValues)&&by(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!==se.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:v,layoutId:b}=this.options;if(!this.layout||!(v||b))return;this.resolvedRelativeTargetAt=se.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=It(),this.targetWithTransforms=It()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),CT(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),og(this.target,this.targetDelta)):sn(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||$c(this.parent.latestValues)||ug(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=It(),this.relativeTargetOrigin=It(),Qu(this.relativeTargetOrigin,p,g),sn(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===se.timestamp&&(g=!1),g)return;const{layout:m,layoutId:v}=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||v))return;sn(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,T=this.treeScale.y;tT(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=It());const{target:j}=h;if(!j){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(my(this.prevProjectionDelta.x,this.projectionDelta.x),my(this.prevProjectionDelta.y,this.projectionDelta.y)),Fl(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==T||!Cy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Cy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",j))}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=Hi(),this.projectionDelta=Hi(),this.projectionDeltaWithTransform=Hi()}setAnimationOrigin(h,p=!1){const g=this.snapshot,m=g?g.latestValues:{},v={...this.latestValues},b=Hi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const T=It(),j=g?g.source:void 0,R=this.layout?this.layout.source:void 0,Y=j!==R,X=this.getStack(),q=!X||X.members.length<=1,K=!!(Y&&!q&&this.options.crossfade===!0&&!this.path.some(IT));this.animationProgress=0;let G;this.mixTargetDelta=J=>{const Z=J/1e3;zy(b.x,h.x,Z),zy(b.y,h.y,Z),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qu(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),$T(this.relativeTarget,this.relativeTargetOrigin,T,Z),G&&NT(this.relativeTarget,G)&&(this.isProjectionDirty=!1),G||(G=It()),sn(G,this.relativeTarget)),Y&&(this.animationValues=v,zT(v,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&&(ba(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Rt.update(()=>{Lu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Xi(0)),this.motionValue.jump(0,!1),this.currentAnimation=_T(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(YT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:p,target:g,layout:m,latestValues:v}=h;if(!(!p||!g||!m)){if(this!==h&&this.layout&&m&&Mg(this.options.animationType,this.layout.layoutBox,m.layoutBox)){g=this.target||It();const b=ve(this.layout.layoutBox.x);g.x.min=h.target.x.min,g.x.max=g.x.min+b;const T=ve(this.layout.layoutBox.y);g.y.min=h.target.y.min,g.y.max=g.y.min+T}sn(p,g),qi(p,v),Fl(this.projectionDeltaWithTransform,this.layoutCorrected,p,v)}}registerSharedNode(h,p){this.sharedNodes.has(h)||this.sharedNodes.set(h,new HT),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&&Ec("z",h,m,this.animationValues);for(let v=0;v<Ac.length;v++)Ec(`rotate${Ac[v]}`,h,m,this.animationValues),Ec(`skew${Ac[v]}`,h,m,this.animationValues);h.render();for(const v in m)h.setStaticValue(v,m[v]),this.animationValues&&(this.animationValues[v]=m[v]);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=Bu(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=Bu(p?.pointerEvents)||""),this.hasProjected&&!Xa(this.latestValues)&&(h.transform=g?g({},""):"none",this.hasProjected=!1);return}h.visibility="";const v=m.animationValues||m.latestValues;this.applyTransformsToTarget();let b=jT(this.projectionDeltaWithTransform,this.treeScale,v);g&&(b=g(v,b)),h.transform=b;const{x:T,y:j}=this.projectionDelta;h.transformOrigin=`${T.origin*100}% ${j.origin*100}% 0`,m.animationValues?h.opacity=m===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:h.opacity=m===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const R in tf){if(v[R]===void 0)continue;const{correct:Y,applyTo:X,isCSSVariable:q}=tf[R],K=b==="none"?v[R]:Y(v[R],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[R]=K:h[R]=K}this.options.layoutId&&(h.pointerEvents=m===this?Bu(p?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>h.currentAnimation?.stop()),this.root.nodes.forEach(Ny),this.root.sharedNodes.clear()}}}function GT(i){i.updateLayout()}function XT(i){const l=i.resumeFrom?.snapshot||i.snapshot;if(i.isLead()&&i.layout&&l&&i.hasListeners("didUpdate")){const{layoutBox:u,measuredBox:o}=i.layout,{animationType:c}=i.options,d=l.source!==i.layout.source;c==="size"?gn(v=>{const b=d?l.measuredBox[v]:l.layoutBox[v],T=ve(b);b.min=u[v].min,b.max=b.min+T}):Mg(c,l.layoutBox,u)&&gn(v=>{const b=d?l.measuredBox[v]:l.layoutBox[v],T=ve(u[v]);b.max=b.min+T,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[v].max=i.relativeTarget[v].min+T)});const h=Hi();Fl(h,u,l.layoutBox);const p=Hi();d?Fl(p,i.applyTransform(o,!0),l.measuredBox):Fl(p,u,l.layoutBox);const g=!bg(h);let m=!1;if(!i.resumeFrom){const v=i.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:b,layout:T}=v;if(b&&T){const j=It();Qu(j,l.layoutBox,b.layoutBox);const R=It();Qu(R,u,T.layoutBox),Sg(j,R)||(m=!0),v.options.layoutRoot&&(i.relativeTarget=R,i.relativeTargetOrigin=j,i.relativeParent=v)}}}i.notifyListeners("didUpdate",{layout:u,snapshot:l,delta:p,layoutDelta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:m})}else if(i.isLead()){const{onExitComplete:u}=i.options;u&&u()}i.options.transition=void 0}function KT(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 QT(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function ZT(i){i.clearSnapshot()}function Ny(i){i.clearMeasurements()}function jy(i){i.isLayoutDirty=!1}function kT(i){const{visualElement:l}=i.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),i.resetTransform()}function Oy(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function JT(i){i.resolveTargetDelta()}function FT(i){i.calcProjection()}function PT(i){i.resetSkewAndRotation()}function WT(i){i.removeLeadSnapshot()}function zy(i,l,u){i.translate=Lt(l.translate,0,u),i.scale=Lt(l.scale,1,u),i.origin=l.origin,i.originPoint=l.originPoint}function Ry(i,l,u,o){i.min=Lt(l.min,u.min,o),i.max=Lt(l.max,u.max,o)}function $T(i,l,u,o){Ry(i.x,l.x,u.x,o),Ry(i.y,l.y,u.y,o)}function IT(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const t2={duration:.45,ease:[.4,0,.1,1]},Vy=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),_y=Vy("applewebkit/")&&!Vy("chrome/")?Math.round:$e;function Uy(i){i.min=_y(i.min),i.max=_y(i.max)}function e2(i){Uy(i.x),Uy(i.y)}function Mg(i,l,u){return i==="position"||i==="preserve-aspect"&&!ET(Ey(l),Ey(u),.2)}function n2(i){return i!==i.root&&i.scroll?.wasRoot}const a2=Cg({attachResizeListener:(i,l)=>es(i,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Cc={current:void 0},wg=Cg({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!Cc.current){const i=new a2({});i.mount(window),i.setOptions({layoutScroll:!0}),Cc.current=i}return Cc.current},resetTransform:(i,l)=>{i.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),Rf=U.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function By(i,l){if(typeof i=="function")return i(l);i!=null&&(i.current=l)}function i2(...i){return l=>{let u=!1;const o=i.map(c=>{const d=By(c,l);return!u&&typeof d=="function"&&(u=!0),d});if(u)return()=>{for(let c=0;c<o.length;c++){const d=o[c];typeof d=="function"?d():By(i[c],null)}}}}function l2(...i){return U.useCallback(i2(...i),i)}class s2 extends U.Component{getSnapshotBeforeUpdate(l){const u=this.props.childRef.current;if(u&&l.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const o=u.offsetParent,c=Pc(o)&&o.offsetWidth||0,d=Pc(o)&&o.offsetHeight||0,h=this.props.sizeRef.current;h.height=u.offsetHeight||0,h.width=u.offsetWidth||0,h.top=u.offsetTop,h.left=u.offsetLeft,h.right=c-h.width-h.left,h.bottom=d-h.height-h.top}return null}componentDidUpdate(){}render(){return this.props.children}}function u2({children:i,isPresent:l,anchorX:u,anchorY:o,root:c,pop:d}){const h=U.useId(),p=U.useRef(null),g=U.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=U.useContext(Rf),v=i.props?.ref??i?.ref,b=l2(p,v);return U.useInsertionEffect(()=>{const{width:T,height:j,top:R,left:Y,right:X,bottom:q}=g.current;if(l||d===!1||!p.current||!T||!j)return;const K=u==="left"?`left: ${Y}`:`right: ${X}`,G=o==="bottom"?`bottom: ${q}`:`top: ${R}`;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: ${j}px !important;
14
- ${K}px !important;
15
- ${G}px !important;
16
- }
17
- `),()=>{Z.contains(J)&&Z.removeChild(J)}},[l]),x.jsx(s2,{isPresent:l,childRef:p,sizeRef:g,pop:d,children:d===!1?i:U.cloneElement(i,{ref:b})})}const o2=({children:i,initial:l,isPresent:u,onExitComplete:o,custom:c,presenceAffectsLayout:d,mode:h,anchorX:p,anchorY:g,root:m})=>{const v=sf(r2),b=U.useId();let T=!0,j=U.useMemo(()=>(T=!1,{id:b,initial:l,isPresent:u,custom:c,onExitComplete:R=>{v.set(R,!0);for(const Y of v.values())if(!Y)return;o&&o()},register:R=>(v.set(R,!1),()=>v.delete(R))}),[u,v,o]);return d&&T&&(j={...j}),U.useMemo(()=>{v.forEach((R,Y)=>v.set(Y,!1))},[u]),U.useEffect(()=>{!u&&!v.size&&o&&o()},[u]),i=x.jsx(u2,{pop:h==="popLayout",isPresent:u,anchorX:p,anchorY:g,root:m,children:i}),x.jsx(ku.Provider,{value:j,children:i})};function r2(){return new Map}function Dg(i=!0){const l=U.useContext(ku);if(l===null)return[!0,null];const{isPresent:u,onExitComplete:o,register:c}=l,d=U.useId();U.useEffect(()=>{if(i)return c(d)},[i]);const h=U.useCallback(()=>i&&o&&o(d),[d,o,i]);return!u&&o?[!1,h]:[!0]}const ju=i=>i.key||"";function Ly(i){const l=[];return U.Children.forEach(i,u=>{U.isValidElement(u)&&l.push(u)}),l}const c2=({children:i,custom:l,initial:u=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:d="sync",propagate:h=!1,anchorX:p="left",anchorY:g="top",root:m})=>{const[v,b]=Dg(h),T=U.useMemo(()=>Ly(i),[i]),j=h&&!v?[]:T.map(ju),R=U.useRef(!0),Y=U.useRef(T),X=sf(()=>new Map),q=U.useRef(new Set),[K,G]=U.useState(T),[J,Z]=U.useState(T);n0(()=>{R.current=!1,Y.current=T;for(let F=0;F<J.length;F++){const st=ju(J[F]);j.includes(st)?(X.delete(st),q.current.delete(st)):X.get(st)!==!0&&X.set(st,!1)}},[J,j.length,j.join("-")]);const lt=[];if(T!==K){let F=[...T];for(let st=0;st<J.length;st++){const bt=J[st],Et=ju(bt);j.includes(Et)||(F.splice(st,0,bt),lt.push(bt))}return d==="wait"&&lt.length&&(F=lt),Z(Ly(F)),G(T),null}const{forceRender:k}=U.useContext(lf);return x.jsx(x.Fragment,{children:J.map(F=>{const st=ju(F),bt=h&&!v?!1:T===J||j.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(ee=>{ee||(Bt=!1)}),Bt&&(k?.(),Z(Y.current),h&&b?.(),o&&o())};return x.jsx(o2,{isPresent:bt,initial:!R.current||u?void 0:!1,custom:l,presenceAffectsLayout:c,mode:d,root:m,onExitComplete:bt?void 0:Et,anchorX:p,anchorY:g,children:F},st)})})},Ng=U.createContext({strict:!1}),Hy={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 Yy=!1;function f2(){if(Yy)return;const i={};for(const l in Hy)i[l]={isEnabled:u=>Hy[l].some(o=>!!u[o])};ig(i),Yy=!0}function jg(){return f2(),PS()}function h2(i){const l=jg();for(const u in i)l[u]={...l[u],...i[u]};ig(l)}const d2=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 Zu(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||d2.has(i)}let Og=i=>!Zu(i);function m2(i){typeof i=="function"&&(Og=l=>l.startsWith("on")?!Zu(l):i(l))}try{m2(require("@emotion/is-prop-valid").default)}catch{}function p2(i,l,u){const o={};for(const c in i)c==="values"&&typeof i.values=="object"||(Og(c)||u===!0&&Zu(c)||!l&&!Zu(c)||i.draggable&&c.startsWith("onDrag"))&&(o[c]=i[c]);return o}const Pu=U.createContext({});function y2(i,l){if(Fu(i)){const{initial:u,animate:o}=i;return{initial:u===!1||ts(u)?u:void 0,animate:ts(o)?o:void 0}}return i.inherit!==!1?l:{}}function g2(i){const{initial:l,animate:u}=y2(i,U.useContext(Pu));return U.useMemo(()=>({initial:l,animate:u}),[qy(l),qy(u)])}function qy(i){return Array.isArray(i)?i.join(" "):i}const Vf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function zg(i,l,u){for(const o in l)!fe(l[o])&&!fg(o,u)&&(i[o]=l[o])}function v2({transformTemplate:i},l){return U.useMemo(()=>{const u=Vf();return Of(u,l,i),Object.assign({},u.vars,u.style)},[l])}function x2(i,l){const u=i.style||{},o={};return zg(o,u,i),Object.assign(o,v2(i,l)),o}function b2(i,l){const u={},o=x2(i,l);return i.drag&&i.dragListener!==!1&&(u.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(u.tabIndex=0),u.style=o,u}const Rg=()=>({...Vf(),attrs:{}});function S2(i,l,u,o){const c=U.useMemo(()=>{const d=Rg();return hg(d,l,mg(o),i.transformTemplate,i.style),{...d.attrs,style:{...d.style}}},[l]);if(i.style){const d={};zg(d,i.style,i),c.style={...d,...c.style}}return c}const T2=["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:!!(T2.indexOf(i)>-1||/[A-Z]/u.test(i))}function A2(i,l,u,{latestValues:o},c,d=!1,h){const g=(h??_f(i)?S2:b2)(l,o,c,i),m=p2(l,typeof i=="string",d),v=i!==U.Fragment?{...m,...g,ref:u}:{},{children:b}=l,T=U.useMemo(()=>fe(b)?b.get():b,[b]);return U.createElement(i,{...v,children:T})}function E2({scrapeMotionValuesFromProps:i,createRenderState:l},u,o,c){return{latestValues:C2(u,o,c,i),renderState:l()}}function C2(i,l,u,o){const c={},d=o(i,{});for(const T in d)c[T]=Bu(d[T]);let{initial:h,animate:p}=i;const g=Fu(i),m=ng(i);l&&m&&!g&&i.inherit!==!1&&(h===void 0&&(h=l.initial),p===void 0&&(p=l.animate));let v=u?u.initial===!1:!1;v=v||h===!1;const b=v?p:h;if(b&&typeof b!="boolean"&&!Ju(b)){const T=Array.isArray(b)?b:[b];for(let j=0;j<T.length;j++){const R=Af(i,T[j]);if(R){const{transitionEnd:Y,transition:X,...q}=R;for(const K in q){let G=q[K];if(Array.isArray(G)){const J=v?G.length-1:0;G=G[J]}G!==null&&(c[K]=G)}for(const K in Y)c[K]=Y[K]}}}return c}const Vg=i=>(l,u)=>{const o=U.useContext(Pu),c=U.useContext(ku),d=()=>E2(i,l,o,c);return u?d():sf(d)},M2=Vg({scrapeMotionValuesFromProps:zf,createRenderState:Vf}),w2=Vg({scrapeMotionValuesFromProps:pg,createRenderState:Rg}),D2=Symbol.for("motionComponentSymbol");function N2(i,l,u){const o=U.useRef(u);U.useInsertionEffect(()=>{o.current=u});const c=U.useRef(null);return U.useCallback(d=>{d&&i.onMount?.(d),l&&(d?l.mount(d):l.unmount());const h=o.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 _g=U.createContext({});function Ui(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function j2(i,l,u,o,c,d){const{visualElement:h}=U.useContext(Pu),p=U.useContext(Ng),g=U.useContext(ku),m=U.useContext(Rf),v=m.reducedMotion,b=m.skipAnimations,T=U.useRef(null),j=U.useRef(!1);o=o||p.renderer,!T.current&&o&&(T.current=o(i,{visualState:l,parent:h,props:u,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:v,skipAnimations:b,isSVG:d}),j.current&&T.current&&(T.current.manuallyAnimateOnMount=!0));const R=T.current,Y=U.useContext(_g);R&&!R.projection&&c&&(R.type==="html"||R.type==="svg")&&O2(T.current,u,c,Y);const X=U.useRef(!1);U.useInsertionEffect(()=>{R&&X.current&&R.update(u,g)});const q=u[X0],K=U.useRef(!!q&&!window.MotionHandoffIsComplete?.(q)&&window.MotionHasOptimisedAnimation?.(q));return n0(()=>{j.current=!0,R&&(X.current=!0,window.MotionIsMounted=!0,R.updateFeatures(),R.scheduleRenderMicrotask(),K.current&&R.animationState&&R.animationState.animateChanges())}),U.useEffect(()=>{R&&(!K.current&&R.animationState&&R.animationState.animateChanges(),K.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(q)}),K.current=!1),R.enteringChildren=void 0)}),R}function O2(i,l,u,o){const{layoutId:c,layout:d,drag:h,dragConstraints:p,layoutScroll:g,layoutRoot:m,layoutCrossfade:v}=l;i.projection=new u(i.latestValues,l["data-framer-portal-id"]?void 0:Ug(i.parent)),i.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!h||p&&Ui(p),visualElement:i,animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,crossfade:v,layoutScroll:g,layoutRoot:m})}function Ug(i){if(i)return i.options.allowProjection!==!1?i.projection:Ug(i.parent)}function Mc(i,{forwardMotionProps:l=!1,type:u}={},o,c){o&&h2(o);const d=u?u==="svg":_f(i),h=d?w2:M2;function p(m,v){let b;const T={...U.useContext(Rf),...m,layoutId:z2(m)},{isStatic:j}=T,R=g2(m),Y=h(m,j);if(!j&&e0){R2();const X=V2(T);b=X.MeasureLayout,R.visualElement=j2(i,Y,T,c,X.ProjectionNode,d)}return x.jsxs(Pu.Provider,{value:R,children:[b&&R.visualElement?x.jsx(b,{visualElement:R.visualElement,...T}):null,A2(i,m,N2(Y,R.visualElement,v),Y,j,l,d)]})}p.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const g=U.forwardRef(p);return g[D2]=i,g}function z2({layoutId:i}){const l=U.useContext(lf).id;return l&&i!==void 0?l+"-"+i:i}function R2(i,l){U.useContext(Ng).strict}function V2(i){const l=jg(),{drag:u,layout:o}=l;if(!u&&!o)return{};const c={...u,...o};return{MeasureLayout:u?.isEnabled(i)||o?.isEnabled(i)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function _2(i,l){if(typeof Proxy>"u")return Mc;const u=new Map,o=(d,h)=>Mc(d,h,i,l),c=(d,h)=>o(d,h);return new Proxy(c,{get:(d,h)=>h==="create"?o:(u.has(h)||u.set(h,Mc(h,void 0,i,l)),u.get(h))})}const U2=(i,l)=>l.isSVG??_f(i)?new dT(l):new uT(l,{allowProjection:i!==U.Fragment});class B2 extends Sa{constructor(l){super(l),l.animationState||(l.animationState=vT(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();Ju(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:u}=this.node.prevProps||{};l!==u&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let L2=0;class H2 extends Sa{constructor(){super(...arguments),this.id=L2++}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:u}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===o)return;const c=this.node.animationState.setActive("exit",!l);u&&!l&&c.then(()=>{u(this.id)})}mount(){const{register:l,onExitComplete:u}=this.node.presenceContext||{};u&&u(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const Y2={animation:{Feature:B2},exit:{Feature:H2}};function ls(i){return{point:{x:i.pageX,y:i.pageY}}}const q2=i=>l=>wf(l)&&i(l,ls(l));function Pl(i,l,u,o){return es(i,l,q2(u),o)}const Bg=({current:i})=>i?i.ownerDocument.defaultView:null,Gy=(i,l)=>Math.abs(i-l);function G2(i,l){const u=Gy(i.x,l.x),o=Gy(i.y,l.y);return Math.sqrt(u**2+o**2)}const Xy=new Set(["auto","scroll"]);class Lg{constructor(l,u,{transformPagePoint:o,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=j=>{this.handleScroll(j.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=Dc(this.lastMoveEventInfo,this.history),R=this.startEvent!==null,Y=G2(j.offset,{x:0,y:0})>=this.distanceThreshold;if(!R&&!Y)return;const{point:X}=j,{timestamp:q}=se;this.history.push({...X,timestamp:q});const{onStart:K,onMove:G}=this.handlers;R||(K&&K(this.lastMoveEvent,j),this.startEvent=this.lastMoveEvent),G&&G(this.lastMoveEvent,j)},this.handlePointerMove=(j,R)=>{this.lastMoveEvent=j,this.lastMoveEventInfo=wc(R,this.transformPagePoint),Rt.update(this.updatePoint,!0)},this.handlePointerUp=(j,R)=>{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=Dc(j.type==="pointercancel"?this.lastMoveEventInfo:wc(R,this.transformPagePoint),this.history);this.startEvent&&Y&&Y(j,K),X&&X(j,K)},!wf(l))return;this.dragSnapToOrigin=d,this.handlers=u,this.transformPagePoint=o,this.distanceThreshold=h,this.contextWindow=c||window;const g=ls(l),m=wc(g,this.transformPagePoint),{point:v}=m,{timestamp:b}=se;this.history=[{...v,timestamp:b}];const{onSessionStart:T}=u;T&&T(l,Dc(m,this.history)),this.removeListeners=ns(Pl(this.contextWindow,"pointermove",this.handlePointerMove),Pl(this.contextWindow,"pointerup",this.handlePointerUp),Pl(this.contextWindow,"pointercancel",this.handlePointerUp)),p&&this.startScrollTracking(p)}startScrollTracking(l){let u=l.parentElement;for(;u;){const o=getComputedStyle(u);(Xy.has(o.overflowX)||Xy.has(o.overflowY))&&this.scrollPositions.set(u,{x:u.scrollLeft,y:u.scrollTop}),u=u.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 u=this.scrollPositions.get(l);if(!u)return;const o=l===window,c=o?{x:window.scrollX,y:window.scrollY}:{x:l.scrollLeft,y:l.scrollTop},d={x:c.x-u.x,y:c.y-u.y};d.x===0&&d.y===0||(o?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(),ba(this.updatePoint)}}function wc(i,l){return l?{point:l(i.point)}:i}function Ky(i,l){return{x:i.x-l.x,y:i.y-l.y}}function Dc({point:i},l){return{point:i,delta:Ky(i,Hg(l)),offset:Ky(i,X2(l)),velocity:K2(l,.1)}}function X2(i){return i[0]}function Hg(i){return i[i.length-1]}function K2(i,l){if(i.length<2)return{x:0,y:0};let u=i.length-1,o=null;const c=Hg(i);for(;u>=0&&(o=i[u],!(c.timestamp-o.timestamp>on(l)));)u--;if(!o)return{x:0,y:0};o===i[0]&&i.length>2&&c.timestamp-o.timestamp>on(l)*2&&(o=i[1]);const d=We(c.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const h={x:(c.x-o.x)/d,y:(c.y-o.y)/d};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function Q2(i,{min:l,max:u},o){return l!==void 0&&i<l?i=o?Lt(l,i,o.min):Math.max(i,l):u!==void 0&&i>u&&(i=o?Lt(u,i,o.max):Math.min(i,u)),i}function Qy(i,l,u){return{min:l!==void 0?i.min+l:void 0,max:u!==void 0?i.max+u-(i.max-i.min):void 0}}function Z2(i,{top:l,left:u,bottom:o,right:c}){return{x:Qy(i.x,u,c),y:Qy(i.y,l,o)}}function Zy(i,l){let u=l.min-i.min,o=l.max-i.max;return l.max-l.min<i.max-i.min&&([u,o]=[o,u]),{min:u,max:o}}function k2(i,l){return{x:Zy(i.x,l.x),y:Zy(i.y,l.y)}}function J2(i,l){let u=.5;const o=ve(i),c=ve(l);return c>o?u=Wl(l.min,l.max-o,i.min):o>c&&(u=Wl(i.min,i.max-c,l.min)),xn(0,1,u)}function F2(i,l){const u={};return l.min!==void 0&&(u.min=l.min-i.min),l.max!==void 0&&(u.max=l.max-i.min),u}const ef=.35;function P2(i=ef){return i===!1?i=0:i===!0&&(i=ef),{x:ky(i,"left","right"),y:ky(i,"top","bottom")}}function ky(i,l,u){return{min:Jy(i,l),max:Jy(i,u)}}function Jy(i,l){return typeof i=="number"?i:i[l]||0}const W2=new WeakMap;class $2{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=It(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:u=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=b=>{u&&this.snapToCursor(ls(b).point),this.stopAnimation()},h=(b,T)=>{const{drag:j,dragPropagation:R,onDragStart:Y}=this.getProps();if(j&&!R&&(this.openDragLock&&this.openDragLock(),this.openDragLock=MS(j),!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),gn(q=>{let K=this.getAxisMotionValue(q).get()||0;if(vn.test(K)){const{projection:G}=this.visualElement;if(G&&G.layout){const J=G.layout.layoutBox[q];J&&(K=ve(J)*(parseFloat(K)/100))}}this.originPoint[q]=K}),Y&&Rt.update(()=>Y(b,T),!1,!0),Zc(this.visualElement,"transform");const{animationState:X}=this.visualElement;X&&X.setActive("whileDrag",!0)},p=(b,T)=>{this.latestPointerEvent=b,this.latestPanInfo=T;const{dragPropagation:j,dragDirectionLock:R,onDirectionLock:Y,onDrag:X}=this.getProps();if(!j&&!this.openDragLock)return;const{offset:q}=T;if(R&&this.currentDirection===null){this.currentDirection=tA(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:v}=this.getProps();this.panSession=new Lg(l,{onSessionStart:d,onStart:h,onMove:p,onSessionEnd:g,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:o,contextWindow:Bg(this.visualElement),element:this.visualElement.current})}stop(l,u){const o=l||this.latestPointerEvent,c=u||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!o)return;const{velocity:h}=c;this.startAnimation(h);const{onDragEnd:p}=this.getProps();p&&Rt.postRender(()=>p(o,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:u}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),u&&u.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(l,u,o){const{drag:c}=this.getProps();if(!o||!Ou(l,c,this.currentDirection))return;const d=this.getAxisMotionValue(l);let h=this.originPoint[l]+o[l];this.constraints&&this.constraints[l]&&(h=Q2(h,this.constraints[l],this.elastic[l])),d.set(h)}resolveConstraints(){const{dragConstraints:l,dragElastic:u}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;l&&Ui(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&o?this.constraints=Z2(o.layoutBox,l):this.constraints=!1,this.elastic=P2(u),c!==this.constraints&&!Ui(l)&&o&&this.constraints&&!this.hasMutatedConstraints&&gn(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=F2(o.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:u}=this.getProps();if(!l||!Ui(l))return!1;const o=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=eT(o,c.root,this.visualElement.getTransformPagePoint());let h=k2(c.layout.layoutBox,d);if(u){const p=u($S(h));this.hasMutatedConstraints=!!p,p&&(h=sg(p))}return h}startAnimation(l){const{drag:u,dragMomentum:o,dragElastic:c,dragTransition:d,dragSnapToOrigin:h,onDragTransitionEnd:p}=this.getProps(),g=this.constraints||{},m=gn(v=>{if(!Ou(v,u,this.currentDirection))return;let b=g&&g[v]||{};h&&(b={min:0,max:0});const T=c?200:1e6,j=c?40:1e7,R={type:"inertia",velocity:o?l[v]:0,bounceStiffness:T,bounceDamping:j,timeConstant:750,restDelta:1,restSpeed:10,...d,...b};return this.startAxisValueAnimation(v,R)});return Promise.all(m).then(p)}startAxisValueAnimation(l,u){const o=this.getAxisMotionValue(l);return Zc(this.visualElement,l),o.start(Tf(l,o,0,u,this.visualElement,!1))}stopAnimation(){gn(l=>this.getAxisMotionValue(l).stop())}getAxisMotionValue(l){const u=`_drag${l.toUpperCase()}`,o=this.visualElement.getProps(),c=o[u];return c||this.visualElement.getValue(l,(o.initial?o.initial[l]:void 0)||0)}snapToCursor(l){gn(u=>{const{drag:o}=this.getProps();if(!Ou(u,o,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(u);if(c&&c.layout){const{min:h,max:p}=c.layout.layoutBox[u],g=d.get()||0;d.set(l[u]-Lt(h,p,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:u}=this.getProps(),{projection:o}=this.visualElement;if(!Ui(u)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};gn(h=>{const p=this.getAxisMotionValue(h);if(p&&this.constraints!==!1){const g=p.get();c[h]=J2({min:g,max:g},this.constraints[h])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),gn(h=>{if(!Ou(h,l,null))return;const p=this.getAxisMotionValue(h),{min:g,max:m}=this.constraints[h];p.set(Lt(g,m,c[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;W2.set(this.visualElement,this);const l=this.visualElement.current,u=Pl(l,"pointerdown",m=>{const{drag:v,dragListener:b=!0}=this.getProps(),T=m.target,j=T!==l&&zS(T);v&&b&&!j&&this.start(m)});let o;const c=()=>{const{dragConstraints:m}=this.getProps();Ui(m)&&m.current&&(this.constraints=this.resolveRefConstraints(),o||(o=I2(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=es(window,"resize",()=>this.scalePositionWithinConstraints()),g=d.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:v})=>{this.isDragging&&v&&(gn(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(),u(),h(),g&&g(),o&&o()}}getProps(){const l=this.visualElement.getProps(),{drag:u=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:h=ef,dragMomentum:p=!0}=l;return{...l,drag:u,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:h,dragMomentum:p}}}function Fy(i){let l=!0;return()=>{if(l){l=!1;return}i()}}function I2(i,l,u){const o=ny(i,Fy(u)),c=ny(l,Fy(u));return()=>{o(),c()}}function Ou(i,l,u){return(l===!0||l===i)&&(u===null||u===i)}function tA(i,l=10){let u=null;return Math.abs(i.y)>l?u="y":Math.abs(i.x)>l&&(u="x"),u}class eA extends Sa{constructor(l){super(l),this.removeGroupControls=$e,this.removeListeners=$e,this.controls=new $2(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$e}update(){const{dragControls:l}=this.node.getProps(),{dragControls:u}=this.node.prevProps||{};l!==u&&(this.removeGroupControls(),l&&(this.removeGroupControls=l.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Nc=i=>(l,u)=>{i&&Rt.update(()=>i(l,u),!1,!0)};class nA extends Sa{constructor(){super(...arguments),this.removePointerDownListener=$e}onPointerDown(l){this.session=new Lg(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Bg(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:u,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:Nc(l),onStart:Nc(u),onMove:Nc(o),onEnd:(d,h)=>{delete this.session,c&&Rt.postRender(()=>c(d,h))}}}mount(){this.removePointerDownListener=Pl(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 jc=!1;class aA extends U.Component{componentDidMount(){const{visualElement:l,layoutGroup:u,switchLayoutGroup:o,layoutId:c}=this.props,{projection:d}=l;d&&(u.group&&u.group.add(d),o&&o.register&&c&&o.register(d),jc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Lu.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:u,visualElement:o,drag:c,isPresent:d}=this.props,{projection:h}=o;return h&&(h.isPresent=d,l.layoutDependency!==u&&h.setOptions({...h.options,layoutDependency:u}),jc=!0,c||l.layoutDependency!==u||u===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(),Mf.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:u,switchLayoutGroup:o}=this.props,{projection:c}=l;jc=!0,c&&(c.scheduleCheckAfterUnmount(),u&&u.group&&u.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function Yg(i){const[l,u]=Dg(),o=U.useContext(lf);return x.jsx(aA,{...i,layoutGroup:o,switchLayoutGroup:U.useContext(_g),isPresent:l,safeToRemove:u})}const iA={pan:{Feature:nA},drag:{Feature:eA,ProjectionNode:wg,MeasureLayout:Yg}};function Py(i,l,u){const{props:o}=i;i.animationState&&o.whileHover&&i.animationState.setActive("whileHover",u==="Start");const c="onHover"+u,d=o[c];d&&Rt.postRender(()=>d(l,ls(l)))}class lA extends Sa{mount(){const{current:l}=this.node;l&&(this.unmount=DS(l,(u,o)=>(Py(this.node,o,"Start"),c=>Py(this.node,c,"End"))))}unmount(){}}class sA extends Sa{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=ns(es(this.node.current,"focus",()=>this.onFocus()),es(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Wy(i,l,u){const{props:o}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&o.whileTap&&i.animationState.setActive("whileTap",u==="Start");const c="onTap"+(u==="End"?"":u),d=o[c];d&&Rt.postRender(()=>d(l,ls(l)))}class uA extends Sa{mount(){const{current:l}=this.node;if(!l)return;const{globalTapTarget:u,propagate:o}=this.node.props;this.unmount=VS(l,(c,d)=>(Wy(this.node,d,"Start"),(h,{success:p})=>Wy(this.node,h,p?"End":"Cancel")),{useGlobalTarget:u,stopPropagation:o?.tap===!1})}unmount(){}}const nf=new WeakMap,Oc=new WeakMap,oA=i=>{const l=nf.get(i.target);l&&l(i)},rA=i=>{i.forEach(oA)};function cA({root:i,...l}){const u=i||document;Oc.has(u)||Oc.set(u,{});const o=Oc.get(u),c=JSON.stringify(l);return o[c]||(o[c]=new IntersectionObserver(rA,{root:i,...l})),o[c]}function fA(i,l,u){const o=cA(l);return nf.set(i,u),o.observe(i),()=>{nf.delete(i),o.unobserve(i)}}const hA={some:0,all:1};class dA extends Sa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:l={}}=this.node.getProps(),{root:u,margin:o,amount:c="some",once:d}=l,h={root:u?u.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:hA[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:v,onViewportLeave:b}=this.node.getProps(),T=m?v:b;T&&T(g)};return fA(this.node.current,h,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:u}=this.node;["amount","margin","root"].some(mA(l,u))&&this.startObserver()}unmount(){}}function mA({viewport:i={}},{viewport:l={}}={}){return u=>i[u]!==l[u]}const pA={inView:{Feature:dA},tap:{Feature:uA},focus:{Feature:sA},hover:{Feature:lA}},yA={layout:{ProjectionNode:wg,MeasureLayout:Yg}},gA={...Y2,...pA,...iA,...yA},$y=_2(gA,U2),vA=[{id:"anthropic",name:"Claude",subtitle:"by Anthropic",icon:"/icons/claude.png"},{id:"openai",name:"OpenAI Codex",subtitle:"ChatGPT Plus / Pro",icon:"/icons/codex.png"}],xA={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)"}]},zc=[{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 bA({models:i,value:l,onChange:u}){const[o,c]=U.useState(!1),d=U.useRef(null);U.useEffect(()=>{if(!o)return;const p=g=>{d.current&&!d.current.contains(g.target)&&c(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[o]);const h=i.find(p=>p.id===l);return x.jsxs("div",{className:"relative",ref:d,children:[x.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:[x.jsx("span",{className:h?"text-white":"text-white/20",children:h?h.label:"Choose a model..."}),x.jsx(dx,{className:`h-4 w-4 text-white/30 transition-transform ${o?"rotate-180":""}`})]}),o&&x.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=>x.jsx("button",{onClick:()=>{u(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 EA({onComplete:i,isInitialSetup:l=!1,onSave:u}){const o=l?7:6,[c,d]=U.useState(0),[h,p]=U.useState(""),[g,m]=U.useState("anthropic"),[v,b]=U.useState(""),[T,j]=U.useState(!1),[R,Y]=U.useState({anthropic:"idle",openai:"idle"}),[X,q]=U.useState(!1),[K,G]=U.useState(""),[J,Z]=U.useState(!1),[lt,k]=U.useState(),[F,st]=U.useState(!1),[bt,Et]=U.useState(!1),[Bt,ee]=U.useState(),[vt,Pt]=U.useState(""),[z,H]=U.useState(null),[$,ot]=U.useState(""),[ht,E]=U.useState({}),[_,Q]=U.useState("at"),[P,ut]=U.useState(!1),[nt,dt]=U.useState(!1),[Gt,jt]=U.useState(""),Ie=U.useRef(null),[he,ki]=U.useState("quick"),[ka,Sn]=U.useState(""),[Ji,Fi]=U.useState(""),[Ue,Zn]=U.useState("relay"),[De,Ja]=U.useState(null),[Be,Pi]=U.useState(!1),[ss,ue]=U.useState(!1),[Wu,us]=U.useState("admin"),[Le,Fa]=U.useState(""),[Wi,os]=U.useState(""),[rs,Pa]=U.useState(!1),[xe,de]=U.useState(!1),[tn,me]=U.useState(!1),[$i,$u]=U.useState(""),[cs,Tn]=U.useState(""),[An,Ta]=U.useState(!1),[cn,Aa]=U.useState(!1),[be,fs]=U.useState(!1),[He,Wa]=U.useState(""),En=U.useRef(!1),Cn=R[g]==="connected";U.useEffect(()=>{fetch("/api/onboard/status").then(D=>D.json()).then(D=>{D.userName&&p(D.userName),D.handle&&(Pt(D.handle.username),Q(D.handle.tier||"at"),Ja({username:D.handle.username,tier:D.handle.tier,url:D.handle.url}),dt(!0),jt(D.handle.url)),D.portalUser&&us(D.portalUser),D.portalConfigured&&de(!0),D.provider&&m(D.provider),D.model&&b(D.model),D.whisperEnabled&&(fs(!0),Wa(D.whisperKey||"")),D.tunnelMode&&ki(D.tunnelMode),D.tunnelDomain&&Sn(D.tunnelDomain),D.tunnelUrl&&Fi(D.tunnelUrl),D.handle||Zn("tunnel"),En.current=!0}).catch(()=>{En.current=!0})},[]),U.useEffect(()=>{g!=="anthropic"||R.anthropic==="connected"||fetch("/api/auth/claude/status").then(D=>D.json()).then(D=>{D.authenticated&&Y(at=>({...at,anthropic:"connected"}))}).catch(()=>{})},[g]),U.useEffect(()=>{g!=="openai"||R.openai==="connected"||fetch("/api/auth/codex/status").then(D=>D.json()).then(D=>{D.authenticated&&Y(at=>({...at,openai:"connected"}))}).catch(()=>{})},[g]),U.useEffect(()=>{if(!bt)return;const D=setInterval(async()=>{try{(await(await fetch("/api/auth/codex/status")).json()).authenticated&&(Et(!1),Y(re=>({...re,openai:"connected"})))}catch{}},2e3);return()=>clearInterval(D)},[bt]),U.useEffect(()=>{if(Ie.current&&clearTimeout(Ie.current),!En.current||he==="off"||De&&nt&&vt===De.username)return;H(null),ot(""),E({}),dt(!1),jt("");const D=vt.trim();if(D){if(D.length<3){H("invalid"),ot("At least 3 characters");return}return H("checking"),Ie.current=setTimeout(async()=>{try{const Ot=await(await fetch(`/api/handle/check/${encodeURIComponent(D)}`)).json();if(!Ot.valid)H("invalid"),ot(Ot.error);else{const re={};for(const ei of Ot.handles)re[ei.tier]=ei.available;E(re),H("ready");const en=zc.find(ei=>re[ei.tier]);en&&!re[_]&&Q(en.tier)}}catch{H(null)}},400),()=>{Ie.current&&clearTimeout(Ie.current)}}},[vt]);const $a=D=>{Pt(D.toLowerCase().replace(/[^a-z0-9-]/g,""))},hs=async()=>{if(!(!vt||z!=="ready"||!ht[_])){ut(!0);try{const at=await(await fetch("/api/handle/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:vt,tier:_})})).json();at.ok?(dt(!0),jt(at.url)):(ot(at.error||"Registration failed"),H("invalid"))}catch{ot("Could not reach server"),H("invalid")}finally{ut(!1)}}},ds=async()=>{if(!(!vt||z!=="ready"||!ht[_])){ue(!0);try{const at=await(await fetch("/api/handle/change",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:vt,tier:_})})).json();at.ok?(dt(!0),jt(at.url),Ja({username:vt,tier:_,url:at.url}),Pi(!1)):(ot(at.error||"Handle change failed"),H("invalid"))}catch{ot("Could not reach server"),H("invalid")}finally{ue(!1)}}},Ii=D=>{g==="openai"&&D!=="openai"&&bt&&(fetch("/api/auth/codex/cancel",{method:"POST"}),Et(!1)),m(D),b(""),q(!1),G(""),k(void 0),Et(!1),ee(void 0)},Ia=D=>{if(window.matchMedia("(display-mode: standalone)").matches||navigator.standalone===!0){const Ot=document.createElement("a");Ot.href=D,Ot.target="_blank",Ot.rel="noopener noreferrer",document.body.appendChild(Ot),Ot.click(),document.body.removeChild(Ot)}else window.open(D,"_blank","noopener,noreferrer")},ms=async()=>{k(void 0);try{const at=await(await fetch("/api/auth/claude/start",{method:"POST"})).json();at.success&&at.authUrl?(Ia(at.authUrl),q(!0)):k(at.error||"Failed to start authentication")}catch(D){k(D.message)}},tl=async()=>{if(K.trim()){Z(!0),k(void 0);try{const at=await(await fetch("/api/auth/claude/exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:K.trim()})})).json();at.success?Y(Ot=>({...Ot,anthropic:"connected"})):k(at.error||"Code exchange failed")}catch(D){k(D.message)}finally{Z(!1)}}},fn=async()=>{try{const D=await navigator.clipboard.readText();D&&G(D.trim())}catch{}},Wt=async()=>{st(!0),k(void 0);try{(await(await fetch("/api/auth/claude/status")).json()).authenticated?Y(Ot=>({...Ot,anthropic:"connected"})):k("No active session found. Please authenticate first.")}catch{}finally{st(!1)}},oe=async()=>{Et(!0),ee(void 0);try{const at=await(await fetch("/api/auth/codex/start",{method:"POST"})).json();at.success&&at.authUrl?Ia(at.authUrl):(Et(!1),ee(at.error||"Failed to start authentication"))}catch(D){Et(!1),ee(D.message)}},kn=()=>{Et(!1),fetch("/api/auth/codex/cancel",{method:"POST"})},ti=Le===Wi,ps=Le.length>=6&&ti,Iu=xe?Le.length===0||An&&ps:ps,Mn=(()=>{switch(c){case 0:return!0;case 1:return h.trim().length>0;case 2:return he==="off"||he==="named"||Ue==="tunnel"?vt.trim().length>=3:nt;case 3:return Iu;case 4:return!!(g&&v&&Cn);case 5:return!0;default:return!1}})(),pe=()=>{Mn&&c<o-1&&d(D=>D+1)},el=()=>{c>0&&d(D=>D-1)},hn=D=>{D.key==="Enter"&&Mn&&pe()},Jn=async()=>{j(!0);const D={userName:h.trim(),agentName:vt.trim()||"Fluxy",provider:g,model:v,apiKey:"",whisperEnabled:be,whisperKey:be?He:"",portalUser:Wu.trim(),portalPass:Le};try{u?await u(D):await fetch("/api/onboard",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D)}),l?(j(!1),d(6)):i()}catch(at){console.error("[OnboardWizard] Onboard failed:",at),j(!1)}},Se="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";return x.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center p-4",children:[x.jsx("div",{className:"absolute inset-0 bg-black/85 backdrop-blur-md"}),x.jsxs($y.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:[x.jsx("div",{className:"flex justify-center gap-2 pt-6",children:Array.from({length:o},(D,at)=>x.jsx("div",{className:`h-1.5 rounded-full transition-all duration-300 ${at===c?"w-7 bg-gradient-brand":at<c?"w-1.5 bg-gradient-brand opacity-60":"w-1.5 bg-white/10"}`},at))}),x.jsx(c2,{mode:"wait",children:x.jsxs($y.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&&x.jsxs("div",{className:"flex flex-col items-center text-center",children:[x.jsx("video",{src:"/fluxy_say_hi.webm",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"h-[180px] mb-4"}),x.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"Welcome to Fluxy"}),x.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."}),x.jsxs("button",{onClick:pe,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",x.jsx(Pe,{className:"h-4 w-4"})]})]}),c===1&&x.jsxs("div",{children:[x.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"What's your name?"}),x.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is how your agent will address you."}),x.jsxs("div",{className:"mt-5 flex items-center gap-3",children:[x.jsx("input",{type:"text",value:h,onChange:D=>p(D.target.value),onKeyDown:hn,placeholder:"Enter your name",autoFocus:!0,className:Se+" flex-1"}),x.jsx("button",{onClick:pe,disabled:!Mn,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:x.jsx(Pe,{className:"h-5 w-5"})})]})]}),c===2&&he==="off"&&x.jsxs("div",{children:[x.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),x.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."}),x.jsx("div",{className:"relative mt-5",children:x.jsx("input",{type:"text",value:vt,onChange:D=>$a(D.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,className:Se+" pr-10 font-mono"})}),x.jsx("div",{className:"mt-4 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:x.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."})}),x.jsxs("button",{onClick:pe,disabled:!Mn,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",x.jsx(Pe,{className:"h-4 w-4"})]})]}),c===2&&he==="named"&&x.jsxs("div",{children:[x.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),x.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."}),x.jsx("div",{className:"relative mt-5",children:x.jsx("input",{type:"text",value:vt,onChange:D=>$a(D.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,className:Se+" pr-10 font-mono"})}),x.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:[x.jsxs("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:["https://",ka]}),x.jsx("button",{onClick:()=>{navigator.clipboard.writeText(`https://${ka}`),Pa(!0),setTimeout(()=>Pa(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:rs?x.jsx(qa,{className:"h-4 w-4 text-emerald-400"}):x.jsx(Vp,{className:"h-4 w-4"})})]})]}),c===2&&he==="quick"&&x.jsxs("div",{children:[x.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),x.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."}),De&&nt&&!Be&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(qa,{className:"h-4 w-4 text-emerald-400"}),x.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Current handle"})]}),x.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:Gt})]}),x.jsxs("div",{className:"flex gap-2 mt-4",children:[x.jsxs("button",{onClick:pe,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",x.jsx(Pe,{className:"h-4 w-4"})]}),x.jsx("button",{onClick:()=>{Pi(!0),dt(!1),Pt(""),H(null),E({}),Zn("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"})]})]}),Be&&!nt&&x.jsxs("div",{className:"mt-4 bg-amber-500/8 border border-amber-500/20 rounded-xl px-4 py-3",children:[x.jsx("p",{className:"text-amber-400/90 text-[13px] font-medium",children:"Changing your handle"}),x.jsxs("p",{className:"text-amber-400/60 text-[12px] mt-1",children:["Your current handle ",x.jsx("span",{className:"font-mono",children:De?.url})," will be released and become available for others."]})]}),(!De||Be||!nt)&&!(De&&nt&&!Be)&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"relative mt-5",children:[x.jsx("input",{type:"text",value:vt,onChange:D=>$a(D.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,disabled:nt,className:Se+" pr-10 font-mono"+(nt?" opacity-50":"")}),z&&vt.length>0&&!nt&&x.jsxs("div",{className:"absolute right-4 top-1/2 -translate-y-1/2",children:[z==="checking"&&x.jsx("div",{className:"w-5 h-5 border-2 border-white/10 border-t-[#04D1FE] rounded-full animate-spin"}),z==="invalid"&&x.jsx("div",{className:"w-6 h-6 rounded-full bg-amber-500/15 flex items-center justify-center",children:x.jsx("svg",{className:"w-3.5 h-3.5 text-amber-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3m0 4h.01"})})})]})]}),z==="invalid"&&$&&x.jsx("p",{className:"text-amber-400 text-[12px] mt-2",children:$}),z==="ready"&&vt.length>0&&!nt&&Ue==="relay"&&x.jsxs("div",{className:"mt-4 text-center",children:[x.jsx("span",{className:"font-mono text-[15px] font-semibold tracking-tight text-white/25",children:zc.find(D=>D.tier===_)?.prefix}),x.jsx("span",{className:"font-mono text-[15px] font-semibold tracking-tight text-gradient",children:vt})]}),z==="ready"&&vt.length>0&&!nt&&x.jsxs("div",{className:"space-y-2 mt-4",children:[zc.map(D=>{const Ot=ht[D.tier]===!1;return x.jsxs("button",{onClick:()=>{Ot||(Q(D.tier),Zn("relay"))},disabled:Ot,className:`w-full flex items-center justify-between px-4 py-3 rounded-xl border transition-all duration-200 text-left ${Ot?"border-white/[0.04] bg-transparent opacity-50 cursor-not-allowed":Ue==="relay"&&_===D.tier?D.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:[x.jsx("span",{className:`font-mono text-[13px] ${Ot?"text-white/40":Ue==="relay"&&_===D.tier?"text-white/80":"text-white/50"}`,children:D.label(vt)}),Ot?x.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"}):x.jsx("span",{className:`text-[11px] font-medium px-2.5 py-0.5 rounded-full border ${D.badgeCls}`,children:D.badge})]},D.tier)}),x.jsxs("button",{onClick:()=>Zn("tunnel"),className:`w-full flex items-center justify-between px-4 py-3 rounded-xl border transition-all duration-200 text-left ${Ue==="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:[x.jsx("span",{className:"text-[13px] text-white/50",children:"No thanks, I'll use the random URL"}),x.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"})]})]}),nt&&x.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(qa,{className:"h-4 w-4 text-emerald-400"}),x.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Handle claimed!"})]}),x.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:Gt})]}),Ue==="relay"&&z==="ready"&&ht[_]&&vt.length>0&&!nt&&x.jsx("button",{onClick:Be?ds:hs,disabled:P||ss,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||ss?x.jsxs(x.Fragment,{children:[x.jsx(_i,{className:"h-4 w-4 animate-spin"}),Be?"Changing...":"Claiming..."]}):x.jsxs(x.Fragment,{children:[Be?"Change Handle":"Claim & Continue",x.jsx(Pe,{className:"h-4 w-4"})]})}),Ue==="tunnel"&&z==="ready"&&vt.length>0&&!nt&&x.jsxs("button",{onClick:pe,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",x.jsx(Pe,{className:"h-4 w-4"})]}),nt&&x.jsxs("button",{onClick:pe,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",x.jsx(Pe,{className:"h-4 w-4"})]}),Be&&!nt&&x.jsx("button",{onClick:()=>{Pi(!1),Pt(De.username),dt(!0),jt(De.url),Q(De.tier),Zn("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&&x.jsxs("div",{children:[x.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Set a password"}),x.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."}),xe&&x.jsx("div",{className:"mt-4 bg-white/[0.02] border border-white/[0.06] rounded-xl px-4 py-2.5",children:x.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."})}),xe&&x.jsxs("div",{className:"mt-5",children:[x.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Current password"}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("input",{type:"password",value:$i,onChange:D=>{$u(D.target.value),Tn(""),Ta(!1)},placeholder:"Enter current password to change it",autoComplete:"current-password",autoFocus:!0,className:Se+" flex-1"}),$i.length>0&&!An&&x.jsx("button",{onClick:async()=>{Aa(!0),Tn("");try{(await(await fetch("/api/portal/verify-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:$i})})).json()).valid?Ta(!0):Tn("Incorrect password")}catch{Tn("Could not verify")}finally{Aa(!1)}},disabled:cn,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:cn?x.jsx(_i,{className:"h-4 w-4 animate-spin"}):"Verify"}),An&&x.jsx("div",{className:"shrink-0 w-10 h-10 flex items-center justify-center",children:x.jsx(qa,{className:"h-4 w-4 text-emerald-400"})})]}),cs&&x.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:cs})]}),(!xe||An)&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:xe?"mt-3":"mt-5",children:[x.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:xe?"New password":"Password"}),x.jsx("input",{type:"password",value:Le,onChange:D=>Fa(D.target.value),placeholder:"••••••••",autoComplete:"new-password",autoFocus:!xe,onKeyDown:hn,className:Se}),Le.length>0&&Le.length<6&&x.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"At least 6 characters"})]}),x.jsxs("div",{className:"mt-3",children:[x.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:xe?"Confirm new password":"Confirm password"}),x.jsx("input",{type:"password",value:Wi,onChange:D=>os(D.target.value),placeholder:"••••••••",autoComplete:"new-password",onKeyDown:hn,className:Se}),Wi.length>0&&!ti&&x.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:"Passwords don't match"})]})]}),x.jsxs("button",{onClick:pe,disabled:!Mn,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",x.jsx(Pe,{className:"h-4 w-4"})]})]}),c===4&&x.jsxs("div",{children:[x.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Choose your AI provider"}),x.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."}),x.jsx("div",{className:"flex gap-2.5 mt-4",children:vA.map(D=>x.jsxs("button",{onClick:()=>Ii(D.id),className:`flex-1 relative rounded-xl border transition-all duration-200 p-3 text-left ${g===D.id?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:[x.jsxs("div",{className:"flex flex-col items-center gap-1.5 py-0.5",children:[D.icon?x.jsx("img",{src:D.icon,alt:D.name,className:"w-8 h-8 rounded-lg"}):x.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"}),x.jsxs("div",{className:"text-center",children:[x.jsx("div",{className:"text-[13px] font-medium text-white",children:D.name}),x.jsx("div",{className:"text-[10px] text-white/30",children:D.subtitle})]})]}),R[D.id]==="connected"?x.jsx("div",{className:"absolute top-2 right-2 w-4 h-4 rounded-full bg-emerald-500/15 flex items-center justify-center",children:x.jsx(qa,{className:"h-2.5 w-2.5 text-emerald-400"})}):g===D.id?x.jsx("div",{className:"absolute top-2 right-2 w-2 h-2 rounded-full bg-gradient-brand"}):null]},D.id))}),x.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),g==="anthropic"&&x.jsxs("div",{className:"space-y-2.5",children:[Cn&&x.jsxs("div",{className:"space-y-2.5",children:[x.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:x.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — Anthropic subscription is active."})}),x.jsxs("button",{onClick:()=>{Y(D=>({...D,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:[x.jsx(mc,{className:"h-3 w-3"}),"Re-authenticate"]})]}),!Cn&&x.jsxs(x.Fragment,{children:[lt&&x.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:x.jsx("p",{className:"text-red-400/90 text-[12px]",children:lt})}),x.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((D,at)=>x.jsxs("div",{className:"flex items-start gap-2",children:[x.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:at+1}),x.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:D})]},at))}),x.jsx("button",{onClick:ms,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?x.jsxs(x.Fragment,{children:[x.jsx(_p,{className:"h-3.5 w-3.5 opacity-60"}),"Open authentication page again"]}):x.jsxs(x.Fragment,{children:["Authenticate with Anthropic",x.jsx(Pe,{className:"h-3.5 w-3.5 opacity-60"})]})}),x.jsxs("div",{className:"relative",children:[x.jsx("input",{type:"text",value:K,onChange:D=>G(D.target.value),onKeyDown:D=>D.key==="Enter"&&tl(),placeholder:"Paste your code here...",className:"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"+" pr-10 font-mono"}),x.jsx("button",{onClick:fn,className:"absolute right-3 top-1/2 -translate-y-1/2 text-white/20 hover:text-white/50 transition-colors",children:x.jsx(Vp,{className:"h-3.5 w-3.5"})})]}),x.jsx("button",{onClick:tl,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?x.jsxs(x.Fragment,{children:[x.jsx(_i,{className:"h-3.5 w-3.5 animate-spin"}),"Verifying..."]}):"Connect"}),x.jsxs("button",{onClick:Wt,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?x.jsx(_i,{className:"h-3 w-3 animate-spin"}):x.jsx(mc,{className:"h-3 w-3"}),F?"Checking...":"I'm already authenticated"]})]})]}),g==="openai"&&x.jsxs("div",{className:"space-y-2.5",children:[Cn&&x.jsxs("div",{className:"space-y-2.5",children:[x.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:x.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — ChatGPT subscription is active."})}),x.jsxs("button",{onClick:()=>{Y(D=>({...D,openai:"idle"})),ee("")},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:[x.jsx(mc,{className:"h-3 w-3"}),"Re-authenticate"]})]}),!Cn&&x.jsxs(x.Fragment,{children:[Bt&&x.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:x.jsx("p",{className:"text-red-400/90 text-[12px]",children:Bt})}),x.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((D,at)=>x.jsxs("div",{className:"flex items-start gap-2",children:[x.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:at+1}),x.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:D})]},at))}),x.jsx("button",{onClick:oe,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?x.jsxs(x.Fragment,{children:[x.jsx(_i,{className:"h-3.5 w-3.5 animate-spin opacity-60"}),"Waiting for sign-in..."]}):x.jsxs(x.Fragment,{children:["Authenticate with ChatGPT",x.jsx(Pe,{className:"h-3.5 w-3.5 opacity-60"})]})}),bt&&x.jsx("button",{onClick:kn,className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors",children:"Cancel"})]})]}),Cn&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),x.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Select a model"}),x.jsx(bA,{models:xA[g]||[],value:v,onChange:b})]}),Cn&&x.jsxs("button",{onClick:pe,disabled:!Mn,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",x.jsx(Pe,{className:"h-4 w-4"})]})]}),c===5&&x.jsxs("div",{children:[x.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[x.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Voice Messages"}),x.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"})]}),x.jsx("p",{className:"text-white/40 text-[13px] mt-1 leading-relaxed",children:"Allow users to send audio messages that are automatically transcribed."}),x.jsx("button",{onClick:()=>fs(D=>!D),className:`w-full mt-5 rounded-xl border transition-all duration-200 p-4 text-left ${be?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:x.jsxs("div",{className:"flex items-center gap-3.5",children:[x.jsx("img",{src:"/icons/openai.svg",alt:"OpenAI",className:"w-10 h-10 rounded-xl bg-white/[0.04] p-1.5"}),x.jsxs("div",{className:"flex-1",children:[x.jsx("div",{className:"text-[14px] font-medium text-white",children:"OpenAI Whisper"}),x.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."})]}),x.jsx("div",{className:`w-10 h-[22px] rounded-full transition-colors duration-200 flex items-center px-0.5 shrink-0 ${be?"bg-gradient-brand":"bg-white/[0.08]"}`,children:x.jsx("div",{className:`w-[18px] h-[18px] rounded-full bg-white shadow-sm transition-transform duration-200 ${be?"translate-x-[18px]":"translate-x-0"}`})})]})}),be&&x.jsxs("div",{className:"mt-3",children:[x.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"OpenAI API Key"}),x.jsx("input",{type:"password",value:He,onChange:D=>Wa(D.target.value.trim()),placeholder:"sk-...",autoComplete:"off",className:Se+" font-mono text-[13px]"}),He.length>0&&!He.startsWith("sk-")&&x.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key should start with sk-"}),He.length>0&&He.startsWith("sk-")&&He.length<20&&x.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key looks too short"}),x.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:[x.jsx(Tx,{className:"h-4 w-4 text-[#AF27E3]/60 mt-0.5 shrink-0"}),x.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."})]})]}),x.jsx("button",{onClick:Jn,disabled:T||be&&(!He.startsWith("sk-")||He.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?x.jsxs(x.Fragment,{children:[x.jsx(_i,{className:"h-4 w-4 animate-spin"}),"Setting up..."]}):x.jsxs(x.Fragment,{children:["Complete Setup",x.jsx(Pe,{className:"h-4 w-4"})]})}),!be&&x.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 D=he==="off",at=D?window.location.origin:he==="named"?`https://${ka}`:Ue==="relay"&&Gt?Gt:Ji||"http://localhost:3000",Ot=at.startsWith("http")?at:`https://${at}`,re=D?"Your agent is running on your private network. Access it from any device on your local network or VPN.":he==="named"?"Access your agent at your custom domain.":Ue==="relay"&&Gt?"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 x.jsxs("div",{className:"flex flex-col items-center text-center",children:[x.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:x.jsx(qa,{className:"h-8 w-8 text-emerald-400"})}),x.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"All Set!"}),x.jsx("p",{className:"text-white/40 text-[13px] mt-2 leading-relaxed max-w-[340px]",children:re}),x.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:[x.jsx("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:at}),x.jsx("button",{onClick:()=>{navigator.clipboard.writeText(Ot),Pa(!0),setTimeout(()=>Pa(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:rs?x.jsx(qa,{className:"h-4 w-4 text-emerald-400"}):x.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[x.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),x.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})})]}),x.jsxs("div",{className:"w-full mt-3",children:[x.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block text-left",children:"Your password"}),x.jsxs("div",{className:"flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[x.jsx("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:tn?Le:"•".repeat(Math.max(Le.length,8))}),x.jsx("button",{onClick:()=>me(en=>!en),className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:tn?x.jsx(gx,{className:"h-4 w-4"}):x.jsx(xx,{className:"h-4 w-4"})})]})]}),x.jsxs("button",{onClick:()=>{D?(window.top||window).location.href="/":(window.top||window).location.href=Ot},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:[D?"Go to dashboard":"Go to your agent",x.jsx(_p,{className:"h-4 w-4"})]}),x.jsx("p",{className:"text-white/20 text-[11px] mt-3 leading-relaxed",children:D?"Access from any device on your network using the URL above.":`You'll be redirected to your ${he==="named"?"custom domain":Ue==="relay"?"custom URL":"tunnel URL"}.`})]})})()]},c)}),c>0&&c<o-1&&!(c===6&&l)&&x.jsx("div",{className:"px-8 pb-5 -mt-3",children:x.jsx("button",{onClick:el,className:"text-white/25 hover:text-white/50 text-[12px] transition-colors",children:"← Back"})})]})]})}export{Pe as A,qa as C,_i as L,Tx as M,EA as O,SA as R,c2 as a,TA as b,bn as c,Iy as g,x as j,$y as m,U as r};