fluxy-bot 0.7.8 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-fluxy/assets/{fluxy-Bcd5tJrt.js → fluxy-BL_LI7ag.js} +10 -10
- package/dist-fluxy/assets/globals-BFIvNq55.css +1 -0
- package/dist-fluxy/assets/globals-C5RAI3N1.js +18 -0
- package/dist-fluxy/assets/{onboard-BSlNrxVH.js → onboard-B5MmiDn8.js} +1 -1
- package/dist-fluxy/fluxy.html +3 -3
- package/dist-fluxy/onboard.html +3 -3
- package/package.json +1 -1
- package/shared/relay.ts +21 -0
- package/supervisor/chat/OnboardWizard.tsx +367 -32
- package/supervisor/chat/fluxy-main.tsx +10 -0
- package/supervisor/index.ts +101 -0
- package/worker/index.ts +46 -1
- package/dist-fluxy/assets/globals-Bs_wR6rP.css +0 -1
- package/dist-fluxy/assets/globals-CMrTFJSE.js +0 -18
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const h of c)if(h.type==="childList")for(const d of h.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function o(c){const h={};return c.integrity&&(h.integrity=c.integrity),c.referrerPolicy&&(h.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?h.credentials="include":c.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(c){if(c.ep)return;c.ep=!0;const h=o(c);fetch(c.href,h)}})();function my(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Dc={exports:{}},Ms={};var Vp;function a1(){if(Vp)return Ms;Vp=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function o(r,c,h){var d=null;if(h!==void 0&&(d=""+h),c.key!==void 0&&(d=""+c.key),"key"in c){h={};for(var y in c)y!=="key"&&(h[y]=c[y])}else h=c;return c=h.ref,{$$typeof:a,type:r,key:d,ref:c!==void 0?c:null,props:h}}return Ms.Fragment=l,Ms.jsx=o,Ms.jsxs=o,Ms}var _p;function i1(){return _p||(_p=1,Dc.exports=a1()),Dc.exports}var m=i1(),Oc={exports:{}},rt={};var Up;function l1(){if(Up)return rt;Up=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),d=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),T=Symbol.iterator;function O(w){return w===null||typeof w!="object"?null:(w=T&&w[T]||w["@@iterator"],typeof w=="function"?w:null)}var V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,Y={};function G(w,B,k){this.props=w,this.context=B,this.refs=Y,this.updater=k||V}G.prototype.isReactComponent={},G.prototype.setState=function(w,B){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,B,"setState")},G.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function Q(){}Q.prototype=G.prototype;function X(w,B,k){this.props=w,this.context=B,this.refs=Y,this.updater=k||V}var P=X.prototype=new Q;P.constructor=X,q(P,G.prototype),P.isPureReactComponent=!0;var F=Array.isArray;function it(){}var et={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function lt(w,B,k){var W=k.ref;return{$$typeof:a,type:w,key:B,ref:W!==void 0?W:null,props:k}}function At(w,B){return lt(w.type,B,w.props)}function jt(w){return typeof w=="object"&&w!==null&&w.$$typeof===a}function Mt(w){var B={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(k){return B[k]})}var Ae=/\/+/g;function ee(w,B){return typeof w=="object"&&w!==null&&w.key!=null?Mt(""+w.key):B.toString(36)}function mt(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(it,it):(w.status="pending",w.then(function(B){w.status==="pending"&&(w.status="fulfilled",w.value=B)},function(B){w.status==="pending"&&(w.status="rejected",w.reason=B)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function R(w,B,k,W,ot){var dt=typeof w;(dt==="undefined"||dt==="boolean")&&(w=null);var st=!1;if(w===null)st=!0;else switch(dt){case"bigint":case"string":case"number":st=!0;break;case"object":switch(w.$$typeof){case a:case l:st=!0;break;case x:return st=w._init,R(st(w._payload),B,k,W,ot)}}if(st)return ot=ot(w),st=W===""?"."+ee(w,0):W,F(ot)?(k="",st!=null&&(k=st.replace(Ae,"$&/")+"/"),R(ot,B,k,"",function(dn){return dn})):ot!=null&&(jt(ot)&&(ot=At(ot,k+(ot.key==null||w&&w.key===ot.key?"":(""+ot.key).replace(Ae,"$&/")+"/")+st)),B.push(ot)),1;st=0;var Ht=W===""?".":W+":";if(F(w))for(var zt=0;zt<w.length;zt++)W=w[zt],dt=Ht+ee(W,zt),st+=R(W,B,k,dt,ot);else if(zt=O(w),typeof zt=="function")for(w=zt.call(w),zt=0;!(W=w.next()).done;)W=W.value,dt=Ht+ee(W,zt++),st+=R(W,B,k,dt,ot);else if(dt==="object"){if(typeof w.then=="function")return R(mt(w),B,k,W,ot);throw B=String(w),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return st}function H(w,B,k){if(w==null)return w;var W=[],ot=0;return R(w,W,"","",function(dt){return B.call(k,dt,ot++)}),W}function Z(w){if(w._status===-1){var B=w._result;B=B(),B.then(function(k){(w._status===0||w._status===-1)&&(w._status=1,w._result=k)},function(k){(w._status===0||w._status===-1)&&(w._status=2,w._result=k)}),w._status===-1&&(w._status=0,w._result=B)}if(w._status===1)return w._result.default;throw w._result}var ht=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},ut={map:H,forEach:function(w,B,k){H(w,function(){B.apply(this,arguments)},k)},count:function(w){var B=0;return H(w,function(){B++}),B},toArray:function(w){return H(w,function(B){return B})||[]},only:function(w){if(!jt(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return rt.Activity=b,rt.Children=ut,rt.Component=G,rt.Fragment=o,rt.Profiler=c,rt.PureComponent=X,rt.StrictMode=r,rt.Suspense=v,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=et,rt.__COMPILER_RUNTIME={__proto__:null,c:function(w){return et.H.useMemoCache(w)}},rt.cache=function(w){return function(){return w.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(w,B,k){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var W=q({},w.props),ot=w.key;if(B!=null)for(dt in B.key!==void 0&&(ot=""+B.key),B)!J.call(B,dt)||dt==="key"||dt==="__self"||dt==="__source"||dt==="ref"&&B.ref===void 0||(W[dt]=B[dt]);var dt=arguments.length-2;if(dt===1)W.children=k;else if(1<dt){for(var st=Array(dt),Ht=0;Ht<dt;Ht++)st[Ht]=arguments[Ht+2];W.children=st}return lt(w.type,ot,W)},rt.createContext=function(w){return w={$$typeof:d,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:h,_context:w},w},rt.createElement=function(w,B,k){var W,ot={},dt=null;if(B!=null)for(W in B.key!==void 0&&(dt=""+B.key),B)J.call(B,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ot[W]=B[W]);var st=arguments.length-2;if(st===1)ot.children=k;else if(1<st){for(var Ht=Array(st),zt=0;zt<st;zt++)Ht[zt]=arguments[zt+2];ot.children=Ht}if(w&&w.defaultProps)for(W in st=w.defaultProps,st)ot[W]===void 0&&(ot[W]=st[W]);return lt(w,dt,ot)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(w){return{$$typeof:y,render:w}},rt.isValidElement=jt,rt.lazy=function(w){return{$$typeof:x,_payload:{_status:-1,_result:w},_init:Z}},rt.memo=function(w,B){return{$$typeof:p,type:w,compare:B===void 0?null:B}},rt.startTransition=function(w){var B=et.T,k={};et.T=k;try{var W=w(),ot=et.S;ot!==null&&ot(k,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(it,ht)}catch(dt){ht(dt)}finally{B!==null&&k.types!==null&&(B.types=k.types),et.T=B}},rt.unstable_useCacheRefresh=function(){return et.H.useCacheRefresh()},rt.use=function(w){return et.H.use(w)},rt.useActionState=function(w,B,k){return et.H.useActionState(w,B,k)},rt.useCallback=function(w,B){return et.H.useCallback(w,B)},rt.useContext=function(w){return et.H.useContext(w)},rt.useDebugValue=function(){},rt.useDeferredValue=function(w,B){return et.H.useDeferredValue(w,B)},rt.useEffect=function(w,B){return et.H.useEffect(w,B)},rt.useEffectEvent=function(w){return et.H.useEffectEvent(w)},rt.useId=function(){return et.H.useId()},rt.useImperativeHandle=function(w,B,k){return et.H.useImperativeHandle(w,B,k)},rt.useInsertionEffect=function(w,B){return et.H.useInsertionEffect(w,B)},rt.useLayoutEffect=function(w,B){return et.H.useLayoutEffect(w,B)},rt.useMemo=function(w,B){return et.H.useMemo(w,B)},rt.useOptimistic=function(w,B){return et.H.useOptimistic(w,B)},rt.useReducer=function(w,B,k){return et.H.useReducer(w,B,k)},rt.useRef=function(w){return et.H.useRef(w)},rt.useState=function(w){return et.H.useState(w)},rt.useSyncExternalStore=function(w,B,k){return et.H.useSyncExternalStore(w,B,k)},rt.useTransition=function(){return et.H.useTransition()},rt.version="19.2.4",rt}var Bp;function Mf(){return Bp||(Bp=1,Oc.exports=l1()),Oc.exports}var D=Mf();const GA=my(D);var zc={exports:{}},Ns={},Rc={exports:{}},Vc={};var Lp;function s1(){return Lp||(Lp=1,(function(a){function l(R,H){var Z=R.length;R.push(H);t:for(;0<Z;){var ht=Z-1>>>1,ut=R[ht];if(0<c(ut,H))R[ht]=H,R[Z]=ut,Z=ht;else break t}}function o(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var H=R[0],Z=R.pop();if(Z!==H){R[0]=Z;t:for(var ht=0,ut=R.length,w=ut>>>1;ht<w;){var B=2*(ht+1)-1,k=R[B],W=B+1,ot=R[W];if(0>c(k,Z))W<ut&&0>c(ot,k)?(R[ht]=ot,R[W]=Z,ht=W):(R[ht]=k,R[B]=Z,ht=B);else if(W<ut&&0>c(ot,Z))R[ht]=ot,R[W]=Z,ht=W;else break t}}return H}function c(R,H){var Z=R.sortIndex-H.sortIndex;return Z!==0?Z:R.id-H.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;a.unstable_now=function(){return h.now()}}else{var d=Date,y=d.now();a.unstable_now=function(){return d.now()-y}}var v=[],p=[],x=1,b=null,T=3,O=!1,V=!1,q=!1,Y=!1,G=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function P(R){for(var H=o(p);H!==null;){if(H.callback===null)r(p);else if(H.startTime<=R)r(p),H.sortIndex=H.expirationTime,l(v,H);else break;H=o(p)}}function F(R){if(q=!1,P(R),!V)if(o(v)!==null)V=!0,it||(it=!0,Mt());else{var H=o(p);H!==null&&mt(F,H.startTime-R)}}var it=!1,et=-1,J=5,lt=-1;function At(){return Y?!0:!(a.unstable_now()-lt<J)}function jt(){if(Y=!1,it){var R=a.unstable_now();lt=R;var H=!0;try{t:{V=!1,q&&(q=!1,Q(et),et=-1),O=!0;var Z=T;try{e:{for(P(R),b=o(v);b!==null&&!(b.expirationTime>R&&At());){var ht=b.callback;if(typeof ht=="function"){b.callback=null,T=b.priorityLevel;var ut=ht(b.expirationTime<=R);if(R=a.unstable_now(),typeof ut=="function"){b.callback=ut,P(R),H=!0;break e}b===o(v)&&r(v),P(R)}else r(v);b=o(v)}if(b!==null)H=!0;else{var w=o(p);w!==null&&mt(F,w.startTime-R),H=!1}}break t}finally{b=null,T=Z,O=!1}H=void 0}}finally{H?Mt():it=!1}}}var Mt;if(typeof X=="function")Mt=function(){X(jt)};else if(typeof MessageChannel<"u"){var Ae=new MessageChannel,ee=Ae.port2;Ae.port1.onmessage=jt,Mt=function(){ee.postMessage(null)}}else Mt=function(){G(jt,0)};function mt(R,H){et=G(function(){R(a.unstable_now())},H)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(R){R.callback=null},a.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<R?Math.floor(1e3/R):5},a.unstable_getCurrentPriorityLevel=function(){return T},a.unstable_next=function(R){switch(T){case 1:case 2:case 3:var H=3;break;default:H=T}var Z=T;T=H;try{return R()}finally{T=Z}},a.unstable_requestPaint=function(){Y=!0},a.unstable_runWithPriority=function(R,H){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var Z=T;T=R;try{return H()}finally{T=Z}},a.unstable_scheduleCallback=function(R,H,Z){var ht=a.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?ht+Z:ht):Z=ht,R){case 1:var ut=-1;break;case 2:ut=250;break;case 5:ut=1073741823;break;case 4:ut=1e4;break;default:ut=5e3}return ut=Z+ut,R={id:x++,callback:H,priorityLevel:R,startTime:Z,expirationTime:ut,sortIndex:-1},Z>ht?(R.sortIndex=Z,l(p,R),o(v)===null&&R===o(p)&&(q?(Q(et),et=-1):q=!0,mt(F,Z-ht))):(R.sortIndex=ut,l(v,R),V||O||(V=!0,it||(it=!0,Mt()))),R},a.unstable_shouldYield=At,a.unstable_wrapCallback=function(R){var H=T;return function(){var Z=T;T=H;try{return R.apply(this,arguments)}finally{T=Z}}}})(Vc)),Vc}var Hp;function o1(){return Hp||(Hp=1,Rc.exports=s1()),Rc.exports}var _c={exports:{}},ye={};var Yp;function r1(){if(Yp)return ye;Yp=1;var a=Mf();function l(v){var p="https://react.dev/errors/"+v;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+v+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(l(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function h(v,p,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:v,containerInfo:p,implementation:x}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ye.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ye.createPortal=function(v,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return h(v,p,null,x)},ye.flushSync=function(v){var p=d.T,x=r.p;try{if(d.T=null,r.p=2,v)return v()}finally{d.T=p,r.p=x,r.d.f()}},ye.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(v,p))},ye.prefetchDNS=function(v){typeof v=="string"&&r.d.D(v)},ye.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var x=p.as,b=y(x,p.crossOrigin),T=typeof p.integrity=="string"?p.integrity:void 0,O=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?r.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:T,fetchPriority:O}):x==="script"&&r.d.X(v,{crossOrigin:b,integrity:T,fetchPriority:O,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ye.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=y(p.as,p.crossOrigin);r.d.M(v,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(v)},ye.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,b=y(x,p.crossOrigin);r.d.L(v,x,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},ye.preloadModule=function(v,p){if(typeof v=="string")if(p){var x=y(p.as,p.crossOrigin);r.d.m(v,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(v)},ye.requestFormReset=function(v){r.d.r(v)},ye.unstable_batchedUpdates=function(v,p){return v(p)},ye.useFormState=function(v,p,x){return d.H.useFormState(v,p,x)},ye.useFormStatus=function(){return d.H.useHostTransitionStatus()},ye.version="19.2.4",ye}var qp;function u1(){if(qp)return _c.exports;qp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),_c.exports=r1(),_c.exports}var Gp;function c1(){if(Gp)return Ns;Gp=1;var a=o1(),l=Mf(),o=u1();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function d(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function v(t){if(h(t)!==t)throw Error(r(188))}function p(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(r(188));return e!==t?null:t}for(var n=t,i=e;;){var s=n.return;if(s===null)break;var u=s.alternate;if(u===null){if(i=s.return,i!==null){n=i;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===n)return v(s),t;if(u===i)return v(s),e;u=u.sibling}throw Error(r(188))}if(n.return!==i.return)n=s,i=u;else{for(var f=!1,g=s.child;g;){if(g===n){f=!0,n=s,i=u;break}if(g===i){f=!0,i=s,n=u;break}g=g.sibling}if(!f){for(g=u.child;g;){if(g===n){f=!0,n=u,i=s;break}if(g===i){f=!0,i=u,n=s;break}g=g.sibling}if(!f)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?t:e}function x(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=x(t),e!==null)return e;t=t.sibling}return null}var b=Object.assign,T=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),X=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),it=Symbol.for("react.suspense_list"),et=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),lt=Symbol.for("react.activity"),At=Symbol.for("react.memo_cache_sentinel"),jt=Symbol.iterator;function Mt(t){return t===null||typeof t!="object"?null:(t=jt&&t[jt]||t["@@iterator"],typeof t=="function"?t:null)}var Ae=Symbol.for("react.client.reference");function ee(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ae?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case q:return"Fragment";case G:return"Profiler";case Y:return"StrictMode";case F:return"Suspense";case it:return"SuspenseList";case lt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case V:return"Portal";case X:return t.displayName||"Context";case Q:return(t._context.displayName||"Context")+".Consumer";case P:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case et:return e=t.displayName||null,e!==null?e:ee(t.type)||"Memo";case J:e=t._payload,t=t._init;try{return ee(t(e))}catch{}}return null}var mt=Array.isArray,R=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},ht=[],ut=-1;function w(t){return{current:t}}function B(t){0>ut||(t.current=ht[ut],ht[ut]=null,ut--)}function k(t,e){ut++,ht[ut]=t.current,t.current=e}var W=w(null),ot=w(null),dt=w(null),st=w(null);function Ht(t,e){switch(k(dt,e),k(ot,t),k(W,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?ap(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=ap(e),t=ip(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}B(W),k(W,t)}function zt(){B(W),B(ot),B(dt)}function dn(t){t.memoizedState!==null&&k(st,t);var e=W.current,n=ip(e,t.type);e!==n&&(k(ot,t),k(W,n))}function wn(t){ot.current===t&&(B(W),B(ot)),st.current===t&&(B(st),ws._currentValue=Z)}var de,gi;function hn(t){if(de===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);de=e&&e[1]||"",gi=-1<n.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+de+t+gi}var xl=!1;function bl(t,e){if(!t||xl)return"";xl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(z){var N=z}Reflect.construct(t,[],L)}else{try{L.call()}catch(z){N=z}t.call(L.prototype)}}else{try{throw Error()}catch(z){N=z}(L=t())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(z){if(z&&N&&typeof z.stack=="string")return[z.stack,N.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=i.DetermineComponentFrameRoot(),f=u[0],g=u[1];if(f&&g){var S=f.split(`
|
|
4
|
+
`),M=g.split(`
|
|
5
|
+
`);for(s=i=0;i<S.length&&!S[i].includes("DetermineComponentFrameRoot");)i++;for(;s<M.length&&!M[s].includes("DetermineComponentFrameRoot");)s++;if(i===S.length||s===M.length)for(i=S.length-1,s=M.length-1;1<=i&&0<=s&&S[i]!==M[s];)s--;for(;1<=i&&0<=s;i--,s--)if(S[i]!==M[s]){if(i!==1||s!==1)do if(i--,s--,0>s||S[i]!==M[s]){var _=`
|
|
6
|
+
`+S[i].replace(" at new "," at ");return t.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",t.displayName)),_}while(1<=i&&0<=s);break}}}finally{xl=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?hn(n):""}function Or(t,e){switch(t.tag){case 26:case 27:case 5:return hn(t.type);case 16:return hn("Lazy");case 13:return t.child!==e&&e!==null?hn("Suspense Fallback"):hn("Suspense");case 19:return hn("SuspenseList");case 0:case 15:return bl(t.type,!1);case 11:return bl(t.type.render,!1);case 1:return bl(t.type,!0);case 31:return hn("Activity");default:return""}}function ze(t){try{var e="",n=null;do e+=Or(t,n),n=t,t=t.return;while(t);return e}catch(i){return`
|
|
7
|
+
Error generating stack: `+i.message+`
|
|
8
|
+
`+i.stack}}var Hn=Object.prototype.hasOwnProperty,ve=a.unstable_scheduleCallback,vi=a.unstable_cancelCallback,En=a.unstable_shouldYield,Sl=a.unstable_requestPaint,he=a.unstable_now,Qs=a.unstable_getCurrentPriorityLevel,Re=a.unstable_ImmediatePriority,Zs=a.unstable_UserBlockingPriority,ua=a.unstable_NormalPriority,Tl=a.unstable_LowPriority,xi=a.unstable_IdlePriority,Al=a.log,wl=a.unstable_setDisableYieldValue,ca=null,me=null;function Ve(t){if(typeof Al=="function"&&wl(t),me&&typeof me.setStrictMode=="function")try{me.setStrictMode(ca,t)}catch{}}var ie=Math.clz32?Math.clz32:Js,El=Math.log,Cl=Math.LN2;function Js(t){return t>>>=0,t===0?32:31-(El(t)/Cl|0)|0}var Xa=256,Yn=262144,bi=4194304;function qn(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 ne(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var s=0,u=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var g=i&134217727;return g!==0?(i=g&~u,i!==0?s=qn(i):(f&=g,f!==0?s=qn(f):n||(n=g&~t,n!==0&&(s=qn(n))))):(g=i&~u,g!==0?s=qn(g):f!==0?s=qn(f):n||(n=i&~t,n!==0&&(s=qn(n)))),s===0?0:e!==0&&e!==s&&(e&u)===0&&(u=s&-s,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:s}function fa(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Si(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 jl(){var t=bi;return bi<<=1,(bi&62914560)===0&&(bi=4194304),t}function Ti(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Cn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function _e(t,e,n,i,s,u){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var g=t.entanglements,S=t.expirationTimes,M=t.hiddenUpdates;for(n=f&~n;0<n;){var _=31-ie(n),L=1<<_;g[_]=0,S[_]=-1;var N=M[_];if(N!==null)for(M[_]=null,_=0;_<N.length;_++){var z=N[_];z!==null&&(z.lane&=-536870913)}n&=~L}i!==0&&Fs(t,i,0),u!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=u&~(f&~e))}function Fs(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-ie(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&261930}function Ml(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-ie(n),s=1<<i;s&e|t[i]&e&&(t[i]|=e),n&=~s}}function Ps(t,e){var n=e&-e;return n=(n&42)!==0?1:jn(n),(n&(t.suspendedLanes|e))!==0?0:n}function jn(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 Nl(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Dl(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:jp(t.type))}function ka(t,e){var n=H.p;try{return H.p=t,e()}finally{H.p=n}}var Ue=Math.random().toString(36).slice(2),Qt="__reactFiber$"+Ue,le="__reactProps$"+Ue,Gn="__reactContainer$"+Ue,Fe="__reactEvents$"+Ue,Ws="__reactListeners$"+Ue,mn="__reactHandles$"+Ue,Ol="__reactResources$"+Ue,we="__reactMarker$"+Ue;function Pe(t){delete t[Qt],delete t[le],delete t[Fe],delete t[Ws],delete t[mn]}function Mn(t){var e=t[Qt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Gn]||n[Qt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=fp(t);t!==null;){if(n=t[Qt])return n;t=fp(t)}return e}t=n,n=t.parentNode}return null}function We(t){if(t=t[Qt]||t[Gn]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Nn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function $e(t){var e=t[Ol];return e||(e=t[Ol]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Xt(t){t[we]=!0}var da=new Set,Ka={};function pn(t,e){Ie(t,e),Ie(t+"Capture",e)}function Ie(t,e){for(Ka[t]=e,t=0;t<e.length;t++)da.add(e[t])}var zl=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]*$"),Rl={},Vl={};function Ai(t){return Hn.call(Vl,t)?!0:Hn.call(Rl,t)?!1:zl.test(t)?Vl[t]=!0:(Rl[t]=!0,!1)}function Be(t,e,n){if(Ai(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var i=e.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Qa(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 Le(t,e,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+i)}}function pe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function _l(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function zr(t,e,n){var i=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var s=i.get,u=i.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(f){n=""+f,u.call(this,f)}}),Object.defineProperty(t,e,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Za(t){if(!t._valueTracker){var e=_l(t)?"checked":"value";t._valueTracker=zr(t,e,""+t[e])}}function Ja(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=_l(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function ha(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 $s=/[\n"\\]/g;function se(t){return t.replace($s,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ul(t,e,n,i,s,u,f,g){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+pe(e)):t.value!==""+pe(e)&&(t.value=""+pe(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Dn(t,f,pe(e)):n!=null?Dn(t,f,pe(n)):i!=null&&t.removeAttribute("value"),s==null&&u!=null&&(t.defaultChecked=!!u),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.name=""+pe(g):t.removeAttribute("name")}function Is(t,e,n,i,s,u,f,g){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Za(t);return}n=n!=null?""+pe(n):"",e=e!=null?""+pe(e):n,g||e===t.value||(t.value=e),t.defaultValue=e}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=g?t.checked:!!i,t.defaultChecked=!!i,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Za(t)}function Dn(t,e,n){e==="number"&&ha(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function He(t,e,n,i){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&i&&(t[n].defaultSelected=!0)}else{for(n=""+pe(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,i&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function Bl(t,e,n){if(e!=null&&(e=""+pe(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+pe(n):""}function Ll(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(r(92));if(mt(i)){if(1<i.length)throw Error(r(93));i=i[0]}n=i}n==null&&(n=""),e=n}n=pe(e),t.defaultValue=n,i=t.textContent,i===n&&i!==""&&i!==null&&(t.value=i),Za(t)}function On(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Xn=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 wi(t,e,n){var i=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":i?t.setProperty(e,n):typeof n!="number"||n===0||Xn.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function to(t,e,n){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||e!=null&&e.hasOwnProperty(i)||(i.indexOf("--")===0?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="");for(var s in e)i=e[s],e.hasOwnProperty(s)&&n[s]!==i&&wi(t,s,i)}else for(var u in e)e.hasOwnProperty(u)&&wi(t,u,e[u])}function Hl(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 Yl=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"]]),ql=/^[\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 Ei(t){return ql.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function yn(){}var Gl=null;function Ci(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ma=null,kn=null;function eo(t){var e=We(t);if(e&&(t=e.stateNode)){var n=t[le]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ul(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="'+se(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var s=i[le]||null;if(!s)throw Error(r(90));Ul(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(e=0;e<n.length;e++)i=n[e],i.form===t.form&&Ja(i)}break t;case"textarea":Bl(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&He(t,!!n.multiple,e,!1)}}}var Xl=!1;function no(t,e,n){if(Xl)return t(e,n);Xl=!0;try{var i=t(e);return i}finally{if(Xl=!1,(ma!==null||kn!==null)&&(Yo(),ma&&(e=ma,t=kn,kn=ma=null,eo(e),t)))for(e=0;e<t.length;e++)eo(t[e])}}function Fa(t,e){var n=t.stateNode;if(n===null)return null;var i=n[le]||null;if(i===null)return null;n=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(r(231,e,typeof n));return n}var tn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ji=!1;if(tn)try{var Pa={};Object.defineProperty(Pa,"passive",{get:function(){ji=!0}}),window.addEventListener("test",Pa,Pa),window.removeEventListener("test",Pa,Pa)}catch{ji=!1}var xe=null,Ye=null,Mi=null;function Ni(){if(Mi)return Mi;var t,e=Ye,n=e.length,i,s="value"in xe?xe.value:xe.textContent,u=s.length;for(t=0;t<n&&e[t]===s[t];t++);var f=n-t;for(i=1;i<=f&&e[n-i]===s[u-i];i++);return Mi=s.slice(t,1<i?1-i:void 0)}function Di(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 Ee(){return!0}function Oi(){return!1}function C(t){function e(n,i,s,u,f){this._reactName=n,this._targetInst=s,this.type=i,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var g in t)t.hasOwnProperty(g)&&(n=t[g],this[g]=n?n(u):u[g]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Ee:Oi,this.isPropagationStopped=Oi,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=Ee)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ee)},persist:function(){},isPersistent:Ee}),e}var K={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wt=C(K),Ce=b({},K,{view:0,detail:0}),zi=C(Ce),pa,Rr,kl,ao=b({},Ce,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_r,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!==kl&&(kl&&t.type==="mousemove"?(pa=t.screenX-kl.screenX,Rr=t.screenY-kl.screenY):Rr=pa=0,kl=t),pa)},movementY:function(t){return"movementY"in t?t.movementY:Rr}}),sd=C(ao),nv=b({},ao,{dataTransfer:0}),av=C(nv),iv=b({},Ce,{relatedTarget:0}),Vr=C(iv),lv=b({},K,{animationName:0,elapsedTime:0,pseudoElement:0}),sv=C(lv),ov=b({},K,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),rv=C(ov),uv=b({},K,{data:0}),od=C(uv),cv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},dv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=dv[t])?!!e[t]:!1}function _r(){return hv}var mv=b({},Ce,{key:function(t){if(t.key){var e=cv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Di(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?fv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_r,charCode:function(t){return t.type==="keypress"?Di(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Di(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),pv=C(mv),yv=b({},ao,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rd=C(yv),gv=b({},Ce,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_r}),vv=C(gv),xv=b({},K,{propertyName:0,elapsedTime:0,pseudoElement:0}),bv=C(xv),Sv=b({},ao,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Tv=C(Sv),Av=b({},K,{newState:0,oldState:0}),wv=C(Av),Ev=[9,13,27,32],Ur=tn&&"CompositionEvent"in window,Kl=null;tn&&"documentMode"in document&&(Kl=document.documentMode);var Cv=tn&&"TextEvent"in window&&!Kl,ud=tn&&(!Ur||Kl&&8<Kl&&11>=Kl),cd=" ",fd=!1;function dd(t,e){switch(t){case"keyup":return Ev.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ri=!1;function jv(t,e){switch(t){case"compositionend":return hd(e);case"keypress":return e.which!==32?null:(fd=!0,cd);case"textInput":return t=e.data,t===cd&&fd?null:t;default:return null}}function Mv(t,e){if(Ri)return t==="compositionend"||!Ur&&dd(t,e)?(t=Ni(),Mi=Ye=xe=null,Ri=!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 ud&&e.locale!=="ko"?null:e.data;default:return null}}var Nv={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 md(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Nv[t.type]:e==="textarea"}function pd(t,e,n,i){ma?kn?kn.push(i):kn=[i]:ma=i,e=Zo(e,"onChange"),0<e.length&&(n=new wt("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var Ql=null,Zl=null;function Dv(t){Wm(t,0)}function io(t){var e=Nn(t);if(Ja(e))return t}function yd(t,e){if(t==="change")return e}var gd=!1;if(tn){var Br;if(tn){var Lr="oninput"in document;if(!Lr){var vd=document.createElement("div");vd.setAttribute("oninput","return;"),Lr=typeof vd.oninput=="function"}Br=Lr}else Br=!1;gd=Br&&(!document.documentMode||9<document.documentMode)}function xd(){Ql&&(Ql.detachEvent("onpropertychange",bd),Zl=Ql=null)}function bd(t){if(t.propertyName==="value"&&io(Zl)){var e=[];pd(e,Zl,t,Ci(t)),no(Dv,e)}}function Ov(t,e,n){t==="focusin"?(xd(),Ql=e,Zl=n,Ql.attachEvent("onpropertychange",bd)):t==="focusout"&&xd()}function zv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return io(Zl)}function Rv(t,e){if(t==="click")return io(e)}function Vv(t,e){if(t==="input"||t==="change")return io(e)}function _v(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var qe=typeof Object.is=="function"?Object.is:_v;function Jl(t,e){if(qe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var s=n[i];if(!Hn.call(e,s)||!qe(t[s],e[s]))return!1}return!0}function Sd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Td(t,e){var n=Sd(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Sd(n)}}function Ad(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ad(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function wd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ha(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=ha(t.document)}return e}function Hr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Uv=tn&&"documentMode"in document&&11>=document.documentMode,Vi=null,Yr=null,Fl=null,qr=!1;function Ed(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qr||Vi==null||Vi!==ha(i)||(i=Vi,"selectionStart"in i&&Hr(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Fl&&Jl(Fl,i)||(Fl=i,i=Zo(Yr,"onSelect"),0<i.length&&(e=new wt("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=Vi)))}function Wa(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var _i={animationend:Wa("Animation","AnimationEnd"),animationiteration:Wa("Animation","AnimationIteration"),animationstart:Wa("Animation","AnimationStart"),transitionrun:Wa("Transition","TransitionRun"),transitionstart:Wa("Transition","TransitionStart"),transitioncancel:Wa("Transition","TransitionCancel"),transitionend:Wa("Transition","TransitionEnd")},Gr={},Cd={};tn&&(Cd=document.createElement("div").style,"AnimationEvent"in window||(delete _i.animationend.animation,delete _i.animationiteration.animation,delete _i.animationstart.animation),"TransitionEvent"in window||delete _i.transitionend.transition);function $a(t){if(Gr[t])return Gr[t];if(!_i[t])return t;var e=_i[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Cd)return Gr[t]=e[n];return t}var jd=$a("animationend"),Md=$a("animationiteration"),Nd=$a("animationstart"),Bv=$a("transitionrun"),Lv=$a("transitionstart"),Hv=$a("transitioncancel"),Dd=$a("transitionend"),Od=new Map,Xr="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(" ");Xr.push("scrollEnd");function gn(t,e){Od.set(t,e),pn(e,[t])}var lo=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)},en=[],Ui=0,kr=0;function so(){for(var t=Ui,e=kr=Ui=0;e<t;){var n=en[e];en[e++]=null;var i=en[e];en[e++]=null;var s=en[e];en[e++]=null;var u=en[e];if(en[e++]=null,i!==null&&s!==null){var f=i.pending;f===null?s.next=s:(s.next=f.next,f.next=s),i.pending=s}u!==0&&zd(n,s,u)}}function oo(t,e,n,i){en[Ui++]=t,en[Ui++]=e,en[Ui++]=n,en[Ui++]=i,kr|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function Kr(t,e,n,i){return oo(t,e,n,i),ro(t)}function Ia(t,e){return oo(t,null,null,e),ro(t)}function zd(t,e,n){t.lanes|=n;var i=t.alternate;i!==null&&(i.lanes|=n);for(var s=!1,u=t.return;u!==null;)u.childLanes|=n,i=u.alternate,i!==null&&(i.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(s=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,s&&e!==null&&(s=31-ie(n),t=u.hiddenUpdates,i=t[s],i===null?t[s]=[e]:i.push(e),e.lane=n|536870912),u):null}function ro(t){if(50<gs)throw gs=0,tc=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Bi={};function Yv(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ge(t,e,n,i){return new Yv(t,e,n,i)}function Qr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Kn(t,e){var n=t.alternate;return n===null?(n=Ge(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 Rd(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 uo(t,e,n,i,s,u){var f=0;if(i=t,typeof t=="function")Qr(t)&&(f=1);else if(typeof t=="string")f=Kx(t,n,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case lt:return t=Ge(31,n,e,s),t.elementType=lt,t.lanes=u,t;case q:return ti(n.children,s,u,e);case Y:f=8,s|=24;break;case G:return t=Ge(12,n,e,s|2),t.elementType=G,t.lanes=u,t;case F:return t=Ge(13,n,e,s),t.elementType=F,t.lanes=u,t;case it:return t=Ge(19,n,e,s),t.elementType=it,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case X:f=10;break t;case Q:f=9;break t;case P:f=11;break t;case et:f=14;break t;case J:f=16,i=null;break t}f=29,n=Error(r(130,t===null?"null":typeof t,"")),i=null}return e=Ge(f,n,e,s),e.elementType=t,e.type=i,e.lanes=u,e}function ti(t,e,n,i){return t=Ge(7,t,i,e),t.lanes=n,t}function Zr(t,e,n){return t=Ge(6,t,null,e),t.lanes=n,t}function Vd(t){var e=Ge(18,null,null,0);return e.stateNode=t,e}function Jr(t,e,n){return e=Ge(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var _d=new WeakMap;function nn(t,e){if(typeof t=="object"&&t!==null){var n=_d.get(t);return n!==void 0?n:(e={value:t,source:e,stack:ze(e)},_d.set(t,e),e)}return{value:t,source:e,stack:ze(e)}}var Li=[],Hi=0,co=null,Pl=0,an=[],ln=0,ya=null,zn=1,Rn="";function Qn(t,e){Li[Hi++]=Pl,Li[Hi++]=co,co=t,Pl=e}function Ud(t,e,n){an[ln++]=zn,an[ln++]=Rn,an[ln++]=ya,ya=t;var i=zn;t=Rn;var s=32-ie(i)-1;i&=~(1<<s),n+=1;var u=32-ie(e)+s;if(30<u){var f=s-s%5;u=(i&(1<<f)-1).toString(32),i>>=f,s-=f,zn=1<<32-ie(e)+s|n<<s|i,Rn=u+t}else zn=1<<u|n<<s|i,Rn=t}function Fr(t){t.return!==null&&(Qn(t,1),Ud(t,1,0))}function Pr(t){for(;t===co;)co=Li[--Hi],Li[Hi]=null,Pl=Li[--Hi],Li[Hi]=null;for(;t===ya;)ya=an[--ln],an[ln]=null,Rn=an[--ln],an[ln]=null,zn=an[--ln],an[ln]=null}function Bd(t,e){an[ln++]=zn,an[ln++]=Rn,an[ln++]=ya,zn=e.id,Rn=e.overflow,ya=t}var oe=null,_t=null,xt=!1,ga=null,sn=!1,Wr=Error(r(519));function va(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wl(nn(e,t)),Wr}function Ld(t){var e=t.stateNode,n=t.type,i=t.memoizedProps;switch(e[Qt]=t,e[le]=i,n){case"dialog":yt("cancel",e),yt("close",e);break;case"iframe":case"object":case"embed":yt("load",e);break;case"video":case"audio":for(n=0;n<xs.length;n++)yt(xs[n],e);break;case"source":yt("error",e);break;case"img":case"image":case"link":yt("error",e),yt("load",e);break;case"details":yt("toggle",e);break;case"input":yt("invalid",e),Is(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":yt("invalid",e);break;case"textarea":yt("invalid",e),Ll(e,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||i.suppressHydrationWarning===!0||ep(e.textContent,n)?(i.popover!=null&&(yt("beforetoggle",e),yt("toggle",e)),i.onScroll!=null&&yt("scroll",e),i.onScrollEnd!=null&&yt("scrollend",e),i.onClick!=null&&(e.onclick=yn),e=!0):e=!1,e||va(t,!0)}function Hd(t){for(oe=t.return;oe;)switch(oe.tag){case 5:case 31:case 13:sn=!1;return;case 27:case 3:sn=!0;return;default:oe=oe.return}}function Yi(t){if(t!==oe)return!1;if(!xt)return Hd(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")||pc(t.type,t.memoizedProps)),n=!n),n&&_t&&va(t),Hd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));_t=cp(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));_t=cp(t)}else e===27?(e=_t,za(t.type)?(t=bc,bc=null,_t=t):_t=e):_t=oe?rn(t.stateNode.nextSibling):null;return!0}function ei(){_t=oe=null,xt=!1}function $r(){var t=ga;return t!==null&&(De===null?De=t:De.push.apply(De,t),ga=null),t}function Wl(t){ga===null?ga=[t]:ga.push(t)}var Ir=w(null),ni=null,Zn=null;function xa(t,e,n){k(Ir,e._currentValue),e._currentValue=n}function Jn(t){t._currentValue=Ir.current,B(Ir)}function tu(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function eu(t,e,n,i){var s=t.child;for(s!==null&&(s.return=t);s!==null;){var u=s.dependencies;if(u!==null){var f=s.child;u=u.firstContext;t:for(;u!==null;){var g=u;u=s;for(var S=0;S<e.length;S++)if(g.context===e[S]){u.lanes|=n,g=u.alternate,g!==null&&(g.lanes|=n),tu(u.return,n,t),i||(f=null);break t}u=g.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(r(341));f.lanes|=n,u=f.alternate,u!==null&&(u.lanes|=n),tu(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 qi(t,e,n,i){t=null;for(var s=e,u=!1;s!==null;){if(!u){if((s.flags&524288)!==0)u=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var g=s.type;qe(s.pendingProps.value,f.value)||(t!==null?t.push(g):t=[g])}}else if(s===st.current){if(f=s.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(ws):t=[ws])}s=s.return}t!==null&&eu(e,t,n,i),e.flags|=262144}function fo(t){for(t=t.firstContext;t!==null;){if(!qe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ai(t){ni=t,Zn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function re(t){return Yd(ni,t)}function ho(t,e){return ni===null&&ai(t),Yd(t,e)}function Yd(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Zn===null){if(t===null)throw Error(r(308));Zn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Zn=Zn.next=e;return n}var qv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,i){t.push(i)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},Gv=a.unstable_scheduleCallback,Xv=a.unstable_NormalPriority,Zt={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nu(){return{controller:new qv,data:new Map,refCount:0}}function $l(t){t.refCount--,t.refCount===0&&Gv(Xv,function(){t.controller.abort()})}var Il=null,au=0,Gi=0,Xi=null;function kv(t,e){if(Il===null){var n=Il=[];au=0,Gi=sc(),Xi={status:"pending",value:void 0,then:function(i){n.push(i)}}}return au++,e.then(qd,qd),e}function qd(){if(--au===0&&Il!==null){Xi!==null&&(Xi.status="fulfilled");var t=Il;Il=null,Gi=0,Xi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Kv(t,e){var n=[],i={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){i.status="fulfilled",i.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(i.status="rejected",i.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),i}var Gd=R.S;R.S=function(t,e){Em=he(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&kv(t,e),Gd!==null&&Gd(t,e)};var ii=w(null);function iu(){var t=ii.current;return t!==null?t:Rt.pooledCache}function mo(t,e){e===null?k(ii,ii.current):k(ii,e.pool)}function Xd(){var t=iu();return t===null?null:{parent:Zt._currentValue,pool:t}}var ki=Error(r(460)),lu=Error(r(474)),po=Error(r(542)),yo={then:function(){}};function kd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Kd(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(yn,yn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Zd(t),t;default:if(typeof e.status=="string")e.then(yn,yn);else{if(t=Rt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(i){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=i}},function(i){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=i}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Zd(t),t}throw si=e,ki}}function li(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(si=n,ki):n}}var si=null;function Qd(){if(si===null)throw Error(r(459));var t=si;return si=null,t}function Zd(t){if(t===ki||t===po)throw Error(r(483))}var Ki=null,ts=0;function go(t){var e=ts;return ts+=1,Ki===null&&(Ki=[]),Kd(Ki,t,e)}function es(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function vo(t,e){throw e.$$typeof===T?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Jd(t){function e(E,A){if(t){var j=E.deletions;j===null?(E.deletions=[A],E.flags|=16):j.push(A)}}function n(E,A){if(!t)return null;for(;A!==null;)e(E,A),A=A.sibling;return null}function i(E){for(var A=new Map;E!==null;)E.key!==null?A.set(E.key,E):A.set(E.index,E),E=E.sibling;return A}function s(E,A){return E=Kn(E,A),E.index=0,E.sibling=null,E}function u(E,A,j){return E.index=j,t?(j=E.alternate,j!==null?(j=j.index,j<A?(E.flags|=67108866,A):j):(E.flags|=67108866,A)):(E.flags|=1048576,A)}function f(E){return t&&E.alternate===null&&(E.flags|=67108866),E}function g(E,A,j,U){return A===null||A.tag!==6?(A=Zr(j,E.mode,U),A.return=E,A):(A=s(A,j),A.return=E,A)}function S(E,A,j,U){var nt=j.type;return nt===q?_(E,A,j.props.children,U,j.key):A!==null&&(A.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===J&&li(nt)===A.type)?(A=s(A,j.props),es(A,j),A.return=E,A):(A=uo(j.type,j.key,j.props,null,E.mode,U),es(A,j),A.return=E,A)}function M(E,A,j,U){return A===null||A.tag!==4||A.stateNode.containerInfo!==j.containerInfo||A.stateNode.implementation!==j.implementation?(A=Jr(j,E.mode,U),A.return=E,A):(A=s(A,j.children||[]),A.return=E,A)}function _(E,A,j,U,nt){return A===null||A.tag!==7?(A=ti(j,E.mode,U,nt),A.return=E,A):(A=s(A,j),A.return=E,A)}function L(E,A,j){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Zr(""+A,E.mode,j),A.return=E,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case O:return j=uo(A.type,A.key,A.props,null,E.mode,j),es(j,A),j.return=E,j;case V:return A=Jr(A,E.mode,j),A.return=E,A;case J:return A=li(A),L(E,A,j)}if(mt(A)||Mt(A))return A=ti(A,E.mode,j,null),A.return=E,A;if(typeof A.then=="function")return L(E,go(A),j);if(A.$$typeof===X)return L(E,ho(E,A),j);vo(E,A)}return null}function N(E,A,j,U){var nt=A!==null?A.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return nt!==null?null:g(E,A,""+j,U);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case O:return j.key===nt?S(E,A,j,U):null;case V:return j.key===nt?M(E,A,j,U):null;case J:return j=li(j),N(E,A,j,U)}if(mt(j)||Mt(j))return nt!==null?null:_(E,A,j,U,null);if(typeof j.then=="function")return N(E,A,go(j),U);if(j.$$typeof===X)return N(E,A,ho(E,j),U);vo(E,j)}return null}function z(E,A,j,U,nt){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return E=E.get(j)||null,g(A,E,""+U,nt);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case O:return E=E.get(U.key===null?j:U.key)||null,S(A,E,U,nt);case V:return E=E.get(U.key===null?j:U.key)||null,M(A,E,U,nt);case J:return U=li(U),z(E,A,j,U,nt)}if(mt(U)||Mt(U))return E=E.get(j)||null,_(A,E,U,nt,null);if(typeof U.then=="function")return z(E,A,j,go(U),nt);if(U.$$typeof===X)return z(E,A,j,ho(A,U),nt);vo(A,U)}return null}function $(E,A,j,U){for(var nt=null,bt=null,tt=A,ft=A=0,vt=null;tt!==null&&ft<j.length;ft++){tt.index>ft?(vt=tt,tt=null):vt=tt.sibling;var St=N(E,tt,j[ft],U);if(St===null){tt===null&&(tt=vt);break}t&&tt&&St.alternate===null&&e(E,tt),A=u(St,A,ft),bt===null?nt=St:bt.sibling=St,bt=St,tt=vt}if(ft===j.length)return n(E,tt),xt&&Qn(E,ft),nt;if(tt===null){for(;ft<j.length;ft++)tt=L(E,j[ft],U),tt!==null&&(A=u(tt,A,ft),bt===null?nt=tt:bt.sibling=tt,bt=tt);return xt&&Qn(E,ft),nt}for(tt=i(tt);ft<j.length;ft++)vt=z(tt,E,ft,j[ft],U),vt!==null&&(t&&vt.alternate!==null&&tt.delete(vt.key===null?ft:vt.key),A=u(vt,A,ft),bt===null?nt=vt:bt.sibling=vt,bt=vt);return t&&tt.forEach(function(Ba){return e(E,Ba)}),xt&&Qn(E,ft),nt}function at(E,A,j,U){if(j==null)throw Error(r(151));for(var nt=null,bt=null,tt=A,ft=A=0,vt=null,St=j.next();tt!==null&&!St.done;ft++,St=j.next()){tt.index>ft?(vt=tt,tt=null):vt=tt.sibling;var Ba=N(E,tt,St.value,U);if(Ba===null){tt===null&&(tt=vt);break}t&&tt&&Ba.alternate===null&&e(E,tt),A=u(Ba,A,ft),bt===null?nt=Ba:bt.sibling=Ba,bt=Ba,tt=vt}if(St.done)return n(E,tt),xt&&Qn(E,ft),nt;if(tt===null){for(;!St.done;ft++,St=j.next())St=L(E,St.value,U),St!==null&&(A=u(St,A,ft),bt===null?nt=St:bt.sibling=St,bt=St);return xt&&Qn(E,ft),nt}for(tt=i(tt);!St.done;ft++,St=j.next())St=z(tt,E,ft,St.value,U),St!==null&&(t&&St.alternate!==null&&tt.delete(St.key===null?ft:St.key),A=u(St,A,ft),bt===null?nt=St:bt.sibling=St,bt=St);return t&&tt.forEach(function(n1){return e(E,n1)}),xt&&Qn(E,ft),nt}function Ot(E,A,j,U){if(typeof j=="object"&&j!==null&&j.type===q&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case O:t:{for(var nt=j.key;A!==null;){if(A.key===nt){if(nt=j.type,nt===q){if(A.tag===7){n(E,A.sibling),U=s(A,j.props.children),U.return=E,E=U;break t}}else if(A.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===J&&li(nt)===A.type){n(E,A.sibling),U=s(A,j.props),es(U,j),U.return=E,E=U;break t}n(E,A);break}else e(E,A);A=A.sibling}j.type===q?(U=ti(j.props.children,E.mode,U,j.key),U.return=E,E=U):(U=uo(j.type,j.key,j.props,null,E.mode,U),es(U,j),U.return=E,E=U)}return f(E);case V:t:{for(nt=j.key;A!==null;){if(A.key===nt)if(A.tag===4&&A.stateNode.containerInfo===j.containerInfo&&A.stateNode.implementation===j.implementation){n(E,A.sibling),U=s(A,j.children||[]),U.return=E,E=U;break t}else{n(E,A);break}else e(E,A);A=A.sibling}U=Jr(j,E.mode,U),U.return=E,E=U}return f(E);case J:return j=li(j),Ot(E,A,j,U)}if(mt(j))return $(E,A,j,U);if(Mt(j)){if(nt=Mt(j),typeof nt!="function")throw Error(r(150));return j=nt.call(j),at(E,A,j,U)}if(typeof j.then=="function")return Ot(E,A,go(j),U);if(j.$$typeof===X)return Ot(E,A,ho(E,j),U);vo(E,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,A!==null&&A.tag===6?(n(E,A.sibling),U=s(A,j),U.return=E,E=U):(n(E,A),U=Zr(j,E.mode,U),U.return=E,E=U),f(E)):n(E,A)}return function(E,A,j,U){try{ts=0;var nt=Ot(E,A,j,U);return Ki=null,nt}catch(tt){if(tt===ki||tt===po)throw tt;var bt=Ge(29,tt,null,E.mode);return bt.lanes=U,bt.return=E,bt}}}var oi=Jd(!0),Fd=Jd(!1),ba=!1;function su(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ou(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 Sa(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ta(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(Tt&2)!==0){var s=i.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),i.pending=e,e=ro(t),zd(t,null,n),e}return oo(t,i,e,n),ro(t)}function ns(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Ml(t,n)}}function ru(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var s=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?s=u=f:u=u.next=f,n=n.next}while(n!==null);u===null?s=u=e:u=u.next=e}else s=u=e;n={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:i.shared,callbacks:i.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var uu=!1;function as(){if(uu){var t=Xi;if(t!==null)throw t}}function is(t,e,n,i){uu=!1;var s=t.updateQueue;ba=!1;var u=s.firstBaseUpdate,f=s.lastBaseUpdate,g=s.shared.pending;if(g!==null){s.shared.pending=null;var S=g,M=S.next;S.next=null,f===null?u=M:f.next=M,f=S;var _=t.alternate;_!==null&&(_=_.updateQueue,g=_.lastBaseUpdate,g!==f&&(g===null?_.firstBaseUpdate=M:g.next=M,_.lastBaseUpdate=S))}if(u!==null){var L=s.baseState;f=0,_=M=S=null,g=u;do{var N=g.lane&-536870913,z=N!==g.lane;if(z?(gt&N)===N:(i&N)===N){N!==0&&N===Gi&&(uu=!0),_!==null&&(_=_.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});t:{var $=t,at=g;N=e;var Ot=n;switch(at.tag){case 1:if($=at.payload,typeof $=="function"){L=$.call(Ot,L,N);break t}L=$;break t;case 3:$.flags=$.flags&-65537|128;case 0:if($=at.payload,N=typeof $=="function"?$.call(Ot,L,N):$,N==null)break t;L=b({},L,N);break t;case 2:ba=!0}}N=g.callback,N!==null&&(t.flags|=64,z&&(t.flags|=8192),z=s.callbacks,z===null?s.callbacks=[N]:z.push(N))}else z={lane:N,tag:g.tag,payload:g.payload,callback:g.callback,next:null},_===null?(M=_=z,S=L):_=_.next=z,f|=N;if(g=g.next,g===null){if(g=s.shared.pending,g===null)break;z=g,g=z.next,z.next=null,s.lastBaseUpdate=z,s.shared.pending=null}}while(!0);_===null&&(S=L),s.baseState=S,s.firstBaseUpdate=M,s.lastBaseUpdate=_,u===null&&(s.shared.lanes=0),ja|=f,t.lanes=f,t.memoizedState=L}}function Pd(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Wd(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Pd(n[t],e)}var Qi=w(null),xo=w(0);function $d(t,e){t=aa,k(xo,t),k(Qi,e),aa=t|e.baseLanes}function cu(){k(xo,aa),k(Qi,Qi.current)}function fu(){aa=xo.current,B(Qi),B(xo)}var Xe=w(null),on=null;function Aa(t){var e=t.alternate;k(kt,kt.current&1),k(Xe,t),on===null&&(e===null||Qi.current!==null||e.memoizedState!==null)&&(on=t)}function du(t){k(kt,kt.current),k(Xe,t),on===null&&(on=t)}function Id(t){t.tag===22?(k(kt,kt.current),k(Xe,t),on===null&&(on=t)):wa()}function wa(){k(kt,kt.current),k(Xe,Xe.current)}function ke(t){B(Xe),on===t&&(on=null),B(kt)}var kt=w(0);function bo(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||vc(n)||xc(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 Fn=0,ct=null,Nt=null,Jt=null,So=!1,Zi=!1,ri=!1,To=0,ls=0,Ji=null,Qv=0;function Yt(){throw Error(r(321))}function hu(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!qe(t[n],e[n]))return!1;return!0}function mu(t,e,n,i,s,u){return Fn=u,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,R.H=t===null||t.memoizedState===null?Uh:Nu,ri=!1,u=n(i,s),ri=!1,Zi&&(u=eh(e,n,i,s)),th(t),u}function th(t){R.H=rs;var e=Nt!==null&&Nt.next!==null;if(Fn=0,Jt=Nt=ct=null,So=!1,ls=0,Ji=null,e)throw Error(r(300));t===null||Ft||(t=t.dependencies,t!==null&&fo(t)&&(Ft=!0))}function eh(t,e,n,i){ct=t;var s=0;do{if(Zi&&(Ji=null),ls=0,Zi=!1,25<=s)throw Error(r(301));if(s+=1,Jt=Nt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}R.H=Bh,u=e(n,i)}while(Zi);return u}function Zv(){var t=R.H,e=t.useState()[0];return e=typeof e.then=="function"?ss(e):e,t=t.useState()[0],(Nt!==null?Nt.memoizedState:null)!==t&&(ct.flags|=1024),e}function pu(){var t=To!==0;return To=0,t}function yu(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function gu(t){if(So){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}So=!1}Fn=0,Jt=Nt=ct=null,Zi=!1,ls=To=0,Ji=null}function be(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jt===null?ct.memoizedState=Jt=t:Jt=Jt.next=t,Jt}function Kt(){if(Nt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Nt.next;var e=Jt===null?ct.memoizedState:Jt.next;if(e!==null)Jt=e,Nt=t;else{if(t===null)throw ct.alternate===null?Error(r(467)):Error(r(310));Nt=t,t={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},Jt===null?ct.memoizedState=Jt=t:Jt=Jt.next=t}return Jt}function Ao(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ss(t){var e=ls;return ls+=1,Ji===null&&(Ji=[]),t=Kd(Ji,t,e),e=ct,(Jt===null?e.memoizedState:Jt.next)===null&&(e=e.alternate,R.H=e===null||e.memoizedState===null?Uh:Nu),t}function wo(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ss(t);if(t.$$typeof===X)return re(t)}throw Error(r(438,String(t)))}function vu(t){var e=null,n=ct.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=ct.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(s){return s.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Ao(),ct.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),i=0;i<t;i++)n[i]=At;return e.index++,n}function Pn(t,e){return typeof e=="function"?e(t):e}function Eo(t){var e=Kt();return xu(e,Nt,t)}function xu(t,e,n){var i=t.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var s=t.baseQueue,u=i.pending;if(u!==null){if(s!==null){var f=s.next;s.next=u.next,u.next=f}e.baseQueue=s=u,i.pending=null}if(u=t.baseState,s===null)t.memoizedState=u;else{e=s.next;var g=f=null,S=null,M=e,_=!1;do{var L=M.lane&-536870913;if(L!==M.lane?(gt&L)===L:(Fn&L)===L){var N=M.revertLane;if(N===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),L===Gi&&(_=!0);else if((Fn&N)===N){M=M.next,N===Gi&&(_=!0);continue}else L={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},S===null?(g=S=L,f=u):S=S.next=L,ct.lanes|=N,ja|=N;L=M.action,ri&&n(u,L),u=M.hasEagerState?M.eagerState:n(u,L)}else N={lane:L,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},S===null?(g=S=N,f=u):S=S.next=N,ct.lanes|=L,ja|=L;M=M.next}while(M!==null&&M!==e);if(S===null?f=u:S.next=g,!qe(u,t.memoizedState)&&(Ft=!0,_&&(n=Xi,n!==null)))throw n;t.memoizedState=u,t.baseState=f,t.baseQueue=S,i.lastRenderedState=u}return s===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function bu(t){var e=Kt(),n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=t;var i=n.dispatch,s=n.pending,u=e.memoizedState;if(s!==null){n.pending=null;var f=s=s.next;do u=t(u,f.action),f=f.next;while(f!==s);qe(u,e.memoizedState)||(Ft=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,i]}function nh(t,e,n){var i=ct,s=Kt(),u=xt;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=e();var f=!qe((Nt||s).memoizedState,n);if(f&&(s.memoizedState=n,Ft=!0),s=s.queue,Au(lh.bind(null,i,s,t),[t]),s.getSnapshot!==e||f||Jt!==null&&Jt.memoizedState.tag&1){if(i.flags|=2048,Fi(9,{destroy:void 0},ih.bind(null,i,s,n,e),null),Rt===null)throw Error(r(349));u||(Fn&127)!==0||ah(i,e,n)}return n}function ah(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=Ao(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function ih(t,e,n,i){e.value=n,e.getSnapshot=i,sh(e)&&oh(t)}function lh(t,e,n){return n(function(){sh(e)&&oh(t)})}function sh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!qe(t,n)}catch{return!0}}function oh(t){var e=Ia(t,2);e!==null&&Oe(e,t,2)}function Su(t){var e=be();if(typeof t=="function"){var n=t;if(t=n(),ri){Ve(!0);try{n()}finally{Ve(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:t},e}function rh(t,e,n,i){return t.baseState=n,xu(t,Nt,typeof i=="function"?i:Pn)}function Jv(t,e,n,i,s){if(Mo(t))throw Error(r(485));if(t=e.action,t!==null){var u={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){u.listeners.push(f)}};R.T!==null?n(!0):u.isTransition=!1,i(u),n=e.pending,n===null?(u.next=e.pending=u,uh(e,u)):(u.next=n.next,e.pending=n.next=u)}}function uh(t,e){var n=e.action,i=e.payload,s=t.state;if(e.isTransition){var u=R.T,f={};R.T=f;try{var g=n(s,i),S=R.S;S!==null&&S(f,g),ch(t,e,g)}catch(M){Tu(t,e,M)}finally{u!==null&&f.types!==null&&(u.types=f.types),R.T=u}}else try{u=n(s,i),ch(t,e,u)}catch(M){Tu(t,e,M)}}function ch(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){fh(t,e,i)},function(i){return Tu(t,e,i)}):fh(t,e,n)}function fh(t,e,n){e.status="fulfilled",e.value=n,dh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,uh(t,n)))}function Tu(t,e,n){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status="rejected",e.reason=n,dh(e),e=e.next;while(e!==i)}t.action=null}function dh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function hh(t,e){return e}function mh(t,e){if(xt){var n=Rt.formState;if(n!==null){t:{var i=ct;if(xt){if(_t){e:{for(var s=_t,u=sn;s.nodeType!==8;){if(!u){s=null;break e}if(s=rn(s.nextSibling),s===null){s=null;break e}}u=s.data,s=u==="F!"||u==="F"?s:null}if(s){_t=rn(s.nextSibling),i=s.data==="F!";break t}}va(i)}i=!1}i&&(e=n[0])}}return n=be(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hh,lastRenderedState:e},n.queue=i,n=Rh.bind(null,ct,i),i.dispatch=n,i=Su(!1),u=Mu.bind(null,ct,!1,i.queue),i=be(),s={state:e,dispatch:null,action:t,pending:null},i.queue=s,n=Jv.bind(null,ct,s,u,n),s.dispatch=n,i.memoizedState=t,[e,n,!1]}function ph(t){var e=Kt();return yh(e,Nt,t)}function yh(t,e,n){if(e=xu(t,e,hh)[0],t=Eo(Pn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=ss(e)}catch(f){throw f===ki?po:f}else i=e;e=Kt();var s=e.queue,u=s.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,Fi(9,{destroy:void 0},Fv.bind(null,s,n),null)),[i,u,t]}function Fv(t,e){t.action=e}function gh(t){var e=Kt(),n=Nt;if(n!==null)return yh(e,n,t);Kt(),e=e.memoizedState,n=Kt();var i=n.queue.dispatch;return n.memoizedState=t,[e,i,!1]}function Fi(t,e,n,i){return t={tag:t,create:n,deps:i,inst:e,next:null},e=ct.updateQueue,e===null&&(e=Ao(),ct.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function vh(){return Kt().memoizedState}function Co(t,e,n,i){var s=be();ct.flags|=t,s.memoizedState=Fi(1|e,{destroy:void 0},n,i===void 0?null:i)}function jo(t,e,n,i){var s=Kt();i=i===void 0?null:i;var u=s.memoizedState.inst;Nt!==null&&i!==null&&hu(i,Nt.memoizedState.deps)?s.memoizedState=Fi(e,u,n,i):(ct.flags|=t,s.memoizedState=Fi(1|e,u,n,i))}function xh(t,e){Co(8390656,8,t,e)}function Au(t,e){jo(2048,8,t,e)}function Pv(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=Ao(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function bh(t){var e=Kt().memoizedState;return Pv({ref:e,nextImpl:t}),function(){if((Tt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Sh(t,e){return jo(4,2,t,e)}function Th(t,e){return jo(4,4,t,e)}function Ah(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 wh(t,e,n){n=n!=null?n.concat([t]):null,jo(4,4,Ah.bind(null,e,t),n)}function wu(){}function Eh(t,e){var n=Kt();e=e===void 0?null:e;var i=n.memoizedState;return e!==null&&hu(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function Ch(t,e){var n=Kt();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&hu(e,i[1]))return i[0];if(i=t(),ri){Ve(!0);try{t()}finally{Ve(!1)}}return n.memoizedState=[i,e],i}function Eu(t,e,n){return n===void 0||(Fn&1073741824)!==0&&(gt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=jm(),ct.lanes|=t,ja|=t,n)}function jh(t,e,n,i){return qe(n,e)?n:Qi.current!==null?(t=Eu(t,n,i),qe(t,e)||(Ft=!0),t):(Fn&42)===0||(Fn&1073741824)!==0&&(gt&261930)===0?(Ft=!0,t.memoizedState=n):(t=jm(),ct.lanes|=t,ja|=t,e)}function Mh(t,e,n,i,s){var u=H.p;H.p=u!==0&&8>u?u:8;var f=R.T,g={};R.T=g,Mu(t,!1,e,n);try{var S=s(),M=R.S;if(M!==null&&M(g,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var _=Kv(S,i);os(t,e,_,Ze(t))}else os(t,e,i,Ze(t))}catch(L){os(t,e,{then:function(){},status:"rejected",reason:L},Ze())}finally{H.p=u,f!==null&&g.types!==null&&(f.types=g.types),R.T=f}}function Wv(){}function Cu(t,e,n,i){if(t.tag!==5)throw Error(r(476));var s=Nh(t).queue;Mh(t,s,e,Z,n===null?Wv:function(){return Dh(t),n(i)})}function Nh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:Z},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Dh(t){var e=Nh(t);e.next===null&&(e=t.alternate.memoizedState),os(t,e.next.queue,{},Ze())}function ju(){return re(ws)}function Oh(){return Kt().memoizedState}function zh(){return Kt().memoizedState}function $v(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ze();t=Sa(n);var i=Ta(e,t,n);i!==null&&(Oe(i,e,n),ns(i,e,n)),e={cache:nu()},t.payload=e;return}e=e.return}}function Iv(t,e,n){var i=Ze();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Mo(t)?Vh(e,n):(n=Kr(t,e,n,i),n!==null&&(Oe(n,t,i),_h(n,e,i)))}function Rh(t,e,n){var i=Ze();os(t,e,n,i)}function os(t,e,n,i){var s={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Mo(t))Vh(e,s);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var f=e.lastRenderedState,g=u(f,n);if(s.hasEagerState=!0,s.eagerState=g,qe(g,f))return oo(t,e,s,0),Rt===null&&so(),!1}catch{}if(n=Kr(t,e,s,i),n!==null)return Oe(n,t,i),_h(n,e,i),!0}return!1}function Mu(t,e,n,i){if(i={lane:2,revertLane:sc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Mo(t)){if(e)throw Error(r(479))}else e=Kr(t,n,i,2),e!==null&&Oe(e,t,2)}function Mo(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function Vh(t,e){Zi=So=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function _h(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Ml(t,n)}}var rs={readContext:re,use:wo,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useLayoutEffect:Yt,useInsertionEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useSyncExternalStore:Yt,useId:Yt,useHostTransitionStatus:Yt,useFormState:Yt,useActionState:Yt,useOptimistic:Yt,useMemoCache:Yt,useCacheRefresh:Yt};rs.useEffectEvent=Yt;var Uh={readContext:re,use:wo,useCallback:function(t,e){return be().memoizedState=[t,e===void 0?null:e],t},useContext:re,useEffect:xh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Co(4194308,4,Ah.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Co(4194308,4,t,e)},useInsertionEffect:function(t,e){Co(4,2,t,e)},useMemo:function(t,e){var n=be();e=e===void 0?null:e;var i=t();if(ri){Ve(!0);try{t()}finally{Ve(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=be();if(n!==void 0){var s=n(e);if(ri){Ve(!0);try{n(e)}finally{Ve(!1)}}}else s=e;return i.memoizedState=i.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},i.queue=t,t=t.dispatch=Iv.bind(null,ct,t),[i.memoizedState,t]},useRef:function(t){var e=be();return t={current:t},e.memoizedState=t},useState:function(t){t=Su(t);var e=t.queue,n=Rh.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:wu,useDeferredValue:function(t,e){var n=be();return Eu(n,t,e)},useTransition:function(){var t=Su(!1);return t=Mh.bind(null,ct,t.queue,!0,!1),be().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=ct,s=be();if(xt){if(n===void 0)throw Error(r(407));n=n()}else{if(n=e(),Rt===null)throw Error(r(349));(gt&127)!==0||ah(i,e,n)}s.memoizedState=n;var u={value:n,getSnapshot:e};return s.queue=u,xh(lh.bind(null,i,u,t),[t]),i.flags|=2048,Fi(9,{destroy:void 0},ih.bind(null,i,u,n,e),null),n},useId:function(){var t=be(),e=Rt.identifierPrefix;if(xt){var n=Rn,i=zn;n=(i&~(1<<32-ie(i)-1)).toString(32)+n,e="_"+e+"R_"+n,n=To++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Qv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:ju,useFormState:mh,useActionState:mh,useOptimistic:function(t){var e=be();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Mu.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:vu,useCacheRefresh:function(){return be().memoizedState=$v.bind(null,ct)},useEffectEvent:function(t){var e=be(),n={impl:t};return e.memoizedState=n,function(){if((Tt&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Nu={readContext:re,use:wo,useCallback:Eh,useContext:re,useEffect:Au,useImperativeHandle:wh,useInsertionEffect:Sh,useLayoutEffect:Th,useMemo:Ch,useReducer:Eo,useRef:vh,useState:function(){return Eo(Pn)},useDebugValue:wu,useDeferredValue:function(t,e){var n=Kt();return jh(n,Nt.memoizedState,t,e)},useTransition:function(){var t=Eo(Pn)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:ss(t),e]},useSyncExternalStore:nh,useId:Oh,useHostTransitionStatus:ju,useFormState:ph,useActionState:ph,useOptimistic:function(t,e){var n=Kt();return rh(n,Nt,t,e)},useMemoCache:vu,useCacheRefresh:zh};Nu.useEffectEvent=bh;var Bh={readContext:re,use:wo,useCallback:Eh,useContext:re,useEffect:Au,useImperativeHandle:wh,useInsertionEffect:Sh,useLayoutEffect:Th,useMemo:Ch,useReducer:bu,useRef:vh,useState:function(){return bu(Pn)},useDebugValue:wu,useDeferredValue:function(t,e){var n=Kt();return Nt===null?Eu(n,t,e):jh(n,Nt.memoizedState,t,e)},useTransition:function(){var t=bu(Pn)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:ss(t),e]},useSyncExternalStore:nh,useId:Oh,useHostTransitionStatus:ju,useFormState:gh,useActionState:gh,useOptimistic:function(t,e){var n=Kt();return Nt!==null?rh(n,Nt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:vu,useCacheRefresh:zh};Bh.useEffectEvent=bh;function Du(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:b({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Ou={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=Ze(),s=Sa(i);s.payload=e,n!=null&&(s.callback=n),e=Ta(t,s,i),e!==null&&(Oe(e,t,i),ns(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=Ze(),s=Sa(i);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=Ta(t,s,i),e!==null&&(Oe(e,t,i),ns(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ze(),i=Sa(n);i.tag=2,e!=null&&(i.callback=e),e=Ta(t,i,n),e!==null&&(Oe(e,t,n),ns(e,t,n))}};function Lh(t,e,n,i,s,u,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,u,f):e.prototype&&e.prototype.isPureReactComponent?!Jl(n,i)||!Jl(s,u):!0}function Hh(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&Ou.enqueueReplaceState(e,e.state,null)}function ui(t,e){var n=e;if("ref"in e){n={};for(var i in e)i!=="ref"&&(n[i]=e[i])}if(t=t.defaultProps){n===e&&(n=b({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}function Yh(t){lo(t)}function qh(t){console.error(t)}function Gh(t){lo(t)}function No(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function Xh(t,e,n){try{var i=t.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function zu(t,e,n){return n=Sa(n),n.tag=3,n.payload={element:null},n.callback=function(){No(t,e)},n}function kh(t){return t=Sa(t),t.tag=3,t}function Kh(t,e,n,i){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var u=i.value;t.payload=function(){return s(u)},t.callback=function(){Xh(e,n,i)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Xh(e,n,i),typeof s!="function"&&(Ma===null?Ma=new Set([this]):Ma.add(this));var g=i.stack;this.componentDidCatch(i.value,{componentStack:g!==null?g:""})})}function tx(t,e,n,i,s){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=n.alternate,e!==null&&qi(e,n,s,!0),n=Xe.current,n!==null){switch(n.tag){case 31:case 13:return on===null?qo():n.alternate===null&&qt===0&&(qt=3),n.flags&=-257,n.flags|=65536,n.lanes=s,i===yo?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),ac(t,i,s)),!1;case 22:return n.flags|=65536,i===yo?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([i]):n.add(i)),ac(t,i,s)),!1}throw Error(r(435,n.tag))}return ac(t,i,s),qo(),!1}if(xt)return e=Xe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,i!==Wr&&(t=Error(r(422),{cause:i}),Wl(nn(t,n)))):(i!==Wr&&(e=Error(r(423),{cause:i}),Wl(nn(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,i=nn(i,n),s=zu(t.stateNode,i,s),ru(t,s),qt!==4&&(qt=2)),!1;var u=Error(r(520),{cause:i});if(u=nn(u,n),ys===null?ys=[u]:ys.push(u),qt!==4&&(qt=2),e===null)return!0;i=nn(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=zu(n.stateNode,i,t),ru(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Ma===null||!Ma.has(u))))return n.flags|=65536,s&=-s,n.lanes|=s,s=kh(s),Kh(s,t,n,i),ru(n,s),!1}n=n.return}while(n!==null);return!1}var Ru=Error(r(461)),Ft=!1;function ue(t,e,n,i){e.child=t===null?Fd(e,null,n,i):oi(e,t.child,n,i)}function Qh(t,e,n,i,s){n=n.render;var u=e.ref;if("ref"in i){var f={};for(var g in i)g!=="ref"&&(f[g]=i[g])}else f=i;return ai(e),i=mu(t,e,n,f,u,s),g=pu(),t!==null&&!Ft?(yu(t,e,s),Wn(t,e,s)):(xt&&g&&Fr(e),e.flags|=1,ue(t,e,i,s),e.child)}function Zh(t,e,n,i,s){if(t===null){var u=n.type;return typeof u=="function"&&!Qr(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,Jh(t,e,u,i,s)):(t=uo(n.type,null,i,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!qu(t,s)){var f=u.memoizedProps;if(n=n.compare,n=n!==null?n:Jl,n(f,i)&&t.ref===e.ref)return Wn(t,e,s)}return e.flags|=1,t=Kn(u,i),t.ref=e.ref,t.return=e,e.child=t}function Jh(t,e,n,i,s){if(t!==null){var u=t.memoizedProps;if(Jl(u,i)&&t.ref===e.ref)if(Ft=!1,e.pendingProps=i=u,qu(t,s))(t.flags&131072)!==0&&(Ft=!0);else return e.lanes=t.lanes,Wn(t,e,s)}return Vu(t,e,n,i,s)}function Fh(t,e,n,i){var s=i.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,t!==null){for(i=e.child=t.child,s=0;i!==null;)s=s|i.lanes|i.childLanes,i=i.sibling;i=s&~u}else i=0,e.child=null;return Ph(t,e,u,n,i)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&mo(e,u!==null?u.cachePool:null),u!==null?$d(e,u):cu(),Id(e);else return i=e.lanes=536870912,Ph(t,e,u!==null?u.baseLanes|n:n,n,i)}else u!==null?(mo(e,u.cachePool),$d(e,u),wa(),e.memoizedState=null):(t!==null&&mo(e,null),cu(),wa());return ue(t,e,s,n),e.child}function us(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Ph(t,e,n,i,s){var u=iu();return u=u===null?null:{parent:Zt._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&mo(e,null),cu(),Id(e),t!==null&&qi(t,e,i,!0),e.childLanes=s,null}function Do(t,e){return e=zo({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Wh(t,e,n){return oi(e,t.child,null,n),t=Do(e,e.pendingProps),t.flags|=2,ke(e),e.memoizedState=null,t}function ex(t,e,n){var i=e.pendingProps,s=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(xt){if(i.mode==="hidden")return t=Do(e,i),e.lanes=536870912,us(null,t);if(du(e),(t=_t)?(t=up(t,sn),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ya!==null?{id:zn,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},n=Vd(t),n.return=e,e.child=n,oe=e,_t=null)):t=null,t===null)throw va(e);return e.lanes=536870912,null}return Do(e,i)}var u=t.memoizedState;if(u!==null){var f=u.dehydrated;if(du(e),s)if(e.flags&256)e.flags&=-257,e=Wh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(Ft||qi(t,e,n,!1),s=(n&t.childLanes)!==0,Ft||s){if(i=Rt,i!==null&&(f=Ps(i,n),f!==0&&f!==u.retryLane))throw u.retryLane=f,Ia(t,f),Oe(i,t,f),Ru;qo(),e=Wh(t,e,n)}else t=u.treeContext,_t=rn(f.nextSibling),oe=e,xt=!0,ga=null,sn=!1,t!==null&&Bd(e,t),e=Do(e,i),e.flags|=4096;return e}return t=Kn(t.child,{mode:i.mode,children:i.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Oo(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Vu(t,e,n,i,s){return ai(e),n=mu(t,e,n,i,void 0,s),i=pu(),t!==null&&!Ft?(yu(t,e,s),Wn(t,e,s)):(xt&&i&&Fr(e),e.flags|=1,ue(t,e,n,s),e.child)}function $h(t,e,n,i,s,u){return ai(e),e.updateQueue=null,n=eh(e,i,n,s),th(t),i=pu(),t!==null&&!Ft?(yu(t,e,u),Wn(t,e,u)):(xt&&i&&Fr(e),e.flags|=1,ue(t,e,n,u),e.child)}function Ih(t,e,n,i,s){if(ai(e),e.stateNode===null){var u=Bi,f=n.contextType;typeof f=="object"&&f!==null&&(u=re(f)),u=new n(i,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Ou,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=i,u.state=e.memoizedState,u.refs={},su(e),f=n.contextType,u.context=typeof f=="object"&&f!==null?re(f):Bi,u.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Du(e,n,f,i),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&Ou.enqueueReplaceState(u,u.state,null),is(e,i,u,s),as(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){u=e.stateNode;var g=e.memoizedProps,S=ui(n,g);u.props=S;var M=u.context,_=n.contextType;f=Bi,typeof _=="object"&&_!==null&&(f=re(_));var L=n.getDerivedStateFromProps;_=typeof L=="function"||typeof u.getSnapshotBeforeUpdate=="function",g=e.pendingProps!==g,_||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(g||M!==f)&&Hh(e,u,i,f),ba=!1;var N=e.memoizedState;u.state=N,is(e,i,u,s),as(),M=e.memoizedState,g||N!==M||ba?(typeof L=="function"&&(Du(e,n,L,i),M=e.memoizedState),(S=ba||Lh(e,n,S,i,N,M,f))?(_||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=M),u.props=i,u.state=M,u.context=f,i=S):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{u=e.stateNode,ou(t,e),f=e.memoizedProps,_=ui(n,f),u.props=_,L=e.pendingProps,N=u.context,M=n.contextType,S=Bi,typeof M=="object"&&M!==null&&(S=re(M)),g=n.getDerivedStateFromProps,(M=typeof g=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==L||N!==S)&&Hh(e,u,i,S),ba=!1,N=e.memoizedState,u.state=N,is(e,i,u,s),as();var z=e.memoizedState;f!==L||N!==z||ba||t!==null&&t.dependencies!==null&&fo(t.dependencies)?(typeof g=="function"&&(Du(e,n,g,i),z=e.memoizedState),(_=ba||Lh(e,n,_,i,N,z,S)||t!==null&&t.dependencies!==null&&fo(t.dependencies))?(M||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(i,z,S),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(i,z,S)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=z),u.props=i,u.state=z,u.context=S,i=_):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=1024),i=!1)}return u=i,Oo(t,e),i=(e.flags&128)!==0,u||i?(u=e.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&i?(e.child=oi(e,t.child,null,s),e.child=oi(e,null,n,s)):ue(t,e,n,s),e.memoizedState=u.state,t=e.child):t=Wn(t,e,s),t}function tm(t,e,n,i){return ei(),e.flags|=256,ue(t,e,n,i),e.child}var _u={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Uu(t){return{baseLanes:t,cachePool:Xd()}}function Bu(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Qe),t}function em(t,e,n){var i=e.pendingProps,s=!1,u=(e.flags&128)!==0,f;if((f=u)||(f=t!==null&&t.memoizedState===null?!1:(kt.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):wa(),(t=_t)?(t=up(t,sn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ya!==null?{id:zn,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},n=Vd(t),n.return=e,e.child=n,oe=e,_t=null)):t=null,t===null)throw va(e);return xc(t)?e.lanes=32:e.lanes=536870912,null}var g=i.children;return i=i.fallback,s?(wa(),s=e.mode,g=zo({mode:"hidden",children:g},s),i=ti(i,s,n,null),g.return=e,i.return=e,g.sibling=i,e.child=g,i=e.child,i.memoizedState=Uu(n),i.childLanes=Bu(t,f,n),e.memoizedState=_u,us(null,i)):(Aa(e),Lu(e,g))}var S=t.memoizedState;if(S!==null&&(g=S.dehydrated,g!==null)){if(u)e.flags&256?(Aa(e),e.flags&=-257,e=Hu(t,e,n)):e.memoizedState!==null?(wa(),e.child=t.child,e.flags|=128,e=null):(wa(),g=i.fallback,s=e.mode,i=zo({mode:"visible",children:i.children},s),g=ti(g,s,n,null),g.flags|=2,i.return=e,g.return=e,i.sibling=g,e.child=i,oi(e,t.child,null,n),i=e.child,i.memoizedState=Uu(n),i.childLanes=Bu(t,f,n),e.memoizedState=_u,e=us(null,i));else if(Aa(e),xc(g)){if(f=g.nextSibling&&g.nextSibling.dataset,f)var M=f.dgst;f=M,i=Error(r(419)),i.stack="",i.digest=f,Wl({value:i,source:null,stack:null}),e=Hu(t,e,n)}else if(Ft||qi(t,e,n,!1),f=(n&t.childLanes)!==0,Ft||f){if(f=Rt,f!==null&&(i=Ps(f,n),i!==0&&i!==S.retryLane))throw S.retryLane=i,Ia(t,i),Oe(f,t,i),Ru;vc(g)||qo(),e=Hu(t,e,n)}else vc(g)?(e.flags|=192,e.child=t.child,e=null):(t=S.treeContext,_t=rn(g.nextSibling),oe=e,xt=!0,ga=null,sn=!1,t!==null&&Bd(e,t),e=Lu(e,i.children),e.flags|=4096);return e}return s?(wa(),g=i.fallback,s=e.mode,S=t.child,M=S.sibling,i=Kn(S,{mode:"hidden",children:i.children}),i.subtreeFlags=S.subtreeFlags&65011712,M!==null?g=Kn(M,g):(g=ti(g,s,n,null),g.flags|=2),g.return=e,i.return=e,i.sibling=g,e.child=i,us(null,i),i=e.child,g=t.child.memoizedState,g===null?g=Uu(n):(s=g.cachePool,s!==null?(S=Zt._currentValue,s=s.parent!==S?{parent:S,pool:S}:s):s=Xd(),g={baseLanes:g.baseLanes|n,cachePool:s}),i.memoizedState=g,i.childLanes=Bu(t,f,n),e.memoizedState=_u,us(t.child,i)):(Aa(e),n=t.child,t=n.sibling,n=Kn(n,{mode:"visible",children:i.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function Lu(t,e){return e=zo({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function zo(t,e){return t=Ge(22,t,null,e),t.lanes=0,t}function Hu(t,e,n){return oi(e,t.child,null,n),t=Lu(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function nm(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),tu(t.return,e,n)}function Yu(t,e,n,i,s,u){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:s,treeForkCount:u}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=i,f.tail=n,f.tailMode=s,f.treeForkCount=u)}function am(t,e,n){var i=e.pendingProps,s=i.revealOrder,u=i.tail;i=i.children;var f=kt.current,g=(f&2)!==0;if(g?(f=f&1|2,e.flags|=128):f&=1,k(kt,f),ue(t,e,i,n),i=xt?Pl:0,!g&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&nm(t,n,e);else if(t.tag===19)nm(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&&bo(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),Yu(e,!1,s,n,u,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&bo(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}Yu(e,!0,n,null,u,i);break;case"together":Yu(e,!1,null,null,void 0,i);break;default:e.memoizedState=null}return e.child}function Wn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),ja|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(qi(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,n=Kn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Kn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function qu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&fo(t)))}function nx(t,e,n){switch(e.tag){case 3:Ht(e,e.stateNode.containerInfo),xa(e,Zt,t.memoizedState.cache),ei();break;case 27:case 5:dn(e);break;case 4:Ht(e,e.stateNode.containerInfo);break;case 10:xa(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,du(e),null;break;case 13:var i=e.memoizedState;if(i!==null)return i.dehydrated!==null?(Aa(e),e.flags|=128,null):(n&e.child.childLanes)!==0?em(t,e,n):(Aa(e),t=Wn(t,e,n),t!==null?t.sibling:null);Aa(e);break;case 19:var s=(t.flags&128)!==0;if(i=(n&e.childLanes)!==0,i||(qi(t,e,n,!1),i=(n&e.childLanes)!==0),s){if(i)return am(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),k(kt,kt.current),i)break;return null;case 22:return e.lanes=0,Fh(t,e,n,e.pendingProps);case 24:xa(e,Zt,t.memoizedState.cache)}return Wn(t,e,n)}function im(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ft=!0;else{if(!qu(t,n)&&(e.flags&128)===0)return Ft=!1,nx(t,e,n);Ft=(t.flags&131072)!==0}else Ft=!1,xt&&(e.flags&1048576)!==0&&Ud(e,Pl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var i=e.pendingProps;if(t=li(e.elementType),e.type=t,typeof t=="function")Qr(t)?(i=ui(t,i),e.tag=1,e=Ih(null,e,t,i,n)):(e.tag=0,e=Vu(null,e,t,i,n));else{if(t!=null){var s=t.$$typeof;if(s===P){e.tag=11,e=Qh(null,e,t,i,n);break t}else if(s===et){e.tag=14,e=Zh(null,e,t,i,n);break t}}throw e=ee(t)||t,Error(r(306,e,""))}}return e;case 0:return Vu(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,s=ui(i,e.pendingProps),Ih(t,e,i,s,n);case 3:t:{if(Ht(e,e.stateNode.containerInfo),t===null)throw Error(r(387));i=e.pendingProps;var u=e.memoizedState;s=u.element,ou(t,e),is(e,i,null,n);var f=e.memoizedState;if(i=f.cache,xa(e,Zt,i),i!==u.cache&&eu(e,[Zt],n,!0),as(),i=f.element,u.isDehydrated)if(u={element:i,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=tm(t,e,i,n);break t}else if(i!==s){s=nn(Error(r(424)),e),Wl(s),e=tm(t,e,i,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,_t=rn(t.firstChild),oe=e,xt=!0,ga=null,sn=!0,n=Fd(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ei(),i===s){e=Wn(t,e,n);break t}ue(t,e,i,n)}e=e.child}return e;case 26:return Oo(t,e),t===null?(n=pp(e.type,null,e.pendingProps,null))?e.memoizedState=n:xt||(n=e.type,t=e.pendingProps,i=Jo(dt.current).createElement(n),i[Qt]=e,i[le]=t,ce(i,n,t),Xt(i),e.stateNode=i):e.memoizedState=pp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return dn(e),t===null&&xt&&(i=e.stateNode=dp(e.type,e.pendingProps,dt.current),oe=e,sn=!0,s=_t,za(e.type)?(bc=s,_t=rn(i.firstChild)):_t=s),ue(t,e,e.pendingProps.children,n),Oo(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&xt&&((s=i=_t)&&(i=zx(i,e.type,e.pendingProps,sn),i!==null?(e.stateNode=i,oe=e,_t=rn(i.firstChild),sn=!1,s=!0):s=!1),s||va(e)),dn(e),s=e.type,u=e.pendingProps,f=t!==null?t.memoizedProps:null,i=u.children,pc(s,u)?i=null:f!==null&&pc(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=mu(t,e,Zv,null,null,n),ws._currentValue=s),Oo(t,e),ue(t,e,i,n),e.child;case 6:return t===null&&xt&&((t=n=_t)&&(n=Rx(n,e.pendingProps,sn),n!==null?(e.stateNode=n,oe=e,_t=null,t=!0):t=!1),t||va(e)),null;case 13:return em(t,e,n);case 4:return Ht(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=oi(e,null,i,n):ue(t,e,i,n),e.child;case 11:return Qh(t,e,e.type,e.pendingProps,n);case 7:return ue(t,e,e.pendingProps,n),e.child;case 8:return ue(t,e,e.pendingProps.children,n),e.child;case 12:return ue(t,e,e.pendingProps.children,n),e.child;case 10:return i=e.pendingProps,xa(e,e.type,i.value),ue(t,e,i.children,n),e.child;case 9:return s=e.type._context,i=e.pendingProps.children,ai(e),s=re(s),i=i(s),e.flags|=1,ue(t,e,i,n),e.child;case 14:return Zh(t,e,e.type,e.pendingProps,n);case 15:return Jh(t,e,e.type,e.pendingProps,n);case 19:return am(t,e,n);case 31:return ex(t,e,n);case 22:return Fh(t,e,n,e.pendingProps);case 24:return ai(e),i=re(Zt),t===null?(s=iu(),s===null&&(s=Rt,u=nu(),s.pooledCache=u,u.refCount++,u!==null&&(s.pooledCacheLanes|=n),s=u),e.memoizedState={parent:i,cache:s},su(e),xa(e,Zt,s)):((t.lanes&n)!==0&&(ou(t,e),is(e,null,null,n),as()),s=t.memoizedState,u=e.memoizedState,s.parent!==i?(s={parent:i,cache:i},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),xa(e,Zt,i)):(i=u.cache,xa(e,Zt,i),i!==s.cache&&eu(e,[Zt],n,!0))),ue(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function $n(t){t.flags|=4}function Gu(t,e,n,i,s){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(s&335544128)===s)if(t.stateNode.complete)t.flags|=8192;else if(Om())t.flags|=8192;else throw si=yo,lu}else t.flags&=-16777217}function lm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!bp(e))if(Om())t.flags|=8192;else throw si=yo,lu}function Ro(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?jl():536870912,t.lanes|=e,Ii|=e)}function cs(t,e){if(!xt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function Ut(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags&65011712,i|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function ax(t,e,n){var i=e.pendingProps;switch(Pr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ut(e),null;case 1:return Ut(e),null;case 3:return n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),Jn(Zt),zt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Yi(e)?$n(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,$r())),Ut(e),null;case 26:var s=e.type,u=e.memoizedState;return t===null?($n(e),u!==null?(Ut(e),lm(e,u)):(Ut(e),Gu(e,s,null,i,n))):u?u!==t.memoizedState?($n(e),Ut(e),lm(e,u)):(Ut(e),e.flags&=-16777217):(t=t.memoizedProps,t!==i&&$n(e),Ut(e),Gu(e,s,t,i,n)),null;case 27:if(wn(e),n=dt.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&$n(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return Ut(e),null}t=W.current,Yi(e)?Ld(e):(t=dp(s,i,n),e.stateNode=t,$n(e))}return Ut(e),null;case 5:if(wn(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&$n(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return Ut(e),null}if(u=W.current,Yi(e))Ld(e);else{var f=Jo(dt.current);switch(u){case 1:u=f.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:u=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":u=f.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":u=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":u=f.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof i.is=="string"?f.createElement("select",{is:i.is}):f.createElement("select"),i.multiple?u.multiple=!0:i.size&&(u.size=i.size);break;default:u=typeof i.is=="string"?f.createElement(s,{is:i.is}):f.createElement(s)}}u[Qt]=e,u[le]=i;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)u.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=u;t:switch(ce(u,s,i),s){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}i&&$n(e)}}return Ut(e),Gu(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&$n(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(r(166));if(t=dt.current,Yi(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,s=oe,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}t[Qt]=e,t=!!(t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||ep(t.nodeValue,n)),t||va(e,!0)}else t=Jo(t).createTextNode(i),t[Qt]=e,e.stateNode=t}return Ut(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(i=Yi(e),n!==null){if(t===null){if(!i)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[Qt]=e}else ei(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),t=!1}else n=$r(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(ke(e),e):(ke(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Ut(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=Yi(e),i!==null&&i.dehydrated!==null){if(t===null){if(!s)throw Error(r(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));s[Qt]=e}else ei(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),s=!1}else s=$r(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(ke(e),e):(ke(e),null)}return ke(e),(e.flags&128)!==0?(e.lanes=n,e):(n=i!==null,t=t!==null&&t.memoizedState!==null,n&&(i=e.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==s&&(i.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Ro(e,e.updateQueue),Ut(e),null);case 4:return zt(),t===null&&cc(e.stateNode.containerInfo),Ut(e),null;case 10:return Jn(e.type),Ut(e),null;case 19:if(B(kt),i=e.memoizedState,i===null)return Ut(e),null;if(s=(e.flags&128)!==0,u=i.rendering,u===null)if(s)cs(i,!1);else{if(qt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=bo(t),u!==null){for(e.flags|=128,cs(i,!1),t=u.updateQueue,e.updateQueue=t,Ro(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Rd(n,t),n=n.sibling;return k(kt,kt.current&1|2),xt&&Qn(e,i.treeForkCount),e.child}t=t.sibling}i.tail!==null&&he()>Lo&&(e.flags|=128,s=!0,cs(i,!1),e.lanes=4194304)}else{if(!s)if(t=bo(u),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,Ro(e,t),cs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!xt)return Ut(e),null}else 2*he()-i.renderingStartTime>Lo&&n!==536870912&&(e.flags|=128,s=!0,cs(i,!1),e.lanes=4194304);i.isBackwards?(u.sibling=e.child,e.child=u):(t=i.last,t!==null?t.sibling=u:e.child=u,i.last=u)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=he(),t.sibling=null,n=kt.current,k(kt,s?n&1|2:n&1),xt&&Qn(e,i.treeForkCount),t):(Ut(e),null);case 22:case 23:return ke(e),fu(),i=e.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?(n&536870912)!==0&&(e.flags&128)===0&&(Ut(e),e.subtreeFlags&6&&(e.flags|=8192)):Ut(e),n=e.updateQueue,n!==null&&Ro(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),i=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),i!==n&&(e.flags|=2048),t!==null&&B(ii),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Jn(Zt),Ut(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function ix(t,e){switch(Pr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Jn(Zt),zt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return wn(e),null;case 31:if(e.memoizedState!==null){if(ke(e),e.alternate===null)throw Error(r(340));ei()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ke(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));ei()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return B(kt),null;case 4:return zt(),null;case 10:return Jn(e.type),null;case 22:case 23:return ke(e),fu(),t!==null&&B(ii),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Jn(Zt),null;case 25:return null;default:return null}}function sm(t,e){switch(Pr(e),e.tag){case 3:Jn(Zt),zt();break;case 26:case 27:case 5:wn(e);break;case 4:zt();break;case 31:e.memoizedState!==null&&ke(e);break;case 13:ke(e);break;case 19:B(kt);break;case 10:Jn(e.type);break;case 22:case 23:ke(e),fu(),t!==null&&B(ii);break;case 24:Jn(Zt)}}function fs(t,e){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var s=i.next;n=s;do{if((n.tag&t)===t){i=void 0;var u=n.create,f=n.inst;i=u(),f.destroy=i}n=n.next}while(n!==s)}}catch(g){Ct(e,e.return,g)}}function Ea(t,e,n){try{var i=e.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var u=s.next;i=u;do{if((i.tag&t)===t){var f=i.inst,g=f.destroy;if(g!==void 0){f.destroy=void 0,s=e;var S=n,M=g;try{M()}catch(_){Ct(s,S,_)}}}i=i.next}while(i!==u)}}catch(_){Ct(e,e.return,_)}}function om(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Wd(e,n)}catch(i){Ct(t,t.return,i)}}}function rm(t,e,n){n.props=ui(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){Ct(t,e,i)}}function ds(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:i=t.stateNode;break;default:i=t.stateNode}typeof n=="function"?t.refCleanup=n(i):n.current=i}}catch(s){Ct(t,e,s)}}function Vn(t,e){var n=t.ref,i=t.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(s){Ct(t,e,s)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Ct(t,e,s)}else n.current=null}function um(t){var e=t.type,n=t.memoizedProps,i=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break t;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(s){Ct(t,t.return,s)}}function Xu(t,e,n){try{var i=t.stateNode;Cx(i,t.type,n,e),i[le]=e}catch(s){Ct(t,t.return,s)}}function cm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&za(t.type)||t.tag===4}function ku(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||cm(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&&za(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 Ku(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=yn));else if(i!==4&&(i===27&&za(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Ku(t,e,n),t=t.sibling;t!==null;)Ku(t,e,n),t=t.sibling}function Vo(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(i===27&&za(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Vo(t,e,n),t=t.sibling;t!==null;)Vo(t,e,n),t=t.sibling}function fm(t){var e=t.stateNode,n=t.memoizedProps;try{for(var i=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);ce(e,i,n),e[Qt]=t,e[le]=n}catch(u){Ct(t,t.return,u)}}var In=!1,Pt=!1,Qu=!1,dm=typeof WeakSet=="function"?WeakSet:Set,ae=null;function lx(t,e){if(t=t.containerInfo,hc=er,t=wd(t),Hr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var s=i.anchorOffset,u=i.focusNode;i=i.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var f=0,g=-1,S=-1,M=0,_=0,L=t,N=null;e:for(;;){for(var z;L!==n||s!==0&&L.nodeType!==3||(g=f+s),L!==u||i!==0&&L.nodeType!==3||(S=f+i),L.nodeType===3&&(f+=L.nodeValue.length),(z=L.firstChild)!==null;)N=L,L=z;for(;;){if(L===t)break e;if(N===n&&++M===s&&(g=f),N===u&&++_===i&&(S=f),(z=L.nextSibling)!==null)break;L=N,N=L.parentNode}L=z}n=g===-1||S===-1?null:{start:g,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(mc={focusedElem:t,selectionRange:n},er=!1,ae=e;ae!==null;)if(e=ae,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ae=t;else for(;ae!==null;){switch(e=ae,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)s=t[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,s=u.memoizedProps,u=u.memoizedState,i=n.stateNode;try{var $=ui(n.type,s);t=i.getSnapshotBeforeUpdate($,u),i.__reactInternalSnapshotBeforeUpdate=t}catch(at){Ct(n,n.return,at)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)gc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":gc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,ae=t;break}ae=e.return}}function hm(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:ea(t,n),i&4&&fs(5,n);break;case 1:if(ea(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Ct(n,n.return,f)}else{var s=ui(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Ct(n,n.return,f)}}i&64&&om(n),i&512&&ds(n,n.return);break;case 3:if(ea(t,n),i&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Wd(t,e)}catch(f){Ct(n,n.return,f)}}break;case 27:e===null&&i&4&&fm(n);case 26:case 5:ea(t,n),e===null&&i&4&&um(n),i&512&&ds(n,n.return);break;case 12:ea(t,n);break;case 31:ea(t,n),i&4&&ym(t,n);break;case 13:ea(t,n),i&4&&gm(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=mx.bind(null,n),Vx(t,n))));break;case 22:if(i=n.memoizedState!==null||In,!i){e=e!==null&&e.memoizedState!==null||Pt,s=In;var u=Pt;In=i,(Pt=e)&&!u?na(t,n,(n.subtreeFlags&8772)!==0):ea(t,n),In=s,Pt=u}break;case 30:break;default:ea(t,n)}}function mm(t){var e=t.alternate;e!==null&&(t.alternate=null,mm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Pe(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 Bt=null,je=!1;function ta(t,e,n){for(n=n.child;n!==null;)pm(t,e,n),n=n.sibling}function pm(t,e,n){if(me&&typeof me.onCommitFiberUnmount=="function")try{me.onCommitFiberUnmount(ca,n)}catch{}switch(n.tag){case 26:Pt||Vn(n,e),ta(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Pt||Vn(n,e);var i=Bt,s=je;za(n.type)&&(Bt=n.stateNode,je=!1),ta(t,e,n),Ss(n.stateNode),Bt=i,je=s;break;case 5:Pt||Vn(n,e);case 6:if(i=Bt,s=je,Bt=null,ta(t,e,n),Bt=i,je=s,Bt!==null)if(je)try{(Bt.nodeType===9?Bt.body:Bt.nodeName==="HTML"?Bt.ownerDocument.body:Bt).removeChild(n.stateNode)}catch(u){Ct(n,e,u)}else try{Bt.removeChild(n.stateNode)}catch(u){Ct(n,e,u)}break;case 18:Bt!==null&&(je?(t=Bt,op(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ol(t)):op(Bt,n.stateNode));break;case 4:i=Bt,s=je,Bt=n.stateNode.containerInfo,je=!0,ta(t,e,n),Bt=i,je=s;break;case 0:case 11:case 14:case 15:Ea(2,n,e),Pt||Ea(4,n,e),ta(t,e,n);break;case 1:Pt||(Vn(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"&&rm(n,e,i)),ta(t,e,n);break;case 21:ta(t,e,n);break;case 22:Pt=(i=Pt)||n.memoizedState!==null,ta(t,e,n),Pt=i;break;default:ta(t,e,n)}}function ym(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ol(t)}catch(n){Ct(e,e.return,n)}}}function gm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ol(t)}catch(n){Ct(e,e.return,n)}}function sx(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new dm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new dm),e;default:throw Error(r(435,t.tag))}}function _o(t,e){var n=sx(t);e.forEach(function(i){if(!n.has(i)){n.add(i);var s=px.bind(null,t,i);i.then(s,s)}})}function Me(t,e){var n=e.deletions;if(n!==null)for(var i=0;i<n.length;i++){var s=n[i],u=t,f=e,g=f;t:for(;g!==null;){switch(g.tag){case 27:if(za(g.type)){Bt=g.stateNode,je=!1;break t}break;case 5:Bt=g.stateNode,je=!1;break t;case 3:case 4:Bt=g.stateNode.containerInfo,je=!0;break t}g=g.return}if(Bt===null)throw Error(r(160));pm(u,f,s),Bt=null,je=!1,u=s.alternate,u!==null&&(u.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)vm(e,t),e=e.sibling}var vn=null;function vm(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Me(e,t),Ne(t),i&4&&(Ea(3,t,t.return),fs(3,t),Ea(5,t,t.return));break;case 1:Me(e,t),Ne(t),i&512&&(Pt||n===null||Vn(n,n.return)),i&64&&In&&(t=t.updateQueue,t!==null&&(i=t.callbacks,i!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var s=vn;if(Me(e,t),Ne(t),i&512&&(Pt||n===null||Vn(n,n.return)),i&4){var u=n!==null?n.memoizedState:null;if(i=t.memoizedState,n===null)if(i===null)if(t.stateNode===null){t:{i=t.type,n=t.memoizedProps,s=s.ownerDocument||s;e:switch(i){case"title":u=s.getElementsByTagName("title")[0],(!u||u[we]||u[Qt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=s.createElement(i),s.head.insertBefore(u,s.querySelector("head > title"))),ce(u,i,n),u[Qt]=t,Xt(u),i=u;break t;case"link":var f=vp("link","href",s).get(i+(n.href||""));if(f){for(var g=0;g<f.length;g++)if(u=f[g],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(g,1);break e}}u=s.createElement(i),ce(u,i,n),s.head.appendChild(u);break;case"meta":if(f=vp("meta","content",s).get(i+(n.content||""))){for(g=0;g<f.length;g++)if(u=f[g],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(g,1);break e}}u=s.createElement(i),ce(u,i,n),s.head.appendChild(u);break;default:throw Error(r(468,i))}u[Qt]=t,Xt(u),i=u}t.stateNode=i}else xp(s,t.type,t.stateNode);else t.stateNode=gp(s,i,t.memoizedProps);else u!==i?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,i===null?xp(s,t.type,t.stateNode):gp(s,i,t.memoizedProps)):i===null&&t.stateNode!==null&&Xu(t,t.memoizedProps,n.memoizedProps)}break;case 27:Me(e,t),Ne(t),i&512&&(Pt||n===null||Vn(n,n.return)),n!==null&&i&4&&Xu(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Me(e,t),Ne(t),i&512&&(Pt||n===null||Vn(n,n.return)),t.flags&32){s=t.stateNode;try{On(s,"")}catch($){Ct(t,t.return,$)}}i&4&&t.stateNode!=null&&(s=t.memoizedProps,Xu(t,s,n!==null?n.memoizedProps:s)),i&1024&&(Qu=!0);break;case 6:if(Me(e,t),Ne(t),i&4){if(t.stateNode===null)throw Error(r(162));i=t.memoizedProps,n=t.stateNode;try{n.nodeValue=i}catch($){Ct(t,t.return,$)}}break;case 3:if(Wo=null,s=vn,vn=Fo(e.containerInfo),Me(e,t),vn=s,Ne(t),i&4&&n!==null&&n.memoizedState.isDehydrated)try{ol(e.containerInfo)}catch($){Ct(t,t.return,$)}Qu&&(Qu=!1,xm(t));break;case 4:i=vn,vn=Fo(t.stateNode.containerInfo),Me(e,t),Ne(t),vn=i;break;case 12:Me(e,t),Ne(t);break;case 31:Me(e,t),Ne(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,_o(t,i)));break;case 13:Me(e,t),Ne(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Bo=he()),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,_o(t,i)));break;case 22:s=t.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,M=In,_=Pt;if(In=M||s,Pt=_||S,Me(e,t),Pt=_,In=M,Ne(t),i&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||S||In||Pt||ci(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){S=n=e;try{if(u=S.stateNode,s)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{g=S.stateNode;var L=S.memoizedProps.style,N=L!=null&&L.hasOwnProperty("display")?L.display:null;g.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch($){Ct(S,S.return,$)}}}else if(e.tag===6){if(n===null){S=e;try{S.stateNode.nodeValue=s?"":S.memoizedProps}catch($){Ct(S,S.return,$)}}}else if(e.tag===18){if(n===null){S=e;try{var z=S.stateNode;s?rp(z,!0):rp(S.stateNode,!1)}catch($){Ct(S,S.return,$)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}i&4&&(i=t.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,_o(t,n))));break;case 19:Me(e,t),Ne(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,_o(t,i)));break;case 30:break;case 21:break;default:Me(e,t),Ne(t)}}function Ne(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(cm(i)){n=i;break}i=i.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var s=n.stateNode,u=ku(t);Vo(t,u,s);break;case 5:var f=n.stateNode;n.flags&32&&(On(f,""),n.flags&=-33);var g=ku(t);Vo(t,g,f);break;case 3:case 4:var S=n.stateNode.containerInfo,M=ku(t);Ku(t,M,S);break;default:throw Error(r(161))}}catch(_){Ct(t,t.return,_)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function xm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;xm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function ea(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)hm(t,e.alternate,e),e=e.sibling}function ci(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Ea(4,e,e.return),ci(e);break;case 1:Vn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&rm(e,e.return,n),ci(e);break;case 27:Ss(e.stateNode);case 26:case 5:Vn(e,e.return),ci(e);break;case 22:e.memoizedState===null&&ci(e);break;case 30:ci(e);break;default:ci(e)}t=t.sibling}}function na(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var i=e.alternate,s=t,u=e,f=u.flags;switch(u.tag){case 0:case 11:case 15:na(s,u,n),fs(4,u);break;case 1:if(na(s,u,n),i=u,s=i.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(M){Ct(i,i.return,M)}if(i=u,s=i.updateQueue,s!==null){var g=i.stateNode;try{var S=s.shared.hiddenCallbacks;if(S!==null)for(s.shared.hiddenCallbacks=null,s=0;s<S.length;s++)Pd(S[s],g)}catch(M){Ct(i,i.return,M)}}n&&f&64&&om(u),ds(u,u.return);break;case 27:fm(u);case 26:case 5:na(s,u,n),n&&i===null&&f&4&&um(u),ds(u,u.return);break;case 12:na(s,u,n);break;case 31:na(s,u,n),n&&f&4&&ym(s,u);break;case 13:na(s,u,n),n&&f&4&&gm(s,u);break;case 22:u.memoizedState===null&&na(s,u,n),ds(u,u.return);break;case 30:break;default:na(s,u,n)}e=e.sibling}}function Zu(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&&$l(n))}function Ju(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&$l(t))}function xn(t,e,n,i){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)bm(t,e,n,i),e=e.sibling}function bm(t,e,n,i){var s=e.flags;switch(e.tag){case 0:case 11:case 15:xn(t,e,n,i),s&2048&&fs(9,e);break;case 1:xn(t,e,n,i);break;case 3:xn(t,e,n,i),s&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&$l(t)));break;case 12:if(s&2048){xn(t,e,n,i),t=e.stateNode;try{var u=e.memoizedProps,f=u.id,g=u.onPostCommit;typeof g=="function"&&g(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(S){Ct(e,e.return,S)}}else xn(t,e,n,i);break;case 31:xn(t,e,n,i);break;case 13:xn(t,e,n,i);break;case 23:break;case 22:u=e.stateNode,f=e.alternate,e.memoizedState!==null?u._visibility&2?xn(t,e,n,i):hs(t,e):u._visibility&2?xn(t,e,n,i):(u._visibility|=2,Pi(t,e,n,i,(e.subtreeFlags&10256)!==0||!1)),s&2048&&Zu(f,e);break;case 24:xn(t,e,n,i),s&2048&&Ju(e.alternate,e);break;default:xn(t,e,n,i)}}function Pi(t,e,n,i,s){for(s=s&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,f=e,g=n,S=i,M=f.flags;switch(f.tag){case 0:case 11:case 15:Pi(u,f,g,S,s),fs(8,f);break;case 23:break;case 22:var _=f.stateNode;f.memoizedState!==null?_._visibility&2?Pi(u,f,g,S,s):hs(u,f):(_._visibility|=2,Pi(u,f,g,S,s)),s&&M&2048&&Zu(f.alternate,f);break;case 24:Pi(u,f,g,S,s),s&&M&2048&&Ju(f.alternate,f);break;default:Pi(u,f,g,S,s)}e=e.sibling}}function hs(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,i=e,s=i.flags;switch(i.tag){case 22:hs(n,i),s&2048&&Zu(i.alternate,i);break;case 24:hs(n,i),s&2048&&Ju(i.alternate,i);break;default:hs(n,i)}e=e.sibling}}var ms=8192;function Wi(t,e,n){if(t.subtreeFlags&ms)for(t=t.child;t!==null;)Sm(t,e,n),t=t.sibling}function Sm(t,e,n){switch(t.tag){case 26:Wi(t,e,n),t.flags&ms&&t.memoizedState!==null&&Qx(n,vn,t.memoizedState,t.memoizedProps);break;case 5:Wi(t,e,n);break;case 3:case 4:var i=vn;vn=Fo(t.stateNode.containerInfo),Wi(t,e,n),vn=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=ms,ms=16777216,Wi(t,e,n),ms=i):Wi(t,e,n));break;default:Wi(t,e,n)}}function Tm(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 ps(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];ae=i,wm(i,t)}Tm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Am(t),t=t.sibling}function Am(t){switch(t.tag){case 0:case 11:case 15:ps(t),t.flags&2048&&Ea(9,t,t.return);break;case 3:ps(t);break;case 12:ps(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Uo(t)):ps(t);break;default:ps(t)}}function Uo(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];ae=i,wm(i,t)}Tm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ea(8,e,e.return),Uo(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Uo(e));break;default:Uo(e)}t=t.sibling}}function wm(t,e){for(;ae!==null;){var n=ae;switch(n.tag){case 0:case 11:case 15:Ea(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:$l(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,ae=i;else t:for(n=t;ae!==null;){i=ae;var s=i.sibling,u=i.return;if(mm(i),i===n){ae=null;break t}if(s!==null){s.return=u,ae=s;break t}ae=u}}}var ox={getCacheForType:function(t){var e=re(Zt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return re(Zt).controller.signal}},rx=typeof WeakMap=="function"?WeakMap:Map,Tt=0,Rt=null,pt=null,gt=0,Et=0,Ke=null,Ca=!1,$i=!1,Fu=!1,aa=0,qt=0,ja=0,fi=0,Pu=0,Qe=0,Ii=0,ys=null,De=null,Wu=!1,Bo=0,Em=0,Lo=1/0,Ho=null,Ma=null,$t=0,Na=null,tl=null,ia=0,$u=0,Iu=null,Cm=null,gs=0,tc=null;function Ze(){return(Tt&2)!==0&>!==0?gt&-gt:R.T!==null?sc():Dl()}function jm(){if(Qe===0)if((gt&536870912)===0||xt){var t=Yn;Yn<<=1,(Yn&3932160)===0&&(Yn=262144),Qe=t}else Qe=536870912;return t=Xe.current,t!==null&&(t.flags|=32),Qe}function Oe(t,e,n){(t===Rt&&(Et===2||Et===9)||t.cancelPendingCommit!==null)&&(el(t,0),Da(t,gt,Qe,!1)),Cn(t,n),((Tt&2)===0||t!==Rt)&&(t===Rt&&((Tt&2)===0&&(fi|=n),qt===4&&Da(t,gt,Qe,!1)),_n(t))}function Mm(t,e,n){if((Tt&6)!==0)throw Error(r(327));var i=!n&&(e&127)===0&&(e&t.expiredLanes)===0||fa(t,e),s=i?fx(t,e):nc(t,e,!0),u=i;do{if(s===0){$i&&!i&&Da(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!ux(n)){s=nc(t,e,!1),u=!1;continue}if(s===2){if(u=e,t.errorRecoveryDisabledLanes&u)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var g=t;s=ys;var S=g.current.memoizedState.isDehydrated;if(S&&(el(g,f).flags|=256),f=nc(g,f,!1),f!==2){if(Fu&&!S){g.errorRecoveryDisabledLanes|=u,fi|=u,s=4;break t}u=De,De=s,u!==null&&(De===null?De=u:De.push.apply(De,u))}s=f}if(u=!1,s!==2)continue}}if(s===1){el(t,0),Da(t,e,0,!0);break}t:{switch(i=t,u=s,u){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Da(i,e,Qe,!Ca);break t;case 2:De=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(s=Bo+300-he(),10<s)){if(Da(i,e,Qe,!Ca),ne(i,0,!0)!==0)break t;ia=e,i.timeoutHandle=lp(Nm.bind(null,i,n,De,Ho,Wu,e,Qe,fi,Ii,Ca,u,"Throttled",-0,0),s);break t}Nm(i,n,De,Ho,Wu,e,Qe,fi,Ii,Ca,u,null,-0,0)}}break}while(!0);_n(t)}function Nm(t,e,n,i,s,u,f,g,S,M,_,L,N,z){if(t.timeoutHandle=-1,L=e.subtreeFlags,L&8192||(L&16785408)===16785408){L={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yn},Sm(e,u,L);var $=(u&62914560)===u?Bo-he():(u&4194048)===u?Em-he():0;if($=Zx(L,$),$!==null){ia=u,t.cancelPendingCommit=$(Bm.bind(null,t,e,u,n,i,s,f,g,S,_,L,null,N,z)),Da(t,u,f,!M);return}}Bm(t,e,u,n,i,s,f,g,S)}function ux(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var s=n[i],u=s.getSnapshot;s=s.value;try{if(!qe(u(),s))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Da(t,e,n,i){e&=~Pu,e&=~fi,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var s=e;0<s;){var u=31-ie(s),f=1<<u;i[u]=-1,s&=~f}n!==0&&Fs(t,n,e)}function Yo(){return(Tt&6)===0?(vs(0),!1):!0}function ec(){if(pt!==null){if(Et===0)var t=pt.return;else t=pt,Zn=ni=null,gu(t),Ki=null,ts=0,t=pt;for(;t!==null;)sm(t.alternate,t),t=t.return;pt=null}}function el(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Nx(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),ia=0,ec(),Rt=t,pt=n=Kn(t.current,null),gt=e,Et=0,Ke=null,Ca=!1,$i=fa(t,e),Fu=!1,Ii=Qe=Pu=fi=ja=qt=0,De=ys=null,Wu=!1,(e&8)!==0&&(e|=e&32);var i=t.entangledLanes;if(i!==0)for(t=t.entanglements,i&=e;0<i;){var s=31-ie(i),u=1<<s;e|=t[s],i&=~u}return aa=e,so(),n}function Dm(t,e){ct=null,R.H=rs,e===ki||e===po?(e=Qd(),Et=3):e===lu?(e=Qd(),Et=4):Et=e===Ru?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ke=e,pt===null&&(qt=1,No(t,nn(e,t.current)))}function Om(){var t=Xe.current;return t===null?!0:(gt&4194048)===gt?on===null:(gt&62914560)===gt||(gt&536870912)!==0?t===on:!1}function zm(){var t=R.H;return R.H=rs,t===null?rs:t}function Rm(){var t=R.A;return R.A=ox,t}function qo(){qt=4,Ca||(gt&4194048)!==gt&&Xe.current!==null||($i=!0),(ja&134217727)===0&&(fi&134217727)===0||Rt===null||Da(Rt,gt,Qe,!1)}function nc(t,e,n){var i=Tt;Tt|=2;var s=zm(),u=Rm();(Rt!==t||gt!==e)&&(Ho=null,el(t,e)),e=!1;var f=qt;t:do try{if(Et!==0&&pt!==null){var g=pt,S=Ke;switch(Et){case 8:ec(),f=6;break t;case 3:case 2:case 9:case 6:Xe.current===null&&(e=!0);var M=Et;if(Et=0,Ke=null,nl(t,g,S,M),n&&$i){f=0;break t}break;default:M=Et,Et=0,Ke=null,nl(t,g,S,M)}}cx(),f=qt;break}catch(_){Dm(t,_)}while(!0);return e&&t.shellSuspendCounter++,Zn=ni=null,Tt=i,R.H=s,R.A=u,pt===null&&(Rt=null,gt=0,so()),f}function cx(){for(;pt!==null;)Vm(pt)}function fx(t,e){var n=Tt;Tt|=2;var i=zm(),s=Rm();Rt!==t||gt!==e?(Ho=null,Lo=he()+500,el(t,e)):$i=fa(t,e);t:do try{if(Et!==0&&pt!==null){e=pt;var u=Ke;e:switch(Et){case 1:Et=0,Ke=null,nl(t,e,u,1);break;case 2:case 9:if(kd(u)){Et=0,Ke=null,_m(e);break}e=function(){Et!==2&&Et!==9||Rt!==t||(Et=7),_n(t)},u.then(e,e);break t;case 3:Et=7;break t;case 4:Et=5;break t;case 7:kd(u)?(Et=0,Ke=null,_m(e)):(Et=0,Ke=null,nl(t,e,u,7));break;case 5:var f=null;switch(pt.tag){case 26:f=pt.memoizedState;case 5:case 27:var g=pt;if(f?bp(f):g.stateNode.complete){Et=0,Ke=null;var S=g.sibling;if(S!==null)pt=S;else{var M=g.return;M!==null?(pt=M,Go(M)):pt=null}break e}}Et=0,Ke=null,nl(t,e,u,5);break;case 6:Et=0,Ke=null,nl(t,e,u,6);break;case 8:ec(),qt=6;break t;default:throw Error(r(462))}}dx();break}catch(_){Dm(t,_)}while(!0);return Zn=ni=null,R.H=i,R.A=s,Tt=n,pt!==null?0:(Rt=null,gt=0,so(),qt)}function dx(){for(;pt!==null&&!En();)Vm(pt)}function Vm(t){var e=im(t.alternate,t,aa);t.memoizedProps=t.pendingProps,e===null?Go(t):pt=e}function _m(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=$h(n,e,e.pendingProps,e.type,void 0,gt);break;case 11:e=$h(n,e,e.pendingProps,e.type.render,e.ref,gt);break;case 5:gu(e);default:sm(n,e),e=pt=Rd(e,aa),e=im(n,e,aa)}t.memoizedProps=t.pendingProps,e===null?Go(t):pt=e}function nl(t,e,n,i){Zn=ni=null,gu(e),Ki=null,ts=0;var s=e.return;try{if(tx(t,s,e,n,gt)){qt=1,No(t,nn(n,t.current)),pt=null;return}}catch(u){if(s!==null)throw pt=s,u;qt=1,No(t,nn(n,t.current)),pt=null;return}e.flags&32768?(xt||i===1?t=!0:$i||(gt&536870912)!==0?t=!1:(Ca=t=!0,(i===2||i===9||i===3||i===6)&&(i=Xe.current,i!==null&&i.tag===13&&(i.flags|=16384))),Um(e,t)):Go(e)}function Go(t){var e=t;do{if((e.flags&32768)!==0){Um(e,Ca);return}t=e.return;var n=ax(e.alternate,e,aa);if(n!==null){pt=n;return}if(e=e.sibling,e!==null){pt=e;return}pt=e=t}while(e!==null);qt===0&&(qt=5)}function Um(t,e){do{var n=ix(t.alternate,t);if(n!==null){n.flags&=32767,pt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){pt=t;return}pt=t=n}while(t!==null);qt=6,pt=null}function Bm(t,e,n,i,s,u,f,g,S){t.cancelPendingCommit=null;do Xo();while($t!==0);if((Tt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(u=e.lanes|e.childLanes,u|=kr,_e(t,n,u,f,g,S),t===Rt&&(pt=Rt=null,gt=0),tl=e,Na=t,ia=n,$u=u,Iu=s,Cm=i,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,yx(ua,function(){return Gm(),null})):(t.callbackNode=null,t.callbackPriority=0),i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=R.T,R.T=null,s=H.p,H.p=2,f=Tt,Tt|=4;try{lx(t,e,n)}finally{Tt=f,H.p=s,R.T=i}}$t=1,Lm(),Hm(),Ym()}}function Lm(){if($t===1){$t=0;var t=Na,e=tl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=R.T,R.T=null;var i=H.p;H.p=2;var s=Tt;Tt|=4;try{vm(e,t);var u=mc,f=wd(t.containerInfo),g=u.focusedElem,S=u.selectionRange;if(f!==g&&g&&g.ownerDocument&&Ad(g.ownerDocument.documentElement,g)){if(S!==null&&Hr(g)){var M=S.start,_=S.end;if(_===void 0&&(_=M),"selectionStart"in g)g.selectionStart=M,g.selectionEnd=Math.min(_,g.value.length);else{var L=g.ownerDocument||document,N=L&&L.defaultView||window;if(N.getSelection){var z=N.getSelection(),$=g.textContent.length,at=Math.min(S.start,$),Ot=S.end===void 0?at:Math.min(S.end,$);!z.extend&&at>Ot&&(f=Ot,Ot=at,at=f);var E=Td(g,at),A=Td(g,Ot);if(E&&A&&(z.rangeCount!==1||z.anchorNode!==E.node||z.anchorOffset!==E.offset||z.focusNode!==A.node||z.focusOffset!==A.offset)){var j=L.createRange();j.setStart(E.node,E.offset),z.removeAllRanges(),at>Ot?(z.addRange(j),z.extend(A.node,A.offset)):(j.setEnd(A.node,A.offset),z.addRange(j))}}}}for(L=[],z=g;z=z.parentNode;)z.nodeType===1&&L.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<L.length;g++){var U=L[g];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}er=!!hc,mc=hc=null}finally{Tt=s,H.p=i,R.T=n}}t.current=e,$t=2}}function Hm(){if($t===2){$t=0;var t=Na,e=tl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=R.T,R.T=null;var i=H.p;H.p=2;var s=Tt;Tt|=4;try{hm(t,e.alternate,e)}finally{Tt=s,H.p=i,R.T=n}}$t=3}}function Ym(){if($t===4||$t===3){$t=0,Sl();var t=Na,e=tl,n=ia,i=Cm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?$t=5:($t=0,tl=Na=null,qm(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Ma=null),Nl(n),e=e.stateNode,me&&typeof me.onCommitFiberRoot=="function")try{me.onCommitFiberRoot(ca,e,void 0,(e.current.flags&128)===128)}catch{}if(i!==null){e=R.T,s=H.p,H.p=2,R.T=null;try{for(var u=t.onRecoverableError,f=0;f<i.length;f++){var g=i[f];u(g.value,{componentStack:g.stack})}}finally{R.T=e,H.p=s}}(ia&3)!==0&&Xo(),_n(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===tc?gs++:(gs=0,tc=t):gs=0,vs(0)}}function qm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,$l(e)))}function Xo(){return Lm(),Hm(),Ym(),Gm()}function Gm(){if($t!==5)return!1;var t=Na,e=$u;$u=0;var n=Nl(ia),i=R.T,s=H.p;try{H.p=32>n?32:n,R.T=null,n=Iu,Iu=null;var u=Na,f=ia;if($t=0,tl=Na=null,ia=0,(Tt&6)!==0)throw Error(r(331));var g=Tt;if(Tt|=4,Am(u.current),bm(u,u.current,f,n),Tt=g,vs(0,!1),me&&typeof me.onPostCommitFiberRoot=="function")try{me.onPostCommitFiberRoot(ca,u)}catch{}return!0}finally{H.p=s,R.T=i,qm(t,e)}}function Xm(t,e,n){e=nn(n,e),e=zu(t.stateNode,e,2),t=Ta(t,e,2),t!==null&&(Cn(t,2),_n(t))}function Ct(t,e,n){if(t.tag===3)Xm(t,t,n);else for(;e!==null;){if(e.tag===3){Xm(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Ma===null||!Ma.has(i))){t=nn(n,t),n=kh(2),i=Ta(e,n,2),i!==null&&(Kh(n,i,e,t),Cn(i,2),_n(i));break}}e=e.return}}function ac(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new rx;var s=new Set;i.set(e,s)}else s=i.get(e),s===void 0&&(s=new Set,i.set(e,s));s.has(n)||(Fu=!0,s.add(n),t=hx.bind(null,t,e,n),e.then(t,t))}function hx(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Rt===t&&(gt&n)===n&&(qt===4||qt===3&&(gt&62914560)===gt&&300>he()-Bo?(Tt&2)===0&&el(t,0):Pu|=n,Ii===gt&&(Ii=0)),_n(t)}function km(t,e){e===0&&(e=jl()),t=Ia(t,e),t!==null&&(Cn(t,e),_n(t))}function mx(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),km(t,n)}function px(t,e){var n=0;switch(t.tag){case 31:case 13:var i=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(e),km(t,n)}function yx(t,e){return ve(t,e)}var ko=null,al=null,ic=!1,Ko=!1,lc=!1,Oa=0;function _n(t){t!==al&&t.next===null&&(al===null?ko=al=t:al=al.next=t),Ko=!0,ic||(ic=!0,vx())}function vs(t,e){if(!lc&&Ko){lc=!0;do for(var n=!1,i=ko;i!==null;){if(t!==0){var s=i.pendingLanes;if(s===0)var u=0;else{var f=i.suspendedLanes,g=i.pingedLanes;u=(1<<31-ie(42|t)+1)-1,u&=s&~(f&~g),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Jm(i,u))}else u=gt,u=ne(i,i===Rt?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(u&3)===0||fa(i,u)||(n=!0,Jm(i,u));i=i.next}while(n);lc=!1}}function gx(){Km()}function Km(){Ko=ic=!1;var t=0;Oa!==0&&Mx()&&(t=Oa);for(var e=he(),n=null,i=ko;i!==null;){var s=i.next,u=Qm(i,e);u===0?(i.next=null,n===null?ko=s:n.next=s,s===null&&(al=n)):(n=i,(t!==0||(u&3)!==0)&&(Ko=!0)),i=s}$t!==0&&$t!==5||vs(t),Oa!==0&&(Oa=0)}function Qm(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,s=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var f=31-ie(u),g=1<<f,S=s[f];S===-1?((g&n)===0||(g&i)!==0)&&(s[f]=Si(g,e)):S<=e&&(t.expiredLanes|=g),u&=~g}if(e=Rt,n=gt,n=ne(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,n===0||t===e&&(Et===2||Et===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&vi(i),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||fa(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(i!==null&&vi(i),Nl(n)){case 2:case 8:n=Zs;break;case 32:n=ua;break;case 268435456:n=xi;break;default:n=ua}return i=Zm.bind(null,t),n=ve(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&vi(i),t.callbackPriority=2,t.callbackNode=null,2}function Zm(t,e){if($t!==0&&$t!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Xo()&&t.callbackNode!==n)return null;var i=gt;return i=ne(t,t===Rt?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(Mm(t,i,e),Qm(t,he()),t.callbackNode!=null&&t.callbackNode===n?Zm.bind(null,t):null)}function Jm(t,e){if(Xo())return null;Mm(t,e,!0)}function vx(){Dx(function(){(Tt&6)!==0?ve(Re,gx):Km()})}function sc(){if(Oa===0){var t=Gi;t===0&&(t=Xa,Xa<<=1,(Xa&261888)===0&&(Xa=256)),Oa=t}return Oa}function Fm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ei(""+t)}function Pm(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function xx(t,e,n,i,s){if(e==="submit"&&n&&n.stateNode===s){var u=Fm((s[le]||null).action),f=i.submitter;f&&(e=(e=f[le]||null)?Fm(e.formAction):f.getAttribute("formAction"),e!==null&&(u=e,f=null));var g=new wt("action","action",null,i,s);t.push({event:g,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Oa!==0){var S=f?Pm(s,f):new FormData(s);Cu(n,{pending:!0,data:S,method:s.method,action:u},null,S)}}else typeof u=="function"&&(g.preventDefault(),S=f?Pm(s,f):new FormData(s),Cu(n,{pending:!0,data:S,method:s.method,action:u},u,S))},currentTarget:s}]})}}for(var oc=0;oc<Xr.length;oc++){var rc=Xr[oc],bx=rc.toLowerCase(),Sx=rc[0].toUpperCase()+rc.slice(1);gn(bx,"on"+Sx)}gn(jd,"onAnimationEnd"),gn(Md,"onAnimationIteration"),gn(Nd,"onAnimationStart"),gn("dblclick","onDoubleClick"),gn("focusin","onFocus"),gn("focusout","onBlur"),gn(Bv,"onTransitionRun"),gn(Lv,"onTransitionStart"),gn(Hv,"onTransitionCancel"),gn(Dd,"onTransitionEnd"),Ie("onMouseEnter",["mouseout","mouseover"]),Ie("onMouseLeave",["mouseout","mouseover"]),Ie("onPointerEnter",["pointerout","pointerover"]),Ie("onPointerLeave",["pointerout","pointerover"]),pn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pn("onBeforeInput",["compositionend","keypress","textInput","paste"]),pn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Tx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xs));function Wm(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],s=i.event;i=i.listeners;t:{var u=void 0;if(e)for(var f=i.length-1;0<=f;f--){var g=i[f],S=g.instance,M=g.currentTarget;if(g=g.listener,S!==u&&s.isPropagationStopped())break t;u=g,s.currentTarget=M;try{u(s)}catch(_){lo(_)}s.currentTarget=null,u=S}else for(f=0;f<i.length;f++){if(g=i[f],S=g.instance,M=g.currentTarget,g=g.listener,S!==u&&s.isPropagationStopped())break t;u=g,s.currentTarget=M;try{u(s)}catch(_){lo(_)}s.currentTarget=null,u=S}}}}function yt(t,e){var n=e[Fe];n===void 0&&(n=e[Fe]=new Set);var i=t+"__bubble";n.has(i)||($m(e,t,2,!1),n.add(i))}function uc(t,e,n){var i=0;e&&(i|=4),$m(n,t,i,e)}var Qo="_reactListening"+Math.random().toString(36).slice(2);function cc(t){if(!t[Qo]){t[Qo]=!0,da.forEach(function(n){n!=="selectionchange"&&(Tx.has(n)||uc(n,!1,t),uc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Qo]||(e[Qo]=!0,uc("selectionchange",!1,e))}}function $m(t,e,n,i){switch(jp(e)){case 2:var s=Px;break;case 8:s=Wx;break;default:s=Ec}n=s.bind(null,e,n,t),s=void 0,!ji||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),i?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function fc(t,e,n,i,s){var u=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var f=i.tag;if(f===3||f===4){var g=i.stateNode.containerInfo;if(g===s)break;if(f===4)for(f=i.return;f!==null;){var S=f.tag;if((S===3||S===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;g!==null;){if(f=Mn(g),f===null)return;if(S=f.tag,S===5||S===6||S===26||S===27){i=u=f;continue t}g=g.parentNode}}i=i.return}no(function(){var M=u,_=Ci(n),L=[];t:{var N=Od.get(t);if(N!==void 0){var z=wt,$=t;switch(t){case"keypress":if(Di(n)===0)break t;case"keydown":case"keyup":z=pv;break;case"focusin":$="focus",z=Vr;break;case"focusout":$="blur",z=Vr;break;case"beforeblur":case"afterblur":z=Vr;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=av;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=vv;break;case jd:case Md:case Nd:z=sv;break;case Dd:z=bv;break;case"scroll":case"scrollend":z=zi;break;case"wheel":z=Tv;break;case"copy":case"cut":case"paste":z=rv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=rd;break;case"toggle":case"beforetoggle":z=wv}var at=(e&4)!==0,Ot=!at&&(t==="scroll"||t==="scrollend"),E=at?N!==null?N+"Capture":null:N;at=[];for(var A=M,j;A!==null;){var U=A;if(j=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||j===null||E===null||(U=Fa(A,E),U!=null&&at.push(bs(A,U,j))),Ot)break;A=A.return}0<at.length&&(N=new z(N,$,null,n,_),L.push({event:N,listeners:at}))}}if((e&7)===0){t:{if(N=t==="mouseover"||t==="pointerover",z=t==="mouseout"||t==="pointerout",N&&n!==Gl&&($=n.relatedTarget||n.fromElement)&&(Mn($)||$[Gn]))break t;if((z||N)&&(N=_.window===_?_:(N=_.ownerDocument)?N.defaultView||N.parentWindow:window,z?($=n.relatedTarget||n.toElement,z=M,$=$?Mn($):null,$!==null&&(Ot=h($),at=$.tag,$!==Ot||at!==5&&at!==27&&at!==6)&&($=null)):(z=null,$=M),z!==$)){if(at=sd,U="onMouseLeave",E="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(at=rd,U="onPointerLeave",E="onPointerEnter",A="pointer"),Ot=z==null?N:Nn(z),j=$==null?N:Nn($),N=new at(U,A+"leave",z,n,_),N.target=Ot,N.relatedTarget=j,U=null,Mn(_)===M&&(at=new at(E,A+"enter",$,n,_),at.target=j,at.relatedTarget=Ot,U=at),Ot=U,z&&$)e:{for(at=Ax,E=z,A=$,j=0,U=E;U;U=at(U))j++;U=0;for(var nt=A;nt;nt=at(nt))U++;for(;0<j-U;)E=at(E),j--;for(;0<U-j;)A=at(A),U--;for(;j--;){if(E===A||A!==null&&E===A.alternate){at=E;break e}E=at(E),A=at(A)}at=null}else at=null;z!==null&&Im(L,N,z,at,!1),$!==null&&Ot!==null&&Im(L,Ot,$,at,!0)}}t:{if(N=M?Nn(M):window,z=N.nodeName&&N.nodeName.toLowerCase(),z==="select"||z==="input"&&N.type==="file")var bt=yd;else if(md(N))if(gd)bt=Vv;else{bt=zv;var tt=Ov}else z=N.nodeName,!z||z.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?M&&Hl(M.elementType)&&(bt=yd):bt=Rv;if(bt&&(bt=bt(t,M))){pd(L,bt,n,_);break t}tt&&tt(t,N,M),t==="focusout"&&M&&N.type==="number"&&M.memoizedProps.value!=null&&Dn(N,"number",N.value)}switch(tt=M?Nn(M):window,t){case"focusin":(md(tt)||tt.contentEditable==="true")&&(Vi=tt,Yr=M,Fl=null);break;case"focusout":Fl=Yr=Vi=null;break;case"mousedown":qr=!0;break;case"contextmenu":case"mouseup":case"dragend":qr=!1,Ed(L,n,_);break;case"selectionchange":if(Uv)break;case"keydown":case"keyup":Ed(L,n,_)}var ft;if(Ur)t:{switch(t){case"compositionstart":var vt="onCompositionStart";break t;case"compositionend":vt="onCompositionEnd";break t;case"compositionupdate":vt="onCompositionUpdate";break t}vt=void 0}else Ri?dd(t,n)&&(vt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(vt="onCompositionStart");vt&&(ud&&n.locale!=="ko"&&(Ri||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&Ri&&(ft=Ni()):(xe=_,Ye="value"in xe?xe.value:xe.textContent,Ri=!0)),tt=Zo(M,vt),0<tt.length&&(vt=new od(vt,t,null,n,_),L.push({event:vt,listeners:tt}),ft?vt.data=ft:(ft=hd(n),ft!==null&&(vt.data=ft)))),(ft=Cv?jv(t,n):Mv(t,n))&&(vt=Zo(M,"onBeforeInput"),0<vt.length&&(tt=new od("onBeforeInput","beforeinput",null,n,_),L.push({event:tt,listeners:vt}),tt.data=ft)),xx(L,t,M,n,_)}Wm(L,e)})}function bs(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Zo(t,e){for(var n=e+"Capture",i=[];t!==null;){var s=t,u=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||u===null||(s=Fa(t,n),s!=null&&i.unshift(bs(t,s,u)),s=Fa(t,e),s!=null&&i.push(bs(t,s,u))),t.tag===3)return i;t=t.return}return[]}function Ax(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Im(t,e,n,i,s){for(var u=e._reactName,f=[];n!==null&&n!==i;){var g=n,S=g.alternate,M=g.stateNode;if(g=g.tag,S!==null&&S===i)break;g!==5&&g!==26&&g!==27||M===null||(S=M,s?(M=Fa(n,u),M!=null&&f.unshift(bs(n,M,S))):s||(M=Fa(n,u),M!=null&&f.push(bs(n,M,S)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var wx=/\r\n?/g,Ex=/\u0000|\uFFFD/g;function tp(t){return(typeof t=="string"?t:""+t).replace(wx,`
|
|
9
|
+
`).replace(Ex,"")}function ep(t,e){return e=tp(e),tp(t)===e}function Dt(t,e,n,i,s,u){switch(n){case"children":typeof i=="string"?e==="body"||e==="textarea"&&i===""||On(t,i):(typeof i=="number"||typeof i=="bigint")&&e!=="body"&&On(t,""+i);break;case"className":Qa(t,"class",i);break;case"tabIndex":Qa(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Qa(t,n,i);break;case"style":to(t,i,u);break;case"data":if(e!=="object"){Qa(t,"data",i);break}case"src":case"href":if(i===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=Ei(""+i),t.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(e!=="input"&&Dt(t,e,"name",s.name,s,null),Dt(t,e,"formEncType",s.formEncType,s,null),Dt(t,e,"formMethod",s.formMethod,s,null),Dt(t,e,"formTarget",s.formTarget,s,null)):(Dt(t,e,"encType",s.encType,s,null),Dt(t,e,"method",s.method,s,null),Dt(t,e,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=Ei(""+i),t.setAttribute(n,i);break;case"onClick":i!=null&&(t.onclick=yn);break;case"onScroll":i!=null&&yt("scroll",t);break;case"onScrollEnd":i!=null&&yt("scrollend",t);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(s.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"multiple":t.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":t.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){t.removeAttribute("xlink:href");break}n=Ei(""+i),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""+i):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":i===!0?t.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,i):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(n,i):t.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(n):t.setAttribute(n,i);break;case"popover":yt("beforetoggle",t),yt("toggle",t),Be(t,"popover",i);break;case"xlinkActuate":Le(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Le(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Le(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Le(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Le(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Le(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Le(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Le(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Le(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Be(t,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Yl.get(n)||n,Be(t,n,i))}}function dc(t,e,n,i,s,u){switch(n){case"style":to(t,i,u);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(s.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"children":typeof i=="string"?On(t,i):(typeof i=="number"||typeof i=="bigint")&&On(t,""+i);break;case"onScroll":i!=null&&yt("scroll",t);break;case"onScrollEnd":i!=null&&yt("scrollend",t);break;case"onClick":i!=null&&(t.onclick=yn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ka.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),u=t[le]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,s),typeof i=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,i,s);break t}n in t?t[n]=i:i===!0?t.setAttribute(n,""):Be(t,n,i)}}}function ce(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":yt("error",t),yt("load",t);var i=!1,s=!1,u;for(u in n)if(n.hasOwnProperty(u)){var f=n[u];if(f!=null)switch(u){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Dt(t,e,u,f,n,null)}}s&&Dt(t,e,"srcSet",n.srcSet,n,null),i&&Dt(t,e,"src",n.src,n,null);return;case"input":yt("invalid",t);var g=u=f=s=null,S=null,M=null;for(i in n)if(n.hasOwnProperty(i)){var _=n[i];if(_!=null)switch(i){case"name":s=_;break;case"type":f=_;break;case"checked":S=_;break;case"defaultChecked":M=_;break;case"value":u=_;break;case"defaultValue":g=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,e));break;default:Dt(t,e,i,_,n,null)}}Is(t,u,g,S,M,f,s,!1);return;case"select":yt("invalid",t),i=f=u=null;for(s in n)if(n.hasOwnProperty(s)&&(g=n[s],g!=null))switch(s){case"value":u=g;break;case"defaultValue":f=g;break;case"multiple":i=g;default:Dt(t,e,s,g,n,null)}e=u,n=f,t.multiple=!!i,e!=null?He(t,!!i,e,!1):n!=null&&He(t,!!i,n,!0);return;case"textarea":yt("invalid",t),u=s=i=null;for(f in n)if(n.hasOwnProperty(f)&&(g=n[f],g!=null))switch(f){case"value":i=g;break;case"defaultValue":s=g;break;case"children":u=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:Dt(t,e,f,g,n,null)}Ll(t,i,s,u);return;case"option":for(S in n)n.hasOwnProperty(S)&&(i=n[S],i!=null)&&(S==="selected"?t.selected=i&&typeof i!="function"&&typeof i!="symbol":Dt(t,e,S,i,n,null));return;case"dialog":yt("beforetoggle",t),yt("toggle",t),yt("cancel",t),yt("close",t);break;case"iframe":case"object":yt("load",t);break;case"video":case"audio":for(i=0;i<xs.length;i++)yt(xs[i],t);break;case"image":yt("error",t),yt("load",t);break;case"details":yt("toggle",t);break;case"embed":case"source":case"link":yt("error",t),yt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in n)if(n.hasOwnProperty(M)&&(i=n[M],i!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Dt(t,e,M,i,n,null)}return;default:if(Hl(e)){for(_ in n)n.hasOwnProperty(_)&&(i=n[_],i!==void 0&&dc(t,e,_,i,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(i=n[g],i!=null&&Dt(t,e,g,i,n,null))}function Cx(t,e,n,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,u=null,f=null,g=null,S=null,M=null,_=null;for(z in n){var L=n[z];if(n.hasOwnProperty(z)&&L!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":S=L;default:i.hasOwnProperty(z)||Dt(t,e,z,null,i,L)}}for(var N in i){var z=i[N];if(L=n[N],i.hasOwnProperty(N)&&(z!=null||L!=null))switch(N){case"type":u=z;break;case"name":s=z;break;case"checked":M=z;break;case"defaultChecked":_=z;break;case"value":f=z;break;case"defaultValue":g=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,e));break;default:z!==L&&Dt(t,e,N,z,i,L)}}Ul(t,f,g,S,M,_,u,s);return;case"select":z=f=g=N=null;for(u in n)if(S=n[u],n.hasOwnProperty(u)&&S!=null)switch(u){case"value":break;case"multiple":z=S;default:i.hasOwnProperty(u)||Dt(t,e,u,null,i,S)}for(s in i)if(u=i[s],S=n[s],i.hasOwnProperty(s)&&(u!=null||S!=null))switch(s){case"value":N=u;break;case"defaultValue":g=u;break;case"multiple":f=u;default:u!==S&&Dt(t,e,s,u,i,S)}e=g,n=f,i=z,N!=null?He(t,!!n,N,!1):!!i!=!!n&&(e!=null?He(t,!!n,e,!0):He(t,!!n,n?[]:"",!1));return;case"textarea":z=N=null;for(g in n)if(s=n[g],n.hasOwnProperty(g)&&s!=null&&!i.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Dt(t,e,g,null,i,s)}for(f in i)if(s=i[f],u=n[f],i.hasOwnProperty(f)&&(s!=null||u!=null))switch(f){case"value":N=s;break;case"defaultValue":z=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(r(91));break;default:s!==u&&Dt(t,e,f,s,i,u)}Bl(t,N,z);return;case"option":for(var $ in n)N=n[$],n.hasOwnProperty($)&&N!=null&&!i.hasOwnProperty($)&&($==="selected"?t.selected=!1:Dt(t,e,$,null,i,N));for(S in i)N=i[S],z=n[S],i.hasOwnProperty(S)&&N!==z&&(N!=null||z!=null)&&(S==="selected"?t.selected=N&&typeof N!="function"&&typeof N!="symbol":Dt(t,e,S,N,i,z));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var at in n)N=n[at],n.hasOwnProperty(at)&&N!=null&&!i.hasOwnProperty(at)&&Dt(t,e,at,null,i,N);for(M in i)if(N=i[M],z=n[M],i.hasOwnProperty(M)&&N!==z&&(N!=null||z!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(137,e));break;default:Dt(t,e,M,N,i,z)}return;default:if(Hl(e)){for(var Ot in n)N=n[Ot],n.hasOwnProperty(Ot)&&N!==void 0&&!i.hasOwnProperty(Ot)&&dc(t,e,Ot,void 0,i,N);for(_ in i)N=i[_],z=n[_],!i.hasOwnProperty(_)||N===z||N===void 0&&z===void 0||dc(t,e,_,N,i,z);return}}for(var E in n)N=n[E],n.hasOwnProperty(E)&&N!=null&&!i.hasOwnProperty(E)&&Dt(t,e,E,null,i,N);for(L in i)N=i[L],z=n[L],!i.hasOwnProperty(L)||N===z||N==null&&z==null||Dt(t,e,L,N,i,z)}function np(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function jx(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var s=n[i],u=s.transferSize,f=s.initiatorType,g=s.duration;if(u&&g&&np(f)){for(f=0,g=s.responseEnd,i+=1;i<n.length;i++){var S=n[i],M=S.startTime;if(M>g)break;var _=S.transferSize,L=S.initiatorType;_&&np(L)&&(S=S.responseEnd,f+=_*(S<g?1:(g-M)/(S-M)))}if(--i,e+=8*(u+f)/(s.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var hc=null,mc=null;function Jo(t){return t.nodeType===9?t:t.ownerDocument}function ap(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 ip(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 pc(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 yc=null;function Mx(){var t=window.event;return t&&t.type==="popstate"?t===yc?!1:(yc=t,!0):(yc=null,!1)}var lp=typeof setTimeout=="function"?setTimeout:void 0,Nx=typeof clearTimeout=="function"?clearTimeout:void 0,sp=typeof Promise=="function"?Promise:void 0,Dx=typeof queueMicrotask=="function"?queueMicrotask:typeof sp<"u"?function(t){return sp.resolve(null).then(t).catch(Ox)}:lp;function Ox(t){setTimeout(function(){throw t})}function za(t){return t==="head"}function op(t,e){var n=e,i=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(i===0){t.removeChild(s),ol(e);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Ss(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Ss(n);for(var u=n.firstChild;u;){var f=u.nextSibling,g=u.nodeName;u[we]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=f}}else n==="body"&&Ss(t.ownerDocument.body);n=s}while(n);ol(e)}function rp(t,e){var n=t;t=0;do{var i=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=i}while(n)}function gc(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":gc(n),Pe(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function zx(t,e,n,i){for(;t.nodeType===1;){var s=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){if(!t[we])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==s.rel||t.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||t.getAttribute("title")!==(s.title==null?null:s.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(s.src==null?null:s.src)||t.getAttribute("type")!==(s.type==null?null:s.type)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=s.name==null?null:""+s.name;if(s.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=rn(t.nextSibling),t===null)break}return null}function Rx(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=rn(t.nextSibling),t===null))return null;return t}function up(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=rn(t.nextSibling),t===null))return null;return t}function vc(t){return t.data==="$?"||t.data==="$~"}function xc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Vx(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var i=function(){e(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),t._reactRetry=i}}function rn(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 bc=null;function cp(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return rn(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function fp(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 dp(t,e,n){switch(e=Jo(n),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Ss(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Pe(t)}var un=new Map,hp=new Set;function Fo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var la=H.d;H.d={f:_x,r:Ux,D:Bx,C:Lx,L:Hx,m:Yx,X:Gx,S:qx,M:Xx};function _x(){var t=la.f(),e=Yo();return t||e}function Ux(t){var e=We(t);e!==null&&e.tag===5&&e.type==="form"?Dh(e):la.r(t)}var il=typeof document>"u"?null:document;function mp(t,e,n){var i=il;if(i&&typeof e=="string"&&e){var s=se(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),hp.has(s)||(hp.add(s),t={rel:t,crossOrigin:n,href:e},i.querySelector(s)===null&&(e=i.createElement("link"),ce(e,"link",t),Xt(e),i.head.appendChild(e)))}}function Bx(t){la.D(t),mp("dns-prefetch",t,null)}function Lx(t,e){la.C(t,e),mp("preconnect",t,e)}function Hx(t,e,n){la.L(t,e,n);var i=il;if(i&&t&&e){var s='link[rel="preload"][as="'+se(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+se(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+se(n.imageSizes)+'"]')):s+='[href="'+se(t)+'"]';var u=s;switch(e){case"style":u=ll(t);break;case"script":u=sl(t)}un.has(u)||(t=b({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),un.set(u,t),i.querySelector(s)!==null||e==="style"&&i.querySelector(Ts(u))||e==="script"&&i.querySelector(As(u))||(e=i.createElement("link"),ce(e,"link",t),Xt(e),i.head.appendChild(e)))}}function Yx(t,e){la.m(t,e);var n=il;if(n&&t){var i=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+se(i)+'"][href="'+se(t)+'"]',u=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=sl(t)}if(!un.has(u)&&(t=b({rel:"modulepreload",href:t},e),un.set(u,t),n.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(As(u)))return}i=n.createElement("link"),ce(i,"link",t),Xt(i),n.head.appendChild(i)}}}function qx(t,e,n){la.S(t,e,n);var i=il;if(i&&t){var s=$e(i).hoistableStyles,u=ll(t);e=e||"default";var f=s.get(u);if(!f){var g={loading:0,preload:null};if(f=i.querySelector(Ts(u)))g.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},n),(n=un.get(u))&&Sc(t,n);var S=f=i.createElement("link");Xt(S),ce(S,"link",t),S._p=new Promise(function(M,_){S.onload=M,S.onerror=_}),S.addEventListener("load",function(){g.loading|=1}),S.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Po(f,e,i)}f={type:"stylesheet",instance:f,count:1,state:g},s.set(u,f)}}}function Gx(t,e){la.X(t,e);var n=il;if(n&&t){var i=$e(n).hoistableScripts,s=sl(t),u=i.get(s);u||(u=n.querySelector(As(s)),u||(t=b({src:t,async:!0},e),(e=un.get(s))&&Tc(t,e),u=n.createElement("script"),Xt(u),ce(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(s,u))}}function Xx(t,e){la.M(t,e);var n=il;if(n&&t){var i=$e(n).hoistableScripts,s=sl(t),u=i.get(s);u||(u=n.querySelector(As(s)),u||(t=b({src:t,async:!0,type:"module"},e),(e=un.get(s))&&Tc(t,e),u=n.createElement("script"),Xt(u),ce(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(s,u))}}function pp(t,e,n,i){var s=(s=dt.current)?Fo(s):null;if(!s)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ll(n.href),n=$e(s).hoistableStyles,i=n.get(e),i||(i={type:"style",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ll(n.href);var u=$e(s).hoistableStyles,f=u.get(t);if(f||(s=s.ownerDocument||s,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,f),(u=s.querySelector(Ts(t)))&&!u._p&&(f.instance=u,f.state.loading=5),un.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},un.set(t,n),u||kx(s,t,n,f.state))),e&&i===null)throw Error(r(528,""));return f}if(e&&i!==null)throw Error(r(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=sl(n),n=$e(s).hoistableScripts,i=n.get(e),i||(i={type:"script",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function ll(t){return'href="'+se(t)+'"'}function Ts(t){return'link[rel="stylesheet"]['+t+"]"}function yp(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function kx(t,e,n,i){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?i.loading=1:(e=t.createElement("link"),i.preload=e,e.addEventListener("load",function(){return i.loading|=1}),e.addEventListener("error",function(){return i.loading|=2}),ce(e,"link",n),Xt(e),t.head.appendChild(e))}function sl(t){return'[src="'+se(t)+'"]'}function As(t){return"script[async]"+t}function gp(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+se(n.href)+'"]');if(i)return e.instance=i,Xt(i),i;var s=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),Xt(i),ce(i,"style",s),Po(i,n.precedence,t),e.instance=i;case"stylesheet":s=ll(n.href);var u=t.querySelector(Ts(s));if(u)return e.state.loading|=4,e.instance=u,Xt(u),u;i=yp(n),(s=un.get(s))&&Sc(i,s),u=(t.ownerDocument||t).createElement("link"),Xt(u);var f=u;return f._p=new Promise(function(g,S){f.onload=g,f.onerror=S}),ce(u,"link",i),e.state.loading|=4,Po(u,n.precedence,t),e.instance=u;case"script":return u=sl(n.src),(s=t.querySelector(As(u)))?(e.instance=s,Xt(s),s):(i=n,(s=un.get(u))&&(i=b({},n),Tc(i,s)),t=t.ownerDocument||t,s=t.createElement("script"),Xt(s),ce(s,"link",i),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,Po(i,n.precedence,t));return e.instance}function Po(t,e,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,u=s,f=0;f<i.length;f++){var g=i[f];if(g.dataset.precedence===e)u=g;else if(u!==s)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Sc(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 Wo=null;function vp(t,e,n){if(Wo===null){var i=new Map,s=Wo=new Map;s.set(n,i)}else s=Wo,i=s.get(n),i||(i=new Map,s.set(n,i));if(i.has(t))return i;for(i.set(t,null),n=n.getElementsByTagName(t),s=0;s<n.length;s++){var u=n[s];if(!(u[we]||u[Qt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(e)||"";f=t+f;var g=i.get(f);g?g.push(u):i.set(f,[u])}}return i}function xp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Kx(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function bp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Qx(t,e,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=ll(i.href),u=e.querySelector(Ts(s));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=$o.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,Xt(u);return}u=e.ownerDocument||e,i=yp(i),(s=un.get(s))&&Sc(i,s),u=u.createElement("link"),Xt(u);var f=u;f._p=new Promise(function(g,S){f.onload=g,f.onerror=S}),ce(u,"link",i),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=$o.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Ac=0;function Zx(t,e){return t.stylesheets&&t.count===0&&tr(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var i=setTimeout(function(){if(t.stylesheets&&tr(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Ac===0&&(Ac=62500*jx());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&tr(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Ac?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(s)}}:null}function $o(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)tr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Io=null;function tr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Io=new Map,e.forEach(Jx,t),Io=null,$o.call(t))}function Jx(t,e){if(!(e.state.loading&4)){var n=Io.get(t);if(n)var i=n.get(null);else{n=new Map,Io.set(t,n);for(var s=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<s.length;u++){var f=s[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),i=f)}i&&n.set(null,i)}s=e.instance,f=s.getAttribute("data-precedence"),u=n.get(f)||i,u===i&&n.set(null,s),n.set(f,s),this.count++,i=$o.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),u?u.parentNode.insertBefore(s,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var ws={$$typeof:X,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function Fx(t,e,n,i,s,u,f,g,S){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ti(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ti(0),this.hiddenUpdates=Ti(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Sp(t,e,n,i,s,u,f,g,S,M,_,L){return t=new Fx(t,e,n,f,S,M,_,L,g),e=1,u===!0&&(e|=24),u=Ge(3,null,null,e),t.current=u,u.stateNode=t,e=nu(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:i,isDehydrated:n,cache:e},su(u),t}function Tp(t){return t?(t=Bi,t):Bi}function Ap(t,e,n,i,s,u){s=Tp(s),i.context===null?i.context=s:i.pendingContext=s,i=Sa(e),i.payload={element:n},u=u===void 0?null:u,u!==null&&(i.callback=u),n=Ta(t,i,e),n!==null&&(Oe(n,t,e),ns(n,t,e))}function wp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function wc(t,e){wp(t,e),(t=t.alternate)&&wp(t,e)}function Ep(t){if(t.tag===13||t.tag===31){var e=Ia(t,67108864);e!==null&&Oe(e,t,67108864),wc(t,67108864)}}function Cp(t){if(t.tag===13||t.tag===31){var e=Ze();e=jn(e);var n=Ia(t,e);n!==null&&Oe(n,t,e),wc(t,e)}}var er=!0;function Px(t,e,n,i){var s=R.T;R.T=null;var u=H.p;try{H.p=2,Ec(t,e,n,i)}finally{H.p=u,R.T=s}}function Wx(t,e,n,i){var s=R.T;R.T=null;var u=H.p;try{H.p=8,Ec(t,e,n,i)}finally{H.p=u,R.T=s}}function Ec(t,e,n,i){if(er){var s=Cc(i);if(s===null)fc(t,e,i,nr,n),Mp(t,i);else if(Ix(s,t,e,n,i))i.stopPropagation();else if(Mp(t,i),e&4&&-1<$x.indexOf(t)){for(;s!==null;){var u=We(s);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=qn(u.pendingLanes);if(f!==0){var g=u;for(g.pendingLanes|=2,g.entangledLanes|=2;f;){var S=1<<31-ie(f);g.entanglements[1]|=S,f&=~S}_n(u),(Tt&6)===0&&(Lo=he()+500,vs(0))}}break;case 31:case 13:g=Ia(u,2),g!==null&&Oe(g,u,2),Yo(),wc(u,2)}if(u=Cc(i),u===null&&fc(t,e,i,nr,n),u===s)break;s=u}s!==null&&i.stopPropagation()}else fc(t,e,i,null,n)}}function Cc(t){return t=Ci(t),jc(t)}var nr=null;function jc(t){if(nr=null,t=Mn(t),t!==null){var e=h(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=d(e),t!==null)return t;t=null}else if(n===31){if(t=y(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return nr=t,null}function jp(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(Qs()){case Re:return 2;case Zs:return 8;case ua:case Tl:return 32;case xi:return 268435456;default:return 32}default:return 32}}var Mc=!1,Ra=null,Va=null,_a=null,Es=new Map,Cs=new Map,Ua=[],$x="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Mp(t,e){switch(t){case"focusin":case"focusout":Ra=null;break;case"dragenter":case"dragleave":Va=null;break;case"mouseover":case"mouseout":_a=null;break;case"pointerover":case"pointerout":Es.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cs.delete(e.pointerId)}}function js(t,e,n,i,s,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:u,targetContainers:[s]},e!==null&&(e=We(e),e!==null&&Ep(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function Ix(t,e,n,i,s){switch(e){case"focusin":return Ra=js(Ra,t,e,n,i,s),!0;case"dragenter":return Va=js(Va,t,e,n,i,s),!0;case"mouseover":return _a=js(_a,t,e,n,i,s),!0;case"pointerover":var u=s.pointerId;return Es.set(u,js(Es.get(u)||null,t,e,n,i,s)),!0;case"gotpointercapture":return u=s.pointerId,Cs.set(u,js(Cs.get(u)||null,t,e,n,i,s)),!0}return!1}function Np(t){var e=Mn(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=d(n),e!==null){t.blockedOn=e,ka(t.priority,function(){Cp(n)});return}}else if(e===31){if(e=y(n),e!==null){t.blockedOn=e,ka(t.priority,function(){Cp(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 ar(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Cc(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);Gl=i,n.target.dispatchEvent(i),Gl=null}else return e=We(n),e!==null&&Ep(e),t.blockedOn=n,!1;e.shift()}return!0}function Dp(t,e,n){ar(t)&&n.delete(e)}function t1(){Mc=!1,Ra!==null&&ar(Ra)&&(Ra=null),Va!==null&&ar(Va)&&(Va=null),_a!==null&&ar(_a)&&(_a=null),Es.forEach(Dp),Cs.forEach(Dp)}function ir(t,e){t.blockedOn===e&&(t.blockedOn=null,Mc||(Mc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,t1)))}var lr=null;function Op(t){lr!==t&&(lr=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){lr===t&&(lr=null);for(var e=0;e<t.length;e+=3){var n=t[e],i=t[e+1],s=t[e+2];if(typeof i!="function"){if(jc(i||n)===null)continue;break}var u=We(n);u!==null&&(t.splice(e,3),e-=3,Cu(u,{pending:!0,data:s,method:n.method,action:i},i,s))}}))}function ol(t){function e(S){return ir(S,t)}Ra!==null&&ir(Ra,t),Va!==null&&ir(Va,t),_a!==null&&ir(_a,t),Es.forEach(e),Cs.forEach(e);for(var n=0;n<Ua.length;n++){var i=Ua[n];i.blockedOn===t&&(i.blockedOn=null)}for(;0<Ua.length&&(n=Ua[0],n.blockedOn===null);)Np(n),n.blockedOn===null&&Ua.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var s=n[i],u=n[i+1],f=s[le]||null;if(typeof u=="function")f||Op(n);else if(f){var g=null;if(u&&u.hasAttribute("formAction")){if(s=u,f=u[le]||null)g=f.formAction;else if(jc(s)!==null)continue}else g=f.action;typeof g=="function"?n[i+1]=g:(n.splice(i,3),i-=3),Op(n)}}}function zp(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(f){return s=f})},focusReset:"manual",scroll:"manual"})}function e(){s!==null&&(s(),s=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,s=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),s!==null&&(s(),s=null)}}}function Nc(t){this._internalRoot=t}sr.prototype.render=Nc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var n=e.current,i=Ze();Ap(n,i,t,e,null,null)},sr.prototype.unmount=Nc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ap(t.current,2,null,t,null,null),Yo(),e[Gn]=null}};function sr(t){this._internalRoot=t}sr.prototype.unstable_scheduleHydration=function(t){if(t){var e=Dl();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Ua.length&&e!==0&&e<Ua[n].priority;n++);Ua.splice(n,0,t),n===0&&Np(t)}};var Rp=l.version;if(Rp!=="19.2.4")throw Error(r(527,Rp,"19.2.4"));H.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=p(e),t=t!==null?x(t):null,t=t===null?null:t.stateNode,t};var e1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var or=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!or.isDisabled&&or.supportsFiber)try{ca=or.inject(e1),me=or}catch{}}return Ns.createRoot=function(t,e){if(!c(t))throw Error(r(299));var n=!1,i="",s=Yh,u=qh,f=Gh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(s=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=Sp(t,1,!1,null,null,n,i,null,s,u,f,zp),t[Gn]=e.current,cc(t),new Nc(e)},Ns.hydrateRoot=function(t,e,n){if(!c(t))throw Error(r(299));var i=!1,s="",u=Yh,f=qh,g=Gh,S=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.formState!==void 0&&(S=n.formState)),e=Sp(t,1,!0,e,n??null,i,s,S,u,f,g,zp),e.context=Tp(null),n=e.current,i=Ze(),i=jn(i),s=Sa(i),s.callback=null,Ta(n,s,i),n=i,e.current.lanes=n,Cn(e,n),_n(e),t[Gn]=e.current,cc(t),new sr(e)},Ns.version="19.2.4",Ns}var Xp;function f1(){if(Xp)return zc.exports;Xp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),zc.exports=c1(),zc.exports}var d1=f1();const XA=my(d1);const py=(...a)=>a.filter((l,o,r)=>!!l&&l.trim()!==""&&r.indexOf(l)===o).join(" ").trim();const h1=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const m1=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,o,r)=>r?r.toUpperCase():o.toLowerCase());const kp=a=>{const l=m1(a);return l.charAt(0).toUpperCase()+l.slice(1)};var p1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const y1=a=>{for(const l in a)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1};const g1=D.forwardRef(({color:a="currentColor",size:l=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:c="",children:h,iconNode:d,...y},v)=>D.createElement("svg",{ref:v,...p1,width:l,height:l,stroke:a,strokeWidth:r?Number(o)*24/Number(l):o,className:py("lucide",c),...!h&&!y1(y)&&{"aria-hidden":"true"},...y},[...d.map(([p,x])=>D.createElement(p,x)),...Array.isArray(h)?h:[h]]));const te=(a,l)=>{const o=D.forwardRef(({className:r,...c},h)=>D.createElement(g1,{ref:h,iconNode:l,className:py(`lucide-${h1(kp(a))}`,`lucide-${a}`,r),...c}));return o.displayName=kp(a),o};const v1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],x1=te("arrow-left",v1);const b1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Je=te("arrow-right",b1);const S1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],sa=te("check",S1);const T1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],A1=te("chevron-down",T1);const w1=[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]],Kp=te("clipboard-paste",w1);const E1=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Uc=te("copy",E1);const C1=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Qp=te("external-link",C1);const j1=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],M1=te("eye-off",j1);const N1=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],D1=te("eye",N1);const O1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Bc=te("globe",O1);const z1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],oa=te("loader-circle",z1);const R1=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],V1=te("mic",R1);const _1=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Lc=te("refresh-cw",_1);const U1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Zp=te("shield-check",U1);const B1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],L1=te("shield",B1);const H1=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Y1=te("smartphone",H1);const q1=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Jp=te("triangle-alert",q1);const G1=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Fp=te("wifi-off",G1);const X1=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],k1=te("wifi",X1),Nf=D.createContext({});function Df(a){const l=D.useRef(null);return l.current===null&&(l.current=a()),l.current}const yy=typeof window<"u",gy=yy?D.useLayoutEffect:D.useEffect,jr=D.createContext(null);function Of(a,l){a.indexOf(l)===-1&&a.push(l)}function xr(a,l){const o=a.indexOf(l);o>-1&&a.splice(o,1)}const Ln=(a,l,o)=>o>l?l:o<a?a:o;let zf=()=>{};const ra={},vy=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function xy(a){return typeof a=="object"&&a!==null}const by=a=>/^0[^.\s]+$/u.test(a);function Sy(a){let l;return()=>(l===void 0&&(l=a()),l)}const fn=a=>a,K1=(a,l)=>o=>l(a(o)),Gs=(...a)=>a.reduce(K1),Bs=(a,l,o)=>{const r=l-a;return r===0?1:(o-a)/r};class Rf{constructor(){this.subscriptions=[]}add(l){return Of(this.subscriptions,l),()=>xr(this.subscriptions,l)}notify(l,o,r){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,o,r);else for(let h=0;h<c;h++){const d=this.subscriptions[h];d&&d(l,o,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Tn=a=>a*1e3,cn=a=>a/1e3;function Ty(a,l){return l?a*(1e3/l):0}const Ay=(a,l,o)=>(((1-3*o+3*l)*a+(3*o-6*l))*a+3*l)*a,Q1=1e-7,Z1=12;function J1(a,l,o,r,c){let h,d,y=0;do d=l+(o-l)/2,h=Ay(d,r,c)-a,h>0?o=d:l=d;while(Math.abs(h)>Q1&&++y<Z1);return d}function Xs(a,l,o,r){if(a===l&&o===r)return fn;const c=h=>J1(h,0,1,a,o);return h=>h===0||h===1?h:Ay(c(h),l,r)}const wy=a=>l=>l<=.5?a(2*l)/2:(2-a(2*(1-l)))/2,Ey=a=>l=>1-a(1-l),Cy=Xs(.33,1.53,.69,.99),Vf=Ey(Cy),jy=wy(Vf),My=a=>(a*=2)<1?.5*Vf(a):.5*(2-Math.pow(2,-10*(a-1))),_f=a=>1-Math.sin(Math.acos(a)),Ny=Ey(_f),Dy=wy(_f),F1=Xs(.42,0,1,1),P1=Xs(0,0,.58,1),Oy=Xs(.42,0,.58,1),W1=a=>Array.isArray(a)&&typeof a[0]!="number",zy=a=>Array.isArray(a)&&typeof a[0]=="number",$1={linear:fn,easeIn:F1,easeInOut:Oy,easeOut:P1,circIn:_f,circInOut:Dy,circOut:Ny,backIn:Vf,backInOut:jy,backOut:Cy,anticipate:My},I1=a=>typeof a=="string",Pp=a=>{if(zy(a)){zf(a.length===4);const[l,o,r,c]=a;return Xs(l,o,r,c)}else if(I1(a))return $1[a];return a},rr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tb(a,l){let o=new Set,r=new Set,c=!1,h=!1;const d=new WeakSet;let y={delta:0,timestamp:0,isProcessing:!1};function v(x){d.has(x)&&(p.schedule(x),a()),x(y)}const p={schedule:(x,b=!1,T=!1)=>{const V=T&&c?o:r;return b&&d.add(x),V.has(x)||V.add(x),x},cancel:x=>{r.delete(x),d.delete(x)},process:x=>{if(y=x,c){h=!0;return}c=!0,[o,r]=[r,o],o.forEach(v),o.clear(),c=!1,h&&(h=!1,p.process(x))}};return p}const eb=40;function Ry(a,l){let o=!1,r=!0;const c={delta:0,timestamp:0,isProcessing:!1},h=()=>o=!0,d=rr.reduce((X,P)=>(X[P]=tb(h),X),{}),{setup:y,read:v,resolveKeyframes:p,preUpdate:x,update:b,preRender:T,render:O,postRender:V}=d,q=()=>{const X=ra.useManualTiming?c.timestamp:performance.now();o=!1,ra.useManualTiming||(c.delta=r?1e3/60:Math.max(Math.min(X-c.timestamp,eb),1)),c.timestamp=X,c.isProcessing=!0,y.process(c),v.process(c),p.process(c),x.process(c),b.process(c),T.process(c),O.process(c),V.process(c),c.isProcessing=!1,o&&l&&(r=!1,a(q))},Y=()=>{o=!0,r=!0,c.isProcessing||a(q)};return{schedule:rr.reduce((X,P)=>{const F=d[P];return X[P]=(it,et=!1,J=!1)=>(o||Y(),F.schedule(it,et,J)),X},{}),cancel:X=>{for(let P=0;P<rr.length;P++)d[rr[P]].cancel(X)},state:c,steps:d}}const{schedule:Vt,cancel:qa,state:fe,steps:Hc}=Ry(typeof requestAnimationFrame<"u"?requestAnimationFrame:fn,!0);let dr;function nb(){dr=void 0}const Se={now:()=>(dr===void 0&&Se.set(fe.isProcessing||ra.useManualTiming?fe.timestamp:performance.now()),dr),set:a=>{dr=a,queueMicrotask(nb)}},Vy=a=>l=>typeof l=="string"&&l.startsWith(a),_y=Vy("--"),ab=Vy("var(--"),Uf=a=>ab(a)?ib.test(a.split("/*")[0].trim()):!1,ib=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Wp(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const yl={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},Ls={...yl,transform:a=>Ln(0,1,a)},ur={...yl,default:1},Rs=a=>Math.round(a*1e5)/1e5,Bf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function lb(a){return a==null}const sb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Lf=(a,l)=>o=>!!(typeof o=="string"&&sb.test(o)&&o.startsWith(a)||l&&!lb(o)&&Object.prototype.hasOwnProperty.call(o,l)),Uy=(a,l,o)=>r=>{if(typeof r!="string")return r;const[c,h,d,y]=r.match(Bf);return{[a]:parseFloat(c),[l]:parseFloat(h),[o]:parseFloat(d),alpha:y!==void 0?parseFloat(y):1}},ob=a=>Ln(0,255,a),Yc={...yl,transform:a=>Math.round(ob(a))},mi={test:Lf("rgb","red"),parse:Uy("red","green","blue"),transform:({red:a,green:l,blue:o,alpha:r=1})=>"rgba("+Yc.transform(a)+", "+Yc.transform(l)+", "+Yc.transform(o)+", "+Rs(Ls.transform(r))+")"};function rb(a){let l="",o="",r="",c="";return a.length>5?(l=a.substring(1,3),o=a.substring(3,5),r=a.substring(5,7),c=a.substring(7,9)):(l=a.substring(1,2),o=a.substring(2,3),r=a.substring(3,4),c=a.substring(4,5),l+=l,o+=o,r+=r,c+=c),{red:parseInt(l,16),green:parseInt(o,16),blue:parseInt(r,16),alpha:c?parseInt(c,16)/255:1}}const af={test:Lf("#"),parse:rb,transform:mi.transform},ks=a=>({test:l=>typeof l=="string"&&l.endsWith(a)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${a}`}),Ha=ks("deg"),Bn=ks("%"),I=ks("px"),ub=ks("vh"),cb=ks("vw"),$p={...Bn,parse:a=>Bn.parse(a)/100,transform:a=>Bn.transform(a*100)},ul={test:Lf("hsl","hue"),parse:Uy("hue","saturation","lightness"),transform:({hue:a,saturation:l,lightness:o,alpha:r=1})=>"hsla("+Math.round(a)+", "+Bn.transform(Rs(l))+", "+Bn.transform(Rs(o))+", "+Rs(Ls.transform(r))+")"},Wt={test:a=>mi.test(a)||af.test(a)||ul.test(a),parse:a=>mi.test(a)?mi.parse(a):ul.test(a)?ul.parse(a):af.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?mi.transform(a):ul.transform(a),getAnimatableNone:a=>{const l=Wt.parse(a);return l.alpha=0,Wt.transform(l)}},fb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function db(a){return isNaN(a)&&typeof a=="string"&&(a.match(Bf)?.length||0)+(a.match(fb)?.length||0)>0}const By="number",Ly="color",hb="var",mb="var(",Ip="${}",pb=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Hs(a){const l=a.toString(),o=[],r={color:[],number:[],var:[]},c=[];let h=0;const y=l.replace(pb,v=>(Wt.test(v)?(r.color.push(h),c.push(Ly),o.push(Wt.parse(v))):v.startsWith(mb)?(r.var.push(h),c.push(hb),o.push(v)):(r.number.push(h),c.push(By),o.push(parseFloat(v))),++h,Ip)).split(Ip);return{values:o,split:y,indexes:r,types:c}}function Hy(a){return Hs(a).values}function Yy(a){const{split:l,types:o}=Hs(a),r=l.length;return c=>{let h="";for(let d=0;d<r;d++)if(h+=l[d],c[d]!==void 0){const y=o[d];y===By?h+=Rs(c[d]):y===Ly?h+=Wt.transform(c[d]):h+=c[d]}return h}}const yb=a=>typeof a=="number"?0:Wt.test(a)?Wt.getAnimatableNone(a):a;function gb(a){const l=Hy(a);return Yy(a)(l.map(yb))}const An={test:db,parse:Hy,createTransformer:Yy,getAnimatableNone:gb};function qc(a,l,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?a+(l-a)*6*o:o<1/2?l:o<2/3?a+(l-a)*(2/3-o)*6:a}function vb({hue:a,saturation:l,lightness:o,alpha:r}){a/=360,l/=100,o/=100;let c=0,h=0,d=0;if(!l)c=h=d=o;else{const y=o<.5?o*(1+l):o+l-o*l,v=2*o-y;c=qc(v,y,a+1/3),h=qc(v,y,a),d=qc(v,y,a-1/3)}return{red:Math.round(c*255),green:Math.round(h*255),blue:Math.round(d*255),alpha:r}}function br(a,l){return o=>o>0?l:a}const Lt=(a,l,o)=>a+(l-a)*o,Gc=(a,l,o)=>{const r=a*a,c=o*(l*l-r)+r;return c<0?0:Math.sqrt(c)},xb=[af,mi,ul],bb=a=>xb.find(l=>l.test(a));function t0(a){const l=bb(a);if(!l)return!1;let o=l.parse(a);return l===ul&&(o=vb(o)),o}const e0=(a,l)=>{const o=t0(a),r=t0(l);if(!o||!r)return br(a,l);const c={...o};return h=>(c.red=Gc(o.red,r.red,h),c.green=Gc(o.green,r.green,h),c.blue=Gc(o.blue,r.blue,h),c.alpha=Lt(o.alpha,r.alpha,h),mi.transform(c))},lf=new Set(["none","hidden"]);function Sb(a,l){return lf.has(a)?o=>o<=0?a:l:o=>o>=1?l:a}function Tb(a,l){return o=>Lt(a,l,o)}function Hf(a){return typeof a=="number"?Tb:typeof a=="string"?Uf(a)?br:Wt.test(a)?e0:Eb:Array.isArray(a)?qy:typeof a=="object"?Wt.test(a)?e0:Ab:br}function qy(a,l){const o=[...a],r=o.length,c=a.map((h,d)=>Hf(h)(h,l[d]));return h=>{for(let d=0;d<r;d++)o[d]=c[d](h);return o}}function Ab(a,l){const o={...a,...l},r={};for(const c in o)a[c]!==void 0&&l[c]!==void 0&&(r[c]=Hf(a[c])(a[c],l[c]));return c=>{for(const h in r)o[h]=r[h](c);return o}}function wb(a,l){const o=[],r={color:0,var:0,number:0};for(let c=0;c<l.values.length;c++){const h=l.types[c],d=a.indexes[h][r[h]],y=a.values[d]??0;o[c]=y,r[h]++}return o}const Eb=(a,l)=>{const o=An.createTransformer(l),r=Hs(a),c=Hs(l);return r.indexes.var.length===c.indexes.var.length&&r.indexes.color.length===c.indexes.color.length&&r.indexes.number.length>=c.indexes.number.length?lf.has(a)&&!c.values.length||lf.has(l)&&!r.values.length?Sb(a,l):Gs(qy(wb(r,c),c.values),o):br(a,l)};function Gy(a,l,o){return typeof a=="number"&&typeof l=="number"&&typeof o=="number"?Lt(a,l,o):Hf(a)(a,l)}const Cb=a=>{const l=({timestamp:o})=>a(o);return{start:(o=!0)=>Vt.update(l,o),stop:()=>qa(l),now:()=>fe.isProcessing?fe.timestamp:Se.now()}},Xy=(a,l,o=10)=>{let r="";const c=Math.max(Math.round(l/o),2);for(let h=0;h<c;h++)r+=Math.round(a(h/(c-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Sr=2e4;function Yf(a){let l=0;const o=50;let r=a.next(l);for(;!r.done&&l<Sr;)l+=o,r=a.next(l);return l>=Sr?1/0:l}function jb(a,l=100,o){const r=o({...a,keyframes:[0,l]}),c=Math.min(Yf(r),Sr);return{type:"keyframes",ease:h=>r.next(c*h).value/l,duration:cn(c)}}const Mb=5;function ky(a,l,o){const r=Math.max(l-Mb,0);return Ty(o-a(r),l-r)}const Gt={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 Nb({duration:a=Gt.duration,bounce:l=Gt.bounce,velocity:o=Gt.velocity,mass:r=Gt.mass}){let c,h,d=1-l;d=Ln(Gt.minDamping,Gt.maxDamping,d),a=Ln(Gt.minDuration,Gt.maxDuration,cn(a)),d<1?(c=p=>{const x=p*d,b=x*a,T=x-o,O=sf(p,d),V=Math.exp(-b);return Xc-T/O*V},h=p=>{const b=p*d*a,T=b*o+o,O=Math.pow(d,2)*Math.pow(p,2)*a,V=Math.exp(-b),q=sf(Math.pow(p,2),d);return(-c(p)+Xc>0?-1:1)*((T-O)*V)/q}):(c=p=>{const x=Math.exp(-p*a),b=(p-o)*a+1;return-Xc+x*b},h=p=>{const x=Math.exp(-p*a),b=(o-p)*(a*a);return x*b});const y=5/a,v=Ob(c,h,y);if(a=Tn(a),isNaN(v))return{stiffness:Gt.stiffness,damping:Gt.damping,duration:a};{const p=Math.pow(v,2)*r;return{stiffness:p,damping:d*2*Math.sqrt(r*p),duration:a}}}const Db=12;function Ob(a,l,o){let r=o;for(let c=1;c<Db;c++)r=r-a(r)/l(r);return r}function sf(a,l){return a*Math.sqrt(1-l*l)}const zb=["duration","bounce"],Rb=["stiffness","damping","mass"];function n0(a,l){return l.some(o=>a[o]!==void 0)}function Vb(a){let l={velocity:Gt.velocity,stiffness:Gt.stiffness,damping:Gt.damping,mass:Gt.mass,isResolvedFromDuration:!1,...a};if(!n0(a,Rb)&&n0(a,zb))if(l.velocity=0,a.visualDuration){const o=a.visualDuration,r=2*Math.PI/(o*1.2),c=r*r,h=2*Ln(.05,1,1-(a.bounce||0))*Math.sqrt(c);l={...l,mass:Gt.mass,stiffness:c,damping:h}}else{const o=Nb({...a,velocity:0});l={...l,...o,mass:Gt.mass},l.isResolvedFromDuration=!0}return l}function Tr(a=Gt.visualDuration,l=Gt.bounce){const o=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:l}:a;let{restSpeed:r,restDelta:c}=o;const h=o.keyframes[0],d=o.keyframes[o.keyframes.length-1],y={done:!1,value:h},{stiffness:v,damping:p,mass:x,duration:b,velocity:T,isResolvedFromDuration:O}=Vb({...o,velocity:-cn(o.velocity||0)}),V=T||0,q=p/(2*Math.sqrt(v*x)),Y=d-h,G=cn(Math.sqrt(v/x)),Q=Math.abs(Y)<5;r||(r=Q?Gt.restSpeed.granular:Gt.restSpeed.default),c||(c=Q?Gt.restDelta.granular:Gt.restDelta.default);let X;if(q<1){const F=sf(G,q);X=it=>{const et=Math.exp(-q*G*it);return d-et*((V+q*G*Y)/F*Math.sin(F*it)+Y*Math.cos(F*it))}}else if(q===1)X=F=>d-Math.exp(-G*F)*(Y+(V+G*Y)*F);else{const F=G*Math.sqrt(q*q-1);X=it=>{const et=Math.exp(-q*G*it),J=Math.min(F*it,300);return d-et*((V+q*G*Y)*Math.sinh(J)+F*Y*Math.cosh(J))/F}}const P={calculatedDuration:O&&b||null,next:F=>{const it=X(F);if(O)y.done=F>=b;else{let et=F===0?V:0;q<1&&(et=F===0?Tn(V):ky(X,F,it));const J=Math.abs(et)<=r,lt=Math.abs(d-it)<=c;y.done=J&<}return y.value=y.done?d:it,y},toString:()=>{const F=Math.min(Yf(P),Sr),it=Xy(et=>P.next(F*et).value,F,30);return F+"ms "+it},toTransition:()=>{}};return P}Tr.applyToOptions=a=>{const l=jb(a,100,Tr);return a.ease=l.ease,a.duration=Tn(l.duration),a.type="keyframes",a};function of({keyframes:a,velocity:l=0,power:o=.8,timeConstant:r=325,bounceDamping:c=10,bounceStiffness:h=500,modifyTarget:d,min:y,max:v,restDelta:p=.5,restSpeed:x}){const b=a[0],T={done:!1,value:b},O=J=>y!==void 0&&J<y||v!==void 0&&J>v,V=J=>y===void 0?v:v===void 0||Math.abs(y-J)<Math.abs(v-J)?y:v;let q=o*l;const Y=b+q,G=d===void 0?Y:d(Y);G!==Y&&(q=G-b);const Q=J=>-q*Math.exp(-J/r),X=J=>G+Q(J),P=J=>{const lt=Q(J),At=X(J);T.done=Math.abs(lt)<=p,T.value=T.done?G:At};let F,it;const et=J=>{O(T.value)&&(F=J,it=Tr({keyframes:[T.value,V(T.value)],velocity:ky(X,J,T.value),damping:c,stiffness:h,restDelta:p,restSpeed:x}))};return et(0),{calculatedDuration:null,next:J=>{let lt=!1;return!it&&F===void 0&&(lt=!0,P(J),et(J)),F!==void 0&&J>=F?it.next(J-F):(!lt&&P(J),T)}}}function _b(a,l,o){const r=[],c=o||ra.mix||Gy,h=a.length-1;for(let d=0;d<h;d++){let y=c(a[d],a[d+1]);if(l){const v=Array.isArray(l)?l[d]||fn:l;y=Gs(v,y)}r.push(y)}return r}function Ub(a,l,{clamp:o=!0,ease:r,mixer:c}={}){const h=a.length;if(zf(h===l.length),h===1)return()=>l[0];if(h===2&&l[0]===l[1])return()=>l[1];const d=a[0]===a[1];a[0]>a[h-1]&&(a=[...a].reverse(),l=[...l].reverse());const y=_b(l,r,c),v=y.length,p=x=>{if(d&&x<a[0])return l[0];let b=0;if(v>1)for(;b<a.length-2&&!(x<a[b+1]);b++);const T=Bs(a[b],a[b+1],x);return y[b](T)};return o?x=>p(Ln(a[0],a[h-1],x)):p}function Bb(a,l){const o=a[a.length-1];for(let r=1;r<=l;r++){const c=Bs(0,l,r);a.push(Lt(o,1,c))}}function Lb(a){const l=[0];return Bb(l,a.length-1),l}function Hb(a,l){return a.map(o=>o*l)}function Yb(a,l){return a.map(()=>l||Oy).splice(0,a.length-1)}function Vs({duration:a=300,keyframes:l,times:o,ease:r="easeInOut"}){const c=W1(r)?r.map(Pp):Pp(r),h={done:!1,value:l[0]},d=Hb(o&&o.length===l.length?o:Lb(l),a),y=Ub(d,l,{ease:Array.isArray(c)?c:Yb(l,c)});return{calculatedDuration:a,next:v=>(h.value=y(v),h.done=v>=a,h)}}const qb=a=>a!==null;function qf(a,{repeat:l,repeatType:o="loop"},r,c=1){const h=a.filter(qb),y=c<0||l&&o!=="loop"&&l%2===1?0:h.length-1;return!y||r===void 0?h[y]:r}const Gb={decay:of,inertia:of,tween:Vs,keyframes:Vs,spring:Tr};function Ky(a){typeof a.type=="string"&&(a.type=Gb[a.type])}class Gf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,o){return this.finished.then(l,o)}}const Xb=a=>a/100;class Xf extends Gf{constructor(l){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:o}=this.options;o&&o.updatedAt!==Se.now()&&this.tick(Se.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;Ky(l);const{type:o=Vs,repeat:r=0,repeatDelay:c=0,repeatType:h,velocity:d=0}=l;let{keyframes:y}=l;const v=o||Vs;v!==Vs&&typeof y[0]!="number"&&(this.mixKeyframes=Gs(Xb,Gy(y[0],y[1])),y=[0,100]);const p=v({...l,keyframes:y});h==="mirror"&&(this.mirroredGenerator=v({...l,keyframes:[...y].reverse(),velocity:-d})),p.calculatedDuration===null&&(p.calculatedDuration=Yf(p));const{calculatedDuration:x}=p;this.calculatedDuration=x,this.resolvedDuration=x+c,this.totalDuration=this.resolvedDuration*(r+1)-c,this.generator=p}updateTime(l){const o=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=o}tick(l,o=!1){const{generator:r,totalDuration:c,mixKeyframes:h,mirroredGenerator:d,resolvedDuration:y,calculatedDuration:v}=this;if(this.startTime===null)return r.next(0);const{delay:p=0,keyframes:x,repeat:b,repeatType:T,repeatDelay:O,type:V,onUpdate:q,finalKeyframe:Y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,l):this.speed<0&&(this.startTime=Math.min(l-c/this.speed,this.startTime)),o?this.currentTime=l:this.updateTime(l);const G=this.currentTime-p*(this.playbackSpeed>=0?1:-1),Q=this.playbackSpeed>=0?G<0:G>c;this.currentTime=Math.max(G,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let X=this.currentTime,P=r;if(b){const J=Math.min(this.currentTime,c)/y;let lt=Math.floor(J),At=J%1;!At&&J>=1&&(At=1),At===1&<--,lt=Math.min(lt,b+1),lt%2&&(T==="reverse"?(At=1-At,O&&(At-=O/y)):T==="mirror"&&(P=d)),X=Ln(0,1,At)*y}const F=Q?{done:!1,value:x[0]}:P.next(X);h&&(F.value=h(F.value));let{done:it}=F;!Q&&v!==null&&(it=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const et=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&it);return et&&V!==of&&(F.value=qf(x,this.options,Y,this.speed)),q&&q(F.value),et&&this.finish(),F}then(l,o){return this.finished.then(l,o)}get duration(){return cn(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+cn(l)}get time(){return cn(this.currentTime)}set time(l){l=Tn(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(Se.now());const o=this.playbackSpeed!==l;this.playbackSpeed=l,o&&(this.time=cn(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=Cb,startTime:o}=this.options;this.driver||(this.driver=l(c=>this.tick(c))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=o??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Se.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(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 kb(a){for(let l=1;l<a.length;l++)a[l]??(a[l]=a[l-1])}const pi=a=>a*180/Math.PI,rf=a=>{const l=pi(Math.atan2(a[1],a[0]));return uf(l)},Kb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:rf,rotateZ:rf,skewX:a=>pi(Math.atan(a[1])),skewY:a=>pi(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},uf=a=>(a=a%360,a<0&&(a+=360),a),a0=rf,i0=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),l0=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),Qb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:i0,scaleY:l0,scale:a=>(i0(a)+l0(a))/2,rotateX:a=>uf(pi(Math.atan2(a[6],a[5]))),rotateY:a=>uf(pi(Math.atan2(-a[2],a[0]))),rotateZ:a0,rotate:a0,skewX:a=>pi(Math.atan(a[4])),skewY:a=>pi(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function cf(a){return a.includes("scale")?1:0}function ff(a,l){if(!a||a==="none")return cf(l);const o=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,c;if(o)r=Qb,c=o;else{const y=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Kb,c=y}if(!c)return cf(l);const h=r[l],d=c[1].split(",").map(Jb);return typeof h=="function"?h(d):d[h]}const Zb=(a,l)=>{const{transform:o="none"}=getComputedStyle(a);return ff(o,l)};function Jb(a){return parseFloat(a.trim())}const gl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vl=new Set(gl),s0=a=>a===yl||a===I,Fb=new Set(["x","y","z"]),Pb=gl.filter(a=>!Fb.has(a));function Wb(a){const l=[];return Pb.forEach(o=>{const r=a.getValue(o);r!==void 0&&(l.push([o,r.get()]),r.set(o.startsWith("scale")?1:0))}),l}const Ya={width:({x:a},{paddingLeft:l="0",paddingRight:o="0"})=>a.max-a.min-parseFloat(l)-parseFloat(o),height:({y:a},{paddingTop:l="0",paddingBottom:o="0"})=>a.max-a.min-parseFloat(l)-parseFloat(o),top:(a,{top:l})=>parseFloat(l),left:(a,{left:l})=>parseFloat(l),bottom:({y:a},{top:l})=>parseFloat(l)+(a.max-a.min),right:({x:a},{left:l})=>parseFloat(l)+(a.max-a.min),x:(a,{transform:l})=>ff(l,"x"),y:(a,{transform:l})=>ff(l,"y")};Ya.translateX=Ya.x;Ya.translateY=Ya.y;const yi=new Set;let df=!1,hf=!1,mf=!1;function Qy(){if(hf){const a=Array.from(yi).filter(r=>r.needsMeasurement),l=new Set(a.map(r=>r.element)),o=new Map;l.forEach(r=>{const c=Wb(r);c.length&&(o.set(r,c),r.render())}),a.forEach(r=>r.measureInitialState()),l.forEach(r=>{r.render();const c=o.get(r);c&&c.forEach(([h,d])=>{r.getValue(h)?.set(d)})}),a.forEach(r=>r.measureEndState()),a.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}hf=!1,df=!1,yi.forEach(a=>a.complete(mf)),yi.clear()}function Zy(){yi.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(hf=!0)})}function $b(){mf=!0,Zy(),Qy(),mf=!1}class kf{constructor(l,o,r,c,h,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=o,this.name=r,this.motionValue=c,this.element=h,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(yi.add(this),df||(df=!0,Vt.read(Zy),Vt.resolveKeyframes(Qy))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:o,element:r,motionValue:c}=this;if(l[0]===null){const h=c?.get(),d=l[l.length-1];if(h!==void 0)l[0]=h;else if(r&&o){const y=r.readValue(o,d);y!=null&&(l[0]=y)}l[0]===void 0&&(l[0]=d),c&&h===void 0&&c.set(l[0])}kb(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),yi.delete(this)}cancel(){this.state==="scheduled"&&(yi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ib=a=>a.startsWith("--");function tS(a,l,o){Ib(l)?a.style.setProperty(l,o):a.style[l]=o}const eS={};function Jy(a,l){const o=Sy(a);return()=>eS[l]??o()}const nS=Jy(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Fy=Jy(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),zs=([a,l,o,r])=>`cubic-bezier(${a}, ${l}, ${o}, ${r})`,o0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zs([0,.65,.55,1]),circOut:zs([.55,0,1,.45]),backIn:zs([.31,.01,.66,-.59]),backOut:zs([.33,1.53,.69,.99])};function Py(a,l){if(a)return typeof a=="function"?Fy()?Xy(a,l):"ease-out":zy(a)?zs(a):Array.isArray(a)?a.map(o=>Py(o,l)||o0.easeOut):o0[a]}function aS(a,l,o,{delay:r=0,duration:c=300,repeat:h=0,repeatType:d="loop",ease:y="easeOut",times:v}={},p=void 0){const x={[l]:o};v&&(x.offset=v);const b=Py(y,c);Array.isArray(b)&&(x.easing=b);const T={delay:r,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:h+1,direction:d==="reverse"?"alternate":"normal"};return p&&(T.pseudoElement=p),a.animate(x,T)}function Wy(a){return typeof a=="function"&&"applyToOptions"in a}function iS({type:a,...l}){return Wy(a)&&Fy()?a.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class $y extends Gf{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!l)return;const{element:o,name:r,keyframes:c,pseudoElement:h,allowFlatten:d=!1,finalKeyframe:y,onComplete:v}=l;this.isPseudoElement=!!h,this.allowFlatten=d,this.options=l,zf(typeof l.type!="string");const p=iS(l);this.animation=aS(o,r,c,p,h),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!h){const x=qf(c,this.options,y,this.speed);this.updateMotionValue?this.updateMotionValue(x):tS(o,r,x),this.animation.cancel()}v?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:l}=this;l==="idle"||l==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const l=this.options?.element;!this.isPseudoElement&&l?.isConnected&&this.animation.commitStyles?.()}get duration(){const l=this.animation.effect?.getComputedTiming?.().duration||0;return cn(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+cn(l)}get time(){return cn(Number(this.animation.currentTime)||0)}set time(l){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Tn(l)}get speed(){return this.animation.playbackRate}set speed(l){l<0&&(this.finishedTime=null),this.animation.playbackRate=l}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(l){this.manualStartTime=this.animation.startTime=l}attachTimeline({timeline:l,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,l&&nS()?(this.animation.timeline=l,fn):o(this)}}const Iy={anticipate:My,backInOut:jy,circInOut:Dy};function lS(a){return a in Iy}function sS(a){typeof a.ease=="string"&&lS(a.ease)&&(a.ease=Iy[a.ease])}const kc=10;class oS extends $y{constructor(l){sS(l),Ky(l),super(l),l.startTime!==void 0&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:o,onUpdate:r,onComplete:c,element:h,...d}=this.options;if(!o)return;if(l!==void 0){o.set(l);return}const y=new Xf({...d,autoplay:!1}),v=Math.max(kc,Se.now()-this.startTime),p=Ln(0,kc,v-kc);o.setWithVelocity(y.sample(Math.max(0,v-p)).value,y.sample(v).value,p),y.stop()}}const r0=(a,l)=>l==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(An.test(a)||a==="0")&&!a.startsWith("url("));function rS(a){const l=a[0];if(a.length===1)return!0;for(let o=0;o<a.length;o++)if(a[o]!==l)return!0}function uS(a,l,o,r){const c=a[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const h=a[a.length-1],d=r0(c,l),y=r0(h,l);return!d||!y?!1:rS(a)||(o==="spring"||Wy(o))&&r}function pf(a){a.duration=0,a.type="keyframes"}const cS=new Set(["opacity","clipPath","filter","transform"]),fS=Sy(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function dS(a){const{motionValue:l,name:o,repeatDelay:r,repeatType:c,damping:h,type:d}=a;if(!(l?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:v,transformTemplate:p}=l.owner.getProps();return fS()&&o&&cS.has(o)&&(o!=="transform"||!p)&&!v&&!r&&c!=="mirror"&&h!==0&&d!=="inertia"}const hS=40;class mS extends Gf{constructor({autoplay:l=!0,delay:o=0,type:r="keyframes",repeat:c=0,repeatDelay:h=0,repeatType:d="loop",keyframes:y,name:v,motionValue:p,element:x,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Se.now();const T={autoplay:l,delay:o,type:r,repeat:c,repeatDelay:h,repeatType:d,name:v,motionValue:p,element:x,...b},O=x?.KeyframeResolver||kf;this.keyframeResolver=new O(y,(V,q,Y)=>this.onKeyframesResolved(V,q,T,!Y),v,p,x),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,o,r,c){this.keyframeResolver=void 0;const{name:h,type:d,velocity:y,delay:v,isHandoff:p,onUpdate:x}=r;this.resolvedAt=Se.now(),uS(l,h,d,y)||((ra.instantAnimations||!v)&&x?.(qf(l,r,o)),l[0]=l[l.length-1],pf(r),r.repeat=0);const T={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>hS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...r,keyframes:l},O=!p&&dS(T),V=T.motionValue?.owner?.current,q=O?new oS({...T,element:V}):new Xf(T);q.finished.then(()=>{this.notifyFinished()}).catch(fn),this.pendingTimeline&&(this.stopTimeline=q.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=q}get finished(){return this._animation?this.animation.finished:this._finished}then(l,o){return this.finished.finally(l).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),$b()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(l){this.animation.time=l}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(l){this.animation.speed=l}get startTime(){return this.animation.startTime}attachTimeline(l){return this._animation?this.stopTimeline=this.animation.attachTimeline(l):this.pendingTimeline=l,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function tg(a,l,o,r=0,c=1){const h=Array.from(a).sort((p,x)=>p.sortNodePosition(x)).indexOf(l),d=a.size,y=(d-1)*r;return typeof o=="function"?o(h,d):c===1?h*r:y-h*r}const pS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function yS(a){const l=pS.exec(a);if(!l)return[,];const[,o,r,c]=l;return[`--${o??r}`,c]}function eg(a,l,o=1){const[r,c]=yS(a);if(!r)return;const h=window.getComputedStyle(l).getPropertyValue(r);if(h){const d=h.trim();return vy(d)?parseFloat(d):d}return Uf(c)?eg(c,l,o+1):c}const gS={type:"spring",stiffness:500,damping:25,restSpeed:10},vS=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),xS={type:"keyframes",duration:.8},bS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},SS=(a,{keyframes:l})=>l.length>2?xS:vl.has(a)?a.startsWith("scale")?vS(l[1]):gS:bS,TS=a=>a!==null;function AS(a,{repeat:l,repeatType:o="loop"},r){const c=a.filter(TS),h=l&&o!=="loop"&&l%2===1?0:c.length-1;return c[h]}function ng(a,l){if(a?.inherit&&l){const{inherit:o,...r}=a;return{...l,...r}}return a}function Kf(a,l){const o=a?.[l]??a?.default??a;return o!==a?ng(o,a):o}function wS({when:a,delay:l,delayChildren:o,staggerChildren:r,staggerDirection:c,repeat:h,repeatType:d,repeatDelay:y,from:v,elapsed:p,...x}){return!!Object.keys(x).length}const Qf=(a,l,o,r={},c,h)=>d=>{const y=Kf(r,a)||{},v=y.delay||r.delay||0;let{elapsed:p=0}=r;p=p-Tn(v);const x={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:l.getVelocity(),...y,delay:-p,onUpdate:T=>{l.set(T),y.onUpdate&&y.onUpdate(T)},onComplete:()=>{d(),y.onComplete&&y.onComplete()},name:a,motionValue:l,element:h?void 0:c};wS(y)||Object.assign(x,SS(a,x)),x.duration&&(x.duration=Tn(x.duration)),x.repeatDelay&&(x.repeatDelay=Tn(x.repeatDelay)),x.from!==void 0&&(x.keyframes[0]=x.from);let b=!1;if((x.type===!1||x.duration===0&&!x.repeatDelay)&&(pf(x),x.delay===0&&(b=!0)),(ra.instantAnimations||ra.skipAnimations||c?.shouldSkipAnimations)&&(b=!0,pf(x),x.delay=0),x.allowFlatten=!y.type&&!y.ease,b&&!h&&l.get()!==void 0){const T=AS(x.keyframes,y);if(T!==void 0){Vt.update(()=>{x.onUpdate(T),x.onComplete()});return}}return y.isSync?new Xf(x):new mS(x)};function u0(a){const l=[{},{}];return a?.values.forEach((o,r)=>{l[0][r]=o.get(),l[1][r]=o.getVelocity()}),l}function Zf(a,l,o,r){if(typeof l=="function"){const[c,h]=u0(r);l=l(o!==void 0?o:a.custom,c,h)}if(typeof l=="string"&&(l=a.variants&&a.variants[l]),typeof l=="function"){const[c,h]=u0(r);l=l(o!==void 0?o:a.custom,c,h)}return l}function ml(a,l,o){const r=a.getProps();return Zf(r,l,o!==void 0?o:r.custom,a)}const ag=new Set(["width","height","top","left","right","bottom",...gl]),c0=30,ES=a=>!isNaN(parseFloat(a));class CS{constructor(l,o={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const c=Se.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=o.owner}setCurrent(l){this.current=l,this.updatedAt=Se.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=ES(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,o){this.events[l]||(this.events[l]=new Rf);const r=this.events[l].add(o);return l==="change"?()=>{r(),Vt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const l in this.events)this.events[l].clear()}attach(l,o){this.passiveEffect=l,this.stopPassiveEffect=o}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,o,r){this.set(o),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-r}jump(l,o=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(l){this.dependents||(this.dependents=new Set),this.dependents.add(l)}removeDependent(l){this.dependents&&this.dependents.delete(l)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const l=Se.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>c0)return 0;const o=Math.min(this.updatedAt-this.prevUpdatedAt,c0);return Ty(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(l){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=l(o),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pl(a,l){return new CS(a,l)}const yf=a=>Array.isArray(a);function jS(a,l,o){a.hasValue(l)?a.getValue(l).set(o):a.addValue(l,pl(o))}function MS(a){return yf(a)?a[a.length-1]||0:a}function NS(a,l){const o=ml(a,l);let{transitionEnd:r={},transition:c={},...h}=o||{};h={...h,...r};for(const d in h){const y=MS(h[d]);jS(a,d,y)}}const ge=a=>!!(a&&a.getVelocity);function DS(a){return!!(ge(a)&&a.add)}function gf(a,l){const o=a.getValue("willChange");if(DS(o))return o.add(l);if(!o&&ra.WillChange){const r=new ra.WillChange("auto");a.addValue("willChange",r),r.add(l)}}function Jf(a){return a.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const OS="framerAppearId",ig="data-"+Jf(OS);function lg(a){return a.props[ig]}function zS({protectedKeys:a,needsAnimating:l},o){const r=a.hasOwnProperty(o)&&l[o]!==!0;return l[o]=!1,r}function sg(a,l,{delay:o=0,transitionOverride:r,type:c}={}){let{transition:h,transitionEnd:d,...y}=l;const v=a.getDefaultTransition();h=h?ng(h,v):v;const p=h?.reduceMotion;r&&(h=r);const x=[],b=c&&a.animationState&&a.animationState.getState()[c];for(const T in y){const O=a.getValue(T,a.latestValues[T]??null),V=y[T];if(V===void 0||b&&zS(b,T))continue;const q={delay:o,...Kf(h||{},T)},Y=O.get();if(Y!==void 0&&!O.isAnimating&&!Array.isArray(V)&&V===Y&&!q.velocity)continue;let G=!1;if(window.MotionHandoffAnimation){const P=lg(a);if(P){const F=window.MotionHandoffAnimation(P,T,Vt);F!==null&&(q.startTime=F,G=!0)}}gf(a,T);const Q=p??a.shouldReduceMotion;O.start(Qf(T,O,V,Q&&ag.has(T)?{type:!1}:q,a,G));const X=O.animation;X&&x.push(X)}if(d){const T=()=>Vt.update(()=>{d&&NS(a,d)});x.length?Promise.all(x).then(T):T()}return x}function vf(a,l,o={}){const r=ml(a,l,o.type==="exit"?a.presenceContext?.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=r||{};o.transitionOverride&&(c=o.transitionOverride);const h=r?()=>Promise.all(sg(a,r,o)):()=>Promise.resolve(),d=a.variantChildren&&a.variantChildren.size?(v=0)=>{const{delayChildren:p=0,staggerChildren:x,staggerDirection:b}=c;return RS(a,l,v,p,x,b,o)}:()=>Promise.resolve(),{when:y}=c;if(y){const[v,p]=y==="beforeChildren"?[h,d]:[d,h];return v().then(()=>p())}else return Promise.all([h(),d(o.delay)])}function RS(a,l,o=0,r=0,c=0,h=1,d){const y=[];for(const v of a.variantChildren)v.notify("AnimationStart",l),y.push(vf(v,l,{...d,delay:o+(typeof r=="function"?0:r)+tg(a.variantChildren,v,r,c,h)}).then(()=>v.notify("AnimationComplete",l)));return Promise.all(y)}function VS(a,l,o={}){a.notify("AnimationStart",l);let r;if(Array.isArray(l)){const c=l.map(h=>vf(a,h,o));r=Promise.all(c)}else if(typeof l=="string")r=vf(a,l,o);else{const c=typeof l=="function"?ml(a,l,o.custom):l;r=Promise.all(sg(a,c,o))}return r.then(()=>{a.notify("AnimationComplete",l)})}const _S={test:a=>a==="auto",parse:a=>a},og=a=>l=>l.test(a),rg=[yl,I,Bn,Ha,cb,ub,_S],f0=a=>rg.find(og(a));function US(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||by(a):!0}const BS=new Set(["brightness","contrast","saturate","opacity"]);function LS(a){const[l,o]=a.slice(0,-1).split("(");if(l==="drop-shadow")return a;const[r]=o.match(Bf)||[];if(!r)return a;const c=o.replace(r,"");let h=BS.has(l)?1:0;return r!==o&&(h*=100),l+"("+h+c+")"}const HS=/\b([a-z-]*)\(.*?\)/gu,xf={...An,getAnimatableNone:a=>{const l=a.match(HS);return l?l.map(LS).join(" "):a}},bf={...An,getAnimatableNone:a=>{const l=An.parse(a);return An.createTransformer(a)(l.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},d0={...yl,transform:Math.round},YS={rotate:Ha,rotateX:Ha,rotateY:Ha,rotateZ:Ha,scale:ur,scaleX:ur,scaleY:ur,scaleZ:ur,skew:Ha,skewX:Ha,skewY:Ha,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:Ls,originX:$p,originY:$p,originZ:I},Ff={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,top:I,right:I,bottom:I,left:I,inset:I,insetBlock:I,insetBlockStart:I,insetBlockEnd:I,insetInline:I,insetInlineStart:I,insetInlineEnd:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,paddingBlock:I,paddingBlockStart:I,paddingBlockEnd:I,paddingInline:I,paddingInlineStart:I,paddingInlineEnd:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,marginBlock:I,marginBlockStart:I,marginBlockEnd:I,marginInline:I,marginInlineStart:I,marginInlineEnd:I,fontSize:I,backgroundPositionX:I,backgroundPositionY:I,...YS,zIndex:d0,fillOpacity:Ls,strokeOpacity:Ls,numOctaves:d0},qS={...Ff,color:Wt,backgroundColor:Wt,outlineColor:Wt,fill:Wt,stroke:Wt,borderColor:Wt,borderTopColor:Wt,borderRightColor:Wt,borderBottomColor:Wt,borderLeftColor:Wt,filter:xf,WebkitFilter:xf,mask:bf,WebkitMask:bf},ug=a=>qS[a],GS=new Set([xf,bf]);function cg(a,l){let o=ug(a);return GS.has(o)||(o=An),o.getAnimatableNone?o.getAnimatableNone(l):void 0}const XS=new Set(["auto","none","0"]);function kS(a,l,o){let r=0,c;for(;r<a.length&&!c;){const h=a[r];typeof h=="string"&&!XS.has(h)&&Hs(h).values.length&&(c=a[r]),r++}if(c&&o)for(const h of l)a[h]=cg(o,c)}class KS extends kf{constructor(l,o,r,c,h){super(l,o,r,c,h,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:o,name:r}=this;if(!o||!o.current)return;super.readKeyframes();for(let x=0;x<l.length;x++){let b=l[x];if(typeof b=="string"&&(b=b.trim(),Uf(b))){const T=eg(b,o.current);T!==void 0&&(l[x]=T),x===l.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!ag.has(r)||l.length!==2)return;const[c,h]=l,d=f0(c),y=f0(h),v=Wp(c),p=Wp(h);if(v!==p&&Ya[r]){this.needsMeasurement=!0;return}if(d!==y)if(s0(d)&&s0(y))for(let x=0;x<l.length;x++){const b=l[x];typeof b=="string"&&(l[x]=parseFloat(b))}else Ya[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:o}=this,r=[];for(let c=0;c<l.length;c++)(l[c]===null||US(l[c]))&&r.push(c);r.length&&kS(l,r,o)}measureInitialState(){const{element:l,unresolvedKeyframes:o,name:r}=this;if(!l||!l.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ya[r](l.measureViewportBox(),window.getComputedStyle(l.current)),o[0]=this.measuredOrigin;const c=o[o.length-1];c!==void 0&&l.getValue(r,c).jump(c,!1)}measureEndState(){const{element:l,name:o,unresolvedKeyframes:r}=this;if(!l||!l.current)return;const c=l.getValue(o);c&&c.jump(this.measuredOrigin,!1);const h=r.length-1,d=r[h];r[h]=Ya[o](l.measureViewportBox(),window.getComputedStyle(l.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([y,v])=>{l.getValue(y).set(v)}),this.resolveNoneKeyframes()}}const QS=new Set(["opacity","clipPath","filter","transform"]);function fg(a,l,o){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let r=document;const c=o?.[a]??r.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a).filter(r=>r!=null)}const dg=(a,l)=>l&&typeof a=="number"?l.transform(a):a;function Sf(a){return xy(a)&&"offsetHeight"in a}const{schedule:Pf}=Ry(queueMicrotask,!1),Sn={x:!1,y:!1};function hg(){return Sn.x||Sn.y}function ZS(a){return a==="x"||a==="y"?Sn[a]?null:(Sn[a]=!0,()=>{Sn[a]=!1}):Sn.x||Sn.y?null:(Sn.x=Sn.y=!0,()=>{Sn.x=Sn.y=!1})}function mg(a,l){const o=fg(a),r=new AbortController,c={passive:!0,...l,signal:r.signal};return[o,c,()=>r.abort()]}function JS(a){return!(a.pointerType==="touch"||hg())}function FS(a,l,o={}){const[r,c,h]=mg(a,o);return r.forEach(d=>{let y=!1,v=!1,p;const x=()=>{d.removeEventListener("pointerleave",V)},b=Y=>{p&&(p(Y),p=void 0),x()},T=Y=>{y=!1,window.removeEventListener("pointerup",T),window.removeEventListener("pointercancel",T),v&&(v=!1,b(Y))},O=()=>{y=!0,window.addEventListener("pointerup",T,c),window.addEventListener("pointercancel",T,c)},V=Y=>{if(Y.pointerType!=="touch"){if(y){v=!0;return}b(Y)}},q=Y=>{if(!JS(Y))return;v=!1;const G=l(d,Y);typeof G=="function"&&(p=G,d.addEventListener("pointerleave",V,c))};d.addEventListener("pointerenter",q,c),d.addEventListener("pointerdown",O,c)}),h}const pg=(a,l)=>l?a===l?!0:pg(a,l.parentElement):!1,Wf=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,PS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function WS(a){return PS.has(a.tagName)||a.isContentEditable===!0}const $S=new Set(["INPUT","SELECT","TEXTAREA"]);function IS(a){return $S.has(a.tagName)||a.isContentEditable===!0}const hr=new WeakSet;function h0(a){return l=>{l.key==="Enter"&&a(l)}}function Kc(a,l){a.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const t2=(a,l)=>{const o=a.currentTarget;if(!o)return;const r=h0(()=>{if(hr.has(o))return;Kc(o,"down");const c=h0(()=>{Kc(o,"up")}),h=()=>Kc(o,"cancel");o.addEventListener("keyup",c,l),o.addEventListener("blur",h,l)});o.addEventListener("keydown",r,l),o.addEventListener("blur",()=>o.removeEventListener("keydown",r),l)};function m0(a){return Wf(a)&&!hg()}const p0=new WeakSet;function e2(a,l,o={}){const[r,c,h]=mg(a,o),d=y=>{const v=y.currentTarget;if(!m0(y)||p0.has(y))return;hr.add(v),o.stopPropagation&&p0.add(y);const p=l(v,y),x=(O,V)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",T),hr.has(v)&&hr.delete(v),m0(O)&&typeof p=="function"&&p(O,{success:V})},b=O=>{x(O,v===window||v===document||o.useGlobalTarget||pg(v,O.target))},T=O=>{x(O,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",T,c)};return r.forEach(y=>{(o.useGlobalTarget?window:y).addEventListener("pointerdown",d,c),Sf(y)&&(y.addEventListener("focus",p=>t2(p,c)),!WS(y)&&!y.hasAttribute("tabindex")&&(y.tabIndex=0))}),h}function $f(a){return xy(a)&&"ownerSVGElement"in a}const mr=new WeakMap;let pr;const yg=(a,l,o)=>(r,c)=>c&&c[0]?c[0][a+"Size"]:$f(r)&&"getBBox"in r?r.getBBox()[l]:r[o],n2=yg("inline","width","offsetWidth"),a2=yg("block","height","offsetHeight");function i2({target:a,borderBoxSize:l}){mr.get(a)?.forEach(o=>{o(a,{get width(){return n2(a,l)},get height(){return a2(a,l)}})})}function l2(a){a.forEach(i2)}function s2(){typeof ResizeObserver>"u"||(pr=new ResizeObserver(l2))}function o2(a,l){pr||s2();const o=fg(a);return o.forEach(r=>{let c=mr.get(r);c||(c=new Set,mr.set(r,c)),c.add(l),pr?.observe(r)}),()=>{o.forEach(r=>{const c=mr.get(r);c?.delete(l),c?.size||pr?.unobserve(r)})}}const yr=new Set;let cl;function r2(){cl=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};yr.forEach(l=>l(a))},window.addEventListener("resize",cl)}function u2(a){return yr.add(a),cl||r2(),()=>{yr.delete(a),!yr.size&&typeof cl=="function"&&(window.removeEventListener("resize",cl),cl=void 0)}}function y0(a,l){return typeof a=="function"?u2(a):o2(a,l)}function c2(a){return $f(a)&&a.tagName==="svg"}const f2=[...rg,Wt,An],d2=a=>f2.find(og(a)),g0=()=>({translate:0,scale:1,origin:0,originPoint:0}),fl=()=>({x:g0(),y:g0()}),v0=()=>({min:0,max:0}),It=()=>({x:v0(),y:v0()}),h2=new WeakMap;function Mr(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function Ys(a){return typeof a=="string"||Array.isArray(a)}const If=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],td=["initial",...If];function Nr(a){return Mr(a.animate)||td.some(l=>Ys(a[l]))}function gg(a){return!!(Nr(a)||a.variants)}function m2(a,l,o){for(const r in l){const c=l[r],h=o[r];if(ge(c))a.addValue(r,c);else if(ge(h))a.addValue(r,pl(c,{owner:a}));else if(h!==c)if(a.hasValue(r)){const d=a.getValue(r);d.liveStyle===!0?d.jump(c):d.hasAnimated||d.set(c)}else{const d=a.getStaticValue(r);a.addValue(r,pl(d!==void 0?d:c,{owner:a}))}}for(const r in o)l[r]===void 0&&a.removeValue(r);return l}const Tf={current:null},vg={current:!1},p2=typeof window<"u";function y2(){if(vg.current=!0,!!p2)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),l=()=>Tf.current=a.matches;a.addEventListener("change",l),l()}else Tf.current=!1}const x0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ar={};function xg(a){Ar=a}function g2(){return Ar}class v2{scrapeMotionValuesFromProps(l,o,r){return{}}constructor({parent:l,props:o,presenceContext:r,reducedMotionConfig:c,skipAnimations:h,blockInitialAnimation:d,visualState:y},v={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=kf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const O=Se.now();this.renderScheduledAt<O&&(this.renderScheduledAt=O,Vt.render(this.render,!1,!0))};const{latestValues:p,renderState:x}=y;this.latestValues=p,this.baseTarget={...p},this.initialValues=o.initial?{...p}:{},this.renderState=x,this.parent=l,this.props=o,this.presenceContext=r,this.depth=l?l.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=h,this.options=v,this.blockInitialAnimation=!!d,this.isControllingVariants=Nr(o),this.isVariantNode=gg(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:b,...T}=this.scrapeMotionValuesFromProps(o,{},this);for(const O in T){const V=T[O];p[O]!==void 0&&ge(V)&&V.set(p[O])}}mount(l){if(this.hasBeenMounted)for(const o in this.initialValues)this.values.get(o)?.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=l,h2.set(l,this),this.projection&&!this.projection.instance&&this.projection.mount(l),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,r)=>this.bindToMotionValue(r,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(vg.current||y2(),this.shouldReduceMotion=Tf.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(),qa(this.notifyUpdate),qa(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const l in this.events)this.events[l].clear();for(const l in this.features){const o=this.features[l];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(l){this.children.add(l),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(l)}removeChild(l){this.children.delete(l),this.enteringChildren&&this.enteringChildren.delete(l)}bindToMotionValue(l,o){if(this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)(),o.accelerate&&QS.has(l)&&this.current instanceof HTMLElement){const{factory:d,keyframes:y,times:v,ease:p,duration:x}=o.accelerate,b=new $y({element:this.current,name:l,keyframes:y,times:v,ease:p,duration:Tn(x)}),T=d(b);this.valueSubscriptions.set(l,()=>{T(),b.cancel()});return}const r=vl.has(l);r&&this.onBindTransform&&this.onBindTransform();const c=o.on("change",d=>{this.latestValues[l]=d,this.props.onUpdate&&Vt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let h;typeof window<"u"&&window.MotionCheckAppearSync&&(h=window.MotionCheckAppearSync(this,l,o)),this.valueSubscriptions.set(l,()=>{c(),h&&h(),o.owner&&o.stop()})}sortNodePosition(l){return!this.current||!this.sortInstanceNodePosition||this.type!==l.type?0:this.sortInstanceNodePosition(this.current,l.current)}updateFeatures(){let l="animation";for(l in Ar){const o=Ar[l];if(!o)continue;const{isEnabled:r,Feature:c}=o;if(!this.features[l]&&c&&r(this.props)&&(this.features[l]=new c(this)),this.features[l]){const h=this.features[l];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):It()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,o){this.latestValues[l]=o}update(l,o){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let r=0;r<x0.length;r++){const c=x0[r];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const h="on"+c,d=l[h];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=m2(this,this.scrapeMotionValuesFromProps(l,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(l){return this.props.variants?this.props.variants[l]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(l){const o=this.getClosestVariantNode();if(o)return o.variantChildren&&o.variantChildren.add(l),()=>o.variantChildren.delete(l)}addValue(l,o){const r=this.values.get(l);o!==r&&(r&&this.removeValue(l),this.bindToMotionValue(l,o),this.values.set(l,o),this.latestValues[l]=o.get())}removeValue(l){this.values.delete(l);const o=this.valueSubscriptions.get(l);o&&(o(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,o){if(this.props.values&&this.props.values[l])return this.props.values[l];let r=this.values.get(l);return r===void 0&&o!==void 0&&(r=pl(o===null?void 0:o,{owner:this}),this.addValue(l,r)),r}readValue(l,o){let r=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return r!=null&&(typeof r=="string"&&(vy(r)||by(r))?r=parseFloat(r):!d2(r)&&An.test(o)&&(r=cg(l,o)),this.setBaseTarget(l,ge(r)?r.get():r)),ge(r)?r.get():r}setBaseTarget(l,o){this.baseTarget[l]=o}getBaseTarget(l){const{initial:o}=this.props;let r;if(typeof o=="string"||typeof o=="object"){const h=Zf(this.props,o,this.presenceContext?.custom);h&&(r=h[l])}if(o&&r!==void 0)return r;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!ge(c)?c:this.initialValues[l]!==void 0&&r===void 0?void 0:this.baseTarget[l]}on(l,o){return this.events[l]||(this.events[l]=new Rf),this.events[l].add(o)}notify(l,...o){this.events[l]&&this.events[l].notify(...o)}scheduleRenderMicrotask(){Pf.render(this.render)}}class bg extends v2{constructor(){super(...arguments),this.KeyframeResolver=KS}sortInstanceNodePosition(l,o){return l.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(l,o){const r=l.style;return r?r[o]:void 0}removeValueFromRenderState(l,{vars:o,style:r}){delete o[l],delete r[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;ge(l)&&(this.childSubscription=l.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}}class Ga{constructor(l){this.isMounted=!1,this.node=l}update(){}}function Sg({top:a,left:l,right:o,bottom:r}){return{x:{min:l,max:o},y:{min:a,max:r}}}function x2({x:a,y:l}){return{top:l.min,right:a.max,bottom:l.max,left:a.min}}function b2(a,l){if(!l)return a;const o=l({x:a.left,y:a.top}),r=l({x:a.right,y:a.bottom});return{top:o.y,left:o.x,bottom:r.y,right:r.x}}function Qc(a){return a===void 0||a===1}function Af({scale:a,scaleX:l,scaleY:o}){return!Qc(a)||!Qc(l)||!Qc(o)}function hi(a){return Af(a)||Tg(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Tg(a){return b0(a.x)||b0(a.y)}function b0(a){return a&&a!=="0%"}function wr(a,l,o){const r=a-o,c=l*r;return o+c}function S0(a,l,o,r,c){return c!==void 0&&(a=wr(a,c,r)),wr(a,o,r)+l}function wf(a,l=0,o=1,r,c){a.min=S0(a.min,l,o,r,c),a.max=S0(a.max,l,o,r,c)}function Ag(a,{x:l,y:o}){wf(a.x,l.translate,l.scale,l.originPoint),wf(a.y,o.translate,o.scale,o.originPoint)}const T0=.999999999999,A0=1.0000000000001;function S2(a,l,o,r=!1){const c=o.length;if(!c)return;l.x=l.y=1;let h,d;for(let y=0;y<c;y++){h=o[y],d=h.projectionDelta;const{visualElement:v}=h.options;v&&v.props.style&&v.props.style.display==="contents"||(r&&h.options.layoutScroll&&h.scroll&&h!==h.root&&hl(a,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),d&&(l.x*=d.x.scale,l.y*=d.y.scale,Ag(a,d)),r&&hi(h.latestValues)&&hl(a,h.latestValues))}l.x<A0&&l.x>T0&&(l.x=1),l.y<A0&&l.y>T0&&(l.y=1)}function dl(a,l){a.min=a.min+l,a.max=a.max+l}function w0(a,l,o,r,c=.5){const h=Lt(a.min,a.max,c);wf(a,l,o,h,r)}function hl(a,l){w0(a.x,l.x,l.scaleX,l.scale,l.originX),w0(a.y,l.y,l.scaleY,l.scale,l.originY)}function wg(a,l){return Sg(b2(a.getBoundingClientRect(),l))}function T2(a,l,o){const r=wg(a,o),{scroll:c}=l;return c&&(dl(r.x,c.offset.x),dl(r.y,c.offset.y)),r}const A2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},w2=gl.length;function E2(a,l,o){let r="",c=!0;for(let h=0;h<w2;h++){const d=gl[h],y=a[d];if(y===void 0)continue;let v=!0;if(typeof y=="number")v=y===(d.startsWith("scale")?1:0);else{const p=parseFloat(y);v=d.startsWith("scale")?p===1:p===0}if(!v||o){const p=dg(y,Ff[d]);if(!v){c=!1;const x=A2[d]||d;r+=`${x}(${p}) `}o&&(l[d]=p)}}return r=r.trim(),o?r=o(l,c?"":r):c&&(r="none"),r}function ed(a,l,o){const{style:r,vars:c,transformOrigin:h}=a;let d=!1,y=!1;for(const v in l){const p=l[v];if(vl.has(v)){d=!0;continue}else if(_y(v)){c[v]=p;continue}else{const x=dg(p,Ff[v]);v.startsWith("origin")?(y=!0,h[v]=x):r[v]=x}}if(l.transform||(d||o?r.transform=E2(l,a.transform,o):r.transform&&(r.transform="none")),y){const{originX:v="50%",originY:p="50%",originZ:x=0}=h;r.transformOrigin=`${v} ${p} ${x}`}}function Eg(a,{style:l,vars:o},r,c){const h=a.style;let d;for(d in l)h[d]=l[d];c?.applyProjectionStyles(h,r);for(d in o)h.setProperty(d,o[d])}function E0(a,l){return l.max===l.min?0:a/(l.max-l.min)*100}const Ds={correct:(a,l)=>{if(!l.target)return a;if(typeof a=="string")if(I.test(a))a=parseFloat(a);else return a;const o=E0(a,l.target.x),r=E0(a,l.target.y);return`${o}% ${r}%`}},C2={correct:(a,{treeScale:l,projectionDelta:o})=>{const r=a,c=An.parse(a);if(c.length>5)return r;const h=An.createTransformer(a),d=typeof c[0]!="number"?1:0,y=o.x.scale*l.x,v=o.y.scale*l.y;c[0+d]/=y,c[1+d]/=v;const p=Lt(y,v,.5);return typeof c[2+d]=="number"&&(c[2+d]/=p),typeof c[3+d]=="number"&&(c[3+d]/=p),h(c)}},Ef={borderRadius:{...Ds,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ds,borderTopRightRadius:Ds,borderBottomLeftRadius:Ds,borderBottomRightRadius:Ds,boxShadow:C2};function Cg(a,{layout:l,layoutId:o}){return vl.has(a)||a.startsWith("origin")||(l||o!==void 0)&&(!!Ef[a]||a==="opacity")}function nd(a,l,o){const r=a.style,c=l?.style,h={};if(!r)return h;for(const d in r)(ge(r[d])||c&&ge(c[d])||Cg(d,a)||o?.getValue(d)?.liveStyle!==void 0)&&(h[d]=r[d]);return h}function j2(a){return window.getComputedStyle(a)}class M2 extends bg{constructor(){super(...arguments),this.type="html",this.renderInstance=Eg}readValueFromInstance(l,o){if(vl.has(o))return this.projection?.isProjecting?cf(o):Zb(l,o);{const r=j2(l),c=(_y(o)?r.getPropertyValue(o):r[o])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:o}){return wg(l,o)}build(l,o,r){ed(l,o,r.transformTemplate)}scrapeMotionValuesFromProps(l,o,r){return nd(l,o,r)}}const N2={offset:"stroke-dashoffset",array:"stroke-dasharray"},D2={offset:"strokeDashoffset",array:"strokeDasharray"};function O2(a,l,o=1,r=0,c=!0){a.pathLength=1;const h=c?N2:D2;a[h.offset]=`${-r}`,a[h.array]=`${l} ${o}`}const z2=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function jg(a,{attrX:l,attrY:o,attrScale:r,pathLength:c,pathSpacing:h=1,pathOffset:d=0,...y},v,p,x){if(ed(a,y,p),v){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:b,style:T}=a;b.transform&&(T.transform=b.transform,delete b.transform),(T.transform||b.transformOrigin)&&(T.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),T.transform&&(T.transformBox=x?.transformBox??"fill-box",delete b.transformBox);for(const O of z2)b[O]!==void 0&&(T[O]=b[O],delete b[O]);l!==void 0&&(b.x=l),o!==void 0&&(b.y=o),r!==void 0&&(b.scale=r),c!==void 0&&O2(b,c,h,d,!1)}const Mg=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"]),Ng=a=>typeof a=="string"&&a.toLowerCase()==="svg";function R2(a,l,o,r){Eg(a,l,void 0,r);for(const c in l.attrs)a.setAttribute(Mg.has(c)?c:Jf(c),l.attrs[c])}function Dg(a,l,o){const r=nd(a,l,o);for(const c in a)if(ge(a[c])||ge(l[c])){const h=gl.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;r[h]=a[c]}return r}class V2 extends bg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=It}getBaseTargetFromProps(l,o){return l[o]}readValueFromInstance(l,o){if(vl.has(o)){const r=ug(o);return r&&r.default||0}return o=Mg.has(o)?o:Jf(o),l.getAttribute(o)}scrapeMotionValuesFromProps(l,o,r){return Dg(l,o,r)}build(l,o,r){jg(l,o,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(l,o,r,c){R2(l,o,r,c)}mount(l){this.isSVGTag=Ng(l.tagName),super.mount(l)}}const _2=td.length;function Og(a){if(!a)return;if(!a.isControllingVariants){const o=a.parent?Og(a.parent)||{}:{};return a.props.initial!==void 0&&(o.initial=a.props.initial),o}const l={};for(let o=0;o<_2;o++){const r=td[o],c=a.props[r];(Ys(c)||c===!1)&&(l[r]=c)}return l}function zg(a,l){if(!Array.isArray(l))return!1;const o=l.length;if(o!==a.length)return!1;for(let r=0;r<o;r++)if(l[r]!==a[r])return!1;return!0}const U2=[...If].reverse(),B2=If.length;function L2(a){return l=>Promise.all(l.map(({animation:o,options:r})=>VS(a,o,r)))}function H2(a){let l=L2(a),o=C0(),r=!0;const c=v=>(p,x)=>{const b=ml(a,x,v==="exit"?a.presenceContext?.custom:void 0);if(b){const{transition:T,transitionEnd:O,...V}=b;p={...p,...V,...O}}return p};function h(v){l=v(a)}function d(v){const{props:p}=a,x=Og(a.parent)||{},b=[],T=new Set;let O={},V=1/0;for(let Y=0;Y<B2;Y++){const G=U2[Y],Q=o[G],X=p[G]!==void 0?p[G]:x[G],P=Ys(X),F=G===v?Q.isActive:null;F===!1&&(V=Y);let it=X===x[G]&&X!==p[G]&&P;if(it&&r&&a.manuallyAnimateOnMount&&(it=!1),Q.protectedKeys={...O},!Q.isActive&&F===null||!X&&!Q.prevProp||Mr(X)||typeof X=="boolean")continue;if(G==="exit"&&Q.isActive&&F!==!0){Q.prevResolvedValues&&(O={...O,...Q.prevResolvedValues});continue}const et=Y2(Q.prevProp,X);let J=et||G===v&&Q.isActive&&!it&&P||Y>V&&P,lt=!1;const At=Array.isArray(X)?X:[X];let jt=At.reduce(c(G),{});F===!1&&(jt={});const{prevResolvedValues:Mt={}}=Q,Ae={...Mt,...jt},ee=H=>{J=!0,T.has(H)&&(lt=!0,T.delete(H)),Q.needsAnimating[H]=!0;const Z=a.getValue(H);Z&&(Z.liveStyle=!1)};for(const H in Ae){const Z=jt[H],ht=Mt[H];if(O.hasOwnProperty(H))continue;let ut=!1;yf(Z)&&yf(ht)?ut=!zg(Z,ht):ut=Z!==ht,ut?Z!=null?ee(H):T.add(H):Z!==void 0&&T.has(H)?ee(H):Q.protectedKeys[H]=!0}Q.prevProp=X,Q.prevResolvedValues=jt,Q.isActive&&(O={...O,...jt}),r&&a.blockInitialAnimation&&(J=!1);const mt=it&&et;J&&(!mt||lt)&&b.push(...At.map(H=>{const Z={type:G};if(typeof H=="string"&&r&&!mt&&a.manuallyAnimateOnMount&&a.parent){const{parent:ht}=a,ut=ml(ht,H);if(ht.enteringChildren&&ut){const{delayChildren:w}=ut.transition||{};Z.delay=tg(ht.enteringChildren,a,w)}}return{animation:H,options:Z}}))}if(T.size){const Y={};if(typeof p.initial!="boolean"){const G=ml(a,Array.isArray(p.initial)?p.initial[0]:p.initial);G&&G.transition&&(Y.transition=G.transition)}T.forEach(G=>{const Q=a.getBaseTarget(G),X=a.getValue(G);X&&(X.liveStyle=!0),Y[G]=Q??null}),b.push({animation:Y})}let q=!!b.length;return r&&(p.initial===!1||p.initial===p.animate)&&!a.manuallyAnimateOnMount&&(q=!1),r=!1,q?l(b):Promise.resolve()}function y(v,p){if(o[v].isActive===p)return Promise.resolve();a.variantChildren?.forEach(b=>b.animationState?.setActive(v,p)),o[v].isActive=p;const x=d(v);for(const b in o)o[b].protectedKeys={};return x}return{animateChanges:d,setActive:y,setAnimateFunction:h,getState:()=>o,reset:()=>{o=C0()}}}function Y2(a,l){return typeof l=="string"?l!==a:Array.isArray(l)?!zg(l,a):!1}function di(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function C0(){return{animate:di(!0),whileInView:di(),whileHover:di(),whileTap:di(),whileDrag:di(),whileFocus:di(),exit:di()}}function j0(a,l){a.min=l.min,a.max=l.max}function bn(a,l){j0(a.x,l.x),j0(a.y,l.y)}function M0(a,l){a.translate=l.translate,a.scale=l.scale,a.originPoint=l.originPoint,a.origin=l.origin}const Rg=1e-4,q2=1-Rg,G2=1+Rg,Vg=.01,X2=0-Vg,k2=0+Vg;function Te(a){return a.max-a.min}function K2(a,l,o){return Math.abs(a-l)<=o}function N0(a,l,o,r=.5){a.origin=r,a.originPoint=Lt(l.min,l.max,a.origin),a.scale=Te(o)/Te(l),a.translate=Lt(o.min,o.max,a.origin)-a.originPoint,(a.scale>=q2&&a.scale<=G2||isNaN(a.scale))&&(a.scale=1),(a.translate>=X2&&a.translate<=k2||isNaN(a.translate))&&(a.translate=0)}function _s(a,l,o,r){N0(a.x,l.x,o.x,r?r.originX:void 0),N0(a.y,l.y,o.y,r?r.originY:void 0)}function D0(a,l,o){a.min=o.min+l.min,a.max=a.min+Te(l)}function Q2(a,l,o){D0(a.x,l.x,o.x),D0(a.y,l.y,o.y)}function O0(a,l,o){a.min=l.min-o.min,a.max=a.min+Te(l)}function Er(a,l,o){O0(a.x,l.x,o.x),O0(a.y,l.y,o.y)}function z0(a,l,o,r,c){return a-=l,a=wr(a,1/o,r),c!==void 0&&(a=wr(a,1/c,r)),a}function Z2(a,l=0,o=1,r=.5,c,h=a,d=a){if(Bn.test(l)&&(l=parseFloat(l),l=Lt(d.min,d.max,l/100)-d.min),typeof l!="number")return;let y=Lt(h.min,h.max,r);a===h&&(y-=l),a.min=z0(a.min,l,o,y,c),a.max=z0(a.max,l,o,y,c)}function R0(a,l,[o,r,c],h,d){Z2(a,l[o],l[r],l[c],l.scale,h,d)}const J2=["x","scaleX","originX"],F2=["y","scaleY","originY"];function V0(a,l,o,r){R0(a.x,l,J2,o?o.x:void 0,r?r.x:void 0),R0(a.y,l,F2,o?o.y:void 0,r?r.y:void 0)}function _0(a){return a.translate===0&&a.scale===1}function _g(a){return _0(a.x)&&_0(a.y)}function U0(a,l){return a.min===l.min&&a.max===l.max}function P2(a,l){return U0(a.x,l.x)&&U0(a.y,l.y)}function B0(a,l){return Math.round(a.min)===Math.round(l.min)&&Math.round(a.max)===Math.round(l.max)}function Ug(a,l){return B0(a.x,l.x)&&B0(a.y,l.y)}function L0(a){return Te(a.x)/Te(a.y)}function H0(a,l){return a.translate===l.translate&&a.scale===l.scale&&a.originPoint===l.originPoint}function Un(a){return[a("x"),a("y")]}function W2(a,l,o){let r="";const c=a.x.translate/l.x,h=a.y.translate/l.y,d=o?.z||0;if((c||h||d)&&(r=`translate3d(${c}px, ${h}px, ${d}px) `),(l.x!==1||l.y!==1)&&(r+=`scale(${1/l.x}, ${1/l.y}) `),o){const{transformPerspective:p,rotate:x,rotateX:b,rotateY:T,skewX:O,skewY:V}=o;p&&(r=`perspective(${p}px) ${r}`),x&&(r+=`rotate(${x}deg) `),b&&(r+=`rotateX(${b}deg) `),T&&(r+=`rotateY(${T}deg) `),O&&(r+=`skewX(${O}deg) `),V&&(r+=`skewY(${V}deg) `)}const y=a.x.scale*l.x,v=a.y.scale*l.y;return(y!==1||v!==1)&&(r+=`scale(${y}, ${v})`),r||"none"}const Bg=["TopLeft","TopRight","BottomLeft","BottomRight"],$2=Bg.length,Y0=a=>typeof a=="string"?parseFloat(a):a,q0=a=>typeof a=="number"||I.test(a);function I2(a,l,o,r,c,h){c?(a.opacity=Lt(0,o.opacity??1,tT(r)),a.opacityExit=Lt(l.opacity??1,0,eT(r))):h&&(a.opacity=Lt(l.opacity??1,o.opacity??1,r));for(let d=0;d<$2;d++){const y=`border${Bg[d]}Radius`;let v=G0(l,y),p=G0(o,y);if(v===void 0&&p===void 0)continue;v||(v=0),p||(p=0),v===0||p===0||q0(v)===q0(p)?(a[y]=Math.max(Lt(Y0(v),Y0(p),r),0),(Bn.test(p)||Bn.test(v))&&(a[y]+="%")):a[y]=p}(l.rotate||o.rotate)&&(a.rotate=Lt(l.rotate||0,o.rotate||0,r))}function G0(a,l){return a[l]!==void 0?a[l]:a.borderRadius}const tT=Lg(0,.5,Ny),eT=Lg(.5,.95,fn);function Lg(a,l,o){return r=>r<a?0:r>l?1:o(Bs(a,l,r))}function nT(a,l,o){const r=ge(a)?a:pl(a);return r.start(Qf("",r,l,o)),r.animation}function qs(a,l,o,r={passive:!0}){return a.addEventListener(l,o,r),()=>a.removeEventListener(l,o)}const aT=(a,l)=>a.depth-l.depth;class iT{constructor(){this.children=[],this.isDirty=!1}add(l){Of(this.children,l),this.isDirty=!0}remove(l){xr(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(aT),this.isDirty=!1,this.children.forEach(l)}}function lT(a,l){const o=Se.now(),r=({timestamp:c})=>{const h=c-o;h>=l&&(qa(r),a(h-l))};return Vt.setup(r,!0),()=>qa(r)}function gr(a){return ge(a)?a.get():a}class sT{constructor(){this.members=[]}add(l){Of(this.members,l);for(let o=this.members.length-1;o>=0;o--){const r=this.members[o];if(r===l||r===this.lead||r===this.prevLead)continue;const c=r.instance;c&&c.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&xr(this.members,r)}l.scheduleRender()}remove(l){if(xr(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(l){const o=this.members.findIndex(c=>l===c);if(o===0)return!1;let r;for(let c=o;c>=0;c--){const h=this.members[c],d=h.instance;if(h.isPresent!==!1&&(!d||d.isConnected!==!1)){r=h;break}}return r?(this.promote(r),!0):!1}promote(l,o){const r=this.lead;if(l!==r&&(this.prevLead=r,this.lead=l,l.show(),r)){r.instance&&r.scheduleRender(),l.scheduleRender();const c=r.options.layoutDependency,h=l.options.layoutDependency;if(!(c!==void 0&&h!==void 0&&c===h)){const v=r.instance;v&&v.isConnected===!1&&!r.snapshot||(l.resumeFrom=r,o&&(l.resumeFrom.preserveOpacity=!0),r.snapshot&&(l.snapshot=r.snapshot,l.snapshot.latestValues=r.animationValues||r.latestValues),l.root&&l.root.isUpdating&&(l.isLayoutDirty=!0))}const{crossfade:y}=l.options;y===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(l=>{const{options:o,resumingFrom:r}=l;o.onExitComplete&&o.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(l=>{l.instance&&l.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const vr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Zc=["","X","Y","Z"],oT=1e3;let rT=0;function Jc(a,l,o,r){const{latestValues:c}=l;c[a]&&(o[a]=c[a],l.setStaticValue(a,0),r&&(r[a]=0))}function Hg(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:l}=a.options;if(!l)return;const o=lg(l);if(window.MotionHasOptimisedAnimation(o,"transform")){const{layout:c,layoutId:h}=a.options;window.MotionCancelOptimisedAnimation(o,"transform",Vt,!(c||h))}const{parent:r}=a;r&&!r.hasCheckedOptimisedAppear&&Hg(r)}function Yg({attachResizeListener:a,defaultParent:l,measureScroll:o,checkIsScrollRoot:r,resetTransform:c}){return class{constructor(d={},y=l?.()){this.id=rT++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(fT),this.nodes.forEach(pT),this.nodes.forEach(yT),this.nodes.forEach(dT)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=y?y.root||y:this,this.path=y?[...y.path,y]:[],this.parent=y,this.depth=y?y.depth+1:0;for(let v=0;v<this.path.length;v++)this.path[v].shouldResetTransform=!0;this.root===this&&(this.nodes=new iT)}addEventListener(d,y){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new Rf),this.eventHandlers.get(d).add(y)}notifyListeners(d,...y){const v=this.eventHandlers.get(d);v&&v.notify(...y)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=$f(d)&&!c2(d),this.instance=d;const{layoutId:y,layout:v,visualElement:p}=this.options;if(p&&!p.current&&p.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(v||y)&&(this.isLayoutDirty=!0),a){let x,b=0;const T=()=>this.root.updateBlockedByResize=!1;Vt.read(()=>{b=window.innerWidth}),a(d,()=>{const O=window.innerWidth;O!==b&&(b=O,this.root.updateBlockedByResize=!0,x&&x(),x=lT(T,250),vr.hasAnimatedSinceResize&&(vr.hasAnimatedSinceResize=!1,this.nodes.forEach(K0)))})}y&&this.root.registerSharedNode(y,this),this.options.animate!==!1&&p&&(y||v)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:b,hasRelativeLayoutChanged:T,layout:O})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const V=this.options.transition||p.getDefaultTransition()||ST,{onLayoutAnimationStart:q,onLayoutAnimationComplete:Y}=p.getProps(),G=!this.targetLayout||!Ug(this.targetLayout,O),Q=!b&&T;if(this.options.layoutRoot||this.resumeFrom||Q||b&&(G||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const X={...Kf(V,"layout"),onPlay:q,onComplete:Y};(p.shouldReduceMotion||this.options.layoutRoot)&&(X.delay=0,X.type=!1),this.startAnimation(X),this.setAnimationOrigin(x,Q)}else b||K0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=O})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),qa(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(gT),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Hg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let x=0;x<this.path.length;x++){const b=this.path[x];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:y,layout:v}=this.options;if(y===void 0&&!v)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(X0);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(k0);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mT),this.nodes.forEach(uT),this.nodes.forEach(cT)):this.nodes.forEach(k0),this.clearAllSnapshots();const y=Se.now();fe.delta=Ln(0,1e3/60,y-fe.timestamp),fe.timestamp=y,fe.isProcessing=!0,Hc.update.process(fe),Hc.preRender.process(fe),Hc.render.process(fe),fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Pf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hT),this.sharedNodes.forEach(vT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Vt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Vt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Te(this.snapshot.measuredBox.x)&&!Te(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let v=0;v<this.path.length;v++)this.path[v].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=It(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:y}=this.options;y&&y.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let y=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(y=!1),y&&this.instance){const v=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:v,offset:o(this.instance),wasRoot:this.scroll?this.scroll.isRoot:v}}}resetTransform(){if(!c)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,y=this.projectionDelta&&!_g(this.projectionDelta),v=this.getTransformTemplate(),p=v?v(this.latestValues,""):void 0,x=p!==this.prevTransformTemplateValue;d&&this.instance&&(y||hi(this.latestValues)||x)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const y=this.measurePageBox();let v=this.removeElementScroll(y);return d&&(v=this.removeTransform(v)),TT(v),{animationId:this.root.animationId,measuredBox:y,layoutBox:v,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return It();const y=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(AT))){const{scroll:p}=this.root;p&&(dl(y.x,p.offset.x),dl(y.y,p.offset.y))}return y}removeElementScroll(d){const y=It();if(bn(y,d),this.scroll?.wasRoot)return y;for(let v=0;v<this.path.length;v++){const p=this.path[v],{scroll:x,options:b}=p;p!==this.root&&x&&b.layoutScroll&&(x.wasRoot&&bn(y,d),dl(y.x,x.offset.x),dl(y.y,x.offset.y))}return y}applyTransform(d,y=!1){const v=It();bn(v,d);for(let p=0;p<this.path.length;p++){const x=this.path[p];!y&&x.options.layoutScroll&&x.scroll&&x!==x.root&&hl(v,{x:-x.scroll.offset.x,y:-x.scroll.offset.y}),hi(x.latestValues)&&hl(v,x.latestValues)}return hi(this.latestValues)&&hl(v,this.latestValues),v}removeTransform(d){const y=It();bn(y,d);for(let v=0;v<this.path.length;v++){const p=this.path[v];if(!p.instance||!hi(p.latestValues))continue;Af(p.latestValues)&&p.updateSnapshot();const x=It(),b=p.measurePageBox();bn(x,b),V0(y,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,x)}return hi(this.latestValues)&&V0(y,this.latestValues),y}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==fe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const y=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=y.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=y.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=y.isSharedProjectionDirty);const v=!!this.resumingFrom||this!==y;if(!(d||v&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:x,layoutId:b}=this.options;if(!this.layout||!(x||b))return;this.resolvedRelativeTargetAt=fe.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(),Q2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):bn(this.target,this.layout.layoutBox),Ag(this.target,this.targetDelta)):bn(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||Af(this.parent.latestValues)||Tg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,y,v){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=It(),this.relativeTargetOrigin=It(),Er(this.relativeTargetOrigin,y,v),bn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),y=!!this.resumingFrom||this!==d;let v=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(v=!1),y&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(v=!1),this.resolvedRelativeTargetAt===fe.timestamp&&(v=!1),v)return;const{layout:p,layoutId:x}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||x))return;bn(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,T=this.treeScale.y;S2(this.layoutCorrected,this.treeScale,this.path,y),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=It());const{target:O}=d;if(!O){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(M0(this.prevProjectionDelta.x,this.projectionDelta.x),M0(this.prevProjectionDelta.y,this.projectionDelta.y)),_s(this.projectionDelta,this.layoutCorrected,O,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==T||!H0(this.projectionDelta.x,this.prevProjectionDelta.x)||!H0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",O))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const y=this.getStack();y&&y.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=fl(),this.projectionDelta=fl(),this.projectionDeltaWithTransform=fl()}setAnimationOrigin(d,y=!1){const v=this.snapshot,p=v?v.latestValues:{},x={...this.latestValues},b=fl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!y;const T=It(),O=v?v.source:void 0,V=this.layout?this.layout.source:void 0,q=O!==V,Y=this.getStack(),G=!Y||Y.members.length<=1,Q=!!(q&&!G&&this.options.crossfade===!0&&!this.path.some(bT));this.animationProgress=0;let X;this.mixTargetDelta=P=>{const F=P/1e3;Q0(b.x,d.x,F),Q0(b.y,d.y,F),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Er(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),xT(this.relativeTarget,this.relativeTargetOrigin,T,F),X&&P2(this.relativeTarget,X)&&(this.isProjectionDirty=!1),X||(X=It()),bn(X,this.relativeTarget)),q&&(this.animationValues=x,I2(x,p,this.latestValues,F,Q,G)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=F},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(qa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Vt.update(()=>{vr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=pl(0)),this.motionValue.jump(0,!1),this.currentAnimation=nT(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),d.onUpdate&&d.onUpdate(y)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(oT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:y,target:v,layout:p,latestValues:x}=d;if(!(!y||!v||!p)){if(this!==d&&this.layout&&p&&qg(this.options.animationType,this.layout.layoutBox,p.layoutBox)){v=this.target||It();const b=Te(this.layout.layoutBox.x);v.x.min=d.target.x.min,v.x.max=v.x.min+b;const T=Te(this.layout.layoutBox.y);v.y.min=d.target.y.min,v.y.max=v.y.min+T}bn(y,v),hl(y,x),_s(this.projectionDeltaWithTransform,this.layoutCorrected,y,x)}}registerSharedNode(d,y){this.sharedNodes.has(d)||this.sharedNodes.set(d,new sT),this.sharedNodes.get(d).add(y);const p=y.options.initialPromotionConfig;y.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(y):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:y,preserveFollowOpacity:v}={}){const p=this.getStack();p&&p.promote(this,v),d&&(this.projectionDelta=void 0,this.needsReset=!0),y&&this.setOptions({transition:y})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let y=!1;const{latestValues:v}=d;if((v.z||v.rotate||v.rotateX||v.rotateY||v.rotateZ||v.skewX||v.skewY)&&(y=!0),!y)return;const p={};v.z&&Jc("z",d,p,this.animationValues);for(let x=0;x<Zc.length;x++)Jc(`rotate${Zc[x]}`,d,p,this.animationValues),Jc(`skew${Zc[x]}`,d,p,this.animationValues);d.render();for(const x in p)d.setStaticValue(x,p[x]),this.animationValues&&(this.animationValues[x]=p[x]);d.scheduleRender()}applyProjectionStyles(d,y){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const v=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=gr(y?.pointerEvents)||"",d.transform=v?v(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=gr(y?.pointerEvents)||""),this.hasProjected&&!hi(this.latestValues)&&(d.transform=v?v({},""):"none",this.hasProjected=!1);return}d.visibility="";const x=p.animationValues||p.latestValues;this.applyTransformsToTarget();let b=W2(this.projectionDeltaWithTransform,this.treeScale,x);v&&(b=v(x,b)),d.transform=b;const{x:T,y:O}=this.projectionDelta;d.transformOrigin=`${T.origin*100}% ${O.origin*100}% 0`,p.animationValues?d.opacity=p===this?x.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:d.opacity=p===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const V in Ef){if(x[V]===void 0)continue;const{correct:q,applyTo:Y,isCSSVariable:G}=Ef[V],Q=b==="none"?x[V]:q(x[V],p);if(Y){const X=Y.length;for(let P=0;P<X;P++)d[Y[P]]=Q}else G?this.options.visualElement.renderState.vars[V]=Q:d[V]=Q}this.options.layoutId&&(d.pointerEvents=p===this?gr(y?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(X0),this.root.sharedNodes.clear()}}}function uT(a){a.updateLayout()}function cT(a){const l=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&l&&a.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:r}=a.layout,{animationType:c}=a.options,h=l.source!==a.layout.source;c==="size"?Un(x=>{const b=h?l.measuredBox[x]:l.layoutBox[x],T=Te(b);b.min=o[x].min,b.max=b.min+T}):qg(c,l.layoutBox,o)&&Un(x=>{const b=h?l.measuredBox[x]:l.layoutBox[x],T=Te(o[x]);b.max=b.min+T,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[x].max=a.relativeTarget[x].min+T)});const d=fl();_s(d,o,l.layoutBox);const y=fl();h?_s(y,a.applyTransform(r,!0),l.measuredBox):_s(y,o,l.layoutBox);const v=!_g(d);let p=!1;if(!a.resumeFrom){const x=a.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:b,layout:T}=x;if(b&&T){const O=It();Er(O,l.layoutBox,b.layoutBox);const V=It();Er(V,o,T.layoutBox),Ug(O,V)||(p=!0),x.options.layoutRoot&&(a.relativeTarget=V,a.relativeTargetOrigin=O,a.relativeParent=x)}}}a.notifyListeners("didUpdate",{layout:o,snapshot:l,delta:y,layoutDelta:d,hasLayoutChanged:v,hasRelativeLayoutChanged:p})}else if(a.isLead()){const{onExitComplete:o}=a.options;o&&o()}a.options.transition=void 0}function fT(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function dT(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function hT(a){a.clearSnapshot()}function X0(a){a.clearMeasurements()}function k0(a){a.isLayoutDirty=!1}function mT(a){const{visualElement:l}=a.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),a.resetTransform()}function K0(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function pT(a){a.resolveTargetDelta()}function yT(a){a.calcProjection()}function gT(a){a.resetSkewAndRotation()}function vT(a){a.removeLeadSnapshot()}function Q0(a,l,o){a.translate=Lt(l.translate,0,o),a.scale=Lt(l.scale,1,o),a.origin=l.origin,a.originPoint=l.originPoint}function Z0(a,l,o,r){a.min=Lt(l.min,o.min,r),a.max=Lt(l.max,o.max,r)}function xT(a,l,o,r){Z0(a.x,l.x,o.x,r),Z0(a.y,l.y,o.y,r)}function bT(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const ST={duration:.45,ease:[.4,0,.1,1]},J0=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),F0=J0("applewebkit/")&&!J0("chrome/")?Math.round:fn;function P0(a){a.min=F0(a.min),a.max=F0(a.max)}function TT(a){P0(a.x),P0(a.y)}function qg(a,l,o){return a==="position"||a==="preserve-aspect"&&!K2(L0(l),L0(o),.2)}function AT(a){return a!==a.root&&a.scroll?.wasRoot}const wT=Yg({attachResizeListener:(a,l)=>qs(a,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Fc={current:void 0},Gg=Yg({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Fc.current){const a=new wT({});a.mount(window),a.setOptions({layoutScroll:!0}),Fc.current=a}return Fc.current},resetTransform:(a,l)=>{a.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),ad=D.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function W0(a,l){if(typeof a=="function")return a(l);a!=null&&(a.current=l)}function ET(...a){return l=>{let o=!1;const r=a.map(c=>{const h=W0(c,l);return!o&&typeof h=="function"&&(o=!0),h});if(o)return()=>{for(let c=0;c<r.length;c++){const h=r[c];typeof h=="function"?h():W0(a[c],null)}}}}function CT(...a){return D.useCallback(ET(...a),a)}class jT extends D.Component{getSnapshotBeforeUpdate(l){const o=this.props.childRef.current;if(o&&l.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=o.offsetParent,c=Sf(r)&&r.offsetWidth||0,h=Sf(r)&&r.offsetHeight||0,d=this.props.sizeRef.current;d.height=o.offsetHeight||0,d.width=o.offsetWidth||0,d.top=o.offsetTop,d.left=o.offsetLeft,d.right=c-d.width-d.left,d.bottom=h-d.height-d.top}return null}componentDidUpdate(){}render(){return this.props.children}}function MT({children:a,isPresent:l,anchorX:o,anchorY:r,root:c,pop:h}){const d=D.useId(),y=D.useRef(null),v=D.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=D.useContext(ad),x=a.props?.ref??a?.ref,b=CT(y,x);return D.useInsertionEffect(()=>{const{width:T,height:O,top:V,left:q,right:Y,bottom:G}=v.current;if(l||h===!1||!y.current||!T||!O)return;const Q=o==="left"?`left: ${q}`:`right: ${Y}`,X=r==="bottom"?`bottom: ${G}`:`top: ${V}`;y.current.dataset.motionPopId=d;const P=document.createElement("style");p&&(P.nonce=p);const F=c??document.head;return F.appendChild(P),P.sheet&&P.sheet.insertRule(`
|
|
10
|
+
[data-motion-pop-id="${d}"] {
|
|
11
|
+
position: absolute !important;
|
|
12
|
+
width: ${T}px !important;
|
|
13
|
+
height: ${O}px !important;
|
|
14
|
+
${Q}px !important;
|
|
15
|
+
${X}px !important;
|
|
16
|
+
}
|
|
17
|
+
`),()=>{F.contains(P)&&F.removeChild(P)}},[l]),m.jsx(jT,{isPresent:l,childRef:y,sizeRef:v,pop:h,children:h===!1?a:D.cloneElement(a,{ref:b})})}const NT=({children:a,initial:l,isPresent:o,onExitComplete:r,custom:c,presenceAffectsLayout:h,mode:d,anchorX:y,anchorY:v,root:p})=>{const x=Df(DT),b=D.useId();let T=!0,O=D.useMemo(()=>(T=!1,{id:b,initial:l,isPresent:o,custom:c,onExitComplete:V=>{x.set(V,!0);for(const q of x.values())if(!q)return;r&&r()},register:V=>(x.set(V,!1),()=>x.delete(V))}),[o,x,r]);return h&&T&&(O={...O}),D.useMemo(()=>{x.forEach((V,q)=>x.set(q,!1))},[o]),D.useEffect(()=>{!o&&!x.size&&r&&r()},[o]),a=m.jsx(MT,{pop:d==="popLayout",isPresent:o,anchorX:y,anchorY:v,root:p,children:a}),m.jsx(jr.Provider,{value:O,children:a})};function DT(){return new Map}function Xg(a=!0){const l=D.useContext(jr);if(l===null)return[!0,null];const{isPresent:o,onExitComplete:r,register:c}=l,h=D.useId();D.useEffect(()=>{if(a)return c(h)},[a]);const d=D.useCallback(()=>a&&r&&r(h),[h,r,a]);return!o&&r?[!1,d]:[!0]}const cr=a=>a.key||"";function $0(a){const l=[];return D.Children.forEach(a,o=>{D.isValidElement(o)&&l.push(o)}),l}const I0=({children:a,custom:l,initial:o=!0,onExitComplete:r,presenceAffectsLayout:c=!0,mode:h="sync",propagate:d=!1,anchorX:y="left",anchorY:v="top",root:p})=>{const[x,b]=Xg(d),T=D.useMemo(()=>$0(a),[a]),O=d&&!x?[]:T.map(cr),V=D.useRef(!0),q=D.useRef(T),Y=Df(()=>new Map),G=D.useRef(new Set),[Q,X]=D.useState(T),[P,F]=D.useState(T);gy(()=>{V.current=!1,q.current=T;for(let J=0;J<P.length;J++){const lt=cr(P[J]);O.includes(lt)?(Y.delete(lt),G.current.delete(lt)):Y.get(lt)!==!0&&Y.set(lt,!1)}},[P,O.length,O.join("-")]);const it=[];if(T!==Q){let J=[...T];for(let lt=0;lt<P.length;lt++){const At=P[lt],jt=cr(At);O.includes(jt)||(J.splice(lt,0,At),it.push(At))}return h==="wait"&&it.length&&(J=it),F($0(J)),X(T),null}const{forceRender:et}=D.useContext(Nf);return m.jsx(m.Fragment,{children:P.map(J=>{const lt=cr(J),At=d&&!x?!1:T===P||O.includes(lt),jt=()=>{if(G.current.has(lt))return;if(G.current.add(lt),Y.has(lt))Y.set(lt,!0);else return;let Mt=!0;Y.forEach(Ae=>{Ae||(Mt=!1)}),Mt&&(et?.(),F(q.current),d&&b?.(),r&&r())};return m.jsx(NT,{isPresent:At,initial:!V.current||o?void 0:!1,custom:l,presenceAffectsLayout:c,mode:h,root:p,onExitComplete:At?void 0:jt,anchorX:y,anchorY:v,children:J},lt)})})},kg=D.createContext({strict:!1}),ty={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 ey=!1;function OT(){if(ey)return;const a={};for(const l in ty)a[l]={isEnabled:o=>ty[l].some(r=>!!o[r])};xg(a),ey=!0}function Kg(){return OT(),g2()}function zT(a){const l=Kg();for(const o in a)l[o]={...l[o],...a[o]};xg(l)}const RT=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Cr(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||RT.has(a)}let Qg=a=>!Cr(a);function VT(a){typeof a=="function"&&(Qg=l=>l.startsWith("on")?!Cr(l):a(l))}try{VT(require("@emotion/is-prop-valid").default)}catch{}function _T(a,l,o){const r={};for(const c in a)c==="values"&&typeof a.values=="object"||(Qg(c)||o===!0&&Cr(c)||!l&&!Cr(c)||a.draggable&&c.startsWith("onDrag"))&&(r[c]=a[c]);return r}const Dr=D.createContext({});function UT(a,l){if(Nr(a)){const{initial:o,animate:r}=a;return{initial:o===!1||Ys(o)?o:void 0,animate:Ys(r)?r:void 0}}return a.inherit!==!1?l:{}}function BT(a){const{initial:l,animate:o}=UT(a,D.useContext(Dr));return D.useMemo(()=>({initial:l,animate:o}),[ny(l),ny(o)])}function ny(a){return Array.isArray(a)?a.join(" "):a}const id=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Zg(a,l,o){for(const r in l)!ge(l[r])&&!Cg(r,o)&&(a[r]=l[r])}function LT({transformTemplate:a},l){return D.useMemo(()=>{const o=id();return ed(o,l,a),Object.assign({},o.vars,o.style)},[l])}function HT(a,l){const o=a.style||{},r={};return Zg(r,o,a),Object.assign(r,LT(a,l)),r}function YT(a,l){const o={},r=HT(a,l);return a.drag&&a.dragListener!==!1&&(o.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(o.tabIndex=0),o.style=r,o}const Jg=()=>({...id(),attrs:{}});function qT(a,l,o,r){const c=D.useMemo(()=>{const h=Jg();return jg(h,l,Ng(r),a.transformTemplate,a.style),{...h.attrs,style:{...h.style}}},[l]);if(a.style){const h={};Zg(h,a.style,a),c.style={...h,...c.style}}return c}const GT=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ld(a){return typeof a!="string"||a.includes("-")?!1:!!(GT.indexOf(a)>-1||/[A-Z]/u.test(a))}function XT(a,l,o,{latestValues:r},c,h=!1,d){const v=(d??ld(a)?qT:YT)(l,r,c,a),p=_T(l,typeof a=="string",h),x=a!==D.Fragment?{...p,...v,ref:o}:{},{children:b}=l,T=D.useMemo(()=>ge(b)?b.get():b,[b]);return D.createElement(a,{...x,children:T})}function kT({scrapeMotionValuesFromProps:a,createRenderState:l},o,r,c){return{latestValues:KT(o,r,c,a),renderState:l()}}function KT(a,l,o,r){const c={},h=r(a,{});for(const T in h)c[T]=gr(h[T]);let{initial:d,animate:y}=a;const v=Nr(a),p=gg(a);l&&p&&!v&&a.inherit!==!1&&(d===void 0&&(d=l.initial),y===void 0&&(y=l.animate));let x=o?o.initial===!1:!1;x=x||d===!1;const b=x?y:d;if(b&&typeof b!="boolean"&&!Mr(b)){const T=Array.isArray(b)?b:[b];for(let O=0;O<T.length;O++){const V=Zf(a,T[O]);if(V){const{transitionEnd:q,transition:Y,...G}=V;for(const Q in G){let X=G[Q];if(Array.isArray(X)){const P=x?X.length-1:0;X=X[P]}X!==null&&(c[Q]=X)}for(const Q in q)c[Q]=q[Q]}}}return c}const Fg=a=>(l,o)=>{const r=D.useContext(Dr),c=D.useContext(jr),h=()=>kT(a,l,r,c);return o?h():Df(h)},QT=Fg({scrapeMotionValuesFromProps:nd,createRenderState:id}),ZT=Fg({scrapeMotionValuesFromProps:Dg,createRenderState:Jg}),JT=Symbol.for("motionComponentSymbol");function FT(a,l,o){const r=D.useRef(o);D.useInsertionEffect(()=>{r.current=o});const c=D.useRef(null);return D.useCallback(h=>{h&&a.onMount?.(h),l&&(h?l.mount(h):l.unmount());const d=r.current;if(typeof d=="function")if(h){const y=d(h);typeof y=="function"&&(c.current=y)}else c.current?(c.current(),c.current=null):d(h);else d&&(d.current=h)},[l])}const Pg=D.createContext({});function rl(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function PT(a,l,o,r,c,h){const{visualElement:d}=D.useContext(Dr),y=D.useContext(kg),v=D.useContext(jr),p=D.useContext(ad),x=p.reducedMotion,b=p.skipAnimations,T=D.useRef(null),O=D.useRef(!1);r=r||y.renderer,!T.current&&r&&(T.current=r(a,{visualState:l,parent:d,props:o,presenceContext:v,blockInitialAnimation:v?v.initial===!1:!1,reducedMotionConfig:x,skipAnimations:b,isSVG:h}),O.current&&T.current&&(T.current.manuallyAnimateOnMount=!0));const V=T.current,q=D.useContext(Pg);V&&!V.projection&&c&&(V.type==="html"||V.type==="svg")&&WT(T.current,o,c,q);const Y=D.useRef(!1);D.useInsertionEffect(()=>{V&&Y.current&&V.update(o,v)});const G=o[ig],Q=D.useRef(!!G&&!window.MotionHandoffIsComplete?.(G)&&window.MotionHasOptimisedAnimation?.(G));return gy(()=>{O.current=!0,V&&(Y.current=!0,window.MotionIsMounted=!0,V.updateFeatures(),V.scheduleRenderMicrotask(),Q.current&&V.animationState&&V.animationState.animateChanges())}),D.useEffect(()=>{V&&(!Q.current&&V.animationState&&V.animationState.animateChanges(),Q.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(G)}),Q.current=!1),V.enteringChildren=void 0)}),V}function WT(a,l,o,r){const{layoutId:c,layout:h,drag:d,dragConstraints:y,layoutScroll:v,layoutRoot:p,layoutCrossfade:x}=l;a.projection=new o(a.latestValues,l["data-framer-portal-id"]?void 0:Wg(a.parent)),a.projection.setOptions({layoutId:c,layout:h,alwaysMeasureLayout:!!d||y&&rl(y),visualElement:a,animationType:typeof h=="string"?h:"both",initialPromotionConfig:r,crossfade:x,layoutScroll:v,layoutRoot:p})}function Wg(a){if(a)return a.options.allowProjection!==!1?a.projection:Wg(a.parent)}function Pc(a,{forwardMotionProps:l=!1,type:o}={},r,c){r&&zT(r);const h=o?o==="svg":ld(a),d=h?ZT:QT;function y(p,x){let b;const T={...D.useContext(ad),...p,layoutId:$T(p)},{isStatic:O}=T,V=BT(p),q=d(p,O);if(!O&&yy){IT();const Y=tA(T);b=Y.MeasureLayout,V.visualElement=PT(a,q,T,c,Y.ProjectionNode,h)}return m.jsxs(Dr.Provider,{value:V,children:[b&&V.visualElement?m.jsx(b,{visualElement:V.visualElement,...T}):null,XT(a,p,FT(q,V.visualElement,x),q,O,l,h)]})}y.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const v=D.forwardRef(y);return v[JT]=a,v}function $T({layoutId:a}){const l=D.useContext(Nf).id;return l&&a!==void 0?l+"-"+a:a}function IT(a,l){D.useContext(kg).strict}function tA(a){const l=Kg(),{drag:o,layout:r}=l;if(!o&&!r)return{};const c={...o,...r};return{MeasureLayout:o?.isEnabled(a)||r?.isEnabled(a)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function eA(a,l){if(typeof Proxy>"u")return Pc;const o=new Map,r=(h,d)=>Pc(h,d,a,l),c=(h,d)=>r(h,d);return new Proxy(c,{get:(h,d)=>d==="create"?r:(o.has(d)||o.set(d,Pc(d,void 0,a,l)),o.get(d))})}const nA=(a,l)=>l.isSVG??ld(a)?new V2(l):new M2(l,{allowProjection:a!==D.Fragment});class aA extends Ga{constructor(l){super(l),l.animationState||(l.animationState=H2(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();Mr(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:o}=this.node.prevProps||{};l!==o&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let iA=0;class lA extends Ga{constructor(){super(...arguments),this.id=iA++}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:o}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===r)return;const c=this.node.animationState.setActive("exit",!l);o&&!l&&c.then(()=>{o(this.id)})}mount(){const{register:l,onExitComplete:o}=this.node.presenceContext||{};o&&o(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const sA={animation:{Feature:aA},exit:{Feature:lA}};function Ks(a){return{point:{x:a.pageX,y:a.pageY}}}const oA=a=>l=>Wf(l)&&a(l,Ks(l));function Us(a,l,o,r){return qs(a,l,oA(o),r)}const $g=({current:a})=>a?a.ownerDocument.defaultView:null,ay=(a,l)=>Math.abs(a-l);function rA(a,l){const o=ay(a.x,l.x),r=ay(a.y,l.y);return Math.sqrt(o**2+r**2)}const iy=new Set(["auto","scroll"]);class Ig{constructor(l,o,{transformPagePoint:r,contextWindow:c=window,dragSnapToOrigin:h=!1,distanceThreshold:d=3,element:y}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=O=>{this.handleScroll(O.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const O=$c(this.lastMoveEventInfo,this.history),V=this.startEvent!==null,q=rA(O.offset,{x:0,y:0})>=this.distanceThreshold;if(!V&&!q)return;const{point:Y}=O,{timestamp:G}=fe;this.history.push({...Y,timestamp:G});const{onStart:Q,onMove:X}=this.handlers;V||(Q&&Q(this.lastMoveEvent,O),this.startEvent=this.lastMoveEvent),X&&X(this.lastMoveEvent,O)},this.handlePointerMove=(O,V)=>{this.lastMoveEvent=O,this.lastMoveEventInfo=Wc(V,this.transformPagePoint),Vt.update(this.updatePoint,!0)},this.handlePointerUp=(O,V)=>{this.end();const{onEnd:q,onSessionEnd:Y,resumeAnimation:G}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&G&&G(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const Q=$c(O.type==="pointercancel"?this.lastMoveEventInfo:Wc(V,this.transformPagePoint),this.history);this.startEvent&&q&&q(O,Q),Y&&Y(O,Q)},!Wf(l))return;this.dragSnapToOrigin=h,this.handlers=o,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=c||window;const v=Ks(l),p=Wc(v,this.transformPagePoint),{point:x}=p,{timestamp:b}=fe;this.history=[{...x,timestamp:b}];const{onSessionStart:T}=o;T&&T(l,$c(p,this.history)),this.removeListeners=Gs(Us(this.contextWindow,"pointermove",this.handlePointerMove),Us(this.contextWindow,"pointerup",this.handlePointerUp),Us(this.contextWindow,"pointercancel",this.handlePointerUp)),y&&this.startScrollTracking(y)}startScrollTracking(l){let o=l.parentElement;for(;o;){const r=getComputedStyle(o);(iy.has(r.overflowX)||iy.has(r.overflowY))&&this.scrollPositions.set(o,{x:o.scrollLeft,y:o.scrollTop}),o=o.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(l){const o=this.scrollPositions.get(l);if(!o)return;const r=l===window,c=r?{x:window.scrollX,y:window.scrollY}:{x:l.scrollLeft,y:l.scrollTop},h={x:c.x-o.x,y:c.y-o.y};h.x===0&&h.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=h.x,this.lastMoveEventInfo.point.y+=h.y):this.history.length>0&&(this.history[0].x-=h.x,this.history[0].y-=h.y),this.scrollPositions.set(l,c),Vt.update(this.updatePoint,!0))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),qa(this.updatePoint)}}function Wc(a,l){return l?{point:l(a.point)}:a}function ly(a,l){return{x:a.x-l.x,y:a.y-l.y}}function $c({point:a},l){return{point:a,delta:ly(a,tv(l)),offset:ly(a,uA(l)),velocity:cA(l,.1)}}function uA(a){return a[0]}function tv(a){return a[a.length-1]}function cA(a,l){if(a.length<2)return{x:0,y:0};let o=a.length-1,r=null;const c=tv(a);for(;o>=0&&(r=a[o],!(c.timestamp-r.timestamp>Tn(l)));)o--;if(!r)return{x:0,y:0};r===a[0]&&a.length>2&&c.timestamp-r.timestamp>Tn(l)*2&&(r=a[1]);const h=cn(c.timestamp-r.timestamp);if(h===0)return{x:0,y:0};const d={x:(c.x-r.x)/h,y:(c.y-r.y)/h};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function fA(a,{min:l,max:o},r){return l!==void 0&&a<l?a=r?Lt(l,a,r.min):Math.max(a,l):o!==void 0&&a>o&&(a=r?Lt(o,a,r.max):Math.min(a,o)),a}function sy(a,l,o){return{min:l!==void 0?a.min+l:void 0,max:o!==void 0?a.max+o-(a.max-a.min):void 0}}function dA(a,{top:l,left:o,bottom:r,right:c}){return{x:sy(a.x,o,c),y:sy(a.y,l,r)}}function oy(a,l){let o=l.min-a.min,r=l.max-a.max;return l.max-l.min<a.max-a.min&&([o,r]=[r,o]),{min:o,max:r}}function hA(a,l){return{x:oy(a.x,l.x),y:oy(a.y,l.y)}}function mA(a,l){let o=.5;const r=Te(a),c=Te(l);return c>r?o=Bs(l.min,l.max-r,a.min):r>c&&(o=Bs(a.min,a.max-c,l.min)),Ln(0,1,o)}function pA(a,l){const o={};return l.min!==void 0&&(o.min=l.min-a.min),l.max!==void 0&&(o.max=l.max-a.min),o}const Cf=.35;function yA(a=Cf){return a===!1?a=0:a===!0&&(a=Cf),{x:ry(a,"left","right"),y:ry(a,"top","bottom")}}function ry(a,l,o){return{min:uy(a,l),max:uy(a,o)}}function uy(a,l){return typeof a=="number"?a:a[l]||0}const gA=new WeakMap;class vA{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:o=!1,distanceThreshold:r}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const h=b=>{o&&this.snapToCursor(Ks(b).point),this.stopAnimation()},d=(b,T)=>{const{drag:O,dragPropagation:V,onDragStart:q}=this.getProps();if(O&&!V&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ZS(O),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=T,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Un(G=>{let Q=this.getAxisMotionValue(G).get()||0;if(Bn.test(Q)){const{projection:X}=this.visualElement;if(X&&X.layout){const P=X.layout.layoutBox[G];P&&(Q=Te(P)*(parseFloat(Q)/100))}}this.originPoint[G]=Q}),q&&Vt.update(()=>q(b,T),!1,!0),gf(this.visualElement,"transform");const{animationState:Y}=this.visualElement;Y&&Y.setActive("whileDrag",!0)},y=(b,T)=>{this.latestPointerEvent=b,this.latestPanInfo=T;const{dragPropagation:O,dragDirectionLock:V,onDirectionLock:q,onDrag:Y}=this.getProps();if(!O&&!this.openDragLock)return;const{offset:G}=T;if(V&&this.currentDirection===null){this.currentDirection=bA(G),this.currentDirection!==null&&q&&q(this.currentDirection);return}this.updateAxis("x",T.point,G),this.updateAxis("y",T.point,G),this.visualElement.render(),Y&&Vt.update(()=>Y(b,T),!1,!0)},v=(b,T)=>{this.latestPointerEvent=b,this.latestPanInfo=T,this.stop(b,T),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:x}=this.getProps();this.panSession=new Ig(l,{onSessionStart:h,onStart:d,onMove:y,onSessionEnd:v,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:x,distanceThreshold:r,contextWindow:$g(this.visualElement),element:this.visualElement.current})}stop(l,o){const r=l||this.latestPointerEvent,c=o||this.latestPanInfo,h=this.isDragging;if(this.cancel(),!h||!c||!r)return;const{velocity:d}=c;this.startAnimation(d);const{onDragEnd:y}=this.getProps();y&&Vt.postRender(()=>y(r,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:o}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o&&o.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(l,o,r){const{drag:c}=this.getProps();if(!r||!fr(l,c,this.currentDirection))return;const h=this.getAxisMotionValue(l);let d=this.originPoint[l]+r[l];this.constraints&&this.constraints[l]&&(d=fA(d,this.constraints[l],this.elastic[l])),h.set(d)}resolveConstraints(){const{dragConstraints:l,dragElastic:o}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;l&&rl(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&r?this.constraints=dA(r.layoutBox,l):this.constraints=!1,this.elastic=yA(o),c!==this.constraints&&!rl(l)&&r&&this.constraints&&!this.hasMutatedConstraints&&Un(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=pA(r.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:o}=this.getProps();if(!l||!rl(l))return!1;const r=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const h=T2(r,c.root,this.visualElement.getTransformPagePoint());let d=hA(c.layout.layoutBox,h);if(o){const y=o(x2(d));this.hasMutatedConstraints=!!y,y&&(d=Sg(y))}return d}startAnimation(l){const{drag:o,dragMomentum:r,dragElastic:c,dragTransition:h,dragSnapToOrigin:d,onDragTransitionEnd:y}=this.getProps(),v=this.constraints||{},p=Un(x=>{if(!fr(x,o,this.currentDirection))return;let b=v&&v[x]||{};d&&(b={min:0,max:0});const T=c?200:1e6,O=c?40:1e7,V={type:"inertia",velocity:r?l[x]:0,bounceStiffness:T,bounceDamping:O,timeConstant:750,restDelta:1,restSpeed:10,...h,...b};return this.startAxisValueAnimation(x,V)});return Promise.all(p).then(y)}startAxisValueAnimation(l,o){const r=this.getAxisMotionValue(l);return gf(this.visualElement,l),r.start(Qf(l,r,0,o,this.visualElement,!1))}stopAnimation(){Un(l=>this.getAxisMotionValue(l).stop())}getAxisMotionValue(l){const o=`_drag${l.toUpperCase()}`,r=this.visualElement.getProps(),c=r[o];return c||this.visualElement.getValue(l,(r.initial?r.initial[l]:void 0)||0)}snapToCursor(l){Un(o=>{const{drag:r}=this.getProps();if(!fr(o,r,this.currentDirection))return;const{projection:c}=this.visualElement,h=this.getAxisMotionValue(o);if(c&&c.layout){const{min:d,max:y}=c.layout.layoutBox[o],v=h.get()||0;h.set(l[o]-Lt(d,y,.5)+v)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:o}=this.getProps(),{projection:r}=this.visualElement;if(!rl(o)||!r||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Un(d=>{const y=this.getAxisMotionValue(d);if(y&&this.constraints!==!1){const v=y.get();c[d]=mA({min:v,max:v},this.constraints[d])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Un(d=>{if(!fr(d,l,null))return;const y=this.getAxisMotionValue(d),{min:v,max:p}=this.constraints[d];y.set(Lt(v,p,c[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;gA.set(this.visualElement,this);const l=this.visualElement.current,o=Us(l,"pointerdown",p=>{const{drag:x,dragListener:b=!0}=this.getProps(),T=p.target,O=T!==l&&IS(T);x&&b&&!O&&this.start(p)});let r;const c=()=>{const{dragConstraints:p}=this.getProps();rl(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),r||(r=xA(l,p.current,()=>this.scalePositionWithinConstraints())))},{projection:h}=this.visualElement,d=h.addEventListener("measure",c);h&&!h.layout&&(h.root&&h.root.updateScroll(),h.updateLayout()),Vt.read(c);const y=qs(window,"resize",()=>this.scalePositionWithinConstraints()),v=h.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:x})=>{this.isDragging&&x&&(Un(b=>{const T=this.getAxisMotionValue(b);T&&(this.originPoint[b]+=p[b].translate,T.set(T.get()+p[b].translate))}),this.visualElement.render())}));return()=>{y(),o(),d(),v&&v(),r&&r()}}getProps(){const l=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:r=!1,dragPropagation:c=!1,dragConstraints:h=!1,dragElastic:d=Cf,dragMomentum:y=!0}=l;return{...l,drag:o,dragDirectionLock:r,dragPropagation:c,dragConstraints:h,dragElastic:d,dragMomentum:y}}}function cy(a){let l=!0;return()=>{if(l){l=!1;return}a()}}function xA(a,l,o){const r=y0(a,cy(o)),c=y0(l,cy(o));return()=>{r(),c()}}function fr(a,l,o){return(l===!0||l===a)&&(o===null||o===a)}function bA(a,l=10){let o=null;return Math.abs(a.y)>l?o="y":Math.abs(a.x)>l&&(o="x"),o}class SA extends Ga{constructor(l){super(l),this.removeGroupControls=fn,this.removeListeners=fn,this.controls=new vA(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fn}update(){const{dragControls:l}=this.node.getProps(),{dragControls:o}=this.node.prevProps||{};l!==o&&(this.removeGroupControls(),l&&(this.removeGroupControls=l.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ic=a=>(l,o)=>{a&&Vt.update(()=>a(l,o),!1,!0)};class TA extends Ga{constructor(){super(...arguments),this.removePointerDownListener=fn}onPointerDown(l){this.session=new Ig(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:$g(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:o,onPan:r,onPanEnd:c}=this.node.getProps();return{onSessionStart:Ic(l),onStart:Ic(o),onMove:Ic(r),onEnd:(h,d)=>{delete this.session,c&&Vt.postRender(()=>c(h,d))}}}mount(){this.removePointerDownListener=Us(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 tf=!1;class AA extends D.Component{componentDidMount(){const{visualElement:l,layoutGroup:o,switchLayoutGroup:r,layoutId:c}=this.props,{projection:h}=l;h&&(o.group&&o.group.add(h),r&&r.register&&c&&r.register(h),tf&&h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),vr.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:o,visualElement:r,drag:c,isPresent:h}=this.props,{projection:d}=r;return d&&(d.isPresent=h,l.layoutDependency!==o&&d.setOptions({...d.options,layoutDependency:o}),tf=!0,c||l.layoutDependency!==o||o===void 0||l.isPresent!==h?d.willUpdate():this.safeToRemove(),l.isPresent!==h&&(h?d.promote():d.relegate()||Vt.postRender(()=>{const y=d.getStack();(!y||!y.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:l}=this.props.visualElement;l&&(l.root.didUpdate(),Pf.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:o,switchLayoutGroup:r}=this.props,{projection:c}=l;tf=!0,c&&(c.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(c),r&&r.deregister&&r.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function ev(a){const[l,o]=Xg(),r=D.useContext(Nf);return m.jsx(AA,{...a,layoutGroup:r,switchLayoutGroup:D.useContext(Pg),isPresent:l,safeToRemove:o})}const wA={pan:{Feature:TA},drag:{Feature:SA,ProjectionNode:Gg,MeasureLayout:ev}};function fy(a,l,o){const{props:r}=a;a.animationState&&r.whileHover&&a.animationState.setActive("whileHover",o==="Start");const c="onHover"+o,h=r[c];h&&Vt.postRender(()=>h(l,Ks(l)))}class EA extends Ga{mount(){const{current:l}=this.node;l&&(this.unmount=FS(l,(o,r)=>(fy(this.node,r,"Start"),c=>fy(this.node,c,"End"))))}unmount(){}}class CA extends Ga{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=Gs(qs(this.node.current,"focus",()=>this.onFocus()),qs(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function dy(a,l,o){const{props:r}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&r.whileTap&&a.animationState.setActive("whileTap",o==="Start");const c="onTap"+(o==="End"?"":o),h=r[c];h&&Vt.postRender(()=>h(l,Ks(l)))}class jA extends Ga{mount(){const{current:l}=this.node;if(!l)return;const{globalTapTarget:o,propagate:r}=this.node.props;this.unmount=e2(l,(c,h)=>(dy(this.node,h,"Start"),(d,{success:y})=>dy(this.node,d,y?"End":"Cancel")),{useGlobalTarget:o,stopPropagation:r?.tap===!1})}unmount(){}}const jf=new WeakMap,ef=new WeakMap,MA=a=>{const l=jf.get(a.target);l&&l(a)},NA=a=>{a.forEach(MA)};function DA({root:a,...l}){const o=a||document;ef.has(o)||ef.set(o,{});const r=ef.get(o),c=JSON.stringify(l);return r[c]||(r[c]=new IntersectionObserver(NA,{root:a,...l})),r[c]}function OA(a,l,o){const r=DA(l);return jf.set(a,o),r.observe(a),()=>{jf.delete(a),r.unobserve(a)}}const zA={some:0,all:1};class RA extends Ga{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:l={}}=this.node.getProps(),{root:o,margin:r,amount:c="some",once:h}=l,d={root:o?o.current:void 0,rootMargin:r,threshold:typeof c=="number"?c:zA[c]},y=v=>{const{isIntersecting:p}=v;if(this.isInView===p||(this.isInView=p,h&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:x,onViewportLeave:b}=this.node.getProps(),T=p?x:b;T&&T(v)};return OA(this.node.current,d,y)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:o}=this.node;["amount","margin","root"].some(VA(l,o))&&this.startObserver()}unmount(){}}function VA({viewport:a={}},{viewport:l={}}={}){return o=>a[o]!==l[o]}const _A={inView:{Feature:RA},tap:{Feature:jA},focus:{Feature:CA},hover:{Feature:EA}},UA={layout:{ProjectionNode:Gg,MeasureLayout:ev}},BA={...sA,..._A,...wA,...UA},Os=eA(BA,nA);function LA(a){const l=a.match(/^100\.(\d+)\./);if(l&&+l[1]>=64&&+l[1]<=127)return"tailscale";if(/^192\.168\./.test(a)||/^10\./.test(a))return"lan";const o=a.match(/^172\.(\d+)\./);return o&&+o[1]>=16&&+o[1]<=31?"lan":a==="localhost"||a==="127.0.0.1"?"localhost":a.endsWith(".trycloudflare.com")?"tunnel":a.endsWith(".fluxy.bot")?"relay":"custom-domain"}function La(a){return a==="tailscale"||a==="lan"||a==="localhost"}const hy={tailscale:"Tailscale",lan:"Local network",localhost:"Localhost",tunnel:"Cloudflare tunnel",relay:"Relay","custom-domain":"Custom domain"},HA=[{id:"anthropic",name:"Claude",subtitle:"by Anthropic",icon:"/icons/claude.png"},{id:"openai",name:"OpenAI Codex",subtitle:"ChatGPT Plus / Pro",icon:"/icons/codex.png"}],YA={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)"}]},nf=[{tier:"at",prefix:"my.fluxy.bot/",label:a=>`my.fluxy.bot/${a}`,badge:"Free",badgeCls:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",highlight:!1},{tier:"premium",prefix:"fluxy.bot/",label:a=>`fluxy.bot/${a}`,badge:"$3",badgeCls:"bg-[#AF27E3]/15 text-[#AF27E3] border-[#AF27E3]/20",highlight:!0}];function qA({models:a,value:l,onChange:o}){const[r,c]=D.useState(!1),h=D.useRef(null);D.useEffect(()=>{if(!r)return;const y=v=>{h.current&&!h.current.contains(v.target)&&c(!1)};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[r]);const d=a.find(y=>y.id===l);return m.jsxs("div",{className:"relative",ref:h,children:[m.jsxs("button",{type:"button",onClick:()=>c(y=>!y),className:"w-full flex items-center justify-between bg-white/[0.03] border border-white/[0.08] text-white rounded-xl px-4 py-2.5 text-[13px] outline-none hover:border-white/15 focus:border-[#AF27E3]/30 transition-colors",children:[m.jsx("span",{className:d?"text-white":"text-white/20",children:d?d.label:"Choose a model..."}),m.jsx(A1,{className:`h-4 w-4 text-white/30 transition-transform ${r?"rotate-180":""}`})]}),r&&m.jsx("div",{className:"absolute left-0 right-0 top-full mt-1 bg-[#222] border border-white/[0.08] rounded-xl shadow-xl py-1 z-10 max-h-48 overflow-y-auto",children:a.map(y=>m.jsx("button",{onClick:()=>{o(y.id),c(!1)},className:`w-full text-left px-4 py-2 text-[13px] transition-colors ${l===y.id?"text-[#AF27E3] bg-[#AF27E3]/10":"text-white/70 hover:bg-white/[0.04] hover:text-white"}`,children:y.label},y.id))})]})}function KA({onComplete:a,isInitialSetup:l=!1,onSave:o,onTunnelSwitch:r}){const c=l?7:6,[h,d]=D.useState(0),[y,v]=D.useState(""),[p,x]=D.useState("anthropic"),[b,T]=D.useState(""),[O,V]=D.useState(!1),[q,Y]=D.useState({anthropic:"idle",openai:"idle"}),[G,Q]=D.useState(!1),[X,P]=D.useState(""),[F,it]=D.useState(!1),[et,J]=D.useState(),[lt,At]=D.useState(!1),[jt,Mt]=D.useState(!1),[Ae,ee]=D.useState(),[mt,R]=D.useState(""),[H,Z]=D.useState(null),[ht,ut]=D.useState(""),[w,B]=D.useState({}),[k,W]=D.useState("at"),[ot,dt]=D.useState(!1),[st,Ht]=D.useState(!1),[zt,dn]=D.useState(""),wn=D.useRef(null),[de,gi]=D.useState("quick"),[hn,xl]=D.useState(""),[bl,Or]=D.useState(""),[ze,Hn]=D.useState("relay"),[ve,vi]=D.useState(null),[En,Sl]=D.useState(!1),[he,Qs]=D.useState(!1),[Re,Zs]=D.useState("tunnel"),[ua,Tl]=D.useState(!1),[xi,Al]=D.useState(""),[wl,ca]=D.useState(!1),[me,Ve]=D.useState(""),[ie,El]=D.useState(!1),[Cl,Js]=D.useState(!1),[Xa,Yn]=D.useState(""),[bi,qn]=D.useState("admin"),[ne,fa]=D.useState(""),[Si,jl]=D.useState(""),[Ti,Cn]=D.useState(!1),[_e,Fs]=D.useState(!1),[Ml,Ps]=D.useState(!1),[jn,Nl]=D.useState(""),[Dl,ka]=D.useState(""),[Ue,Qt]=D.useState(!1),[le,Gn]=D.useState(!1),[Fe,Ws]=D.useState(!1),[mn,Ol]=D.useState(""),[we,Pe]=D.useState(!1),[Mn,We]=D.useState(""),[Nn,$e]=D.useState(""),[Xt,da]=D.useState(""),[Ka,pn]=D.useState(""),[Ie,zl]=D.useState(!1),[Rl,Vl]=D.useState(!1),[Ai,Be]=D.useState(""),[Qa,Le]=D.useState([]),[pe,_l]=D.useState(!1),[zr,Za]=D.useState(!1),[Ja,ha]=D.useState(""),[$s,se]=D.useState(""),[Ul,Is]=D.useState(!1),[Dn,He]=D.useState("password"),[Bl,Ll]=D.useState(!1),On=D.useRef(!1),Xn=q[p]==="connected",wi="fluxy_totp_setup";function to(){try{sessionStorage.setItem(wi,JSON.stringify({secret:Mn,qrUri:Nn,otpauthUri:Xt,phase:Dn,portalPass:ne,portalPassConfirm:Si}))}catch{}}function Hl(){try{const C=sessionStorage.getItem(wi);if(!C)return!1;const K=JSON.parse(C);if(K.secret&&K.phase==="totp-setup")return We(K.secret),$e(K.qrUri||""),da(K.otpauthUri||""),Pe(!0),He("totp-setup"),d(3),K.portalPass&&(fa(K.portalPass),jl(K.portalPassConfirm||"")),!0}catch{}return!1}function Yl(){try{sessionStorage.removeItem(wi)}catch{}}D.useEffect(()=>{fetch("/api/onboard/status").then(C=>C.json()).then(C=>{C.userName&&v(C.userName),C.handle&&(R(C.handle.username),W(C.handle.tier||"at"),vi({username:C.handle.username,tier:C.handle.tier,url:C.handle.url}),Ht(!0),dn(C.handle.url)),C.portalUser&&qn(C.portalUser),C.portalConfigured&&Fs(!0),C.provider&&x(C.provider),C.model&&T(C.model),C.whisperEnabled&&(Ws(!0),Ol(C.whisperKey||"")),C.totpEnabled&&(Pe(!0),zl(!0)),C.tunnelMode&&gi(C.tunnelMode),C.tunnelDomain&&xl(C.tunnelDomain),C.tunnelUrl&&Or(C.tunnelUrl),C.handle||Hn("tunnel"),On.current=!0,C.totpEnabled||Hl()}).catch(()=>{On.current=!0})},[]),D.useEffect(()=>{Zs(LA(window.location.hostname))},[]),D.useEffect(()=>{Is(window.matchMedia("(max-width: 768px)").matches||"ontouchstart"in window)},[]),D.useEffect(()=>{p!=="anthropic"||q.anthropic==="connected"||fetch("/api/auth/claude/status").then(C=>C.json()).then(C=>{C.authenticated&&Y(K=>({...K,anthropic:"connected"}))}).catch(()=>{})},[p]),D.useEffect(()=>{p!=="openai"||q.openai==="connected"||fetch("/api/auth/codex/status").then(C=>C.json()).then(C=>{C.authenticated&&Y(K=>({...K,openai:"connected"}))}).catch(()=>{})},[p]),D.useEffect(()=>{if(!jt)return;const C=setInterval(async()=>{try{(await(await fetch("/api/auth/codex/status")).json()).authenticated&&(Mt(!1),Y(Ce=>({...Ce,openai:"connected"})))}catch{}},2e3);return()=>clearInterval(C)},[jt]),D.useEffect(()=>{if(wn.current&&clearTimeout(wn.current),!On.current||de==="off"||ve&&st&&mt===ve.username)return;Z(null),ut(""),B({}),Ht(!1),dn("");const C=mt.trim();if(C){if(C.length<3){Z("invalid"),ut("At least 3 characters");return}return Z("checking"),wn.current=setTimeout(async()=>{try{const wt=await(await fetch(`/api/handle/check/${encodeURIComponent(C)}`)).json();if(!wt.valid)Z("invalid"),ut(wt.error);else{const Ce={};for(const pa of wt.handles)Ce[pa.tier]=pa.available;B(Ce),Z("ready");const zi=nf.find(pa=>Ce[pa.tier]);zi&&!Ce[k]&&W(zi.tier)}}catch{Z(null)}},400),()=>{wn.current&&clearTimeout(wn.current)}}},[mt]);const ql=C=>{R(C.toLowerCase().replace(/[^a-z0-9-]/g,""))},Ei=async()=>{if(!(!mt||H!=="ready"||!w[k])){dt(!0);try{const K=await(await fetch("/api/handle/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:mt,tier:k})})).json();K.ok?(Ht(!0),dn(K.url)):(ut(K.error||"Registration failed"),Z("invalid"))}catch{ut("Could not reach server"),Z("invalid")}finally{dt(!1)}}},yn=async()=>{if(!(!mt||H!=="ready"||!w[k])){Qs(!0);try{const K=await(await fetch("/api/handle/change",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:mt,tier:k})})).json();K.ok?(Ht(!0),dn(K.url),vi({username:mt,tier:k,url:K.url}),Sl(!1)):(ut(K.error||"Handle change failed"),Z("invalid"))}catch{ut("Could not reach server"),Z("invalid")}finally{Qs(!1)}}},Gl=C=>{p==="openai"&&C!=="openai"&&jt&&(fetch("/api/auth/codex/cancel",{method:"POST"}),Mt(!1)),x(C),T(""),Q(!1),P(""),J(void 0),Mt(!1),ee(void 0)},Ci=C=>{if(window.matchMedia("(display-mode: standalone)").matches||navigator.standalone===!0){const wt=document.createElement("a");wt.href=C,wt.target="_blank",wt.rel="noopener noreferrer",document.body.appendChild(wt),wt.click(),document.body.removeChild(wt)}else window.open(C,"_blank","noopener,noreferrer")},ma=async()=>{J(void 0);try{const K=await(await fetch("/api/auth/claude/start",{method:"POST"})).json();K.success&&K.authUrl?(Ci(K.authUrl),Q(!0)):J(K.error||"Failed to start authentication")}catch(C){J(C.message)}},kn=async()=>{if(X.trim()){it(!0),J(void 0);try{const K=await(await fetch("/api/auth/claude/exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:X.trim()})})).json();K.success?Y(wt=>({...wt,anthropic:"connected"})):J(K.error||"Code exchange failed")}catch(C){J(C.message)}finally{it(!1)}}},eo=async()=>{try{const C=await navigator.clipboard.readText();C&&P(C.trim())}catch{}},Xl=async()=>{At(!0),J(void 0);try{(await(await fetch("/api/auth/claude/status")).json()).authenticated?Y(wt=>({...wt,anthropic:"connected"})):J("No active session found. Please authenticate first.")}catch{}finally{At(!1)}},no=async()=>{Mt(!0),ee(void 0);try{const K=await(await fetch("/api/auth/codex/start",{method:"POST"})).json();K.success&&K.authUrl?Ci(K.authUrl):(Mt(!1),ee(K.error||"Failed to start authentication"))}catch(C){Mt(!1),ee(C.message)}},Fa=()=>{Mt(!1),fetch("/api/auth/codex/cancel",{method:"POST"})},tn=ne===Si,ji=ne.length>=6&&tn,Pa=_e?ne.length===0||Ue&&ji:ji,xe=(()=>{switch(h){case 0:return!0;case 1:return y.trim().length>0;case 2:return ua||ie?!1:de==="off"||de==="named"||ze==="tunnel"?mt.trim().length>=3:st;case 3:return!(Dn!=="password"||!Pa||we&&!Ie);case 4:return!!(p&&b&&Xn);case 5:return!0;default:return!1}})(),Ye=()=>{xe&&h<c-1&&d(C=>C+1)},Mi=()=>{h>0&&d(C=>C-1)},Ni=C=>{C.key==="Enter"&&xe&&Ye()},Di=async()=>{V(!0);const C={userName:y.trim(),agentName:mt.trim()||"Fluxy",provider:p,model:b,apiKey:"",whisperEnabled:Fe,whisperKey:Fe?mn:"",portalUser:bi.trim(),portalPass:ne};try{o?await o(C):await fetch("/api/onboard",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(C)}),l?(V(!1),d(6)):a()}catch(K){console.error("[OnboardWizard] Onboard failed:",K),V(!1)}},Ee="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",Oi="w-full bg-white/[0.03] border border-white/[0.08] text-white rounded-xl px-4 py-2.5 text-[13px] outline-none input-glow placeholder:text-white/20 transition-all";return m.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center p-4",children:[m.jsx("div",{className:"absolute inset-0 bg-black/85 backdrop-blur-md"}),m.jsxs(Os.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.3},className:"relative w-full max-w-[480px] bg-[#181818] border border-white/[0.06] rounded-[24px] shadow-2xl overflow-hidden",children:[m.jsx("div",{className:"flex justify-center gap-2 pt-6",children:Array.from({length:c},(C,K)=>m.jsx("div",{className:`h-1.5 rounded-full transition-all duration-300 ${K===h?"w-7 bg-gradient-brand":K<h?"w-1.5 bg-gradient-brand opacity-60":"w-1.5 bg-white/10"}`},K))}),m.jsx(I0,{mode:"wait",children:m.jsxs(Os.div,{initial:{opacity:0,x:30},animate:{opacity:1,x:0},exit:{opacity:0,x:-30},transition:{duration:.2,ease:"easeOut"},className:"px-8 pt-6 pb-8",children:[h===0&&m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx("video",{src:"/fluxy_say_hi.webm",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"h-[180px] mb-4"}),m.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"Welcome to Fluxy"}),m.jsx("p",{className:"text-white/40 text-[14px] mt-2 leading-relaxed max-w-[320px]",children:"Let's set up your AI assistant in just a few steps."}),m.jsxs("button",{onClick:Ye,className:"mt-6 px-7 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center gap-2",children:["Get Started",m.jsx(Je,{className:"h-4 w-4"})]})]}),h===1&&m.jsxs("div",{children:[m.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"What's your name?"}),m.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is how your agent will address you."}),m.jsxs("div",{className:"mt-5 flex items-center gap-3",children:[m.jsx("input",{type:"text",value:y,onChange:C=>v(C.target.value),onKeyDown:Ni,placeholder:"Enter your name",autoFocus:!0,className:Ee+" flex-1"}),m.jsx("button",{onClick:Ye,disabled:!xe,className:"shrink-0 h-12 w-12 flex items-center justify-center rounded-full bg-gradient-brand hover:opacity-90 text-white transition-colors disabled:opacity-30",children:m.jsx(Je,{className:"h-5 w-5"})})]})]}),h===2&&de==="off"&&m.jsxs("div",{children:[m.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Bot Name & Access"}),m.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"Give your bot a name. This is used throughout the app as your bot's identity."}),m.jsx("div",{className:"relative mt-5",children:m.jsx("input",{type:"text",value:mt,onChange:C=>ql(C.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,className:Ee+" pr-10 font-mono"})}),m.jsx("div",{className:"mt-4 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:m.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:"Private network mode — your bot is only accessible via your local network or VPN. No public URL will be created."})}),!l&&m.jsx("div",{className:"mt-3 flex items-center gap-2",children:m.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[11px] font-medium border ${La(Re)?"bg-emerald-500/10 text-emerald-400 border-emerald-500/20":"bg-blue-500/10 text-blue-400 border-blue-500/20"}`,children:[La(Re)?m.jsx(Fp,{className:"h-3 w-3"}):m.jsx(Bc,{className:"h-3 w-3"}),"Accessing via ",hy[Re]]})}),!l&&!ie&&m.jsxs("button",{onClick:()=>{El(!0),Yn("")},className:"w-full mt-4 flex items-center justify-between px-4 py-3 rounded-xl border border-white/[0.06] bg-white/[0.02] hover:border-white/10 hover:bg-white/[0.04] transition-all text-left",children:[m.jsxs("div",{children:[m.jsx("p",{className:"text-[13px] text-white/70 font-medium",children:"Re-enable public tunnel access"}),m.jsx("p",{className:"text-[11px] text-white/30 mt-0.5",children:"Start a Cloudflare tunnel to make your bot accessible from anywhere"})]}),m.jsx(Bc,{className:"h-4 w-4 text-white/30 shrink-0 ml-3"})]}),ie&&m.jsxs("div",{className:"mt-4 space-y-3",children:[m.jsx("div",{className:"bg-amber-500/8 border border-amber-500/20 rounded-xl px-4 py-3",children:m.jsxs("div",{className:"flex items-start gap-2",children:[m.jsx(Jp,{className:"h-4 w-4 text-amber-400 shrink-0 mt-0.5"}),m.jsxs("div",{children:[m.jsx("p",{className:"text-amber-400/90 text-[13px] font-medium",children:"Enable public access?"}),m.jsxs("p",{className:"text-amber-400/60 text-[12px] mt-1 leading-relaxed",children:["This will start a Cloudflare tunnel, making your bot reachable from the internet.",ve&&" Your handle will reconnect automatically."]})]})]})}),Xa&&m.jsx("p",{className:"text-red-400/70 text-[12px]",children:Xa}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{onClick:async()=>{if(r){Js(!0),Yn("");try{await r("quick"),gi("quick"),El(!1)}catch(C){Yn(C.message||"Failed to start tunnel")}finally{Js(!1)}}},disabled:Cl||!r,className:"flex-1 py-2.5 bg-gradient-brand hover:opacity-90 text-white text-[13px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:Cl?m.jsxs(m.Fragment,{children:[m.jsx(oa,{className:"h-4 w-4 animate-spin"}),"Starting tunnel..."]}):"Enable Tunnel"}),m.jsx("button",{onClick:()=>{El(!1),Yn("")},disabled:Cl,className:"px-5 py-2.5 bg-white/[0.04] hover:bg-white/[0.08] border border-white/[0.08] text-white/60 text-[13px] font-medium rounded-full transition-colors",children:"Cancel"})]})]}),m.jsxs("button",{onClick:Ye,disabled:!xe,className:"w-full mt-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",m.jsx(Je,{className:"h-4 w-4"})]})]}),h===2&&de==="named"&&m.jsxs("div",{children:[m.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Bot Name & Access"}),m.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is your bot's identity. Your named tunnel domain is already configured."}),m.jsx("div",{className:"relative mt-5",children:m.jsx("input",{type:"text",value:mt,onChange:C=>ql(C.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,className:Ee+" pr-10 font-mono"})}),m.jsxs("div",{className:"mt-4 flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[m.jsxs("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:["https://",hn]}),m.jsx("button",{onClick:()=>{navigator.clipboard.writeText(`https://${hn}`),Cn(!0),setTimeout(()=>Cn(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:Ti?m.jsx(sa,{className:"h-4 w-4 text-emerald-400"}):m.jsx(Kp,{className:"h-4 w-4"})})]})]}),h===2&&de==="quick"&&m.jsxs("div",{children:[m.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Bot Name & Access"}),m.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is your bot's name and permanent handle — access it from anywhere."}),ve&&st&&!En&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(sa,{className:"h-4 w-4 text-emerald-400"}),m.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Current handle"})]}),m.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:zt})]}),m.jsxs("div",{className:"flex gap-2 mt-4",children:[m.jsxs("button",{onClick:Ye,className:"flex-1 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",m.jsx(Je,{className:"h-4 w-4"})]}),m.jsx("button",{onClick:()=>{Sl(!0),Ht(!1),R(""),Z(null),B({}),Hn("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"})]})]}),En&&!st&&m.jsxs("div",{className:"mt-4 bg-amber-500/8 border border-amber-500/20 rounded-xl px-4 py-3",children:[m.jsx("p",{className:"text-amber-400/90 text-[13px] font-medium",children:"Changing your handle"}),m.jsxs("p",{className:"text-amber-400/60 text-[12px] mt-1",children:["Your current handle ",m.jsx("span",{className:"font-mono",children:ve?.url})," will be released and become available for others."]})]}),(!ve||En||!st)&&!(ve&&st&&!En)&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"relative mt-5",children:[m.jsx("input",{type:"text",value:mt,onChange:C=>ql(C.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,disabled:st,className:Ee+" pr-10 font-mono"+(st?" opacity-50":"")}),H&&mt.length>0&&!st&&m.jsxs("div",{className:"absolute right-4 top-1/2 -translate-y-1/2",children:[H==="checking"&&m.jsx("div",{className:"w-5 h-5 border-2 border-white/10 border-t-[#04D1FE] rounded-full animate-spin"}),H==="invalid"&&m.jsx("div",{className:"w-6 h-6 rounded-full bg-amber-500/15 flex items-center justify-center",children:m.jsx("svg",{className:"w-3.5 h-3.5 text-amber-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3m0 4h.01"})})})]})]}),H==="invalid"&&ht&&m.jsx("p",{className:"text-amber-400 text-[12px] mt-2",children:ht}),H==="ready"&&mt.length>0&&!st&&ze==="relay"&&m.jsxs("div",{className:"mt-4 text-center",children:[m.jsx("span",{className:"font-mono text-[15px] font-semibold tracking-tight text-white/25",children:nf.find(C=>C.tier===k)?.prefix}),m.jsx("span",{className:"font-mono text-[15px] font-semibold tracking-tight text-gradient",children:mt})]}),H==="ready"&&mt.length>0&&!st&&m.jsxs("div",{className:"space-y-2 mt-4",children:[nf.map(C=>{const wt=w[C.tier]===!1;return m.jsxs("button",{onClick:()=>{wt||(W(C.tier),Hn("relay"))},disabled:wt,className:`w-full flex items-center justify-between px-4 py-3 rounded-xl border transition-all duration-200 text-left ${wt?"border-white/[0.04] bg-transparent opacity-50 cursor-not-allowed":ze==="relay"&&k===C.tier?C.highlight?"border-[#AF27E3]/40 bg-[#AF27E3]/[0.06]":"border-[#AF27E3]/30 bg-white/[0.04]":"border-white/[0.06] bg-transparent hover:border-white/10 hover:bg-white/[0.02]"}`,children:[m.jsx("span",{className:`font-mono text-[13px] ${wt?"text-white/40":ze==="relay"&&k===C.tier?"text-white/80":"text-white/50"}`,children:C.label(mt)}),wt?m.jsx("span",{className:"text-[11px] font-medium px-2.5 py-0.5 rounded-full border bg-red-500/10 text-red-400 border-red-500/20",children:"Taken"}):m.jsx("span",{className:`text-[11px] font-medium px-2.5 py-0.5 rounded-full border ${C.badgeCls}`,children:C.badge})]},C.tier)}),m.jsxs("button",{onClick:()=>Hn("tunnel"),className:`w-full flex items-center justify-between px-4 py-3 rounded-xl border transition-all duration-200 text-left ${ze==="tunnel"?"border-white/[0.08] bg-white/[0.03]":"border-white/[0.06] bg-transparent hover:border-white/10 hover:bg-white/[0.02]"}`,children:[m.jsx("span",{className:"text-[13px] text-white/50",children:"No thanks, I'll use the random URL"}),m.jsx("span",{className:"text-[11px] font-medium px-2.5 py-0.5 rounded-full border bg-white/[0.04] text-white/30 border-white/[0.08]",children:"Skip"})]})]}),st&&m.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(sa,{className:"h-4 w-4 text-emerald-400"}),m.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Handle claimed!"})]}),m.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:zt})]}),ze==="relay"&&H==="ready"&&w[k]&&mt.length>0&&!st&&m.jsx("button",{onClick:En?yn:Ei,disabled:ot||he,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:ot||he?m.jsxs(m.Fragment,{children:[m.jsx(oa,{className:"h-4 w-4 animate-spin"}),En?"Changing...":"Claiming..."]}):m.jsxs(m.Fragment,{children:[En?"Change Handle":"Claim & Continue",m.jsx(Je,{className:"h-4 w-4"})]})}),ze==="tunnel"&&H==="ready"&&mt.length>0&&!st&&m.jsxs("button",{onClick:Ye,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",m.jsx(Je,{className:"h-4 w-4"})]}),st&&m.jsxs("button",{onClick:Ye,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",m.jsx(Je,{className:"h-4 w-4"})]}),En&&!st&&m.jsx("button",{onClick:()=>{Sl(!1),R(ve.username),Ht(!0),dn(ve.url),W(ve.tier),Hn("relay"),Z(null)},className:"w-full mt-2 py-2 text-white/25 hover:text-white/40 text-[12px] transition-colors",children:"Cancel — keep current handle"})]}),!l&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"mt-5 flex items-center gap-2",children:m.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[11px] font-medium border ${La(Re)?"bg-emerald-500/10 text-emerald-400 border-emerald-500/20":"bg-blue-500/10 text-blue-400 border-blue-500/20"}`,children:[La(Re)?m.jsx(k1,{className:"h-3 w-3"}):m.jsx(Bc,{className:"h-3 w-3"}),"Accessing via ",hy[Re]]})}),!ua&&m.jsxs("button",{onClick:()=>{La(Re)&&(Tl(!0),Al(""),Ve(""))},disabled:!La(Re),className:`w-full mt-3 flex items-center justify-between px-4 py-3 rounded-xl border transition-all text-left ${La(Re)?"border-white/[0.06] bg-white/[0.02] hover:border-white/10 hover:bg-white/[0.04] cursor-pointer":"border-white/[0.04] bg-transparent opacity-50 cursor-not-allowed"}`,children:[m.jsxs("div",{children:[m.jsx("p",{className:"text-[13px] text-white/70 font-medium",children:"Switch to private network only"}),m.jsx("p",{className:"text-[11px] text-white/30 mt-0.5",children:La(Re)?"Stop the tunnel and relay — access only via Tailscale or LAN":"Connect via Tailscale or private network to unlock"})]}),m.jsx(Fp,{className:"h-4 w-4 text-white/30 shrink-0 ml-3"})]}),ua&&m.jsxs("div",{className:"mt-3 space-y-3",children:[m.jsx("div",{className:"bg-amber-500/8 border border-amber-500/20 rounded-xl px-4 py-3",children:m.jsxs("div",{className:"flex items-start gap-2",children:[m.jsx(Jp,{className:"h-4 w-4 text-amber-400 shrink-0 mt-0.5"}),m.jsxs("div",{children:[m.jsx("p",{className:"text-amber-400/90 text-[13px] font-medium",children:"Switch to private network only?"}),m.jsx("p",{className:"text-amber-400/60 text-[12px] mt-1 leading-relaxed",children:"This will stop the Cloudflare tunnel and relay connection. Your bot will only be accessible via your private network."}),ve&&m.jsx("p",{className:"text-amber-400/50 text-[12px] mt-1.5",children:"Your handle will be preserved and can be re-activated later."})]})]})}),m.jsxs("div",{children:[m.jsxs("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:["Type ",m.jsx("span",{className:"font-mono text-white/60",children:"I confirm"})," to proceed"]}),m.jsx("input",{type:"text",value:xi,onChange:C=>Al(C.target.value),placeholder:"I confirm",spellCheck:!1,autoFocus:!0,className:Oi})]}),me&&m.jsx("p",{className:"text-red-400/70 text-[12px]",children:me}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{onClick:async()=>{if(!(!r||xi.trim().toLowerCase()!=="i confirm")){ca(!0),Ve("");try{await r("off"),gi("off"),Tl(!1)}catch(C){Ve(C.message||"Failed to switch")}finally{ca(!1)}}},disabled:wl||xi.trim().toLowerCase()!=="i confirm"||!r,className:"flex-1 py-2.5 bg-amber-600 hover:bg-amber-500 text-white text-[13px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:wl?m.jsxs(m.Fragment,{children:[m.jsx(oa,{className:"h-4 w-4 animate-spin"}),"Switching..."]}):"Confirm Switch"}),m.jsx("button",{onClick:()=>{Tl(!1),Al(""),Ve("")},disabled:wl,className:"px-5 py-2.5 bg-white/[0.04] hover:bg-white/[0.08] border border-white/[0.08] text-white/60 text-[13px] font-medium rounded-full transition-colors",children:"Cancel"})]})]})]})]}),h===3&&m.jsx("div",{children:m.jsxs(I0,{mode:"wait",children:[Dn==="password"&&m.jsxs(Os.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.15},children:[m.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Set a password"}),m.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"You'll need this password to access your agent's chat. Keep it safe — anyone with your URL will need it to log in."}),_e&&m.jsx("div",{className:"mt-4 bg-white/[0.02] border border-white/[0.06] rounded-xl px-4 py-2.5",children:m.jsx("p",{className:"text-white/40 text-[12px]",children:"Password already set. Leave fields empty to keep your current password, or enter your current password to change it."})}),_e&&m.jsxs("div",{className:"mt-5",children:[m.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Current password"}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("input",{type:"password",value:jn,onChange:C=>{Nl(C.target.value),ka(""),Qt(!1)},placeholder:"Enter current password to change it",autoComplete:"current-password",autoFocus:!0,className:Ee+" flex-1"}),jn.length>0&&!Ue&&m.jsx("button",{onClick:async()=>{Gn(!0),ka("");try{(await(await fetch("/api/portal/verify-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:jn})})).json()).valid?Qt(!0):ka("Incorrect password")}catch{ka("Could not verify")}finally{Gn(!1)}},disabled:le,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:le?m.jsx(oa,{className:"h-4 w-4 animate-spin"}):"Verify"}),Ue&&m.jsx("div",{className:"shrink-0 w-10 h-10 flex items-center justify-center",children:m.jsx(sa,{className:"h-4 w-4 text-emerald-400"})})]}),Dl&&m.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:Dl})]}),(!_e||Ue)&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:_e?"mt-3":"mt-5",children:[m.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:_e?"New password":"Password"}),m.jsx("input",{type:"password",value:ne,onChange:C=>fa(C.target.value),placeholder:"••••••••",autoComplete:"new-password",autoFocus:!_e,onKeyDown:Ni,className:Ee}),ne.length>0&&ne.length<6&&m.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"At least 6 characters"})]}),m.jsxs("div",{className:"mt-3",children:[m.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:_e?"Confirm new password":"Confirm password"}),m.jsx("input",{type:"password",value:Si,onChange:C=>jl(C.target.value),placeholder:"••••••••",autoComplete:"new-password",onKeyDown:Ni,className:Ee}),Si.length>0&&!tn&&m.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:"Passwords don't match"})]})]}),m.jsxs("div",{className:"mt-5 border border-white/[0.06] rounded-xl overflow-hidden",children:[m.jsxs("button",{onClick:async()=>{if(we&&Ie){Za(!0);return}if(we)Pe(!1),$e(""),We(""),da("");else if(Pe(!0),Be(""),pn(""),Nn)He("totp-setup");else try{const C=await fetch("/api/portal/totp/setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:_e?jn:ne})}),K=await C.json();C.ok?(We(K.secret),$e(K.qrDataUri),da(K.otpauthUri),He("totp-setup")):(Be(K.error||"Setup failed"),Pe(!1))}catch{Be("Could not reach server"),Pe(!1)}},type:"button",className:"w-full flex items-center gap-3 px-4 py-3 text-left",children:[m.jsx("div",{className:`w-9 h-9 rounded-lg flex items-center justify-center shrink-0 ${we&&Ie?"bg-emerald-500/10":"bg-white/[0.04]"}`,children:we&&Ie?m.jsx(Zp,{className:"h-[18px] w-[18px] text-emerald-400"}):m.jsx(L1,{className:"h-[18px] w-[18px] text-white/30"})}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsx("span",{className:"text-[13px] font-medium text-white block",children:"Two-Factor Auth"}),m.jsx("p",{className:"text-[11px] text-white/30 mt-0.5",children:we&&Ie?m.jsx("span",{className:"text-emerald-400/70",children:"Active — authenticator app required"}):de==="quick"||de==="named"?m.jsx("span",{children:"Recommended for public bots"}):m.jsx("span",{children:"Extra security with an authenticator app"})})]}),m.jsx("div",{className:`w-10 h-6 rounded-full transition-colors relative shrink-0 ${we?"bg-emerald-500":"bg-white/10"}`,children:m.jsx("div",{className:`absolute top-1 w-4 h-4 rounded-full bg-white shadow transition-transform ${we?"translate-x-5":"translate-x-1"}`})})]}),zr&&m.jsxs("div",{className:"px-4 pb-3 border-t border-white/[0.06]",children:[m.jsx("p",{className:"text-[12px] text-white/40 mt-3 mb-2",children:"Enter your current TOTP code to disable 2FA:"}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("input",{type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,value:Ja,onChange:C=>{ha(C.target.value.replace(/\D/g,"")),se("")},placeholder:"000000",className:Oi+" flex-1 tracking-[0.3em] text-center font-mono"}),m.jsx("button",{onClick:async()=>{if(Ja.length===6)try{const C=await fetch("/api/portal/totp/disable",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:_e?jn:ne,code:Ja})}),K=await C.json();C.ok?(Pe(!1),zl(!1),We(""),$e(""),da(""),Za(!1),ha(""),Le([]),_l(!1)):se(K.error||"Failed to disable")}catch{se("Could not reach server")}},disabled:Ja.length!==6,className:"shrink-0 px-4 py-2.5 bg-red-500/10 hover:bg-red-500/20 text-red-400 text-[13px] font-medium rounded-xl transition-colors disabled:opacity-40",children:"Disable"})]}),$s&&m.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:$s}),m.jsx("button",{onClick:()=>{Za(!1),ha(""),se("")},className:"text-[11px] text-white/30 hover:text-white/50 mt-2",children:"Cancel"})]}),Ai&&Dn==="password"&&m.jsx("div",{className:"mx-4 mb-3 bg-red-500/8 border border-red-500/15 rounded-xl px-3 py-2",children:m.jsx("p",{className:"text-red-400/90 text-[11px]",children:Ai})})]}),m.jsxs("button",{onClick:Ye,disabled:!xe,className:"w-full mt-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",m.jsx(Je,{className:"h-4 w-4"})]})]},"password"),Dn==="totp-setup"&&m.jsxs(Os.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.15},children:[m.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[m.jsx("button",{onClick:()=>{Pe(!1),$e(""),We(""),da(""),pn(""),Be(""),He("password"),Yl()},className:"w-7 h-7 rounded-full bg-white/[0.04] flex items-center justify-center text-white/40 hover:text-white/70 transition-colors shrink-0",children:m.jsx(x1,{className:"h-4 w-4"})}),m.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Set up 2FA"})]}),Ai&&m.jsx("div",{className:"mt-3 bg-red-500/8 border border-red-500/15 rounded-xl px-3 py-2",children:m.jsx("p",{className:"text-red-400/90 text-[11px]",children:Ai})}),Nn&&m.jsxs(m.Fragment,{children:[Ul?m.jsxs("div",{className:"mt-4",children:[m.jsx("p",{className:"text-white/40 text-[13px] leading-relaxed mb-4",children:"Add Fluxy to your authenticator app, then enter the 6-digit code below to confirm."}),m.jsx("button",{onClick:()=>{navigator.clipboard.writeText(Mn),Ll(!0),setTimeout(()=>Ll(!1),3e3)},className:`w-full py-3 text-[14px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2 ${Bl?"bg-emerald-500/10 text-emerald-400 border border-emerald-500/20":"bg-white/[0.05] text-white/70 hover:bg-white/[0.08] border border-white/[0.08]"}`,children:Bl?m.jsxs(m.Fragment,{children:[m.jsx(sa,{className:"h-4 w-4"}),"Secret key copied"]}):m.jsxs(m.Fragment,{children:[m.jsx(Uc,{className:"h-4 w-4"}),"Copy secret key"]})}),m.jsx("p",{className:"text-[11px] text-white/20 text-center mt-2",children:"Paste it in your authenticator app → Add account → Enter key"}),m.jsxs("a",{href:Xt,onClick:()=>to(),className:"w-full mt-3 py-2.5 text-[13px] text-white/30 hover:text-white/50 flex items-center justify-center gap-1.5 transition-colors",children:[m.jsx(Y1,{className:"h-3.5 w-3.5"}),"Or open directly in authenticator"]})]}):m.jsxs("div",{className:"mt-4 flex gap-4 items-start",children:[m.jsx("div",{className:"shrink-0",children:m.jsx("div",{className:"bg-white rounded-xl p-1.5",children:m.jsx("img",{src:Nn,alt:"TOTP QR Code",className:"w-[140px] h-[140px]"})})}),m.jsxs("div",{className:"flex-1 min-w-0 pt-1",children:[m.jsx("p",{className:"text-white/40 text-[13px] leading-relaxed",children:"Scan this QR code with your authenticator app."}),m.jsx("p",{className:"text-white/25 text-[11px] mt-2 leading-relaxed",children:"Google Authenticator, Authy, 1Password, or any TOTP app."}),m.jsxs("button",{onClick:()=>{navigator.clipboard.writeText(Mn)},className:"mt-3 text-[11px] text-white/25 hover:text-white/40 flex items-center gap-1 transition-colors",children:[m.jsx(Uc,{className:"h-3 w-3"}),"Copy secret key"]})]})]}),m.jsxs("div",{className:"mt-5",children:[m.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Enter the 6-digit code from your app"}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("input",{type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,value:Ka,onChange:C=>{pn(C.target.value.replace(/\D/g,"")),Be("")},placeholder:"000000",autoFocus:!0,className:Ee+" tracking-[0.3em] text-center font-mono flex-1"}),m.jsx("button",{onClick:async()=>{if(Ka.length===6){Vl(!0),Be("");try{const C=await fetch("/api/portal/totp/verify-setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:Ka,password:_e?jn:ne})}),K=await C.json();C.ok&&K.success?(zl(!0),Le(K.recoveryCodes||[]),He("recovery"),Yl()):Be(K.error||"Verification failed")}catch{Be("Could not reach server")}finally{Vl(!1)}}},disabled:Ka.length!==6||Rl,className:"shrink-0 px-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-xl transition-colors flex items-center gap-2 disabled:opacity-40",children:Rl?m.jsx(oa,{className:"h-4 w-4 animate-spin"}):"Verify"})]})]})]})]},"totp-setup"),Dn==="recovery"&&m.jsxs(Os.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.15},children:[m.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[m.jsx("div",{className:"w-9 h-9 rounded-xl bg-emerald-500/10 flex items-center justify-center shrink-0",children:m.jsx(Zp,{className:"h-[18px] w-[18px] text-emerald-400"})}),m.jsxs("div",{children:[m.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"2FA enabled"}),m.jsx("p",{className:"text-emerald-400/70 text-[12px]",children:"Save your recovery codes"})]})]}),m.jsx("p",{className:"text-white/35 text-[13px] mt-3 leading-relaxed",children:"If you lose your authenticator app, you can use one of these codes to sign in. Each code works once. Store them somewhere safe."}),m.jsx("div",{className:"mt-4 grid grid-cols-2 gap-1.5",children:Qa.map((C,K)=>m.jsx("div",{className:"bg-white/[0.03] border border-white/[0.06] rounded-lg px-3 py-2 text-center",children:m.jsx("code",{className:"text-[13px] text-white/60 font-mono tracking-wider",children:C})},K))}),m.jsx("button",{onClick:()=>{navigator.clipboard.writeText(Qa.join(`
|
|
18
|
+
`)),_l(!0)},className:`w-full mt-4 py-3 text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 ${pe?"bg-emerald-500/10 text-emerald-400 border border-emerald-500/20":"bg-white/[0.05] text-white/60 hover:bg-white/[0.08] border border-white/[0.08]"}`,children:pe?m.jsxs(m.Fragment,{children:[m.jsx(sa,{className:"h-4 w-4"}),"Copied"]}):m.jsxs(m.Fragment,{children:[m.jsx(Uc,{className:"h-4 w-4"}),"Copy recovery codes"]})}),m.jsxs("button",{onClick:()=>{Le([]),He("password"),Yl()},disabled:!pe,className:"w-full mt-3 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Done",m.jsx(Je,{className:"h-4 w-4"})]})]},"recovery")]})}),h===4&&m.jsxs("div",{children:[m.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Choose your AI provider"}),m.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"Pick one provider to power your bot, authenticate, and select a model."}),m.jsx("div",{className:"flex gap-2.5 mt-4",children:HA.map(C=>m.jsxs("button",{onClick:()=>Gl(C.id),className:`flex-1 relative rounded-xl border transition-all duration-200 p-3 text-left ${p===C.id?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:[m.jsxs("div",{className:"flex flex-col items-center gap-1.5 py-0.5",children:[C.icon?m.jsx("img",{src:C.icon,alt:C.name,className:"w-8 h-8 rounded-lg"}):m.jsx("div",{className:"w-8 h-8 rounded-lg bg-white/[0.06] flex items-center justify-center text-white/50 text-sm font-bold",children:"O"}),m.jsxs("div",{className:"text-center",children:[m.jsx("div",{className:"text-[13px] font-medium text-white",children:C.name}),m.jsx("div",{className:"text-[10px] text-white/30",children:C.subtitle})]})]}),q[C.id]==="connected"?m.jsx("div",{className:"absolute top-2 right-2 w-4 h-4 rounded-full bg-emerald-500/15 flex items-center justify-center",children:m.jsx(sa,{className:"h-2.5 w-2.5 text-emerald-400"})}):p===C.id?m.jsx("div",{className:"absolute top-2 right-2 w-2 h-2 rounded-full bg-gradient-brand"}):null]},C.id))}),m.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),p==="anthropic"&&m.jsxs("div",{className:"space-y-2.5",children:[Xn&&m.jsxs("div",{className:"space-y-2.5",children:[m.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:m.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — Anthropic subscription is active."})}),m.jsxs("button",{onClick:()=>{Y(C=>({...C,anthropic:"idle"})),Q(!1),P(""),J("")},className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors flex items-center justify-center gap-1.5",children:[m.jsx(Lc,{className:"h-3 w-3"}),"Re-authenticate"]})]}),!Xn&&m.jsxs(m.Fragment,{children:[et&&m.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:m.jsx("p",{className:"text-red-400/90 text-[12px]",children:et})}),m.jsx("div",{className:"space-y-1.5",children:["Click the button below to open Anthropic's login page","Sign in with your Anthropic account — a code will be generated","Copy the code and paste it in the field below"].map((C,K)=>m.jsxs("div",{className:"flex items-start gap-2",children:[m.jsx("span",{className:"flex-shrink-0 w-[18px] h-[18px] rounded-full bg-white/[0.06] text-white/30 text-[10px] font-medium flex items-center justify-center mt-px",children:K+1}),m.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:C})]},K))}),m.jsx("button",{onClick:ma,className:"w-full py-2.5 px-4 bg-gradient-brand hover:opacity-90 text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2",children:G?m.jsxs(m.Fragment,{children:[m.jsx(Qp,{className:"h-3.5 w-3.5 opacity-60"}),"Open authentication page again"]}):m.jsxs(m.Fragment,{children:["Authenticate with Anthropic",m.jsx(Je,{className:"h-3.5 w-3.5 opacity-60"})]})}),m.jsxs("div",{className:"relative",children:[m.jsx("input",{type:"text",value:X,onChange:C=>P(C.target.value),onKeyDown:C=>C.key==="Enter"&&kn(),placeholder:"Paste your code here...",className:Oi+" pr-10 font-mono"}),m.jsx("button",{onClick:eo,className:"absolute right-3 top-1/2 -translate-y-1/2 text-white/20 hover:text-white/50 transition-colors",children:m.jsx(Kp,{className:"h-3.5 w-3.5"})})]}),m.jsx("button",{onClick:kn,disabled:!X.trim()||F,className:"w-full py-2.5 px-4 bg-gradient-brand hover:opacity-90 text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:F?m.jsxs(m.Fragment,{children:[m.jsx(oa,{className:"h-3.5 w-3.5 animate-spin"}),"Verifying..."]}):"Connect"}),m.jsxs("button",{onClick:Xl,disabled:lt,className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors flex items-center justify-center gap-1.5 disabled:opacity-50",children:[lt?m.jsx(oa,{className:"h-3 w-3 animate-spin"}):m.jsx(Lc,{className:"h-3 w-3"}),lt?"Checking...":"I'm already authenticated"]})]})]}),p==="openai"&&m.jsxs("div",{className:"space-y-2.5",children:[Xn&&m.jsxs("div",{className:"space-y-2.5",children:[m.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:m.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — ChatGPT subscription is active."})}),m.jsxs("button",{onClick:()=>{Y(C=>({...C,openai:"idle"})),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:[m.jsx(Lc,{className:"h-3 w-3"}),"Re-authenticate"]})]}),!Xn&&m.jsxs(m.Fragment,{children:[Ae&&m.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:m.jsx("p",{className:"text-red-400/90 text-[12px]",children:Ae})}),m.jsx("div",{className:"space-y-1.5",children:["Click the button below — your browser will open for ChatGPT sign-in","Sign in with your ChatGPT Plus or Pro account","Authentication completes automatically — no code to copy"].map((C,K)=>m.jsxs("div",{className:"flex items-start gap-2",children:[m.jsx("span",{className:"flex-shrink-0 w-[18px] h-[18px] rounded-full bg-white/[0.06] text-white/30 text-[10px] font-medium flex items-center justify-center mt-px",children:K+1}),m.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:C})]},K))}),m.jsx("button",{onClick:no,disabled:jt,className:"w-full py-2.5 px-4 bg-white/[0.06] hover:bg-white/[0.09] text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2 disabled:opacity-60",children:jt?m.jsxs(m.Fragment,{children:[m.jsx(oa,{className:"h-3.5 w-3.5 animate-spin opacity-60"}),"Waiting for sign-in..."]}):m.jsxs(m.Fragment,{children:["Authenticate with ChatGPT",m.jsx(Je,{className:"h-3.5 w-3.5 opacity-60"})]})}),jt&&m.jsx("button",{onClick:Fa,className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors",children:"Cancel"})]})]}),Xn&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),m.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Select a model"}),m.jsx(qA,{models:YA[p]||[],value:b,onChange:T})]}),Xn&&m.jsxs("button",{onClick:Ye,disabled:!xe,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",m.jsx(Je,{className:"h-4 w-4"})]})]}),h===5&&m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Voice Messages"}),m.jsx("span",{className:"text-[11px] text-white/25 font-medium bg-white/[0.04] border border-white/[0.06] rounded-full px-2.5 py-0.5",children:"Optional"})]}),m.jsx("p",{className:"text-white/40 text-[13px] mt-1 leading-relaxed",children:"Allow users to send audio messages that are automatically transcribed."}),m.jsx("button",{onClick:()=>Ws(C=>!C),className:`w-full mt-5 rounded-xl border transition-all duration-200 p-4 text-left ${Fe?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:m.jsxs("div",{className:"flex items-center gap-3.5",children:[m.jsx("img",{src:"/icons/openai.svg",alt:"OpenAI",className:"w-10 h-10 rounded-xl bg-white/[0.04] p-1.5"}),m.jsxs("div",{className:"flex-1",children:[m.jsx("div",{className:"text-[14px] font-medium text-white",children:"OpenAI Whisper"}),m.jsx("div",{className:"text-[12px] text-white/35 mt-0.5 leading-relaxed",children:"Speech-to-text powered by OpenAI. Requires an OpenAI API key."})]}),m.jsx("div",{className:`w-10 h-[22px] rounded-full transition-colors duration-200 flex items-center px-0.5 shrink-0 ${Fe?"bg-gradient-brand":"bg-white/[0.08]"}`,children:m.jsx("div",{className:`w-[18px] h-[18px] rounded-full bg-white shadow-sm transition-transform duration-200 ${Fe?"translate-x-[18px]":"translate-x-0"}`})})]})}),Fe&&m.jsxs("div",{className:"mt-3",children:[m.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"OpenAI API Key"}),m.jsx("input",{type:"password",value:mn,onChange:C=>Ol(C.target.value.trim()),placeholder:"sk-...",autoComplete:"off",className:Ee+" font-mono text-[13px]"}),mn.length>0&&!mn.startsWith("sk-")&&m.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key should start with sk-"}),mn.length>0&&mn.startsWith("sk-")&&mn.length<20&&m.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key looks too short"}),m.jsxs("div",{className:"flex items-start gap-2.5 mt-3 bg-white/[0.02] border border-white/[0.06] rounded-xl px-4 py-3",children:[m.jsx(V1,{className:"h-4 w-4 text-[#AF27E3]/60 mt-0.5 shrink-0"}),m.jsx("p",{className:"text-white/35 text-[12px] leading-relaxed",children:"Users will see a microphone button in the chat. Audio is sent to OpenAI's Whisper API for transcription, then processed as a regular text message."})]})]}),m.jsx("button",{onClick:Di,disabled:O||Fe&&(!mn.startsWith("sk-")||mn.length<20),className:"w-full mt-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:O?m.jsxs(m.Fragment,{children:[m.jsx(oa,{className:"h-4 w-4 animate-spin"}),"Setting up..."]}):m.jsxs(m.Fragment,{children:["Complete Setup",m.jsx(Je,{className:"h-4 w-4"})]})}),!Fe&&m.jsx("p",{className:"text-center text-white/20 text-[11px] mt-2.5",children:"You can enable this later in Settings."})]}),h===6&&l&&(()=>{const C=de==="off",K=C?window.location.origin:de==="named"?`https://${hn}`:ze==="relay"&&zt?zt:bl||"http://localhost:3000",wt=K.startsWith("http")?K:`https://${K}`,Ce=C?"Your agent is running on your private network. Access it from any device on your local network or VPN.":de==="named"?"Access your agent at your custom domain.":ze==="relay"&&zt?"Your agent is live and ready. From now on, access it using your custom URL below.":"Your agent is live and ready. Your tunnel URL is shown below. Note: this URL changes on restart.";return m.jsxs("div",{className:"flex flex-col items-center text-center",children:[m.jsx("div",{className:"w-16 h-16 rounded-full bg-emerald-500/10 border border-emerald-500/20 flex items-center justify-center mb-5",children:m.jsx(sa,{className:"h-8 w-8 text-emerald-400"})}),m.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"All Set!"}),m.jsx("p",{className:"text-white/40 text-[13px] mt-2 leading-relaxed max-w-[340px]",children:Ce}),m.jsxs("div",{className:"w-full mt-6 flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[m.jsx("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:K}),m.jsx("button",{onClick:()=>{navigator.clipboard.writeText(wt),Cn(!0),setTimeout(()=>Cn(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:Ti?m.jsx(sa,{className:"h-4 w-4 text-emerald-400"}):m.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[m.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),m.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})})]}),m.jsxs("div",{className:"w-full mt-3",children:[m.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block text-left",children:"Your password"}),m.jsxs("div",{className:"flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[m.jsx("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:Ml?ne:"•".repeat(Math.max(ne.length,8))}),m.jsx("button",{onClick:()=>Ps(zi=>!zi),className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:Ml?m.jsx(M1,{className:"h-4 w-4"}):m.jsx(D1,{className:"h-4 w-4"})})]})]}),m.jsxs("button",{onClick:()=>{C?(window.top||window).location.href="/":(window.top||window).location.href=wt},className:"w-full mt-6 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:[C?"Go to dashboard":"Go to your agent",m.jsx(Qp,{className:"h-4 w-4"})]}),m.jsx("p",{className:"text-white/20 text-[11px] mt-3 leading-relaxed",children:C?"Access from any device on your network using the URL above.":`You'll be redirected to your ${de==="named"?"custom domain":ze==="relay"?"custom URL":"tunnel URL"}.`})]})})()]},h)}),h>0&&h<c-1&&!(h===6&&l)&&m.jsx("div",{className:"px-8 pb-5 -mt-3",children:m.jsx("button",{onClick:Mi,className:"text-white/25 hover:text-white/50 text-[12px] transition-colors",children:"← Back"})})]})]})}export{I0 as A,sa as C,oa as L,V1 as M,KA as O,GA as R,L1 as S,Je as a,x1 as b,te as c,Uc as d,XA as e,my as g,m as j,Os as m,D as r};
|